mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
24
src/Cafe/OS/libs/nn_temp/nn_temp.cpp
Normal file
24
src/Cafe/OS/libs/nn_temp/nn_temp.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "Cafe/OS/common/OSCommon.h"
|
||||
|
||||
namespace nn::temp
|
||||
{
|
||||
uint64 tempIdGenerator = 0xdc1b04bd961f2c04ULL;
|
||||
|
||||
void nnTempExport_TEMPCreateAndInitTempDir(PPCInterpreter_t* hCPU)
|
||||
{
|
||||
forceLogDebug_printf("TEMPCreateAndInitTempDir(...) - placeholder");
|
||||
|
||||
// create random temp id
|
||||
memory_writeU64Slow(hCPU->gpr[5], tempIdGenerator);
|
||||
tempIdGenerator = (tempIdGenerator << 3) | (tempIdGenerator >> 61);
|
||||
tempIdGenerator += 0x56e28bd5f4ULL;
|
||||
|
||||
osLib_returnFromFunction(hCPU, 0);
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
osLib_addFunction("nn_temp", "TEMPCreateAndInitTempDir", nnTempExport_TEMPCreateAndInitTempDir);
|
||||
}
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue