Upgrade love.filesystem to use 64-bit numbers for dealing with file sizes, thus (hopefully) enabling lovers to work with very large files (based on Boolsheet's patch in issue #179)

This commit is contained in:
Bill Meltsner
2011-12-22 02:45:11 -06:00
parent ce682a45c6
commit 7378a90101
8 changed files with 65 additions and 49 deletions
+7 -7
View File
@@ -67,14 +67,14 @@ namespace physfs
// Implements love::filesystem::File.
bool open(Mode mode);
bool close();
unsigned int getSize();
Data * read(int size = ALL);
int read(void * dst, int size);
bool write(const void * data, int size);
bool write(const Data * data, int size = ALL);
int64 getSize();
Data * read(int64 size = ALL);
int64 read(void * dst, int64 size);
bool write(const void * data, int64 size);
bool write(const Data * data, int64 size = ALL);
bool eof();
int tell();
bool seek(int pos);
int64 tell();
bool seek(uint64 pos);
Mode getMode();
std::string getFilename() const;
std::string getExtension() const;