From 63ceb5051eb14509ce134d2850461cf3c0ae742f Mon Sep 17 00:00:00 2001 From: Maclay74 Date: Thu, 27 Jul 2023 18:19:12 +0200 Subject: [PATCH] Change resolution to native after installation --- src/devices/device_generic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/device_generic.rs b/src/devices/device_generic.rs index 63af716..3c08c0f 100644 --- a/src/devices/device_generic.rs +++ b/src/devices/device_generic.rs @@ -65,7 +65,7 @@ impl Device for DeviceGeneric { // Change resolution to Native (if Default) after installation Patch { text_to_find: "DownloadComplete_Title\"),o=ze(r,t.data.appid());const s=(0,O.Q2)();".to_string(), - replacement_text: "DownloadComplete_Title\"),o=ze(r,t.data.appid()); SteamClient.Apps.GetResolutionOverrideForApp(593280).then(res => res === \"Default\" && SteamClient.Apps.SetAppResolutionOverride(593280, \"Native\")); const s=(0,O.Q2)();".to_string(), + replacement_text: "DownloadComplete_Title\"),o=ze(r,t.data.appid()); SteamClient.Apps.GetResolutionOverrideForApp(t.data.appid()).then(res => res === \"Default\" && SteamClient.Apps.SetAppResolutionOverride(t.data.appid(), \"Native\")); const s=(0,O.Q2)();".to_string(), destination: PatchFile::Chunk, }, ]