CLuaInstance: The first call to Lua::PlayFile() block restoreNeutrino

- Running restoreNeutrino when exiting the plugin and
   function is blocked
 - Set Lua api version to 1.18
This commit is contained in:
M. Liebmann
2015-12-08 06:15:56 +01:00
parent 558fea4ec4
commit ffea6559c9
3 changed files with 26 additions and 1 deletions

View File

@@ -67,6 +67,14 @@ int CLuaInstance::PlayFile(lua_State *L)
return 0;
}
CLuaData *W = CheckData(L, 1);
if (!W)
return 0;
if (W->moviePlayerBlocked == false) {
CMoviePlayerGui::getInstance().setBlockedFromPlugin(true);
W->moviePlayerBlocked = true;
}
const char *title;
const char *info1 = "";
const char *info2 = "";