diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-09-27 19:21:48 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2014-10-06 19:58:42 +0200 |
commit | 0be5c03176236fe602d49c32717a6f3af0a55465 (patch) | |
tree | 61573d4ed66ac5e7f46968ef871b3acf9f0c5b99 /src/core/file_sys/file_romfs.cpp | |
parent | 23c2fbfc7a900ae3c9f8791a87c5ad672f5778fe (diff) |
FileSys: split the constructor into an Open method, in order to notify the opener something went wrong.
Kernel: Return an invalid handle to OpenFile when it failed to open.
Diffstat (limited to 'src/core/file_sys/file_romfs.cpp')
-rw-r--r-- | src/core/file_sys/file_romfs.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/file_romfs.cpp b/src/core/file_sys/file_romfs.cpp index 3ef616e0..b55708df 100644 --- a/src/core/file_sys/file_romfs.cpp +++ b/src/core/file_sys/file_romfs.cpp @@ -18,6 +18,14 @@ File_RomFS::~File_RomFS() { } /** + * Open the file + * @return true if the file opened correctly + */ +bool File_RomFS::Open() { + return false; +} + +/** * Read data from the file * @param offset Offset in bytes to start reading data from * @param length Length in bytes of data to read from file |