Compare commits
5 Commits
v1.08
...
29a2ebf221
| Author | SHA1 | Date | |
|---|---|---|---|
| 29a2ebf221 | |||
| bcccfb026f | |||
| aad60d9849 | |||
| 4de0743a77 | |||
| 80e91e7acd |
30
Makefile
30
Makefile
@@ -9,6 +9,7 @@ windowsRelease = $(executable)-$(version)-win32-x64.zip
|
|||||||
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
|
macosIntelRelease = $(executable)-$(version)-macos-intel.dmg
|
||||||
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
|
macosAppleSiliconRelease = $(executable)-$(version)-macos-apple-silicon.dmg
|
||||||
linuxRelease = $(executable)-$(version)-linux.tar.gz
|
linuxRelease = $(executable)-$(version)-linux.tar.gz
|
||||||
|
opendinguxRelease = $(executable).opk
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
@echo off
|
@echo off
|
||||||
@@ -140,3 +141,32 @@ linux_release:
|
|||||||
|
|
||||||
# Remove data
|
# 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
3
build.txt
Normal 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
10
default.gcw0.desktop
Normal 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
|
||||||
|
|
||||||
@@ -4,7 +4,11 @@
|
|||||||
// Constructor
|
// Constructor
|
||||||
Asset::Asset(std::string executablePath)
|
Asset::Asset(std::string executablePath)
|
||||||
{
|
{
|
||||||
|
#ifdef __MIPSEL
|
||||||
|
this->executablePath = ".";
|
||||||
|
#else
|
||||||
this->executablePath = executablePath.substr(0, executablePath.find_last_of("\\/"));
|
this->executablePath = executablePath.substr(0, executablePath.find_last_of("\\/"));
|
||||||
|
#endif
|
||||||
longestName = 0;
|
longestName = 0;
|
||||||
verbose = true;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ void Director::initOptions()
|
|||||||
options->videoMode = 0;
|
options->videoMode = 0;
|
||||||
options->windowSize = 3;
|
options->windowSize = 3;
|
||||||
options->filter = FILTER_NEAREST;
|
options->filter = FILTER_NEAREST;
|
||||||
options->vSync = true;
|
options->vSync = false;
|
||||||
options->integerScale = true;
|
options->integerScale = true;
|
||||||
options->keepAspect = true;
|
options->keepAspect = true;
|
||||||
options->borderEnabled = true;
|
options->borderEnabled = true;
|
||||||
@@ -130,11 +130,11 @@ void Director::initOptions()
|
|||||||
options->palette = p_zxspectrum;
|
options->palette = p_zxspectrum;
|
||||||
|
|
||||||
#ifdef GAME_CONSOLE
|
#ifdef GAME_CONSOLE
|
||||||
options->windowSize = 2;
|
options->windowSize = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Estos valores no se guardan en el fichero de configuraci´ón
|
// Estos valores no se guardan en el fichero de configuraci´ón
|
||||||
options->console = false;
|
options->console = true;
|
||||||
options->cheat.infiniteLives = false;
|
options->cheat.infiniteLives = false;
|
||||||
options->cheat.invincible = false;
|
options->cheat.invincible = false;
|
||||||
options->cheat.jailEnabled = false;
|
options->cheat.jailEnabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user