diff options
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 9719d30d5..b392bf544 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -18,17 +18,17 @@ | |||
| 18 | namespace Loader { | 18 | namespace Loader { |
| 19 | 19 | ||
| 20 | const std::initializer_list<Kernel::AddressMapping> default_address_mappings = { | 20 | const std::initializer_list<Kernel::AddressMapping> default_address_mappings = { |
| 21 | { 0x1FF50000, 0x8000, true }, // part of DSP RAM | 21 | {0x1FF50000, 0x8000, true}, // part of DSP RAM |
| 22 | { 0x1FF70000, 0x8000, true }, // part of DSP RAM | 22 | {0x1FF70000, 0x8000, true}, // part of DSP RAM |
| 23 | { 0x1F000000, 0x600000, false }, // entire VRAM | 23 | {0x1F000000, 0x600000, false}, // entire VRAM |
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | FileType IdentifyFile(FileUtil::IOFile& file) { | 26 | FileType IdentifyFile(FileUtil::IOFile& file) { |
| 27 | FileType type; | 27 | FileType type; |
| 28 | 28 | ||
| 29 | #define CHECK_TYPE(loader) \ | 29 | #define CHECK_TYPE(loader) \ |
| 30 | type = AppLoader_##loader::IdentifyType(file); \ | 30 | type = AppLoader_##loader::IdentifyType(file); \ |
| 31 | if (FileType::Error != type) \ | 31 | if (FileType::Error != type) \ |
| 32 | return type; | 32 | return type; |
| 33 | 33 | ||
| 34 | CHECK_TYPE(THREEDSX) | 34 | CHECK_TYPE(THREEDSX) |
| @@ -100,7 +100,8 @@ const char* GetFileTypeString(FileType type) { | |||
| 100 | * @return std::unique_ptr<AppLoader> a pointer to a loader object; nullptr for unsupported type | 100 | * @return std::unique_ptr<AppLoader> a pointer to a loader object; nullptr for unsupported type |
| 101 | */ | 101 | */ |
| 102 | static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileType type, | 102 | static std::unique_ptr<AppLoader> GetFileLoader(FileUtil::IOFile&& file, FileType type, |
| 103 | const std::string& filename, const std::string& filepath) { | 103 | const std::string& filename, |
| 104 | const std::string& filepath) { | ||
| 104 | switch (type) { | 105 | switch (type) { |
| 105 | 106 | ||
| 106 | // 3DSX file format. | 107 | // 3DSX file format. |