mirror of https://github.com/PCSX2/pcsx2.git
zzogl-pg: properly convert wxstring to string
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4516 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
0fef0e4e6c
commit
ef979dde29
|
@ -27,13 +27,14 @@
|
|||
|
||||
void SaveConfig()
|
||||
{
|
||||
const wxString iniFile(Path::Combine(s_strIniPath, L"zzogl-pg.ini"));
|
||||
const wxString iniFile_s(Path::Combine(s_strIniPath, L"zzogl-pg.ini"));
|
||||
std::string iniFile = std::string(iniFile_s.mb_str());
|
||||
|
||||
FILE* f = fopen(iniFile.mb_str(), "w");
|
||||
FILE* f = fopen(iniFile.c_str(), "w");
|
||||
|
||||
if (f == NULL)
|
||||
{
|
||||
// ZZLog::Error_Log("Failed to open '%s'", iniFile.mb_str());
|
||||
ZZLog::Error_Log("Failed to open '%s'", iniFile.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -67,13 +68,14 @@ void LoadConfig()
|
|||
conf.height = 600;
|
||||
conf.disableHacks = 0;
|
||||
|
||||
const wxString iniFile(Path::Combine(s_strIniPath, L"zzogl-pg.ini"));
|
||||
const wxString iniFile_s(Path::Combine(s_strIniPath, L"zzogl-pg.ini"));
|
||||
std::string iniFile = std::string(iniFile_s.mb_str());
|
||||
|
||||
FILE* f = fopen(iniFile.mb_str(), "r");
|
||||
FILE* f = fopen(iniFile.c_str(), "r");
|
||||
|
||||
if (f == NULL)
|
||||
{
|
||||
// ZZLog::Error_Log("Failed to open '%s'", iniFile.mb_str());
|
||||
ZZLog::Error_Log("Failed to open '%s'", iniFile.c_str());
|
||||
SaveConfig();//save and return
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue