diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-03 03:50:57 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-03 03:50:57 +0100 |
commit | 031237e52cb1a32eb2a3ba37115170913e33e5dc (patch) | |
tree | 1d46509e07d20e2be2c25157b89b1061a7f75ba7 /src/core/file_sys/file_romfs.cpp | |
parent | Merge pull request #392 from lioncash/sm (diff) | |
parent | IVFCArchive: Use a critical log to notify of invalid operations. (diff) | |
download | yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar.gz yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar.bz2 yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar.lz yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar.xz yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.tar.zst yuzu-031237e52cb1a32eb2a3ba37115170913e33e5dc.zip |
Diffstat (limited to 'src/core/file_sys/file_romfs.cpp')
-rw-r--r-- | src/core/file_sys/file_romfs.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/file_sys/file_romfs.cpp b/src/core/file_sys/file_romfs.cpp deleted file mode 100644 index 7467d6d31..000000000 --- a/src/core/file_sys/file_romfs.cpp +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2014 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include "common/common_types.h" - -#include "core/file_sys/file_romfs.h" -#include "core/file_sys/archive_romfs.h" - -//////////////////////////////////////////////////////////////////////////////////////////////////// -// FileSys namespace - -namespace FileSys { - -bool File_RomFS::Open() { - return true; -} - -size_t File_RomFS::Read(const u64 offset, const u32 length, u8* buffer) const { - LOG_TRACE(Service_FS, "called offset=%llu, length=%d", offset, length); - memcpy(buffer, &archive->raw_data[(u32)offset], length); - return length; -} - -size_t File_RomFS::Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const { - LOG_WARNING(Service_FS, "Attempted to write to ROMFS."); - return 0; -} - -size_t File_RomFS::GetSize() const { - return sizeof(u8) * archive->raw_data.size(); -} - -bool File_RomFS::SetSize(const u64 size) const { - LOG_WARNING(Service_FS, "Attempted to set the size of ROMFS"); - return false; -} - -bool File_RomFS::Close() const { - return false; -} - -} // namespace FileSys |