diff options
| author | 2021-07-20 13:10:05 +0800 | |
|---|---|---|
| committer | 2021-07-20 01:10:05 -0400 | |
| commit | 07073734ed3785d1dee487f0c898a645fbd5f03c (patch) | |
| tree | e7c72b615b7a551cc1fb8a6a336bce60e5a0d314 /src/core/loader/loader.h | |
| parent | Merge pull request #6580 from ReinUsesLisp/xfb-radv (diff) | |
| download | yuzu-07073734ed3785d1dee487f0c898a645fbd5f03c.tar.gz yuzu-07073734ed3785d1dee487f0c898a645fbd5f03c.tar.xz yuzu-07073734ed3785d1dee487f0c898a645fbd5f03c.zip | |
file_sys: Support load game collection (#6582)
Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index edc8bb257..7b1bac3f7 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -227,6 +227,17 @@ public: | |||
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | /** | 229 | /** |
| 230 | * Get the program ids of the application | ||
| 231 | * | ||
| 232 | * @param[out] out_program_ids Reference to store program ids into | ||
| 233 | * | ||
| 234 | * @return ResultStatus result of function | ||
| 235 | */ | ||
| 236 | virtual ResultStatus ReadProgramIds(std::vector<u64>& out_program_ids) { | ||
| 237 | return ResultStatus::ErrorNotImplemented; | ||
| 238 | } | ||
| 239 | |||
| 240 | /** | ||
| 230 | * Get the RomFS of the application | 241 | * Get the RomFS of the application |
| 231 | * Since the RomFS can be huge, we return a file reference instead of copying to a buffer | 242 | * Since the RomFS can be huge, we return a file reference instead of copying to a buffer |
| 232 | * | 243 | * |
| @@ -324,6 +335,6 @@ protected: | |||
| 324 | * @return the best loader for this file. | 335 | * @return the best loader for this file. |
| 325 | */ | 336 | */ |
| 326 | std::unique_ptr<AppLoader> GetLoader(Core::System& system, FileSys::VirtualFile file, | 337 | std::unique_ptr<AppLoader> GetLoader(Core::System& system, FileSys::VirtualFile file, |
| 327 | std::size_t program_index = 0); | 338 | u64 program_id = 0, std::size_t program_index = 0); |
| 328 | 339 | ||
| 329 | } // namespace Loader | 340 | } // namespace Loader |