The NEW Build Your Own Arcade Controls

Main => Software Forum => Linux => Topic started by: cjspizz on April 14, 2020, 08:21:43 pm

Title: MAME's folder structure
Post by: cjspizz on April 14, 2020, 08:21:43 pm
Hi all. I could use some help understanding the MAME linux (Ubuntu-based) folder structure better. In Windows, everything goes in the MAME folder, e.g. C:\MAME\. In contrast, in Linux Mint, I find the following:
A couple questions:
The mame.ini and ui.ini files read like they're operating in a Windows environment, and I could really use help understanding how to interpret them for linux.
Title: Re: MAME's folder structure
Post by: keilmillerjr on May 30, 2020, 07:34:06 am
That structure is from some one who packages it. It can get confusing. Just curl, wget, or clone the repo. Compile it or cp the bin from the package you already have.
Title: Re: MAME's folder structure
Post by: JoeShmo on October 27, 2021, 01:25:38 am
Sorry to resurrect an OLD topic, but just wanted to clarify some tings.

Linux is a multi user system, thus, things get installed in such a way that all users of a system can use them, yet retain their own settings.
Thus, everyone has access to the basics; the binary, the roms (in /usr/local/share/games/mame/roms), and then global configuration files go in /etc/ (thus /etc/mame/mame.ini and such).

You, as a user of the system (maybe the ONLY user of the system) can have your own overrides, and custom configs, they'd go in your home folder, which would be ~/.mame/ (which is linux shorthand for /home/username/.mame/)  Files in here (such as mame.ini will override anything in /etc/mame/mame.ini)

to answer questions (although, you most likely figured it out by now):
1) if you want to do it system-wide (for "everyone"), edit /etc/mame/mame.ini, if for just you, edit ~/.mame/mame.ini  (best to edit this one)
2) Tricky, I'd guess create it in ~/.mame/

Hopefully, this comes in handy for the next person that tries to understand the directory structure.