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 5bff3c5 commit b93a0bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/devices/device_generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ impl Device for DeviceGeneric {
replacement_text: "case 4:case 31: return l.createElement".to_string(),
destination: PatchFile::Chunk,
},

// 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(),
destination: PatchFile::Chunk,
},
]
}

Expand Down

0 comments on commit b93a0bd

Please sign in to comment.