pineapple-src/src/core/loader/kip.h

42 lines
875 B
C
Raw Normal View History

2020-12-28 10:15:37 -05:00
// 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 Core {
class System;
}
namespace FileSys {
class KIP;
}
namespace Loader {
class AppLoader_KIP final : public AppLoader {
public:
explicit AppLoader_KIP(FileSys::VirtualFile file);
~AppLoader_KIP() override;
/**
2021-04-27 23:28:56 -04:00
* Identifies whether or not the given file is a KIP.
*
* @param in_file The file to identify.
*
* @return FileType::KIP if found, or FileType::Error if unknown.
2020-12-28 10:15:37 -05:00
*/
2021-04-27 23:28:56 -04:00
static FileType IdentifyType(const FileSys::VirtualFile& in_file);
2020-12-28 10:15:37 -05:00
FileType GetFileType() const override;
2021-05-02 02:03:43 -04:00
LoadResult Load(Kernel::KProcess& process, Core::System& system) override;
2020-12-28 10:15:37 -05:00
private:
std::unique_ptr<FileSys::KIP> kip;
};
} // namespace Loader