mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +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
|
||||
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)
|
||||
CFLAGS += -DHAVE_FILE_LOGGER
|
||||
|
@ -31,6 +31,11 @@
|
||||
#define SALAMANDER_FILE "EBOOT.BIN"
|
||||
#define PLATFORM_NAME "ps3"
|
||||
#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)
|
||||
#define EXT_EXECUTABLES "xbe|XBE"
|
||||
#define SALAMANDER_FILE "default.xbe"
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "compat/posix_string.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
|
||||
#endif
|
||||
|
||||
|
@ -42,8 +42,9 @@ static int exit_callback(int arg1, int arg2, void *common)
|
||||
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
|
||||
g_extern.verbose = true;
|
||||
|
||||
|
@ -77,8 +77,7 @@ const video_driver_t video_null = {
|
||||
null_gfx_free,
|
||||
"null",
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
null_gfx_start,
|
||||
#ifdef HAVE_MENU
|
||||
null_gfx_restart,
|
||||
#endif
|
||||
};
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include <time/time.h>
|
||||
#elif defined(GEKKO) || defined(__PSL1GHT__) || defined(__QNX__)
|
||||
#include <unistd.h>
|
||||
#elif defined(PSP)
|
||||
#include <pspthreadman.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#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;
|
||||
#elif defined(EMSCRIPTEN)
|
||||
return emscripten_get_now() * 1000;
|
||||
#elif defined(PSP)
|
||||
SceKernelSysClock clock;
|
||||
return sceKernelGetSystemTime(&clock);
|
||||
#else
|
||||
#error "Your platform does not have a timer function implemented in rarch_get_time_usec(). Cannot continue."
|
||||
#endif
|
||||
|
@ -192,10 +192,8 @@ const video_driver_t video_psp1 = {
|
||||
psp_free,
|
||||
"psp1",
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
#if defined(HAVE_MENU)
|
||||
psp_restart,
|
||||
NULL,
|
||||
NULL,
|
||||
#endif
|
||||
|
||||
psp_set_rotation,
|
||||
|
Loading…
Reference in New Issue
Block a user