Open nov-itipa opened 4 months ago
just change or cast the variables to the requires types
What about this? Also, after successfully compiling with these changes, why am I still needing the extension from market.csgo.com? I thought, enabling OpenMarketClient takes care of not having to run the extension?
diff --git a/src/Account.h b/src/Account.h
index 3e94a1b..2f56725 100644
--- a/src/Account.h
+++ b/src/Account.h
@@ -270,12 +270,18 @@ public:
char jwtPayload[Base64ToPlainSize(sizeof(encJwtPayload))];
size_t jwtPayloadSz = sizeof(jwtPayload);
- if (Base64_Decode((byte*)encJwtPayload, encJwtPayloadPaddedSz, (byte*)jwtPayload, &jwtPayloadSz))
+ // Temporary variable for casting
+ word32 jwtPayloadSz_w32 = static_cast<word32>(jwtPayloadSz);
+
+ if (Base64_Decode((byte*)encJwtPayload, static_cast<word32>(encJwtPayloadPaddedSz), (byte*)jwtPayload, &jwtPayloadSz_w32))
{
Log(LogChannel::GENERAL, "JWT payload decoding failed\n");
return false;
}
+ // Update the original size variable
+ jwtPayloadSz = static_cast<word32>(jwtPayloadSz_w32);
+
Base64ToBase64URL(jwtPayload, jwtPayloadSz);
rapidjson::Document docJwtPayload;
@@ -857,4 +863,4 @@ public:
return allOk;
}
-};
\ No newline at end of file
+};
If I put items for sale, and just close the tab for tf2 or csgo, OpenMarketClient should handle the rest, right? Yup, looks like, I just need to run this in the background and not worry about the browser extension.
It looks like ping is deprecated: https://market.csgo.com/en/api/content/sell_buy#ping And is replaced by: https://market.csgo.com/en/api/content/sell_buy#ping-new I guess that's why I wasn't able to just keep running OpenMarketClient, still relying on the browser extension.
Would it be too difficult or bothersome for you to implement the ping-new functionality?
I have compiled in the past a previous version, but the most recent one is giving me issues: