Skip to content

Commit a5ed181

Browse files
committed
[SIO] Comments
1 parent 16e330f commit a5ed181

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/core/sio.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ void PCSX::SIO::LoadMcd(int mcd, const PCSX::u8string str) {
406406
struct stat buf;
407407

408408
if (stat(fname, &buf) != -1) {
409+
// Check if the file is a VGS memory card, skip the header if it is
409410
if (buf.st_size == MCD_SIZE + 64)
410411
fseek(f, 64, SEEK_SET);
412+
// Check if the file is a Dexdrive memory card, skip the header if it is
411413
else if (buf.st_size == MCD_SIZE + 3904)
412414
fseek(f, 3904, SEEK_SET);
413415
}

0 commit comments

Comments
 (0)