Reload sysconf file on stop in order to preserve changes committed during emulation

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7277 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2011-03-03 00:07:33 +00:00
parent da4832ed7e
commit bda0794adb
3 changed files with 31 additions and 9 deletions

View File

@ -78,12 +78,6 @@ struct SSysConfEntry
class SysConf
{
private:
SSysConfHeader m_Header;
std::string m_Filename;
std::vector<SSysConfEntry> m_Entries;
bool m_IsValid;
public:
SysConf();
~SysConf();
@ -182,8 +176,17 @@ public:
bool Save();
bool SaveToFile(const char* filename);
bool LoadFromFile(const char* filename);
bool Reload();
private:
bool LoadFromFileInternal(FILE *f);
void Clear();
SSysConfHeader m_Header;
std::string m_Filename;
std::string m_FilenameDefault;
std::vector<SSysConfEntry> m_Entries;
bool m_IsValid;
};
#endif // __SYSCONF_MANAGER_h__