mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Fixed PS3/Psl1ght build (#72)
This commit is contained in:
@@ -443,7 +443,9 @@ int Atari800_Initialise(int *argc, char *argv[])
|
||||
#if defined(__LIBRETRO__)
|
||||
SYSROM_FindInDir(retro_system_directory, TRUE);
|
||||
#endif
|
||||
#if !defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
SYSROM_FindInDir(".", TRUE); /* current directory */
|
||||
#endif
|
||||
#if defined(unix) || defined(__unix__) || defined(__linux__)
|
||||
SYSROM_FindInDir("/usr/share/atari800", TRUE);
|
||||
#endif
|
||||
|
||||
@@ -64,6 +64,9 @@
|
||||
#endif
|
||||
|
||||
int CFG_save_on_exit = FALSE;
|
||||
#if defined(__LIBRETRO__)
|
||||
extern const char *retro_system_directory;
|
||||
#endif
|
||||
|
||||
/* If another default path config path is defined use it
|
||||
otherwise use the default one */
|
||||
@@ -75,6 +78,10 @@ int CFG_save_on_exit = FALSE;
|
||||
#define SYSTEM_WIDE_CFG_FILE "/etc/atari800.cfg"
|
||||
#endif
|
||||
|
||||
#if defined (__PS3__) || defined(__PSL1GHT__)
|
||||
#define DEFAULT_CFG_NAME "/atari800.cfg"
|
||||
#endif
|
||||
|
||||
#ifdef WIIU
|
||||
#define DEFAULT_CFG_NAME "sd:/retroarch/cores/system/atari800.cfg"
|
||||
#define SYSTEM_WIDE_CFG_FILE "sd:/retroarch/cores/system/atari800.cfg"
|
||||
@@ -101,11 +108,16 @@ int CFG_LoadConfig(const char *alternate_config_filename)
|
||||
}
|
||||
/* else use the default config name under the HOME folder */
|
||||
else {
|
||||
#if !defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
char *home = getenv("HOME");
|
||||
if (home != NULL)
|
||||
Util_catpath(rtconfig_filename, home, DEFAULT_CFG_NAME);
|
||||
else
|
||||
strcpy(rtconfig_filename, DEFAULT_CFG_NAME);
|
||||
#else
|
||||
strcpy(rtconfig_filename, retro_system_directory);
|
||||
strcat(rtconfig_filename, DEFAULT_CFG_NAME);
|
||||
#endif
|
||||
}
|
||||
|
||||
fp = fopen(fname, "r");
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
#include <stdio.h> /* FILENAME_MAX */
|
||||
#include "atari.h" /* UWORD */
|
||||
|
||||
#if defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
#define S_IREAD S_IRUSR
|
||||
#define S_IWRITE S_IWUSR
|
||||
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
int Devices_Initialise(int *argc, char *argv[]);
|
||||
void Devices_Exit(void);
|
||||
int Devices_PatchOS(void);
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@
|
||||
# define fseeko _fseek
|
||||
# define ftello _ftell
|
||||
# define PRId64 "lld"
|
||||
#elif defined (__DJGPP__)
|
||||
#elif defined (__DJGPP__) || defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
# define fseeko fseek
|
||||
# define ftello ftell
|
||||
# define PRId64 "lld"
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
#ifdef HAVE_WINDOWS_H
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#if defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
#include "devices.h"
|
||||
#endif
|
||||
|
||||
#include "antic.h"
|
||||
#include "atari.h"
|
||||
|
||||
@@ -57,6 +57,11 @@
|
||||
#include <pspthreadman.h>
|
||||
#endif
|
||||
|
||||
#if defined(__PS3__) && !defined(__PSL1GHT__)
|
||||
#include <sys/timer.h>
|
||||
#define usleep sys_timer_usleep
|
||||
#endif
|
||||
|
||||
#include "atari.h"
|
||||
#include "platform.h"
|
||||
#include "util.h"
|
||||
|
||||
Reference in New Issue
Block a user