2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/ARMv7/PSVFuncList.h"
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceDbg.h"
|
2015-01-29 22:42:53 +01:00
|
|
|
|
|
|
|
|
s32 sceDbgSetMinimumLogLevel(s32 minimumLogLevel)
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceDbgSetBreakOnErrorState(SceDbgBreakOnErrorState state)
|
|
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-07-26 02:53:26 +02:00
|
|
|
s32 sceDbgAssertionHandler(vm::cptr<char> pFile, s32 line, b8 stop, vm::cptr<char> pComponent, vm::cptr<char> pMessage, armv7_va_args_t va_args)
|
2015-01-29 22:42:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
2015-07-09 02:33:15 +02:00
|
|
|
s32 sceDbgLoggingHandler(vm::cptr<char> pFile, s32 line, s32 severity, vm::cptr<char> pComponent, vm::cptr<char> pMessage, armv7_va_args_t va_args)
|
2015-01-29 22:42:53 +01:00
|
|
|
{
|
2015-07-01 19:09:26 +02:00
|
|
|
throw EXCEPTION("");
|
2015-01-29 22:42:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-01-29 16:48:05 +01:00
|
|
|
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceDbg, #name, name)
|
|
|
|
|
|
|
|
|
|
psv_log_base sceDbg("SceDbg", []()
|
|
|
|
|
{
|
|
|
|
|
sceDbg.on_load = nullptr;
|
|
|
|
|
sceDbg.on_unload = nullptr;
|
|
|
|
|
sceDbg.on_stop = nullptr;
|
2015-06-21 01:04:01 +02:00
|
|
|
sceDbg.on_error = nullptr;
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-01-29 22:42:53 +01:00
|
|
|
REG_FUNC(0x941622FA, sceDbgSetMinimumLogLevel);
|
|
|
|
|
REG_FUNC(0x1AF3678B, sceDbgAssertionHandler);
|
|
|
|
|
REG_FUNC(0x6605AB19, sceDbgLoggingHandler);
|
|
|
|
|
REG_FUNC(0xED4A00BA, sceDbgSetBreakOnErrorState);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|