mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-18 17:31:08 +00:00
Corrected removal of bad serial prefs data
This commit is contained in:
parent
a77b3c7204
commit
9cdba256f8
@ -95,14 +95,14 @@ void LoadPrefs(void)
|
|||||||
&& strcmp(str, "/dev/ttys0") == 0 )
|
&& strcmp(str, "/dev/ttys0") == 0 )
|
||||||
{
|
{
|
||||||
puts("Deleting invalid prefs item 'seriala /dev/ttys0'");
|
puts("Deleting invalid prefs item 'seriala /dev/ttys0'");
|
||||||
PrefsRemoveItem("seriala");
|
PrefsRemoveItem("seriala", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (str = PrefsFindString("serialb") ) != NULL
|
if ( (str = PrefsFindString("serialb") ) != NULL
|
||||||
&& strcmp(str, "/dev/ttys1") == 0 )
|
&& strcmp(str, "/dev/ttys1") == 0 )
|
||||||
{
|
{
|
||||||
puts("Deleting invalid prefs item 'serialb /dev/ttys1'");
|
puts("Deleting invalid prefs item 'serialb /dev/ttys1'");
|
||||||
PrefsRemoveItem("serialb");
|
PrefsRemoveItem("serialb", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user