elf.h 950 B

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