mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 03:27:47 -04:00
declare -A
This commit is contained in:
parent
50b75751f4
commit
f3bc90e045
|
@ -55,8 +55,7 @@ source "$EMUDECKGIT"/functions/ToolScripts/emuDecky.sh
|
|||
#emuscripts
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckYuzu.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCemu.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCemuNative.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckPCSX2.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCemuProton.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckRPCS3.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCitra.sh
|
||||
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckDolphin.sh
|
||||
|
|
|
@ -6,6 +6,7 @@ CemuProton_emuPath="${romsPath}/wiiu/Cemu.exe"
|
|||
CemuProton_cemuSettings="${romsPath}/wiiu/settings.xml"
|
||||
|
||||
# https://github.com/cemu-project/Cemu/blob/main/src/config/CemuConfig.h#L158-L172
|
||||
declare -A CemuProton_languages
|
||||
CemuProton_languages=(
|
||||
["ja"]=0
|
||||
["en"]=1
|
||||
|
|
|
@ -6,6 +6,7 @@ Ryujinx_emuType="$emuDeckEmuTypeBinary"
|
|||
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
|
||||
declare -A Ryujinx_languages
|
||||
Ryujinx_languages=(
|
||||
["ja"]="Japanese"
|
||||
["en"]="AmericanEnglish"
|
||||
|
@ -21,6 +22,7 @@ Ryujinx_languages=(
|
|||
["tw"]="Taiwanese") # TODO: not all langs but we need to switch to full lang codes to support those
|
||||
|
||||
# https://github.com/Ryujinx/Ryujinx/blob/master/Ryujinx.Ui.Common/Configuration/System/Region.cs#L3-L12
|
||||
declare -A Ryujinx_regions
|
||||
Ryujinx_regions=(
|
||||
["ja"]="Japan"
|
||||
["en"]="USA"
|
||||
|
@ -116,7 +118,7 @@ Ryujinx_setEmulationFolder(){
|
|||
|
||||
#SetLanguage
|
||||
Ryujinx_setLanguage(){
|
||||
setMSG "Setting Ryujinx Language"
|
||||
setMSG "Setting Ryujinx Language"
|
||||
|
||||
#TODO: call this somewhere, and input the $language from somewhere (args?)
|
||||
if [[ -f "${Ryujinx_configFile}" ]]; then
|
||||
|
|
|
@ -5,6 +5,7 @@ Xemu_emuType="$emuDeckEmuTypeFlatpak"
|
|||
Xemu_emuPath="app.xemu.xemu"
|
||||
|
||||
# https://xboxdevwiki.net/EEPROM
|
||||
declare -A Xemu_languages
|
||||
Xemu_languages=(
|
||||
["en"]=1
|
||||
["ja"]=2
|
||||
|
@ -67,7 +68,7 @@ Xemu_setEmulationFolder(){
|
|||
|
||||
#SetLanguage
|
||||
Xemu_setLanguage(){
|
||||
setMSG "Setting Xemu Language"
|
||||
setMSG "Setting Xemu Language"
|
||||
|
||||
eepromPath="${storagePath}/xemu/eeprom.bin"
|
||||
#TODO: call this somewhere, and input the $language from somewhere (args?)
|
||||
|
|
|
@ -8,6 +8,7 @@ Yuzu_emuPath="$HOME/Applications/yuzu.AppImage"
|
|||
Yuzu_configFile="$HOME/.config/yuzu/qt-config.ini"
|
||||
|
||||
# https://github.com/yuzu-emu/yuzu/blob/master/src/core/file_sys/control_metadata.cpp#L41-L60
|
||||
declare -A Yuzu_languages
|
||||
Yuzu_languages=(
|
||||
["ja"]=0
|
||||
["en"]=1
|
||||
|
@ -23,6 +24,7 @@ Yuzu_languages=(
|
|||
["tw"]=11) # TODO: not all langs but we need to switch to full lang codes to support those
|
||||
|
||||
# https://github.com/yuzu-emu/yuzu/blob/master/src/yuzu/configuration/configure_system.ui#L272-L309
|
||||
declare -A Yuzu_regions
|
||||
Yuzu_regions=(
|
||||
["ja"]=0 # Japan
|
||||
["en"]=1 # USA
|
||||
|
@ -144,7 +146,7 @@ Yuzu_setEmulationFolder() {
|
|||
|
||||
#SetLanguage
|
||||
Yuzu_setLanguage(){
|
||||
setMSG "Setting Yuzu Language"
|
||||
setMSG "Setting Yuzu Language"
|
||||
|
||||
languageOpt="language_index="
|
||||
languageDefaultOpt="language_index\\\\default="
|
||||
|
|
Loading…
Reference in a new issue