Skip to content

Commit

Permalink
[Feat] Update patcher enabled flag (#1190)
Browse files Browse the repository at this point in the history
* update flag

* bump to 0.22.3
  • Loading branch information
BrettCleary authored Dec 12, 2024
1 parent dc9b5bc commit 9d0b96e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperplay",
"version": "0.22.2",
"version": "0.22.3",
"private": true,
"main": "build/main/main.js",
"homepage": "./",
Expand Down
4 changes: 2 additions & 2 deletions src/backend/storeManagers/hyperplay/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1751,9 +1751,9 @@ async function applyPatching(
newVersion: string,
signal: AbortSignal
): Promise<InstallResult> {
const patcherisEnabled = getFlag('enable-patcher', false)
const gamesPatcherIsEnabled = getFlag('enable-patcher-per-game', {}) as object

if (!patcherisEnabled || !isWindows) {
if (!Object.hasOwn(gamesPatcherIsEnabled, gameInfo.app_name) || !isWindows) {
return { status: 'error' }
}

Expand Down

0 comments on commit 9d0b96e

Please sign in to comment.