mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
make showing loading screen on launch configurable
This commit is contained in:
parent
63451eb858
commit
97d62e4c04
2 changed files with 6 additions and 3 deletions
|
@ -181,6 +181,8 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
|||
game->shuttingdown = false;
|
||||
game->restart = false;
|
||||
|
||||
game->show_loading_on_launch = false;
|
||||
|
||||
return game;
|
||||
}
|
||||
|
||||
|
@ -203,9 +205,8 @@ SYMBOL_EXPORT int libsuperderpy_run(struct Game *game) {
|
|||
|
||||
struct Gamestate *tmp = game->_priv.gamestates;
|
||||
while (tmp) {
|
||||
// don't show loading screen on init
|
||||
// TODO: make it configurable
|
||||
tmp->showLoading = false;
|
||||
// don't show loading screen on init if requested
|
||||
tmp->showLoading = game->show_loading_on_launch;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
|
|
|
@ -120,6 +120,8 @@ struct Game {
|
|||
bool shuttingdown; /*!< If true then shut down of the game is pending. */
|
||||
bool restart; /*!< If true then restart of the game is pending. */
|
||||
|
||||
bool show_loading_on_launch;
|
||||
|
||||
const char* name;
|
||||
|
||||
LIBSUPERDERPY_DATA_TYPE *data;
|
||||
|
|
Loading…
Add table
Reference in a new issue