Skip to content

Commit 1716dc4

Browse files
committed
oh yeah i almost forgot
1 parent 522256a commit 1716dc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/funkin/backend/assets/Paths.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class Paths
2525

2626
public static inline function getPath(file:String, ?library:String) {
2727
var returnedPath:String = library != null ? '$library:assets/$library/$file' : 'assets/$file';
28-
#if linux
28+
#if (sys && !windows)
2929
returnedPath = Path.normalize(returnedPath);
30+
if (OpenFlAssets.exists(returnedPath)) return returnedPath;
3031
var fixedPath:String = library != null ? '$library:assets/$library/' : 'assets/';
3132
var parts:Array<String> = returnedPath.split("/");
3233
for (it=>part in parts) {

0 commit comments

Comments
 (0)