mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
21 lines
757 B
C
21 lines
757 B
C
#pragma once
|
|
|
|
#include "common.h"
|
|
#include "ff.h"
|
|
|
|
#define fvx_tell(fp) ((fp)->fptr)
|
|
#define fvx_size(fp) ((fp)->obj.objsize)
|
|
|
|
// wrapper functions for ff.h + sddata.h
|
|
// incomplete(!) extension to FatFS to support a common interface for virtual and FAT
|
|
FRESULT fvx_open (FIL* fp, const TCHAR* path, BYTE mode);
|
|
FRESULT fvx_read (FIL* fp, void* buff, UINT btr, UINT* br);
|
|
FRESULT fvx_write (FIL* fp, const void* buff, UINT btw, UINT* bw);
|
|
FRESULT fvx_close (FIL* fp);
|
|
FRESULT fvx_lseek (FIL* fp, FSIZE_t ofs);
|
|
FRESULT fvx_sync (FIL* fp);
|
|
|
|
// additional quick read / write functions
|
|
FRESULT fvx_qread (const TCHAR* path, void* buff, FSIZE_t ofs, UINT btr, UINT* br);
|
|
FRESULT fvx_qwrite (const TCHAR* path, const void* buff, FSIZE_t ofs, UINT btw, UINT* bw);
|