Skip to content

Error when game starts #3130

Answered by Geokureli
Joalor64GH asked this question in Q&A
Apr 29, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

If you're using -debug it should tell you the line number where it happens, the line you link above seems fine, though I think you could benefit from the type safety of doing:

typedef SaveSettings = {
    var timeFormat:TimeFormatSetting;
    var theme:ThemeSetting;
    var lang:LanguageSetting;
    var username:String;
    var profile:String;
    var framerate:Int;
    var colorBlindFilter:ColorBlindFilterSetting;
    var fpsCounter:Bool;
    #if desktop
    var fullscreen:Bool;
    #end
    var keyboardBinds:Array<FlxKey>;
    var gamepadBinds:Array<FlxGamepadInputID>;
}

enum abstract TimeFormatSetting(String) {
    var DEFAULT = "%r";
}

enum abstract ThemeSetting(String) {
    var DAY =

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Joalor64GH
Comment options

@Geokureli
Comment options

@Joalor64GH
Comment options

@Geokureli
Comment options

Answer selected by Joalor64GH
@Joalor64GH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3129 on April 29, 2024 15:40.