movie.getname returns the filename of the movie loaded
| 3368 | // |
| 3369 | //returns the filename of the movie loaded |
| 3370 | static 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 | // |
nothing calls this directly
no test coverage detected