mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 22:02:34 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user