Skip to content

Commit

Permalink
fix crash handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolka9144 committed Oct 31, 2024
1 parent eb47d71 commit f916adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import options.OptionsState;
class MainMenuState extends MusicBeatState
{
public static var psychEngineVersion:String = '0.6.3'; // This is also used for Discord RPC
public static var pSliceVersion:String = '2.0';
public static var pSliceVersion:String = '2.0.1';
public static var funkinVersion:String = '0.5.1'; // Version of funkin' we are emulationg
public static var curSelected:Int = 0;

Expand Down
4 changes: 3 additions & 1 deletion source/mikolka/vslice/CrashState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CrashState extends FlxState
super.create();
var previousScreen = new FlxSprite(0, 0, screenBelow);
previousScreen.setGraphicSize(FlxG.width,FlxG.height);
previousScreen.updateHitbox();

textBg = new FlxSprite();
FunkinTools.makeSolidColor(textBg, Math.floor(FlxG.width * 0.73), FlxG.height, 0x86000000);
Expand Down Expand Up @@ -111,7 +112,8 @@ class CrashState extends FlxState
if (Main.fpsVar != null) Main.fpsVar.visible = ClientPrefs.data.showFPS;
if (Main.memoryCounter != null) Main.memoryCounter.visible = ClientPrefs.data.showFPS;
#end
FlxG.sound.music = null;
FlxG.sound.pause();
FlxTween.globalManager.clear();
FlxG.resetGame();
}
}
Expand Down

0 comments on commit f916adf

Please sign in to comment.