aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlameguy64 <lameguy64@ponce.localdomain>2019-04-12 19:04:57 +0800
committerlameguy64 <lameguy64@ponce.localdomain>2019-04-12 19:04:57 +0800
commit349726bb0aa31235222691540ee2c276a309e863 (patch)
tree0c909c1d4939a4f59d392f73edf8502d5b8a919f
parent1388e18427ae6245b137d52282f66692f6fef2ed (diff)
downloadpsn00bsdk-349726bb0aa31235222691540ee2c276a309e863.tar.gz
* Fixed lzpack producing broken QLP archives breaking the n00bdemo example.\n* Updated GCC configure parameters to a known working config.\n* Removed a stray executable file.
-rw-r--r--examples/balls/ballsbin21752 -> 0 bytes
-rw-r--r--libpsn00b/lzp/makefile2
-rw-r--r--toolchain.txt2
-rw-r--r--tools/lzpack/main.cpp18
4 files changed, 11 insertions, 11 deletions
diff --git a/examples/balls/balls b/examples/balls/balls
deleted file mode 100644
index b3fbe8f..0000000
--- a/examples/balls/balls
+++ /dev/null
Binary files differ
diff --git a/libpsn00b/lzp/makefile b/libpsn00b/lzp/makefile
index cf82872..befdc34 100644
--- a/libpsn00b/lzp/makefile
+++ b/libpsn00b/lzp/makefile
@@ -7,7 +7,7 @@ OFILES = $(addprefix build/,$(CFILES:.c=.o))
INCLUDE = -I../include
-CFLAGS = -O2 -msoft-float -fno-builtin -nostdlib -Wa,--strip-local-absolute
+CFLAGS = -g -O2 -msoft-float -fno-builtin -nostdlib -Wa,--strip-local-absolute
AFLAGS = -msoft-float --strip-local-absolute
CC = $(PREFIX)gcc
diff --git a/toolchain.txt b/toolchain.txt
index e8c74a3..5bb4243 100644
--- a/toolchain.txt
+++ b/toolchain.txt
@@ -24,7 +24,7 @@ Building gcc:
* Create a directory named gcc-build inside the gcc directory.
* Configure gcc from the gcc-build directory with the following parameters:
-../gcc-<version>/configure --disable-nls --disable-libada --disable-libssp --disable-libquadmath --disable-libstdc++-v3 --disable-libgomp --disable-libatomic --disable-libcilkrts --disable-libitm --disable-libsanitizer --disable-liblibvtv --disable-libmpx --disable-libhsail-rt --disable-libgfortran --disable-libgo --disable-libffi --disable-libobjc --disable-liboffloadmic --enable-libgcc --target=mipsel-unknown-elf --prefix=/usr/local/mipsel-unknown-elf --with-float=soft --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
+../gcc-<version>/configure --disable-nls --disable-libada --disable-libssp --disable-libquadmath --disable-libstdc++-v3 --disable-libgcc --target=mipsel-unknown-elf --prefix=/usr/local/mips-unknown-elf --with-float=soft --enable-languages=c,c++ --with-gnu-as --with-gnu-ld
Replace <version> with the version of gcc you downloaded. The prefix must be the same as the prefix you specified for binutils.
* Run make in the same manner as you built binutils to build gcc.
diff --git a/tools/lzpack/main.cpp b/tools/lzpack/main.cpp
index ed650d2..3f0dcde 100644
--- a/tools/lzpack/main.cpp
+++ b/tools/lzpack/main.cpp
@@ -10,21 +10,21 @@
typedef struct {
- char id[3];
- u_char numFiles;
+ char id[3];
+ unsigned char numFiles;
} QLP_HEAD;
typedef struct {
- char fileName[16];
- u_long fileSize;
- u_long offset;
+ char fileName[16];
+ unsigned int fileSize;
+ unsigned int offset;
} QLP_FILE;
typedef struct {
- char name[16];
- int size;
- int offset; // In 2048 byte sector units
+ char name[16];
+ unsigned int size;
+ unsigned int offset; // In 2048 byte sector units
} PCK_FILE;
typedef struct {
@@ -51,7 +51,7 @@ const char* TrimPathName(const char* path);
int main(int argc, const char* argv[]) {
- printf("LZPack v0.60b - File Compression and Packing Utility\n");
+ printf("LZPack v0.61b - File Compression and Packing Utility\n");
printf("2016-2019 Meido-Tek Productions (Lameguy64)\n\n");
if (argc <= 1) {