joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

MOUNT and long Paths #3335

Open gMagnus87 opened 2 years ago

gMagnus87 commented 2 years ago

Code of Conduct & Contributing Guidelines

Have you checked that no other similar bug report(s) already exists?

What operating system(s) this bug have occurred on?

Windows 10 21H2

What version(s) of DOSBox-X have this bug?

0.83.23 SLD2 Visual Studio

Describe the bug

The mount tool does not support certain types of directory paths. Right now my folder path for DOSBOX is...

D:\ERECOVERY\Recovered data 08-28 16_14_17\Deep Scan result\Lost Partition1(NTFS)\Games\Emulators\Computer\DOS\HDDDOS\DiskC

However, if I do it through the graphical interface (Drive > C > mount folder as drive), it works correctly

LOG: GUI: Drive C is mounted as local directory

Expected behavior

The drive should be mounted correctly as long as it is a correct path for the operating system, in this case Windows 10

Steps to reproduce the behaviour

  1. Open config file
  2. Go to AUTOEXEC part
  3. Use the MOUNT command.
  4. Assign a letter to the drive.
  5. Set a long folder path

Used configuration

[autoexec]
# You can put your MOUNT lines here.
MOUNT C D:\ERECOVERY\Recovered data 08-28 16_14_17\Deep Scan result\Lost Partition1(NTFS)\Games\Emulators\Computer\DOS\HDDDOS\DiskC

Emulator log

LOG: PHYSFS couldn't mount 'D:\ERECOVERY\Recovered': unsupported
LOG: PHYSFS calling PHYSFS_deinit()

Additional context

No response

grapeli commented 2 years ago

After all, there are a few spaces in your path. It must always be enclosed in quotation marks. Not only in dosbox-x. MOUNT C "D:\ERECOVERY\Recovered data 08-28 16_14_17\Deep Scan result\Lost Partition1(NTFS)\Games\Emulators\Computer\DOS\HDDDOS\DiskC"