Path: chuka.playstation.co.uk!scea!sumner From: sumner@austin.metrowerks.com (Joel Sumner) Newsgroups: scea.yaroze.programming.codewarrior,scee.yaroze.programming.codewarrior Subject: Re: MWbload -> how do i specify paths? Date: Fri, 14 Nov 1997 15:49:39 -0600 Organization: Metrowerks Lines: 42 Message-ID: References: <64baj0$2i81@scea> NNTP-Posting-Host: mtwks208.metrowerks.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 Xref: chuka.playstation.co.uk scea.yaroze.programming.codewarrior:243 scee.yaroze.programming.codewarrior:109 In article <64baj0$2i81@scea>, "Pete Rizzuto" wrote: >Hi, > >I am using the codewarrior debug io library to load my tim data from >my pc at runtime, instead of dealing with batchfiles and the like... > >i use the following pair of calls: > >MWRedirectIO(__MWIO_CDROM); >MWbload("cdrom:\sprite.tim", (void *) SPRITE_1); > >This works. However, if I move the sprite.tim file into a >subdirectory on my PC, like "\yaroze\sprite.tim", or >"yaroze\demo\sprite.tim", etc... it fails. The utilities assume a "base" directory that is set up by PSComUtil or the Debugger. Since >MWbload("cdrom:\sprite.tim", (void *) SPRITE_1); works, that means that the base directory is set up ok. If you want to go into a subdirectory, reference it as a relative path just like dos. You might try nuking the "cdrom:" That really isn't necessary. Thus >MWbload("mydata\sprite.tim", (void *) SPRITE_1); should work fine assuming that "mydata" is a subdirectory in your base directory. The base directory defaults to the same directory as your .pse file. However, you can change it in your debugger using the preference panel (after your open the .pse file) -Joel -- PlayStation Development Tools Dude Metrowerks