diff --git a/AutoLoad.cs b/AutoLoad.cs index 9413b81..f907c67 100644 --- a/AutoLoad.cs +++ b/AutoLoad.cs @@ -6,8 +6,9 @@ public partial class AutoLoad : Node internal string name=""; internal string ip="127.0.0.1"; internal int port=1145; - internal bool popup=false; + internal int popup=0; internal bool is_connection_lost=false; + internal string version="v2023.12.26"; public override void _Ready() { } diff --git a/ChatRoom/ChatRoom.cs b/ChatRoom/ChatRoom.cs index 692be77..d0dc4b2 100644 --- a/ChatRoom/ChatRoom.cs +++ b/ChatRoom/ChatRoom.cs @@ -25,6 +25,11 @@ public override void _Ready() { Rpc("Joined",autoload.name,Multiplayer.MultiplayerPeer.GetUniqueId()); RpcId(MultiplayerPeer.TargetPeerServer,"SyncFromServer",Multiplayer.MultiplayerPeer.GetUniqueId()); + /*if (OS.GetName()=="Windows" ||OS.GetName()=="macOS"||OS.GetName()=="Linux") + { + RpcId(MultiplayerPeer.TargetPeerServer,"Sha256Check",Multiplayer.MultiplayerPeer.GetUniqueId(),FileAccess.GetSha256(OS.GetExecutablePath())); + }*/ + RpcId(MultiplayerPeer.TargetPeerServer,"VersionCheck",Multiplayer.MultiplayerPeer.GetUniqueId(),autoload.version); } SendSystemMessage(autoload.name+TranslationServer.Translate("locJoined")); Rpc("SendSystemMessage",autoload.name+TranslationServer.Translate("locJoined")); @@ -101,7 +106,7 @@ private async void disconnected() { GetNode