Page 1 of 1

predefined set of directories

Posted: Wed Apr 16, 2008 6:49 am
by Hard Core Rikki

how about a predefined set of paths for the directories (to be created if they dont exist yet, though it could bring an issue on read-only filesystems, unless precreated in the zips already) ?

 

 

for example

 

Roms (with maybe subfolders GBA/GBC/GB )

Batteries

Saves

Screenshots (or Capture)

 

Explicit enough, I suppose ;P


predefined set of directories

Posted: Wed Apr 16, 2008 7:25 am
by SCHUMI4EVER

It seems such a directory dialog has already been made, just that the person descides where they want everything to go. Options -> Emulator -> Directories.


predefined set of directories

Posted: Wed Apr 16, 2008 8:25 am
by spacy51

I'd just leave the default values to being the directory where the exe is in, or else VBA will create subfolders that the user has to delete if he doesn't like the default.

 

Just create yourself a ini file with the defaults you like and save it somewhere.

 

The related strings in the ini are:

"romdir="

"gbcromdir="

"gbromdir="

"batteryDir="

"saveDir="

and "captureDir="

 

So your default ini file would look like this:

[preferences]
"romdir=.\roms\gba"

"gbcromdir=.\roms\gbc"

"gbromdir=.\roms\gb"

"batteryDir=.\saves\battery"

"saveDir=.\saves\state"

"captureDir=.\screenshots"

 

We could also ship something like that with VBA ^^"


predefined set of directories

Posted: Wed Apr 16, 2008 8:36 am
by Hard Core Rikki

It seems such a directory dialog has already been made, just that the person descides where they want everything to go. Options -> Emulator -> Directories.

 

Glad to see you found it, venerable master of the obvious ;P

People do not really have an idea of what folders to create. For all we know, they could just use folders named 1, 2, 3... ;P hence why a bit of standardization looks alright


predefined set of directories

Posted: Wed Apr 16, 2008 9:28 am
by SCHUMI4EVER

You have a point...and Spacy's default ini suggestion is a good one.