MobyGamer / total-dos-launcher

A system for easily loading and running thousands of DOS programs on vintage hardware
MIT License
109 stars 10 forks source link

TDLCACHE reads as 256MB free on a disk with 19GB Free #57

Closed ezgoodnight closed 5 months ago

ezgoodnight commented 8 months ago

PXL_20231231_182430588

Many larger games seem to have this bottleneck, like ones packed with ISOs.

This is on a Dosbian/RPi 4 system, IE Dosbox, on a USB disk with plenty of free space formatted exFAT.

I have tried using a different folder for TDLCACHE, as well as deleting more files to clear up space with no change. I have also unzipped them in Windows and manually put them in TDLCACHE. There is plenty of space, TDL simply can only see 256MB available.

Am I right in assuming that this is a hard limit on launching at 256MB in size?

MobyGamer commented 7 months ago

Actually, it's a dosbox limit. When I'm in dosbox, if I type DIR, I only see 256MB free no matter how much space is actually free. If you figure out a way to fix how dosbox reports free space, let me know and I can add it to the documentation.

I'll leave this issue here as a feature request to have TDL provide an option to ignore the amount of free disk space available.

ezgoodnight commented 7 months ago

Thank you for pointing this out.

It looks like this is actually fairly easy to do and is listed in the DOSBox readme. I found it from a Vogons post and I'll quote it here for people looking for a workaround.

You simple have to mount the drive with the option " -freesize [size]"

For example, "mount C C:\dosgames -freesize 250" would make it have 250MB of free space.

So basically do this, but change it to whatever the max is that DOSBox allows.

[solved] How to change amount of reported free disk space?

ezgoodnight commented 7 months ago

updating my config file with the following line is what got the launcher to launch the larger games:

mount C C:\dosgames -freesize 1024

I tried 4096 first, but either I goofed it up in a way I didn't see or DOSBox does not like the larger size. Regardless I can confirm that I did launch larger games with this setting.

MobyGamer commented 7 months ago

Excellent, thanks for confirming. I've added documentation to the README that explains what you found. I'll leave this issue open as a feature request for "don't check if there is enough free space in the cache".

MobyGamer commented 5 months ago

I've decided that this isn't really a TDL issue, as it's the environment reporting the incorrect space, so I'll close it for now. If there's a use case where disabling the free space check makes sense, we can re-open this.