mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Some cleanups.
Load items json only if there's an inventory request. Launch callbacks only when loading is done. Copy over original unformatted json.hpp
This commit is contained in:
parent
f56503fcd0
commit
59a9fcee0d
6 changed files with 17345 additions and 17416 deletions
|
|
@ -53,8 +53,10 @@ void read_items_db(std::string items_db, std::map<SteamItemDef_t, std::map<std::
|
|||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
PRINT_DEBUG("Error while parsing json: %s", e.what());
|
||||
PRINT_DEBUG("Error while parsing json: %s\n", e.what());
|
||||
}
|
||||
}
|
||||
|
||||
PRINT_DEBUG("Loaded json. Loaded %u items.\n", items->size());
|
||||
*is_loadedb = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue