No, i don't check what i committed before pushing to master, one week before a release.
Fixes a mistake from 550c855ae6
.
This commit is contained in:
parent
550c855ae6
commit
b4c082f1b3
|
@ -1077,8 +1077,8 @@ bool CISOProperties::SaveGameConfig()
|
||||||
bool success = GameIniLocal.Save(GameIniFileLocal.c_str());
|
bool success = GameIniLocal.Save(GameIniFileLocal.c_str());
|
||||||
|
|
||||||
// If the resulting file is empty, delete it. Kind of a hack, but meh.
|
// If the resulting file is empty, delete it. Kind of a hack, but meh.
|
||||||
//if (success && File::GetSize(GameIniFileLocal) == 0)
|
if (success && File::GetSize(GameIniFileLocal) == 0)
|
||||||
// File::Delete(GameIniFileLocal);
|
File::Delete(GameIniFileLocal);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
@ -1122,7 +1122,7 @@ void CISOProperties::OnEditConfig(wxCommandEvent& WXUNUSED (event))
|
||||||
// Create blank file to prevent editor from prompting to create it.
|
// Create blank file to prevent editor from prompting to create it.
|
||||||
if (!File::Exists(GameIniFileLocal))
|
if (!File::Exists(GameIniFileLocal))
|
||||||
{
|
{
|
||||||
std::fstream blankFile(GameIniFileLocal);
|
std::fstream blankFile(GameIniFileLocal, std::ios::out);
|
||||||
blankFile.close();
|
blankFile.close();
|
||||||
}
|
}
|
||||||
LaunchExternalEditor(GameIniFileLocal);
|
LaunchExternalEditor(GameIniFileLocal);
|
||||||
|
|
Loading…
Reference in New Issue