Unverified Commit 7f175ba5 authored by hizzlekizzle's avatar hizzlekizzle Committed by GitHub
Browse files

Merge pull request #88 from phcoder/psl1ght

Add psl1ght support
parents 58fecfb3 8d4d4723
......@@ -186,7 +186,7 @@ else ifeq ($(platform), psl1ght)
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
CC = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
CFLAGS += -D__ppc__ -DMSB_FIRST
CFLAGS += -DMSB_FIRST -D__CELLOS_LV2__ -D__PSL1GHT__ -I$(PS3DEV)/ppu/include
STATIC_LINKING = 1
# PSP1
......
......@@ -64,7 +64,9 @@ qboolean isDedicated;
#include <ogc/lwp_watchdog.h>
#endif
#ifdef __CELLOS_LV2__
#ifdef __PSL1GHT__
#include <lv2/systime.h>
#elif defined (__CELLOS_LV2__)
#include <sys/sys_time.h>
#include <sys/timer.h>
#endif
......@@ -335,6 +337,8 @@ double Sys_DoubleTime(void)
newtime = (OSGetSystemTime() / 62156250.f);
#elif defined(GEKKO)
newtime = ticks_to_microsecs(gettime()) / 1000000.0;
#elif defined(__PSL1GHT__)
newtime = sysGetSystemTime() / 1000000.0;
#elif defined(__CELLOS_LV2__)
newtime = sys_time_get_system_time() / 1000000.0;
#elif defined(_WIN32)
......
......@@ -130,7 +130,8 @@ UDP_Init(void)
/* determine my name & address, default to loopback */
myAddr.ip.l = htonl(INADDR_LOOPBACK);
myAddr.port = htons(DEFAULTnet_hostport);
#ifdef VITA
#ifdef __PSL1GHT__
#elif defined (VITA)
SceNetCtlInfo info;
sceNetCtlInetGetInfo(SCE_NETCTL_INFO_GET_IP_ADDRESS, &info);
sceNetInetPton(SCE_NET_AF_INET, info.ip_address, &myAddr.ip.l);
......
......@@ -39,7 +39,7 @@
#include <Xtl.h>
#endif
#if defined(__CELLOS_LV2__)
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#include <sys/fs_external.h>
#endif
......@@ -75,7 +75,7 @@ static INLINE bool bits_any_set(uint32_t* ptr, uint32_t count)
}
#ifndef PATH_MAX_LENGTH
#if defined(__CELLOS_LV2__)
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
#define PATH_MAX_LENGTH CELL_FS_MAX_FS_PATH_LENGTH
#elif defined(_XBOX1) || defined(_3DS) || defined(PSP) || defined(PS2) || defined(GEKKO)|| defined(WIIU) || defined(ORBIS)
#define PATH_MAX_LENGTH 512
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment