3dsx.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2014 Dolphin Emulator Project / Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include "common/common_types.h"
  7. #include "core/loader/loader.h"
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////
  9. // Loader namespace
  10. namespace Loader {
  11. /// Loads an 3DSX file
  12. class AppLoader_THREEDSX final : public AppLoader {
  13. public:
  14. AppLoader_THREEDSX(FileUtil::IOFile&& file, std::string filename)
  15. : AppLoader(std::move(file)), filename(std::move(filename)) {}
  16. /**
  17. * Returns the type of the file
  18. * @param file FileUtil::IOFile open file
  19. * @return FileType found, or FileType::Error if this loader doesn't know it
  20. */
  21. static FileType IdentifyType(FileUtil::IOFile& file);
  22. /**
  23. * Load the bootable file
  24. * @return ResultStatus result of function
  25. */
  26. ResultStatus Load() override;
  27. private:
  28. std::string filename;
  29. };
  30. } // namespace Loader