Core: Fix variable naming conventions

[committer note: squashed two commits]
This commit is contained in:
Filippo Tarpini
2020-12-31 12:50:22 +02:00
committed by Léo Lam
parent ee25f03ff9
commit 3acd1726b9
2 changed files with 8 additions and 8 deletions

View File

@ -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);