It is currently Mon Oct 15, 2018 12:57 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Plugin's filename
PostPosted: Thu Sep 18, 2008 10:10 pm 
Offline

Joined: Sat Jun 28, 2008 4:04 pm
Posts: 3
Aside to plugin execution the MMCReplay BIOS passes some parameters to the plugin
(sector, cluster, filelength etc.), so that it knows where to find the file to load.
Sadly the BIOS doesn't pass the filename itself. Is there another way to find out
how the file is called, the plugin is executed on?
This would make it possible to make a picture plugin (.prg plugin), which finds out the file format via the
filename ([B]*=amica paint, [BI]*=flip, *pic=art studio etc.).
Any ideas?

Monte


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin's filename
PostPosted: Sun Sep 21, 2008 2:03 pm 
Offline
Site Admin

Joined: Wed Jan 11, 2006 12:22 pm
Posts: 866
The filebrowser should hold the filename somewhere in RAM unless it's being overwritten when the plugin is called. You could try to make a dummy-plugin and BRK or Freeze the plugin and then search the memory for the particular filename. Not a beautiful solution but it could work.


Top
 Profile  
Reply with quote  
 Post subject: Re: Plugin's filename
PostPosted: Sat Sep 27, 2008 3:29 pm 
Offline

Joined: Thu Jan 12, 2006 10:10 am
Posts: 177
BIOS passes current directory start cluster to plugins so you could traverse through that dir yourself until you find correct file.

edit: IIRC MMC64 BIOS doesn't copy the filename to any particular location in memory but uses cluster number directly. That means that filename location depends on file's position in directory.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group