Cagades arregleited; generation script cleanup

This commit is contained in:
2021-04-01 13:39:47 +02:00
parent 6c1c6cbc42
commit b663916a59
3 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ todo.txt
data/config.bin
data/score.bin
*.opk
coffee_crisis

View File

@@ -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

View File

@@ -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