aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/loader/loader.h
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-06-22 15:40:21 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-06-24 19:30:08 -0400
commita7f1c544909ee1034356666e04bea3a4b4609a95 (patch)
tree678febb505b765cc337f4ca96180758a4c295536 /src/core/loader/loader.h
parent6aebd4ac9808c189c25185af8fb245c6d282bad0 (diff)
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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index 002af1f6..95f16fcb 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -51,37 +51,37 @@ public:
* @param error ResultStatus result of function
* @return Reference to code buffer
*/
- virtual const std::vector<u8>& GetCode(ResultStatus& error) const {
+ virtual const std::vector<u8>& ReadCode(ResultStatus& error) const {
error = ResultStatus::ErrorNotImplemented;
return code;
}
/**
- * Get the icon (typically .icon section) of the application
+ * Get the icon (typically icon section) of the application
* @param error ResultStatus result of function
* @return Reference to icon buffer
*/
- virtual const std::vector<u8>& GetIcon(ResultStatus& error) const {
+ virtual const std::vector<u8>& ReadIcon(ResultStatus& error) const {
error = ResultStatus::ErrorNotImplemented;
return icon;
}
/**
- * Get the banner (typically .banner section) of the application
+ * Get the banner (typically banner section) of the application
* @param error ResultStatus result of function
* @return Reference to banner buffer
*/
- virtual const std::vector<u8>& GetBanner(ResultStatus& error) const {
+ virtual const std::vector<u8>& ReadBanner(ResultStatus& error) const {
error = ResultStatus::ErrorNotImplemented;
return banner;
}
/**
- * Get the logo (typically .logo section) of the application
+ * Get the logo (typically logo section) of the application
* @param error ResultStatus result of function
* @return Reference to logo buffer
*/
- virtual const std::vector<u8>& GetLogo(ResultStatus& error) const {
+ virtual const std::vector<u8>& ReadLogo(ResultStatus& error) const {
error = ResultStatus::ErrorNotImplemented;
return logo;
}
@@ -91,7 +91,7 @@ public:
* @param error ResultStatus result of function
* @return Reference to RomFs archive buffer
*/
- virtual const std::vector<u8>& GetRomFs(ResultStatus error) const {
+ virtual const std::vector<u8>& ReadRomFS(ResultStatus& error) const {
error = ResultStatus::ErrorNotImplemented;
return romfs;
}