Log GTA error message boxes and don't make them close the game. (#1671)

* refactor: move utf 16 to code page string conversion to its own util file

* feat(error-handling): log error message box generated from gta.
This commit is contained in:
Quentin
2023-07-10 19:01:34 +02:00
committed by GitHub
parent b8a7c9be70
commit 17d647dfa5
9 changed files with 109 additions and 28 deletions

View File

@ -11,6 +11,8 @@
#include "util/system.hpp"
#include "view_debug.hpp"
#include "hooking.hpp"
namespace big
{
void debug::misc()
@ -26,6 +28,11 @@ namespace big
g_fiber_pool->reset();
}
if (components::button("Trigger GTA Error Message Box"))
{
hooks::log_error_message_box(0xBAFD530B, 1);
}
if (components::button("DUMP_ENTRYPOINTS"_T.data()))
{
system::dump_entry_points();