string movie.mode() Returns "taseditor", "record", "playback", "finished" or nil
| 3261 | // |
| 3262 | // Returns "taseditor", "record", "playback", "finished" or nil |
| 3263 | int 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 | |
| 3279 | static int movie_rerecordcounting(lua_State *L) { |
nothing calls this directly
no test coverage detected