diff --git a/src/dllmain.cpp b/src/dllmain.cpp index 6d64036..0ff1b9a 100644 --- a/src/dllmain.cpp +++ b/src/dllmain.cpp @@ -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); } diff --git a/src/menu.cpp b/src/menu.cpp index c4dbc69..b45d136 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -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) diff --git a/src/rpc.h b/src/rpc.h index 5e1f98c..021b539 100644 --- a/src/rpc.h +++ b/src/rpc.h @@ -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; diff --git a/src/updater.cpp b/src/updater.cpp index 1d03bae..7a2bd88 100644 --- a/src/updater.cpp +++ b/src/updater.cpp @@ -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) diff --git a/src/updater.h b/src/updater.h index b87d4c0..a942a83 100644 --- a/src/updater.h +++ b/src/updater.h @@ -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(); diff --git a/src/version.h b/src/version.h index a5fcabe..dd33793 100644 --- a/src/version.h +++ b/src/version.h @@ -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 diff --git a/tools/premake5.lua b/tools/premake5.lua index 8c7b6e6..280bf73 100644 --- a/tools/premake5.lua +++ b/tools/premake5.lua @@ -31,8 +31,7 @@ workspace "CheatMenu" targetdir "../build/bin" libdirs { - PSDK_DIR .. "/output/lib", - "../depend/lib" + PSDK_DIR .. "/output/lib" } links {