Skip to content

Commit

Permalink
THEME:GetCurrentThemeDirectory() already has a trailing slash, remove…
Browse files Browse the repository at this point in the history
… the extra
  • Loading branch information
teejusb committed Mar 24, 2022
1 parent 3f5462c commit 5598a8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ local af = args.af
local already_loaded = {}

-- get a table like { "ITG", "FA+" }
local judgment_dirs = FILEMAN:GetDirListing(THEME:GetCurrentThemeDirectory().."/Graphics/_judgments/", true, false)
local judgment_dirs = FILEMAN:GetDirListing(THEME:GetCurrentThemeDirectory().."Graphics/_judgments/", true, false)

for profile in ivalues(args.profile_data) do
if profile.judgment ~= nil and profile.judgment ~= "" and not FindInTable(profile.judgment, already_loaded) then

for dir in ivalues(judgment_dirs) do

local path = ("/%s/Graphics/_judgments/%s/%s"):format(THEME:GetCurrentThemeDirectory(), dir, profile.judgment)
-- THEME:GetCurrentThemeDirectory() already has a trailing slash.
local path = ("/%sGraphics/_judgments/%s/%s"):format(THEME:GetCurrentThemeDirectory(), dir, profile.judgment)
if FILEMAN:DoesFileExist(path) then

af[#af+1] = Def.Sprite{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local noteskins = NOTESKIN:GetNoteSkinNames()
local judgment_graphics = {}

-- get a table like { "ITG", "FA+" }
local judgment_dirs = FILEMAN:GetDirListing(THEME:GetCurrentThemeDirectory().."/Graphics/_judgments/", true, false)
local judgment_dirs = FILEMAN:GetDirListing(THEME:GetCurrentThemeDirectory().."Graphics/_judgments/", true, false)
for dir in ivalues(judgment_dirs) do
judgment_graphics[dir] = GetJudgmentGraphics(dir)
end
Expand Down

0 comments on commit 5598a8d

Please sign in to comment.