diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-05 06:21:17 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-05 06:21:17 +0200 |
commit | c3548967b1fbc818a495dda72ef135b71b44e002 (patch) | |
tree | 15f7acb1e34d77bfd99e07156c053055eb0be75b /src/core/loader/kip.h | |
parent | program_metadata: Add function to load meta from raw parameters (diff) | |
download | yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar.gz yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar.bz2 yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar.lz yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar.xz yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.tar.zst yuzu-c3548967b1fbc818a495dda72ef135b71b44e002.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/kip.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/loader/kip.h b/src/core/loader/kip.h new file mode 100644 index 000000000..12ca40269 --- /dev/null +++ b/src/core/loader/kip.h @@ -0,0 +1,35 @@ +// Copyright 2019 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/loader/loader.h" + +namespace FileSys { +class KIP; +} + +namespace Loader { + +class AppLoader_KIP final : public AppLoader { +public: + explicit AppLoader_KIP(FileSys::VirtualFile file); + ~AppLoader_KIP() override; + + /** + * Returns the type of the file + * @param file std::shared_ptr<VfsFile> open file + * @return FileType found, or FileType::Error if this loader doesn't know it + */ + static FileType IdentifyType(const FileSys::VirtualFile& file); + + FileType GetFileType() const override; + + LoadResult Load(Kernel::Process& process) override; + +private: + std::unique_ptr<FileSys::KIP> kip; +}; + +} // namespace Loader |