diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2025-12-09 23:44:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 13:44:27 -0800 |
| commit | cfded01caa7d70978e4d9e6806cd348755fc465a (patch) | |
| tree | 001badf61adf1242f3b8adcb28c9cb026ebfd4d9 /include/JSystem | |
| parent | 2447d5a02a7b2dc1f4caa4a87b1bddb9fd70c2b5 (diff) | |
Match resource.cpp with a small fake match (#2936)
Diffstat (limited to 'include/JSystem')
| -rw-r--r-- | include/JSystem/JGadget/linklist.h | 10 | ||||
| -rw-r--r-- | include/JSystem/JMessage/data.h | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/JSystem/JGadget/linklist.h b/include/JSystem/JGadget/linklist.h index 0ecc12669b..1d5d46a804 100644 --- a/include/JSystem/JGadget/linklist.h +++ b/include/JSystem/JGadget/linklist.h @@ -243,6 +243,8 @@ struct TLinkList : TNodeLinkList { return iterator(TNodeLinkList::Find(Element_toNode(element))); } void Remove(T* element) { TNodeLinkList::Remove(Element_toNode(element)); } + + typedef T value_type; }; template <typename T, int I> @@ -311,10 +313,10 @@ struct TEnumerator2 { Iterator end; }; -template <typename T, int I> -struct TContainerEnumerator : public TEnumerator2<typename TLinkList<T, I>::iterator, T> { - inline TContainerEnumerator(TLinkList<T, I>* param_0) - : TEnumerator2<typename TLinkList<T, I>::iterator, T>(param_0->begin(), param_0->end()) {} +template <typename T> +struct TContainerEnumerator : public TEnumerator2<typename T::iterator, typename T::value_type> { + inline TContainerEnumerator(T& param_0) + : TEnumerator2<typename T::iterator, typename T::value_type>(param_0.begin(), param_0.end()) {} }; diff --git a/include/JSystem/JMessage/data.h b/include/JSystem/JMessage/data.h index 0a83a90464..755dde8a64 100644 --- a/include/JSystem/JMessage/data.h +++ b/include/JSystem/JMessage/data.h @@ -20,7 +20,7 @@ struct data { u32* get_signature() const { return (u32*)(get() + 0x0); } u32 get_type() const { return *(u32*)(get() + 0x4); } u32 get_blockNumber() const { return *(u32*)(get() + 0xC); } - u8 get_encoding() const { return *(u8*)(get() + 0x10); } + u32 get_encoding() const { return *(u8*)(get() + 0x10); } }; // TParse_TBlock handles parsing the generic section header data |
