Skip to content

Commit

Permalink
Merge pull request #526 from JanTrueno/Maldita-Castilla
Browse files Browse the repository at this point in the history
Updated Port: Maldita Castilla
  • Loading branch information
Cebion authored Jul 12, 2024
2 parents 15718f1 + cd463a4 commit d0e835e
Show file tree
Hide file tree
Showing 25 changed files with 539 additions and 174 deletions.
60 changes: 0 additions & 60 deletions ports/maldita.castilla/Maldita Castilla.sh

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 0 additions & 24 deletions ports/maldita.castilla/MalditaCastilla/malditacastilla.gptk

This file was deleted.

6 changes: 0 additions & 6 deletions ports/maldita.castilla/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions ports/maldita.castilla/gameinfo.xml

This file was deleted.

28 changes: 0 additions & 28 deletions ports/maldita.castilla/port.json

This file was deleted.

Binary file removed ports/maldita.castilla/screenshot.jpg
Binary file not shown.
43 changes: 43 additions & 0 deletions ports/malditacastilla/Maldita Castilla.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/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
source $controlfolder/device_info.txt

export PORT_32BIT="Y"
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="/$directory/ports/malditacastilla"
cd $GAMEDIR

# Exports
export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"
export GMLOADER_PLATFORM="os_windows"

# We log the execution of the script into log.txt
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "gmloader" &
$ESUDO chmod +x "$GAMEDIR/gmloader"
./gmloader malditacastilla.apk

# Cleanup
$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
14 changes: 14 additions & 0 deletions ports/malditacastilla/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Notes

Big thanks to [Locomalito](https://locomalito.com/maldita-castilla.php) for creating this awesome game and licensing it! Also thanks to Krishenriksen for doing the original port.

## Controls

| Button | Action |
|--|--|
|A|Jump|
|B|Fire|
|D-pad|Move|
|Start|Menu|


File renamed without changes
12 changes: 12 additions & 0 deletions ports/malditacastilla/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>./Maldita Castilla.sh</path>
<name>Maldita Castilla</name>
<desc>An arcade action video game developed by Locomalito and released in December 2012. The gameplay is inspired by the games Shinobi and Ghost and Goblins.</desc>
<releasedate>20121212T000000</releasedate>
<developer>Locomalito</developer>
<genre>Action</genre>
<image>./malditacastilla/cover.png</image>
</game>
</gameList>
Loading

0 comments on commit d0e835e

Please sign in to comment.