Port 2V0 UI Python bindings and app module link surface

This commit is contained in:
shen
2026-09-22 19:57:35 -07:00
parent a0ad587f78
commit b221a9eaf5
74 changed files with 18320 additions and 9 deletions
+2 -3
View File
@@ -2,7 +2,7 @@
#
# 和 ctest 的 `port.python_launcher` 跑的是同一条序列,区别只有一个:那边是独立可执行文件,这边在
# Godot 进程里,由 GDScript 发起 —— step 4 要验的就是这个差别。2V0 把 C++ 模块注册上之前,
# system.py 停在第一个 import(`No module named app`),这就是当前的验收结果。
# 在玩法模块补齐前,system.py 会停在下一个未注册的 native import。
#
# 真机上通常没有 40250 的 Client/pack(APK 里只有 python27.zip),所以分两段:解释器 + 标准库这一段
# 不需要 pack,任何平台都跑;system.py 这一段需要 pack,没有就跳过并说清楚。
@@ -10,8 +10,7 @@
# 桌面:python_host_test.gd(--script);真机:MT_TEST_MODE=python 从 client_main.gd 进来。
extends RefCounted
# 2V0 之前 system.py 必然停在这里;2V0 之后这一行要跟着改。
const EXPECTED_STOP := "No module named app"
const EXPECTED_STOP := "No module named net"
var fail := 0