mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
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:
@ -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();
|
||||
|
Reference in New Issue
Block a user