bugfixes
This commit is contained in:
@@ -46,4 +46,5 @@ namespace Defaults::Game {
|
||||
constexpr int DINERS_INICIAL = 0;
|
||||
constexpr bool USE_NEW_LOGO = true;
|
||||
constexpr bool SHOW_TITLE_CREDITS = true;
|
||||
constexpr bool SHOW_PRELOAD = false;
|
||||
} // namespace Defaults::Game
|
||||
|
||||
@@ -219,6 +219,8 @@ namespace Options {
|
||||
game.use_new_logo = node["use_new_logo"].get_value<bool>();
|
||||
if (node.contains("show_title_credits"))
|
||||
game.show_title_credits = node["show_title_credits"].get_value<bool>();
|
||||
if (node.contains("show_preload"))
|
||||
game.show_preload = node["show_preload"].get_value<bool>();
|
||||
}
|
||||
|
||||
// Carrega les opcions des del fitxer configurat
|
||||
@@ -368,6 +370,7 @@ namespace Options {
|
||||
file << "game:\n";
|
||||
file << " use_new_logo: " << (game.use_new_logo ? "true" : "false") << "\n";
|
||||
file << " show_title_credits: " << (game.show_title_credits ? "true" : "false") << "\n";
|
||||
file << " show_preload: " << (game.show_preload ? "true" : "false") << "\n";
|
||||
file << "\n";
|
||||
|
||||
// CONTROLS — només moviment del jugador. Les tecles d'UI viuen a
|
||||
|
||||
@@ -90,6 +90,7 @@ namespace Options {
|
||||
int diners_inicial{Defaults::Game::DINERS_INICIAL};
|
||||
bool use_new_logo{Defaults::Game::USE_NEW_LOGO};
|
||||
bool show_title_credits{Defaults::Game::SHOW_TITLE_CREDITS};
|
||||
bool show_preload{Defaults::Game::SHOW_PRELOAD};
|
||||
};
|
||||
|
||||
// Preset PostFX
|
||||
|
||||
Reference in New Issue
Block a user