fbi-i18n-zh/source/hax/waithax.h
2016-12-13 17:05:12 -08:00

24 lines
444 B
C

#pragma once
#include <3ds/types.h>
#define KSEMAPHORE_SIZE (0x2C)
#define KSEMAPHORE_VTABLESIZE (0x16 * sizeof(void*))
typedef struct KSemaphore {
void **vtable;
u32 refCount;
u32 __a;
u32 __b;
u32 __c;
u32 __ievent[3];
u32 count;
u32 maxCount;
void *owner;
} __attribute__((packed)) KSemaphore;
bool waithax_run(void);
void waithax_cleanup(void);
void waithax_debug(bool enabled);
void waithax_backdoor(void (*method)(void));