diff options
author | Arisotura <thetotalworm@gmail.com> | 2022-10-02 16:47:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 16:47:57 +0200 |
commit | 3f4573574a581da849408ebc376ca97d5e82bc7d (patch) | |
tree | e6144cc9cfcfe383faee847e54b7864f963a9373 /src/Platform.h | |
parent | c1c4cbc838bcc017ea325458112582e949274f30 (diff) |
actual DSi camera support (#1520)
basically feeding something that isn't a fixed stripe pattern, and emulating enough of the camera hardware to make this work
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Platform.h b/src/Platform.h index 56f2c2e..f2997ef 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -147,6 +147,8 @@ void Mutex_Lock(Mutex* mutex); void Mutex_Unlock(Mutex* mutex); bool Mutex_TryLock(Mutex* mutex); +void Sleep(u64 usecs); + // functions called when the NDS or GBA save files need to be written back to storage // savedata and savelen are always the entire save memory buffer and its full length @@ -177,7 +179,15 @@ void LAN_DeInit(); int LAN_SendPacket(u8* data, int len); int LAN_RecvPacket(u8* data); -void Sleep(u64 usecs); + +// interface for camera emulation +// camera numbers: +// 0 = DSi outer camera +// 1 = DSi inner camera +// other values reserved for future camera addon emulation +void Camera_Start(int num); +void Camera_Stop(int num); +void Camera_CaptureFrame(int num, u32* frame, int width, int height, bool yuv); } |