file_romfs.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #include "common/common_types.h"
  5. #include "core/file_sys/file_romfs.h"
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////
  7. // FileSys namespace
  8. namespace FileSys {
  9. File_RomFS::File_RomFS() {
  10. }
  11. File_RomFS::~File_RomFS() {
  12. }
  13. /**
  14. * Read data from the file
  15. * @param offset Offset in bytes to start reading data from
  16. * @param length Length in bytes of data to read from file
  17. * @param buffer Buffer to read data into
  18. * @return Number of bytes read
  19. */
  20. size_t File_RomFS::Read(const u64 offset, const u32 length, u8* buffer) const {
  21. return -1;
  22. }
  23. /**
  24. * Write data to the file
  25. * @param offset Offset in bytes to start writing data to
  26. * @param length Length in bytes of data to write to file
  27. * @param buffer Buffer to write data from
  28. * @param flush The flush parameters (0 == do not flush)
  29. * @return Number of bytes written
  30. */
  31. size_t File_RomFS::Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const {
  32. return -1;
  33. }
  34. /**
  35. * Get the size of the file in bytes
  36. * @return Size of the file in bytes
  37. */
  38. size_t File_RomFS::GetSize() const {
  39. return -1;
  40. }
  41. /**
  42. * Close the file
  43. * @return true if the file closed correctly
  44. */
  45. bool File_RomFS::Close() const {
  46. return false;
  47. }
  48. } // namespace FileSys