mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-12-02 07:02:18 +00:00
28 lines
599 B
C
28 lines
599 B
C
#include <switch/arm/atomics.h>
|
|
#include <switch/services/sm.h>
|
|
#include <switch/types.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "set_ext.h"
|
|
#include "service_guard.h"
|
|
|
|
static Service g_setcalSrv;
|
|
|
|
NX_GENERATE_SERVICE_GUARD(setcal);
|
|
|
|
Result _setcalInitialize() {
|
|
return smGetService(&g_setcalSrv, "set:cal");
|
|
}
|
|
|
|
void _setcalCleanup() {
|
|
serviceClose(&g_setcalSrv);
|
|
}
|
|
|
|
Result setcalGetEticketDeviceKey(void *key)
|
|
{
|
|
return serviceDispatch(&g_setcalSrv, 21,
|
|
.buffer_attrs = { SfBufferAttr_HipcMapAlias | SfBufferAttr_Out },
|
|
.buffers = { { key, 0x244 } },
|
|
);
|
|
}
|