mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-29 05:33:01 +00:00
Code to cope with errors from an incomplete preferences file
This commit is contained in:
parent
c9af62f191
commit
35d3ea9991
@ -102,7 +102,10 @@ bool
|
||||
parse_screen_prefs(const char *mode_str)
|
||||
{
|
||||
if ( ! mode_str )
|
||||
return false;
|
||||
{
|
||||
// No screen pref was found. Supply a default:
|
||||
mode_str = "win/512/384";
|
||||
}
|
||||
|
||||
if (sscanf(mode_str, "win/%hd/%hd/%hd",
|
||||
&init_width, &init_height, &init_depth) == 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user