support for prefs stuff

This commit is contained in:
asvitkine 2007-07-28 15:45:12 +00:00
parent eae5f4ec20
commit a70c79b3cb
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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) {