2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

Implement CGameOptionsTouchBar

This commit is contained in:
Jack Andersen
2017-02-09 23:00:57 -10:00
parent c806f4a612
commit 17d986bb43
17 changed files with 1255 additions and 111 deletions

View File

@@ -382,7 +382,7 @@ void CGameOptions::EnsureSettings()
}
void CGameOptions::TryRestoreDefaults(const CFinalInput& input, int category,
int option, bool frontend)
int option, bool frontend, bool forceRestore)
{
const std::pair<int, const SGameOption*>& options = GameOptionsRegistry[category];
if (!options.first)
@@ -391,7 +391,7 @@ void CGameOptions::TryRestoreDefaults(const CFinalInput& input, int category,
if (options.second[option].option != EGameOption::RestoreDefaults)
return;
if (!input.PA())
if (!forceRestore && !input.PA())
return;
if (frontend)