[Lint] Added InsertBraces to linter to unify codebase to one standard

This commit is contained in:
Gliniak
2026-05-08 18:47:25 +02:00
parent 2c68a2fc4b
commit 74f34818e7
39 changed files with 426 additions and 170 deletions

View File

@@ -124,7 +124,9 @@ ProcessAudioResult ProcessAudioLoop(AudioMediaPlayer* player,
}
ret = avcodec_receive_frame(avctx, frame);
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) break;
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
break;
}
if (ret < 0) {
XELOGW("Error during decoding: {:X}", ret);
break;

View File

@@ -273,7 +273,9 @@ void XAudio2AudioDriver::Resume() {
}
void XAudio2AudioDriver::SetVolume(float volume) {
if (cvars::mute) return;
if (cvars::mute) {
return;
}
if (api_minor_version_ >= 8) {
objects_.api_2_8.pcm_voice->SetVolume(volume);