file_romfs.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. * Open the file
  15. * @return true if the file opened correctly
  16. */
  17. bool File_RomFS::Open() {
  18. return false;
  19. }
  20. /**
  21. * Read data from the file
  22. * @param offset Offset in bytes to start reading data from
  23. * @param length Length in bytes of data to read from file
  24. * @param buffer Buffer to read data into
  25. * @return Number of bytes read
  26. */
  27. size_t File_RomFS::Read(const u64 offset, const u32 length, u8* buffer) const {
  28. return -1;
  29. }
  30. /**
  31. * Write data to the file
  32. * @param offset Offset in bytes to start writing data to
  33. * @param length Length in bytes of data to write to file
  34. * @param flush The flush parameters (0 == do not flush)
  35. * @param buffer Buffer to read data from
  36. * @return Number of bytes written
  37. */
  38. size_t File_RomFS::Write(const u64 offset, const u32 length, const u32 flush, const u8* buffer) const {
  39. return -1;
  40. }
  41. /**
  42. * Get the size of the file in bytes
  43. * @return Size of the file in bytes
  44. */
  45. size_t File_RomFS::GetSize() const {
  46. return -1;
  47. }
  48. /**
  49. * Set the size of the file in bytes
  50. * @param size New size of the file
  51. * @return true if successful
  52. */
  53. bool File_RomFS::SetSize(const u64 size) const {
  54. return false;
  55. }
  56. /**
  57. * Close the file
  58. * @return true if the file closed correctly
  59. */
  60. bool File_RomFS::Close() const {
  61. return false;
  62. }
  63. } // namespace FileSys