mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 06:09:02 +00:00
Catch a potential crash when retrieving the render method
This commit is contained in:
parent
72c83e7eb0
commit
02cc41fc98
|
|
@ -242,6 +242,8 @@ class CrashHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
static function renderMethod():String
|
static function renderMethod():String
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
return switch (FlxG.renderMethod)
|
return switch (FlxG.renderMethod)
|
||||||
{
|
{
|
||||||
|
|
@ -250,4 +252,9 @@ class CrashHandler
|
||||||
default: 'UNKNOWN';
|
default: 'UNKNOWN';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (e)
|
||||||
|
{
|
||||||
|
return 'ERROR ON QUERY RENDER METHOD: ${e}';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue