mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
old paths
This commit is contained in:
parent
24b518ec5c
commit
54af8a2b68
@ -3,7 +3,7 @@
|
||||
#variables
|
||||
Ryujinx_emuName="Ryujinx"
|
||||
Ryujinx_emuType="$emuDeckEmuTypeBinary"
|
||||
Ryujinx_emuPath="$emusFolder/publish"
|
||||
Ryujinx_emuPath="$HOME/Applications/publish"
|
||||
Ryujinx_configFile="$HOME/.config/Ryujinx/Config.json"
|
||||
# https://github.com/Ryujinx/Ryujinx/blob/master/Ryujinx.Ui.Common/Configuration/System/Language.cs#L3-L23
|
||||
Ryujinx_controllerFile="$HOME/.config/Ryujinx/profiles/controller/Deck.json"
|
||||
@ -50,18 +50,19 @@ Ryujinx_install(){
|
||||
echo "Begin Ryujinx Install"
|
||||
local showProgress=$1
|
||||
if installEmuBI "$Ryujinx_emuName" "$(getReleaseURLGH "Ryubing/Stable-Releases" "-linux_x64.tar.gz" "" "" "nogui")" "" "tar.gz" "$showProgress"; then
|
||||
mkdir -p "$emusFolder/publish"
|
||||
tar -xvf "$emusFolder/Ryujinx.tar.gz" -C "$emusFolder" && rm -rf "$HOME/Applications/Ryujinx.tar.gz"
|
||||
chmod +x "$emusFolder/publish/Ryujinx"
|
||||
|
||||
mkdir -p "$HOME/Applications/publish"
|
||||
tar -xvf "$HOME/Applications/Ryujinx.tar.gz" -C "$HOME/Applications" && rm -rf "$HOME/Applications/Ryujinx.tar.gz"
|
||||
chmod +x "$HOME/Applications/publish/Ryujinx"
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
||||
# flatpak install flathub org.ryujinx.Ryujinx -y --user
|
||||
# mkdir -p "$emusFolder/publish"
|
||||
# rsync -av "$HOME/.local/share/flatpak/app/org.ryujinx.Ryujinx/x86_64/stable/active/files/bin/" "$emusFolder/publish/" && flatpak uninstall flathub org.ryujinx.Ryujinx -y --user
|
||||
# mkdir -p "$HOME/Applications/publish"
|
||||
# rsync -av "$HOME/.local/share/flatpak/app/org.ryujinx.Ryujinx/x86_64/stable/active/files/bin/" "$HOME/Applications/publish/" && flatpak uninstall flathub org.ryujinx.Ryujinx -y --user
|
||||
# rm -rf "$HOME/.config/Ryujinx/games"
|
||||
# chmod +x "$emusFolder/publish/Ryujinx"
|
||||
# chmod +x "$HOME/Applications/publish/Ryujinx"
|
||||
|
||||
}
|
||||
|
||||
@ -69,20 +70,20 @@ Ryujinx_install(){
|
||||
Ryujinx_init(){
|
||||
echo "Begin Ryujinx Init"
|
||||
|
||||
configEmuAI "Ryujinx" "config" "$HOME/.config/Ryujinx" "$emudeckBackend/configs/Ryujinx" "true"
|
||||
configEmuAI "Ryujinx" "config" "$HOME/.config/Ryujinx" "$EMUDECKGIT/configs/Ryujinx" "true"
|
||||
|
||||
Ryujinx_setEmulationFolder
|
||||
Ryujinx_setupStorage
|
||||
Ryujinx_setupSaves
|
||||
Ryujinx_finalize
|
||||
#SRM_createParsers
|
||||
#SRM_createParsers
|
||||
Ryujinx_flushEmulatorLauncher
|
||||
|
||||
if [ -e "$ESDE_toolPath" ] || [ -f "${toolsPath}/$ESDE_downloadedToolName" ] || [ -f "${toolsPath}/$ESDE_oldtoolName.AppImage" ]; then
|
||||
Yuzu_addESConfig
|
||||
else
|
||||
echo "ES-DE not found. Skipped adding custom system."
|
||||
fi
|
||||
if [ -e "$ESDE_toolPath" ] || [ -f "${toolsPath}/$ESDE_downloadedToolName" ] || [ -f "${toolsPath}/$ESDE_oldtoolName.AppImage" ]; then
|
||||
Yuzu_addESConfig
|
||||
else
|
||||
echo "ES-DE not found. Skipped adding custom system."
|
||||
fi
|
||||
|
||||
Ryujinx_setLanguage
|
||||
|
||||
@ -92,7 +93,7 @@ Ryujinx_init(){
|
||||
Ryujinx_update(){
|
||||
echo "Begin Ryujinx update"
|
||||
|
||||
configEmuAI "yuzu" "config" "$HOME/.config/Ryujinx" "$emudeckBackend/configs/Ryujinx"
|
||||
configEmuAI "yuzu" "config" "$HOME/.config/Ryujinx" "$EMUDECKGIT/configs/Ryujinx"
|
||||
|
||||
Ryujinx_setEmulationFolder
|
||||
Ryujinx_setupStorage
|
||||
@ -100,11 +101,11 @@ Ryujinx_update(){
|
||||
Ryujinx_finalize
|
||||
Ryujinx_flushEmulatorLauncher
|
||||
|
||||
if [ -e "$ESDE_toolPath" ] || [ -f "${toolsPath}/$ESDE_downloadedToolName" ] || [ -f "${toolsPath}/$ESDE_oldtoolName.AppImage" ]; then
|
||||
Yuzu_addESConfig
|
||||
else
|
||||
echo "ES-DE not found. Skipped adding custom system."
|
||||
fi
|
||||
if [ -e "$ESDE_toolPath" ] || [ -f "${toolsPath}/$ESDE_downloadedToolName" ] || [ -f "${toolsPath}/$ESDE_oldtoolName.AppImage" ]; then
|
||||
Yuzu_addESConfig
|
||||
else
|
||||
echo "ES-DE not found. Skipped adding custom system."
|
||||
fi
|
||||
}
|
||||
|
||||
#ConfigurePaths
|
||||
@ -148,16 +149,16 @@ Ryujinx_setEmulationFolder(){
|
||||
Ryujinx_setLanguage(){
|
||||
setMSG "Setting Ryujinx Language"
|
||||
local language=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)
|
||||
#TODO: call this somewhere, and input the $language from somewhere (args?)
|
||||
if [[ -f "${Ryujinx_configFile}" ]]; then
|
||||
if [ ${Ryujinx_languages[$language]+_} ]; then
|
||||
#TODO: call this somewhere, and input the $language from somewhere (args?)
|
||||
if [[ -f "${Ryujinx_configFile}" ]]; then
|
||||
if [ ${Ryujinx_languages[$language]+_} ]; then
|
||||
# we cant edit inplace, so we save it into a tmp var
|
||||
tmp=$(jq ".system_language=\"${Ryujinx_languages[$language]}\"" "$Ryujinx_configFile")
|
||||
echo "$tmp" > "$Ryujinx_configFile"
|
||||
tmp=$(jq ".system_region=\"${Ryujinx_regions[$language]}\"" "$Ryujinx_configFile")
|
||||
echo "$tmp" > "$Ryujinx_configFile"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
#SetupSaves
|
||||
@ -175,8 +176,8 @@ Ryujinx_setupSaves(){
|
||||
|
||||
linkToSaveFolder ryujinx saves "$HOME/.config/Ryujinx/bis/user/save"
|
||||
linkToSaveFolder ryujinx saveMeta "$HOME/.config/Ryujinx/bis/user/saveMeta"
|
||||
linkToSaveFolder ryujinx system_saves "$HOME/.config/Ryujinx/bis/system/save"
|
||||
linkToSaveFolder ryujinx system "$HOME/.config/Ryujinx/system"
|
||||
linkToSaveFolder ryujinx system_saves "$HOME/.config/Ryujinx/bis/system/save"
|
||||
linkToSaveFolder ryujinx system "$HOME/.config/Ryujinx/system"
|
||||
|
||||
}
|
||||
|
||||
@ -207,7 +208,7 @@ Ryujinx_uninstall(){
|
||||
Ryujinx_migrate(){
|
||||
echo "Begin Ryujinx Migration"
|
||||
emu="Ryujinx"
|
||||
# migrationFlag="$emudeckFolder/.${emu}MigrationCompleted"
|
||||
# migrationFlag="$HOME/.config/EmuDeck/.${emu}MigrationCompleted"
|
||||
# #check if we have a nomigrateflag for $emu
|
||||
# if [ ! -f "$migrationFlag" ]; then
|
||||
# #yuzu flatpak to appimage
|
||||
@ -292,24 +293,24 @@ Ryujinx_resetConfig(){
|
||||
|
||||
Ryujinx_setResolution(){
|
||||
|
||||
case $ryujinxResolution in
|
||||
"720P") multiplier=1; docked="false";;
|
||||
"1080P") multiplier=1; docked="true";;
|
||||
"1440P") multiplier=2; docked="false";;
|
||||
"4K") multiplier=2; docked="true";;
|
||||
*) echo "Error"; return 1;;
|
||||
esac
|
||||
case $ryujinxResolution in
|
||||
"720P") multiplier=1; docked="false";;
|
||||
"1080P") multiplier=1; docked="true";;
|
||||
"1440P") multiplier=2; docked="false";;
|
||||
"4K") multiplier=2; docked="true";;
|
||||
*) echo "Error"; return 1;;
|
||||
esac
|
||||
|
||||
jq --arg docked "$docked" --arg multiplier "$multiplier" \
|
||||
'.docked_mode = $docked | .res_scale = $multiplier' "$Ryujinx_configFile" > tmp.json
|
||||
jq --arg docked "$docked" --arg multiplier "$multiplier" \
|
||||
'.docked_mode = $docked | .res_scale = $multiplier' "$Ryujinx_configFile" > tmp.json
|
||||
|
||||
mv tmp.json "$Ryujinx_configFile"
|
||||
mv tmp.json "$Ryujinx_configFile"
|
||||
|
||||
}
|
||||
|
||||
Ryujinx_flushEmulatorLauncher(){
|
||||
|
||||
|
||||
flushEmulatorLaunchers "ryujinx"
|
||||
flushEmulatorLaunchers "ryujinx"
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user