Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mame creates folders cfg and nvram in the home dir #14

Closed
sergiobenrocha2 opened this issue Nov 25, 2015 · 10 comments
Closed

mame creates folders cfg and nvram in the home dir #14

sergiobenrocha2 opened this issue Nov 25, 2015 · 10 comments

Comments

@sergiobenrocha2
Copy link
Contributor

It's quite annoying, this mame core creates cfg and nvram folders in your ~/ or in the folder you launch RA in the terminal.

@markwkidd
Copy link
Contributor

@sergiobenrocha2 is this still the case with mame2010?

@sergiobenrocha2
Copy link
Contributor Author

yup

@raelgc
Copy link

raelgc commented Nov 24, 2017

I've found the reason for this issue: mame.ini is located at /opt/retropie/libretrocores/lr-mame2010/, but EmulationStation is launching from home folder. I.e., /opt/retropie/libretrocores/lr-mame2010/mame.ini is ignored.

So, I made the following:

  1. Moved mame.ini to my home folder.

  2. Changed, in mame.ini, values from cfg and nvram paths to match mame2003.

I.e., change from this:

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             cfg
nvram_directory           nvram

to this:

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             RetroPie/roms/mame-libretro/mame2010/cfg
nvram_directory           RetroPie/roms/mame-libretro/mame2010/nvram

@markwkidd
Copy link
Contributor

It does seem like this should work by default like mame2003, which handles this more gracefully and in a cross-platform manner.

@raelgc
Copy link

raelgc commented Nov 24, 2017

mame2003 takes, by default, the current rom folder to create the mame2003 folder (with cfg, nvram and all related subfolders).

So, if you're using mame under roms/arcade, you'll get roms/arcade/mame2003/, if you're using mame under roms/libretro-mame, you'll get roms/libretro-mame/mame2003/.

@movisman
Copy link

@raelgc

Hi there,

Thanks for posting this workaround. So just to confirm, until the core is changed so the paths are more graceful, with your workaround, ultimately you end up with a mame.ini in your home folder, and then the other cfg and nvram paths in the more conventional place? And MAME no longer ignores the .ini for games like Operation Thunderbolt?

Thanks!

@raelgc
Copy link

raelgc commented Feb 10, 2018

Hi @movisman!

Yes, with the mame.ini in my home folder and the proper values for paths, it stopped to create the subdirs at home (i.e., it started to use the ini paths).

@movisman
Copy link

@raelgc

Perfect! Thanks a lot for the clarification. I will do this with my MAME 2010 instance to tidy things up a tad, until such a time comes where the paths are properly tidied up.

Thanks again!

@markwkidd
Copy link
Contributor

@sergiobenrocha2 or others in this discussion, I've submitted a PR that I hope addresses this issue and others caused by the way mame2010 handles paths: #83

I wound up touching several different source files. It all seems to work on my system but if you have the ability to test it out and confirm I'd appreciate it.

@markwkidd
Copy link
Contributor

@sergiobenrocha2 the PRs have been merged and I am hoping that this issue is now fully resolved. Please let me know if you notice other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants