mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41: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
37
src/Cafe/OS/libs/nlibnss/nlibnss.cpp
Normal file
37
src/Cafe/OS/libs/nlibnss/nlibnss.cpp
Normal file
|
@ -0,0 +1,37 @@
|
|||
#include "Cafe/OS/common/OSCommon.h"
|
||||
#include "nlibnss.h"
|
||||
|
||||
namespace nlibnss
|
||||
{
|
||||
int NSSExportDeviceCertChain(uint8* uknPtr1, uint32be* uknLength1, uint8* uknPtr2, uint32be* uknLength2, uint32 uknR7, uint32 uknR8)
|
||||
{
|
||||
forceLogDebug_printf("NSSExportDeviceCertChain called but not implemented");
|
||||
cemu_assert_debug(false);
|
||||
|
||||
// uknR3 = pointer (can be null, in which case only length is written)
|
||||
// uknR4 = length
|
||||
// uknR5 = pointer2
|
||||
// uknR6 = length2
|
||||
// uknR7 = some integer
|
||||
// uknR8 = ???
|
||||
|
||||
*uknLength1 = 0x100;
|
||||
*uknLength2 = 0x100;
|
||||
|
||||
|
||||
return 0; // failed
|
||||
}
|
||||
|
||||
int NSSSignatureGetSignatureLength()
|
||||
{
|
||||
// parameters are unknown
|
||||
cemu_assert_debug(false);
|
||||
return 0x1C; // signature length
|
||||
}
|
||||
|
||||
void load()
|
||||
{
|
||||
cafeExportRegister("nlibnss", NSSSignatureGetSignatureLength, LogType::Placeholder);
|
||||
cafeExportRegister("nlibnss", NSSExportDeviceCertChain, LogType::Placeholder);
|
||||
}
|
||||
}
|
6
src/Cafe/OS/libs/nlibnss/nlibnss.h
Normal file
6
src/Cafe/OS/libs/nlibnss/nlibnss.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
namespace nlibnss
|
||||
{
|
||||
void load();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue