Skip to content

Commit

Permalink
Merge pull request #1274 from Sacredev/Leap-Year
Browse files Browse the repository at this point in the history
New Port: Leap Year
  • Loading branch information
Cebion authored Feb 8, 2025
2 parents d10ea5d + fb80f8f commit 10712b4
Show file tree
Hide file tree
Showing 22 changed files with 1,127 additions and 0 deletions.
53 changes: 53 additions & 0 deletions ports/leapyear/Leap Year.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/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
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

# Variables
GAMEDIR="/$directory/ports/leapyear"

# CD and set permissions
cd $GAMEDIR
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
$ESUDO chmod +x $GAMEDIR/gmloadernext.aarch64

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

# Extract and patch file
if [ -f "./assets/data.win" ]; then
if [ "$(md5sum "./assets/data.win" | awk '{print $1}')" == "9ceb853d5bd622c94c5bbe10945bfe4d" ]; then
# itch
$controlfolder/xdelta3 -d -s "./assets/data.win" "./patch/itch_patch.xdelta" "./assets/game.droid"
elif [ "$(md5sum "./assets/data.win" | awk '{print $1}')" == "0d19cb03cf680cd2e8c0965f9d295630" ]; then
# Steam
$controlfolder/xdelta3 -d -s "./assets/data.win" "./patch/steam_patch.xdelta" "./assets/game.droid"
fi
[ $? -eq 0 ] && rm "./assets/data.win" || pm_message "Failed to apply patch"
# Delete redundant files
rm -f assets/*.{dll,exe}
# Zip audio files into the game.port
zip -r -0 ./game.port ./assets/audiogroup1.dat
fi

# Assign gptokeyb and load the game
$GPTOKEYB "gmloadernext.aarch64" xbox360 &
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64"
./gmloadernext.aarch64 -c "gmloader.json"

# Cleanup
pm_finish
15 changes: 15 additions & 0 deletions ports/leapyear/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Notes

Special thanks to [Daniel Linssen](https://daniellinssen.games) and [Sokpop Collective](https://sokpop.itch.io) for making this awesome game!
Thanks to [tabreturn](https://portmaster.games/profile.html?porter=tabreturn) for testing the game and patching the itch version.

## Controls

| Button | Action |
|--|--|
|L-stick/D-pad|Move|
|B|Select/Jump|
|Start|Pause|
|l2/r2|Grid on/off|


Binary file added ports/leapyear/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions ports/leapyear/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Leap Year.sh</path>
<name>Leap Year</name>
<desc>Leap Year is a clumsy platformer about knowledge and discovery. Explore a compact, hand drawn world filled with hidden paths. Understand the game’s secrets to reach new areas and collect all the pages of your calendar.</desc>
<releasedate>20240614T000000</releasedate>
<developer>Daniel Linssen</developer>
<publisher>Daniel Linssen, Sokpop Collective</publisher>
<genre>Action Adventure Platformer</genre>
<image>./leapyear/cover.png</image>
</game>
</gameList>
Empty file.
Binary file added ports/leapyear/leapyear/game.port
Binary file not shown.
7 changes: 7 additions & 0 deletions ports/leapyear/leapyear/gmloader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"save_dir" : "assets",
"apk_path" : "game.port",
"show_cursor" : false,
"disable_controller" : false,
"force_platform" : "os_windows"
}
Binary file added ports/leapyear/leapyear/gmloadernext.aarch64
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ports/leapyear/leapyear/lib/arm64-v8a/libm.so
Binary file not shown.
Binary file added ports/leapyear/leapyear/lib/libcrypto.so.1.1
Binary file not shown.
Binary file added ports/leapyear/leapyear/lib/libopenal.so.1
Binary file not shown.
Binary file added ports/leapyear/leapyear/lib/libzip.so.5
Binary file not shown.
Loading

0 comments on commit 10712b4

Please sign in to comment.