5 Commits

6 changed files with 51 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ windowsRelease = $(executable)-$(version)-win32-x64.zip
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
linuxRelease = $(executable)-$(version)-linux.tar.gz
opendinguxRelease = $(executable).opk
windows:
@echo off
@@ -139,4 +140,33 @@ linux_release:
cd "$(releaseFolder)" && tar -czvf "../$(linuxRelease)" *
# Remove data
rm -rdf "$(releaseFolder)"
rm -rdf "$(releaseFolder)"
opendingux:
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ -std=c++11 $(source) -o "$(executable)"
opendingux_release:
# Remove data
rm -rdf "$(releaseFolder)"
# Create folders
mkdir -p "$(releaseFolder)"
# Copy data
cp -R data "$(releaseFolder)"
cp -R default.gcw0.desktop "$(releaseFolder)"
cp -R icon.png "$(releaseFolder)"
# Delete data
rm -f "$(releaseFolder)/data/room/map.world"
rm -f "$(releaseFolder)/data/room/standard.tsx"
# Build
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lSDL2_mixer -lstdc++ -std=c++11 $(source) -o "$(releaseFolder)/$(executable)"
# Pack files
rm -f "$(opendinguxRelease)"
cd "$(releaseFolder)" && /opt/gcw0-toolchain/usr/bin/mksquashfs ./default.gcw0.desktop ./icon.png ./data ./$(executable) "../$(opendinguxRelease)" -all-root -noappend -no-exports -no-xattrs
# Remove data
rm -rdf "$(releaseFolder)"

3
build.txt Normal file
View File

@@ -0,0 +1,3 @@
/opt/gcw0-toolchain/usr/bin/mipsel-linux-g++ -D GCWZERO -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT -lSDL2 -lstdc++ -std=c++11 source/*.cpp source/common/*.cpp -o jdd
sftp root@10.1.1.2:jdd <<< $'put jdd'
ssh root@10.1.1.2

10
default.gcw0.desktop Normal file
View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.6
Type=Application
Name=JailDoctor's Dilemma
Comment=JailDoctor's Dilemma
Icon=icon
Exec=jaildoctors_dilemma
Categories=games;Game;SDL;
Terminal=false

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

View File

@@ -4,7 +4,11 @@
// Constructor
Asset::Asset(std::string executablePath)
{
#ifdef __MIPSEL
this->executablePath = ".";
#else
this->executablePath = executablePath.substr(0, executablePath.find_last_of("\\/"));
#endif
longestName = 0;
verbose = true;
}

View File

@@ -121,7 +121,7 @@ void Director::initOptions()
options->videoMode = 0;
options->windowSize = 3;
options->filter = FILTER_NEAREST;
options->vSync = true;
options->vSync = false;
options->integerScale = true;
options->keepAspect = true;
options->borderEnabled = true;
@@ -130,11 +130,11 @@ void Director::initOptions()
options->palette = p_zxspectrum;
#ifdef GAME_CONSOLE
options->windowSize = 2;
options->windowSize = 1;
#endif
// Estos valores no se guardan en el fichero de configuraci´ón
options->console = false;
options->console = true;
options->cheat.infiniteLives = false;
options->cheat.invincible = false;
options->cheat.jailEnabled = false;