diff options
author | bunnei <ericbunnie@gmail.com> | 2014-06-27 21:33:23 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-06-27 23:49:01 +0200 |
commit | d8da707bb90c233d5e815a508bea3473e6e50afa (patch) | |
tree | dd9056678f602276691bb4613ea38c7c2ac9126f /src/core/loader/loader.h | |
parent | FS: Added stubbed code to intercept and decode file system service functions. (diff) | |
download | yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.gz yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.bz2 yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.lz yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.xz yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.tar.zst yuzu-d8da707bb90c233d5e815a508bea3473e6e50afa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/loader.h | 54 |
1 files changed, 21 insertions, 33 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 95f16fcb1..7891c1ed7 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h @@ -48,60 +48,48 @@ public: /** * Get the code (typically .code section) of the application - * @param error ResultStatus result of function - * @return Reference to code buffer + * @param buffer Reference to buffer to store data + * @return ResultStatus result of function */ - virtual const std::vector<u8>& ReadCode(ResultStatus& error) const { - error = ResultStatus::ErrorNotImplemented; - return code; + virtual ResultStatus ReadCode(std::vector<u8>& buffer) { + return ResultStatus::ErrorNotImplemented; } /** * Get the icon (typically icon section) of the application - * @param error ResultStatus result of function - * @return Reference to icon buffer + * @param buffer Reference to buffer to store data + * @return ResultStatus result of function */ - virtual const std::vector<u8>& ReadIcon(ResultStatus& error) const { - error = ResultStatus::ErrorNotImplemented; - return icon; + virtual ResultStatus ReadIcon(std::vector<u8>& buffer) { + return ResultStatus::ErrorNotImplemented; } /** * Get the banner (typically banner section) of the application - * @param error ResultStatus result of function - * @return Reference to banner buffer + * @param buffer Reference to buffer to store data + * @return ResultStatus result of function */ - virtual const std::vector<u8>& ReadBanner(ResultStatus& error) const { - error = ResultStatus::ErrorNotImplemented; - return banner; + virtual ResultStatus ReadBanner(std::vector<u8>& buffer) { + return ResultStatus::ErrorNotImplemented; } /** * Get the logo (typically logo section) of the application - * @param error ResultStatus result of function - * @return Reference to logo buffer + * @param buffer Reference to buffer to store data + * @return ResultStatus result of function */ - virtual const std::vector<u8>& ReadLogo(ResultStatus& error) const { - error = ResultStatus::ErrorNotImplemented; - return logo; + virtual ResultStatus ReadLogo(std::vector<u8>& buffer) { + return ResultStatus::ErrorNotImplemented; } /** - * Get the RomFs archive of the application - * @param error ResultStatus result of function - * @return Reference to RomFs archive buffer + * Get the RomFS of the application + * @param buffer Reference to buffer to store data + * @return ResultStatus result of function */ - virtual const std::vector<u8>& ReadRomFS(ResultStatus& error) const { - error = ResultStatus::ErrorNotImplemented; - return romfs; + virtual ResultStatus ReadRomFS(std::vector<u8>& buffer) { + return ResultStatus::ErrorNotImplemented; } - -protected: - std::vector<u8> code; ///< ExeFS .code section - std::vector<u8> icon; ///< ExeFS .icon section - std::vector<u8> banner; ///< ExeFS .banner section - std::vector<u8> logo; ///< ExeFS .logo section - std::vector<u8> romfs; ///< RomFs archive }; /** |