Skip to content

Commit

Permalink
Merge pull request #1295 from JeodC/pixeldescent
Browse files Browse the repository at this point in the history
Update Pixel Descent
  • Loading branch information
cdeletre authored Feb 13, 2025
2 parents 82757a5 + a85d611 commit 0398619
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 54 deletions.
45 changes: 25 additions & 20 deletions ports/pixeldescent/Pixel Descent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,36 @@ $ESUDO chmod +x $GAMEDIR/gmloadernext.aarch64
$ESUDO chmod +x $GAMEDIR/tools/splash

# Exports
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/libs.aarch64:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

# Pack audiogroups into apk
if [ -n "$(ls ./gamedata/*.dat 2>/dev/null)" ]; then
mkdir -p ./assets
mv ./gamedata/*.dat ./assets/ 2>/dev/null
pm_message "Moving .dat files from ./gamedata to ./assets/"
zip -r -0 ./voidbreach.port ./assets/
pm_message "Zipping contents to ./voidbreach.port"
rm -Rf ./assets/
pm_message "Packing audiogroups complete"
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$LD_LIBRARY_PATH"

# Zip data if necessary
zip_archive() {
if [ -f "assets/data.win" ]; then
mv "assets/data.win" "assets/game.droid"
else
pm_message "No assets in assets dir!"
sleep 2
exit 1
fi
rm -rf assets/*.exe assets/*.dll assets/.gitkeep
echo "Removed unnecessary files"
zip -r -0 pixeldescent.port ./assets/
mkdir -p saves
rm -rf assets
}

if [ -d assets ]; then
zip_archive
fi

# Prepare files
[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid
[ -f "./gamedata/*.exe" ] && rm -f ./gamedata/*.exe

# Display loading splash
$ESUDO ./tools/splash "splash.png" 2000 &
[ "$CFW_NAME" == "muOS" ] && $ESUDO ./tools/splash "splash.png" 1
$ESUDO ./tools/splash "splash.png" 5000 &

# Assign configs and load the game
# Assign gptokeyb and load the game
$GPTOKEYB "gmloadernext.aarch64" -c "pixeldescent.gptk" &
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64"
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64" >/dev/null
./gmloadernext.aarch64 -c gmloader.json

# Cleanup
# Kill processes
pm_finish
Binary file added ports/pixeldescent/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ports/pixeldescent/gameinfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<developer>JC Bailey</developer>
<publisher>Moonskull Games</publisher>
<genre>Roguelike</genre>
<image>./pixeldescent/screenshot.png</image>
<image>./pixeldescent/cover.png</image>
</game>
</gameList>
13 changes: 7 additions & 6 deletions ports/pixeldescent/pixeldescent/gmloader.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"save_dir" : "gamedata",
"apk_path" : "pixeldescent.port",
"show_cursor" : false,
"disable_controller" : false,
"force_platform" : "os_windows"
}
"save_dir" : "saves",
"apk_path" : "pixeldescent.port",
"show_cursor" : false,
"disable_controller" : false,
"disable_depth" : false,
"force_platform" : "os_windows"
}
Binary file modified ports/pixeldescent/pixeldescent/gmloadernext.aarch64
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
MIT
Copyright 2018 Andre von Houck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT

Copyright 2018 Andre von Houck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
LICENSE
libzip is released under a 3-clause BSD license:
Copyright (C) 1999-2022 Dieter Baron and Thomas Klausner
The authors can be contacted at [email protected]
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
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.
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.
LICENSE

libzip is released under a 3-clause BSD license:

Copyright (C) 1999-2022 Dieter Baron and Thomas Klausner

The authors can be contacted at [email protected]

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

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.

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.

Binary file modified ports/pixeldescent/pixeldescent/pixeldescent.port
Binary file not shown.
Binary file modified ports/pixeldescent/pixeldescent/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0398619

Please sign in to comment.