summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/stdafx.h')
-rw-r--r--plugins/MirLua/src/stdafx.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/plugins/MirLua/src/stdafx.h b/plugins/MirLua/src/stdafx.h
index e91befca3d..676028d425 100644
--- a/plugins/MirLua/src/stdafx.h
+++ b/plugins/MirLua/src/stdafx.h
@@ -4,13 +4,16 @@
#include <windows.h>
#include <newpluginapi.h>
+#include <m_core.h>
+#include <m_utils.h>
#include <m_langpack.h>
+#include <m_folders.h>
-extern "C"
-{
- #include "lua\lua.h"
- #include "lua\lualib.h"
- #include "lua\lauxlib.h"
+extern "C"
+{
+ #include "lua\lua.h"
+ #include "lua\lualib.h"
+ #include "lua\lauxlib.h"
}
#include "version.h"
@@ -24,4 +27,12 @@ class CMLua;
extern HINSTANCE g_hInstance;
+#ifdef _UNICODE
+ #define COMMON_SCRIPTS_PATHT MIRANDA_PATHW L"\\Scripts"
+ #define CUSTOM_SCRIPTS_PATHT MIRANDA_USERDATAW L"\\Scripts"
+#else
+ #define COMMON_SCRIPTS_PATHT MIRANDA_PATH "\\Scripts"
+ #define CUSTOM_SCRIPTS_PATHT MIRANDA_USERDATA "\\Scripts"
+#endif
+
#endif //_COMMON_H_