Updated Hi_Score Patch 0.172d.txtFor end users, skip_gameinfo needs to be set in mame.ini
For maintainers, The suppression patches have been simplified.
Key points of Rev D* KISS Philosopy applied to suppression patches - Making them simple & easy to maintain.
* Suppression & Hi_Score code separated in both diff & source files.
* Detailed explanation of suppression patches.
* Hi_Score code unaltered.
There are two areas to deal with regarding suppression of messages.
Note: The depth of patch is important, We want to keep it moderate as to not make the patch too abstract.
1. The Initializing, Loading & Decrypting messages.
2. The Warning (User input to continue) messages.
1. The Initializing, Loading & Decrypting messages.These messages are sent via different subroutines to the "set_startup_text" function.
fgrep "ui().set_startup_text" * -R
emu/machine.cpp: ui().set_startup_text("Initializing...", true);
emu/romload.cpp: machine().ui().set_startup_text(buffer, false);
mame/machine/cps2crpt.cpp: machine.ui().set_startup_text(loadingMessage,FALSE);
The current patch disables the message at each subroutine.
The natural progression is to follow the path and disable at the "set_startup_text" function.
This also has the benifit of being simpler and not interfering with the Hi_Score patch files.
The new method disables all the messages by immediately returning from the "set_startup_text" function call.
2. The Warning (User input to continue) messages.These messages are all sent via the "display_startup_screens" function.
The old patch disables all interactive messages regardless of message type.
1. show_warnings
2. show_gameinfo
3. show_mandatory_fileman (Mess related notice, May be ignored/omitted)
The new method targets show_warnings only, And will still display game_info if enabled.
(skip_gameinfo may be enabled/disabled by the standard Mame configuration option)
Build Notes:
This patch has been built under the MinGW (Windows) environment and can be used by either Windows or SDL users.
Patch Notes:
The patch has been built on a Win7 64bit system in the MinGW environment (
http://mamedev.org/tools/)
The patch has been compiled/tested on a Win7 64bit system.
The patch has been compiled/tested on a Linux 32bit system.
Mac has not been tested.