mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
disable changing a dentry to "broken file" before removing it, the ipl does not always do this
Signed-off-by: LPFaint99 <lpfaint99@gmail.com>
This commit is contained in:
parent
3d20c57458
commit
0aeb94d3be
@ -740,6 +740,9 @@ u32 GCMemcard::RemoveFile(u8 index) //index in the directory array
|
|||||||
}
|
}
|
||||||
|
|
||||||
Directory UpdatedDir = *CurrentDir;
|
Directory UpdatedDir = *CurrentDir;
|
||||||
|
/*
|
||||||
|
// TODO: determine when this is used, even on the same memory card I have seen
|
||||||
|
// both update to broken file, and not updated
|
||||||
*(u32*)&UpdatedDir.Dir[index].Gamecode = 0;
|
*(u32*)&UpdatedDir.Dir[index].Gamecode = 0;
|
||||||
*(u16*)&UpdatedDir.Dir[index].Makercode = 0;
|
*(u16*)&UpdatedDir.Dir[index].Makercode = 0;
|
||||||
memset(UpdatedDir.Dir[index].Filename, 0, 0x20);
|
memset(UpdatedDir.Dir[index].Filename, 0, 0x20);
|
||||||
@ -757,6 +760,7 @@ u32 GCMemcard::RemoveFile(u8 index) //index in the directory array
|
|||||||
CurrentDir = &dir_backup;
|
CurrentDir = &dir_backup;
|
||||||
PreviousDir = &dir;
|
PreviousDir = &dir;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
memset(&(UpdatedDir.Dir[index]), 0xFF, DENTRY_SIZE);
|
memset(&(UpdatedDir.Dir[index]), 0xFF, DENTRY_SIZE);
|
||||||
*(u16*)&UpdatedDir.UpdateCounter = BE16(BE16(UpdatedDir.UpdateCounter) + 1);
|
*(u16*)&UpdatedDir.UpdateCounter = BE16(BE16(UpdatedDir.UpdateCounter) + 1);
|
||||||
*PreviousDir = UpdatedDir;
|
*PreviousDir = UpdatedDir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user