Win32: use \ instead of / in Get_data_directory()

This commit is contained in:
Thomas Bernard 2019-01-15 15:40:37 +01:00
parent 556434a5df
commit a1849042de
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -147,6 +147,8 @@ void Set_data_directory(const char * program_dir, char * data_dir)
strcat(data_dir,"../share/grafx2/"); strcat(data_dir,"../share/grafx2/");
} }
#elif defined(WIN32)
strcat(data_dir,"..\\share\\grafx2\\");
// All other targets, program is in a "bin" subdirectory // All other targets, program is in a "bin" subdirectory
#else #else
strcat(data_dir,"../share/grafx2/"); strcat(data_dir,"../share/grafx2/");