Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 349962f

Browse files
committed
Fix .txts not showing up on chart editor w/o mods
1 parent 350c5e2 commit 349962f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: source/psychlua/FunkinLua.hx

+4-1
Original file line numberDiff line numberDiff line change
@@ -1818,12 +1818,15 @@ class FunkinLua {
18181818
}
18191819
}
18201820

1821-
var foldersToCheck:Array<String> = [Paths.mods('shaders/')];
1821+
var foldersToCheck:Array<String> = [Paths.getSharedPath('shaders/')];
1822+
#if MODS_ALLOWED
1823+
foldersToCheck.push(Paths.mods('shaders/'));
18221824
if(Mods.currentModDirectory != null && Mods.currentModDirectory.length > 0)
18231825
foldersToCheck.insert(0, Paths.mods(Mods.currentModDirectory + '/shaders/'));
18241826

18251827
for(mod in Mods.getGlobalMods())
18261828
foldersToCheck.insert(0, Paths.mods(mod + '/shaders/'));
1829+
#end
18271830

18281831
for (folder in foldersToCheck)
18291832
{

Diff for: source/states/editors/ChartingState.hx

-2
Original file line numberDiff line numberDiff line change
@@ -4859,7 +4859,6 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
48594859
}
48604860
}
48614861

4862-
#if MODS_ALLOWED
48634862
for (directory in Mods.directoriesWithFile(Paths.getSharedPath(), mainFolder))
48644863
{
48654864
for (file in FileSystem.readDirectory(directory))
@@ -4879,7 +4878,6 @@ class ChartingState extends MusicBeatState implements PsychUIEventHandler.PsychU
48794878
}
48804879
}
48814880
}
4882-
#end
48834881
return fileList;
48844882
}
48854883

0 commit comments

Comments
 (0)