diff options
Diffstat (limited to 'src/FATIO.cpp')
-rw-r--r-- | src/FATIO.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FATIO.cpp b/src/FATIO.cpp index 3e91fba..233014e 100644 --- a/src/FATIO.cpp +++ b/src/FATIO.cpp @@ -20,13 +20,15 @@ #include "fatfs/ff.h" #include "fatfs/diskio.h" +using namespace melonDS; + static ff_disk_read_cb ReadCb; static ff_disk_write_cb WriteCb; static LBA_t SectorCount; static DSTATUS Status = STA_NOINIT | STA_NODISK; -void ff_disk_open(const ff_disk_read_cb& readcb, const ff_disk_write_cb& writecb, LBA_t seccnt) +void melonDS::ff_disk_open(const ff_disk_read_cb& readcb, const ff_disk_write_cb& writecb, LBA_t seccnt) { if (!readcb) return; @@ -39,7 +41,7 @@ void ff_disk_open(const ff_disk_read_cb& readcb, const ff_disk_write_cb& writecb else Status &= ~STA_PROTECT; } -void ff_disk_close() +void melonDS::ff_disk_close() { ReadCb = nullptr; WriteCb = nullptr; |