Disable inputPollingDurationStats

This commit is contained in:
redphx 2024-10-10 20:55:57 +07:00
parent baa22dbefc
commit 411e43ceb0

View File

@ -211,7 +211,8 @@ const PATCHES = {
// Block gamepad stats collecting // Block gamepad stats collecting
if (getPref(PrefKey.BLOCK_TRACKING)) { 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 // Map the Share button on Xbox Series controller with the capturing screenshot feature
@ -219,8 +220,8 @@ const PATCHES = {
if (match) { if (match) {
const gamepadVar = match[1]; const gamepadVar = match[1];
const newCode = renderString(codeControllerShortcuts, { const newCode = renderString(codeControllerShortcuts, {
gamepadVar, gamepadVar,
}); });
codeBlock = codeBlock.replace('this.gamepadTimestamps.set', newCode + 'this.gamepadTimestamps.set'); codeBlock = codeBlock.replace('this.gamepadTimestamps.set', newCode + 'this.gamepadTimestamps.set');
} }