Path: chuka.playstation.co.uk!scea!wal From: wal@blarg.net (wayne a. lee) Newsgroups: scea.yaroze.problems.mac Subject: - prload.sit (0/1) ProgressBload() Date: Wed, 30 Apr 1997 20:11:23 -0700 Organization: SCEA Net Yaroze News Lines: 35 Message-ID: NNTP-Posting-Host: mg136-070.ricochet.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 So I wrote a little function, just like the MetroWerks engineers suggested, that uses MWopen() and MWread() and printf() to display the progress of the load (nice for long loads). It's pretty simple, not heavily tested, but I got the dinosaur demo to run using it (in the MetroWerks debugger... haven't tried PSComUtil but I haven't had much with I/O redirection with that so far). I've attached the files in a Stuffit archive, I hope they download ok for everyone. Here's what I added to Dino's main() function: At the top: #include "prbload.h" ...and at the top of main() I added: /* from the BATCH file: local dload dinonew.tim 8010a710 local dload castle.tim 8016b3e0 local dload md0.tmd 801b6410 local dload dino.vdf 801d25d0 */ ProgressBload("dinonew.tim", (void *)0x8010a710); ProgressBload("castle.tim", (void *)0x8016b3e0); ProgressBload("md0.tmd", (void *)0x801b6410); ProgressBload("dino.vdf", (void *)0x801d25d0); Hope this might be of help to someone. Feel free to send me e-mail if you have any questions. wayne a. lee wal@blarg.net