Skip to content

Commit

Permalink
Update source/ps1card.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero authored Oct 28, 2024
1 parent 5c2ed58 commit f8300ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/ps1card.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,15 @@ static void setPsvHeader(const char* saveFilename, uint32_t saveLength, FILE* fp
psvSave[0x3C] = 1;
psvSave[0x44] = 0x84;
psvSave[0x49] = 2;
psvSave[0x5D] = 0x20;
psvSave[0x60] = 3;
psvSave[0x61] = 0x90;

memcpy(&psvSave[0x64], saveFilename, 20);
memcpy(&psvSave[0x40], &saveLength, sizeof(uint32_t));
memcpy(&psvSave[0x5C], &saveLength, sizeof(uint32_t));

fwrite(psvSave, 1, sizeof(psvSave), fp);

return;
}

Expand Down

0 comments on commit f8300ee

Please sign in to comment.