Add CMemoryCardDriver::CMemoryCardDriver

Former-commit-id: 8d49e80502
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-11 00:46:32 +03:00
parent 2db05d2334
commit 077a16896f
6 changed files with 77 additions and 35 deletions

View File

@@ -18,9 +18,9 @@ public:
}
}
// TODO check
// auto_ptr(const auto_ptr& other) : x0_has(other.x0_has), x4_item(other.x4_item) {
// other.x0_has = false;
// }
auto_ptr(const auto_ptr& other) : x0_has(other.x0_has), x4_item(other.x4_item) {
other.x0_has = false;
}
// TODO check
auto_ptr& operator=(const auto_ptr& other) {
if (this != &other) {
@@ -29,7 +29,7 @@ public:
}
x0_has = other.x0_has;
x4_item = other.x4_item;
const_cast< auto_ptr& >(other).x0_has = false;
other.x0_has = false;
}
return *this;
}