From 9d0b96e8457a5da1c50582b4c1e2bd616df33f8e Mon Sep 17 00:00:00 2001 From: Brett <27568879+BrettCleary@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:20:19 -0800 Subject: [PATCH] [Feat] Update patcher enabled flag (#1190) * update flag * bump to 0.22.3 --- package.json | 2 +- src/backend/storeManagers/hyperplay/games.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 31ffdcc71..b183ed0ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hyperplay", - "version": "0.22.2", + "version": "0.22.3", "private": true, "main": "build/main/main.js", "homepage": "./", diff --git a/src/backend/storeManagers/hyperplay/games.ts b/src/backend/storeManagers/hyperplay/games.ts index 27ec6fd52..6b317d662 100644 --- a/src/backend/storeManagers/hyperplay/games.ts +++ b/src/backend/storeManagers/hyperplay/games.ts @@ -1751,9 +1751,9 @@ async function applyPatching( newVersion: string, signal: AbortSignal ): Promise { - 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' } }