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;
|
||||
/*
|
||||
// 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;
|
||||
*(u16*)&UpdatedDir.Dir[index].Makercode = 0;
|
||||
memset(UpdatedDir.Dir[index].Filename, 0, 0x20);
|
||||
|
@ -757,6 +760,7 @@ u32 GCMemcard::RemoveFile(u8 index) //index in the directory array
|
|||
CurrentDir = &dir_backup;
|
||||
PreviousDir = &dir;
|
||||
}
|
||||
*/
|
||||
memset(&(UpdatedDir.Dir[index]), 0xFF, DENTRY_SIZE);
|
||||
*(u16*)&UpdatedDir.UpdateCounter = BE16(BE16(UpdatedDir.UpdateCounter) + 1);
|
||||
*PreviousDir = UpdatedDir;
|
||||
|
|
Loading…
Reference in New Issue