Commit 8c0239b0 authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Added Quake III: Team Arena support.

parent 59ad0602
......@@ -2,9 +2,8 @@ TARGET := vitaQuakeIII
TITLE := QUAK00003
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
SOURCES := code/renderercommon code/qcommon code/botlib code/client code/server code/renderergl1 code/psp2 code/sys
INCLUDES := code/renderercommon code/qcommon code/botlib code/client code/server code/renderergl1 code/psp2 code/sys
EXTRA_FILES := code/sys/con_log.c
LIBS = -lvitaGL -lvorbisfile -lvorbis -logg -lspeexdsp -lmpg123 \
-lc -lSceCommonDialog_stub -lSceAudio_stub -lSceLibKernel_stub \
......@@ -12,7 +11,7 @@ LIBS = -lvitaGL -lvorbisfile -lvorbis -logg -lspeexdsp -lmpg123 \
-lSceSysmodule_stub -lSceCtrl_stub -lSceTouch_stub -lSceMotion_stub -lm -lSceAppMgr_stub \
-lSceAppUtil_stub -lScePgf_stub -ljpeg -lSceRtc_stub -lScePower_stub
CFILES := $(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c)) $(EXTRA_FILES)
CFILES := $(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c))
CPPFILES := $(foreach dir,$(CPPSOURCES), $(wildcard $(dir)/*.cpp))
BINFILES := $(foreach dir,$(DATA), $(wildcard $(dir)/*.bin))
OBJS := $(addsuffix .o,$(BINFILES)) $(CFILES:.c=.o) $(CPPFILES:.cpp=.o)
......
......@@ -8,4 +8,11 @@
<gate>
<startup-image>startup.png</startup-image>
</gate>
<frame id='frame1' multi='o' autoflip='3' >
<liveitem>
<target>psla:team</target>
<image>teamarena.png</image>
</liveitem>
</frame>
</livearea>
......@@ -336,8 +336,6 @@ main
int quake_main (unsigned int argc, void* argv){
int i;
char** argvv = (char**)argv;
char commandLine[MAX_STRING_CHARS] = {0};
Sys_PlatformInit();
......@@ -345,24 +343,18 @@ int quake_main (unsigned int argc, void* argv){
// Set the initial time base
Sys_Milliseconds();
//Sys_ParseArgs(argc, argv);
sceIoMkdir(DEFAULT_BASEDIR, 777);
Sys_SetBinaryPath(DEFAULT_BASEDIR);
Sys_SetDefaultInstallPath(DEFAULT_BASEDIR);
// Concatenate the command line for passing to Com_Init
for (i = 1; i < argc; i++) {
const qboolean containsSpaces = strchr(argvv[i], ' ') != NULL;
if (containsSpaces)
Q_strcat(commandLine, sizeof(commandLine), "\"");
Q_strcat(commandLine, sizeof(commandLine), argvv[i]);
if (containsSpaces)
Q_strcat(commandLine, sizeof(commandLine), "\"");
Q_strcat(commandLine, sizeof(commandLine), " ");
}
// Quake III: Team Arena support
sceAppUtilInit(&(SceAppUtilInitParam){}, &(SceAppUtilBootParam){});
SceAppUtilAppEventParam eventParam;
memset(&eventParam, 0, sizeof(SceAppUtilAppEventParam));
sceAppUtilReceiveAppEvent(&eventParam);
if (eventParam.type == 0x05){
sprintf(commandLine, "+set fs_game missionpack");
}
CON_Init();
Com_Init(commandLine);
......
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