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
libretro-2048
Commits
57d43274
Unverified
Commit
57d43274
authored
May 20, 2020
by
Libretro-Admin
Committed by
GitHub
May 20, 2020
Browse files
Merge pull request #41 from fjtrujy/ps2-newlib
Adapt PS2 port to latest status of the PS2SDK
parents
a4870814
0ecbf29c
Changes
4
Hide whitespace changes
Inline
Side-by-side
.github/workflows/compilation.yml
0 → 100644
View file @
57d43274
name
:
CI
on
:
push
:
pull_request
:
repository_dispatch
:
types
:
[
run_build
]
jobs
:
build-ps2
:
runs-on
:
ubuntu-latest
container
:
ps2dev/ps2dev:latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install dependencies
run
:
|
apk add build-base git bash
-
name
:
Compile project
run
:
|
make -f Makefile.libretro platform=ps2 clean all
-
name
:
Get short SHA
id
:
slug
run
:
echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
-
name
:
Upload artifacts
if
:
${{ success() }}
uses
:
actions/upload-artifact@v2
with
:
name
:
20408_libretro_ps2-${{ steps.slug.outputs.sha8 }}
path
:
2048_libretro_ps2.a
Makefile.libretro
View file @
57d43274
...
...
@@ -180,8 +180,7 @@ else ifeq ($(platform), ps2)
TARGET
:=
$(TARGET_NAME)
_libretro_
$(platform)
.
$(EXT)
CC
=
ee-gcc
$(EXE_EXT)
AR
=
ee-ar
$(EXE_EXT)
PLATFORM_DEFINES
:=
-DPS2
-G0
CFLAGS
:=
-Ips2
PLATFORM_DEFINES
:=
-DPS2
-G0
-DABGR8888
STATIC_LINKING
=
1
# PSP
...
...
game_noncairo.c
View file @
57d43274
...
...
@@ -35,7 +35,11 @@ typedef struct ctx_t
ctx_t
nullctx
=
{
0
,
0
,
0
};
#define PITCH 4
#if defined(ABGR8888)
#define RGB32(r, g, b,a) ( (a)<<24 |((b) << (16)) | ((g) << 8) | ((r) << 0))
#else
#define RGB32(r, g, b,a) ( (a)<<24 |((r) << (16)) | ((g) << 8) | ((b) << 0))
#endif
#define nullctx_fontsize(a) nullctx.fontsize_x=nullctx.fontsize_y=a
int
VIRTUAL_WIDTH
;
...
...
ps2/stdint.h
deleted
100644 → 0
View file @
a4870814
#ifndef STDINT_H
#define STDINT_H
typedef
unsigned
long
uintptr_t
;
typedef
signed
long
intptr_t
;
typedef
signed
char
int8_t
;
typedef
signed
short
int16_t
;
typedef
signed
int
int32_t
;
typedef
signed
long
int64_t
;
typedef
unsigned
char
uint8_t
;
typedef
unsigned
short
uint16_t
;
typedef
unsigned
int
uint32_t
;
typedef
unsigned
long
uint64_t
;
#define STDIN_FILENO 0
/* standard input file descriptor */
#define STDOUT_FILENO 1
/* standard output file descriptor */
#define STDERR_FILENO 2
/* standard error file descriptor */
#define INT8_C(val) val##c
#define INT16_C(val) val##h
#define INT32_C(val) val##i
#define INT64_C(val) val##l
#define UINT8_C(val) val##uc
#define UINT16_C(val) val##uh
#define UINT32_C(val) val##ui
#define UINT64_C(val) val##ul
#endif //STDINT_H
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