diff options
| author | 2014-07-04 13:11:09 -0400 | |
|---|---|---|
| committer | 2014-07-04 20:37:49 -0400 | |
| commit | 2c62d9255160b7302942d536c9c990b86c7fb907 (patch) | |
| tree | 65496725f1557dd58f866a0313012ba4ed5f6aa3 /src/core/loader/loader.h | |
| parent | Qt: Updated open dialog to include NCCH formats. (diff) | |
| download | yuzu-2c62d9255160b7302942d536c9c990b86c7fb907.tar.gz yuzu-2c62d9255160b7302942d536c9c990b86c7fb907.tar.xz yuzu-2c62d9255160b7302942d536c9c990b86c7fb907.zip | |
Loader: Updated read methods to be const
- Required "file" handle to be made local and explicitly opened/closed as needed
Diffstat (limited to 'src/core/loader/loader.h')
| -rw-r--r-- | src/core/loader/loader.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 7891c1ed7..c27b5b4b6 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -51,7 +51,7 @@ public: | |||
| 51 | * @param buffer Reference to buffer to store data | 51 | * @param buffer Reference to buffer to store data |
| 52 | * @return ResultStatus result of function | 52 | * @return ResultStatus result of function |
| 53 | */ | 53 | */ |
| 54 | virtual ResultStatus ReadCode(std::vector<u8>& buffer) { | 54 | virtual ResultStatus ReadCode(std::vector<u8>& buffer) const { |
| 55 | return ResultStatus::ErrorNotImplemented; | 55 | return ResultStatus::ErrorNotImplemented; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| @@ -60,7 +60,7 @@ public: | |||
| 60 | * @param buffer Reference to buffer to store data | 60 | * @param buffer Reference to buffer to store data |
| 61 | * @return ResultStatus result of function | 61 | * @return ResultStatus result of function |
| 62 | */ | 62 | */ |
| 63 | virtual ResultStatus ReadIcon(std::vector<u8>& buffer) { | 63 | virtual ResultStatus ReadIcon(std::vector<u8>& buffer) const { |
| 64 | return ResultStatus::ErrorNotImplemented; | 64 | return ResultStatus::ErrorNotImplemented; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| @@ -69,7 +69,7 @@ public: | |||
| 69 | * @param buffer Reference to buffer to store data | 69 | * @param buffer Reference to buffer to store data |
| 70 | * @return ResultStatus result of function | 70 | * @return ResultStatus result of function |
| 71 | */ | 71 | */ |
| 72 | virtual ResultStatus ReadBanner(std::vector<u8>& buffer) { | 72 | virtual ResultStatus ReadBanner(std::vector<u8>& buffer) const { |
| 73 | return ResultStatus::ErrorNotImplemented; | 73 | return ResultStatus::ErrorNotImplemented; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| @@ -78,7 +78,7 @@ public: | |||
| 78 | * @param buffer Reference to buffer to store data | 78 | * @param buffer Reference to buffer to store data |
| 79 | * @return ResultStatus result of function | 79 | * @return ResultStatus result of function |
| 80 | */ | 80 | */ |
| 81 | virtual ResultStatus ReadLogo(std::vector<u8>& buffer) { | 81 | virtual ResultStatus ReadLogo(std::vector<u8>& buffer) const { |
| 82 | return ResultStatus::ErrorNotImplemented; | 82 | return ResultStatus::ErrorNotImplemented; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| @@ -87,7 +87,7 @@ public: | |||
| 87 | * @param buffer Reference to buffer to store data | 87 | * @param buffer Reference to buffer to store data |
| 88 | * @return ResultStatus result of function | 88 | * @return ResultStatus result of function |
| 89 | */ | 89 | */ |
| 90 | virtual ResultStatus ReadRomFS(std::vector<u8>& buffer) { | 90 | virtual ResultStatus ReadRomFS(std::vector<u8>& buffer) const { |
| 91 | return ResultStatus::ErrorNotImplemented; | 91 | return ResultStatus::ErrorNotImplemented; |
| 92 | } | 92 | } |
| 93 | }; | 93 | }; |