Path: chuka.playstation.co.uk!tjs From: tjs@cs.monash.edu.au (Toby Sargeant) Newsgroups: scee.yaroze.programming.codewarrior Subject: Re: Help with MWwrite() function Date: 8 Oct 1998 23:32:16 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 19 Message-ID: References: <361D1236.2107@manc.u-net.com> NNTP-Posting-Host: longford.cs.monash.edu.au X-Newsreader: slrn (0.9.4.3 UNIX) On Thu, 08 Oct 1998 20:27:50 +0100, James Shaughnessy wrote: >I would really appreciate help with this someone. Please! >I have posted some of the relevant code below, in case it's >obvious and to save you dloading the file and all that malarky. > >Anyhoo, the problem is that it currently saves 74000 bytes, as >opposed to the required 73728 (ie. exactly 72Kb == 0x12000), even >though the functions are being called with 0x12000 as data size. >The file it creates is MYPAL.DAT if you select "Save PAL replays" >and it's this that should be exactly 73728 bytes. Same for NTSC. Stab in the dark, but... Is it possible that MWOpen takes a flag for either binary or ascii mode (with the default being ascii)? The pc side needs 2 characters for a carriage return, whereas I think the psx only uses one, so in ascii mode, writes might be translating 0x0a characters into 0x0a,0x0d. This would blow out your file size in the way you're seeing. Toby.