Skip to content

Commit

Permalink
something i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 12, 2024
1 parent 5ca019d commit fe2e76b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions source/states/ScriptedState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ class ScriptedState extends ExtendableState {
#end

for (folder in folders) {
if (FileSystem.exists(Paths.script(folder + path))) {
path = Paths.script(folder + path);
if (FileSystem.exists(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.startsWith(path) && file.endsWith('.hxs')) {
path = folder + file;
}
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions source/substates/ScriptedSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ class ScriptedSubState extends ExtendableSubState {
#end

for (folder in folders) {
if (FileSystem.exists(Paths.script(folder + path))) {
path = Paths.script(folder + path);
if (FileSystem.exists(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.startsWith(path) && file.endsWith('.hxs')) {
path = folder + file;
}
}
}
}

Expand Down

0 comments on commit fe2e76b

Please sign in to comment.