diff options
Diffstat (limited to 'src/fs/virtfs/virtfszip.h')
-rw-r--r-- | src/fs/virtfs/virtfszip.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fs/virtfs/virtfszip.h b/src/fs/virtfs/virtfszip.h index 0dd8d1f82..fbae5a54e 100644 --- a/src/fs/virtfs/virtfszip.h +++ b/src/fs/virtfs/virtfszip.h @@ -28,7 +28,7 @@ namespace VirtFs { -struct VirtFile; +struct File; struct VirtList; struct VirtFsFuncs; struct VirtFsEntry; @@ -58,31 +58,31 @@ namespace VirtFsZip const std::string &dirName, bool &isDirFlag); void freeList(VirtList *restrict const handle); - VirtFile *openRead(VirtFsEntry *restrict const entry, - const std::string &filename); - VirtFile *openWrite(VirtFsEntry *restrict const entry, - const std::string &filename); - VirtFile *openAppend(VirtFsEntry *restrict const entry, - const std::string &filename); - VirtFile *openReadInternal(const std::string &filename); + File *openRead(VirtFsEntry *restrict const entry, + const std::string &filename); + File *openWrite(VirtFsEntry *restrict const entry, + const std::string &filename); + File *openAppend(VirtFsEntry *restrict const entry, + const std::string &filename); + File *openReadInternal(const std::string &filename); bool getRealDir(VirtFsEntry *restrict const entry, const std::string &filename, const std::string &dirName, std::string &realDir); - int64_t read(VirtFile *restrict const handle, + int64_t read(File *restrict const handle, void *restrict const buffer, const uint32_t objSize, const uint32_t objCount); - int64_t write(VirtFile *restrict const file, + int64_t write(File *restrict const file, const void *restrict const buffer, const uint32_t objSize, const uint32_t objCount); - int close(VirtFile *restrict const file); - int64_t fileLength(VirtFile *restrict const file); - int64_t tell(VirtFile *restrict const file); - int seek(VirtFile *restrict const file, + int close(File *restrict const file); + int64_t fileLength(File *restrict const file); + int64_t tell(File *restrict const file); + int seek(File *restrict const file, const uint64_t pos); - int eof(VirtFile *restrict const file); + int eof(File *restrict const file); const char *loadFile(VirtFsEntry *restrict const entry, const std::string &restrict fileName, int &restrict fileSize); |