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:
cottonvibes 2008-09-13 20:05:06 +00:00 committed by Gregory Hainaut
parent af18a6c626
commit 7107048266
2 changed files with 5 additions and 7 deletions

View File

@ -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"));

View File

@ -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);