Skip to content

Commit

Permalink
Update ps1card.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero authored Oct 26, 2024
1 parent 9f7995e commit 14e0be3
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,12 +218,13 @@ 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;

saveLength = ES32(saveLength);
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 14e0be3

Please sign in to comment.