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: Overclocking menu with the ~ key.  (Read 1736 times)

0 Members and 1 Guest are viewing this topic.

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Overclocking menu with the ~ key.
« on: October 06, 2009, 04:08:23 am »
Hi. I use the overclocking feature very frequently. Now, they have removed it from the ~ key menu to the slider controls menu. Do you know how I could revert this to the old way. Or, even better and possibly easier, just replace the call from the ~ key to master volume and put the overclocking slider there instead? Any idea what file has to be modified for this? Thanx a lot.

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Re: Overclocking menu with the ~ key.
« Reply #1 on: October 06, 2009, 06:38:23 am »
I've found out some information:

In 127u1 they move the on screen display to slider controls
In 127u6 they remove the use of the ~ key
In 128u5 they restore the master volume to the ~ key

I'e downloaded the 128u5 diff, trying to guess the lines where they restore the master volume and I've found this for ui.c

   /* if the on-screen display isn't up and the user has toggled it, turn it on */
   if ((machine->debug_flags & DEBUG_FLAG_ENABLED) == 0 && ui_input_pressed(machine, IPT_UI_ON_SCREEN_DISPLAY))
      return ui_set_handler(ui_slider_ui_handler, 1);

If you edit 134 source, you can indeed see those lines in ui.c. I wonder what happens if I change ui_slider_ui_handler, 1 with a different number. I can't wait to arrive home to try it.

njay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 466
  • Last login:February 08, 2022, 06:49:35 am
  • To Nudge or Not to Nudge !
Re: Overclocking menu with the ~ key.
« Reply #2 on: October 06, 2009, 06:55:12 am »
guess you also must find out if the ~ key is not used for something else in the newer mame versions

Mini Pinball Project [Finished]:
http://forum.arcadecontrols.com/index.php?topic=98826.0

Cab Convert To HyperSpin [Sold due to Move]
http://forum.arcadecontrols.com/index.php?topic=101535.0

New Project - Bartop [Planning Stage]
http://forum.arcadecontrols.com/index.php?topic=105894

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Re: Overclocking menu with the ~ key.
« Reply #3 on: October 06, 2009, 06:57:45 am »
What do you mean?

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Re: Overclocking menu with the ~ key.
« Reply #4 on: October 07, 2009, 01:23:23 am »
      return ui_set_handler(ui_slider_ui_handler, 1);

Definitely, that's the line to edit. I have changed it with other lines and the behaviour of the ~ key changes to, for instance, displaying the save game dialogue. However, I've tried everything for the overclocking menu and no results. Ant idea? Could anyone who can read C, take a look at ui.c and see how to call the overclock slider from there? thanx.