Respect ini file path on reset settings.

This is the easiest way to force settings to the memstick, but it means
erasing the existing ones.
This commit is contained in:
Unknown W. Brackets 2013-10-12 16:05:00 -07:00
parent 79143b56d2
commit c0e3f1523e

View File

@ -493,9 +493,8 @@ const std::string Config::FindConfigFile(const std::string &baseFilename) {
}
void Config::RestoreDefaults() {
// TODO: This should probably use the correct path?
if(File::Exists("ppsspp.ini"))
File::Delete("ppsspp.ini");
if(File::Exists(iniFilename_))
File::Delete(iniFilename_);
recentIsos.clear();
currentDirectory = "";
Load();