Hi Calamity, Just looking at your new GM 0.154 diff.
Specifically relating to the change in scope to OPTION_SYNCREFRESH
This is going to get messy, But please bear with me.
As of mame 153, The patch moves these options to /src/emu/emuopts
From:
pc:/home/Compile/mame0153.clean$ fgrep -r OPTION_SYNCREFRESH .
./src/osd/windows/winmain.h:#define WINOPTION_SYNCREFRESH "syncrefresh"
./src/osd/windows/winmain.h: bool sync_refresh() const { return bool_value(WINOPTION_SYNCREFRESH); }
./src/osd/windows/winmain.c: { WINOPTION_SYNCREFRESH ";srf", "0", OPTION_BOOLEAN, "enable using the start of VBLANK for throttling instead of the game time" },
./src/osd/sdl/osdsdl.h:#define SDLOPTION_SYNCREFRESH "syncrefresh"
./src/osd/sdl/osdsdl.h: bool sync_refresh() const { return bool_value(SDLOPTION_SYNCREFRESH); }
./src/osd/sdl/sdlmain.c: { SDLOPTION_SYNCREFRESH ";srf", "0", OPTION_BOOLEAN, "enable using the start of VBLANK for throttling instead of the game time" },
To:
pc:/home/Compile/mame0153.Hi_AGSND$ fgrep -r OPTION_SYNCREFRESH .
./src/emu/emuopts.h:#define OPTION_SYNCREFRESH "syncrefresh"
./src/emu/emuopts.h: bool sync_refresh() const { return bool_value(OPTION_SYNCREFRESH); }
./src/emu/emuopts.c: { OPTION_SYNCREFRESH ";srf", "0", OPTION_BOOLEAN, "enable using the start of VBLANK for throttling instead of the game time" },
However, Mame 0.154 has already moved these to /src/osd/osdepend
pc:/home/Compile/mame0154.clean$ fgrep -r OPTION_SYNCREFRESH .
./src/osd/osdepend.c: { OSDOPTION_SYNCREFRESH ";srf", "0", OPTION_BOOLEAN, "enable using the start of VBLANK for throttling instead of the game time" },
./src/osd/osdepend.h:#define OSDOPTION_SYNCREFRESH "syncrefresh"
./src/osd/osdepend.h: bool sync_refresh() const { return bool_value(OSDOPTION_SYNCREFRESH); }
Is there still need to move it to /src/emu/emuopts ?
Hope this makes sense - Though I'm no expert - I may be wrong in my understanding of things.
Also as the scope has changed, I don't think you need these two sections.
One:
diff -Nru ./src_0.154_hi/osd/windows/video.c ./src/osd/windows/video.c
--- ./src_0.154_hi/osd/windows/video.c 2014-07-29 10:29:17.000000000 +0200
+++ ./src/osd/windows/video.c 2014-07-29 10:29:57.000000000 +0200
@@ -410,7 +419,7 @@
video_config.mode = VIDEO_MODE_GDI;
}
video_config.waitvsync = options.wait_vsync();
- video_config.syncrefresh = options.sync_refresh();
+ video_config.syncrefresh = machine.options().sync_refresh();
video_config.triplebuf = options.triple_buffer();
video_config.switchres = options.switch_res();
Two:
diff -Nru ./src_0.154_hi/osd/sdl/video.c ./src/osd/sdl/video.c
--- ./src_0.154_hi/osd/sdl/video.c 2014-07-29 10:29:17.000000000 +0200
+++ ./src/osd/sdl/video.c 2014-07-29 12:01:47.000000000 +0200
@@ -692,12 +703,7 @@
video_config.centerh = options.centerh();
video_config.centerv = options.centerv();
video_config.waitvsync = options.wait_vsync();
- video_config.syncrefresh = options.sync_refresh();
- if (!video_config.waitvsync && video_config.syncrefresh)
- {
- osd_printf_warning("-syncrefresh specified without -waitsync. Reverting to -nosyncrefresh\n");
- video_config.syncrefresh = 0;
- }
+ video_config.syncrefresh = machine.options().sync_refresh();
#if (USE_OPENGL || SDLMAME_SDL2)
video_config.filter = options.filter();