Jump to content
LaunchBox Community Forums

MAME cfg controls don't save if launched with launchbox


MrSco

Recommended Posts

i'm using tab key while in mame to set the controls and after exiting mame, it doesn't save the mame/cfg/*.cfg file if the mame64.exe was launched with LaunchBox (either by launching game or using right click menu and choosing "open mame"). If i launch mame64.exe manually the cfg's save just fine. I've tried running launchbox as admin (and also tried mame64.exe as admin too) but it doesn't make a difference. I've tested with both mame 0.160 and mame 0.212 ... same results. Launchbox is locking the cfg files down somehow when launched via launchbox... any ideas?

 

thanks

Link to comment
Share on other sites

5 minutes ago, MrSco said:

i'm using tab key while in mame to set the controls and after exiting mame, it doesn't save the mame/cfg/*.cfg file if the mame64.exe was launched with LaunchBox (either by launching game or using right click menu and choosing "open mame"). If i launch mame64.exe manually the cfg's save just fine. I've tried running launchbox as admin (and also tried mame64.exe as admin too) but it doesn't make a difference. I've tested with both mame 0.160 and mame 0.212 ... same results. Launchbox is locking the cfg files down somehow when launched via launchbox... any ideas?

 

thanks

Launchbox has no control over files in the emulator folders at all, you have something else strange going on here. I just tested here by launching Mortal Kombat 3 in MAME, i set my controls via Tab menu/Input (this machine) then quit MAME and it saved the control config just fine.

image.thumb.png.82c18eda1b3539ecf222a83d38ef446c.png

Link to comment
Share on other sites

I figured out what it was... me being dumb...

In my mame emulator setup in LB for autohotkey running script, I had...

$Esc::
{
     Process, Close, {{{StartupEXE}}}
}

I switched it to ... 

$Esc::
{
     WinClose, ahk_class MAME
}

and now the settings save when exiting mame via launchbox/bigbox.... the Process, Close method must not exit mame gracefully and therefor doesn't save anything. hope this saves someone else some time.

 

thanks everyone for the tips!

  • Like 3
Link to comment
Share on other sites

14 hours ago, DOS76 said:

If you are using the built in MAME UI cancel you can remove the script from that section completely but since you have it working I guess that isn't an issue.

yea, i am using built-in mame ui cancel, but i also have some xpadder stuff going on during launch/exit... i just didn't include in my examples for simplicity.

 

thanks for the help!

Link to comment
Share on other sites

  • 10 months later...
On 11/23/2019 at 5:35 PM, MrSco said:

I figured out what it was... me being dumb...

In my mame emulator setup in LB for autohotkey running script, I had...


$Esc::
{
     Process, Close, {{{StartupEXE}}}
}

I switched it to ... 


$Esc::
{
     WinClose, ahk_class MAME
}

and now the settings save when exiting mame via launchbox/bigbox.... the Process, Close method must not exit mame gracefully and therefor doesn't save anything. hope this saves someone else some time.

 

thanks everyone for the tips!

Thank you for this solution.  It also solved the problem for me.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...