realnc / dosbox-core

A DOSBox core for use in RetroArch and other libretro frontends.
GNU General Public License v2.0
42 stars 16 forks source link

Please add “-t overlay” support for mount command #44

Closed crashGG closed 2 years ago

crashGG commented 2 years ago

When a directory is mounted and do not want the contents of the directory to be changed, the -t overlay parameter can be used to redirect the modification of this directory to another specified directory.

for example:

mount c c:\game\game1 mount c c:\game\save -t overlay

Now, all writes to the directory will be redirected to the c:\game\save directory. This is helpful for someone that needs to keep the directory unmodified as vanilla.

DOSbox ECE , DOSbox GOG , DOSbox-X , Dosbox-staging already support this function.

andres-asm commented 2 years ago

That should work already, it works on SVN too It shouldn't be a default behavior, ever but you can do that just fine

On Wed, Apr 27, 2022 at 11:02 AM crashGG @.***> wrote:

When a directory is mounted and do not want the contents of the directory to be changed, the -t overlay parameter can be used to redirect the modification of this directory to another specified directory.

for example:

mount c c:\game\game1 mount c c:\game\save -t overlay

Now, all writes to the directory will be redirected to the c:\game\save directory. This is helpful for someone that needs to keep the directory unmodified as vanilla.

DOSbox ECE , DOSbox GOG , DOSbox-X , Dosbox-staging already support this function.

— Reply to this email directly, view it on GitHub https://github.com/realnc/dosbox-core/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEFUBU76ZB6CLQDYJQYILVHFQJNANCNFSM5UPTWP2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

realnc commented 2 years ago

As fr500 mentioned, this already works. There's also a core option ("Storage->Enable Overlay Filesystem") that automatically mounts an overlay for the C drive in the retroarch saves/DOSBox-core folder.

realnc commented 2 years ago

Closing.

@crashGG If you have found any cases where overlay mounts don't work, feel free to comment.