Use different .cfg files depending on GUI API used

SDL1 => gfx2.cfg
SDL2 => gfx2-sdl2.cfg
Win32 => gfx2-win32.cfg
X11 => gfx2-x11.cfg

defaults to gfx2.cfg
This commit is contained in:
Thomas Bernard
2018-09-16 19:53:39 +02:00
parent b4005cbcb3
commit 5370670b10
2 changed files with 11 additions and 2 deletions

View File

@@ -89,6 +89,14 @@ void Set_config_directory(const char * program_dir, char * config_dir);
/// Name of the binary file containing some configuration settings.
#if defined (__MINT__)
#define CONFIG_FILENAME "GFX2.CFG"
#elif defined(USE_SDL)
#define CONFIG_FILENAME "gfx2.cfg"
#elif defined(USE_SDL2)
#define CONFIG_FILENAME "gfx2-sdl2.cfg"
#elif defined(USE_X11)
#define CONFIG_FILENAME "gfx2-x11.cfg"
#elif defined(WIN32)
#define CONFIG_FILENAME "gfx2-win32.cfg"
#else
#define CONFIG_FILENAME "gfx2.cfg"
#endif