Fixed SRAM path saving when loaded from config file. Fixed loading of sound off.

This commit is contained in:
n-a-c-h
2005-02-06 03:32:17 +00:00
parent 037ab63ae3
commit e699bfb4dd

View File

@@ -562,7 +562,7 @@ void DOScreatenewcfg()
WRITE_LINE("; Savefile directory. Leave it blank if you want the save files to be in the\r\n"); WRITE_LINE("; Savefile directory. Leave it blank if you want the save files to be in the\r\n");
WRITE_LINE("; same directory as the games. It should be in a format like : C:\\dir\\dir\r\n\r\n"); WRITE_LINE("; same directory as the games. It should be in a format like : C:\\dir\\dir\r\n\r\n");
if (changedsavedir) if (changedsavedir || cfgloadsdir)
{ {
sprintf(buffer, "SaveDirectory = %s\r\n\r\n", SRAMDir); sprintf(buffer, "SaveDirectory = %s\r\n\r\n", SRAMDir);
} }
@@ -1042,12 +1042,9 @@ void getcfg()
{ {
if (_strlenb == 1) if (_strlenb == 1)
{ {
if (*_stringb == '1') spcon = ASCIIChar2Bool(*_stringb); // SPC Enabled?
{ soundon = ASCIIChar2Bool(*_stringb);
spcon = 1; // SPC Enabled cfgsoundon = ASCIIChar2Bool(*_stringb);
soundon = 1;
cfgsoundon = 1;
}
} }
} }
} }