diff options
| author | 2017-10-09 21:39:32 -0400 | |
|---|---|---|
| committer | 2017-10-09 21:39:32 -0400 | |
| commit | 23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6 (patch) | |
| tree | 168e7793c6d68eb8b195850a056443ea98f430a9 /src/core/loader/nro.h | |
| parent | loader: Add support for NRO, as well as various fixes and shared linker. (diff) | |
| download | yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.gz yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.tar.xz yuzu-23ce4f5afc66eb04a7aafc4f89685b8109b8d5c6.zip | |
loader: Various improvements for NSO/NRO loaders.
Diffstat (limited to 'src/core/loader/nro.h')
| -rw-r--r-- | src/core/loader/nro.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h index d145b68d5..c3c7622fd 100644 --- a/src/core/loader/nro.h +++ b/src/core/loader/nro.h | |||
| @@ -17,9 +17,8 @@ namespace Loader { | |||
| 17 | /// Loads an NRO file | 17 | /// Loads an NRO file |
| 18 | class AppLoader_NRO final : public AppLoader, Linker { | 18 | class AppLoader_NRO final : public AppLoader, Linker { |
| 19 | public: | 19 | public: |
| 20 | AppLoader_NRO(FileUtil::IOFile&& file, std::string filename, std::string filepath) | 20 | AppLoader_NRO(FileUtil::IOFile&& file, std::string filepath) |
| 21 | : AppLoader(std::move(file)), filename(std::move(filename)), filepath(std::move(filepath)) { | 21 | : AppLoader(std::move(file)), filepath(std::move(filepath)) {} |
| 22 | } | ||
| 23 | 22 | ||
| 24 | /** | 23 | /** |
| 25 | * Returns the type of the file | 24 | * Returns the type of the file |
| @@ -35,10 +34,8 @@ public: | |||
| 35 | ResultStatus Load() override; | 34 | ResultStatus Load() override; |
| 36 | 35 | ||
| 37 | private: | 36 | private: |
| 38 | VAddr GetEntryPoint(VAddr load_base) const; | ||
| 39 | bool LoadNro(const std::string& path, VAddr load_base); | 37 | bool LoadNro(const std::string& path, VAddr load_base); |
| 40 | 38 | ||
| 41 | std::string filename; | ||
| 42 | std::string filepath; | 39 | std::string filepath; |
| 43 | }; | 40 | }; |
| 44 | 41 | ||