Docs, is-named bool functions and MSVC utf-8

This commit is contained in:
shweet committed 2026-11-12 21:48:04 -05:00
1 parent 1a0db1abbd
commit 1cf4d1ea85
18 files changed
+443 -586

No files matched your search

+5 -5
View File
@@ -23,13 +23,13 @@ struct Json
{
simdjson::dom::parser parser;
object root = json_empty_get("o").get_object().value_unsafe();
bool isValid = false;
bool load(const std::string& path)
void load(const std::string& path)
{
if (!parser.load(path).get(root))
return true;
SDL_Log("Failed to load %s", path.c_str());
return false;
isValid = !parser.load(path).get(root);
if (!isValid)
SDL_Log("Failed to load %s", path.c_str());
}
};