Mercurial > mm7
changeset 2443:1e1b2728b3d3
moved pKeyActionMap
author | Ritor1 |
---|---|
date | Wed, 23 Jul 2014 17:34:47 +0600 |
parents | 22ac062b40f7 |
children | c59a8fddb5e8 |
files | Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Keyboard.cpp OSWindow.cpp Timer.cpp mm7_2.cpp |
diffstat | 5 files changed, 7 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Wed Jul 23 16:06:33 2014 +0600 +++ b/Build/Visual Studio 2010/World of Might and Magic.vcxproj.user Wed Jul 23 17:34:47 2014 +0600 @@ -3,7 +3,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <LocalDebuggerWorkingDirectory>..\..\..\MM_VII</LocalDebuggerWorkingDirectory> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> - <LocalDebuggerCommandArguments>-nomarg, -novideo</LocalDebuggerCommandArguments> + <LocalDebuggerCommandArguments>-nomarg,</LocalDebuggerCommandArguments> <LocalDebuggerCommand>$(OutDir)$(TargetName)$(TargetExt)</LocalDebuggerCommand> </PropertyGroup> </Project> \ No newline at end of file
--- a/Keyboard.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/Keyboard.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -134,6 +134,8 @@ ResetKeys(); + uNumKeysPressed = 0; + uGameMenuUI_CurentlySelectedKeyIdx = -1; } // 506E68: using guessed type int uGameMenuUI_CurentlySelectedKeyIdx;
--- a/OSWindow.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/OSWindow.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -394,7 +394,7 @@ return *result = 0, true; } - return false; + return *result = 0, false; } @@ -479,7 +479,7 @@ if (window && window->api_handle == hwnd) //Uninitialized memory access { LPARAM result; - if (window->WinApiMessageProc(msg, wparam, lparam, &result)) + if (window->WinApiMessageProc(msg, wparam, lparam, &result))//Unhandled application exception return result; } //Функция DefWindowProc вызывается оконной процедурой по умолчанию, чтобы обеспечить обработку по умолчанию любого
--- a/Timer.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/Timer.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -43,7 +43,6 @@ } } - //----- (00426363) -------------------------------------------------------- void Timer::Resume() {
--- a/mm7_2.cpp Wed Jul 23 16:06:33 2014 +0600 +++ b/mm7_2.cpp Wed Jul 23 17:34:47 2014 +0600 @@ -1459,7 +1459,7 @@ MM6_Initialize(pMM6IniFile); - pKeyActionMap = new KeyboardActionMapping; + //pKeyActionMap = new KeyboardActionMapping; // _CrtDumpMemoryLeaks(); OnTimer(1); @@ -1757,13 +1757,6 @@ //----- (00465D0B) -------------------------------------------------------- void SecondaryInitialization() { - //__int16 v4; // ax@4 - //signed int v5; // esi@5 - //int v6; // ecx@6 - //int v7; // edx@7 - //ObjectDesc *v8; // eax@7 - //char pContainer[32]; // [sp+10h] [bp-Ch]@9 - pMouse->Initialize(window); pItemsTable = new ItemsTable; @@ -2041,7 +2034,7 @@ uCPUSpeed = 2048; // about 2GHz //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF );//Ritor1: for memory test(для проверки памяти) - + pKeyActionMap = new KeyboardActionMapping; if (!MM7_Initialize(640, 480))//задаётся размер окна { Log::Warning(L"MM init: failed");