mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CLuaInstance: Add script function 'channelRezap'
- Alternative rezap method for movie plugins
- Set Lua api version to 1.21
Origin commit data
------------------
Branch: ni/coolstream
Commit: b9afbb1e2c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-08 (Tue, 08 Dec 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -113,3 +113,11 @@ int CLuaInstance::zapitStopPlayBack(lua_State *L)
|
||||
g_Zapit->startPlayBack();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CLuaInstance::channelRezap(lua_State */*L*/)
|
||||
{
|
||||
CNeutrinoApp::getInstance()->channelRezap();
|
||||
if (CNeutrinoApp::getInstance()->getMode() == CNeutrinoApp::mode_radio)
|
||||
CFrameBuffer::getInstance()->showFrame("radiomode.jpg");
|
||||
return 0;
|
||||
}
|
||||
|
@@ -4,3 +4,4 @@ static int ShowPicture(lua_State *L);
|
||||
static int StopPicture(lua_State *L);
|
||||
static int PlayFile(lua_State *L);
|
||||
static int zapitStopPlayBack(lua_State *L);
|
||||
static int channelRezap(lua_State *L);
|
||||
|
@@ -589,6 +589,7 @@ const luaL_Reg CLuaInstance::methods[] =
|
||||
{ "StopPicture", CLuaInstance::StopPicture },
|
||||
{ "PlayFile", CLuaInstance::PlayFile },
|
||||
{ "zapitStopPlayBack", CLuaInstance::zapitStopPlayBack },
|
||||
{ "channelRezap", CLuaInstance::channelRezap },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
@@ -34,7 +34,7 @@ extern "C" {
|
||||
#include <vector>
|
||||
|
||||
#define LUA_API_VERSION_MAJOR 1
|
||||
#define LUA_API_VERSION_MINOR 19
|
||||
#define LUA_API_VERSION_MINOR 21
|
||||
|
||||
typedef std::pair<lua_Integer, Font*> fontmap_pair_t;
|
||||
typedef std::map<lua_Integer, Font*> fontmap_t;
|
||||
|
Reference in New Issue
Block a user