Menu

#501 one config file for all platform

0.74
open
nobody
None
1
2019-06-27
2019-04-29
No

Hello,
as you know, Windows uses antislash for theirs paths and Unix OS use slash.
So when you import a Dosbox config that is packaged for Windows, you can not launch the game out the box, you have to replace antislash by slash or Dosbox will not find path and will not mount Disc Drive. Could it be possible to implement to Dosbox a feature: slash or antislash, it doesn't matter, Dosbox will find the path.
Thank you for your help.

Discussion

  • Dominik Reichardt

    The biggest problem is that the whole drive letter thing of Windows does not exist on Unix systems.
    So that will break anyway. I think that for relative paths (relative to the dosbox binary) it already works with both slash ways.

     
  • Le Gluon du Net

    Le Gluon du Net - 2019-04-29

    "I think that for relative paths (relative to the dosbox binary) it already works with both slash ways."
    Are you sure about this point? I will try with last git version.

     

    Last edit: Le Gluon du Net 2019-04-29
    • Dominik Reichardt

      No, I'm not sure at all, or I woud have written that instead of think.
      You definitely can't use both slash and backslash in Unix OS', as the backslash is used to mark a space in a path. BUT on Windows the use of slashes might be possible and already implemented. I'm not sure, though.

       
  • Le Gluon du Net

    Le Gluon du Net - 2019-04-29

    I just compiled Dosbox from today's svn source and tested a game, I can confirm now that the script line:
    imgmount D "..\GAME.INS" -t iso
    was not understand by Dosbox on linux.
    If I replace "..\GAME.INS" by "../GAME.INS", Dosbox on Linux finally found the file GAME.INS.

     

    Last edit: Le Gluon du Net 2019-04-29
  • Le Gluon du Net

    Le Gluon du Net - 2019-04-30

    I just tried with Dosbox-x, it interpreted both / and \ from relative path without problem, could you add this feature too? The Dosbox config file will be multiplatform with this feature.

     

    Last edit: Le Gluon du Net 2019-05-01
    • Patryk Obara

      Patryk Obara - 2019-06-27

      Hey there - if you're interested, https://github.com/dreamer/steam-dos converts Windows-compatible DOSBox configuration files to Linux-compatible files (handling also differences in cases, not merely slash/backslash and avoiding Windows-only dosbox options).

       

Log in to post a comment.