RetroDECK/config/ecwolf/ecwolf.sh.todo
XargonWan 7ef3628995
feat/lighter manifest (#844)
* ES-DE: outsourced

* RetroArch: migrated to AppImage

* XEMU: migrated to AppImage

* MELONDS: migrated to AppImage

* RPCS3: migrated to AppImage

* MANIFEST: avoid overwriting native libraries

* MANIFEST: fixing ES-DE

* MANIFEST: fixed and normalized /app with FLATPAK_DEST

* MANIFEST: cleanup

* MANIFEST: fixed RetroArch

* PPSSPP: added wanted sdl module

* ES-DE: moved repo

* PPSSPP: outsourced

* PPSSPP: fixed link

* MANIFEST: fixing copy actions

* PCSX2: removing troublesome file

* DOLPHIN: outsourced

* SOLARUS: outsourced

* MANIFEST: lowercased rpcs3 sha

* MANIFEST: trying to figure out automation_task_list

* MANIFEST: fixed primehack placeholders

* REVERT ME: RUNNER CHANGED

* XEMU: moved on the bottom just to see if something changes

* DUCKSTATION: wrong cp target

* MANFEST: moved thir party libraries in /app/usr/local/lib

* MANFEST: removing dolphin debug libraries

* MANFEST: removing primehack debug libraries

* MANFEST: removing primehack pkgconfig libraries

* MANFEST: removing cemu lib

* SOLARUS: removing errored libs

* MAME: reverted to its original state as it's not coming with libraries

* RYUJINX: fixing chmod command

* GZDOOM: outsourced

* MANIFEST: added debug for checking out where tf is our icon

* Submodules cleanup

* GZDOOM: cleanup

* FRAMEWORK: moved third party libs into /app/retrodeck/lib

* MANIFEST: added retrodeck-pre-build commands

* MANIFEST: module renamed

* ES-DE: re-removed 'files/lib/girepository-1.0'

* GLOBAL: pathing the retrodeck components provided libraries

* RPCS3: moved bufgix in the proper module

* MANIFEST: moved component libraries into /app/retrodeck/lib

* MANIFEST: removing some debug cleanups

* MANIFEST: desktop file don't need to be executable

* ES-DE: re-adding libpoppler

* ES--DE: moved to the end to overwrite older libraries

* RYUJINX: fixed manifest

* MANIFEST: injecting needed libraries and discarding the troublesome ones

* MANIFEST: injecting needed libraries and discarding the troublesome ones - adding more

* MelonDS: outsourced but self built in QT6

* MANIFEST: automated the third party libs manager

* MANIFEST: fixed melonds build

* Ryujinx: downgraded to the older but working version

* MANIFEST: removed debug code

* WORKFLOW: running on self-hosted again

* MANIFEST: including debug and pkgconfig's librareis

* MANIFEST: removing pkgconfig's librareis

* MANIFEST: cannot move so copy and remove

* MANIFEST: cannot move so copy and remove - fix

* Toying with automation file to make it work again

* PRE_BUILD_AUTOMATION: testing a different script

* PRE_BUILD_AUTOMATION: adding new sha function

* MAME: fixing link

* MANIFEST: tweaks

* ATL: fixing ES-DE entry

* PPSSPP: fixed hash

* SOLARUS: fixing debug libs copy command

* APDATA: updated

* SOLARUS: that's not the library you're looking for

* GZDOOM: removing debug even here

* Revamped codename wordlist

* MANIFEST: following symlinks during library copy

* WORKFLOW: moving down the artifact preparation for fltahub as we don't even need it in cooker

* Manually adding missing libraries

* More codenames

* CEMU: added wrapper +  RPCS3 fixes

* THE GREAT FOLDER MOVE (aka let's see how much things I can break in a single commit)

* emu: fixed dest filename for the wrapper

* Cemu: fixing wrapper installation

* MANIFEST: trying to add LLVM to solve PCSX2, Duckstation issues

* MANIFEST: adding llvm doesn't change the situation, removed

* MANIFEST: trying to add vulkan

* MANIFEST: trying to add vulkan - removed as it should be already in (and that's broken)

* VULKAN: testing some libraries

* VULKAN: trying to add shaderc

* Manifest: renaming es-de module to stick with the repo name for updating purposes

* Migrated to the new latest links

* MAME: frixed url

* PCSX2: updated to 2.1.55

* Reverting workfolw edits

* WORKFLOW: targetting the old repo for the release

* WORKFLOW: updated some actions to a newever version to avoid deprecation at the end of the year

* MISSING_LIBS: trying to fetch libshaderc

* MAIN_WORKLFOW: updating actions versions [skip ci]
2024-08-05 03:45:21 +02:00

66 lines
1.7 KiB
Bash

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2021-present AmberELEC (https://github.com/AmberELEC)
. /etc/profile
EE_DEVICE=$(cat /storage/.config/.OS_ARCH)
CONFIG_DIR="/storage/.config/distribution/ecwolf"
CONFIG_FILE="${CONFIG_DIR}/ecwolf.cfg"
SAVE_DIR="/storage/roms/gamedata/ecwolf"
if [ ! -L "/storage/.config/ecwolf" ]
then
ln -sf "/storage/.config/distribution/ecwolf" "/storage/.config/ecwolf"
fi
if [ ! -f "/storage/.config/distribution/ecwolf/ecwolf.cfg" ]
then
cp -rf /usr/config/distribution/ecwolf/ecwolf.cfg /storage/.config/distribution/ecwolf/
fi
mkdir -p ${SAVE_DIR}
params=" --config ${CONFIG_FILE} --savedir ${SAVE_DIR}"
# data can be SD2 SD3 SOD WL6 or N3D and it's passed as the ROM
DATA=${1#*.}
# If its a mod (extension .ecwolf) read the file and parse the data
if [ ${DATA} == "ecwolf" ]; then
dos2unix "${1}"
while IFS== read -r key value; do
if [ "$key" == "DATA" ]; then
params+=" --data $value"
fi
if [ "$key" == "PK3" ]; then
params+=" --file $value"
fi
if [ "$key" == "PK3_1" ]; then
params+=" --file $value"
fi
if [ "$key" == "PK3_2" ]; then
params+=" --file $value"
fi
if [ "$key" == "PK3_3" ]; then
params+=" --file $value"
fi
if [ "$key" == "PK3_4" ]; then
params+=" --file $value"
fi
done < "${1}"
else
params+=" --data ${DATA}"
fi
if [[ "$EE_DEVICE" == RG351P ]]; then
params+=" --res 480 320"
fi
if [[ "$EE_DEVICE" == RG351V ]] || [[ "$EE_DEVICE" == RG351MP ]]; then
params+=" --res 640 480"
fi
cd "${CONFIG_DIR}"
/usr/bin/ecwolf ${params} > /tmp/logs/ecwolf.log 2>&1