Removed unused files

This commit is contained in:
XargonWan 2022-04-01 09:31:09 +09:00
parent 2075950471
commit 012207e9b1
9 changed files with 1 additions and 8988 deletions

View file

@ -504,7 +504,6 @@ modules:
- mkdir -p ${FLATPAK_DEST}/retrodeck/ - mkdir -p ${FLATPAK_DEST}/retrodeck/
- cp es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml - cp es_settings.xml ${FLATPAK_DEST}/retrodeck/es_settings.xml
- cp retrodeck-retroarch.cfg ${FLATPAK_DEST}/retrodeck/retrodeck-retroarch.cfg - cp retrodeck-retroarch.cfg ${FLATPAK_DEST}/retrodeck/retrodeck-retroarch.cfg
- cp systemfolders.zip ${FLATPAK_DEST}/retrodeck/
# Logo, res # Logo, res
- rm -f /app/share/emulationstation/resources/graphics/splash.svg - rm -f /app/share/emulationstation/resources/graphics/splash.svg
@ -542,5 +541,3 @@ modules:
path: tools path: tools
- type: file - type: file
path: desktop_entry path: desktop_entry
- type: file
path: systemfolders.zip

View file

@ -1,30 +0,0 @@
<?xml version="1.0"?>
<inputList>
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
<input name="a" type="key" id="120" value="1" />
<input name="b" type="key" id="122" value="1" />
<input name="down" type="key" id="1073741905" value="1" />
<input name="hotkeyenable" type="key" id="32" value="1" />
<input name="left" type="key" id="1073741904" value="1" />
<input name="leftanalogdown" type="key" id="107" value="1" />
<input name="leftanalogleft" type="key" id="106" value="1" />
<input name="leftanalogright" type="key" id="108" value="1" />
<input name="leftanalogup" type="key" id="105" value="1" />
<input name="leftshoulder" type="key" id="119" value="1" />
<input name="leftthumb" type="key" id="99" value="1" />
<input name="lefttrigger" type="key" id="113" value="1" />
<input name="right" type="key" id="1073741903" value="1" />
<input name="rightanalogdown" type="key" id="1073741914" value="1" />
<input name="rightanalogleft" type="key" id="1073741916" value="1" />
<input name="rightanalogright" type="key" id="1073741918" value="1" />
<input name="rightanalogup" type="key" id="1073741920" value="1" />
<input name="rightshoulder" type="key" id="101" value="1" />
<input name="rightthumb" type="key" id="118" value="1" />
<input name="righttrigger" type="key" id="114" value="1" />
<input name="select" type="key" id="8" value="1" />
<input name="start" type="key" id="13" value="1" />
<input name="up" type="key" id="1073741906" value="1" />
<input name="x" type="key" id="97" value="1" />
<input name="y" type="key" id="115" value="1" />
</inputConfig>
</inputList>

View file

@ -1,24 +0,0 @@
<?xml version="1.0"?>
<inputList>
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
<input name="a" type="key" id="120" value="1" />
<input name="b" type="key" id="122" value="1" />
<input name="back" type="key" id="8" value="1" />
<input name="down" type="key" id="1073741905" value="1" />
<input name="left" type="key" id="1073741904" value="1" />
<input name="leftshoulder" type="key" id="119" value="1" />
<input name="lefttrigger" type="key" id="113" value="1" />
<input name="right" type="key" id="1073741903" value="1" />
<input name="rightshoulder" type="key" id="101" value="1" />
<input name="rightthumbstickclick" type="key" id="1073741917" value="1" />
<input name="rightthumbstickdown" type="key" id="1073741914" value="1" />
<input name="rightthumbstickleft" type="key" id="1073741916" value="1" />
<input name="rightthumbstickright" type="key" id="1073741918" value="1" />
<input name="rightthumbstickup" type="key" id="1073741920" value="1" />
<input name="righttrigger" type="key" id="114" value="1" />
<input name="start" type="key" id="13" value="1" />
<input name="up" type="key" id="1073741906" value="1" />
<input name="x" type="key" id="97" value="1" />
<input name="y" type="key" id="115" value="1" />
</inputConfig>
</inputList>

View file

