mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-20 17:09:21 +00:00
Catch a potential crash when retrieving the render method
This commit is contained in:
parent
72c83e7eb0
commit
02cc41fc98
|
@ -243,11 +243,18 @@ class CrashHandler
|
|||
|
||||
static function renderMethod():String
|
||||
{
|
||||
return switch (FlxG.renderMethod)
|
||||
try
|
||||
{
|
||||
case FlxRenderMethod.DRAW_TILES: 'DRAW_TILES';
|
||||
case FlxRenderMethod.BLITTING: 'BLITTING';
|
||||
default: 'UNKNOWN';
|
||||
return switch (FlxG.renderMethod)
|
||||
{
|
||||
case FlxRenderMethod.DRAW_TILES: 'DRAW_TILES';
|
||||
case FlxRenderMethod.BLITTING: 'BLITTING';
|
||||
default: 'UNKNOWN';
|
||||
}
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return 'ERROR ON QUERY RENDER METHOD: ${e}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue