diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-20 18:55:28 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-20 18:55:28 +0100 |
commit | 205170fa623efdd5eafb0c957d728babe4836f45 (patch) | |
tree | 26dd9e4c7ae9cc7a3bb09f42c942c4e47c9cc06f /src/core/loader/3dsx.h | |
parent | Merge pull request #496 from lioncash/warn (diff) | |
parent | Loader: Clean up the ELF AppLoader. (diff) | |
download | yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar.gz yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar.bz2 yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar.lz yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar.xz yuzu-205170fa623efdd5eafb0c957d728babe4836f45.tar.zst yuzu-205170fa623efdd5eafb0c957d728babe4836f45.zip |
Diffstat (limited to 'src/core/loader/3dsx.h')
-rw-r--r-- | src/core/loader/3dsx.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h index da8836662..a11667400 100644 --- a/src/core/loader/3dsx.h +++ b/src/core/loader/3dsx.h @@ -15,18 +15,20 @@ namespace Loader { /// Loads an 3DSX file class AppLoader_THREEDSX final : public AppLoader { public: - AppLoader_THREEDSX(const std::string& filename); - ~AppLoader_THREEDSX() override; + AppLoader_THREEDSX(std::unique_ptr<FileUtil::IOFile>&& file) : AppLoader(std::move(file)) { } + + /** + * Returns the type of the file + * @param file FileUtil::IOFile open file + * @return FileType found, or FileType::Error if this loader doesn't know it + */ + static FileType IdentifyType(FileUtil::IOFile& file); /** * Load the bootable file * @return ResultStatus result of function */ ResultStatus Load() override; - -private: - std::string filename; - bool is_loaded; }; } // namespace Loader |