GP2X: scripts, fonts, etc. are in data/

This commit is contained in:
Thomas Bernard
2019-02-20 15:29:08 +01:00
parent 4a0b47dd32
commit 84b4f76102
2 changed files with 17 additions and 1 deletions

View File

@@ -135,7 +135,8 @@ void Set_data_directory(const char * program_dir, char * data_dir)
strcat(data_dir,"Contents/Resources/");
// On GP2X, AROS and Android, executable is not in bin/
#elif defined (__GP2X__) || defined (__gp2x__) || defined (__WIZ__) || defined (__CAANOO__) || defined(GCWZERO) || defined(__AROS__) || defined(__ANDROID__)
strcat(data_dir,"share/grafx2/");
//strcat(data_dir,"share/grafx2/");
strcat(data_dir, "data/");
//on tos, the same directory is used for everything
#elif defined (__MINT__)
strcpy(data_dir, program_dir);