mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 21:40:22 +00:00
(PSP) Build fixes
This commit is contained in:
parent
f1811644c4
commit
d4f9c211ee
@ -8,7 +8,7 @@ INCDIR =
|
|||||||
CFLAGS = -O2 -G0 -g -std=gnu99 -ffast-math
|
CFLAGS = -O2 -G0 -g -std=gnu99 -ffast-math
|
||||||
ASFLAGS = $(CFLAGS)
|
ASFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
RARCH_DEFINES = -DPSP -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_ZLIB -DWANT_MINIZ -DHAVE_GRIFFIN=1 -DHAVE_NULLVIDEO -DHAVE_NULLAUDIO -DRARCH_INTERNAL
|
RARCH_DEFINES = -DPSP -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_ZLIB -DWANT_MINIZ -DHAVE_GRIFFIN=1 -DHAVE_NULLVIDEO -DHAVE_NULLAUDIO -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU
|
||||||
|
|
||||||
ifeq ($(HAVE_FILE_LOGGER), 1)
|
ifeq ($(HAVE_FILE_LOGGER), 1)
|
||||||
CFLAGS += -DHAVE_FILE_LOGGER
|
CFLAGS += -DHAVE_FILE_LOGGER
|
||||||
|
@ -31,6 +31,11 @@
|
|||||||
#define SALAMANDER_FILE "EBOOT.BIN"
|
#define SALAMANDER_FILE "EBOOT.BIN"
|
||||||
#define PLATFORM_NAME "ps3"
|
#define PLATFORM_NAME "ps3"
|
||||||
#define DEFAULT_EXE_EXT ".SELF"
|
#define DEFAULT_EXE_EXT ".SELF"
|
||||||
|
#elif defined(PSP)
|
||||||
|
#define EXT_EXECUTABLES "pbp|PBP"
|
||||||
|
#define SALAMANDER_FILE "EBOOT.PBP"
|
||||||
|
#define PLATFORM_NAME "psp"
|
||||||
|
#define DEFAULT_EXE_EXT ".PBP"
|
||||||
#elif defined(_XBOX1)
|
#elif defined(_XBOX1)
|
||||||
#define EXT_EXECUTABLES "xbe|XBE"
|
#define EXT_EXECUTABLES "xbe|XBE"
|
||||||
#define SALAMANDER_FILE "default.xbe"
|
#define SALAMANDER_FILE "default.xbe"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "compat/posix_string.h"
|
#include "compat/posix_string.h"
|
||||||
#include "miscellaneous.h"
|
#include "miscellaneous.h"
|
||||||
|
|
||||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) || defined(__BLACKBERRY_QNX__)
|
#if (defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)) || defined(__BLACKBERRY_QNX__) || defined(PSP)
|
||||||
#include <unistd.h> //stat() is defined here
|
#include <unistd.h> //stat() is defined here
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -42,8 +42,9 @@ static int exit_callback(int arg1, int arg2, void *common)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void get_environment_settings(int argc, char *argv[])
|
static void get_environment_settings(int argc, char *argv[], void *args)
|
||||||
{
|
{
|
||||||
|
(void)args;
|
||||||
#ifndef IS_SALAMANDER
|
#ifndef IS_SALAMANDER
|
||||||
g_extern.verbose = true;
|
g_extern.verbose = true;
|
||||||
|
|
||||||
|
@ -77,8 +77,7 @@ const video_driver_t video_null = {
|
|||||||
null_gfx_free,
|
null_gfx_free,
|
||||||
"null",
|
"null",
|
||||||
|
|
||||||
#ifdef RARCH_CONSOLE
|
#ifdef HAVE_MENU
|
||||||
null_gfx_start,
|
|
||||||
null_gfx_restart,
|
null_gfx_restart,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include <time/time.h>
|
#include <time/time.h>
|
||||||
#elif defined(GEKKO) || defined(__PSL1GHT__) || defined(__QNX__)
|
#elif defined(GEKKO) || defined(__PSL1GHT__) || defined(__QNX__)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#elif defined(PSP)
|
||||||
|
#include <pspthreadman.h>
|
||||||
#else
|
#else
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -198,6 +198,9 @@ retro_time_t rarch_get_time_usec(void)
|
|||||||
return tv.tv_sec * INT64_C(1000000) + (tv.tv_nsec + 500) / 1000;
|
return tv.tv_sec * INT64_C(1000000) + (tv.tv_nsec + 500) / 1000;
|
||||||
#elif defined(EMSCRIPTEN)
|
#elif defined(EMSCRIPTEN)
|
||||||
return emscripten_get_now() * 1000;
|
return emscripten_get_now() * 1000;
|
||||||
|
#elif defined(PSP)
|
||||||
|
SceKernelSysClock clock;
|
||||||
|
return sceKernelGetSystemTime(&clock);
|
||||||
#else
|
#else
|
||||||
#error "Your platform does not have a timer function implemented in rarch_get_time_usec(). Cannot continue."
|
#error "Your platform does not have a timer function implemented in rarch_get_time_usec(). Cannot continue."
|
||||||
#endif
|
#endif
|
||||||
|
@ -192,10 +192,8 @@ const video_driver_t video_psp1 = {
|
|||||||
psp_free,
|
psp_free,
|
||||||
"psp1",
|
"psp1",
|
||||||
|
|
||||||
#ifdef RARCH_CONSOLE
|
#if defined(HAVE_MENU)
|
||||||
psp_restart,
|
psp_restart,
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
psp_set_rotation,
|
psp_set_rotation,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user