Mercurial > mm7
comparison mm7_2.cpp @ 363:2bc1c8d68f41
Allocator and SpellCost Tip
author | Gloval |
---|---|
date | Fri, 22 Feb 2013 00:48:54 +0400 |
parents | 4a236657a0be |
children | 85edec9da96b |
comparison
equal
deleted
inserted
replaced
359:57d81602e72c | 363:2bc1c8d68f41 |
---|---|
11703 | 11703 |
11704 switch (Msg) | 11704 switch (Msg) |
11705 { | 11705 { |
11706 case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam); | 11706 case WM_SETTEXT: return DefWindowProcW(hWnd, Msg, wParam, lParam); |
11707 }; | 11707 }; |
11708 | |
11708 | 11709 |
11709 v4 = lParam; | 11710 v4 = lParam; |
11710 if ( Msg > WM_SYSCOMMAND ) | 11711 if ( Msg > WM_SYSCOMMAND ) |
11711 { | 11712 { |
11712 switch ( Msg ) | 11713 switch ( Msg ) |
12198 } | 12199 } |
12199 else | 12200 else |
12200 { | 12201 { |
12201 if ( !(dword_6BE364_game_settings_1 & 0x100) ) | 12202 if ( !(dword_6BE364_game_settings_1 & 0x100) ) |
12202 { | 12203 { |
12204 while(initing); //ADDED spinlock to allow int players ets! Gloval | |
12203 dword_4E98BC_bApplicationActive = 0; | 12205 dword_4E98BC_bApplicationActive = 0; |
12204 if ( (pVideoPlayer->pSmackerMovie || pVideoPlayer->pBinkMovie) && pVideoPlayer->bPlayingMovie ) | 12206 if ( (pVideoPlayer->pSmackerMovie || pVideoPlayer->pBinkMovie) && pVideoPlayer->bPlayingMovie ) |
12205 pVideoPlayer->bStopBeforeSchedule = 1; | 12207 pVideoPlayer->bStopBeforeSchedule = 1; |
12206 if (pAsyncMouse) | 12208 if (pAsyncMouse) |
12207 pAsyncMouse->Suspend(); | 12209 pAsyncMouse->Suspend(); |
12850 | 12852 |
12851 | 12853 |
12852 //----- (004651F4) -------------------------------------------------------- | 12854 //----- (004651F4) -------------------------------------------------------- |
12853 bool MM7_Initialize() | 12855 bool MM7_Initialize() |
12854 { | 12856 { |
12857 initing=true; //ADDED Gloval | |
12855 wchar_t pCurrentDir[1024]; | 12858 wchar_t pCurrentDir[1024]; |
12856 _wgetcwd(pCurrentDir, 1024); | 12859 _wgetcwd(pCurrentDir, 1024); |
12857 | 12860 |
12858 wchar_t pMM6IniFile[1024]; | 12861 wchar_t pMM6IniFile[1024]; |
12859 wsprintfW(pMM6IniFile, L"%s\\mm6.ini", pCurrentDir); | 12862 wsprintfW(pMM6IniFile, L"%s\\mm6.ini", pCurrentDir); |
13233 } | 13236 } |
13234 else | 13237 else |
13235 { | 13238 { |
13236 uTurnSpeed = (unsigned int)uCPUSpeed < 0xC7 ? 128 : 64; // adjust turn speed to estimated fps | 13239 uTurnSpeed = (unsigned int)uCPUSpeed < 0xC7 ? 128 : 64; // adjust turn speed to estimated fps |
13237 } | 13240 } |
13241 initing=false; //ADDED Gloval | |
13238 return true; | 13242 return true; |
13239 } | 13243 } |
13240 | 13244 |
13241 | 13245 |
13242 | 13246 |