mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-20 00:31:28 +00:00
support for prefs stuff
This commit is contained in:
parent
eae5f4ec20
commit
a70c79b3cb
@ -53,6 +53,11 @@ extern int32 PrefsFindInt32(const char *name);
|
||||
|
||||
extern void PrefsRemoveItem(const char *name, int index = 0);
|
||||
|
||||
#ifdef SHEEPSHAVER
|
||||
// Platform specific functions:
|
||||
extern void prefs_init();
|
||||
extern void prefs_exit();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Definition of preferences items
|
||||
|
@ -121,6 +121,11 @@ void PrefsInit(int &argc, char **&argv)
|
||||
argc -= k;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SHEEPSHAVER
|
||||
// System specific initialization
|
||||
prefs_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -130,6 +135,11 @@ void PrefsInit(int &argc, char **&argv)
|
||||
|
||||
void PrefsExit(void)
|
||||
{
|
||||
#ifdef SHEEPSHAVER
|
||||
// System specific deinitialization
|
||||
prefs_exit();
|
||||
#endif
|
||||
|
||||
// Free prefs list
|
||||
prefs_node *p = the_prefs, *next;
|
||||
while (p) {
|
||||
|
Loading…
Reference in New Issue
Block a user