| | |
| | |
| | |
| |
|
| | #pragma once |
| |
|
| | #include <memory> |
| | #include <string> |
| | #include "common/common_types.h" |
| | #include "core/loader/loader.h" |
| |
|
| | namespace Loader { |
| |
|
| | |
| | class AppLoader_THREEDSX final : public AppLoader { |
| | public: |
| | AppLoader_THREEDSX(Core::System& system_, FileUtil::IOFile&& file, const std::string& filename, |
| | const std::string& filepath) |
| | : AppLoader(system_, std::move(file)), filename(filename), filepath(filepath) {} |
| |
|
| | |
| | |
| | |
| | |
| | |
| | static FileType IdentifyType(FileUtil::IOFile& file); |
| |
|
| | FileType GetFileType() override { |
| | return IdentifyType(file); |
| | } |
| |
|
| | ResultStatus Load(std::shared_ptr<Kernel::Process>& process) override; |
| |
|
| | ResultStatus ReadIcon(std::vector<u8>& buffer) override; |
| |
|
| | ResultStatus ReadRomFS(std::shared_ptr<FileSys::RomFSReader>& romfs_file) override; |
| |
|
| | private: |
| | std::string filename; |
| | std::string filepath; |
| | }; |
| |
|
| | } |
| |
|