Skip to content

Commit

Permalink
Update Paths.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Dec 13, 2024
1 parent 660a1fe commit d02cab8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/backend/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ class Paths {
return file('$key.xml');

inline static public function script(key:String) {
for (ext in HSCRIPT_EXT) {
if (exists(file(key + ext)))
return file(key + ext);
}
return file('$key.hxs');
var extension = '.hxs';

for (ext in HSCRIPT_EXT)
extension = (exists(file(key + ext))) ? ext : extension;

return file(key + extension);
}

inline static public function frag(key:String)
Expand Down

0 comments on commit d02cab8

Please sign in to comment.