Fixed SDL 1.2 support

This commit is contained in:
Robert Beckebans 2014-05-22 09:55:25 +02:00
parent 0f1f22de45
commit 79c4b3ef98
2 changed files with 8 additions and 5 deletions

View file

@ -64,9 +64,9 @@ If you have questions concerning this license or the applicable additional terms
// RB begin // RB begin
// Default base path (used only if none could be found) // Default base path (used only if none could be found)
#ifdef __APPLE__ #ifdef __APPLE__
#define DEFAULT_BASEPATH "/Applications/rbdoom3-bfg.app/Contents/Resources" #define DEFAULT_BASEPATH "/Applications/RBDOOM-3-BFG.app/Contents/Resources"
#else #else
#define DEFAULT_BASEPATH "/usr/local/games/rbdoom3-bfg" #define DEFAULT_BASEPATH "/usr/local/games/rbdoom-3-bfg"
#endif #endif
// RB end // RB end

View file

@ -49,7 +49,10 @@ If you have questions concerning this license or the applicable additional terms
#include <android/log.h> #include <android/log.h>
#endif #endif
#include "SDL2/SDL.h" #if defined(__APPLE__)
#include <SDL2/SDL.h>
#endif
#include <sys/statvfs.h> #include <sys/statvfs.h>
// RB end // RB end
@ -93,8 +96,8 @@ static char exit_spawn[ 1024 ];
*/ */
const char* Sys_DefaultSavePath() const char* Sys_DefaultSavePath()
{ {
#ifdef __APPLE__ #if defined(__APPLE__)
char* base_path = SDL_GetPrefPath( "", "rbdoom3bfg" ); char* base_path = SDL_GetPrefPath( "", "RBDOOM-3-BFG" );
if( base_path ) if( base_path )
{ {
savepath = SDL_strdup( base_path ); savepath = SDL_strdup( base_path );