input: remove unnecessary pointer since const exists in parameter.

This commit is contained in:
RadWolfie 2021-03-17 09:51:27 -05:00
parent 327490a8ed
commit 5c4e6945dc
3 changed files with 4 additions and 4 deletions

View File

@ -196,7 +196,7 @@ class EmuShared : public Mutex
// * Debugging flag Accessors
// ******************************************************************
void GetDebuggingFlag(bool *value) { Lock(); *value = m_bDebugging; Unlock(); }
void SetDebuggingFlag(const bool *value) { Lock(); m_bDebugging = *value; Unlock(); }
void SetDebuggingFlag(const bool value) { Lock(); m_bDebugging = value; Unlock(); }
#ifndef CXBX_LOADER // Temporary usage for cxbx.exe's emu
// ******************************************************************
// * Previous Memory Layout value Accessors
@ -246,7 +246,7 @@ class EmuShared : public Mutex
// * ClipCursor flag Accessors
// ******************************************************************
void GetClipCursorFlag(bool *value) { Lock(); *value = m_bClipCursor; Unlock(); }
void SetClipCursorFlag(const bool *value) { Lock(); m_bClipCursor = *value; Unlock(); }
void SetClipCursorFlag(const bool value) { Lock(); m_bClipCursor = value; Unlock(); }
// ******************************************************************
// * Reset specific variables to default for kernel mode.

View File

@ -1966,7 +1966,7 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar
else if (wParam == VK_F3)
{
g_bClipCursor = !g_bClipCursor;
g_EmuShared->SetClipCursorFlag(&g_bClipCursor);
g_EmuShared->SetClipCursorFlag(g_bClipCursor);
if (g_bClipCursor) {
CxbxClipCursor(hWnd);

View File

@ -2330,7 +2330,7 @@ void WndMain::StartEmulation(HWND hwndParent, DebuggerState LocalDebuggerState /
}
bool AttachLocalDebugger = (LocalDebuggerState == debuggerOn);
g_EmuShared->SetDebuggingFlag(&AttachLocalDebugger);
g_EmuShared->SetDebuggingFlag(AttachLocalDebugger);
/* Main process to generate emulation command line begin. */
// If we are adding more arguments, this is the place to do so.