Settings: Move set defaults to HostInterface so it can use user paths

This commit is contained in:
Connor McLaughlin
2020-01-24 14:52:04 +10:00
parent b5e73a0be4
commit faf2308695
5 changed files with 40 additions and 38 deletions

View File

@ -116,6 +116,9 @@ protected:
/// Returns the default path to a memory card for a specific game.
std::string GetGameMemoryCardPath(const char* game_code, u32 slot);
/// Restores all settings to defaults.
void SetDefaultSettings();
/// Applies new settings, updating internal state as needed. apply_callback should call m_settings.Load() after
/// locking any required mutexes.
void UpdateSettings(const std::function<void()>& apply_callback);