DI.COM DIR with Long FIle Name for Nextor

Page 1/3
| 2 | 3

By Victor

Champion (411)

Victor's picture

07-12-2018, 05:36

Hi!!

I've created this small program. It's only for MSX Nextor by Konamiman.

Here you have a video demostration.

More Info and Download here.

I hope you like it!!

Login or register to post comments

By ToriHino

Master (245)

ToriHino's picture

07-12-2018, 07:19

Very nice! This should become a standard part of Nextor.

By Grauw

Enlighted (7525)

Grauw's picture

07-12-2018, 10:11

Neato! How does it work? Can you provide source code? If you share then programs like VGMPlay and SofaRun may also gain support for it.

I once tried to implement this using _FFIRST / _FNEXT, they store a lot of the filename bytes in the various fields of the FIB, but a few are missing so I couldn’t make it work.

So I think you’re using sector access?

I would be good if Nextor gained some calls to support this natively.

By Victor

Champion (411)

Victor's picture

07-12-2018, 10:19

Grauw wrote:

Neato! How does it work? Can you provide source code? If you share then programs like VGMPlay and SofaRun may also gain support for it.

The source code is in the SRC section of the same Github acount.

Grauw wrote:

I once tried to implement this using _FFIRST / _FNEXT, they store a lot of the filename bytes in the various fields of the FIB, but a few are missing so I couldn’t make it work.

So I think you’re using sector access?

Yes. To read directory and FAT

By Tolvatar

Paladin (902)

Tolvatar's picture

07-12-2018, 11:41

Nice program. Great help.
Thanks

By gdx

Prophet (2352)

gdx's picture

07-12-2018, 12:34

Thank you Victor!

Does Nextor corrupts the FAT like DOS2 when deleting a long name file?

By Grauw

Enlighted (7525)

Grauw's picture

07-12-2018, 14:51

Victor wrote:

The source code is in the SRC section of the same Github acount.

Cool! I should’ve looked better :).

What’s the license for this code? BSD or MIT? In other words, can I copy bits and pieces freely when needed?

By Victor

Champion (411)

Victor's picture

07-12-2018, 14:55

Grauw wrote:

What’s the license for this code? BSD or MIT? In other words, can I copy bits and pieces freely when needed?

You share everything you do... so, you can do what you want. If I can help you, just tell me.

By Louthrax

Paragon (1872)

Louthrax's picture

07-12-2018, 19:05

Freaking awesome! Victor, do you have any idea of the code size just for the FAT parsing / etc... to retrieve the long file names (as I do not have too much memory left in SofaRun).

And... must say I still hope that this could be integrated into Nextor natively (with an extra new MSX-DOS 2 function to retrieve the long file name for a given file handler).

By Victor

Champion (411)

Victor's picture

07-12-2018, 19:18

Louthrax wrote:

Freaking awesome! Victor, do you have any idea of the code size just for the FAT parsing / etc... to retrieve the long file names (as I do not have too much memory left in SofaRun).

well the code of Long file name is not too long, but you need at last a buffer of 1024 bytes to read 2 directory sectors... but the code is really short...

By Louthrax

Paragon (1872)

Louthrax's picture

07-12-2018, 19:46

Victor wrote:
Louthrax wrote:

Freaking awesome! Victor, do you have any idea of the code size just for the FAT parsing / etc... to retrieve the long file names (as I do not have too much memory left in SofaRun).

well the code of Long file name is not too long, but you need at last a buffer of 1024 bytes to read 2 directory sectors... but the code is really short...

That would fit with no problem in SofaRun.

Have you tried to contact Konamiman about what you've done ? Or maybe he's already reading us Big smile

Thinking about that, haven't the sources of Nextor been made public ?

Page 1/3
| 2 | 3
My MSX profile