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

Function movie_getname

src/lua-engine.cpp:3370–3378  ·  view source on GitHub ↗

movie.getname returns the filename of the movie loaded

Source from the content-addressed store, hash-verified

3368//
3369//returns the filename of the movie loaded
3370static int movie_getname (lua_State *L) {
3371
3372 if (!FCEUMOV_IsRecording() && !FCEUMOV_IsPlaying() && !FCEUMOV_Mode(MOVIEMODE_TASEDITOR))
3373 luaL_error(L, "No movie loaded.");
3374
3375 std::string name = FCEUI_GetMovieName();
3376 lua_pushstring(L, name.c_str());
3377 return 1;
3378}
3379
3380//movie.getfilename
3381//

Callers

nothing calls this directly

Calls 6

FCEUMOV_IsRecordingFunction · 0.85
FCEUMOV_IsPlayingFunction · 0.85
FCEUMOV_ModeFunction · 0.85
luaL_errorFunction · 0.85
FCEUI_GetMovieNameFunction · 0.85
lua_pushstringFunction · 0.85

Tested by

no test coverage detected