mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-16 12:08:52 +00: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>
38 lines
915 B
C++
38 lines
915 B
C++
#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)
|
|
{
|
|
cemuLog_logDebug(LogType::Force, "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);
|
|
}
|
|
}
|