summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-27 19:49:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-27 19:49:45 +0300
commit1b9a0663b03e8225afe0f5f40a4949dbd4adc798 (patch)
tree8ad74daaa962cb07d0466a203ad758cf39506c0d /protocols/Steam/src/steam_utils.cpp
parent02260169dc542a2134438ec5d24eda2eb146d486 (diff)
Steam: fix for avatars fetching
Diffstat (limited to 'protocols/Steam/src/steam_utils.cpp')
-rw-r--r--protocols/Steam/src/steam_utils.cpp11
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];