From 98e9d970a306eef0be71e6545cfe46b7a14e0a5b Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 20 Jul 2023 12:41:41 +0300 Subject: [PATCH] we can reach atexit() function as well --- src/Core/PS4/HLE/LibC.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Core/PS4/HLE/LibC.cpp b/src/Core/PS4/HLE/LibC.cpp index 41c1c8c0..43d27c69 100644 --- a/src/Core/PS4/HLE/LibC.cpp +++ b/src/Core/PS4/HLE/LibC.cpp @@ -8,10 +8,7 @@ namespace HLE::Libs::LibC { static void init_env() //every game/demo should probably { - for(;;) { - printf("life is a bitch but it did reach here\n"); - } - //__debugbreak();//if we reach here it will be a great progress :D + //dummy no need atm } int __cxa_guard_acquire(u64* guard_object) @@ -39,7 +36,11 @@ namespace HLE::Libs::LibC { } static int atexit(void (*func)()) - { return 0; + { + for (;;) { + printf("we reached here too!\n"); + } + return 0; } void LibC_Register(SymbolsResolver* sym)