From 0be5c03176236fe602d49c32717a6f3af0a55465 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 27 Sep 2014 19:21:48 +0000 Subject: 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. --- src/core/file_sys/file_romfs.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/file_sys/file_romfs.cpp') diff --git a/src/core/file_sys/file_romfs.cpp b/src/core/file_sys/file_romfs.cpp index 3ef616e08..b55708df4 100644 --- a/src/core/file_sys/file_romfs.cpp +++ b/src/core/file_sys/file_romfs.cpp @@ -17,6 +17,14 @@ File_RomFS::File_RomFS() { 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 -- cgit v1.2.3