Romcenter and database updating

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: 791
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Romcenter and database updating

Post by Wanderer »

From time to time, when a new RC version is released it is required that the database is recreated from scratch for a reason. For instance, this happened with the recent release of v3.55. I can only suspect why this is happening (perhaps new fields were added to the db which require re-importing the original dat file), but it would be nice if a way existed to recreate the database without loosing all the settings and rom paths one has in the existing database.

For instance, the existing DB could be opened as read-only, importing only the settings and rom paths (database branch of the tree could remain empty) until the user provided the mame.exe or dat file containing the database entries. Then, the database part of the tree would be filled and the database could become read-write again.

Another idea would be this: when the user tries to open the old DB, RC, instead of telling him that the database needs to be recreated, it could do the following:
- Warn him that if he wishes to continue, a new DB will be created using the old one as a template, so he will have to enter the new DB filename and the respective mame.exe / dat file to use.
- Create a new DB
- Import all setting and rom paths from the old one.
- Ask the user if he wishes to delete the old DB or keep it so that he can still open it from the older RC version.

A third idea (perhaps the simplest and more elegant one):
- Leave everything as is - the user must manually create a new DB.
- Add a new menu entry "import settings and rom paths from another DB". That would do what it says. It would just import all settings (preferences) and rom paths (just the paths, not the info about the files they contain) from an older DB and after importing them, RC would automatically re-read them and add all relevant file info to the opened DB.

This could be a major time-saver for a user who has several databases. I don't know how much work it would require though. It would be nice to see it in a future 3.x update, if not too much trouble.

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

Re: Romcenter and database updating

Post by RomCenter »

Of course it would be better, but is it really needed ? in v3, surely not. It's very unlikely that a new db structure appears on the current v3 branch (which is almost closed).
Maybe in v4, but it is not a priority.
Anyway, the idea is written.
Eric - RomCenter developer
Report bugs here.

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

Re: Romcenter and database updating

Post by Wanderer »

RomCenter wrote:Of course it would be better, but is it really needed ?
If you have many datafiles, it would save quite some time of recreating the database, adding all the rom paths you had in each of them (you also have to remember them :) ). Of course, depending on how the GUI evolves, it may not be an issue in v4. Anyway, as you said, let's keep the idea in mind, it may be useful.

Locked