1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-03-25 11:29:28 +00:00

Polymod fix

This commit is contained in:
Eric Myllyoja 2022-11-23 20:52:03 -05:00
parent a0315fbb83
commit 7ddfe82dab
2 changed files with 6 additions and 2 deletions
hmm.json
source/funkin/modding

View file

@ -107,7 +107,7 @@
"name": "polymod", "name": "polymod",
"type": "git", "type": "git",
"dir": null, "dir": null,
"ref": "cfead69", "ref": "develop",
"url": "https://github.com/larsiusprime/polymod" "url": "https://github.com/larsiusprime/polymod"
}, },
{ {

View file

@ -183,7 +183,11 @@ class PolymodHandler
public static function getAllMods():Array<ModMetadata> public static function getAllMods():Array<ModMetadata>
{ {
trace('Scanning the mods folder...'); trace('Scanning the mods folder...');
var modMetadata = Polymod.scan(); var modMetadata = Polymod.scan({
modRoot: MOD_FOLDER,
apiVersionRule: API_VERSION,
errorCallback: PolymodErrorHandler.onPolymodError
});
trace('Found ${modMetadata.length} mods when scanning.'); trace('Found ${modMetadata.length} mods when scanning.');
return modMetadata; return modMetadata;
} }