mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
Emscripten: Immediately mark presentable if no url is specified
Also log failed requests.
This commit is contained in:
@@ -496,6 +496,10 @@ int Main(int argc, char *argv[])
|
||||
Platform::MarkPresentable();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Platform::MarkPresentable();
|
||||
}
|
||||
|
||||
MainLoop();
|
||||
};
|
||||
|
@@ -146,6 +146,10 @@ namespace http
|
||||
{
|
||||
std::cerr << *error << std::endl;
|
||||
}
|
||||
else if (statusCode >= 400)
|
||||
{
|
||||
std::cerr << "status code " << statusCode << " for request to " << uri << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
const char *StatusText(int ret)
|
||||
|
Reference in New Issue
Block a user