diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-02 08:52:29 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-02 08:52:29 +0000 |
commit | 2481102c6541df37a773569dd4d67b579f04d819 (patch) | |
tree | c8dac50aac18414c42e8c024340eab7a6ee5ab32 /plugins/MirLua/src/mlua_console.cpp | |
parent | cea0c911bc4bb8d527739cbaf1a098ac2344a7d8 (diff) |
MirLua:
- removed console
- changed logging (via netlib)
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@14467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_console.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_console.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/MirLua/src/mlua_console.cpp b/plugins/MirLua/src/mlua_console.cpp deleted file mode 100644 index 428e43f585..0000000000 --- a/plugins/MirLua/src/mlua_console.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "stdafx.h"
-
-BOOL WINAPI ConsoleHandler(DWORD)
-{
- return TRUE;
-}
-
-CMLuaConsole::CMLuaConsole(lua_State *L)
- : L(L), hConsole(NULL)
-{
- if (db_get_b(NULL, MODULE, "ShowConsole", 0))
- {
- if (!AttachConsole(ATTACH_PARENT_PROCESS))
- {
- if (AllocConsole())
- {
- SetConsoleTitle(_T("MirLua Console"));
- freopen("CONOUT$", "w", stdout);
- hConsole = CreateConsoleScreenBuffer(GENERIC_READ | GENERIC_WRITE, 0, NULL, CONSOLE_TEXTMODE_BUFFER, NULL);
- if (HWND hConsoleWindow = GetConsoleWindow())
- {
- HMENU hConsoleMenu = GetSystemMenu(hConsoleWindow, FALSE);
- DeleteMenu(hConsoleMenu, SC_CLOSE, MF_BYCOMMAND);
- }
- SetConsoleCtrlHandler(ConsoleHandler, true);
- }
- }
- }
-}
-
-CMLuaConsole::~CMLuaConsole()
-{
- if (hConsole)
- CloseHandle(hConsole);
- FreeConsole();
-}
\ No newline at end of file |