mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
18 lines
506 B
C
18 lines
506 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
#include "filetype.h"
|
|
|
|
#define IMG_RAMDRV 100 // just so there are no conflicts with file type defines
|
|
|
|
int ReadImageBytes(u8* buffer, u32 offset, u32 count);
|
|
int WriteImageBytes(const u8* buffer, u32 offset, u32 count);
|
|
int ReadImageSectors(u8* buffer, u32 sector, u32 count);
|
|
int WriteImageSectors(const u8* buffer, u32 sector, u32 count);
|
|
int SyncImage(void);
|
|
|
|
u64 GetMountSize(void);
|
|
u32 GetMountState(void);
|
|
u32 MountRamDrive(void);
|
|
u32 MountImage(const char* path);
|