Multiple directories in MAME 'roms' mGalaxy configuration crashes mGalaxy

To get bugs fixed, please report them here.
Post Reply
randypower
Newbie
Newbie
Posts: 11
Joined: Fri Dec 29, 2017 12:34 am

While fiddling with settings, I thought I might need to give mGalaxy two folders for my MAME roms, just as MAME itself needs references to the 'roms' directory as well as 'chd'.  So I added both of these in _Runway with a semi-colon as a separator and saved/quit. mGalaxy didn't like that and crashed on launch. I had to find the configuration file and fix it manually to get _Runway to run again.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

I don't have this problem, I just put all CHD file in the rom folder too (and chd additives files are in their respective folder in the rom folder too)
randypower
Newbie
Newbie
Posts: 11
Joined: Fri Dec 29, 2017 12:34 am

[quote="Aeliss"]
I don't have this problem, I just put all CHD file in the rom folder too (and chd additives files are in their respective folder in the rom folder too)
[/quote]

Thanks, AELISS. I can see that working, but it's a little more maintenance with each version update. Did you put the CHDs in the roms folder in order to deal with this concern? I'm not sure mGalaxy needs to see the CHDs, though. If it sees a rom (.zip), then it thinks the game is present?  And then when a game is started, it's mame itself that needs to use the CHDs.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Yep, you are right, chd are useless for mGalaxy. I have for exemple

roms/area51.zip
roms/area1/area51.chd

The first file is for mgalaxy working
The second one for Mame only.

Only one is displayed in mGalaxy, the first one. The second one can be somewhere else for mGalaxy, but harder to make it working for Mame.
Electric_Dreams
Newbie
Newbie
Posts: 1
Joined: Sat Aug 25, 2018 11:16 pm

Hi,

It seems that mGalaxy can not handle multiple rom directories for Mame Systems (I think this is a bad thing, because Mame can natively handle multiple directories. A Front End should not limit the Emulator functionnalities...)

To keep roms and CHD separated like i do, try this :

1) First edit your mame.ini config file in your MAME base directory , and modify the rompath line to add the roms and chd separated directories:

Code: Select all

rompath                   roms;E:\roms;E:\chd
2) Then edit the file UserSystems.xml (go in your mGalaxy base folder, you will find this file inside Data/UserSystems subdirectory)

Find the CMD markup line related to your Mame System :

Code: Select all

      <Cmd hidden="true" name="MAME" value="-rompath "%path" %file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions=".zip,.7z,.chd" />
Delete  this :  -rompath "%path"

So the line should be like this :

Code: Select all

      <Cmd hidden="true" name="MAME" value="%file%ext -volume -%volume(32,0) -skip_gameinfo -nowindow -joystick" extensions=".zip,.7z,.chd" />
With this modification, mGalaxy will not be able to over-define rompath parameter anymore. Mame will use the rompaths found in mame.ini.

( Changing the value of Rompath inside mGalaxy_Runway won't alter your modifications on this line)

I think it will be a good idea to add multiple rompath directories handling to mGalaxy to avoid this kind of ugly tweak.
Aeliss
Hero Member
Hero Member
Posts: 900
Joined: Thu Apr 04, 2013 5:55 pm

Or you can just make a folder called Mame_Rom, and put all the roms inside, you can make as many subfolder you want inside.
There isn't lot difference beetween

E:\roms;E:\chd
and
E:\Mame\roms;E:\Mame\chd
Post Reply