mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
fb31aef9b2
Set items to static and call the json load only once.
5 lines
No EOL
218 B
C++
5 lines
No EOL
218 B
C++
#include "steam_inventory.h"
|
|
|
|
std::once_flag Steam_Inventory::items_loading;
|
|
std::atomic_bool Steam_Inventory::items_loaded(false);
|
|
std::map<SteamItemDef_t, std::map<std::string, std::string>> Steam_Inventory::items; |