Skip to content

Commit 057f32a

Browse files
authored
[Chores] Format code
1 parent e6af93a commit 057f32a

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/gui/gui.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void PCSX::GUI::init(std::function<void()> applyArguments) {
545545
if (vg) {
546546
g_system->findResource(
547547
[vg](auto path) -> bool {
548-
int res = nvgCreateFont(vg, "noto-sans-regular", (const char *)(path.u8string().c_str()));
548+
int res = nvgCreateFont(vg, "noto-sans-regular", (const char*)(path.u8string().c_str()));
549549
return res >= 0;
550550
},
551551
MAKEU8("NotoSans-Regular.ttf"), "fonts", std::filesystem::path("third_party") / "noto");

src/spu/registers.cc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ uint16_t PCSX::SPU::impl::readRegister(uint32_t reg) {
566566
return spuIrq;
567567
}
568568

569-
PCSX::PSXSPU_LOGGER::Log("SPU.read, regArea[%03x] = %04x\n",r, regArea[(r - 0xc00) >> 1]);
569+
PCSX::PSXSPU_LOGGER::Log("SPU.read, regArea[%03x] = %04x\n", r, regArea[(r - 0xc00) >> 1]);
570570
return regArea[(r - 0xc00) >> 1];
571571
}
572572

@@ -586,7 +586,7 @@ void PCSX::SPU::impl::SoundOn(int start, int end, uint16_t val) {
586586
void PCSX::SPU::impl::SoundOff(int start, int end, uint16_t val) {
587587
for (int ch = start; ch < end; ch++, val >>= 1) {
588588
if (val & 1) {
589-
if(s_chan[ch].data.get<Chan::Stop>().value != true) {
589+
if (s_chan[ch].data.get<Chan::Stop>().value != true) {
590590
PCSX::PSXSPU_LOGGER::Log("SPU.write, Voice %02i OFF\n", ch);
591591
}
592592
s_chan[ch].data.get<Chan::Stop>().value = true;
@@ -597,12 +597,12 @@ void PCSX::SPU::impl::SoundOff(int start, int end, uint16_t val) {
597597
// Set pitch modulation for voices [start, end] depending on val
598598
void PCSX::SPU::impl::FModOn(int start, int end, uint16_t val) {
599599
for (int ch = start; ch < end; ch++, val >>= 1) {
600-
if (val & 1) { // Check if modulation should be enabled for this voice
601-
if (ch > 0) { // Pitch modulation doesn't work for voice 0
600+
if (val & 1) { // Check if modulation should be enabled for this voice
601+
if (ch > 0) { // Pitch modulation doesn't work for voice 0
602602
if (s_chan[ch].data.get<Chan::FMod>().value != 1) {
603603
PCSX::PSXSPU_LOGGER::Log("SPU.write, Voice %02i Pitch Modulation ON\n", ch);
604604
}
605-
s_chan[ch].data.get<Chan::FMod>().value = 1; // sound channel
605+
s_chan[ch].data.get<Chan::FMod>().value = 1; // sound channel
606606
s_chan[ch - 1].data.get<Chan::FMod>().value = 2; // freq channel
607607
}
608608
} else {
@@ -624,7 +624,7 @@ void PCSX::SPU::impl::NoiseOn(int start, int end, uint16_t val) {
624624
}
625625
s_chan[ch].data.get<Chan::Noise>().value = true;
626626
} else {
627-
if(s_chan[ch].data.get<Chan::Noise>().value != false) {
627+
if (s_chan[ch].data.get<Chan::Noise>().value != false) {
628628
PCSX::PSXSPU_LOGGER::Log("SPU.write, Voice %02i Noise OFF\n", ch);
629629
}
630630
s_chan[ch].data.get<Chan::Noise>().value = false;
@@ -735,15 +735,12 @@ void PCSX::SPU::impl::ReverbOn(int start, int end, uint16_t val) {
735735
PCSX::PSXSPU_LOGGER::Log("SPU.write, Voice %02i Reverb ON\n", ch);
736736
}
737737
s_chan[ch].data.get<Chan::Reverb>().value = true;
738-
739-
}
740-
else
741-
{
738+
739+
} else {
742740
if (s_chan[ch].data.get<Chan::Reverb>().value != false) {
743741
PCSX::PSXSPU_LOGGER::Log("SPU.write, Voice %02i Reverb OFF\n", ch);
744742
}
745743
s_chan[ch].data.get<Chan::Reverb>().value = false;
746744
}
747-
748745
}
749746
}

0 commit comments

Comments
 (0)