[ServerList]: Rename Notice (#757)
This commit is contained in:
parent
4bf0e67638
commit
678ac8f568
@ -723,7 +723,7 @@ namespace Components
|
|||||||
RefreshContainer.awatingList = false;
|
RefreshContainer.awatingList = false;
|
||||||
|
|
||||||
Logger::Print("We haven't received a response from the master within {} seconds!\n", (Game::Sys_Milliseconds() - RefreshContainer.awaitTime) / 1000);
|
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;
|
UseMasterServer = false;
|
||||||
Node::Synchronize();
|
Node::Synchronize();
|
||||||
|
@ -46,12 +46,12 @@ namespace Utils::IO
|
|||||||
if (!stream.is_open()) return false;
|
if (!stream.is_open()) return false;
|
||||||
|
|
||||||
stream.seekg(0, std::ios::end);
|
stream.seekg(0, std::ios::end);
|
||||||
std::streamsize size = stream.tellg();
|
const std::streamsize size = stream.tellg();
|
||||||
stream.seekg(0, std::ios::beg);
|
stream.seekg(0, std::ios::beg);
|
||||||
|
|
||||||
if (size > -1)
|
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.read(data->data(), size);
|
||||||
stream.close();
|
stream.close();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user