Last small changes
This commit is contained in:
@ -79,7 +79,7 @@ namespace CoopClient
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DownloadProgressTick()
|
public static void RenderProgress()
|
||||||
{
|
{
|
||||||
if (_downloadFiles.Count == 0)
|
if (_downloadFiles.Count == 0)
|
||||||
{
|
{
|
||||||
|
@ -260,7 +260,7 @@ namespace CoopClient
|
|||||||
OnChatMessage?.Invoke(from, message);
|
OnChatMessage?.Invoke(from, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InvokeServerEvent(string eventName, object[] args)
|
internal void InvokeServerEvent(string eventName, object[] args)
|
||||||
{
|
{
|
||||||
_serverEvents.FirstOrDefault(x => x.Key == eventName).Value?.Invoke(args);
|
_serverEvents.FirstOrDefault(x => x.Key == eventName).Value?.Invoke(args);
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ namespace CoopClient
|
|||||||
|
|
||||||
if (!DownloadManager.DownloadComplete)
|
if (!DownloadManager.DownloadComplete)
|
||||||
{
|
{
|
||||||
DownloadManager.DownloadProgressTick();
|
DownloadManager.RenderProgress();
|
||||||
}
|
}
|
||||||
else if (!JavascriptHook.JavascriptLoaded)
|
else if (!JavascriptHook.JavascriptLoaded)
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<AssemblyVersion>1.52.3.0001</AssemblyVersion>
|
<AssemblyVersion>1.52.6.0001</AssemblyVersion>
|
||||||
<FileVersion>1.0.0.0</FileVersion>
|
<FileVersion>1.0.0.0</FileVersion>
|
||||||
<RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl>
|
<RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -96,9 +96,9 @@ namespace CoopServer
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpResponseMessage response = await httpClient.GetAsync("https://ipinfo.io/json");
|
HttpResponseMessage response = await httpClient.GetAsync("https://ipinfo.io/json");
|
||||||
if (!response.IsSuccessStatusCode)
|
if (response.StatusCode != HttpStatusCode.OK)
|
||||||
{
|
{
|
||||||
throw new Exception("IPv4 request failed!");
|
throw new Exception($"IPv4 request failed! [{(int)response.StatusCode}/{response.ReasonPhrase}]");
|
||||||
}
|
}
|
||||||
|
|
||||||
string content = await response.Content.ReadAsStringAsync();
|
string content = await response.Content.ReadAsStringAsync();
|
||||||
|
Reference in New Issue
Block a user