diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2 SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz |
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h b/libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h index 09f3501..599a709 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CReadFile.h | |||
@@ -1,64 +1,64 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __C_READ_FILE_H_INCLUDED__ | 5 | #ifndef __C_READ_FILE_H_INCLUDED__ |
6 | #define __C_READ_FILE_H_INCLUDED__ | 6 | #define __C_READ_FILE_H_INCLUDED__ |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include "IReadFile.h" | 9 | #include "IReadFile.h" |
10 | #include "irrString.h" | 10 | #include "irrString.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | 14 | ||
15 | namespace io | 15 | namespace io |
16 | { | 16 | { |
17 | 17 | ||
18 | /*! | 18 | /*! |
19 | Class for reading a real file from disk. | 19 | Class for reading a real file from disk. |
20 | */ | 20 | */ |
21 | class CReadFile : public IReadFile | 21 | class CReadFile : public IReadFile |
22 | { | 22 | { |
23 | public: | 23 | public: |
24 | 24 | ||
25 | CReadFile(const io::path& fileName); | 25 | CReadFile(const io::path& fileName); |
26 | 26 | ||
27 | virtual ~CReadFile(); | 27 | virtual ~CReadFile(); |
28 | 28 | ||
29 | //! returns how much was read | 29 | //! returns how much was read |
30 | virtual s32 read(void* buffer, u32 sizeToRead); | 30 | virtual s32 read(void* buffer, u32 sizeToRead); |
31 | 31 | ||
32 | //! changes position in file, returns true if successful | 32 | //! changes position in file, returns true if successful |
33 | virtual bool seek(long finalPos, bool relativeMovement = false); | 33 | virtual bool seek(long finalPos, bool relativeMovement = false); |
34 | 34 | ||
35 | //! returns size of file | 35 | //! returns size of file |
36 | virtual long getSize() const; | 36 | virtual long getSize() const; |
37 | 37 | ||
38 | //! returns if file is open | 38 | //! returns if file is open |
39 | virtual bool isOpen() const | 39 | virtual bool isOpen() const |
40 | { | 40 | { |
41 | return File != 0; | 41 | return File != 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | //! returns where in the file we are. | 44 | //! returns where in the file we are. |
45 | virtual long getPos() const; | 45 | virtual long getPos() const; |
46 | 46 | ||
47 | //! returns name of file | 47 | //! returns name of file |
48 | virtual const io::path& getFileName() const; | 48 | virtual const io::path& getFileName() const; |
49 | 49 | ||
50 | private: | 50 | private: |
51 | 51 | ||
52 | //! opens the file | 52 | //! opens the file |
53 | void openFile(); | 53 | void openFile(); |
54 | 54 | ||
55 | FILE* File; | 55 | FILE* File; |
56 | long FileSize; | 56 | long FileSize; |
57 | io::path Filename; | 57 | io::path Filename; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | } // end namespace io | 60 | } // end namespace io |
61 | } // end namespace irr | 61 | } // end namespace irr |
62 | 62 | ||
63 | #endif | 63 | #endif |
64 | 64 | ||