summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/stdafx.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-05-20 21:10:10 +0300
committeraunsane <aunsane@gmail.com>2018-05-20 21:34:31 +0300
commita955d18f62f335f84e0926f351eb85d78224cba6 (patch)
tree7bd4d30040ec32bba5949dd2245cb68617fb4192 /plugins/MirLua/src/stdafx.h
parent46363eef857b69761f1d6d28da5a53a954f76900 (diff)
MirLua: project reordering
Diffstat (limited to 'plugins/MirLua/src/stdafx.h')
-rw-r--r--plugins/MirLua/src/stdafx.h63
1 files changed, 11 insertions, 52 deletions
diff --git a/plugins/MirLua/src/stdafx.h b/plugins/MirLua/src/stdafx.h
index f97ecd09de..e8a358ac24 100644
--- a/plugins/MirLua/src/stdafx.h
+++ b/plugins/MirLua/src/stdafx.h
@@ -10,8 +10,10 @@
#include <m_core.h>
#include <m_utils.h>
#include <m_langpack.h>
+#include <m_database.h>
#include <m_options.h>
#include <m_netlib.h>
+#include <m_genmenu.h>
#include <m_http.h>
#include <m_clist.h>
#include <m_hotkeys.h>
@@ -35,24 +37,18 @@
class CMLuaScript;
-#include "mlua.h"
-#include "mlua_environment.h"
-#include "mlua_script.h"
-#include "mlua_function_loader.h"
-#include "mlua_module_loader.h"
-#include "mlua_script_loader.h"
-#include "mlua_options.h"
-#include "mlua_metatable.h"
+#include "mplugin.h"
+#include "modules.h"
+#include "environment.h"
+#include "script.h"
+#include "function_loader.h"
+#include "module_loader.h"
+#include "script_loader.h"
+#include "options.h"
+#include "metatable.h"
#define MODULENAME "MirLua"
-struct CMPlugin : public PLUGIN<CMPlugin>
-{
- CMPlugin();
-};
-
-extern CMLua *g_mLua;
-
extern int hMLuaLangpack;
extern HANDLE g_hCLibsFolder;
@@ -65,43 +61,6 @@ extern HANDLE g_hScriptsFolder;
/* modules */
-#define MLUA_CORE "m_core"
-LUAMOD_API int (luaopen_m_core)(lua_State *L);
-
-#define MLUA_CHAT "m_chat"
-LUAMOD_API int (luaopen_m_chat)(lua_State *L);
-
-#define MLUA_CLIST "m_clist"
-LUAMOD_API int (luaopen_m_clist)(lua_State *L);
-
-#include "m_database.h"
-
-#define MLUA_ICOLIB "m_icolib"
-LUAMOD_API int (luaopen_m_icolib)(lua_State *L);
-
-#include "m_json.h"
-
-#include "m_genmenu.h"
-
-#define MLUA_HTTP "m_http"
-LUAMOD_API int (luaopen_m_http)(lua_State *L);
-
-#define MLUA_HOTKEYS "m_hotkeys"
-LUAMOD_API int (luaopen_m_hotkeys)(lua_State *L);
-
-#define MLUA_MESSAGE "m_message"
-LUAMOD_API int (luaopen_m_message)(lua_State *L);
-
-#define MLUA_OPTIONS "m_options"
-LUAMOD_API int (luaopen_m_options)(lua_State *L);
-
-#include "m_protocols.h"
-
-#define MLUA_SOUNDS "m_sounds"
-LUAMOD_API int (luaopen_m_sounds)(lua_State *L);
-
-#define MLUA_SRMM "m_srmm"
-LUAMOD_API int (luaopen_m_srmm)(lua_State *L);
/* utils */