diff options
| author | 2016-05-17 23:06:33 +0100 | |
|---|---|---|
| committer | 2016-05-21 17:09:56 +0100 | |
| commit | 8fc9c0312660aa8b74a1251f02dfedc84da5b96b (patch) | |
| tree | 490fc1f96a96654b59c933c864aa792161399cbb /src/core/loader/loader.h | |
| parent | Appveyor: Restore working directory after test_script (#1835) (diff) | |
| download | yuzu-8fc9c0312660aa8b74a1251f02dfedc84da5b96b.tar.gz yuzu-8fc9c0312660aa8b74a1251f02dfedc84da5b96b.tar.xz yuzu-8fc9c0312660aa8b74a1251f02dfedc84da5b96b.zip | |
Loader, Frontends: Refactor loader creation and game loading
This allows frontends to keep a single loader and use it multiple times
e.g. for code loading and SMDH parsing.
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 9d3e9ed3b..4a4bd7c77 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -207,10 +207,10 @@ extern const std::initializer_list<Kernel::AddressMapping> default_address_mappi | |||
| 207 | std::unique_ptr<AppLoader> GetLoader(FileUtil::IOFile&& file, FileType type, const std::string& filename, const std::string& filepath); | 207 | std::unique_ptr<AppLoader> GetLoader(FileUtil::IOFile&& file, FileType type, const std::string& filename, const std::string& filepath); |
| 208 | 208 | ||
| 209 | /** | 209 | /** |
| 210 | * Identifies and loads a bootable file | 210 | * Identifies a bootable file and return a suitable loader |
| 211 | * @param filename String filename of bootable file | 211 | * @param filename String filename of bootable file |
| 212 | * @return ResultStatus result of function | 212 | * @return best loader for this file |
| 213 | */ | 213 | */ |
| 214 | ResultStatus LoadFile(const std::string& filename); | 214 | std::unique_ptr<AppLoader> GetFileLoader(const std::string& filename); |
| 215 | 215 | ||
| 216 | } // namespace | 216 | } // namespace |