diff options
| author | hatal175 <hatal175@users.noreply.github.com> | 2025-06-30 06:38:04 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-29 20:38:04 -0700 |
| commit | 214cfce7f6767cbe9781b36546de31c5082ff362 (patch) | |
| tree | 975bf318fe002a8baceb58b085d01a58b1e8512f /src/JSystem/JMessage/resource.cpp | |
| parent | 844a554a3b006cf9f4f55c3d393d97676a468d6d (diff) | |
d_a_bg_obj equivalent + misc (#2509)
* d_a_bg_obj equivalent + misc
* More Z2LinkMgr Matches
Diffstat (limited to 'src/JSystem/JMessage/resource.cpp')
| -rw-r--r-- | src/JSystem/JMessage/resource.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/JSystem/JMessage/resource.cpp b/src/JSystem/JMessage/resource.cpp index eca131efd8..1b0a813f84 100644 --- a/src/JSystem/JMessage/resource.cpp +++ b/src/JSystem/JMessage/resource.cpp @@ -186,26 +186,26 @@ bool JMessage::TParse::parseHeader_next(const void** ppData_inout, u32* puBlock_ if (memcmp(oHeader.get_signature(), &data::ga4cSignature, sizeof(data::ga4cSignature)) != 0) { JGADGET_WARNMSG(355, "unknown signature"); - return 0; + return false; } if (oHeader.get_type() != 'bmg1') { JGADGET_WARNMSG(360, "unknown type"); - return 0; + return false; } u8 uEncoding = oHeader.get_encoding(); if (uEncoding != 0) { if (!pContainer_->isEncodingSettable(uEncoding)) { JGADGET_WARNMSG(369, "encoding not acceptable"); - return 0; + return false; } pContainer_->setEncoding(uEncoding); } if (param_2 & 0x10) { - return 1; + return true; } TResourceContainer::TCResource* pResContainer = &pContainer_->resContainer_; @@ -214,14 +214,14 @@ bool JMessage::TParse::parseHeader_next(const void** ppData_inout, u32* puBlock_ if (pResource_ == NULL) { JGADGET_WARNMSG(384, "can't create resource"); if (param_2 & 0x20) { - return 1; + return true; } else { - return 0; + return false; } } else { pResContainer->Push_back(pResource_); pResource_->setData_header(oHeader.getRaw()); - return 1; + return true; } } |
