added base searchpaths for iphone
This commit is contained in:
@@ -456,7 +456,12 @@ bool GetExactFileName(const std::string& abs_searchname, std::string& filename)
|
||||
searchpathlist basesearchpaths;
|
||||
void InitBaseSearchPaths() {
|
||||
basesearchpaths.clear();
|
||||
#if defined(__APPLE__)
|
||||
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
|
||||
AddToFileList(&basesearchpaths, "${HOME}/Library/Application Support/Commander Genius");
|
||||
AddToFileList(&basesearchpaths, ".");
|
||||
AddToFileList(&basesearchpaths, "${BIN}/data");
|
||||
AddToFileList(&basesearchpaths, SYSTEM_DATA_DIR"/commandergenius");
|
||||
#elif defined(__APPLE__)
|
||||
AddToFileList(&basesearchpaths, "${HOME}/Library/Application Support/Commander Genius");
|
||||
AddToFileList(&basesearchpaths, ".");
|
||||
AddToFileList(&basesearchpaths, "${BIN}/../Resources/data");
|
||||
@@ -1057,7 +1062,7 @@ SDL_RWops *RWopsFromFP(FILE *fp, bool autoclose) {
|
||||
return(rwops);
|
||||
|
||||
#else
|
||||
return SDL_RWFromFP(fp, (int)autoclose);
|
||||
return SDL_RWFromFP(fp, (SDL_bool)autoclose);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user