Hallo Besucher, der Thread wurde 1,1k mal aufgerufen und enthält 2 Antworten

letzter Beitrag von Monte Carlos am

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

  • Is there another way to find out
    how the file is called, the plugin is executed on?


    The only way to find out the file name is to search the files's home dir (the first directory cluster is also passed by the BIOS) for the desired directory entry, which contains the file's start cluster and the file name. Attention: If the file has a long filename (LFN), the name is scattered over two or more directory entries.


    CU
    Kratznagel

  • Sorry, dass ich in englisch geschrieben habe. Habe die Frage auch auf Retrohackers gestellt. ;)
    Also, das höhrt sich doch prima an. Dann ist ja ein Plugin Plugin, welches einen nach der Ausführung
    eines prg Files den Shower bzw. Player auswählen lässt prinzipiell doch möglich.
    Aber die beschriebene Variante vom vorigen Post wäre natürlich erstmal einfacher zu realisieren.
    Nur zu dumm, dass ich selten zum coden komme. Vielen Dank!