From ade9b59ba75d9e32b00d43bf4f41df95496e3518 Mon Sep 17 00:00:00 2001 From: Dragoon Dorise Date: Wed, 25 Dec 2024 22:16:47 +0100 Subject: [PATCH] shadps4 wip --- configs/shadps4/config.toml | 70 +++++++++++++------------- functions/EmuScripts/emuDeckShadPS4.sh | 4 +- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/configs/shadps4/config.toml b/configs/shadps4/config.toml index c5fd284d0..7b4964a91 100644 --- a/configs/shadps4/config.toml +++ b/configs/shadps4/config.toml @@ -1,43 +1,43 @@ -# ShadPS4 Settings/Config file - [General] -isPS4Pro = false -Fullscreen = false -playBGM = false -BGMvolume = 50 +logType = "async" +separateUpdateEnabled = false +showSplash = true +Fullscreen = true +checkCompatibilityOnStartup = true +updateChannel = "Nightly" +logFilter = "" enableDiscordRPC = false -logType = "async" # Configures logging synchronization (sync/async) -logFilter = "" # Sets the logging category for various logging classes -userName = "shadPS4" -updateChannel = "Release" -showSplash = false +compatibilityEnabled = true autoUpdate = false -separateUpdateEnabled = false +userName = "shadPS4" +isTrophyPopupDisabled = false +playBGM = false +isPS4Pro = false +BGMvolume = 50 [Input] -cursorState = 0 # HideCursorState::Idle +cursorState = 1 cursorHideTimeout = 5 backButtonBehavior = "left" -useSpecialPad = false specialPadClass = 1 +useSpecialPad = false [GPU] -# Configures the game window width and height e.g. '800' for OLED Steameck (16:10 Aspect Ratio) screenWidth = 1280 screenHeight = 720 -nullGpu = false # Disables rendering +nullGpu = false copyGPUBuffers = false -dumpShaders = false # Dump shaders that are loaded by the emulator. Dump path: ../user/shader/dumps -patchShaders = true vblankDivider = 1 +dumpShaders = false +patchShaders = true [Vulkan] gpuId = -1 validation = false +rdocMarkersEnable = false validation_sync = false validation_gpu = false -rdocEnable = false # Automatically hook RenderDoc when installed. Useful for debugging shaders and game rendering -rdocMarkersEnable = false # Enable automatic RenderDoc event annotation +rdocEnable = false crashDiagnostic = false [Debug] @@ -45,24 +45,24 @@ DebugDump = false CollectShader = false [GUI] -theme = 0 -iconSize = 36 -iconSizeGrid = 69 -sliderPos = 0 -sliderPosGrid = 0 gameTableMode = 0 mw_width = 1280 -mw_height = 720 # Need to set to '800' for OLED Deck (16:10 Aspect Ratio) -geometry_x = 400 -geometry_y = 400 -geometry_w = 1280 -geometry_h = 720 # Need to set to '800' for OLED Deck (16:10 Aspect Ratio) -installDirs = "/run/media/mmcblk0p1/Emulation/storage/shadps4/games" +geometry_x = 0 +iconSize = 36 +emulatorLanguage = "en" +iconSizeGrid = 69 +elfDirs = [] +mw_height = 718 addonInstallDir = "/run/media/mmcblk0p1/Emulation/storage/shadps4/dlc" pkgDirs = [] -elfDirs = [] -recentFiles = [] -emulatorLanguage = "en" +sliderPosGrid = 0 +geometry_h = 718 +geometry_y = 28 +recentFiles = ["/run/media/EmuDeck/Emulation/storage/shadps4/games/CUSA07010/eboot.bin"] +sliderPos = 0 +installDirs = ["/run/media/mmcblk0p1/Emulation/storage/shadps4/games"] +theme = 0 +geometry_w = 1280 [Settings] -consoleLanguage = 1 # english +consoleLanguage = 1 diff --git a/functions/EmuScripts/emuDeckShadPS4.sh b/functions/EmuScripts/emuDeckShadPS4.sh index c3f4c25ec..64a2748c0 100644 --- a/functions/EmuScripts/emuDeckShadPS4.sh +++ b/functions/EmuScripts/emuDeckShadPS4.sh @@ -140,7 +140,9 @@ ShadPS4_setEmulationFolder(){ ShadPS4_setLanguage(){ setMSG "Setting ShadPS4 Language" - changeLine "emulatorLanguage = " "emulatorLanguage = ${emulatorLanguage}" $ShadPS4_configFile + local language=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1) + #TODO: call this somewhere, and input the $language from somewhere (args?) + changeLine "emulatorLanguage = " "emulatorLanguage = ${language}" $ShadPS4_configFile echo "ShadPS4 language '${emulatorLanguage}' configuration completed." }