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

[Request] CONF files outside ZIPs

Open chinagreenelvis opened this issue 2 years ago • 6 comments

Adding CONF files to game ZIPs (and subsequently editing them) can be time-consuming and tricky, especially when those files need to retain the same name "dosbox.conf". I would like to propose an alternative option to look for CONF files in the same directory as the ZIP that share the same name as the ZIP file and treat them as if they existed in the root directory of the ZIP.

For example:

Space Quest IV - Roger Wilco and the Time Rippers (1991).conf Space Quest IV - Roger Wilco and the Time Rippers (1991).zip

chinagreenelvis avatar May 06 '22 09:05 chinagreenelvis

That is a reasonable request.

But in accordance to #262 (also a reasonable request), I'll put this behind a core option. As DOSBox Pure was initially not meant to support dosbox.conf files, I'll disable support for it by default. The option will then have 3 options:

  • Disabled (default)
  • Load a file named "dosbox.conf" in the loaded content (can be ZIP or file system) (as is the default in the current version)
  • Load a .conf file that has the same name as the loaded file (as suggested here)

Hope the core option isn't too much of a hassle :-)

schellingb avatar May 29 '22 16:05 schellingb

That is a reasonable request.

But in accordance to #262 (also a reasonable request), I'll put this behind a core option. As DOSBox Pure was initially not meant to support dosbox.conf files, I'll disable support for it by default. The option will then have 3 options:

* Disabled (default)

* Load a file named "dosbox.conf" in the loaded content (can be ZIP or file system) (as is the default in the current version)

* Load a .conf file that has the same name as the loaded file (as suggested here)

Hope the core option isn't too much of a hassle :-)

Great solution! The more options that can be integrated into RetroArch, the better. Thanks!

chinagreenelvis avatar May 29 '22 17:05 chinagreenelvis

Option C above might also benefit from an additional option to set the location to search for those .conf files so the user has more leeway on where to place them, but I'm good with just having them in the same directory as the .zip files myself.

chinagreenelvis avatar May 29 '22 17:05 chinagreenelvis

A core option can only be a list of things offered by the core. So having an option where the user can freely set a location isn't really possible. There could be more than the 3 options but I can't think of anything that would make sense. Maybe "Load a .conf file that has the same name as the loaded file BUT INSIDE the loaded ZIP"? Seems unnecessary to me... hopefully 2 modes are enough for now :-)

schellingb avatar May 29 '22 17:05 schellingb

Got it. Those three options as you stated are definitely enough.

chinagreenelvis avatar May 29 '22 17:05 chinagreenelvis

I just tried this new feature for accessing conf files outside the zip. I can get it to work fine in windows but not working on my nvidia shield android device. Can anyone else get it to work on android?

triggerthehorizon avatar Jun 06 '22 03:06 triggerthehorizon