fix pref item "cdrom"

This commit is contained in:
kanjitalk755 2022-06-02 20:36:31 +09:00
parent 5900e4895a
commit f017f9df58
5 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,9 @@ void LoadPrefs(const char * vmdir) // TODO: load prefs from 'vmdir'
fclose(f);
} else {
#ifdef __linux__
PrefsAddString("cdrom", "/dev/cdrom");
#endif
// No prefs file, save defaults
SavePrefs();
}

View File

@ -84,7 +84,9 @@ void LoadPrefs(const char *vmdir)
fclose(f);
} else {
#ifdef __linux__
PrefsAddString("cdrom", "/dev/cdrom");
#endif
// No prefs file, save defaults
SavePrefs();
}

View File

@ -132,7 +132,4 @@ void AddPrefsDefaults(void)
PrefsAddBool("swap_opt_cmd", true);
#endif
PrefsAddBool("ignoresegv", true);
#ifdef __linux__
PrefsAddString("cdrom", "/dev/cdrom");
#endif
}

View File

@ -91,7 +91,9 @@ void LoadPrefs(const char *vmdir)
fclose(f);
} else {
#ifdef __linux__
PrefsAddString("cdrom", "/dev/cdrom");
#endif
// No prefs file, save defaults
SavePrefs();
}

View File

@ -113,7 +113,4 @@ void AddPrefsDefaults(void)
#else
PrefsAddBool("swap_opt_cmd", true);
#endif
#ifdef __linux__
PrefsAddString("cdrom", "/dev/cdrom");
#endif
}