diff options
| author | 2019-03-19 20:45:55 -0400 | |
|---|---|---|
| committer | 2019-03-19 21:31:59 -0400 | |
| commit | ab00552118eeba8330362a54ab8748916b5a5c65 (patch) | |
| tree | 74e48c8b16e9a979a1bfcae22239411bb6f7fc79 /src | |
| parent | Merge pull request #2258 from lioncash/am (diff) | |
| download | yuzu-ab00552118eeba8330362a54ab8748916b5a5c65.tar.gz yuzu-ab00552118eeba8330362a54ab8748916b5a5c65.tar.xz yuzu-ab00552118eeba8330362a54ab8748916b5a5c65.zip | |
loader: Remove Linker inheritance from NRO and NSO loaders
Neither the NRO or NSO loaders actually make use of the functions or
members provided by the Linker interface, so we can just remove the
inheritance altogether.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/loader/nro.h | 4 | ||||
| -rw-r--r-- | src/core/loader/nso.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/loader/nro.h b/src/core/loader/nro.h index 013d629c0..85b0ed644 100644 --- a/src/core/loader/nro.h +++ b/src/core/loader/nro.h | |||
| @@ -4,10 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <memory> | ||
| 7 | #include <string> | 8 | #include <string> |
| 8 | #include <vector> | 9 | #include <vector> |
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "core/loader/linker.h" | ||
| 11 | #include "core/loader/loader.h" | 11 | #include "core/loader/loader.h" |
| 12 | 12 | ||
| 13 | namespace FileSys { | 13 | namespace FileSys { |
| @@ -21,7 +21,7 @@ class Process; | |||
| 21 | namespace Loader { | 21 | namespace Loader { |
| 22 | 22 | ||
| 23 | /// Loads an NRO file | 23 | /// Loads an NRO file |
| 24 | class AppLoader_NRO final : public AppLoader, Linker { | 24 | class AppLoader_NRO final : public AppLoader { |
| 25 | public: | 25 | public: |
| 26 | explicit AppLoader_NRO(FileSys::VirtualFile file); | 26 | explicit AppLoader_NRO(FileSys::VirtualFile file); |
| 27 | ~AppLoader_NRO() override; | 27 | ~AppLoader_NRO() override; |
diff --git a/src/core/loader/nso.h b/src/core/loader/nso.h index 135b6ea5a..167c8a694 100644 --- a/src/core/loader/nso.h +++ b/src/core/loader/nso.h | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | #include <optional> | 7 | #include <optional> |
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "common/swap.h" | ||
| 9 | #include "core/file_sys/patch_manager.h" | 10 | #include "core/file_sys/patch_manager.h" |
| 10 | #include "core/loader/linker.h" | ||
| 11 | #include "core/loader/loader.h" | 11 | #include "core/loader/loader.h" |
| 12 | 12 | ||
| 13 | namespace Kernel { | 13 | namespace Kernel { |
| @@ -26,7 +26,7 @@ struct NSOArgumentHeader { | |||
| 26 | static_assert(sizeof(NSOArgumentHeader) == 0x20, "NSOArgumentHeader has incorrect size."); | 26 | static_assert(sizeof(NSOArgumentHeader) == 0x20, "NSOArgumentHeader has incorrect size."); |
| 27 | 27 | ||
| 28 | /// Loads an NSO file | 28 | /// Loads an NSO file |
| 29 | class AppLoader_NSO final : public AppLoader, Linker { | 29 | class AppLoader_NSO final : public AppLoader { |
| 30 | public: | 30 | public: |
| 31 | explicit AppLoader_NSO(FileSys::VirtualFile file); | 31 | explicit AppLoader_NSO(FileSys::VirtualFile file); |
| 32 | 32 | ||