16 static bool irrstUsed =
false;
20 if(irrstUsed)
return 0;
72 tick0 = *((
u64*)&sharedmem_section[0]);
73 tick1 = *((
u64*)&sharedmem_section[2]);
75 if(tick0==tick1 || tick0<0 || tick1<0)
return 1;
100 if(irrstUsed)
return kHeld;
106 if (pos) *pos = csPos;
112 cmdbuf[0]=0x00010000;
117 if(outMemHandle)*outMemHandle=cmdbuf[3];
118 if(outEventHandle)*outEventHandle=cmdbuf[4];
126 cmdbuf[0]=0x00020080;
139 cmdbuf[0]=0x00030000;
s32 svcClearEvent(Handle handle)
s32 svcCloseHandle(Handle handle)
s32 svcWaitSynchronization(Handle handle, s64 nanoseconds)
Result srvGetServiceHandle(Handle *out, const char *name)
void irrstWaitForEvent(bool nextEvent)
s32 svcUnmapMemoryBlock(Handle memblock, u32 addr)
Result IRRST_Initialize(u32 unk1, u8 unk2)
u32 * getThreadCommandBuffer(void)
void irrstCstickRead(circlePosition *pos)
Result irrstInit(u32 *sharedMem)
Result IRRST_Shutdown(void)
u32 irrstCheckSectionUpdateTime(vu32 *sharedmem_section, u32 id)
#define IRRST_SHAREDMEM_DEFAULT
Result IRRST_GetHandles(Handle *outMemHandle, Handle *outEventHandle)
s32 svcMapMemoryBlock(Handle memblock, u32 addr, MemPerm my_perm, MemPerm other_perm)
s32 svcSendSyncRequest(Handle session)