Nemirtingas
d2fba40cb4
Small improvements
...
Its always better to reserve memory when we can for a vector. Also, STL implements a lot of algorithms, its better to use them in case someday you need to change it to something alike. Like reversing the copy, use transform instead, etc...
5 years ago
Mr_Goldberg
514f2ddbd9
Some small cleanups.
5 years ago
Mr_Goldberg
59a9fcee0d
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
5 years ago
Nemirtingas
fb31aef9b2
Set items to static
...
Set items to static and call the json load only once.
5 years ago
Nemirtingas
7853451b01
Added buffer size check while populating it.
5 years ago
Nemirtingas
0b134e98a9
Added debug message
5 years ago
Nemirtingas
98c556d6dc
atomic_bool is not copy_constructible
5 years ago
Nemirtingas
3273b1482b
steam_items.json renamed
...
steam_items.json has been renamed to items.json and now lives in steam_settings beside the steam_api.dll
5 years ago
Nemirtingas
573a01212b
Switch to atomic_bool for thread synchronisation.
5 years ago
Nemirtingas
5c66c21f53
Modified Inventory to match steam's implementation
5 years ago
Nemirtingas
06f88d4687
Added the missing use cases
...
If pchPropertyName == NULL and/or pchValueBuffer == NULL
5 years ago
Nemirtingas
19659da6c2
Fixed crash on load.
...
Fixed dll crash on load by adding a check if the Json file exists or not.
5 years ago
Nemirtingas
5f67d359b3
Fixed typo because of merging
5 years ago
Nemirtingas
bbf6a3b6ff
Added partial inventory support.
...
For now, I load items and add them to the inventory and to the market.
5 years ago
Mr_Goldberg
106d4025bb
Make the inventory result callback respect the result timeout.
5 years ago
Mr_Goldberg
d968c3e1b5
Initial commit.
5 years ago