Enable autopause by default

...and disable live reload, which depends on autopause to work.
This commit is contained in:
Sebastian Krzyszkowiak 2020-11-07 06:26:10 +01:00
parent ef22a0931f
commit c235d53f1d
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -123,11 +123,11 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
if (game->config.width < 100) { game->config.width = 100; }
game->config.height = strtol(GetConfigOptionDefault(game, "SuperDerpy", "height", GetDefaultWindowHeight(game)), NULL, 10);
if (game->config.height < 100) { game->config.height = 100; }
game->config.autopause = strtol(GetConfigOptionDefault(game, "SuperDerpy", "autopause", IS_EMSCRIPTEN ? "1" : "0"), NULL, 10);
game->config.autopause = strtol(GetConfigOptionDefault(game, "SuperDerpy", "autopause", "1"), NULL, 10);
game->config.debug.enabled = strtol(GetConfigOptionDefault(game, "SuperDerpy", "debug", "0"), NULL, 10);
game->config.debug.verbose = strtol(GetConfigOptionDefault(game, "debug", "verbose", "0"), NULL, 10);
game->config.debug.livereload = strtol(GetConfigOptionDefault(game, "debug", "livereload", "1"), NULL, 10);
game->config.debug.livereload = strtol(GetConfigOptionDefault(game, "debug", "livereload", "0"), NULL, 10);
#ifdef __EMSCRIPTEN__
game->config.fullscreen = false; // we can't start fullscreen on emscripten