2 // settings.h: Header file
4 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
7 // --- ---------- ------------------------------------------------------------
8 // JPM 06/19/2016 Soft debugger support
11 #ifndef __SETTINGS_H__
12 #define __SETTINGS_H__
14 // MAX_PATH isn't defined in stdlib.h on *nix, so we do it here...
17 #define MAX_PATH _POSIX_PATH_MAX
19 #include <stdlib.h> // for MAX_PATH on MinGW/Darwin
22 #define MAX_PATH _MAX_PATH // Urgh.
27 #define MaxMemory1BrowserWindow 4
30 // List the erase settings possibilities
42 // functions declarations
43 extern bool EraseSettings(char *Setting
);
50 int32_t joyport
; // Joystick port
51 bool hardwareTypeNTSC
; // Set to false for PAL, otherwise it is NTSC
59 bool hardwareTypeAlpine
; // Alpine mode
60 bool softTypeDebugger
; // Soft type debugger mode
65 bool allowWritesToROM
;
67 size_t nbrdisasmlines
; // Number of lines to show in the M68K tracing window
71 bool displayFullSourceFilename
;
72 size_t nbrmemory1browserwindow
; // Number of memory browser windows
73 size_t DRAM_size
; // DRAM size
75 // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
77 uint32_t p1KeyBindings
[21];
78 uint32_t p2KeyBindings
[21];
82 char ROMPath
[MAX_PATH
];
83 char jagBootPath
[MAX_PATH
];
84 char CDBootPath
[MAX_PATH
];
85 char EEPROMPath
[MAX_PATH
];
86 char alpineROMPath
[MAX_PATH
];
87 char debuggerROMPath
[MAX_PATH
];
88 char absROMPath
[MAX_PATH
];
93 enum { RT_NORMAL
= 0, RT_TV
= 1 };
97 enum { BT_K_SERIES
, BT_M_SERIES
, BT_STUBULATOR_1
, BT_STUBULATOR_2
};
101 extern VJSettings vjs
;
103 #endif // __SETTINGS_H__