修复:消除 QProcess 重载歧义并归档串流故障验证
变更详情:QProcess::finished 重载消歧;文档:串流失败根因(双 IP ARP 混乱)与延迟 A/B 结论 - moonlight_session.cpp:QOverload 显式指定 finished 重载,修复 ARM64 编译 - moonlight.conf:vsync/frame-pacing 默认改回开启(A/B 实测关闭无改善) - docs:补充 10-29 登录流程验收、重启验收、Monitor 恢复、双 IP 根因与 A/B 数据 - tools:新增 deploy_kiosk.sh 一键部署脚本与语法自检
This commit is contained in:
1 parent
61127fb714
commit
ee6f449bf1
7 files changed
+381
-46
No files matched your search
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Rough brace/paren balance sanity check for edited C++ files."""
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
"..", "terminal", "kiosk-shell"))
|
||||
|
||||
FILES = [
|
||||
"src/main_window.cpp",
|
||||
"src/main_window.h",
|
||||
"src/desktop_list_page.cpp",
|
||||
"src/desktop_list_page.h",
|
||||
"src/desktop_service.cpp",
|
||||
"src/desktop_service.h",
|
||||
"src/desktop_session.h",
|
||||
"src/moonlight_session.cpp",
|
||||
"src/moonlight_session.h",
|
||||
"src/login_page.cpp",
|
||||
"src/login_page.h",
|
||||
"src/state_machine.cpp",
|
||||
"src/state_machine.h",
|
||||
]
|
||||
|
||||
fail = False
|
||||
for f in FILES:
|
||||
src = open(f, encoding="utf-8").read()
|
||||
src2 = re.sub(r"//[^\n]*", "", src)
|
||||
src2 = re.sub(r'"(?:\\.|[^"\\])*"', '""', src2)
|
||||
src2 = re.sub(r"'(?:\\.|[^'\\])*'", "''", src2)
|
||||
counts = {c: src2.count(c) for c in "{}()"}
|
||||
ok = counts["{"] == counts["}"] and counts["("] == counts[")"]
|
||||
print(f, counts, "OK" if ok else "MISMATCH")
|
||||
if not ok:
|
||||
fail = True
|
||||
|
||||
sys.exit(1 if fail else 0)
|
||||
Reference in new issue
Block a user