mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-21 20:39:52 -04:00
Add mod list to crash logs
This commit is contained in:
parent
cf01157b39
commit
75af1b3947
2 changed files with 24 additions and 0 deletions
source/funkin
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue