summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-18 18:41:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-18 18:41:56 +0300
commitace6bf1bd1e110ac93da464b2b7d75cafef0b415 (patch)
tree15ddd4342f7ed06a9dd8b6a87790b4593cc156ed /protocols/Steam/src/steam_utils.h
parent920b6b4c19e8ba7b020db7e78db0327b2a742a7b (diff)
obsolete code removed
Diffstat (limited to 'protocols/Steam/src/steam_utils.h')
-rw-r--r--protocols/Steam/src/steam_utils.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_utils.h b/protocols/Steam/src/steam_utils.h
index aaae1c1fb5..29ac97b1e2 100644
--- a/protocols/Steam/src/steam_utils.h
+++ b/protocols/Steam/src/steam_utils.h
@@ -15,11 +15,9 @@ MBinBuffer createMachineID(const char *accName);
uint64_t getRandomInt();
CMStringA protobuf_c_text_to_string(const ProtobufCMessage &msg);
-inline const char *AccountIdToSteamId(long long accountId)
+inline uint64_t AccountIdToSteamId(uint64_t accountId)
{
- static char steamId[20];
- mir_snprintf(steamId, "%llu", accountId + 76561197960265728ll);
- return steamId;
+ return accountId | 0x110000100000000ll;
}
inline uint64_t SteamIdToAccountId(uint64_t steamId)