Resource loading

This commit is contained in:
Sardelka
2022-07-01 12:22:31 +08:00
parent 58362c2613
commit 8a46bd6b68
43 changed files with 1125 additions and 771 deletions

View File

@ -78,7 +78,8 @@ namespace RageCoop.Client
{
Client = new NetClient(config);
Client.Start();
Main.QueueAction(() => { GTA.UI.Notification.Show($"~y~Trying to connect..."); });
DownloadManager.Cleanup();
Security.Regen();
GetServerPublicKey(address);
@ -90,12 +91,12 @@ namespace RageCoop.Client
Username =username,
ModVersion = Main.CurrentVersion,
PassHashEncrypted=Security.Encrypt(password.GetHash())
};
};
Security.GetSymmetricKeysCrypted(out handshake.AesKeyCrypted,out handshake.AesIVCrypted);
handshake.Pack(outgoingMessage);
Client.Connect(ip[0], short.Parse(ip[1]), outgoingMessage);
Main.QueueAction(() => { GTA.UI.Notification.Show($"~y~Trying to connect..."); });
});
}