Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Zaghadka
MAME Groupie
Reged: 04/26/11
Posts: 115
Send PM


Interesting problem with .ini files
#352201 - 03/31/16 01:04 AM


In the new MAME 0.172, this is the path for .ini files

Code:

inipath            .;ini;ini/presets


MAMEUI changes configurations, so it likes that path to be just:

Code:

inipath             ini


and it will change the mame.ini in the /ini directory to read just that, eliminating all the presets.

With no mame.ini in the /ini directory, MAMEUI reads the mame.ini in the root directory, and the ini path is set to ini/presets. It then puts mame.ini in the presets directory.

My solution so far is to have a mame.ini file in the ini directory, along with copies of all the presets. MAMEUI seems to be able to handle this.

If anyone is still maintaining the code, however, it might be better to allow MAMEUI to accept multiple inipath variables, and know to drop its .ini changes into the /ini directory, or perhaps the first directory in the list: no reason the variable can't be set to -

Code:

inipath           ini;.;ini/presets


In any event, the code may need an update. The current workaround is to have a mame.ini in the /ini directory that sets inipath to just ini, and one in the root directory that sets the multiple paths for vanilla MAME.

(MAMEUI fortunately handles diff ini's just fine. I have a couple of games where the only line is HLSL_enable 0, and MAMEUI reads it just fine.)

Any thoughts? It took me a while to figure out what was going on.



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3193
Loc: A long way from you
Send PM


Re: Interesting problem with .ini files new [Re: Zaghadka]
#352202 - 03/31/16 01:08 AM


-



Zaghadka
MAME Groupie
Reged: 04/26/11
Posts: 115
Send PM


Re: Interesting problem with .ini files new [Re: Robbbert]
#352207 - 03/31/16 02:33 AM


Yeah, I can tell. MAMEUI is hard coded to work with one ini directory, for various reasons.

The workaround I posted works. You just have to keep everything in the /ini folder, both ini's and presets, and keep the copies in the root and /presets folder for vanilla MAME. I haven't used MAMEUI to change game configs in a long time, so it's not affecting me so much.

With bgfx coming into its own, I think you have your work cut out for you (I would just ignore bgfx, if I were you).

Good luck to you if you do try to fix it.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9714
Loc: ECV-197 The Orville
Send PM


Re: Interesting problem with .ini files new [Re: Zaghadka]
#352691 - 04/08/16 05:17 PM


> With bgfx coming into its own, I think you have your work cut out for you (I would
> just ignore bgfx, if I were you).

Ignoring BGFX isn't possible; the D3D and OpenGL renderers will go away by the end of this year.


Pages: 1

Frontend Tech + >> MAMEUI & IV/Play
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  John IV, Robbbert 
0 registered and 7 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3339