sceLibm, sceLibKernel drafts

This commit is contained in:
Nekotekina 2014-11-05 19:07:34 +03:00
parent c5858de567
commit 7a2cd15173
9 changed files with 648 additions and 18 deletions

View file

@ -10,16 +10,31 @@ namespace sce_libstdcxx_func
void __aeabi_unwind_cpp_pr0()
{
sceLibstdcxx.Todo(__FUNCTION__);
Emu.Pause();
}
void __aeabi_unwind_cpp_pr1()
{
sceLibstdcxx.Todo(__FUNCTION__);
Emu.Pause();
}
void __aeabi_unwind_cpp_pr2()
{
sceLibstdcxx.Todo(__FUNCTION__);
Emu.Pause();
}
}
#define REG_FUNC(nid, name) reg_psv_func(nid, module, #name, &sce_libstdcxx_func::name)
psv_log_base& sceLibstdcxx = []() -> psv_log_base&
{
psv_log_base* module = new psv_log_base("sceLibstdcxx");
#define REG_FUNC(nid, name) reg_psv_func(nid, module, &sce_libstdcxx_func::name)
psv_log_base* module = new psv_log_base("SceLibstdcxx");
REG_FUNC(0x173E7421, __aeabi_unwind_cpp_pr0);
REG_FUNC(0x3C78DDE3, __aeabi_unwind_cpp_pr1);
REG_FUNC(0xF95BDD36, __aeabi_unwind_cpp_pr2);
//REG_FUNC(0x52B0C625, std::bad_typeid::what() const);
//REG_FUNC(0x64D7D074, std::bad_typeid::_Doraise() const);
@ -364,8 +379,6 @@ psv_log_base& sceLibstdcxx = []() -> psv_log_base&
//REG_FUNC(0xE7889A5B, _Unwind_VRS_Get);
//REG_FUNC(0xF106D050, _Unwind_VRS_Pop);
//REG_FUNC(0x91CDA2F9, _Unwind_VRS_Set);
//REG_FUNC(0x3C78DDE3, __aeabi_unwind_cpp_pr1);
//REG_FUNC(0xF95BDD36, __aeabi_unwind_cpp_pr2);
//REG_FUNC(0x8C93EFDA, __cxa_allocate_exception);
//REG_FUNC(0x6165EE89, __cxa_begin_catch);
//REG_FUNC(0x5D74285C, __cxa_begin_cleanup);