Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: jelwell 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.
-
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?
-
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
+ // 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:
+ // JOEY only one save location, because there's only one SAVE button!
+ file = 'a';
Joseph Elwell.