#include "stdafx.h" #include "Emu/SysCalls/SysCalls.h" #include "Emu/SysCalls/SC_FUNC.h" Module sysPrxForUser("sysPrxForUser", -1); void sys_initialize_tls() { sysPrxForUser.Log("sys_initialize_tls()"); } s64 sys_process_atexitspawn() { sysPrxForUser.Log("sys_process_atexitspawn()"); return 0; } s64 sys_process_at_Exitspawn() { sysPrxForUser.Log("sys_process_at_Exitspawn"); return 0; } s64 sys_prx_register_library() { sysPrxForUser.Error("sys_prx_register_library()"); return 0; } s64 sys_prx_exitspawn_with_level() { sysPrxForUser.Log("sys_prx_exitspawn_with_level()"); return 0; } s64 sys_strlen(u32 addr) { const wxString& str = Memory.ReadString(addr); sysPrxForUser.Log("sys_strlen(0x%x - \"%s\")", addr, str); return str.Len(); } struct _sysPrxForUser_init { _sysPrxForUser_init() { sysPrxForUser.AddFunc(0x744680a2, bind_func(sys_initialize_tls)); sysPrxForUser.AddFunc(0x2f85c0ef, bind_func(sys_lwmutex_create)); sysPrxForUser.AddFunc(0xc3476d0c, bind_func(sys_lwmutex_destroy)); sysPrxForUser.AddFunc(0x1573dc3f, bind_func(sys_lwmutex_lock)); sysPrxForUser.AddFunc(0xaeb78725, bind_func(sys_lwmutex_trylock)); sysPrxForUser.AddFunc(0x1bc200f4, bind_func(sys_lwmutex_unlock)); sysPrxForUser.AddFunc(0x8461e528, bind_func(sys_time_get_system_time)); sysPrxForUser.AddFunc(0xe6f2c1e7, bind_func(sys_process_exit)); sysPrxForUser.AddFunc(0x2c847572, bind_func(sys_process_atexitspawn)); sysPrxForUser.AddFunc(0x96328741, bind_func(sys_process_at_Exitspawn)); sysPrxForUser.AddFunc(0x24a1ea07, bind_func(sys_ppu_thread_create)); sysPrxForUser.AddFunc(0x350d454e, bind_func(sys_ppu_thread_get_id)); sysPrxForUser.AddFunc(0xaff080a4, bind_func(sys_ppu_thread_exit)); sysPrxForUser.AddFunc(0x42b23552, bind_func(sys_prx_register_library)); sysPrxForUser.AddFunc(0xa2c7ba64, bind_func(sys_prx_exitspawn_with_level)); sysPrxForUser.AddFunc(0x2d36462b, bind_func(sys_strlen)); sysPrxForUser.AddFunc(0x35168520, bind_func(sys_heap_malloc)); //sysPrxForUser.AddFunc(0xaede4b03, bind_func(sys_heap_free>); //sysPrxForUser.AddFunc(0x8a561d92, bind_func(sys_heap_delete_heap>); sysPrxForUser.AddFunc(0xb2fcf2c8, bind_func(sys_heap_create_heap)); } } sysPrxForUser_init;