Commit e9168d27 authored by nanahira's avatar nanahira

detect operating system

parent b919099c
...@@ -700,6 +700,11 @@ interpreter::interpreter(duel* pd): coroutines(256) { ...@@ -700,6 +700,11 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal(lua_state, "HINT_SOUND"); lua_setglobal(lua_state, "HINT_SOUND");
lua_pushinteger(lua_state, HINT_MUSIC_OGG); lua_pushinteger(lua_state, HINT_MUSIC_OGG);
lua_setglobal(lua_state, "HINT_MUSIC_OGG"); lua_setglobal(lua_state, "HINT_MUSIC_OGG");
//detect operating system
#ifdef _WIN32
lua_pushboolean(lua_state, 1);
lua_setglobal(lua_state, "_WIN32");
#endif
//load init.lua by MLD //load init.lua by MLD
load_script((char*) "./expansions/script/init.lua"); load_script((char*) "./expansions/script/init.lua");
} }
......
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