mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 21:11:17 +12:00
* script changes - no arguments * script changes with 2 arguments * script changes with > 2 arguments * script conversions with 1 argument - pt. 1 * script conversions with 1 argument - pt. 2 * script conversions with 1 argument - pt. 3 * script conversions with 1 argument - pt. 4 * script conversions with 1 argument - pt. 5 Pointer format hunting * Fixed pointer format * script conversions with 1 argument - final * fixed conversion in non utf-8 file * fixed conversion with capital letter * actually fixed conversion with capital letter * fixed another capital lettering issue * Added conversions with LR removed * removed LR from logs * Converted logs that previously contained LR * converted log that originally specified string length * fixed log with commas in main text * fixed multi-line log * Fixed more logs with commas in main text * Fixed unformatted pointer * added conversion with float value * converted lines with double parameters * converted missed line * corrected argument formatting Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> * Fixed misspellings of "unhandled" unhandeled -> unhandled Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com> --------- Co-authored-by: Crementif <26669564+Crementif@users.noreply.github.com>
27 lines
764 B
C++
27 lines
764 B
C++
#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)
|
|
cemuLog_logDebug(LogType::Force, "nn_ndm.GetDaemonStatus(...) - hack");
|
|
// 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);
|
|
}
|
|
}
|
|
}
|