Skip to content

Commit

Permalink
🔧 Load DiscordAppID and ShowHotkey from Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
47PADO47 committed Feb 18, 2024
1 parent 5c89a46 commit 911dd31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Internal/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ __declspec(dllexport) LRESULT CALLBACK SplitgateCallBack(int code, WPARAM wparam

Logger::Log("SUCCESS", "Injected");
Logger::Log("INFO", std::format("Base Address: [0x{:x}]", (uintptr_t)GetModuleHandleW(0)).c_str());
Logger::Log("SUCCESS", "Press Ins to hide/show the menu");
Logger::Log("SUCCESS", std::format("Press {} to hide/show the menu", ZeroGUI::VirtualKeyCodeToString(Settings.MENU.ShowHotkey)));

hook->features->rpc->Init("1078744504066117703");
hook->features->rpc->Init(Settings.MISC.DiscordAppID);
hook->features->rpc->UpdatePresence();

return CallNextHookEx(hook->g_hook, code, wparam, lparam);
Expand Down
1 change: 1 addition & 0 deletions Internal/settings/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ namespace SettingsHelper {
Settings.MISC.Unload = false;
Settings.MISC.DestroyConsole = false;
Settings.MISC.PlayerName = "SplitgateDevelopement";
Settings.MISC.DiscordAppID = "1078744504066117703";

Save();
}
Expand Down
1 change: 1 addition & 0 deletions Internal/settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ typedef struct {
float Unload;
bool DestroyConsole;
std::string PlayerName;
const char* DiscordAppID;
} MISC;
} SETTINGS;

Expand Down

0 comments on commit 911dd31

Please sign in to comment.