retrohackers.org
https://mail.retrohackers.org/

Plugin's filename
https://mail.retrohackers.org/viewtopic.php?f=6&t=410
Page 1 of 1

Author:  Monte Carlos [ Thu Sep 18, 2008 9:10 pm ]
Post subject:  Plugin's filename

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

Author:  RaveGuru [ Sun Sep 21, 2008 1:03 pm ]
Post subject:  Re: Plugin's filename

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.

Author:  tnt/beyond force [ Sat Sep 27, 2008 2:29 pm ]
Post subject:  Re: Plugin's filename

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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/