dosbox-libretro icon indicating copy to clipboard operation
dosbox-libretro copied to clipboard

Some DOS programs cannot save new files (ARM/Linux)

Open hooby3dfx opened this issue 9 years ago • 8 comments

I have noticed that a few DOS games (Warcraft 1, ST TNG: Final Unity) are not able to create save game files.

For example in Warcraft, when you go to save the game and enter a name for the file and hit enter, the game will show an error message. However, if you copy existing save files into the directory, it is possible to read from them, and re-write to them.

This is not reproducible in normal DOSBox on my Windows PC.

I have found this issue on Linux/ARM.

This does not effect all DOS programs though, as installers usually seem to work okay, and other games (Monkey Island) can create save files.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

hooby3dfx avatar Mar 25 '17 17:03 hooby3dfx

This is likely linux permissions getting in the way.

run "chmod -R 777 */dosCdrive"

Then see if it still does it.

meepingsnesroms avatar Mar 25 '17 17:03 meepingsnesroms

Thanks, but unfortunately that did not work.

hooby3dfx avatar Mar 25 '17 23:03 hooby3dfx

Could this be related to LFN support? LFN was added to this fork here (Sep 23, 2016): https://github.com/libretro/dosbox-libretro/commit/1b35508c1c49a377dbf353906985aa1b395bd361

There are some similar issues with LFN mentioned here: http://www.vogons.org/viewtopic.php?f=41&t=40610&start=80 and http://www.vogons.org/viewtopic.php?f=41&t=40610&start=60

What rev of the LFN branch was merged in? Are there any fixes that could be pulled in? (so annoying when not everything is on github!)

hooby3dfx avatar Mar 26 '17 03:03 hooby3dfx

I just tried to reproduce on Windows/x86_64 but it seems to be working okay.

Will try to test out on another Linux machine.

hooby3dfx avatar Mar 28 '17 00:03 hooby3dfx

Not able to reproduce on OSX either. The plot thickens.

hooby3dfx avatar Mar 28 '17 02:03 hooby3dfx

Do you have selinux enabled? If you do try with it disabled.

It is not lfn if it works on windows and mac,it is likely an OS security setting.

meepingsnesroms avatar Mar 28 '17 18:03 meepingsnesroms

I don't think selinux is present in Lakka.

If this were a permissions issue, wouldn't all files fail to write from dosbox?

On Mar 28, 2017 2:08 PM, "meepingsnesroms" [email protected] wrote:

Do you have selinux enabled? If you do try with it disabled.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/libretro/dosbox-libretro/issues/56#issuecomment-289856155, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfjGTU27lW2J6_UMirW0GFxTrD02R33ks5rqUy5gaJpZM4MpI8K .

hooby3dfx avatar Mar 29 '17 01:03 hooby3dfx

Just tested this on Lakka (Linux) on x86 - not reproducible.

I think its something specific to ARM.

hooby3dfx avatar Apr 01 '17 20:04 hooby3dfx