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\\");
|
||||
Config.Patch = 1;
|
||||
Config.Options = PCSX2_EEREC|PCSX2_VU0REC|PCSX2_VU1REC|PCSX2_COP2REC;
|
||||
Config.sseMXCSR = g_sseMXCSR;
|
||||
Config.sseVUMXCSR = g_sseVUMXCSR;
|
||||
Config.sseMXCSR = DEFAULT_sseMXCSR;
|
||||
Config.sseVUMXCSR = DEFAULT_sseVUMXCSR;
|
||||
|
||||
|
||||
SysMessage(_("Pcsx2 needs to be configured"));
|
||||
|
|
|
@ -190,11 +190,9 @@ void SaveConfig() {
|
|||
//cpu
|
||||
sprintf(szValue,"%u", Conf->Options);
|
||||
WritePrivateProfileString("Cpu Options","Options",szValue,szIniFile);
|
||||
if (Conf->sseMXCSR != 0) sprintf(szValue,"%u",Conf->sseMXCSR);
|
||||
else sprintf(szValue,"%u",40896); // defaults
|
||||
sprintf(szValue,"%u",Conf->sseMXCSR);
|
||||
WritePrivateProfileString("Cpu Options","sseMXCSR",szValue,szIniFile);
|
||||
if (Conf->sseVUMXCSR != 0) sprintf(szValue,"%u",Conf->sseVUMXCSR);
|
||||
else sprintf(szValue,"%u",32640); // defaults
|
||||
sprintf(szValue,"%u",Conf->sseVUMXCSR);
|
||||
WritePrivateProfileString("Cpu Options","sseVUMXCSR",szValue,szIniFile);
|
||||
//Misc
|
||||
sprintf(szValue,"%u",Conf->Patch);
|
||||
|
|
Loading…
Reference in New Issue