Commit Graph

22 Commits

Author SHA1 Message Date
otavepto
c28a1f1f52 fix more VS2022 warnings 2024-06-04 21:58:04 +03:00
Detanup01
e4f488bbdc Fix errrors in network.
(linux and windows C++ things arent the same [I HATE BOTH OF YOU WHY NOT STANDARDIZE!])
revert "&" checks on type instead of "=="
2024-05-27 23:24:38 +03:00
Detanup01
3a6a7cef73 more stuff 2024-05-27 23:24:38 +03:00
Detanup01
6a464fd295 fixing some errors via types
(might ebe worng)
2024-05-27 23:24:38 +03:00
otavepto
e5d1a8bda7 separate .h/.cpp files 2024-05-03 03:33:46 +03:00
otavepto
5cd5f814e6 * use corresponding steam types for auth functions
* corrected the ticket size in `Auth_Manager::getWebApiTicket`
2024-04-30 00:26:43 +03:00
Detanup01
d6a4b7f0ba no more copy if the size is bigger than the ticket 2024-04-29 22:52:33 +03:00
Detanup01
be42ac9b13 Checking if its bigger than max
and returning 0 if it is
2024-04-29 22:52:33 +03:00
Detanup01
5e4eafd6fb ) bonus removed 2024-04-29 22:52:33 +03:00
Detanup01
5d3a749fe1 Fix allocating the size for the ticket. 2024-04-29 22:52:33 +03:00
otavepto
8576d149d3 remove functions names prefixes in debug logs 2024-04-06 08:30:08 +02:00
otavepto
3c9b327fb5 * cleanup/remove all networking callbacks on object destruction
* reset pointers on client destruction
2024-03-26 21:39:52 +02:00
otavepto
440d8335e2 fixed a bunch of includes 2023-12-28 01:30:46 +02:00
otavepto
ce9b957c3d fixed warning in auth when building with clang (dammit!) 2023-12-25 18:30:44 +02:00
otavepto
1c84f2c324 use a global ticket counter for GC struct 2023-12-24 14:33:40 +02:00
a
af86d6efc2 TODO notes for later, if needed 2023-12-24 14:33:40 +02:00
a
355537bb19 cache the usage of user ID, for clarity 2023-12-24 14:33:40 +02:00
a
85c98a5933 avoid incrementing the counter beyond the DLC count 2023-12-24 14:33:40 +02:00
a
205d88b204 + used std::chrono to set the expiration time of the ticket instead of hardcoded numbers, for clarity. isn't 24 hours a very long time?
+ set TimeSinceStartup from the new startup_timer, which starts counting when the .dll/.so is loaded in memory, currently using the amount of seconds, not sure if this is correct though
2023-12-24 14:33:40 +02:00
a
7b4d447553 use a helper macro to set IP4, for clarity 2023-12-24 14:33:40 +02:00
a
23c435bfea moved functions around for a clearer context 2023-12-24 14:33:40 +02:00
Detanup01
b697c8bd2d All Auth token support 2023-12-24 14:33:40 +02:00