1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

completion server fixin?

This commit is contained in:
Cameron Taylor 2024-08-21 16:31:10 -04:00
parent cee5d53deb
commit e1d8e758bb

View file

@ -265,9 +265,10 @@ class CrashHandler
static function renderMethod():String static function renderMethod():String
{ {
try var outputStr:String = 'UNKNOWN';
outputStr = try
{ {
return switch (FlxG.renderMethod) switch (FlxG.renderMethod)
{ {
case FlxRenderMethod.DRAW_TILES: 'DRAW_TILES'; case FlxRenderMethod.DRAW_TILES: 'DRAW_TILES';
case FlxRenderMethod.BLITTING: 'BLITTING'; case FlxRenderMethod.BLITTING: 'BLITTING';
@ -276,7 +277,11 @@ class CrashHandler
} }
catch (e) catch (e)
{ {
return 'ERROR ON QUERY RENDER METHOD: ${e}'; 'ERROR ON QUERY RENDER METHOD: ${e}';
} }
if (outputStr == null) outputStr = 'UNKNOWN';
return outputStr;
} }
} }