Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
tyrquake
Commits
7f175ba5
Unverified
Commit
7f175ba5
authored
Apr 17, 2020
by
hizzlekizzle
Committed by
GitHub
Apr 17, 2020
Browse files
Merge pull request #88 from phcoder/psl1ght
Add psl1ght support
parents
58fecfb3
8d4d4723
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7f175ba5
...
...
@@ -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
+=
-D
MSB_FIRST
-D__CELLOS_LV2__
-D__PSL1GHT__
-I
$(PS3DEV)
/ppu/include
STATIC_LINKING
=
1
# PSP1
...
...
common/libretro.c
View file @
7f175ba5
...
...
@@ -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)
...
...
common/net_udp.c
View file @
7f175ba5
...
...
@@ -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
);
...
...
libretro-common/include/retro_miscellaneous.h
View file @
7f175ba5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment