diff --git a/src/libsuperderpy.c b/src/libsuperderpy.c index 5f3f7cd..2eb3b25 100644 --- a/src/libsuperderpy.c +++ b/src/libsuperderpy.c @@ -129,6 +129,10 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char* game->config.debug.verbose = strtol(GetConfigOptionDefault(game, "debug", "verbose", "0"), NULL, 10); game->config.debug.livereload = strtol(GetConfigOptionDefault(game, "debug", "livereload", "0"), NULL, 10); + if (params.no_autopause) { + game->config.autopause = false; + } + #ifdef __EMSCRIPTEN__ game->config.fullscreen = false; // we can't start fullscreen on emscripten #endif diff --git a/src/libsuperderpy.h b/src/libsuperderpy.h index f262f9d..e25db70 100644 --- a/src/libsuperderpy.h +++ b/src/libsuperderpy.h @@ -140,6 +140,7 @@ struct Params { bool depth_buffer; /*!< Request a depth buffer for the framebuffer's render target. */ bool show_loading_on_launch; /*!< Whether the loading screen should be shown when loading the initial set of gamestates. */ bool fixed_size; /*!< If set to true, the game's window will not be resizable. */ + bool no_autopause; /*!< If set to true, engine autopause is forced to be disabled. */ int samples; /*!< How many samples should be used for multisampling; 0 to disable. */ int sample_rate; /*!< Default sample rate of audio output; 0 to use engine default. */ char* window_title; /*!< A title of the game's window. When NULL, al_get_app_name() is used. */