| 154 | } |
| 155 | |
| 156 | Error FileAccessPatchedGDRE::get_error() const { |
| 157 | if (last_error != OK) { |
| 158 | return last_error; |
| 159 | } |
| 160 | |
| 161 | if (patched_file.is_valid()) { |
| 162 | Error inner_error = patched_file->get_error(); |
| 163 | if (inner_error != OK) { |
| 164 | return inner_error; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | return last_error; |
| 169 | } |
| 170 | |
| 171 | bool FileAccessPatchedGDRE::store_buffer(const uint8_t *p_src, uint64_t p_length) { |
| 172 | if (!_try_apply_patch()) { |