stubbed Assert function . should fix #26

This commit is contained in:
georgemoralis 2023-07-26 13:18:10 +03:00
parent 2b9aaff641
commit d7247f9e8d
3 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ namespace HLE::Libs::LibC {
}
return rt;
}
static PS4_SYSV_ABI void _Assert() { BREAKPOINT(); }
void LibC_Register(SymbolsResolver* sym)
{
@ -56,6 +57,7 @@ namespace HLE::Libs::LibC {
LIB_FUNCTION("XKRegsFpEpk", "libc", 1, "libc", 1, 1, catchReturnFromMain);
LIB_FUNCTION("uMei1W9uyNo", "libc", 1, "libc", 1, 1, exit);
LIB_FUNCTION("8G2LB+A3rzg", "libc", 1, "libc", 1, 1, atexit);
LIB_FUNCTION("-QgqOT5u2Vk", "libc", 1, "libc", 1, 1, _Assert);
LIB_OBJ("P330P3dFF68", "libc", 1, "libc", 1, 1, &HLE::Libs::LibC::g_need_sceLibc);
}

View File

@ -8,6 +8,7 @@ namespace HLE::Libs::LibC {
//functions
static PS4_SYSV_ABI void init_env();
static PS4_SYSV_ABI void exit(int code);
static PS4_SYSV_ABI void _Assert();
static PS4_SYSV_ABI void catchReturnFromMain(int status);
int PS4_SYSV_ABI __cxa_guard_acquire(u64* guard_object);
int PS4_SYSV_ABI memcmp(const void* s1, const void* s2, size_t n);

View File

@ -11219,6 +11219,7 @@ namespace aerolib {
{"9rAeANT2tyE", "__cxa_guard_release"},
{"DfivPArhucg", "memcmp"},
{"Q3VBxCXhUHs", "memcpy"},
{"-QgqOT5u2Vk", "_Assert"},
//libkernel
{"Ou3iL1abvng", "__stack_chk_fail"},
{"f7uOxY9mM1U", "__stack_chk_guard"}