INI entries that look funny

Get help with running Romcenter 3 here. Please do not post roms requests or illegal links, posts will be deleted.

Moderator: Wanderer

Forum rules
No roms requests or illegal links
User avatar
Wanderer
Board master
Board master
Posts: 792
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

INI entries that look funny

Post by Wanderer »

Code: Select all

[Commodore Amiga - Demos - [EXE]]
Exe=
[Commodore Amiga - Demos - [EXE]]
RunParam=
[Commodore Amiga - Demos - [EXE]]
Split=1
[Commodore Amiga - Demos - [EXE]]
Merge=0
[Commodore Amiga - Demos - [EXE]]
SetsCase=4
[Commodore Amiga - Demos - [EXE]]
RomsCase=4
Shouldn't this look something like the following?

Code: Select all

[Commodore Amiga - Demos - [EXE]]
Exe=
RunParam=
Split=1
Merge=0
SetsCase=4
RomsCase=4
Also, it would be nice if there was a default value for some properties of any new data file used. For instance, i would like to have in Preferences/Fix, "Sets:datafile case" selected for any new datafile i use in RC. Right now, the default is "don't care". It would be nice if there were a "default preferences" entry and the current "preferences" entry became "current datafile preferences", and had a "use default value" entry for "fix" values.

User avatar
Wanderer
Board master
Board master
Posts: 792
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Post by Wanderer »

Part of my INI file:

Code: Select all

[Commodore Amiga - Demos - [EXE]]
DoReZip=0
[Commodore Amiga - Demos - [EXE]]
RomPaths=
[Commodore Amiga - Demos - [EXE]]
RomPaths=[f865-464a][MyLabel]MyPath|
[Commodore Amiga - Demos - Animations and Videos]
When i select "Commodore Amiga - Demos - [EXE]" from the list, the path "MyPath" is not added in the paths list, although it exists. I had just added it, changed to another dat file and then i re-selected "Commodore Amiga - Demos - [EXE]". Somehow, a blank "RomPaths=" entry was added.

User avatar
Wanderer
Board master
Board master
Posts: 792
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Post by Wanderer »

Hmmm, looks like the INI entries storing routines need some work. I found multiple

[Commodore Amiga - Demos - [EXE]]
Exe=

entries inside my ini file. Of course this happens in other data files too and of course it happens with all parameter values (Exe, RunParam, Split, Merge, etc). It looks like everytime i add/remove a path, all the configuration entries of the selected datafile are re-added in the INI without removing the old parameter values.

User avatar
RomCenter
Author
Author
Posts: 1519
Joined: Fri Sep 28, 2001 12:34 pm
Location: France
Contact:

Post by RomCenter »

This is due to the '[]' in the datafile name. Windows looks for the section name into brakets, et return a false section !

I will try to replace the '[]' with '{}'...
Eric - RomCenter developer
Report bugs here.

User avatar
RomCenter
Author
Author
Posts: 1519
Joined: Fri Sep 28, 2001 12:34 pm
Location: France
Contact:

Post by RomCenter »

This is fixed. Download the new beta 5 now !
Eric - RomCenter developer
Report bugs here.

User avatar
Wanderer
Board master
Board master
Posts: 792
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Post by Wanderer »

RomCenter wrote:This is fixed. Download the new beta 5 now !
Great. Thanx Eric. I'm downloading it now. I'll let you know how it goes.....

User avatar
RomCenter
Author
Author
Posts: 1519
Joined: Fri Sep 28, 2001 12:34 pm
Location: France
Contact:

Post by RomCenter »

I use '{{' and '}}' instead of '{' and '}' to replace '[]'. This will avoid some new problems with datafiles which could also use '{' and '}'.
Eric - RomCenter developer
Report bugs here.

User avatar
Wanderer
Board master
Board master
Posts: 792
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Post by Wanderer »

RomCenter wrote:I use '{{' and '}}' instead of '{' and '}' to replace '[]'. This will avoid some new problems with datafiles which could also use '{' and '}'.
OK, that's working fine.

Locked