@ -1,78 +0,0 @@
<?xml version="1.0"?>
<config>
<bool name="EnableSounds" value="false" />
<bool name="ScrapeFanart" value="false" />
<bool name="ScrapeManual" value="false" />
<bool name="ScrapeMap" value="false" />
<int name="ScreenSaverTime" value="180000" />
<int name="recent.sort" value="7" />
<string name="3do.HiddenExt" value="iso;bin" />
<string name="AudioCard" value="default" />
<string name="AudioDevice" value="Playback" />
<string name="CollectionSystemsAuto" value="favorites, recent" />
<string name="CollectionSystemsCustom" value="" />
<string name="DefaultGridSize" value="" />
<string name="FolderViewMode" value="always" />
<string name="GameTransitionStyle" value="auto" />
<string name="GamelistViewStyle" value="automatic" />
<string name="HiddenSystems" value="" />
<string name="INPUT P1" value="DEFAULT" />
<string name="INPUT P1NAME" value="DEFAULT" />
<string name="INPUT P2" value="DEFAULT" />
<string name="INPUT P2NAME" value="DEFAULT" />
<string name="INPUT P3" value="DEFAULT" />
<string name="INPUT P3NAME" value="DEFAULT" />
<string name="INPUT P4" value="DEFAULT" />
<string name="INPUT P4NAME" value="DEFAULT" />
<string name="INPUT P5" value="DEFAULT" />
<string name="INPUT P5NAME" value="DEFAULT" />
<string name="INPUT P6NAME" value="DEFAULT" />
<string name="INPUT P7NAME" value="DEFAULT" />
<string name="INPUT P8NAME" value="DEFAULT" />
<string name="Language" value="en_US" />
<string name="LastSystem" value="megadrive" />
<string name="OMXAudioDev" value="both" />
<string name="Overclock" value="none" />
<string name="PowerSaverMode" value="default" />
<string name="Scraper" value="ArcadeDB" />
<string name="ScrapperImageSrc" value="ss" />
<string name="ScrapperLogoSrc" value="" />
<string name="ScrapperThumbSrc" value="" />
<string name="ScreenSaverBehavior" value="black" />
<string name="ScreenSaverDecorations" value="none" />
<string name="ScreenSaverGameInfo" value="never" />
<string name="ShowBattery" value="text" />
<string name="SlideshowScreenSaverImageDir" value="/storage/screenshots" />
<string name="SlideshowScreenSaverImageFilter" value=".png,.jpg" />
<string name="SlideshowScreenSaverVideoDir" value="/storage/roms/mplayer" />
<string name="SlideshowScreenSaverVideoFilter" value=".mp4,.avi,.mkv,.flv,.mpg,.mov" />
<string name="SortSystems" value="alpha" />
<string name="StartupSystem" value="lastsystem" />
<string name="ThemeColorSet" value="red" />
<string name="ThemeGamelistView" value="" />
<string name="ThemeIconSet" value="" />
<string name="ThemeMenu" value="" />
<string name="ThemeRegionName" value="" />
<string name="ThemeSet" value="es-theme-art-book-next" />
<string name="ThemeSystemView" value="" />
<string name="TransitionStyle" value="auto" />
<string name="UIMode" value="Full" />
<string name="UIMode_passkey" value="aaaba" />
<string name="amigacd32.HiddenExt" value="iso" />
<string name="megacd.HiddenExt" value="iso" />
<string name="neogeocd.HiddenExt" value="iso" />
<string name="pcenginecd.HiddenExt" value="iso;img;bin" />
<string name="pcfx.HiddenExt" value="toc" />
<string name="psx.HiddenExt" value="bin;img;iso" />
<string name="saturn.HiddenExt" value="iso" />
<string name="segacd.HiddenExt" value="iso" />
<string name="subset.88-mph" value="on" />
<string name="subset.airen-thumbs" value="thumb-image" />
<string name="subset.background-art" value="on" />
<string name="subset.blindornot" value="blind-on" />
<string name="subset.clickset" value="click1" />
<string name="subset.colorset" value="red" />
<string name="subset.metadata" value="custommeta" />
<string name="subset.themestyle" value="light" />
<string name="tg16cd.HiddenExt" value="iso;img;bin" />
</config>

File diff suppressed because it is too large Load diff

View file

