Some more fixes
This commit is contained in:
parent
6b6139cb2f
commit
279e8a33c0
@ -135,7 +135,7 @@ CheatMenuMgr::CheatMenuMgr()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::Print<eLogLevel::None>("Starting " MENU_TITLE " (" BUILD_NUMBER ")\nAuthor: Grinch_\nDiscord: "
|
Log::Print<eLogLevel::None>("Starting " MENU_TITLE " (" __DATE__ ")\nAuthor: Grinch_\nDiscord: "
|
||||||
DISCORD_INVITE "\nMore Info: " GITHUB_LINK);
|
DISCORD_INVITE "\nMore Info: " GITHUB_LINK);
|
||||||
|
|
||||||
// date time
|
// date time
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "3.3"
|
#define MENU_VERSION_NUMBER "3.3"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||||
#define BUILD_NUMBER "20220825"
|
|
||||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
||||||
|
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
#include "utils/updater.h"
|
#include "utils/updater.h"
|
||||||
#include "utils/rpc.h"
|
#include "utils/rpc.h"
|
||||||
|
|
||||||
LONG WINAPI CrashHandler(PEXCEPTION_POINTERS pExceptionInfo)
|
LONG WINAPI CrashHandler(PEXCEPTION_POINTERS pInfo)
|
||||||
{
|
{
|
||||||
Log::Print<eLogLevel::None>("");
|
Log::Print<eLogLevel::None>("");
|
||||||
Log::Print<eLogLevel::Error>("Game crashed. Unhandled exception at {} (0x{:x})",
|
Log::Print<eLogLevel::Error>("Game crashed. Unhandled exception at {} (0x{:x})",
|
||||||
pExceptionInfo->ExceptionRecord->ExceptionAddress, pExceptionInfo->ExceptionRecord->ExceptionCode);
|
pInfo->ExceptionRecord->ExceptionAddress, pInfo->ExceptionRecord->ExceptionCode);
|
||||||
return EXCEPTION_CONTINUE_SEARCH;
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,15 +7,12 @@
|
|||||||
|
|
||||||
void PageHandler::AddPage(PagePtr page, size_t index)
|
void PageHandler::AddPage(PagePtr page, size_t index)
|
||||||
{
|
{
|
||||||
static size_t size = static_cast<size_t>(ePageID::None);
|
static size_t size = static_cast<size_t>(ePageID::COUNT);
|
||||||
if (index <= size)
|
if (m_PageList.size() < size)
|
||||||
{
|
{
|
||||||
if (m_PageList.size() < size)
|
m_PageList.resize(size);
|
||||||
{
|
|
||||||
m_PageList.resize(size);
|
|
||||||
}
|
|
||||||
m_PageList[index] = page;
|
|
||||||
}
|
}
|
||||||
|
m_PageList[index] = page;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PageHandler::SetCurrentPage(PagePtr page)
|
void PageHandler::SetCurrentPage(PagePtr page)
|
||||||
|
@ -15,10 +15,10 @@ enum class ePageID
|
|||||||
Menu,
|
Menu,
|
||||||
|
|
||||||
// Pages without headers
|
// Pages without headers
|
||||||
None,
|
|
||||||
Anniversary,
|
Anniversary,
|
||||||
Update,
|
Update,
|
||||||
Welcome,
|
Welcome,
|
||||||
|
COUNT,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -324,7 +324,7 @@ void MenuPage::Draw()
|
|||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text("ImGui: %s", ImGui::GetVersion());
|
ImGui::Text("ImGui: %s", ImGui::GetVersion());
|
||||||
ImGui::Text("%s: %s",TEXT("Menu.Build"), BUILD_NUMBER);
|
ImGui::Text("%s: %s",TEXT("Menu.Build"), __DATE__);
|
||||||
|
|
||||||
ImGui::Columns(1);
|
ImGui::Columns(1);
|
||||||
|
|
||||||
|
@ -591,7 +591,7 @@ void PlayerPage::Draw()
|
|||||||
|
|
||||||
state = BY_GAME(pPlayer->m_nPhysicalFlags.bMeleeProof, pPlayer->m_nFlags.bMeleeProof,
|
state = BY_GAME(pPlayer->m_nPhysicalFlags.bMeleeProof, pPlayer->m_nFlags.bMeleeProof,
|
||||||
pPlayer->m_nFlags.bMeleeProof);
|
pPlayer->m_nFlags.bMeleeProof);
|
||||||
if (Widget::Checkbox(TEXT("Player.MeleeProof"), &state, nullptr, m_bGodMode))
|
if (Widget::Checkbox(TEXT("Vehicle.MeleeProof"), &state, nullptr, m_bGodMode))
|
||||||
{
|
{
|
||||||
BY_GAME(pPlayer->m_nPhysicalFlags.bMeleeProof, pPlayer->m_nFlags.bMeleeProof,
|
BY_GAME(pPlayer->m_nPhysicalFlags.bMeleeProof, pPlayer->m_nFlags.bMeleeProof,
|
||||||
pPlayer->m_nFlags.bMeleeProof) = state;
|
pPlayer->m_nFlags.bMeleeProof) = state;
|
||||||
|
@ -8,7 +8,7 @@ private:
|
|||||||
friend class IFeature;
|
friend class IFeature;
|
||||||
WelcomePage() : IPage<WelcomePage>(ePageID::Welcome, "Welcome", false)
|
WelcomePage() : IPage<WelcomePage>(ePageID::Welcome, "Welcome", false)
|
||||||
{
|
{
|
||||||
Events::initGameEvent += [this]()
|
Events::initGameEvent.after += [this]()
|
||||||
{
|
{
|
||||||
ePageID pageID = static_cast<ePageID>(gConfig.Get("Window.CurrentPage", static_cast<size_t>(ePageID::Welcome)));
|
ePageID pageID = static_cast<ePageID>(gConfig.Get("Window.CurrentPage", static_cast<size_t>(ePageID::Welcome)));
|
||||||
PagePtr ptr = PageHandler::FindPagePtr(pageID);
|
PagePtr ptr = PageHandler::FindPagePtr(pageID);
|
||||||
|
Loading…
Reference in New Issue
Block a user