mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
use standard fixed-size types instead of SDK types since the size of the data is important, to avoid any magic compiler definitions (love C++)
This commit is contained in:
parent
e8f64faf17
commit
8b4914a684
16
dll/auth.h
16
dll/auth.h
@ -9,9 +9,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define STEAM_APPTICKET_SIGLEN 128
|
// the data type is important, we depend on sizeof() for each one of them
|
||||||
#define STEAM_APPTICKET_GCLen 20
|
constexpr uint32_t STEAM_APPTICKET_SIGLEN = 128;
|
||||||
#define STEAM_APPTICKET_SESSIONLEN 24
|
constexpr uint32_t STEAM_APPTICKET_GCLen = 20;
|
||||||
|
constexpr uint32_t STEAM_APPTICKET_SESSIONLEN = 24;
|
||||||
|
|
||||||
struct DLC {
|
struct DLC {
|
||||||
uint32_t AppId;
|
uint32_t AppId;
|
||||||
@ -55,7 +56,7 @@ struct DLC {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct AppTicketGC {
|
struct AppTicketGC {
|
||||||
uint64 GCToken;
|
uint64_t GCToken;
|
||||||
CSteamID id;
|
CSteamID id;
|
||||||
uint32_t ticketGenDate; //epoch
|
uint32_t ticketGenDate; //epoch
|
||||||
uint32_t one = 1;
|
uint32_t one = 1;
|
||||||
@ -156,7 +157,7 @@ struct Auth_Data {
|
|||||||
AppTicket Ticket;
|
AppTicket Ticket;
|
||||||
//old data
|
//old data
|
||||||
CSteamID id;
|
CSteamID id;
|
||||||
uint64 number;
|
uint64_t number;
|
||||||
std::chrono::high_resolution_clock::time_point created;
|
std::chrono::high_resolution_clock::time_point created;
|
||||||
|
|
||||||
std::vector<uint8_t> Serialize()
|
std::vector<uint8_t> Serialize()
|
||||||
@ -199,7 +200,8 @@ class Auth_Manager {
|
|||||||
|
|
||||||
void launch_callback(CSteamID id, EAuthSessionResponse resp, double delay=0);
|
void launch_callback(CSteamID id, EAuthSessionResponse resp, double delay=0);
|
||||||
void launch_callback_gs(CSteamID id, bool approved);
|
void launch_callback_gs(CSteamID id, bool approved);
|
||||||
std::vector<struct Auth_Data> inbound, outbound;
|
std::vector<struct Auth_Data> inbound;
|
||||||
|
std::vector<struct Auth_Data> outbound;
|
||||||
public:
|
public:
|
||||||
Auth_Manager(class Settings *settings, class Networking *network, class SteamCallBacks *callbacks);
|
Auth_Manager(class Settings *settings, class Networking *network, class SteamCallBacks *callbacks);
|
||||||
|
|
||||||
@ -215,4 +217,4 @@ public:
|
|||||||
Auth_Data getTicketData( void *pTicket, int cbMaxTicket, uint32 *pcbTicket );
|
Auth_Data getTicketData( void *pTicket, int cbMaxTicket, uint32 *pcbTicket );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // AUTH_INCLUDE
|
||||||
|
Loading…
Reference in New Issue
Block a user