diff options
| author | 2016-05-18 22:06:50 +0100 | |
|---|---|---|
| committer | 2016-05-21 17:09:59 +0100 | |
| commit | 314ce5e505aca066ad4d0385be46d7e8de9f6dfb (patch) | |
| tree | e71b47815cf82006ea78b9820b5df5f99f8380b9 /src/core/loader/loader.h | |
| parent | Loader: Add a GetFileType method to get the type of a loaded file (diff) | |
| download | yuzu-314ce5e505aca066ad4d0385be46d7e8de9f6dfb.tar.gz yuzu-314ce5e505aca066ad4d0385be46d7e8de9f6dfb.tar.xz yuzu-314ce5e505aca066ad4d0385be46d7e8de9f6dfb.zip | |
CitraQt: Simplify the game list loader code
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 08bab84e5..39aedfeeb 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -203,20 +203,10 @@ protected: | |||
| 203 | extern const std::initializer_list<Kernel::AddressMapping> default_address_mappings; | 203 | extern const std::initializer_list<Kernel::AddressMapping> default_address_mappings; |
| 204 | 204 | ||
| 205 | /** | 205 | /** |
| 206 | * Get a loader for a file with a specific type | ||
| 207 | * @param file The file to load | ||
| 208 | * @param type The type of the file | ||
| 209 | * @param filename the file name (without path) | ||
| 210 | * @param filepath the file full path (with name) | ||
| 211 | * @return std::unique_ptr<AppLoader> a pointer to a loader object; nullptr for unsupported type | ||
| 212 | */ | ||
| 213 | std::unique_ptr<AppLoader> GetLoader(FileUtil::IOFile&& file, FileType type, const std::string& filename, const std::string& filepath); | ||
| 214 | |||
| 215 | /** | ||
| 216 | * Identifies a bootable file and return a suitable loader | 206 | * Identifies a bootable file and return a suitable loader |
| 217 | * @param filename String filename of bootable file | 207 | * @param filename String filename of bootable file |
| 218 | * @return best loader for this file | 208 | * @return best loader for this file |
| 219 | */ | 209 | */ |
| 220 | std::unique_ptr<AppLoader> GetFileLoader(const std::string& filename); | 210 | std::unique_ptr<AppLoader> GetLoader(const std::string& filename); |
| 221 | 211 | ||
| 222 | } // namespace | 212 | } // namespace |