2014-02-16 02:51:04 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/SysCalls/SysCalls.h"
|
|
|
|
|
#include "Emu/SysCalls/SC_FUNC.h"
|
|
|
|
|
|
|
|
|
|
#include "sceNp.h"
|
|
|
|
|
|
2014-02-24 17:03:47 +01:00
|
|
|
void sceNp_init();
|
|
|
|
|
Module sceNp(0x0016, sceNp_init);
|
2014-02-16 02:51:04 +01:00
|
|
|
|
2014-02-28 04:48:20 +01:00
|
|
|
int sceNpManagerGetStatus(mem32_t status)
|
|
|
|
|
{
|
|
|
|
|
sceNp.Log("sceNpManagerGetStatus(status_addr=0x%x)", status.GetAddr());
|
|
|
|
|
|
|
|
|
|
// TODO: Check if sceNpInit() was called, if not return SCE_NP_ERROR_NOT_INITIALIZED
|
|
|
|
|
if (!status.IsGood())
|
|
|
|
|
return SCE_NP_ERROR_INVALID_ARGUMENT;
|
|
|
|
|
|
|
|
|
|
// TODO: Support different statuses
|
|
|
|
|
status = SCE_NP_MANAGER_STATUS_OFFLINE;
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-24 17:03:47 +01:00
|
|
|
void sceNp_init()
|
2014-02-16 02:51:04 +01:00
|
|
|
{
|
2014-02-28 04:48:20 +01:00
|
|
|
sceNp.AddFunc(0xa7bff757, sceNpManagerGetStatus);
|
2014-02-16 02:51:04 +01:00
|
|
|
}
|