Bug fixes with command window & more

This commit is contained in:
Grinch_ 2021-09-27 17:10:41 +06:00
parent e3e9cd6a25
commit 8d2f6b4d3c
3 changed files with 10 additions and 16 deletions

View File

@ -78,25 +78,19 @@ BOOL WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved)
if (nReason == DLL_PROCESS_ATTACH)
{
uint gameVersion = GetGameVersion();
if (gameVersion == BY_GAME(GAME_10US_HOODLUM, GAME_10EN))
{
CreateThread(nullptr, NULL, (LPTHREAD_START_ROUTINE)&MenuThread, nullptr, NULL, nullptr);
}
else
{
#ifdef GTASA
if (gameVersion == GAME_10US_HOODLUM)
{
CreateThread(nullptr, NULL, (LPTHREAD_START_ROUTINE)&MenuThread, nullptr, NULL, nullptr);
}
else
{
MessageBox(HWND_DESKTOP, "Unknown game version. GTA SA v1.0 US is required.", "CheatMenu", MB_ICONERROR);
}
#elif GTAVC
if (gameVersion == GAME_10EN)
{
CreateThread(nullptr, NULL, (LPTHREAD_START_ROUTINE)&MenuThread, nullptr, NULL, nullptr);
}
else
{
MessageBox(HWND_DESKTOP, "Unknown game version. GTA VC v1.0 EN is required.", "CheatMenu", MB_ICONERROR);
}
#endif
}
}
return TRUE;

View File

@ -473,7 +473,7 @@ void Menu::Draw()
{
if (ImGui::BeginChild("CommandsChild"))
{
ImGui::TextWrapped("Open or close command window using %s", commandWindow.GetNameString());
ImGui::TextWrapped("Open or close command window using %s", commandWindow.GetNameString().c_str());
ImGui::Spacing();
if (ImGui::CollapsingHeader("Set health"))
{

View File

@ -2,5 +2,5 @@
#define MENU_NAME "Cheat Menu"
#define MENU_VERSION_NUMBER "3.0"
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
#define BUILD_NUMBER "20210923"
#define BUILD_NUMBER "20210927"
#define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"