Initial public release

This commit is contained in:
jhaizhou
2026-10-12 16:51:08 +08:00
commit 46578a2b5d
997 changed files with 218713 additions and 0 deletions
@@ -0,0 +1,19 @@
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parents[1]))
import lib
r = lib.load(sys.argv[1])
rows = [(row.get("tick"), row.get("act"), row.get("arg")) for row in r._uimsg if row.get("cat") == "PanelManager"]
note_open = [t for t, act, arg in rows if act == "OpenPanel" and arg == "NotificationPanel"]
note_close = [t for t, act, arg in rows if act == "ClosePanel" and arg == "NotificationPanel"]
inv_open = [t for t, act, arg in rows if act == "OpenPanel" and arg == "PlayerInventoryExpansionLayout"]
lib.check(len(note_open) == 1, f"改难度后系统通知应弹一次,实际 {note_open}")
lib.check(len(inv_open) == 1, f"通知开着时点功能键应打开功能页一次,实际 {inv_open}")
if note_open and inv_open:
lib.check(note_open[0] < inv_open[0], f"功能页应在通知弹出之后打开(通知拍 {note_open[0]},功能页拍 {inv_open[0]})")
lib.check(not note_close or note_close[0] > inv_open[0], f"通知不应被这次按键关掉(通知关于拍 {note_close[:1]},功能页开于拍 {inv_open[0]})")
# 停留时长是产品覆盖层设的 5 秒(dm/ios/tools/gen_romfs_overlay.py 的 notificationSeconds;原版 10 秒 ≈ 270 拍)。在覆盖层上实测开到关 146 拍
# The dwell time is the 5 seconds set by the product overlay (notificationSeconds in dm/ios/tools/gen_romfs_overlay.py; the original game's 10 seconds ≈ 270 ticks). Measured on the overlay: 146 ticks from open to close
lib.check(bool(note_close) and 120 <= note_close[0] - note_open[0] <= 175, f"通知应约 5 秒(实测 146 拍)后自己关,实际开 {note_open} 关 {note_close}")
sys.exit(lib.main())
@@ -0,0 +1,7 @@
# 改难度后游戏弹系统通知「游戏难度设为 N…」(停 10 秒)。通知还开着时点红十字(功能键)必须打开功能页,不被通知吃掉(r28 剪口,真机发现)
0.5 down 0 1090,1241
0.6 up 0
1.5 down 0 1810,1051
1.6 up 0
4.0 down 0 1690,1241
4.1 up 0
@@ -0,0 +1 @@
1200