• Advertisement

3.00 RC1 - bug - rom paths confused by SUBST command

Technical questions and information on Plug-ins and other developments around RomCenter...

Moderators: Wanderer, Iron Man, Logiqx

3.00 RC1 - bug - rom paths confused by SUBST command

Postby XYZ on Tue Apr 15, 2008 8:59 am

I tried out the new RomCenter with MAME, setting rom paths like "d:\mame\__roms__" in the D: drive (labeled "Data_Bck"), but when I ran this batch file with RomCenter open (paths edited, none overlapping the rom paths)

Code: Select all
subst R: /D
subst R: d:\r
subst P: /D
subst P: d:\r
subst H: /D
subst H: d:\h
subst Z: /D
subst Z: d:\zx
subst X: /D
subst X: z:\x


RomCenter decided that my rom paths have moved to "x:\mame\__roms__" and the like, logging this stuff (serial number edited):

Code: Select all
Media removed : R:\
Media added: R:\ - 1234-5678- Data_Bck
Media added: P:\ - 1234-5678- Data_Bck
Media added: H:\ - 1234-5678- Data_Bck
Media added: Z:\ - 1234-5678- Data_Bck
Media added: X:\ - 1234-5678- Data_Bck


The alteration is saved to RomCenter's database, which is quite inconvenient because I'm forced to remove and add back the rom paths.
Evidently, RomCenter plays tricks with volume labels, but they are shared between the SUBST'ed volumes and the underlying actual volume.

Is it done on purpose, for people with big ROM collections on removable disks that are mounted with random drive letters? In this case, the program should detect that there are multiple volumes with the same label and
  • give precedence to the unit letter the user actually specified for the rom path;
  • ignore all drive letters, within the set of overlapping units with the same label, that don't have the specified path, rather than giving a frightening "Volume data_bck not available" dialog box;
  • never alter permanently the rom paths in the database, and maybe ask the user confirmation for temporary "smart" replacements drive letters.
XYZ
Pong
Pong
 
Posts: 2
Joined: Tue Apr 15, 2008 8:16 am

Re: 3.00 RC1 - bug - rom paths confused by SUBST command

Postby Wanderer on Thu May 15, 2008 6:52 pm

Hi there.

In case you don't know, Microsoft has stopped supporting the use of SUBST since Windows 2000 i think. In general, they have said it's not good practice to use it. I still use it too and live with all the strange stuff happening sometimes. If your computer has a network card and is always connected to a hub/switch/router, you can use "map network drives" instead of using SUBST.

In any case, the behavior you are describing happens with map drive too and it's not very convenient indeed. As soon as i mapped drive F to my C:, RC replaced all open rom paths from C:\... to F:\... The fun part though started when i removed the mapped drive (having RC open of course). The drive disappeared from the rom paths as if they were on a disconnected drive. Closing and reopening RC though seemed to solve the problem but i can't be sure.
- Wanderer -
User avatar
Wanderer
Board master
Board master
 
Posts: 488
Joined: Wed Oct 03, 2001 10:37 am
Location: Floating around

Re: 3.00 RC1 - bug - rom paths confused by SUBST command

Postby RomCenter on Thu May 15, 2008 8:39 pm

I will improve this part in next version. If a path is connected, no need to check it. c: will remain c:
Eric - RomCenter developer
http://www.romcenter.com
User avatar
RomCenter
Author
Author
 
Posts: 1457
Joined: Fri Sep 28, 2001 12:34 pm
Location: France

Re: 3.00 RC1 - bug - rom paths confused by SUBST command

Postby XYZ on Fri May 16, 2008 11:59 am

Thank you, I really wish to use RomCenter.
XYZ
Pong
Pong
 
Posts: 2
Joined: Tue Apr 15, 2008 8:16 am


Return to Development / Beta test

Who is online

Users browsing this forum: No registered users and 1 guest