mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
9aed7a2aad
commit
832ac7f609
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue