mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 00:41:51 +00:00
Fixed SDL 1.2 support
This commit is contained in:
parent
0f1f22de45
commit
79c4b3ef98
2 changed files with 8 additions and 5 deletions
|
@ -64,9 +64,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
// RB begin
|
||||
// Default base path (used only if none could be found)
|
||||
#ifdef __APPLE__
|
||||
#define DEFAULT_BASEPATH "/Applications/rbdoom3-bfg.app/Contents/Resources"
|
||||
#define DEFAULT_BASEPATH "/Applications/RBDOOM-3-BFG.app/Contents/Resources"
|
||||
#else
|
||||
#define DEFAULT_BASEPATH "/usr/local/games/rbdoom3-bfg"
|
||||
#define DEFAULT_BASEPATH "/usr/local/games/rbdoom-3-bfg"
|
||||
#endif
|
||||
// RB end
|
||||
|
||||
|
|
|
@ -49,7 +49,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#include <android/log.h>
|
||||
#endif
|
||||
|
||||
#include "SDL2/SDL.h"
|
||||
#if defined(__APPLE__)
|
||||
#include <SDL2/SDL.h>
|
||||
#endif
|
||||
|
||||
#include <sys/statvfs.h>
|
||||
// RB end
|
||||
|
||||
|
@ -93,8 +96,8 @@ static char exit_spawn[ 1024 ];
|
|||
*/
|
||||
const char* Sys_DefaultSavePath()
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
char* base_path = SDL_GetPrefPath( "", "rbdoom3bfg" );
|
||||
#if defined(__APPLE__)
|
||||
char* base_path = SDL_GetPrefPath( "", "RBDOOM-3-BFG" );
|
||||
if( base_path )
|
||||
{
|
||||
savepath = SDL_strdup( base_path );
|
||||
|
|
Loading…
Reference in a new issue