Model 2: bbilford83 tweaks (#1097)

* Set WideScreenWindow to 1 (16:9)
    * Some graphical issues on 16:10
* Update launcher to disable/enable DrawCross based on game launched
* Switched to frontend profile so trackpad uses left click instead of R3
* Renamed launcher in SRM
This commit is contained in:
rawdatafeel 2024-03-09 17:55:57 -05:00 committed by GitHub
parent b17ca501a5
commit a2c1b0d505
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 6 deletions

View file

@ -30,7 +30,7 @@ GammaR=1.0 ;Per Component Gamma correction (1.0 = no correction). Red
GammaG=1.0 ;Green
GammaB=1.0 ;Blue
WideScreenWindow=0 ;Set widescreen in windows mode: 0 - 4:3, 1 - 16:9, 2 - 16:10
WideScreenWindow=1 ;Set widescreen in windows mode: 0 - 4:3, 1 - 16:9, 2 - 16:10
FSAA=1 ;Enable full screen antialiasing in Direct3D

View file

@ -5787,7 +5787,7 @@
"specifiedAccounts": ""
},
"executable": {
"path": "/run/media/mmcblk0p1/Emulation/tools/launchers/model2.sh",
"path": "/run/media/mmcblk0p1/Emulation/tools/launchers/model-2-emulator.sh",
"shortcutPassthrough": false,
"appendArgsToExecutable": true
},
@ -5808,8 +5808,8 @@
"controllers": {
"switch_pro": null,
"neptune": {
"title": "Gamepad with Mouse Trackpad",
"mappingId": "controller_neptune_gamepad+mouse.vdf",
"title": "EmuDeck - Steam Deck Frontend",
"mappingId": "emudeck_frontend_controller_steamdeck.vdf",
"profileType": "template"
},
"ps4": null,

View file

@ -8,6 +8,8 @@ EXE="$romsPath/model2/EMULATOR.EXE"
Model2Launcher="${toolsPath}/launchers/model-2-emulator.sh"
Model2ConfigFile="$romsPath/model2/EMULATOR.INI"
#In case the user deletes it, will allow loading bar to pop up again.
mkdir -p "$romsPath/model2/pfx"
@ -23,8 +25,21 @@ done
# Must launch ROMs from the same directory as EMULATOR.EXE.
cd $romsPath/model2
# $Model2_ProtonGEVersion is assigned in emuDeckModel2.sh
WINEPREFIX=$romsPath/model2/pfx/ GAMEID=ulwgl-model2 PROTONPATH="$HOME/.steam/steam/compatibilitytools.d/ULWGL-Proton-$Model2_ProtonGEVersion" $GAMELAUNCHER $EXE "${@}"
if [[ "${*}" == "bel" || "${*}" == "gunblade" || "${*}" == "rchase2" ]]; then
# Disables cursor
sed -i 's/DrawCross=1/DrawCross=0/' "$Model2ConfigFile"
# $Model2_ProtonGEVersion is assigned in emuDeckModel2.sh
WINEPREFIX=$romsPath/model2/pfx/ GAMEID=ulwgl-model2 PROTONPATH="$HOME/.steam/steam/compatibilitytools.d/ULWGL-Proton-$Model2_ProtonGEVersion" $GAMELAUNCHER $EXE "${@}"
else
# Enables cursor for lightgun games (and everything else)
sed -i 's/DrawCross=0/DrawCross=1/' "$Model2ConfigFile"
# $Model2_ProtonGEVersion is assigned in emuDeckModel2.sh
WINEPREFIX=$romsPath/model2/pfx/ GAMEID=ulwgl-model2 PROTONPATH="$HOME/.steam/steam/compatibilitytools.d/ULWGL-Proton-$Model2_ProtonGEVersion" $GAMELAUNCHER $EXE "${@}"
fi