diff options
author | George Hazan <george.hazan@gmail.com> | 2024-12-27 19:49:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-12-27 19:49:45 +0300 |
commit | 1b9a0663b03e8225afe0f5f40a4949dbd4adc798 (patch) | |
tree | 8ad74daaa962cb07d0466a203ad758cf39506c0d /protocols/Steam/src/steam_utils.cpp | |
parent | 02260169dc542a2134438ec5d24eda2eb146d486 (diff) |
Steam: fix for avatars fetching
Diffstat (limited to 'protocols/Steam/src/steam_utils.cpp')
-rw-r--r-- | protocols/Steam/src/steam_utils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_utils.cpp b/protocols/Steam/src/steam_utils.cpp index 9666316ceb..b8b15f5db8 100644 --- a/protocols/Steam/src/steam_utils.cpp +++ b/protocols/Steam/src/steam_utils.cpp @@ -9,6 +9,17 @@ uint64_t getRandomInt() /////////////////////////////////////////////////////////////////////////////////////////
+bool IsNull(const ProtobufCBinaryData &buf)
+{
+ for (auto i = 0; i < buf.len; i++)
+ if (buf.data[i] != 0)
+ return false;
+
+ return true;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
MBinBuffer createMachineID(const char *accName)
{
uint8_t hashOut[MIR_SHA1_HASH_SIZE];
|