From ead0789a5acc399f543a3e2583f47f32bb996209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:30:37 +0800 Subject: [PATCH] Update selecthook.py --- LunaTranslator/LunaTranslator/gui/selecthook.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/selecthook.py b/LunaTranslator/LunaTranslator/gui/selecthook.py index 3ce262b5..6c50666e 100644 --- a/LunaTranslator/LunaTranslator/gui/selecthook.py +++ b/LunaTranslator/LunaTranslator/gui/selecthook.py @@ -1,4 +1,4 @@ -import functools, json +import functools, json, windows from traceback import print_exc from PyQt5.QtCore import Qt from PyQt5.QtWidgets import ( @@ -183,7 +183,9 @@ class searchhookparam(QDialog): usestruct.boundaryModule = dumpvalues["module"][:120] usestruct.address_method = self.search_addr_range.idx() usestruct.search_method = self.search_method.idx() - usestruct.jittype = ["PC", "YUZU", "PPSSPP"].index(dumpvalues["jittype"]) + usestruct.jittype = ["PC", "YUZU", "PPSSPP", "VITA3K"].index( + dumpvalues["jittype"] + ) if self.search_addr_range.idx() == 0: usestruct.minAddress = self.safehex( dumpvalues["startaddr"], usestruct.minAddress @@ -220,6 +222,15 @@ class searchhookparam(QDialog): def __init__(self, parent) -> None: super().__init__(parent, Qt.WindowCloseButtonHint) + windows.SetWindowPos( + int(int(self.winId())), + windows.HWND_TOPMOST, + 0, + 0, + 0, + 0, + windows.SWP_NOACTIVATE | windows.SWP_NOSIZE | windows.SWP_NOMOVE, + ) self.setWindowTitle(_TR("搜索设置")) mainlayout = QVBoxLayout() checks = QButtonGroup_switch_widegt(self) @@ -387,7 +398,7 @@ class searchhookparam(QDialog): "PC", 2, uselayout=layoutjit, - getlistcall=lambda: ["PC", "YUZU", "PPSSPP"], + getlistcall=lambda: ["PC", "YUZU", "PPSSPP", "VITA3K"], listeditable=False, )