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
vitaquake3
Commits
09f9d048
Commit
09f9d048
authored
Mar 21, 2019
by
Rinnegatamante
Browse files
Integrated OpenArena build into main build.
parent
554add29
Changes
10
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
09f9d048
...
...
@@ -8,6 +8,7 @@
*.pk3
*.cfg
*.zip
datafiles/*
# Windows image file caches
Thumbs.db
...
...
Makefile
View file @
09f9d048
...
...
@@ -52,7 +52,7 @@ $(TARGET).vpk: $(TARGET).velf
cp
-f
param.sfo build/sce_sys/param.sfo
#------------ Comment this if you don't have 7zip ------------------
7z
a
-tzip
./$(TARGET).vpk
-r
./build/sce_sys
./build/eboot.bin
7z
a
-tzip
./$(TARGET).vpk
-r
./build/sce_sys
./build/eboot.bin
./build/openarena.bin
#-------------------------------------------------------------------
eboot.bin
:
$(TARGET).velf
...
...
Makefile.openarena
View file @
09f9d048
TARGET
:=
vitaOpenArena
TITLE
:=
OPENARENA
TARGET
:=
openarena
GIT_VERSION
:=
$(
shell
git describe
--abbrev
=
6
--dirty
--always
--tags
)
SOURCES
:=
code/renderercommon code/qcommon code/botlib code/client code/server code/renderergl1 code/psp2 code/sys
...
...
@@ -30,16 +29,10 @@ CFLAGS = $(INCLUDE) -D__PSP2__ -D__FLOAT_WORD_ORDER=1 -D__GNU__ -DRELEASE \
CXXFLAGS
=
$(CFLAGS)
-fno-exceptions
-std
=
gnu++11
ASFLAGS
=
$(CFLAGS)
all
:
$(TARGET).
vpk
all
:
$(TARGET).
bin
$(TARGET).vpk
:
$(TARGET).velf
vita-make-fself
-s
$<
build_oa/eboot.bin
vita-mksfoex
-s
TITLE_ID
=
$(TITLE)
-d
ATTRIBUTE2
=
12
"
$(TARGET)
"
param.sfo
cp
-f
param.sfo build_oa/sce_sys/param.sfo
#------------ Comment this if you don't have 7zip ------------------
7z
a
-tzip
./$(TARGET).vpk
-r
./build_oa/sce_sys
./build_oa/eboot.bin
#-------------------------------------------------------------------
$(TARGET).bin
:
$(TARGET).velf
vita-make-fself
-s
$<
build/
$(TARGET)
.bin
%.velf
:
%.elf
cp
$<
$<
.unstripped.elf
...
...
build/sce_sys/livearea/contents/openarena.png
0 → 100644
View file @
09f9d048
157 KB
build/sce_sys/livearea/contents/template.xml
View file @
09f9d048
...
...
@@ -15,4 +15,12 @@
<image>
teamarena.png
</image>
</liveitem>
</frame>
<frame
id=
'frame2'
multi=
'o'
autoflip=
'3'
>
<liveitem>
<target>
psla:open
</target>
<image>
openarena.png
</image>
</liveitem>
</frame>
</livearea>
build_oa/sce_sys/icon0.png
deleted
100644 → 0
View file @
554add29
13.5 KB
build_oa/sce_sys/livearea/contents/bg.png
deleted
100644 → 0
View file @
554add29
115 KB
build_oa/sce_sys/livearea/contents/startup.png
deleted
100644 → 0
View file @
554add29
16.4 KB
build_oa/sce_sys/livearea/contents/template.xml
deleted
100644 → 0
View file @
554add29
<?xml version="1.0" encoding="utf-8"?>
<livearea
style=
"a1"
format-ver=
"01.00"
content-rev=
"1"
>
<livearea-background>
<image>
bg.png
</image>
</livearea-background>
<gate>
<startup-image>
startup.png
</startup-image>
</gate>
</livearea>
code/psp2/sys_main.c
View file @
09f9d048
...
...
@@ -449,15 +449,20 @@ int quake_main (unsigned int argc, void* argv){
Sys_SetBinaryPath
(
DEFAULT_BASEDIR
);
Sys_SetDefaultInstallPath
(
DEFAULT_BASEDIR
);
// Quake III: Team Arena support
// Quake III: Team Arena & OpenArena support
#ifndef OPENARENA
sceAppUtilInit
(
&
(
SceAppUtilInitParam
){},
&
(
SceAppUtilBootParam
){});
SceAppUtilAppEventParam
eventParam
;
memset
(
&
eventParam
,
0
,
sizeof
(
SceAppUtilAppEventParam
));
sceAppUtilReceiveAppEvent
(
&
eventParam
);
if
(
eventParam
.
type
==
0x05
){
sprintf
(
commandLine
,
"+set fs_game missionpack"
);
char
buffer
[
2048
];
memset
(
buffer
,
0
,
2048
);
sceAppUtilAppEventParseLiveArea
(
&
eventParam
,
buffer
);
if
(
strstr
(
buffer
,
"open"
)
!=
NULL
)
sceAppMgrLoadExec
(
"app0:/openarena.bin"
,
NULL
,
NULL
);
else
sprintf
(
commandLine
,
"+set fs_game missionpack"
);
}
#endif
CON_Init
();
Com_Init
(
commandLine
);
NET_Init
();
...
...
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