From 411e43ceb008cf49057b85b2ca8f52ad4d2d9224 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:55:57 +0700 Subject: [PATCH] Disable inputPollingDurationStats --- src/modules/patcher.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/patcher.ts b/src/modules/patcher.ts index 6ab8f41..e036b7a 100644 --- a/src/modules/patcher.ts +++ b/src/modules/patcher.ts @@ -211,7 +211,8 @@ const PATCHES = { // Block gamepad stats collecting if (getPref(PrefKey.BLOCK_TRACKING)) { - codeBlock = codeBlock.replaceAll('this.inputPollingIntervalStats.addValue', ''); + codeBlock = codeBlock.replace('this.inputPollingIntervalStats.addValue', ''); + codeBlock = codeBlock.replace('this.inputPollingDurationStats.addValue', ''); } // Map the Share button on Xbox Series controller with the capturing screenshot feature @@ -219,8 +220,8 @@ const PATCHES = { if (match) { const gamepadVar = match[1]; const newCode = renderString(codeControllerShortcuts, { - gamepadVar, - }); + gamepadVar, + }); codeBlock = codeBlock.replace('this.gamepadTimestamps.set', newCode + 'this.gamepadTimestamps.set'); }