Debug stuff
This commit is contained in:
parent
c8962075a4
commit
db40f3b6c2
@ -306,6 +306,24 @@ namespace Components
|
|||||||
{
|
{
|
||||||
QuickPatch::UnlockStats();
|
QuickPatch::UnlockStats();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Debug patches
|
||||||
|
#ifdef DEBUG
|
||||||
|
// ui_debugMode 1
|
||||||
|
//Utils::Hook::Set<bool>(0x6312E0, true);
|
||||||
|
|
||||||
|
// fs_debug 1
|
||||||
|
Utils::Hook::Set<bool>(0x643172, true);
|
||||||
|
|
||||||
|
// developer 2
|
||||||
|
Utils::Hook::Set<BYTE>(0x4FA425, 2);
|
||||||
|
Utils::Hook::Set<BYTE>(0x51B087, 2);
|
||||||
|
Utils::Hook::Set<BYTE>(0x60AE13, 2);
|
||||||
|
|
||||||
|
// developer_Script 1
|
||||||
|
Utils::Hook::Set<bool>(0x60AE2B, true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
QuickPatch::~QuickPatch()
|
QuickPatch::~QuickPatch()
|
||||||
|
@ -46,6 +46,7 @@ Assert_Size(char, 1);
|
|||||||
Assert_Size(unsigned char, 1);
|
Assert_Size(unsigned char, 1);
|
||||||
Assert_Size(int8_t, 1);
|
Assert_Size(int8_t, 1);
|
||||||
Assert_Size(uint8_t, 1);
|
Assert_Size(uint8_t, 1);
|
||||||
|
Assert_Size(bool, 1);
|
||||||
|
|
||||||
// Ensure pointers are 4 bytes in size (32-bit)
|
// Ensure pointers are 4 bytes in size (32-bit)
|
||||||
static_assert(sizeof(intptr_t) == 4 && sizeof(void*) == 4 && sizeof(size_t) == 4, "This doesn't seem to be a 32-bit environment!");
|
static_assert(sizeof(intptr_t) == 4 && sizeof(void*) == 4 && sizeof(size_t) == 4, "This doesn't seem to be a 32-bit environment!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user