mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Renamed File:eof to File:isEOF (closes issue #683.)
This commit is contained in:
@@ -212,7 +212,7 @@ inline bool test_eof(File *, PHYSFS_File *file)
|
||||
}
|
||||
#endif
|
||||
|
||||
bool File::eof()
|
||||
bool File::isEOF()
|
||||
{
|
||||
return file == nullptr || test_eof(this, file);
|
||||
}
|
||||
|
||||
@@ -56,20 +56,20 @@ public:
|
||||
// Implements love::filesystem::File.
|
||||
using love::filesystem::File::read;
|
||||
using love::filesystem::File::write;
|
||||
bool open(Mode mode);
|
||||
bool close();
|
||||
bool isOpen() const;
|
||||
int64 getSize();
|
||||
virtual int64 read(void *dst, int64 size);
|
||||
bool write(const void *data, int64 size);
|
||||
bool flush();
|
||||
bool eof();
|
||||
int64 tell();
|
||||
bool seek(uint64 pos);
|
||||
bool setBuffer(BufferMode bufmode, int64 size);
|
||||
BufferMode getBuffer(int64 &size) const;
|
||||
Mode getMode() const;
|
||||
const std::string &getFilename() const;
|
||||
bool open(Mode mode) override;
|
||||
bool close() override;
|
||||
bool isOpen() const override;
|
||||
int64 getSize() override;
|
||||
virtual int64 read(void *dst, int64 size) override;
|
||||
bool write(const void *data, int64 size) override;
|
||||
bool flush() override;
|
||||
bool isEOF() override;
|
||||
int64 tell() override;
|
||||
bool seek(uint64 pos) override;
|
||||
bool setBuffer(BufferMode bufmode, int64 size) override;
|
||||
BufferMode getBuffer(int64 &size) const override;
|
||||
Mode getMode() const override;
|
||||
const std::string &getFilename() const override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user