-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1030 from JeodC/lunarlux
Add port Lunar Lux
- Loading branch information
Showing
30 changed files
with
1,966 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.