1 |
|
/* |
2 |
|
* prefs.h - Preferences handling |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2005 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
23 |
|
|
24 |
|
#include <stdio.h> |
25 |
|
|
26 |
< |
extern void PrefsInit(int argc, char **argv); |
26 |
> |
extern void PrefsInit(int &argc, char **&argv); |
27 |
|
extern void PrefsExit(void); |
28 |
|
|
29 |
+ |
extern void PrefsPrintUsage(void); |
30 |
+ |
|
31 |
|
extern void AddPrefsDefaults(void); |
32 |
|
extern void AddPlatformPrefsDefaults(void); |
33 |
|
|
53 |
|
|
54 |
|
extern void PrefsRemoveItem(const char *name, int index = 0); |
55 |
|
|
56 |
+ |
#ifdef SHEEPSHAVER |
57 |
+ |
// Platform specific functions: |
58 |
+ |
extern void prefs_init(); |
59 |
+ |
extern void prefs_exit(); |
60 |
+ |
#endif |
61 |
|
|
62 |
|
/* |
63 |
|
* Definition of preferences items |
77 |
|
const char *name; // Name of keyword |
78 |
|
prefs_type type; // Type (see above) |
79 |
|
bool multiple; // Can this item occur multiple times (only for TYPE_STRING)? |
80 |
+ |
const char *help; // Help/descriptive text about this item |
81 |
|
}; |
82 |
|
|
83 |
|
// List of common preferences items (those which exist on all platforms) |