Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Single button quick save / quick load in MAME  (Read 11457 times)

0 Members and 1 Guest are viewing this topic.

kenno

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 28, 2012, 03:38:53 am
  • I want to build my own arcade controls!
Single button quick save / quick load in MAME
« on: October 10, 2012, 01:58:13 am »
Hello,

I have been looking around a few forums trying to figure out how to get quick save / quick load working in MAME.
I can save / load using the default buttons but they prompt for which slot to save to / load from.
Is there something I'm missing in the configuration or something that can be modified within MAME to be able to do a quick save / load?

Thanks,

Ryan

Venomouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:September 12, 2013, 09:54:40 pm
  • I want to build my own arcade controls!
Re: Single button quick save / quick load in MAME
« Reply #1 on: November 07, 2012, 05:58:44 am »
I have my system setup with two keys mapped (1 button for save) always saves to slot 1) and one button to automatically load from slot one.

Press tab for settings >
Input General >
user Interface >
Set the Save state and Load state buttons here.

hope that helps Though I've probably missed what you meant :)

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Single button quick save / quick load in MAME
« Reply #2 on: December 02, 2012, 04:16:07 am »
you still need to press button 1 on the keyboard to save/load :(

how do you compile mame to set one quickload save and load?

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 25, 2024, 08:10:48 pm
  • ...
Re: Single button quick save / quick load in MAME
« Reply #3 on: December 02, 2012, 09:15:16 am »
you still need to press button 1 on the keyboard to save/load :(

how do you compile mame to set one quickload save and load?

I usually link to Mr. Do's compiling guide, but the site that hosts it is down temporarily.

You can try Headkaze's MAME compiler:
http://www.headsoft.com.au/index.php?category=mame&page=mc64

The changes will need to be made to the source code by hand before compiling.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Single button quick save / quick load in MAME
« Reply #4 on: December 03, 2012, 08:03:58 pm »
Thank you for the help but.....I dont know code so i have no idea what to add and where to add it too when re-compiling :(  I also want Z axis added as well.

byancey

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 35
  • Last login:October 07, 2023, 03:11:17 pm
  • I want to build my own arcade controls!
Re: Single button quick save / quick load in MAME
« Reply #5 on: January 10, 2015, 09:52:10 pm »
I realize this is an old thread, but I just ran into this issue myself on MAME v0.154.  There's still no support in MAME for a quick-load/quick-save function that is suitable to map to a single button on a control panel.   Since I build MAME from source, I went ahead and added support for this myself.  This effectively adds 3 load buttons and 3 save buttons that map to slots 1, 2, and 3 (same as hitting F7 followed by 1, 2, or 3 to load or SHIFT-F7 followed by 1, 2, 3 to save).  They are assigned to keys 1, 2, 3 and SHIFT-1, SHIFT-2, SHIFT-3 by default, but can be changed from the mame key mappings (TAB button menu). 

I've attached a patch file with the changes.  The patch file is based on v0.154 of mame.  Thought this might be useful for others who have the ability to re-build MAME themselves.  Even if you can't apply the patch directly, the changes are fairly easy to understand if you are familiar with C/C++.
« Last Edit: January 10, 2015, 10:00:03 pm by byancey »

vaderag

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:January 16, 2023, 05:11:02 am
  • Building my own cab :)
Re: Single button quick save / quick load in MAME
« Reply #6 on: November 02, 2022, 07:10:08 am »
Okay, really REALLY old thread but I'm going around in circles here...

I DEFINITELY had MAME saving with one button F5 and loading with F6 without any input for a number previously.
I don't recall compiling a new version of mame for this, yet I've just re-started building my cab and I can't find out how to do this... I don't think I used an AHK script either as I didn't ever see the popup

I've found a few threads on this (below) but no clear answer...
http://forum.arcadecontrols.com/index.php?topic=123140.0
http://forum.arcadecontrols.com/index.php?topic=114190.0
http://forum.arcadecontrols.com/index.php/topic,33233.0.html

Can anyone advise how to do this in the latest version of Mame?
Thanks!