diff --git a/ports/ohmygodlookatthisknight/OH MY GOD, look at this knight.sh b/ports/ohmygodlookatthisknight/OH MY GOD, look at this knight.sh new file mode 100644 index 0000000000..09a1d3b032 --- /dev/null +++ b/ports/ohmygodlookatthisknight/OH MY GOD, look at this knight.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} + +if [ -d "/opt/system/Tools/PortMaster/" ]; then + controlfolder="/opt/system/Tools/PortMaster" +elif [ -d "/opt/tools/PortMaster/" ]; then + controlfolder="/opt/tools/PortMaster" +elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then + controlfolder="$XDG_DATA_HOME/PortMaster" +else + controlfolder="/roms/ports/PortMaster" +fi + +source $controlfolder/control.txt +export PORT_32BIT="Y" +[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt" +get_controls + +GAMEDIR="/$directory/ports/ohmygodlookatthisknight" + +export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$LD_LIBRARY_PATH" +export GMLOADER_DEPTH_DISABLE=1 +export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/" +export GMLOADER_PLATFORM="os_linux" + +# We log the execution of the script into log.txt +> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 + +cd $GAMEDIR + +# Extract and patch file +if [ -f "./gamedata/OH_MY_GOD__LOOK_AT_THIS_KNIGHT.exe" ]; then + # Patch data.win + $controlfolder/xdelta3 -d -s "./gamedata/data.win" "./gamedata/patch.xdelta3" "./gamedata/game.droid" + [ $? -eq 0 ] && rm "./gamedata/data.win" || echo "Patching of data.win has failed" + # Move all .ogg files from ./gamedata to ./assets + mv ./gamedata/*.ogg ./assets/ + echo "Moved .ogg files from ./gamedata to ./assets/" + # Zip the contents of ./sm.apk including the new .ogg files + zip -r -0 ./game.apk ./game.apk ./assets/ + rm -f ./assets/*.ogg + echo "Zipped contents to ./game.apk" + # Delete unneeded files + rm -f gamedata/*.{dll,exe} +fi + +$GPTOKEYB "gmloader" -c ./ohmygodlookatthisknight.gptk & + +$ESUDO chmod +x "$GAMEDIR/gmloader" +pm_platform_helper "$GAMEDIR/gmloader" +./gmloader game.apk + +pm_finish diff --git a/ports/ohmygodlookatthisknight/README.md b/ports/ohmygodlookatthisknight/README.md new file mode 100644 index 0000000000..1c1dfea651 --- /dev/null +++ b/ports/ohmygodlookatthisknight/README.md @@ -0,0 +1,17 @@ +## Notes + +Thanks to [Foxoft](https://vk.com/chaifoxes) for creating this fantastic game, which you can claim free on [Steam](https://store.steampowered.com/app/781440/OH_MY_GOD_LOOK_AT_THIS_KNIGHT) + +Note that widescreen ROCKNIX devices may experience graphical glitches in the 'pillar-box' area of the screen during cutscenes, but this shouldn't obscure anything and will disappear when gameplay resumes. + + +## Controls + +| Button | Action | +| --------- | ----------------- | +| L-STICK | Move | +| R-STICK | Aim | +| A/B/L1/L2 | Attack | +| X/Y | Grab? | +| SELECT | Toggle fullscreen | +| START | Pause | diff --git a/ports/ohmygodlookatthisknight/gameinfo.xml b/ports/ohmygodlookatthisknight/gameinfo.xml new file mode 100644 index 0000000000..3dd81bdf6c --- /dev/null +++ b/ports/ohmygodlookatthisknight/gameinfo.xml @@ -0,0 +1,13 @@ + + + + ./OH MY GOD, look at this knight.sh + OH MY GOD, look at this knight + Grab your shiny helmet and trusty sword, gather all the valor and honor you have, and show everyone what being the true knight actually means! + 20180130T000000 + Foxoft + AZAMATIKA + Action-Adventure + ./ungratefulbirdsngd/screenshot.png + + diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/assets/.gitkeep b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/assets/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/game.apk b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/game.apk new file mode 100644 index 0000000000..7272d2a4bd Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/game.apk differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/patch.xdelta3 b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/patch.xdelta3 new file mode 100644 index 0000000000..b06bbe6cb9 Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/patch.xdelta3 differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/splash.png b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/splash.png new file mode 100644 index 0000000000..927525d086 Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gamedata/splash.png differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gmloader b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gmloader new file mode 100644 index 0000000000..f953f12dd3 Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/gmloader differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libc++_shared.so b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libc++_shared.so new file mode 100644 index 0000000000..fb45ef9052 Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libc++_shared.so differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libcrypto.txt b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libcrypto.txt new file mode 100644 index 0000000000..9601ab4357 --- /dev/null +++ b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libcrypto.txt @@ -0,0 +1,125 @@ + + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. + + OpenSSL License + --------------- + +/* ==================================================================== + * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL" + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are aheared to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given attribution + * as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the rouines from the library + * being used are not cryptographic related :-). + * 4. If you include any Windows specific code (or a derivative thereof) from + * the apps directory (application code) you must include an acknowledgement: + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * The licence and distribution terms for any publically available version or + * derivative of this code cannot be changed. i.e. this code cannot simply be + * copied and put under another distribution licence + * [including the GNU Public Licence.] + */ + diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libzip.txt b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libzip.txt new file mode 100644 index 0000000000..fa70609611 --- /dev/null +++ b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/LICENSE.libzip.txt @@ -0,0 +1,31 @@ +Copyright (C) 1999-2020 Dieter Baron and Thomas Klausner + +The authors can be contacted at + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + +3. The names of the authors may not be used to endorse or promote + products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libcrypto.so.1.1 b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libcrypto.so.1.1 new file mode 100644 index 0000000000..12578440aa Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libcrypto.so.1.1 differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libzip.so.5 b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libzip.so.5 new file mode 100644 index 0000000000..0908c68657 Binary files /dev/null and b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/libs/libzip.so.5 differ diff --git a/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/ohmygodlookatthisknight.gptk b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/ohmygodlookatthisknight.gptk new file mode 100644 index 0000000000..c9425588c1 --- /dev/null +++ b/ports/ohmygodlookatthisknight/ohmygodlookatthisknight/ohmygodlookatthisknight.gptk @@ -0,0 +1,14 @@ +back = = 0 +start = = \" +up = w +down = s +left = a +right = d +left_analog_up = \" +left_analog_down = \" +left_analog_left = \" +left_analog_right = \" +a = \" +b = \" +x = \" +y = mouse_right diff --git a/ports/ohmygodlookatthisknight/port.json b/ports/ohmygodlookatthisknight/port.json new file mode 100644 index 0000000000..64eb3c3ef0 --- /dev/null +++ b/ports/ohmygodlookatthisknight/port.json @@ -0,0 +1,30 @@ +{ + "version": 3, + "name": "ohmygodlookatthisknight.zip", + "items": [ + "OH MY GOD, look at this knight.sh", + "ohmygodlookatthisknight" + ], + "items_opt": [], + "attr": { + "title": "OH MY GOD, look at this knight", + "porter": [ + "tabreturn" + ], + "desc": "Grab your shiny helmet and trusty sword, gather all the valor and honor you have, and show everyone what being the true knight actually means!", + "desc_md": null, + "inst": "Claim free on Steam (https://store.steampowered.com/app/781440/OH_MY_GOD_LOOK_AT_THIS_KNIGHT), download, and copy the game files to the ohmygodlookatthisknight/gamedata folder.", + "inst_md": "Claim free on [Steam](https://store.steampowered.com/app/781440/OH_MY_GOD_LOOK_AT_THIS_KNIGHT), download, and copy the game files to the `ohmygodlookatthisknight/gamedata` folder.", + "genres": [ + "adventure" + ], + "image": null, + "rtr": false, + "exp": false, + "runtime": null, + "reqs": [], + "arch": [ + "armhf" + ] + } +} diff --git a/ports/ohmygodlookatthisknight/screenshot.png b/ports/ohmygodlookatthisknight/screenshot.png new file mode 100644 index 0000000000..6f5812221f Binary files /dev/null and b/ports/ohmygodlookatthisknight/screenshot.png differ diff --git a/ports/sonic3air/port.json b/ports/sonic3air/port.json index bab2103222..bde57d1e98 100644 --- a/ports/sonic3air/port.json +++ b/ports/sonic3air/port.json @@ -27,4 +27,4 @@ "aarch64" ] } -} \ No newline at end of file +}