summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-07-20 06:28:16 -0400
committer GitHub <noreply@github.com>2019-07-20 06:28:16 -0400
commitc53d835ff480a6715ece8af225c91929b264184b (patch)
tree505ae758a3c17ec5eb266c7c5e7aca1b8177116f
parent940d6b61dbf1978cf300c29852e85c9f6e6f8566 (diff)
parentc001f08c1e5b1f6e7ac9eafbdaff69e76333c46e (diff)
Merge pull request #5359 from npwoods/lua_effective_frameskip
Making video_manager::effective_frameskip() public and exposing via LUA
-rw-r--r--src/emu/video.cpp2
-rw-r--r--src/emu/video.h2
-rw-r--r--src/frontend/mame/luaengine.cpp1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp
index c4ade5f7948..2c1617e4fb2 100644
--- a/src/emu/video.cpp
+++ b/src/emu/video.cpp
@@ -788,7 +788,7 @@ inline bool video_manager::effective_autoframeskip() const
// forward
//-------------------------------------------------
-inline int video_manager::effective_frameskip() const
+int video_manager::effective_frameskip() const
{
// if we're fast forwarding, use the maximum frameskip
if (m_fastforward)
diff --git a/src/emu/video.h b/src/emu/video.h
index b0a67402424..b8b1c408773 100644
--- a/src/emu/video.h
+++ b/src/emu/video.h
@@ -82,6 +82,7 @@ public:
// current speed helpers
std::string speed_text();
double speed_percent() const { return m_speed_percent; }
+ int effective_frameskip() const;
// snapshots
void save_snapshot(screen_device *screen, emu_file &file);
@@ -116,7 +117,6 @@ private:
// effective value helpers
bool effective_autoframeskip() const;
- int effective_frameskip() const;
bool effective_throttle() const;
// speed and throttling helpers
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index f55be3c1e67..808d4314342 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -1851,6 +1851,7 @@ void lua_engine::initialize()
"skip_this_frame", &video_manager::skip_this_frame,
"speed_factor", &video_manager::speed_factor,
"speed_percent", &video_manager::speed_percent,
+ "effective_frameskip", &video_manager::effective_frameskip,
"frame_update", &video_manager::frame_update,
"size", [](video_manager &vm) {
s32 width, height;