diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2023-09-27 07:45:37 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 21:45:37 -0700 |
| commit | 9b4c375741a77037358e28e4f431bbc5adde94f7 (patch) | |
| tree | 2d7b27a796f0671995d35842dfce76a71162d829 /include/JSystem | |
| parent | 8873f7d3598a52cdacbe85563dd83e7411aef0b5 (diff) | |
JGadget binary OK (#1944)
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/JGadget/binary.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/JSystem/JGadget/binary.h b/include/JSystem/JGadget/binary.h index 59a3604282..26d29d1fbf 100644 --- a/include/JSystem/JGadget/binary.h +++ b/include/JSystem/JGadget/binary.h @@ -50,6 +50,14 @@ struct TParse_header_block { bool parse(const void* ppData_inout, u32 a2) { return parse_next(&ppData_inout, a2); } + + bool checkNext(const void** ptrLocation, u32* headerEnd, u32 idx) { + bool checkNext = false; + if (parseHeader_next(ptrLocation, headerEnd, idx)) { + checkNext = true; + } + return checkNext; + } }; template <typename T> |
