romfs_factory.cpp 691 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include <algorithm>
  5. #include <memory>
  6. #include "common/common_types.h"
  7. #include "common/logging/log.h"
  8. #include "core/file_sys/romfs_factory.h"
  9. namespace FileSys {
  10. RomFSFactory::RomFSFactory(Loader::AppLoader& app_loader) {
  11. // Load the RomFS from the app
  12. if (Loader::ResultStatus::Success != app_loader.ReadRomFS(file)) {
  13. LOG_ERROR(Service_FS, "Unable to read RomFS!");
  14. }
  15. }
  16. ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id) {
  17. // TODO(DarkLordZach): Use title id.
  18. return MakeResult<VirtualFile>(file);
  19. }
  20. } // namespace FileSys