1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-29 13:48:50 +00:00

Add mod list to crash logs

This commit is contained in:
EliteMasterEric 2024-05-02 04:07:56 -04:00
parent cf01157b39
commit 75af1b3947
2 changed files with 24 additions and 0 deletions

View file

@ -52,6 +52,8 @@ class PolymodHandler
null
#end;
public static var loadedModIds:Array<String> = [];
/**
* If the mods folder doesn't exist, create it.
*/
@ -159,9 +161,11 @@ class PolymodHandler
}
}
loadedModIds = [];
for (mod in loadedModList)
{
trace(' * ${mod.title} v${mod.modVersion} [${mod.id}]');
loadedModIds.push(mod.id);
}
#if debug

View file

@ -162,6 +162,26 @@ class CrashHandler
fullContents += '\n';
fullContents += 'Loaded mods: \n';
if (funkin.modding.PolymodHandler.loadedModIds.length == 0)
{
fullContents += 'No mods loaded.\n';
}
else
{
for (mod in funkin.modding.PolymodHandler.loadedModIds)
{
fullContents += '- ${mod}\n';
}
}
fullContents += '\n';
fullContents += '=====================\n';
fullContents += '\n';
fullContents += message;
fullContents += '\n';