1 |
|
/* |
2 |
|
* prefs.cpp - Preferences handling |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 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 |
58 |
|
{"fpu", TYPE_BOOLEAN, false}, // Enable FPU emulation (main.cpp) |
59 |
|
{"nocdrom", TYPE_BOOLEAN, false}, // Don't install CD-ROM driver (cdrom.cpp/rom_patches.cpp) |
60 |
|
{"nosound", TYPE_BOOLEAN, false}, // Don't enable sound output (audio_*.cpp) |
61 |
+ |
{"noclipconversion", TYPE_BOOLEAN, false}, // Don't convert clipboard contents (clip_*.cpp) |
62 |
|
{"nogui", TYPE_BOOLEAN, false}, // Disable GUI (main_*.cpp) |
63 |
|
{NULL, TYPE_END, false} // End of list |
64 |
|
}; |
96 |
|
PrefsAddBool("fpu", false); |
97 |
|
PrefsAddBool("nocdrom", false); |
98 |
|
PrefsAddBool("nosound", false); |
99 |
+ |
PrefsAddBool("noclipconversion", false); |
100 |
|
PrefsAddBool("nogui", false); |
101 |
|
AddPlatformPrefsDefaults(); |
102 |
|
|
335 |
|
|
336 |
|
// Skip whitespace until value |
337 |
|
while (isspace(*p)) p++; |
336 |
– |
if (*p == 0) |
337 |
– |
continue; |
338 |
|
char *keyword = line; |
339 |
|
char *value = p; |
340 |
|
int32 i = atol(value); |
394 |
|
fprintf(f, "%s %d\n", list->name, PrefsFindInt16(list->name)); |
395 |
|
break; |
396 |
|
case TYPE_INT32: |
397 |
< |
fprintf(f, "%s %ld\n", list->name, PrefsFindInt32(list->name)); |
397 |
> |
fprintf(f, "%s %d\n", list->name, PrefsFindInt32(list->name)); |
398 |
|
break; |
399 |
|
default: |
400 |
|
break; |