mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
27
src/Cafe/OS/libs/nn_ndm/nn_ndm.cpp
Normal file
27
src/Cafe/OS/libs/nn_ndm/nn_ndm.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "nn_ndm.h"
|
||||
#include "Cafe/OS/common/OSCommon.h"
|
||||
|
||||
namespace nn
|
||||
{
|
||||
namespace ndm
|
||||
{
|
||||
void nnNdmExport_GetDaemonStatus(PPCInterpreter_t* hCPU)
|
||||
{
|
||||
// parameters:
|
||||
// r3 pointer to status integer (out)
|
||||
// r4 daemon name (integer)
|
||||
forceLogDebug_printf("nn_ndm.GetDaemonStatus(...) - hack\n");
|
||||
// status codes:
|
||||
// 1 - running? Download Manager (scope.rpx) expects this to return 1 (or zero). Otherwise it will display downloads as disabled
|
||||
memory_writeU32(hCPU->gpr[3], 1);
|
||||
// 2 - running?
|
||||
// 3 - suspended?
|
||||
osLib_returnFromFunction(hCPU, 0);
|
||||
}
|
||||
|
||||
void load()
|
||||
{
|
||||
osLib_addFunction("nn_ndm", "GetDaemonStatus__Q2_2nn3ndmFPQ4_2nn3ndm7IDaemon6StatusQ4_2nn3ndm4Cafe10DaemonName", nnNdmExport_GetDaemonStatus);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue