add methods to access file based emummc

This commit is contained in:
Christoph Baumann
2025-05-07 16:42:36 +02:00
parent 39b74dd50d
commit 942e7defe3
2 changed files with 240 additions and 0 deletions

14
bdk/storage/emummc.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef EMUMMC_H
#define EMUMMC_H
#include <bdk.h>
int emummc_storage_file_base_set_partition(u32 partition);
int emummc_storage_file_based_init(const char *path);
void emummc_storage_file_based_end();
int emummc_storage_file_based_write(u32 sector, u32 num_sectors, void *buf);
int emummc_storage_file_based_read(u32 sector, u32 num_sectors, void *buf);
u32 emummc_storage_file_based_get_total_size(const char *path);
sdmmc_storage_t *emummc_get_storage();
#endif