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: Save and Pause Diff  (Read 1418 times)

0 Members and 1 Guest are viewing this topic.

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Save and Pause Diff
« on: July 22, 2013, 08:38:31 pm »
I put together this diff for MAME .149.

It does 2 things:
1. writes "GAME PAUSED" on the screen when a game is paused. This is because too often I thought MAME had frozen so I'd quit out - or worse, a family member would quit out.
2. It defaults all saves to a single file location per game. This is so you can have a dedicated SAVE and LOAD button that doesn't require you to follow up with a location. The downside is you get only one save per game.

I've used this before (MAME .99). I have not tested it with .149. Will likely test soon. In the meantime, I've attached the patch. :)
Joseph Elwell.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: Save and Pause Diff
« Reply #1 on: July 23, 2013, 08:06:35 am »
These two mods seem like awesome additions! Honestly, one save slot is all you should need.

Will this mod work with any other versions of mame, such as .148 by any chance?

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Re: Save and Pause Diff
« Reply #2 on: July 29, 2013, 12:51:04 am »
These two mods seem like awesome additions! Honestly, one save slot is all you should need.

Will this mod work with any other versions of mame, such as .148 by any chance?

It's likely to work fine with .148. Not a lot of changes are made between versions.  I don't have the 148 source to try it out on.

The pause text is 2 lines of code (and one comment line) added to /src/emu/ui.c in this function : ui_update_and_render
Quote
+      // JOEY added text so it doesn't look like MAME froze!
+                astring pauseText = "GAME PAUSED";
+                ui_draw_text_box(container, pauseText, JUSTIFY_CENTER, 0.5f, 0.9f, messagebox_backcolor);
The save state changes involves removing all the file location code in the /src/emu/ui.c in this function: handler_load_save. Also one (and one comment) line was added in place of all the removed lines:
Quote
+   // JOEY only one save location, because there's only one SAVE button!
+   file = 'a';
Joseph Elwell.