Add Lua function movie.read_rtc()
This commit is contained in:
parent
54e0ed37e0
commit
0fb3536c7a
1 changed files with 6 additions and 0 deletions
|
@ -48,4 +48,10 @@ namespace
|
|||
}
|
||||
return 1;
|
||||
});
|
||||
|
||||
function_ptr_luafun rrc("movie.read_rtc", [](lua_State* LS, const std::string& fname) -> int {
|
||||
lua_pushnumber(LS, our_movie.rtc_second);
|
||||
lua_pushnumber(LS, our_movie.rtc_subsecond);
|
||||
return 2;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue