Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj
bin
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,24 @@ SOURCE_FILES = \
zone.c \

# tool macros
CC := mipsel-linux-gcc
INCLUDES := -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL
TOOLKIT := /opt/gcw0-toolchain
CC := $(TOOLKIT)/usr/bin/mipsel-linux-gcc
INCLUDES := -I$(TOOLKIT)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL
CCFLAG := -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -Wall -Wextra -O2 -DSDL -D__linux__ -D_GNU_SOURCE=1 -D_REENTRANT $(INCLUDES)
DBGFLAG := -g
CCOBJFLAG := $(CCFLAG) -c
LDFLAGS := -lm -lSDL -lpthread

# Uncomment to build for OD BETA
OD_BETA := 1

HUGEEDIT := $(TOOLKIT)/usr/bin/hugeedit

ifdef OD_BETA
# Add specific RG350 CPU optimizations (BETA FIRMWARE)
LDFLAGS += -Wl,--allow-multiple-definition -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 -lhugetlbfs
endif

# path macros
BIN_PATH := bin
OBJ_PATH := obj
Expand Down Expand Up @@ -116,6 +127,9 @@ default: all
# non-phony targets
$(TARGET): $(OBJ)
$(LINKCMD)
@if [ "${OD_BETA}" = "1" ]; then\
$(HUGEEDIT) --text --data $(TARGET);\
fi

$(OBJ_PATH)/%.o: $(SRC_PATH)/%.c*
$(CC) $(CCOBJFLAG) -o $@ $<
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To install you can do it in two ways:

1) Installing with OPK
- Put the .opk in your `/media/data/apps`
- Put your id1 directory's .pak files into `/media/data/Quake/id/`.
- Put your id1 directory's .pak files into `/media/data/local/home/Quake/id/`.
- If you've installed Thenesis Quake on your device via its OPK, your game files are already in the right place.

OR
Expand Down
Empty file added bin/.placeholder
Empty file.
5 changes: 4 additions & 1 deletion make_opk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ FLIST="rgquake"
FLIST="${FLIST} default.gcw0.desktop"
FLIST="${FLIST} hipnotic.gcw0.desktop"
FLIST="${FLIST} rogue.gcw0.desktop"
FLIST="${FLIST} rgquake.sh"
FLIST="${FLIST} hipnotic.sh"
FLIST="${FLIST} rogue.sh"
FLIST="${FLIST} logo.png"
FLIST="${FLIST} mp1.png"
FLIST="${FLIST} mp2.png"
Expand All @@ -17,4 +20,4 @@ FLIST="${FLIST} hipnotic"

OPK_NAME=rgquake.opk
rm -f ${OPK_NAME}
mksquashfs ${FLIST} ${OPK_NAME}
mksquashfs ${FLIST} ${OPK_NAME} -all-root -noappend -no-exports -no-xattrs -force-uid 1000 -force-gid 100
Empty file added obj/.placeholder
Empty file.
Binary file removed obj/snd_linux.o
Binary file not shown.
2 changes: 1 addition & 1 deletion opk_data/default.gcw0.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=RgQuake
Type=Application
Exec=rgquake -basedir /media/data/Quake
Exec=./rgquake.sh
Icon=logo
Comment=Enhanced port of Quake
Terminal=false
Expand Down
2 changes: 1 addition & 1 deletion opk_data/hipnotic.gcw0.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=RgQuake-Hipnotic
Type=Application
Exec=rgquake -basedir /media/data/Quake -hipnotic
Exec=./hipnotic.sh
Icon=mp1
Comment=Mission Pack 1: Scourge of Armagon
Terminal=false
Expand Down
2 changes: 2 additions & 0 deletions opk_data/hipnotic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
./rgquake -basedir /media/data/local/home/Quake -hipnotic -noudp
2 changes: 1 addition & 1 deletion opk_data/manual-gcw0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RgQuake
An enhanced port of sdlquake made specifically for the RG350 platforms.
This port supports dual analog controls and runs smooth on the RG350.

In order to play, you need to place your Quake .pak files in /media/data/Quake/id1
In order to play, you need to place your Quake .pak files in /media/data/local/home/Quake/id1
If you've already set up Thenesis Quake then everything should already work.

Changes to vanilla quake:
Expand Down
Binary file removed opk_data/rgquake
Binary file not shown.
Binary file removed opk_data/rgquake.opk
Binary file not shown.
2 changes: 2 additions & 0 deletions opk_data/rgquake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
./rgquake -basedir /media/data/local/home/Quake -noudp
Binary file removed opk_data/rgquakev010.zip
Binary file not shown.
85 changes: 0 additions & 85 deletions opk_data/rgquakev010/id1/rg_default.cfg

This file was deleted.

16 changes: 0 additions & 16 deletions opk_data/rgquakev010/id1/rg_quake.rc

This file was deleted.

Binary file removed opk_data/rgquakev010/rgquake
Binary file not shown.
2 changes: 1 addition & 1 deletion opk_data/rogue.gcw0.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=RgQuake-Rogue
Type=Application
Exec=rgquake -basedir /media/data/Quake -rogue
Exec=./rogue.sh
Icon=mp2
Comment=Mission Pack 2: Dissolution of Eternity
Terminal=false
Expand Down
2 changes: 2 additions & 0 deletions opk_data/rogue.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
./rgquake -basedir /media/data/local/home/Quake -rogue -noudp