Skip to content

Commit

Permalink
move crash handler to Main
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimAkra committed Oct 11, 2024
1 parent 19b1d68 commit f5053a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
<haxedef name="HXCPP_STACK_LINE" />
<haxedef name="HXCPP_STACK_TRACE" />
<haxedef name="HXCPP_CATCH_SEGV" />
<!--<haxedef name="HXCPP_STACK_VARS" />
<haxedef name="HXCPP_TELEMETRY" />-->
<!-- <haxedef name="HXCPP_STACK_VARS" /> -->
<!-- <haxedef name="HXCPP_TELEMETRY" /> -->
</section>

<certificate path="key.keystore" password="neutronengine" alias="neutronengine" alias-password="neutronengine" if="android" unless="debug" />
Expand Down
2 changes: 2 additions & 0 deletions source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package;

import backend.InitState;
import flixel.FlxGame;
import frontend.system.CrashHandler;
import frontend.system.FPSCounter;
import openfl.display.Sprite;

Expand All @@ -12,6 +13,7 @@ class Main extends Sprite

public function new():Void
{
CrashHandler.init();
super();

#if mobile
Expand Down
2 changes: 0 additions & 2 deletions source/backend/InitState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import backend.assets.AssetLibrary;
import backend.assets.Paths;
import backend.input.Controls;
import backend.music.Conductor;
import frontend.system.CrashHandler;
import frontend.system.FPSCounter;
import states.menus.TitleState;
import states.test.ConductorPrototype;
Expand All @@ -16,7 +15,6 @@ class InitState extends flixel.FlxState
{
super.create();

CrashHandler.init();
AssetLibrary.init();
Paths.cacheFallbackAssets();
FlxG.plugins.addPlugin(new Controls());
Expand Down
4 changes: 2 additions & 2 deletions source/states/menus/MainMenuState.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package states.menus;

import flixel.FlxState;
import backend.GameState;

class MainMenuState extends FlxState
class MainMenuState extends GameState
{
override public function create():Void
{
Expand Down

0 comments on commit f5053a3

Please sign in to comment.