Skip to content

Commit 8571ceb

Browse files
committed
Fixes and OS X compile
- Fixed new client window icon - Modified OS X make shell scripts
1 parent 356413e commit 8571ceb

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

code/sdl/sdl_icon.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ static const struct {
134134
/* GIMP RGBA C-Source image dump (rpgxef.c) */
135135

136136
static const struct {
137-
guint width;
138-
guint height;
139-
guint bytes_per_pixel; /* 3:RGB, 4:RGBA */
140-
guint8 pixel_data[32 * 32 * 4 + 1];
141-
} gimp_image = {
137+
unsigned int width;
138+
unsigned int height;
139+
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
140+
unsigned char pixel_data[32 * 32 * 4 + 1];
141+
} CLIENT_WINDOW_ICON = {
142142
32, 32, 4,
143143
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
144144
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"

make-macosx-ub.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/bin/sh
2-
APPBUNDLE=ioquake3.app
3-
BINARY=ioquake3.ub
4-
DEDBIN=ioq3ded.ub
5-
PKGINFO=APPLIOQ3
2+
APPBUNDLE=rpgxEF.app
3+
BINARY=rpgxEF.ub
4+
DEDBIN=rpgxEFded.ub
5+
PKGINFO=APPLRPGXEF
66
ICNS=misc/quake3.icns
77
DESTDIR=build/release-darwin-ub
88
BASEDIR=baseq3
99
MPACKDIR=missionpack
1010

1111
BIN_OBJ="
12-
build/release-darwin-ppc/ioquake3-smp.ppc
13-
build/release-darwin-i386/ioquake3-smp.i386
12+
build/release-darwin-ppc/rpgxEF-smp.ppc
13+
build/release-darwin-i386/rpgxEF-smp.i386
1414
"
1515
BIN_DEDOBJ="
16-
build/release-darwin-ppc/ioq3ded.ppc
17-
build/release-darwin-i386/ioq3ded.i386
16+
build/release-darwin-ppc/rpgxEFded.ppc
17+
build/release-darwin-i386/rpgxEFded.i386
1818
"
1919
BASE_OBJ="
2020
build/release-darwin-ppc/$BASEDIR/cgameppc.dylib
@@ -35,7 +35,7 @@ MPACK_OBJ="
3535

3636
cd `dirname $0`
3737
if [ ! -f Makefile ]; then
38-
echo "This script must be run from the ioquake3 build directory"
38+
echo "This script must be run from the rpgxEF build directory"
3939
exit 1
4040
fi
4141

@@ -147,15 +147,15 @@ echo "
147147
<key>CFBundleExecutable</key>
148148
<string>$BINARY</string>
149149
<key>CFBundleGetInfoString</key>
150-
<string>ioquake3 $Q3_VERSION</string>
150+
<string>rpgxEF $Q3_VERSION</string>
151151
<key>CFBundleIconFile</key>
152152
<string>ioquake3.icns</string>
153153
<key>CFBundleIdentifier</key>
154-
<string>org.ioquake.ioquake3</string>
154+
<string>org.rpgxEF.rpgxEF</string>
155155
<key>CFBundleInfoDictionaryVersion</key>
156156
<string>6.0</string>
157157
<key>CFBundleName</key>
158-
<string>ioquake3</string>
158+
<string>rpgxEF</string>
159159
<key>CFBundlePackageType</key>
160160
<string>APPL</string>
161161
<key>CFBundleShortVersionString</key>

make-macosx.sh

100644100755
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/sh
2-
APPBUNDLE=ioquake3.app
3-
BINARY=ioquake3.x86_64
4-
DEDBIN=ioq3ded.x86_64
5-
PKGINFO=APPLIOQ3
2+
APPBUNDLE=rpgxEF.app
3+
BINARY=rpgxEF.x86_64
4+
DEDBIN=rpgxEFded.x86_64
5+
PKGINFO=APPLRPGXEF
66
ICNS=misc/quake3.icns
77
DESTDIR=build/release-darwin-x86_64
88
BASEDIR=baseq3
99
MPACKDIR=missionpack
1010
RENDERDIR=build/release-darwin-x86_64
1111

1212
BIN_OBJ="
13-
build/release-darwin-x86_64/ioquake3.x86_64
13+
build/release-darwin-x86_64/rpgxEF.x86_64
1414
"
1515
BIN_DEDOBJ="
16-
build/release-darwin-x86_64/ioq3ded.x86_64
16+
build/release-darwin-x86_64/rpgxEFded.x86_64
1717
"
1818
BASE_OBJ="
1919
build/release-darwin-x86_64/$BASEDIR/cgamex86_64.dylib
@@ -33,7 +33,7 @@ RENDER_OBJ="
3333

3434
cd `dirname $0`
3535
if [ ! -f Makefile ]; then
36-
echo "This script must be run from the ioquake3 build directory"
36+
echo "This script must be run from the rpgxEF build directory"
3737
exit 1
3838
fi
3939

@@ -69,6 +69,7 @@ NCPU=`sysctl -n hw.ncpu`
6969
# intel client and server
7070
if [ -d build/release-darwin-x86_64 ]; then
7171
rm -r build/release-darwin-x86_64
72+
7273
fi
7374
(ARCH=x86_64 CFLAGS=$X86_CFLAGS LDFLAGS=$X86_LDFLAGS make -j$NCPU) || exit 1;
7475

@@ -96,15 +97,15 @@ echo "
9697
<key>CFBundleExecutable</key>
9798
<string>$BINARY</string>
9899
<key>CFBundleGetInfoString</key>
99-
<string>ioquake3 $Q3_VERSION</string>
100+
<string>rpgxEF $Q3_VERSION</string>
100101
<key>CFBundleIconFile</key>
101102
<string>ioquake3.icns</string>
102103
<key>CFBundleIdentifier</key>
103-
<string>org.ioquake.ioquake3</string>
104+
<string>org.rpgxEF.rpgxEF</string>
104105
<key>CFBundleInfoDictionaryVersion</key>
105106
<string>6.0</string>
106107
<key>CFBundleName</key>
107-
<string>ioquake3</string>
108+
<string>rpgxEF</string>
108109
<key>CFBundlePackageType</key>
109110
<string>APPL</string>
110111
<key>CFBundleShortVersionString</key>

0 commit comments

Comments
 (0)