mirror of https://github.com/snes9xgit/snes9x.git
Unix: fix segfault, fix hang-up with -DNOSOUND.
This commit is contained in:
parent
bd1c44b8e6
commit
fb2f4b0f12
|
@ -891,11 +891,13 @@ void S9xAutoSaveSRAM (void)
|
|||
|
||||
void S9xSyncSpeed (void)
|
||||
{
|
||||
#ifndef NOSOUND
|
||||
if (Settings.SoundSync)
|
||||
{
|
||||
while (!S9xSyncSound())
|
||||
usleep(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (Settings.DumpStreams)
|
||||
return;
|
||||
|
@ -1550,6 +1552,7 @@ int main (int argc, char **argv)
|
|||
printf("\n\nSnes9x " VERSION " for unix\n");
|
||||
|
||||
snprintf(default_dir, PATH_MAX + 1, "%s%s%s", getenv("HOME"), SLASH_STR, ".snes9x");
|
||||
s9x_base_dir = default_dir;
|
||||
|
||||
ZeroMemory(&Settings, sizeof(Settings));
|
||||
Settings.MouseMaster = TRUE;
|
||||
|
|
Loading…
Reference in New Issue