diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | libpcsxcore/sio.c | 48 |
2 files changed, 52 insertions, 1 deletions
@@ -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 diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index 6e98d1fb..3fb4b177 100644 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -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); } |
