mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-05 23:59:58 +00:00
724c19a307
Eliminates variable shadowing cases across all the loaders to bring us closer to enabling variable shadowing as an error in core.
42 lines
874 B
C++
42 lines
874 B
C++
// 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;
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
static FileType IdentifyType(const FileSys::VirtualFile& in_file);
|
|
|
|
FileType GetFileType() const override;
|
|
|
|
LoadResult Load(Kernel::Process& process, Core::System& system) override;
|
|
|
|
private:
|
|
std::unique_ptr<FileSys::KIP> kip;
|
|
};
|
|
|
|
} // namespace Loader
|