mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-02 19:53:15 +00:00
Ensure the CrashHandler ALWAYS initializes first so we have stack traces.
This commit is contained in:
parent
902eb3af91
commit
86488a0964
|
@ -33,8 +33,10 @@ class Main extends Sprite
|
|||
|
||||
public static function main():Void
|
||||
{
|
||||
haxe.Log.trace = funkin.util.logging.AnsiTrace.trace;
|
||||
funkin.util.logging.AnsiTrace.traceBF();
|
||||
// We need to make the crash handler LITERALLY FIRST so nothing EVER gets past it.
|
||||
CrashHandler.initialize();
|
||||
CrashHandler.queryStatus();
|
||||
|
||||
Lib.current.addChild(new Main());
|
||||
}
|
||||
|
||||
|
@ -42,7 +44,12 @@ class Main extends Sprite
|
|||
{
|
||||
super();
|
||||
|
||||
// TODO: Replace this with loadEnabledMods().
|
||||
// Initialize custom logging.
|
||||
haxe.Log.trace = funkin.util.logging.AnsiTrace.trace;
|
||||
funkin.util.logging.AnsiTrace.traceBF();
|
||||
|
||||
// Load mods to override assets.
|
||||
// TODO: Replace with loadEnabledMods() once the user can configure the mod list.
|
||||
funkin.modding.PolymodHandler.loadAllMods();
|
||||
|
||||
if (stage != null)
|
||||
|
@ -82,10 +89,6 @@ class Main extends Sprite
|
|||
* -Eric
|
||||
*/
|
||||
|
||||
CrashHandler.initialize();
|
||||
|
||||
CrashHandler.queryStatus();
|
||||
|
||||
initHaxeUI();
|
||||
|
||||
fpsCounter = new FPS(10, 3, 0xFFFFFF);
|
||||
|
|
Loading…
Reference in a new issue