1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-04-21 21:04:48 +00:00

allow shared lib to be used without needing to have a level selected

This commit is contained in:
MtH 2021-09-07 23:10:43 +02:00
parent d0800fcd39
commit ba4793cef4

View file

@ -25,12 +25,12 @@ class Paths
var levelPath = getLibraryPathForce(file, currentLevel); var levelPath = getLibraryPathForce(file, currentLevel);
if (OpenFlAssets.exists(levelPath, type)) if (OpenFlAssets.exists(levelPath, type))
return levelPath; return levelPath;
levelPath = getLibraryPathForce(file, "shared");
if (OpenFlAssets.exists(levelPath, type))
return levelPath;
} }
var levelPath = getLibraryPathForce(file, "shared");
if (OpenFlAssets.exists(levelPath, type))
return levelPath;
return getPreloadPath(file); return getPreloadPath(file);
} }