Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maldita Castilla #226

Open
FoxSoratto opened this issue Apr 9, 2024 · 4 comments
Open

Maldita Castilla #226

FoxSoratto opened this issue Apr 9, 2024 · 4 comments

Comments

@FoxSoratto
Copy link

Tried every source available for this port, even from the batocera wiki, and still can make it run.

Can anyone that did got it running share the .sh code for the V40?

@uzumak11
Copy link

uzumak11 commented Apr 9, 2024

Port works fine. Edit the .sh file to correct the game path

@FoxSoratto
Copy link
Author

I'm trying to. Do you have the full .sh code?

@uzumak11
Copy link

uzumak11 commented Apr 9, 2024


#!/bin/bash

export HOME=/userdata/system
export GAMEDIR="/userdata/roms/ports/malditacastilla"
cd $GAMEDIR

export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"
export SDL_GAMECONTROLLERCONFIG=$(grep "Deeplay" "${HOME}/.config/gamecontrollerdb.txt")

echo $SDL_GAMECONTROLLERCONFIG

chmod +x $GAMEDIR/xdelta3
chmod +x $GAMEDIR/gmloader

# If Windows/Linux install, move the data file.
if [ -f 'gamedata/data.win' ] && [ ! -f 'gamedata/game.droid' ]; then
	echo "performing first time setup..." |& tee install_log.txt /dev/tty0
	if [ ! -f 'gamedata/data.win' ]; then
		echo "No data.win, please copy files into the 'gamedata/' folder." |& tee -a install_log.txt /dev/tty0
		sleep 5
		exit 1
	fi

	SHA1SUM=$(sha1sum gamedata/data.win | cut -d ' ' -f 1)
	PATCH=""
	case $SHA1SUM in
		"194692ad55916d9bef7bb910f824c6b5e76e85a1") PATCH=mcex_steam.xdelta ;;
		*)
		echo "Unknown Maldita Castilla EX version, check for updates via PortMaster." |& tee -a install_log.txt /dev/tty0
		echo "If this is wrong, please report the sha1sum code:" |& tee -a install_log.txt /dev/tty0
		echo "sha1sum: $SHA1SUM" |& tee -a install_log.txt /dev/tty0
		sleep 5
		exit 1
		;;
	esac

	./xdelta3 -d -s gamedata/data.win $PATCH gamedata/game.droid |& tee -a install_log.txt /dev/tty0
	if [ $? != 0 ]; then
		echo "First time setup failed." |& tee -a install_log.txt /dev/tty0
		sleep 5
		exit 1
	fi
fi

if [[ -e "gamedata/game.droid" ]]; then
	export GMLOADER_PLATFORM="os_windows"

	echo "Launching Maldita Castilla EX (Retail)" |& tee log.txt /dev/tty0
	./gmloader MalditaEXWrapper.apk |& tee -a log.txt /dev/tty0
else
	echo "Launching Maldita Castilla (Ouya)" |& tee log.txt /dev/tty0
	./gmloader gamedata/Maldita_Castilla_ouya.apk |& tee -a log.txt /dev/tty0
fi

exit 0


@FoxSoratto
Copy link
Author

Yes! Thx for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants