Bug fixes

This commit is contained in:
redphx
2025-02-07 09:00:22 +07:00
parent cf1f656ecf
commit d4c1e8cce3
5 changed files with 23 additions and 37 deletions

View File

@@ -422,8 +422,8 @@ if (titleInfo && !titleInfo.details.hasTouchSupport && !titleInfo.details.hasFak
},
patchStreamHud(str: string) {
let text = 'let{onCollapse';
if (!str.includes(text)) {
let index = str.indexOf('let{onCollapse');
if (index < 0) {
return false;
}
@@ -434,7 +434,7 @@ if (titleInfo && !titleInfo.details.hasTouchSupport && !titleInfo.details.hasFak
newCode += 'options.canShowTakHUD = false;';
}
str = str.replace(text, newCode + text);
str = PatcherUtils.insertAt(str, index, newCode);
return str;
},