diff options
author | Xinerki <simasadves@gmail.com> | 2020-05-21 13:23:12 +0200 |
---|---|---|
committer | Xinerki <simasadves@gmail.com> | 2020-05-21 13:23:12 +0200 |
commit | 1cb7b9876fe8310d5f3f52324c6647874e4340aa (patch) | |
tree | 646fbeab0a0dac5da8ef791795458d64b31400b6 | |
parent | add freecam toggle in control settings (diff) | |
download | re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar.gz re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar.bz2 re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar.lz re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar.xz re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.tar.zst re3-1cb7b9876fe8310d5f3f52324c6647874e4340aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Game.cpp | 16 | ||||
-rw-r--r-- | src/core/Game.h | 2 | ||||
-rw-r--r-- | src/skel/win/win.cpp | 7 |
3 files changed, 25 insertions, 0 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp index 3f4a3217..d2f23b17 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -664,6 +664,22 @@ void CGame::Process(void) } } +void +CGame::InitAfterFocusLoss() +{ + /* + byte_869656 = byte_86969D; + result = cDMAudio::SetCurrent3DProvider(byte_86969D); + if ( !bGameStarted && !bMenuVisible ) + byte_869642 = 1; + */ + + //cDMAudio::SetCurrent3DProvider( ? ? ? ); + + if (!FrontEndMenuManager.m_bGameNotLoaded && !FrontEndMenuManager.m_bMenuActive) + CMenuManager::m_bStartUpFrontEndRequested = true; +} + bool CGame::CanSeeOutSideFromCurrArea(void) { diff --git a/src/core/Game.h b/src/core/Game.h index 6efacf8d..7ad8d55e 100644 --- a/src/core/Game.h +++ b/src/core/Game.h @@ -59,6 +59,8 @@ public: static void InitialiseWhenRestarting(void); static void Process(void); + static void InitAfterFocusLoss(void); + static bool IsInInterior(void) { return currArea != AREA_MAIN_MAP; } static bool CanSeeOutSideFromCurrArea(void); diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index f41b9ef8..8ae0ce6e 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -1222,6 +1222,13 @@ MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam) break; } + case 7: + { + debug("ALT TABBED! CGame::InitAfterFocusLoss() \n"); + CGame::InitAfterFocusLoss(); + break; + } + } /* |