Refactored ROOT_PATH to be a subfolder in the current user's home directory (configs and settings will not need to be manually moved between updates)

This commit is contained in:
2023-11-18 15:24:07 -06:00
parent f98edc1744
commit 4bdc12ce46
22 changed files with 113 additions and 99 deletions

View File

@@ -1,11 +1,11 @@
module TAC
class PracticeGameClock
class Jukebox
MUSIC = Dir.glob(ROOT_PATH + "/media/music/*.*").freeze
MUSIC = Dir.glob(MEDIA_PATH + "/music/*.*").freeze
SAMPLES = {}
if File.exist?(ROOT_PATH + "/media/sounds/skystone")
BEEPS_AND_BOOPS = Dir.glob(ROOT_PATH + "/media/sounds/skystone/*.*").freeze
if File.exist?(MEDIA_PATH + "/sounds/skystone")
BEEPS_AND_BOOPS = Dir.glob(MEDIA_PATH + "/sounds/skystone/*.*").freeze
end
attr_reader :volume, :now_playing