Skip to content

Commit

Permalink
Merge pull request #1030 from JeodC/lunarlux
Browse files Browse the repository at this point in the history
Add port Lunar Lux
  • Loading branch information
Cebion authored Dec 13, 2024
2 parents 1da5f20 + f4dd982 commit dae6d53
Show file tree
Hide file tree
Showing 30 changed files with 1,966 additions and 0 deletions.
63 changes: 63 additions & 0 deletions ports/lunarlux/Lunar Lux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/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/lunarlux"

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

# Exports
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/libs:$LD_LIBRARY_PATH"
export PATCHER_FILE="$GAMEDIR/tools/patchscript"
export PATCHER_GAME="$(basename "${0%.*}")" # This gets the current script filename without the extension
export PATCHER_TIME="10 to 15 minutes"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

# dos2unix in case we need it
dos2unix "$GAMEDIR/tools/gmKtool.py"
dos2unix "$GAMEDIR/tools/Klib/GMblob.py"
dos2unix "$GAMEDIR/tools/patchscript"

# Check if patchlog.txt to skip patching
if [ ! -f patchlog.txt ]; then
if [ -f "$controlfolder/utils/patcher.txt" ]; then
source "$controlfolder/utils/patcher.txt"
$ESUDO kill -9 $(pidof gptokeyb)
else
pm_message "This port requires the latest version of PortMaster."
fi
else
pm_message "Patching process already completed. Skipping."
fi

# Display loading splash
if [ -f "$GAMEDIR/patchlog.txt" ]; then
[ "$CFW_NAME" == "muOS" ] && $ESUDO ./tools/splash "splash.png" 1
$ESUDO ./tools/splash "splash.png" 2000 &
fi

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

# Cleanup
pm_finish
7 changes: 7 additions & 0 deletions ports/lunarlux/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Installation
Use `download_depot 1932680 1932681 4860005663388923912` with Steam Console to download the game and add the data to `lunarlux/assets`.

## Thanks
CosmicNobab Games -- The amazing game
JohnnyOnFlame -- GMLoader-Next and TextureRepacker via UTMT
Cyril "kotzebuedog" Delétré -- GMTools Audio Compressor
Binary file added ports/lunarlux/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions ports/lunarlux/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<gamelist>
<game>
<path>./Lunar Lux.sh</path>
<name>Lunar Lux</name>
<desc>Experience a sci-fi action-adventure RPG on the Moon in the year 30XX! Join Bella in a story of science, truth, justice, and trust, as she travels the silver globe to find a way to save humanity from Comet Coda! It's time to unleash your Lux!</desc>
<image>./lunarlux/cover.png</image>
<releasedate>20230925</releasedate>
<developer>CosmicNobab Games</developer>
<genre>Action, Adventure, Indie, RPG</genre>
</game>
</gamelist>
Empty file.
7 changes: 7 additions & 0 deletions ports/lunarlux/lunarlux/gmloader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"save_dir" : "saves",
"apk_path" : "lunarlux.port",
"show_cursor" : false,
"disable_controller" : false,
"force_platform" : "os_windows"
}
Binary file added ports/lunarlux/lunarlux/gmloadernext.aarch64
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ports/lunarlux/lunarlux/lib/arm64-v8a/libm.so
Binary file not shown.
Binary file added ports/lunarlux/lunarlux/lib/libcrypto.so.1.1
Binary file not shown.
Binary file added ports/lunarlux/lunarlux/lib/libopenal.so.1
Binary file not shown.
Binary file added ports/lunarlux/lunarlux/lib/libzip.so.5
Binary file not shown.
Loading

0 comments on commit dae6d53

Please sign in to comment.