handle incorrect mag endianness in PSO GC

This commit is contained in:
Martin Michelsen
2023-06-19 15:20:16 -07:00
parent 46dd11fab0
commit 8926c22eae
9 changed files with 345 additions and 85 deletions
+6
View File
@@ -41,6 +41,12 @@ void ItemData::clear() {
this->data2d = 0;
}
void ItemData::bswap_data2_if_mag() {
if (this->data1[0] == 0x02) {
this->data2d = bswap32(this->data2d);
}
}
bool ItemData::empty() const {
return (this->data1d[0] == 0) &&
(this->data1d[1] == 0) &&