mirror of
https://github.com/zeldaret/tp
synced 2026-09-03 02:03:55 -04:00
d_demo mostly matched (#2242)
This commit is contained in:
@@ -172,16 +172,20 @@ struct TParseData : public data::TParse_TParagraph_data::TData {
|
||||
}
|
||||
|
||||
bool isEnd() const {
|
||||
return _0 == 0;
|
||||
return status == 0;
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return _c == NULL;
|
||||
return fileCount == NULL;
|
||||
}
|
||||
|
||||
bool isValid() const {
|
||||
return !empty() && _0 == 50;
|
||||
return !empty() && status == 50;
|
||||
}
|
||||
|
||||
const void* getContent() const { return fileCount; }
|
||||
|
||||
u32 size() const { return dataSize; }
|
||||
};
|
||||
|
||||
template <int T, class Iterator=JGadget::binary::TValueIterator_raw<u8> >
|
||||
@@ -190,7 +194,7 @@ struct TParseData_fixed : public TParseData<T> {
|
||||
TParseData_fixed() : TParseData<T>() {}
|
||||
|
||||
const void* getNext() const {
|
||||
return fileCount;
|
||||
return _10;
|
||||
}
|
||||
|
||||
bool isValid() const {
|
||||
@@ -200,6 +204,19 @@ struct TParseData_fixed : public TParseData<T> {
|
||||
Iterator begin() {
|
||||
return Iterator(fileCount);
|
||||
}
|
||||
|
||||
Iterator end() {
|
||||
Iterator i(fileCount);
|
||||
i += size();
|
||||
return i;
|
||||
}
|
||||
};
|
||||
|
||||
struct TParseData_string : public TParseData<0x60> {
|
||||
TParseData_string(const void* pContent) : TParseData<0x60>(pContent) {}
|
||||
TParseData_string() : TParseData<0x60>() {}
|
||||
|
||||
const char* getData() const { return (const char*)getContent(); }
|
||||
};
|
||||
|
||||
} // namespace stb
|
||||
|
||||
Reference in New Issue
Block a user