Fix 40250 classic login and world loading
This commit is contained in:
@@ -8,6 +8,10 @@ extends Node
|
||||
const AppFlow = preload("res://app_flow.gd")
|
||||
|
||||
func _ready() -> void:
|
||||
# 打包 app 从 Finder/open 启动时没有 shell 环境;40250 服务器使用 classic
|
||||
# DH2/CTR 协议,因此默认固定到 classic,同时保留 MT_PROTOCOL 覆盖能力。
|
||||
if OS.get_environment("MT_PROTOCOL").is_empty():
|
||||
OS.set_environment("MT_PROTOCOL", "classic")
|
||||
# 移动端:APK/IPA 里没有资源 —— 挂载外部的 assets.zip(adb push / ios-deploy 上传)。
|
||||
AssetPack.ensure()
|
||||
var root := AssetRoot.path()
|
||||
|
||||
Reference in New Issue
Block a user