yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

compressor: Simplify memset in InitializeCompressorEffect

Provides equivalent behavior while being significantly smaller.
This commit is contained in:
Lioncash 2022-09-13 13:34:56 -04:00
parent fd876f200f
commit f08046f4d7
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ static void SetCompressorEffectParameter(const CompressorInfo::ParameterVersion2
static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params, static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state) { CompressorInfo::State& state) {
std::memset(&state, 0, sizeof(CompressorInfo::State)); state = {};
state.unk_00 = 0; state.unk_00 = 0;
state.unk_04 = 1.0f; state.unk_04 = 1.0f;