Nemirtingas
846ed27397
Add a default inventory support
...
Put a file in <steam_api.dll directory>/steam_settings/default_items.json with all default items you want (same syntax as the inventory file)
2019-09-23 19:06:24 +02:00
Nemirtingas
86b178f55b
Fixed definition update not being called
...
Should update definition when inventory is requested and definition is not loaded
2019-09-01 21:33:29 +02:00
Nemirtingas
f1118030e8
Added the forgotten size update if copied less chars.
2019-08-25 00:29:05 +02:00
Nemirtingas
21e08ed220
Achievements support & inventory customization.
...
Added achievements support. Achievements are saved like real steam, see your inventory directory.(like items, uses a .json, tool can be used to dump achievements from steam public api).
You will need a public apikey. (See https://steamcommunity.com/dev )
Reworked item support to split inventory items to defined items.
2019-08-24 17:42:39 +02:00
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...
2019-07-18 22:21:55 +02:00
Mr_Goldberg
514f2ddbd9
Some small cleanups.
2019-07-17 15:55:12 -04:00
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
2019-07-17 13:25:35 -04:00
Nemirtingas
fb31aef9b2
Set items to static
...
Set items to static and call the json load only once.
2019-07-17 17:28:39 +02:00
Nemirtingas
7853451b01
Added buffer size check while populating it.
2019-07-14 22:47:33 +02:00
Nemirtingas
0b134e98a9
Added debug message
2019-07-14 22:24:56 +02:00
Nemirtingas
98c556d6dc
atomic_bool is not copy_constructible
2019-07-14 21:01:42 +02:00
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
2019-07-14 20:53:20 +02:00
Nemirtingas
573a01212b
Switch to atomic_bool for thread synchronisation.
2019-07-14 20:51:23 +02:00
Nemirtingas
5c66c21f53
Modified Inventory to match steam's implementation
2019-07-14 19:22:30 +02:00
Nemirtingas
06f88d4687
Added the missing use cases
...
If pchPropertyName == NULL and/or pchValueBuffer == NULL
2019-07-12 22:26:45 +02:00
Nemirtingas
19659da6c2
Fixed crash on load.
...
Fixed dll crash on load by adding a check if the Json file exists or not.
2019-07-09 15:07:10 +02:00
Nemirtingas
5f67d359b3
Fixed typo because of merging
2019-06-25 15:53:00 +02:00
Nemirtingas
bbf6a3b6ff
Added partial inventory support.
...
For now, I load items and add them to the inventory and to the market.
2019-06-25 15:10:33 +02:00
Mr_Goldberg
106d4025bb
Make the inventory result callback respect the result timeout.
2019-05-03 21:54:32 -04:00
Mr_Goldberg
d968c3e1b5
Initial commit.
2019-04-13 12:21:56 -04:00