diff options
| author | 2018-01-20 14:55:54 -0500 | |
|---|---|---|
| committer | 2018-01-20 14:59:44 -0500 | |
| commit | 023aef053c96c92c9ea15d067f7d2cb7150585d6 (patch) | |
| tree | 6b8a4c0dc9aae92ff172a2715969b8551e9d14b1 /src/core/loader/nso.cpp | |
| parent | nso: Remove code specific to directory loading. (diff) | |
| download | yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.gz yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.tar.xz yuzu-023aef053c96c92c9ea15d067f7d2cb7150585d6.zip | |
loader: Refactor to also pass filepath into IdentifyType.
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 77b4f93eb..c80f2a100 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #include <vector> | 5 | #include <vector> |
| 6 | #include <lz4.h> | 6 | #include <lz4.h> |
| 7 | |||
| 8 | #include "common/common_funcs.h" | 7 | #include "common/common_funcs.h" |
| 9 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 10 | #include "common/swap.h" | 9 | #include "common/swap.h" |
| @@ -47,7 +46,7 @@ struct ModHeader { | |||
| 47 | }; | 46 | }; |
| 48 | static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size."); | 47 | static_assert(sizeof(ModHeader) == 0x1c, "ModHeader has incorrect size."); |
| 49 | 48 | ||
| 50 | FileType AppLoader_NSO::IdentifyType(FileUtil::IOFile& file) { | 49 | FileType AppLoader_NSO::IdentifyType(FileUtil::IOFile& file, const std::string&) { |
| 51 | u32 magic = 0; | 50 | u32 magic = 0; |
| 52 | file.Seek(0, SEEK_SET); | 51 | file.Seek(0, SEEK_SET); |
| 53 | if (1 != file.ReadArray<u32>(&magic, 1)) { | 52 | if (1 != file.ReadArray<u32>(&magic, 1)) { |