mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-07-03 09:06:49 +00:00
Add mod list to crash logs
This commit is contained in:
parent
cf01157b39
commit
75af1b3947
|
@ -52,6 +52,8 @@ class PolymodHandler
|
||||||
null
|
null
|
||||||
#end;
|
#end;
|
||||||
|
|
||||||
|
public static var loadedModIds:Array<String> = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the mods folder doesn't exist, create it.
|
* If the mods folder doesn't exist, create it.
|
||||||
*/
|
*/
|
||||||
|
@ -159,9 +161,11 @@ class PolymodHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadedModIds = [];
|
||||||
for (mod in loadedModList)
|
for (mod in loadedModList)
|
||||||
{
|
{
|
||||||
trace(' * ${mod.title} v${mod.modVersion} [${mod.id}]');
|
trace(' * ${mod.title} v${mod.modVersion} [${mod.id}]');
|
||||||
|
loadedModIds.push(mod.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if debug
|
#if debug
|
||||||
|
|
|
@ -162,6 +162,26 @@ class CrashHandler
|
||||||
|
|
||||||
fullContents += '\n';
|
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 += message;
|
||||||
|
|
||||||
fullContents += '\n';
|
fullContents += '\n';
|
||||||
|
|
Loading…
Reference in a new issue