Fixed the pcsx2 startup crash when no pcsx2.ini is present.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@118 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2008-09-13 10:39:12 +00:00 committed by Gregory Hainaut
parent 9aed7a2aad
commit 832ac7f609
1 changed files with 5 additions and 3 deletions

View File

@ -190,9 +190,11 @@ void SaveConfig() {
//cpu
sprintf(szValue,"%u", Conf->Options);
WritePrivateProfileString("Cpu Options","Options",szValue,szIniFile);
sprintf(szValue,"%u",Conf->sseMXCSR);
WritePrivateProfileString("Cpu Options","sseMXCSR",szValue,szIniFile);
sprintf(szValue,"%u",Conf->sseVUMXCSR);
if (Conf->sseMXCSR != 0) sprintf(szValue,"%u",Conf->sseMXCSR);
else sprintf(szValue,"%u",40896); // defaults
WritePrivateProfileString("Cpu Options","sseMXCSR",szValue,szIniFile);
if (Conf->sseVUMXCSR != 0) sprintf(szValue,"%u",Conf->sseVUMXCSR);
else sprintf(szValue,"%u",32640); // defaults
WritePrivateProfileString("Cpu Options","sseVUMXCSR",szValue,szIniFile);
//Misc
sprintf(szValue,"%u",Conf->Patch);