Skip to content

Commit

Permalink
Change resolution to native after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maclay74 committed Jul 27, 2023
1 parent b93a0bd commit 63ceb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/device_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
Expand Down

0 comments on commit 63ceb50

Please sign in to comment.