Core: Fix variable naming conventions
[committer note: squashed two commits]
This commit is contained in:
parent
ee25f03ff9
commit
3acd1726b9
|
@ -39,7 +39,7 @@ static void TryToConnectBalanceBoard(std::unique_ptr<Wiimote>);
|
|||
static bool TryToConnectWiimoteToSlot(std::unique_ptr<Wiimote>&, unsigned int);
|
||||
static void HandleWiimoteDisconnect(int index);
|
||||
|
||||
static bool g_real_wiimotes_initialized = false;
|
||||
static bool s_real_wiimotes_initialized = false;
|
||||
|
||||
// This is used to store connected Wiimotes' IDs, so we don't connect
|
||||
// more than once to the same device.
|
||||
|
@ -807,7 +807,7 @@ void LoadSettings()
|
|||
// config dialog calls this when some settings change
|
||||
void Initialize(::Wiimote::InitializeMode init_mode)
|
||||
{
|
||||
if (!g_real_wiimotes_initialized)
|
||||
if (!s_real_wiimotes_initialized)
|
||||
{
|
||||
s_wiimote_scanner.StartThread();
|
||||
}
|
||||
|
@ -829,12 +829,12 @@ void Initialize(::Wiimote::InitializeMode init_mode)
|
|||
}
|
||||
}
|
||||
|
||||
if (g_real_wiimotes_initialized)
|
||||
if (s_real_wiimotes_initialized)
|
||||
return;
|
||||
|
||||
NOTICE_LOG_FMT(WIIMOTE, "WiimoteReal::Initialize");
|
||||
|
||||
g_real_wiimotes_initialized = true;
|
||||
s_real_wiimotes_initialized = true;
|
||||
}
|
||||
|
||||
// called on emulation shutdown
|
||||
|
@ -848,7 +848,7 @@ void Stop()
|
|||
// called when the Dolphin app exits
|
||||
void Shutdown()
|
||||
{
|
||||
g_real_wiimotes_initialized = false;
|
||||
s_real_wiimotes_initialized = false;
|
||||
s_wiimote_scanner.StopThread();
|
||||
|
||||
NOTICE_LOG_FMT(WIIMOTE, "WiimoteReal::Shutdown");
|
||||
|
|
|
@ -99,11 +99,11 @@ enum
|
|||
STATE_LOAD = 2,
|
||||
};
|
||||
|
||||
static bool g_use_compression = true;
|
||||
static bool s_use_compression = true;
|
||||
|
||||
void EnableCompression(bool compression)
|
||||
{
|
||||
g_use_compression = compression;
|
||||
s_use_compression = compression;
|
||||
}
|
||||
|
||||
// Returns true if state version matches current Dolphin state version, false otherwise.
|
||||
|
@ -358,7 +358,7 @@ static void CompressAndDumpState(CompressAndDumpState_args save_args)
|
|||
// Setting up the header
|
||||
StateHeader header{};
|
||||
SConfig::GetInstance().GetGameID().copy(header.gameID, std::size(header.gameID));
|
||||
header.size = g_use_compression ? (u32)buffer_size : 0;
|
||||
header.size = s_use_compression ? (u32)buffer_size : 0;
|
||||
header.time = Common::Timer::GetDoubleTime();
|
||||
|
||||
f.WriteArray(&header, 1);
|
||||
|
|
Loading…
Reference in New Issue