implement 6xD1 command for BB challenge mode

This commit is contained in:
Martin Michelsen
2023-11-19 21:41:51 -08:00
parent 9476a3fc27
commit 4588a71e5a
5 changed files with 38 additions and 11 deletions
+6
View File
@@ -18,6 +18,12 @@ ItemData::ItemData(const ItemData& other) {
this->data2d = other.data2d;
}
ItemData::ItemData(uint64_t first, uint64_t second) {
*reinterpret_cast<be_uint64_t*>(&this->data1[0]) = first;
this->data1d[2] = bswap32((second >> 32) & 0xFFFFFFFF);
this->data2d = bswap32(second & 0xFFFFFFFF);
}
ItemData& ItemData::operator=(const ItemData& other) {
this->data1d = other.data1d;
this->id = other.id;