@ -1,195 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2020-present Fewtarius
# This content was taken from 99-distribution.conf and made as a shell script for steam deck
# TODO: remove absolute paths and put the variables INSTALL_DIR
export PATH="$PATH:/usr/local/bin:/usr/bin:/storage/bin"
export SDL_GAMECONTROLLERCONFIG_FILE="~/retrodeck/storage/.config/SDL-GameControllerDB/gamecontrollerdb.txt"
EE_DIR="~/retrodeck/storage/.config/distribution"
EE_CONF="${EE_DIR}/configs/distribution.conf"
ES_CONF="~/retrodeck/storage/.emulationstation/es_settings.cfg"
EE_DEVICE=$(cat ~/retrodeck/storage/.config/.OS_ARCH)
JSLISTENCONF="~/retrodeck/storage/.config/distribution/configs/jslisten.cfg"
get_ee_setting() {
# Argument $1 is the setting name, EmuELEC settings alway start with ee_ e.g. ee_novideo
# Usage: get_ee_setting setting [platform] [rom]
# Only the setting argument is required
# Priority is: GAME, PLATFORM, GLOBAL, EE_SETTING if at any point one returns 0 it means its dissabled, if it returns empty it will continue onto the next one.
SETTING="${1}"
PLATFORM="${2}"
ROM="${3}"
#ROM
ROM=$(echo [\"${ROM}\"] | sed -e 's|\[|\\\[|g' | sed -e 's|\]|\\\]|g' | sed -e 's|(|\\\(|g' | sed -e 's|)|\\\)|g')
PAT="^${PLATFORM}${ROM}[.-]${SETTING}=(.*)"
EES=$(cat "${EE_CONF}" | grep -oE "${PAT}")
EES="${EES##*=}"
if [ -z "${EES}" ]; then
#PLATFORM
PAT="^${PLATFORM}[.-]${SETTING}=(.*)"
EES=$(cat "${EE_CONF}" | grep -oE "${PAT}")
EES="${EES##*=}"
fi
if [ -z "${EES}" ]; then
#GLOBAL
PAT="^global[.-]${SETTING}=(.*)"
EES=$(cat "${EE_CONF}" | grep -oE "${PAT}")
EES="${EES##*=}"
fi
if [ -z "${EES}" ]; then
#EE_SETTINGS
PAT="^${SETTING}=(.*)"
EES=$(cat "${EE_CONF}" | grep -oE "${PAT}")
EES="${EES##*=}"
fi
echo "${EES}"
}
set_ee_setting() {
# argument $1 is the setting name e.g. nes.integerscale. $2 is the value, e.g "1"
sed -i "/$1=/d" "${EE_CONF}"
[ $2 == "disable" ] && echo "#${1}=" >> "${EE_CONF}" || echo "${1}=${2}" >> "${EE_CONF}"
}
get_es_setting() {
echo $(sed -n "s|\s*<${1} name=\"${2}\" value=\"\(.*\)\" />|\1|p" ${ES_CONF})
}
normperf() {
# A foo function as in steam deck is not needed, however sometime it's called and I am lazy to edit everything, sorry -Xargon
return
}
maxperf() {
# A foo function as in steam deck is not needed, however sometime it's called and I am lazy to edit everything, sorry -Xargon
return
}
ee_check_bios() {
PLATFORM="${1}"
CORE="${2}"
EMULATOR="${3}"
ROMNAME="${4}"
LOG="${5}"
if [[ -z "$LOG" ]]; then
LOG="/tmp/logs/exec.log"
cat /etc/motd > "$LOG"
fi
MISSINGBIOS="$(batocera-systems --strictfilter ${PLATFORM})"
if [ "$?" == "2" ]; then
# formating so it looks nice :)
PLATFORMNAME="${MISSINGBIOS##*>}" # read from -P onwards
PLATFORMNAME="${PLATFORMNAME%%MISSING*}" # until a space is found
PLATFORMNAME=$(echo $PLATFORMNAME | sed -e 's/\\n//g')
if [[ -f "${LOG}" ]]; then
echo "${CORE} ${EMULATOR} ${ROMNAME}" >> $LOG
echo "${PLATFORMNAME} missing BIOS - Could not find all BIOS: " >> $LOG
echo "please make sure you copied the files into the corresponding folder " >> $LOG
echo "${MISSINGBIOS}" >> $LOG
fi
MISSINGBIOS=$(echo "$MISSINGBIOS" | sed -e 's/$/\\n/g')
/usr/bin/error.sh "${PLATFORMNAME} missing BIOS" "Could not find all BIOS/files in /storage/roms, the game may not work:\n\n ${MISSINGBIOS}\n\nPlease make sure you copied the files into the corresponding folder."
error_process="$!"
pkill -P $error_process
fi
}
message_stream () {
local MESSAGE=$1
local DELAY=$2
local LOADBUFFER=0
local ANSI=0
for (( i=0; i<${#MESSAGE}; i++ ))
do
CHAR="${MESSAGE:$i:1}"
# Is this an escape character?
if [ "${CHAR}" == "\\" ]
then
LOADBUFFER=1
BUFFER="$BUFFER${CHAR}"
continue
fi
# Is this ANSI? (\e[*[a-Z])
if [ "${BUFFER}" == "\e[" ] && [ "${LOADBUFFER}" -eq 1 ]
then
ANSI=1
BUFFER="$BUFFER${CHAR}"
continue
fi
if [ "${LOADBUFFER}" -eq 1 ] && [ "${ANSI}" -eq 1 ]
then
# If it isn't ANSI it's a control char like \n
if [[ "${CHAR}" =~ [a-Z] ]]
then
echo -ne "${BUFFER}${CHAR}" >/dev/console
unset BUFFER
LOADBUFFER=0
ANSI=0
fi
else
# otherwise it's text
echo -ne "${BUFFER}${CHAR}" >/dev/console
unset BUFFER
LOADBUFFER=0
ANSI=0
fi
sleep ${DELAY}
done
}
spinny_cursor() {
message_stream "$1" 0
for (( c=0; c<=$2; c++ ))
do
echo -ne '\e[2D' '-' > /dev/console
sleep .01
echo -ne '\e[2D' '\\' > /dev/console
sleep .01
echo -ne '\e[2D' '|' > /dev/console
sleep .01
echo -ne '\e[2D' '/' > /dev/console
sleep .01
done
echo -ne '\e[80D\e[K' > /dev/console
}
jslisten() {
# A foo function as in steam deck is not needed, however sometime it's called and I am lazy to edit everything, sorry -Xargon
return
}
# 351EDECK specific code
export -f get_ee_setting
export -f set_ee_setting
export -f get_es_setting
export -f maxperf
export -f normperf
export -f ee_check_bios
export -f message_stream
export -f spinny_cursor
#export -f jslisten
#export -f init_port

View file

@ -1,268 +0,0 @@
#!/bin/bash
INSTALL_DIR=~/retrodeck
CORES_LINK=https://buildbot.libretro.com/stable/1.10.1/linux/x86_64/RetroArch_cores.7z
PREVIOUS_DIR=$PWD
echo "Welcome to the RetroDECK installer."
echo "RetroDECK will be installed in $INSTALL_DIR."
# TODO-MAYBE: give the option to change the installation directory?
echo "WARNING: RetroDECK will replace your retroarch.cfg, the former one will be renamed moved in ~/.config/retroarch/retroarch.cfg.bak."
echo "Whenever a choice is prompted just accept it to continue (yes/enter), root password will be asked."
# but maybe it will not affect the original retroarch, let's see
# maybe --root option of pacman may be useful to install my own copy of retroarch without messing the one already installed
read -n 1 -r -s -p $'Press enter to continue...\n'
echo "Installing RetroDECK in $INSTALL_DIR, please stand by."
cd $INSTALL_DIR
# TODO: download everything from retrodeck github
# git clone --recursive https://github.com/XargonWan/RetroDECK retrodeck
# Initalizing rom folders
if [ test ! -d "$INSTALL_DIR/storage/roms/" ]; then
mkdir -p $INSTALL_DIR/storage/roms/
fi
if [ test ! -d "$INSTALL_DIR/roms" ]; then
ln -s $INSTALL_DIR/storage/roms $INSTALL_DIR/roms
fi
mkdir -p $INSTALL_DIR/roms/bios
mkdir -p $INSTALL_DIR/roms/3do
mkdir -p $INSTALL_DIR/roms/amiga
mkdir -p $INSTALL_DIR/roms/amigacd32
mkdir -p $INSTALL_DIR/roms/amstradcpc
mkdir -p $INSTALL_DIR/roms/arcade
mkdir -p $INSTALL_DIR/roms/atari2600
mkdir -p $INSTALL_DIR/roms/atari5200
mkdir -p $INSTALL_DIR/roms/atari7800
mkdir -p $INSTALL_DIR/roms/atarist
mkdir -p $INSTALL_DIR/roms/atari800
mkdir -p $INSTALL_DIR/roms/atomiswave
mkdir -p $INSTALL_DIR/roms/channelf
mkdir -p $INSTALL_DIR/roms/colecovision
mkdir -p $INSTALL_DIR/roms/c64
mkdir -p $INSTALL_DIR/roms/c128
mkdir -p $INSTALL_DIR/roms/vic20
mkdir -p $INSTALL_DIR/roms/laserdisc
mkdir -p $INSTALL_DIR/roms/dreamcast
mkdir -p $INSTALL_DIR/roms/easyrpg
mkdir -p $INSTALL_DIR/roms/famicom
mkdir -p $INSTALL_DIR/roms/fbn
mkdir -p $INSTALL_DIR/roms/gb
mkdir -p $INSTALL_DIR/roms/gbh
mkdir -p $INSTALL_DIR/roms/gameandwatch
mkdir -p $INSTALL_DIR/roms/gba
mkdir -p $INSTALL_DIR/roms/fds
mkdir -p $INSTALL_DIR/roms/c16
mkdir -p $INSTALL_DIR/roms/ggh
mkdir -p $INSTALL_DIR/roms/gbah
mkdir -p $INSTALL_DIR/roms/intellivision
mkdir -p $INSTALL_DIR/roms/gbch
mkdir -p $INSTALL_DIR/roms/atarilynx
mkdir -p $INSTALL_DIR/roms/mame
mkdir -p $INSTALL_DIR/roms/dos
mkdir -p $INSTALL_DIR/roms/snesmsu1
mkdir -p $INSTALL_DIR/roms/msx
mkdir -p $INSTALL_DIR/roms/msx2
mkdir -p $INSTALL_DIR/roms/naomi
mkdir -p $INSTALL_DIR/roms/neogeo
mkdir -p $INSTALL_DIR/roms/ngp
mkdir -p $INSTALL_DIR/roms/nds
mkdir -p $INSTALL_DIR/roms/n64
mkdir -p $INSTALL_DIR/roms/nes
mkdir -p $INSTALL_DIR/roms/nesh
mkdir -p $INSTALL_DIR/roms/ngpc
mkdir -p $INSTALL_DIR/roms/neocd
mkdir -p $INSTALL_DIR/roms/pc-9800
mkdir -p $INSTALL_DIR/roms/pcengine
mkdir -p $INSTALL_DIR/roms/pcenginecd
mkdir -p $INSTALL_DIR/roms/pcfx
mkdir -p $INSTALL_DIR/roms/openbor
mkdir -p $INSTALL_DIR/roms/piece
mkdir -p $INSTALL_DIR/roms/odyssey2
mkdir -p $INSTALL_DIR/roms/psp
mkdir -p $INSTALL_DIR/roms/pspminis
mkdir -p $INSTALL_DIR/roms/pokemini
mkdir -p $INSTALL_DIR/roms/homebrew
mkdir -p $INSTALL_DIR/roms/ports
mkdir -p $INSTALL_DIR/roms/sc-3000
mkdir -p $INSTALL_DIR/roms/scummvm
mkdir -p $INSTALL_DIR/roms/psx
mkdir -p $INSTALL_DIR/roms/segacd
mkdir -p $INSTALL_DIR/roms/sega32x
mkdir -p $INSTALL_DIR/roms/genesis
mkdir -p $INSTALL_DIR/roms/genh
mkdir -p $INSTALL_DIR/roms/mastersystem
mkdir -p $INSTALL_DIR/roms/megadrive
mkdir -p $INSTALL_DIR/roms/megaduck
mkdir -p $INSTALL_DIR/roms/saturn
mkdir -p $INSTALL_DIR/roms/sg-1000
mkdir -p $INSTALL_DIR/roms/x1
mkdir -p $INSTALL_DIR/roms/zxspectrum
mkdir -p $INSTALL_DIR/roms/zx81
mkdir -p $INSTALL_DIR/roms/pc-8800
mkdir -p $INSTALL_DIR/roms/snes
mkdir -p $INSTALL_DIR/roms/supergrafx
mkdir -p $INSTALL_DIR/roms/pico-8
mkdir -p $INSTALL_DIR/roms/megacd
mkdir -p $INSTALL_DIR/roms/snesh
mkdir -p $INSTALL_DIR/roms/satellaview
mkdir -p $INSTALL_DIR/roms/sfc
mkdir -p $INSTALL_DIR/roms/sufami
mkdir -p $INSTALL_DIR/roms/tic-80
mkdir -p $INSTALL_DIR/roms/tg16
mkdir -p $INSTALL_DIR/roms/solarus
mkdir -p $INSTALL_DIR/roms/vectrex
mkdir -p $INSTALL_DIR/roms/gbc
mkdir -p $INSTALL_DIR/roms/videopac
mkdir -p $INSTALL_DIR/roms/virtualboy
mkdir -p $INSTALL_DIR/roms/wonderswan
mkdir -p $INSTALL_DIR/roms/wonderswancolor
mkdir -p $INSTALL_DIR/roms/ecwolf
mkdir -p $INSTALL_DIR/roms/x68000
mkdir -p $INSTALL_DIR/roms/build
mkdir -p $INSTALL_DIR/roms/tools
mkdir -p $INSTALL_DIR/roms/imageviewer
mkdir -p $INSTALL_DIR/roms/gamegear
mkdir -p $INSTALL_DIR/roms/tg16cd
mkdir -p $INSTALL_DIR/roms/j2me
mkdir -p $INSTALL_DIR/roms/uzebox
mkdir -p $INSTALL_DIR/roms/supervision
mkdir -p $INSTALL_DIR/roms/doom
mkdir -p $INSTALL_DIR/roms/switch
mkdir -p $INSTALL_DIR/roms/wii
mkdir -p $INSTALL_DIR/roms/gc
mkdir -p $INSTALL_DIR/roms/3ds
# Initializing directories
mkdir -p $INSTALL_DIR/storage/.config/
mkdir -p $INSTALL_DIR/usr/
mkdir -p $INSTALL_DIR/emulators
ln -s $INSTALL_DIR/emulationstation ~/.emulationstation
# Defining architecture
rm -f $INSTALL_DIR/storage/.config/.OS_ARCH
touch $INSTALL_DIR/storage/.config/.OS_ARCH
echo "DECK" >> $INSTALL_DIR/storage/.config/.OS_ARCH
# Installing RetroArch
sudo pacman -S retroarch
# Setting up RetroArch
mkdir -p ~/.config/retroarch/
mv ~/.config/retroarch/retroarch.cfg ~/.config/retroarch/retroarch.cfg.bak
mv $INSTALL_DIR/retroarch.cfg ~/.config/retroarch/
# TODO: download controller config
# Installing libretro cores
cd $INSTALL_DIR/emulators
if test -f "$INSTALL_DIR/emulators/RetroArch_cores.7z"; then
read -p "The RetroArch cores seems to be already downloaded, do you want to re-download them? [Y/n]: " -n 1 -r
if [[ ! $REPLY =~ ^[Nn]$ ]]; then
break
else
rm -rf RetroArch*
wget $CORES_LINK
fi
fi
7z x RetroArch_cores.7z
mv $INSTALL_DIR/emulators/RetroArch-Linux-x86_64/RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/cores $INSTALL_DIR/emulators/
# TODO: Installing standalone emulators
# Switch - Yuzu
flatpak install flathub org.yuzu_emu.yuzu
# Switch - Ryujinx
flatpak install flathub org.ryujinx.Ryujinx
# PS3 - RPCS3
# DOS - dosbox-pure is included?
# PSVITA - vita3k
# Installing 351elec-emulationstation
cd $INSTALL_DIR
git clone --recursive https://github.com/351ELEC/351elec-emulationstation emulationstation
# TODO: one day I will have to fork this emustation...
# applying patches
cp $INSTALL_DIR/patches/Splash.h $INSTALL_DIR/emulationstation/es-core/src/Splash.h
cp $INSTALL_DIR/patches/GuiMenu.cpp $INSTALL_DIR/emulationstation/es-app/src/guis/GuiMenu.cpp
# pathes applied
cd emulationstation
sudo pacman -S base-devel cmake freeimage sdl2_mixer sdl2 rapidjson boost
cmake -DENABLE_EMUELEC=1 -DGLES2=0 -DDISABLE_KODI=1 -DENABLE_FILEMANAGER=0 -DCEC=0 -DRG552=1
make -j$(nproc)
cp $INSTALL_DIR/es_systems.cfg $INSTALL_DIR/emulationstation/
cp $INSTALL_DIR/es_settings.cfg $INSTALL_DIR/emulationstation/
cp $INSTALL_DIR/es_input.cfg $INSTALL_DIR/emulationstation/
# Installing default theme
mkdir -p $INSTALL_DIR/emulationstation/themes
cd $INSTALL_DIR/emulationstation/themes
git clone --recursive https://github.com/anthonycaccese/es-theme-art-book-next
# Downloading needed files
# TODO 351elec-es-packages batocera-config batocera-scraper batocera-settings runemu.py setsettings.py
# Creating desktop element
rm -f ~/Desktop/RetroDECK.desktop
touch ~/Desktop/RetroDECK.desktop
cat << EOF >> ~/Desktop/RetroDECK.desktop
[Desktop Entry]
Comment=An enbedded emulation system.
Exec=$INSTALL_DIR/retrodeck.sh
GenericName=RetroDECK
Icon=$INSTALL_DIR/res/icon128.png
MimeType=
Name=RetroDECK
Path=$INSTALL_DIR/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
EOF
# Creating start script
rm -rf $INSTALL_DIR/retrodeck.sh
touch $INSTALL_DIR/retrodeck.sh
cat << EOF >> $INSTALL_DIR/retrodeck.sh
#!/bin/bash
$INSTALL_DIR/export_func.sh
mkdir -p /tmp/logs
if [ test -d "/tmp/cores" ]; then break
else
ln -s $INSTALL_DIR/emulators/cores /tmp/cores
fi
$INSTALL_DIR/emulationstation/emulationstation
EOF
chmod 777 $INSTALL_DIR/retrodeck.sh
chmod 777 $INSTALL_DIR/export_func.sh
# Cleaning up
# TODO: these removal must be made when I am sure this files are safe on github
#rm -rf $INSTALL_DIR/emulators/RetroArch-Linux-x86_64
#rm -rf $INSTALL_DIR/emulators/RetroArch_cores.7z
#rm -rf $INSTALL_DIR/emulators/ryujinx-1.1.76-linux_x64.tar.gz
#rm $INSTALL_DIR/es_systems.cfg
#rm $INSTALL_DIR/es_settings.cfg
#rm $INSTALL_DIR/es_input.cfg
#rm -rf $INSTALL_DIR/patches
echo "Installation terminated, you can run RetroDECK from the desktop link or add it on your Steam Library."
# TODO: maybe I can add it to the steam library directly, I think I have to close steam and design a banner
cd $PREVIOUS_DIR

File diff suppressed because it is too large Load diff

View file

@ -1,48 +0,0 @@
#pragma once
#include <string>
#include "components/ImageComponent.h"
#include "components/TextComponent.h"
// Getting the user's home dir
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
class Window;
class TextureResource;
// TODO: this is hardcoded path is shit, needs to be fixed
#if WIN32
#define DEFAULT_SPLASH_IMAGE ":/splash.svg"
#define OLD_SPLASH_LAYOUT true
#else
#define DEFAULT_SPLASH_IMAGE "./res/logo.png"
#define OLD_SPLASH_LAYOUT false
#endif
class Splash
{
public:
Splash(Window* window, const std::string image = DEFAULT_SPLASH_IMAGE, bool fullScreenBackGround = true);
~Splash();
void update(std::string text, float percent = -1);
void render(float opacity, bool swapBuffers = true);
private:
ImageComponent mBackground;
TextComponent mText;
float mPercent;
ImageComponent mInactiveProgressbar;
ImageComponent mActiveProgressbar;
unsigned int mBackgroundColor;
float mRoundCorners;
std::shared_ptr<TextureResource> mTexture;
std::vector<GuiComponent*> mExtras;
} ;