Fixes, daily usage counter
This commit is contained in:
parent
bdd3742ca9
commit
3876d618c0
@ -80,6 +80,7 @@ void MenuThread(void* param)
|
||||
if (gConfig.GetValue("config.update_date", 0) != st.wDay)
|
||||
{
|
||||
Updater::CheckUpdate();
|
||||
Updater::IncrementDailyUsageCounter();
|
||||
gConfig.SetValue("config.update_date", st.wDay);
|
||||
}
|
||||
|
||||
|
@ -393,7 +393,7 @@ void Menu::ShowPage()
|
||||
|
||||
ImGui::Spacing();
|
||||
|
||||
ImGui::Columns(2);
|
||||
ImGui::Columns(2, NULL, false);
|
||||
if (ImGui::Checkbox(TEXT("Menu.DiscordRPC"), &m_bDiscordRPC))
|
||||
{
|
||||
if (m_bDiscordRPC)
|
||||
|
@ -27,8 +27,7 @@ private:
|
||||
static inline DiscordRichPresence drpc;
|
||||
static inline HMODULE hDll = NULL;
|
||||
static inline bool bInit;
|
||||
static void Discord_Initialize(const char* applicationId, int handlers, int autoRegister, const char* optionalSteamId);
|
||||
static void Discord_UpdatePresence(const DiscordRichPresence* presence);
|
||||
|
||||
public:
|
||||
RPC() = delete;
|
||||
RPC(RPC&) = delete;
|
||||
|
@ -25,6 +25,11 @@ void Updater::CheckUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
void Updater::IncrementDailyUsageCounter()
|
||||
{
|
||||
URLDownloadToFile(NULL, "https://cntr.click/XL6Z7a7", "", 0, NULL);
|
||||
}
|
||||
|
||||
void Updater::Process()
|
||||
{
|
||||
if (Updater::curState != States::CHECKING)
|
||||
|
@ -25,6 +25,13 @@ public:
|
||||
static std::string GetUpdateVersion();
|
||||
static bool IsUpdateAvailable();
|
||||
|
||||
/*
|
||||
Just downloading file from a click counter site
|
||||
Redirects to the versioninfo.json file of github
|
||||
This probably shouldn't impose any privacy concerns?
|
||||
*/
|
||||
static void IncrementDailyUsageCounter();
|
||||
|
||||
// Needs to run in it's own thread to prevent the game from freezing
|
||||
static void Process();
|
||||
static void ResetUpdaterState();
|
||||
|
@ -2,5 +2,5 @@
|
||||
#define MENU_NAME "Cheat Menu"
|
||||
#define MENU_VERSION_NUMBER "3.2"
|
||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||
#define BUILD_NUMBER "20220310"
|
||||
#define BUILD_NUMBER "20220314"
|
||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
||||
|
@ -31,8 +31,7 @@ workspace "CheatMenu"
|
||||
targetdir "../build/bin"
|
||||
|
||||
libdirs {
|
||||
PSDK_DIR .. "/output/lib",
|
||||
"../depend/lib"
|
||||
PSDK_DIR .. "/output/lib"
|
||||
}
|
||||
|
||||
links {
|
||||
|
Loading…
Reference in New Issue
Block a user