2 // SETTINGS.CPP: Virtual Jaguar configuration loading/saving support
5 // (C) 2010 Underground Software
7 // JLH = James Hammons <jlhamm@acm.org>
8 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
11 // --- ---------- ------------------------------------------------------------
12 // JLH 01/16/2010 Created this log
13 // JLH 02/23/2013 Finally removed commented out stuff :-P
14 // JPM 09/08/2017 Added erase settings functions
25 const char *ES
[] = { "", "all", "ui", "alpine", "debugger" };
28 // Erase the settings by name
29 bool EraseSettings(char *Setting
)
33 // Point on the emulator settings
34 QSettings
settings("Underground Software", "Virtual Jaguar");
37 if (strcmp(Setting
, "all") == 0)
44 for (i
= 2; i
< SETTINGS_END
; i
++)
46 if (strcmp(ES
[i
], Setting
) == 0)
48 settings
.beginGroup(Setting
);