This is tutorial for older releases to 0.170.
Newer Releases since 0.171 see
=edit mame sourcecode to disable nag screens and compile mame.exe (not using diff-patches):
01)
on x86 / 32bit-system download
msys32-2016-01-07.exeon x64 / 64bit-system download
msys64-2016-01-07.exe
02)
download
GnuWin (includes Patch.exe)download
Python (includes correct registry entries and path variables)
03)
Start Installation of patch-2.5.9-7-setup.exe (GnuWin)
and install to C:\gnu
all remaining settings leave as standard

04)
Start Installation of python-2.7.11.msi (Python)
and install to C:\Python27\
all remaining settings leave as standard
IMPORTANT: Select this option to yes : Add python.exe to Path

05)
on x86 / 32bit-system extract msys32-2016-01-07.exe to C:
on x64 / 64bit-system extract msys64-2016-01-07.exe to C:

( so you get folder
C:\msys32 or
C:\msys64 )


06)
After extraction is finished, you can either execute (whatever you prefered):
win32con.bat
or
win32env.bat
07)
After first start, exit the compiler-window by typing:
exit
or
clicking on X of compiler-window

08)
download
source code:
09)
execute:
mame0170s.exe
on x86 / 32bit-system extract to
C:\msys32\srcon x64 / 64bit-system extract to
C:\msys64\src

10)
Open the file ui.cpp with editor, notepad++, or another editor of your choice:
on x86 / 32bit-system C:\msys32\src\src\emu\ui\ui.cpp
on x64 / 64bit-system C:\msys64\src\src\emu\ui\ui.cpp

11)
Add in line #318 (it's a empty line)
from:
int state;
// disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
to:
int state;
show_gameinfo = show_warnings = show_disclaimer = show_mandatory_fileman = FALSE;
// disable everything if we are using -str for 300 or fewer seconds, or if we're the empty driver,
12)
Edit line #445, #446, #447 and #448 as a comment:
from:
if (osd_ticks() < m_popup_text_end)
draw_text_box(container, messagebox_poptext.c_str(), JUSTIFY_CENTER, 0.5f, 0.9f, messagebox_backcolor);
else
m_popup_text_end = 0;
to:
// if (osd_ticks() < m_popup_text_end)
// draw_text_box(container, messagebox_poptext.c_str(), JUSTIFY_CENTER, 0.5f, 0.9f, messagebox_backcolor);
// else
// m_popup_text_end = 0;
13)
Edit line #1291 as a comment:
from:
machine.ui().draw_text_box(container, messagebox_text.c_str(), JUSTIFY_LEFT, 0.5f, 0.5f, messagebox_backcolor);
to:
//machine.ui().draw_text_box(container, messagebox_text.c_str(), JUSTIFY_LEFT, 0.5f, 0.5f, messagebox_backcolor);
14)
Save and overwrite the file ui.cpp
15)
either you start:
win32con.bat
or
win32env.bat
16)
execute the following command if your compiling computer provides a quad-core-processor (-j5 means 5 jobs simultaneously):
make -j5

execute the following command if your compiling computer provides a dual-core-processor (-j3 means 3 jobs simultaneously):
make -j3

in all other cases:
make

17)
now wait, wait, wait, wait, wait (depends on your choice of the processor).
After finishing the compiling process, you'll find a new
mame.exe (or on x64-systems :
mame64.exe) in
C:\msys32\src (or on x64-systems :
C:\msys64\src )
IMPORTANT NOTE: Next time you'll compile the source code again, it doesn't take as long as the first time.
=patch with .diff and compile mame.exe (using .diff-file):
01)
on x86 / 32bit-system download
msys64-2016-01-07.exeon x64 / 64bit-system download
msys64-2016-01-07.exe
02)
download
GnuWin (includes Patch.exe)download
Python (includes correct registry entries and path variables
03)
Start Installation of patch-2.5.9-7-setup.exe (GnuWin)
and install to C:\gnu
all remaining settings leave as standard

04)
Start Installation of python-2.7.11.msi (Python)
and install to C:\Python27\
all remaining settings leave as standard
IMPORTANT: Select this option to yes : Add python.exe to Path

05)
on x86 / 32bit-system extract msys32-2016-01-07.exe to C:
on x64 / 64bit-system extract msys64-2016-01-07.exe to C:

( so you get folder
C:\msys32 or
C:\msys64 )


06)
After extraction is finished, you can either execute (whatever you prefered):
win32con.bat
or
win32env.bat
07)
After first start, exit the compiler-window by typing:
exit
or
clicking on X of compiler-window

08)
download
source code:
09)
execute:
mame0170s.exe
on x86 / 32bit-system extract to
C:\msys32\srcon x64 / 64bit-system extract to
C:\msys64\src

10)
download
.diff file here (current patchfile for Mame 0.170 is hi_170.txt )
11)
Rename hi_170.txt to hi_170.diff
12)
on x86 / 32bit-system move .diff-file to
C:\msys32on x64 / 64bit-system move .diff-file to
C:\msys64
13)
click start and type this command in search-field (just copy&paste and press enter):
on x86 / 32bit-system:cmd /k cd C:\msys32\src & C:\gnu\bin\patch.exe -p0 -E <C:\msys32\hi_170.diff
on x64 / 64bit-system:cmd /k cd C:\msys64\src & C:\gnu\bin\patch.exe -p0 -E <C:\msys64\hi_170.diff

14)
After finishing the patch-process, exit the cmd-window by exit command or clicking the x of compiler window

15)
Execute:
win32con.bat
or
win32env.bat
16)
execute the following command if your compiling computer provides a quad-core-processor (-j5 means 5 jobs simultaneously):
make -j5

execute the following command if your compiling computer provides a dual-core-processor (-j3 means 3 jobs simultaneously):
make -j3

in all other cases:
make

17)
Wait for finishing. Just copy the compiled
mame.exe (on x86 system) or
mame64.exe (on x64 system) to your mame-folder & overwrite existing one.
Now nag screens and loading messages are removed.
highscore support is added too (for further information please see :
http://forum.arcadecontrols.com/index.php/topic,64298.0.html )
IMPORTANT NOTE: All steps are tested and works on:
- Windows 7 32bit
- Win7 x64
- WinXP x86