mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
24 lines
444 B
C
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));
|