From b663916a596879cb9d1cd2960f3c18f85237f797 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Thu, 1 Apr 2021 13:39:47 +0200 Subject: [PATCH] Cagades arregleited; generation script cleanup --- .gitignore | 1 + generate_opendingux | 4 ++-- source/gamedirector.cpp | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index af6d928..93d1462 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ todo.txt data/config.bin data/score.bin *.opk +coffee_crisis diff --git a/generate_opendingux b/generate_opendingux index 5c3a7fe..2d2a2d9 100755 --- a/generate_opendingux +++ b/generate_opendingux @@ -1,7 +1,7 @@ #!/usr/bin/bash +mkdir -p bin cd source -/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -g -D_GCWZERO -O2 -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -std=c++11 *.cpp -o coffee_crisis_gcw0 -mv coffee_crisis_gcw0 ../bin/coffee_crisis +/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -g -D_GCWZERO -O2 -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -std=c++11 *.cpp -o ../bin/coffee_crisis cd .. /opt/gcw0-toolchain/usr/bin/mksquashfs ./default.gcw0.desktop ./icon.png ./bin ./data ./media coffee_crisis.opk -all-root -noappend -no-exports -no-xattrs diff --git a/source/gamedirector.cpp b/source/gamedirector.cpp index 148b0e0..d31ba69 100644 --- a/source/gamedirector.cpp +++ b/source/gamedirector.cpp @@ -1154,6 +1154,10 @@ void GameDirector::setFileList() mBinFile[BINFILE_SCORE].file = "/media/data/local/home/.coffee_crisis/score.bin"; mBinFile[BINFILE_DEMO].file = "/media/data/local/home/.coffee_crisis/demo.bin"; mBinFile[BINFILE_CONFIG].file = "/media/data/local/home/.coffee_crisis/config.bin"; +#else + mBinFile[BINFILE_SCORE].file = mProg.executablePath + "/" + "../data/score.bin"; + mBinFile[BINFILE_DEMO].file = mProg.executablePath + "/" + "../data/demo.bin"; + mBinFile[BINFILE_CONFIG].file = mProg.executablePath + "/" + "../data/config.bin"; #endif // Musicas