退出前会主动断开一下ws连接

WAIT放到网络相关TASK函数内部(会在第一帧触发,不影响)
可以从语言文件翻译服务器的错误消息并显示了
框架跟进
This commit is contained in:
MrZ_26
2022-10-06 03:16:18 +08:00
parent f8d17b23b6
commit 8e99565a9d
15 changed files with 228 additions and 122 deletions

View File

@@ -9,7 +9,7 @@ function scene.sceneInit()
sysAndScn=SYSTEM.."-"..VERSION.string.." scene:"..Z.getErr('#').scene
errorText=LOADED and text.errorMsg or "An error has occurred while the game was loading.\nAn error log has been created so you can send it to the author."
errorShot,errorInfo=Z.getErr('#').shot,Z.getErr('#').mes
NET.closeWS()
NET.ws.close()
if SETTING then
SFX.fplay('error',SETTING.voc*.8 or 0)
end