mirror of https://github.com/PCSX2/pcsx2.git
different way to fix the pcsx2.ini crash.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@120 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
af18a6c626
commit
7107048266
|
@ -464,8 +464,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
strcpy(Config.PluginsDir, "Plugins\\");
|
strcpy(Config.PluginsDir, "Plugins\\");
|
||||||
Config.Patch = 1;
|
Config.Patch = 1;
|
||||||
Config.Options = PCSX2_EEREC|PCSX2_VU0REC|PCSX2_VU1REC|PCSX2_COP2REC;
|
Config.Options = PCSX2_EEREC|PCSX2_VU0REC|PCSX2_VU1REC|PCSX2_COP2REC;
|
||||||
Config.sseMXCSR = g_sseMXCSR;
|
Config.sseMXCSR = DEFAULT_sseMXCSR;
|
||||||
Config.sseVUMXCSR = g_sseVUMXCSR;
|
Config.sseVUMXCSR = DEFAULT_sseVUMXCSR;
|
||||||
|
|
||||||
|
|
||||||
SysMessage(_("Pcsx2 needs to be configured"));
|
SysMessage(_("Pcsx2 needs to be configured"));
|
||||||
|
|
|
@ -190,11 +190,9 @@ void SaveConfig() {
|
||||||
//cpu
|
//cpu
|
||||||
sprintf(szValue,"%u", Conf->Options);
|
sprintf(szValue,"%u", Conf->Options);
|
||||||
WritePrivateProfileString("Cpu Options","Options",szValue,szIniFile);
|
WritePrivateProfileString("Cpu Options","Options",szValue,szIniFile);
|
||||||
if (Conf->sseMXCSR != 0) sprintf(szValue,"%u",Conf->sseMXCSR);
|
sprintf(szValue,"%u",Conf->sseMXCSR);
|
||||||
else sprintf(szValue,"%u",40896); // defaults
|
|
||||||
WritePrivateProfileString("Cpu Options","sseMXCSR",szValue,szIniFile);
|
WritePrivateProfileString("Cpu Options","sseMXCSR",szValue,szIniFile);
|
||||||
if (Conf->sseVUMXCSR != 0) sprintf(szValue,"%u",Conf->sseVUMXCSR);
|
sprintf(szValue,"%u",Conf->sseVUMXCSR);
|
||||||
else sprintf(szValue,"%u",32640); // defaults
|
|
||||||
WritePrivateProfileString("Cpu Options","sseVUMXCSR",szValue,szIniFile);
|
WritePrivateProfileString("Cpu Options","sseVUMXCSR",szValue,szIniFile);
|
||||||
//Misc
|
//Misc
|
||||||
sprintf(szValue,"%u",Conf->Patch);
|
sprintf(szValue,"%u",Conf->Patch);
|
||||||
|
|
Loading…
Reference in New Issue