[ServerList]: Rename Notice (#757)

This commit is contained in:
Edo 2023-02-06 21:36:12 +00:00 committed by GitHub
parent 4bf0e67638
commit 678ac8f568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -723,7 +723,7 @@ namespace Components
RefreshContainer.awatingList = false;
Logger::Print("We haven't received a response from the master within {} seconds!\n", (Game::Sys_Milliseconds() - RefreshContainer.awaitTime) / 1000);
Toast::Show("cardicon_headshot", "^3Warning", "Failed to reach master server. Using node system instead.", 5000);
Toast::Show("net_disconnect", "^2Notice", "Master server could not be reached. Switching to decentralized network", 3000);
UseMasterServer = false;
Node::Synchronize();

View File

@ -46,12 +46,12 @@ namespace Utils::IO
if (!stream.is_open()) return false;
stream.seekg(0, std::ios::end);
std::streamsize size = stream.tellg();
const std::streamsize size = stream.tellg();
stream.seekg(0, std::ios::beg);
if (size > -1)
{
data->resize(static_cast<uint32_t>(size));
data->resize(static_cast<std::string::size_type>(size));
stream.read(data->data(), size);
stream.close();
return true;