diff options
| author | 2014-06-22 15:40:21 -0400 | |
|---|---|---|
| committer | 2014-06-24 19:30:08 -0400 | |
| commit | a7f1c544909ee1034356666e04bea3a4b4609a95 (patch) | |
| tree | 678febb505b765cc337f4ca96180758a4c295536 /src/core/loader/loader.h | |
| parent | MemMap: Added a WriteBlock function to write a buffer of data to memory. (diff) | |
| download | yuzu-a7f1c544909ee1034356666e04bea3a4b4609a95.tar.gz yuzu-a7f1c544909ee1034356666e04bea3a4b4609a95.tar.xz yuzu-a7f1c544909ee1034356666e04bea3a4b4609a95.zip | |
Loader: Refactored loading functions to only read data from binary if called.
NCCH: Updated LoadExec to use Memory::WriteBlock function to load binary code.
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 002af1f60..95f16fcb1 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -51,37 +51,37 @@ public: | |||
| 51 | * @param error ResultStatus result of function | 51 | * @param error ResultStatus result of function |
| 52 | * @return Reference to code buffer | 52 | * @return Reference to code buffer |
| 53 | */ | 53 | */ |
| 54 | virtual const std::vector<u8>& GetCode(ResultStatus& error) const { | 54 | virtual const std::vector<u8>& ReadCode(ResultStatus& error) const { |
| 55 | error = ResultStatus::ErrorNotImplemented; | 55 | error = ResultStatus::ErrorNotImplemented; |
| 56 | return code; | 56 | return code; |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | /** | 59 | /** |
| 60 | * Get the icon (typically .icon section) of the application | 60 | * Get the icon (typically icon section) of the application |
| 61 | * @param error ResultStatus result of function | 61 | * @param error ResultStatus result of function |
| 62 | * @return Reference to icon buffer | 62 | * @return Reference to icon buffer |
| 63 | */ | 63 | */ |
| 64 | virtual const std::vector<u8>& GetIcon(ResultStatus& error) const { | 64 | virtual const std::vector<u8>& ReadIcon(ResultStatus& error) const { |
| 65 | error = ResultStatus::ErrorNotImplemented; | 65 | error = ResultStatus::ErrorNotImplemented; |
| 66 | return icon; | 66 | return icon; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | /** | 69 | /** |
| 70 | * Get the banner (typically .banner section) of the application | 70 | * Get the banner (typically banner section) of the application |
| 71 | * @param error ResultStatus result of function | 71 | * @param error ResultStatus result of function |
| 72 | * @return Reference to banner buffer | 72 | * @return Reference to banner buffer |
| 73 | */ | 73 | */ |
| 74 | virtual const std::vector<u8>& GetBanner(ResultStatus& error) const { | 74 | virtual const std::vector<u8>& ReadBanner(ResultStatus& error) const { |
| 75 | error = ResultStatus::ErrorNotImplemented; | 75 | error = ResultStatus::ErrorNotImplemented; |
| 76 | return banner; | 76 | return banner; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | /** | 79 | /** |
| 80 | * Get the logo (typically .logo section) of the application | 80 | * Get the logo (typically logo section) of the application |
| 81 | * @param error ResultStatus result of function | 81 | * @param error ResultStatus result of function |
| 82 | * @return Reference to logo buffer | 82 | * @return Reference to logo buffer |
| 83 | */ | 83 | */ |
| 84 | virtual const std::vector<u8>& GetLogo(ResultStatus& error) const { | 84 | virtual const std::vector<u8>& ReadLogo(ResultStatus& error) const { |
| 85 | error = ResultStatus::ErrorNotImplemented; | 85 | error = ResultStatus::ErrorNotImplemented; |
| 86 | return logo; | 86 | return logo; |
| 87 | } | 87 | } |
| @@ -91,7 +91,7 @@ public: | |||
| 91 | * @param error ResultStatus result of function | 91 | * @param error ResultStatus result of function |
| 92 | * @return Reference to RomFs archive buffer | 92 | * @return Reference to RomFs archive buffer |
| 93 | */ | 93 | */ |
| 94 | virtual const std::vector<u8>& GetRomFs(ResultStatus error) const { | 94 | virtual const std::vector<u8>& ReadRomFS(ResultStatus& error) const { |
| 95 | error = ResultStatus::ErrorNotImplemented; | 95 | error = ResultStatus::ErrorNotImplemented; |
| 96 | return romfs; | 96 | return romfs; |
| 97 | } | 97 | } |