fix: UseAioPhotoChoosePanel for QQ 9.0.60 (#995)

This commit is contained in:
xxnnxx
2024-05-25 15:00:34 +08:00
committed by GitHub
parent fa2b7bc6f5
commit 3d9fc61265

View File

@@ -48,7 +48,11 @@ object UseAioPhotoChoosePanel : CommonSwitchFunctionHook() {
if (requireMinQQVersion(QQVersion.QQ_9_0_55)) {
// 改成其他数字再改回去
"Lcom/tencent/mobileqq/aio/shortcurtbar/AIOShortcutBarVM\$c;".clazz!!.hookBeforeAllConstructors {
if (it.args[0] == 1003) it.args[0] = 114514
if (it.args[0] is Int) {
if (it.args[0] == 1003) it.args[0] = 114514
} else {
if (it.args[1] == 1003) it.args[1] = 114514
}
}
"Lcom/tencent/input/base/panelcontainer/h\$l;".clazz!!.hookBeforeAllConstructors {
if (it.args[0] == "AIOShortcutBarVM" && it.args[1] == 114514) it.args[1] = 1003