MCPcopy Create free account
hub / github.com/TASEmulators/fceux / movie_mode

Function movie_mode

src/lua-engine.cpp:3263–3276  ·  view source on GitHub ↗

string movie.mode() Returns "taseditor", "record", "playback", "finished" or nil

Source from the content-addressed store, hash-verified

3261//
3262// Returns "taseditor", "record", "playback", "finished" or nil
3263int movie_mode(lua_State *L)
3264{
3265 if (FCEUMOV_Mode(MOVIEMODE_TASEDITOR))
3266 lua_pushstring(L, "taseditor");
3267 else if (FCEUMOV_IsRecording())
3268 lua_pushstring(L, "record");
3269 else if (FCEUMOV_IsFinished())
3270 lua_pushstring(L, "finished"); //Note: this comes before playback since playback checks for finished as well
3271 else if (FCEUMOV_IsPlaying())
3272 lua_pushstring(L, "playback");
3273 else
3274 lua_pushnil(L);
3275 return 1;
3276}
3277
3278
3279static int movie_rerecordcounting(lua_State *L) {

Callers

nothing calls this directly

Calls 6

FCEUMOV_ModeFunction · 0.85
lua_pushstringFunction · 0.85
FCEUMOV_IsRecordingFunction · 0.85
FCEUMOV_IsFinishedFunction · 0.85
FCEUMOV_IsPlayingFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected