summaryrefslogtreecommitdiff
path: root/assets/fgmod-uninstaller.sh
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-01-21 22:51:09 -0500
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-01-21 22:51:09 -0500
commit9e4dcc39af0aeacf47e1fb1cd8ec22635040d2ae (patch)
tree11e5b784469da1cc960bcbce94c82e56d9d9cf95 /assets/fgmod-uninstaller.sh
parent4a84c5d1261ffa5a7b5cd9dbe950bfb7c3638649 (diff)
downloadDecky-Framegen-9e4dcc39af0aeacf47e1fb1cd8ec22635040d2ae.tar.gz
Decky-Framegen-9e4dcc39af0aeacf47e1fb1cd8ec22635040d2ae.zip
trying script approach?
Diffstat (limited to 'assets/fgmod-uninstaller.sh')
-rwxr-xr-xassets/fgmod-uninstaller.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/assets/fgmod-uninstaller.sh b/assets/fgmod-uninstaller.sh
new file mode 100755
index 0000000..a2ef7f6
--- /dev/null
+++ b/assets/fgmod-uninstaller.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+
+mod_path="/usr/share/fgmod"
+
+if [[ $(pwd) == "$mod_path" ]]; then
+ rm -r $mod_path
+else
+ rm "dlss-enabler.dll"
+ rm "dxgi.dll"
+ rm "nvngx-wrapper.dll"
+ rm "_nvngx.dll"
+ rm "dlssg_to_fsr3_amd_is_better.dll"
+ rm "dlssg_to_fsr3_amd_is_better-3.0.dll"
+ rm "dlss-enabler-upscaler.dll"
+ rm "nvngx.ini"
+ rm "libxess.dll"
+ rm "d3dcompiler_47.dll"
+ rm "amd_fidelityfx_dx12.dll"
+ rm "amd_fidelityfx_vk.dll"
+
+ # Those files might not exist
+ rm "nvapi64.dll" 2>/dev/null
+ rm "fakenvapi.ini" 2>/dev/null
+ rm "OptiScaler.log" 2>/dev/null
+ rm "dlss-enabler.log" 2>/dev/null
+ rm "dlssg_to_fsr3.log" 2>/dev/null
+ rm "fakenvapi.log" 2>/dev/null
+
+ # Restore files the game might've shipped with
+ mv -f "libxess.dll.b" "libxess.dll" 2>/dev/null
+ mv -f "d3dcompiler_47.dll.b" "d3dcompiler_47.dll" 2>/dev/null
+ mv -f "amd_fidelityfx_dx12.dll.b" "amd_fidelityfx_dx12.dll" 2>/dev/null
+ mv -f "amd_fidelityfx_vk.dll.b" "amd_fidelityfx_vk.dll" 2>/dev/null
+
+ echo "fgmod removed from this game"
+ echo "Don't forget to remove /home/USERNAME/fgmod/fgmod from the launch options!"
+
+ rm "$0" # remove the uninstaller itself
+fi \ No newline at end of file