(PSP) Build fixes

This commit is contained in:
twinaphex 2014-02-11 16:10:40 +01:00
parent f1811644c4
commit d4f9c211ee
8 changed files with 16 additions and 8 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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;

View File

@ -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
};

View File

@ -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

View File

@ -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

View File

@ -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,