Match CMemoryCardDriver::EraseFileSlot

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-11 18:28:32 +03:00
parent 9afec991ab
commit eec621aacc
No known key found for this signature in database
GPG Key ID: E224F951761145F8
2 changed files with 5 additions and 3 deletions

View File

@ -23,8 +23,8 @@ public:
}
// TODO check
auto_ptr& operator=(const auto_ptr& other) {
if (this != &other) {
if (x0_has != false) {
if (&other != this) {
if (x0_has) {
delete x4_item;
}
x0_has = other.x0_has;

View File

@ -706,7 +706,9 @@ void CMemoryCardDriver::ReadFinished() {
}
}
void CMemoryCardDriver::EraseFileSlot(int) {}
void CMemoryCardDriver::EraseFileSlot(int saveIdx) {
xe4_fileSlots[saveIdx] = nullptr;
}
void CMemoryCardDriver::BuildNewFileSlot(int) {}