aboutsummaryrefslogtreecommitdiff
path: root/src/content_object.h
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2014-03-21 20:12:13 +0000
committerSfan5 <sfan5@live.de>2014-03-24 19:56:36 +0100
commit564e11fc2f3731383cecedac8aade4dd9ecdc243 (patch)
treefb34f84e7d62f18589b677d52b233ce8d8f6738d /src/content_object.h
parent5bd9c236d563f3c5a6e268abb13f291a915cde1c (diff)
downloadminetest-564e11fc2f3731383cecedac8aade4dd9ecdc243.tar.gz
minetest-564e11fc2f3731383cecedac8aade4dd9ecdc243.tar.bz2
minetest-564e11fc2f3731383cecedac8aade4dd9ecdc243.zip
Fix merge mistake when/* Minete
Diffstat (limited to 'src/content_object.h')
0 files changed, 0 insertions, 0 deletions
l be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "cpp_api/s_mainmenu.h" #include "cpp_api/s_internal.h" #include "common/c_converter.h" void ScriptApiMainMenu::setMainMenuErrorMessage(std::string errormessage) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "gamedata"); int gamedata_idx = lua_gettop(L); lua_pushstring(L, "errormessage"); lua_pushstring(L, errormessage.c_str()); lua_settable(L, gamedata_idx); lua_pop(L, 1); } void ScriptApiMainMenu::handleMainMenuEvent(std::string text) { SCRIPTAPI_PRECHECKHEADER // Get handler function lua_getglobal(L, "core"); lua_getfield(L, -1, "event_handler"); lua_remove(L, -2); // Remove core if (lua_isnil(L, -1)) { lua_pop(L, 1); // Pop event_handler return; }