git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@35263 e17a0e51-4ae3-4d35-97c3-1a29b211df97

This commit is contained in:
SND\weimingzhi_cp 2009-11-03 16:14:02 +00:00
parent 394c8136b4
commit 12fc356753
2 changed files with 52 additions and 1 deletions

View File

@ -1,3 +1,8 @@
November 4, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* libpcsxcore/sio.c: Fixed the format of new memord card file, which solves
the saving problem with Final Fantasy 6.
November 3, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* macosx/plugins/HIDInput/src/PlugPAD.c: Implemented PADstartPoll() and

View File

@ -491,7 +491,25 @@ void CreateMcd(char *mcd) {
for (i = 0; i < 15; i++) { // 15 blocks
fputc(0xa0, f);
s--;
for (j = 0; j < 126; j++) {
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0xff, f);
s--;
fputc(0xff, f);
s--;
for (j = 0; j < 117; j++) {
fputc(0x00, f);
s--;
}
@ -499,8 +517,36 @@ void CreateMcd(char *mcd) {
s--;
}
for (i = 0; i < 20; i++) {
fputc(0xff, f);
s--;
fputc(0xff, f);
s--;
fputc(0xff, f);
s--;
fputc(0xff, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0x00, f);
s--;
fputc(0xff, f);
s--;
fputc(0xff, f);
s--;
for (j = 0; j < 118; j++) {
fputc(0x00, f);
s--;
}
}
while ((s--) >= 0)
fputc(0, f);
fclose(f);
}