Build self-contained macOS client and verify native beta path
This commit is contained in:
@@ -32,7 +32,6 @@ func _ready() -> void:
|
||||
|
||||
# 启动 40250 原生 port 路径
|
||||
func _start_port_route() -> void:
|
||||
AssetPack.ensure()
|
||||
if not (ClassDB.class_exists("Metin2PythonHost") and AssetRoot.pack_ready()):
|
||||
printerr("[client] port 路由缺少 Metin2PythonHost 或 40250 Client/pack(%s)" % AssetRoot.client_path())
|
||||
get_tree().quit(1)
|
||||
@@ -52,3 +51,8 @@ func _start_port_route() -> void:
|
||||
if err != "":
|
||||
printerr("port: " + err)
|
||||
get_tree().quit(1)
|
||||
return
|
||||
if OS.get_environment("MT_TEST_MODE") == "beta_probe":
|
||||
var probe: Node = preload("res://beta_live_probe.gd").new()
|
||||
probe.name = "BetaLiveProbe"
|
||||
add_child(probe)
|
||||
|
||||
Reference in New Issue
Block a user