Commit a5e18f06 authored by fallenstardust's avatar fallenstardust

sync ocgcore

parent acc061c4
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "ocgapi.h" #include "ocgapi.h"
int32_t scriptlib::debug_message(lua_State *L) { int32_t scriptlib::debug_message(lua_State *L) {
check_param_count(L, 1);
duel* pduel = interpreter::get_duel_info(L); duel* pduel = interpreter::get_duel_info(L);
lua_getglobal(L, "tostring"); lua_getglobal(L, "tostring");
lua_pushvalue(L, -2); lua_pushvalue(L, -2);
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "ocgapi.h" #include "ocgapi.h"
#ifdef _IRR_ANDROID_PLATFORM_ #ifdef _IRR_ANDROID_PLATFORM_
int32_t scriptlib::duel_load_script(lua_State *L) { int32_t scriptlib::duel_load_script(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_STRING, 1); check_param(L, PARAM_TYPE_STRING, 1);
...@@ -25,11 +24,8 @@ int32_t scriptlib::duel_load_script(lua_State *L) { ...@@ -25,11 +24,8 @@ int32_t scriptlib::duel_load_script(lua_State *L) {
lua_pushboolean(L, pduel->lua->load_script(filename)); lua_pushboolean(L, pduel->lua->load_script(filename));
return 1; return 1;
} }
#endif #endif
int32_t scriptlib::duel_enable_global_flag(lua_State *L) { int32_t scriptlib::duel_enable_global_flag(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
int32_t flag = (int32_t)lua_tointeger(L, 1); int32_t flag = (int32_t)lua_tointeger(L, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment