Inconsequential changes (no whitespace)

Remove useless semicolon, remove useless `? true : false`, move period to next
line
This commit is contained in:
YoshiRulz 2019-01-07 22:01:57 +10:00
parent 4a6a6079b0
commit c0a28a320b
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
14 changed files with 24 additions and 24 deletions

View File

@ -95,7 +95,7 @@ namespace BizHawk.Client.DiscoHawk
} }
var cueBin = boundDisc.DumpCueBin(boundDiscRecord.BaseName, GetCuePrefs()); var cueBin = boundDisc.DumpCueBin(boundDiscRecord.BaseName, GetCuePrefs());
txtCuePreview.Text = cueBin.cue.Replace("\n", "\r\n"); ; txtCuePreview.Text = cueBin.cue.Replace("\n", "\r\n");
} }
private void btnPresetCanonical_Click(object sender, EventArgs e) private void btnPresetCanonical_Click(object sender, EventArgs e)

View File

@ -350,8 +350,8 @@ namespace BizHawk.Client.EmuHawk
set set
{ {
var item = StartFromSlotBox.Items. var item = StartFromSlotBox.Items
OfType<object>() .OfType<object>()
.FirstOrDefault(o => o.ToString() == value); .FirstOrDefault(o => o.ToString() == value);
if (item != null) if (item != null)

View File

@ -159,7 +159,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
public void SRL_Func(ushort src) public void SRL_Func(ushort src)
{ {
FlagC = Regs[src].Bit(0) ? true : false; FlagC = Regs[src].Bit(0);
Regs[src] = (ushort)(Regs[src] >> 1); Regs[src] = (ushort)(Regs[src] >> 1);

View File

@ -267,7 +267,7 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
public void SRL_Func(ushort src) public void SRL_Func(ushort src)
{ {
FlagC = Regs[src].Bit(0) ? true : false; FlagC = Regs[src].Bit(0);
Regs[src] = (ushort)(Regs[src] >> 1); Regs[src] = (ushort)(Regs[src] >> 1);

View File

@ -249,7 +249,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
dCount = GetInt32(b, pos); dCount = GetInt32(b, pos);
initPulseLevel = (uint)((dCount & 0x80000000) == 0 ? 0 : 1); initPulseLevel = (uint)((dCount & 0x80000000) == 0 ? 0 : 1);
t.InitialPulseLevel = initPulseLevel == 1 ? true : false; t.InitialPulseLevel = initPulseLevel == 1;
dCount = (int)(dCount & 0x7FFFFFFF); dCount = (int)(dCount & 0x7FFFFFFF);
pos += 4; pos += 4;
@ -334,7 +334,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
var d = GetInt32(b, pos); var d = GetInt32(b, pos);
iniPulseLevel = ((d & 0x80000000) == 0 ? 0 : 1); iniPulseLevel = ((d & 0x80000000) == 0 ? 0 : 1);
t.InitialPulseLevel = iniPulseLevel == 1 ? true : false; t.InitialPulseLevel = iniPulseLevel == 1;
pCount = (d & 0x7FFFFFFF); pCount = (d & 0x7FFFFFFF);
// convert to tape block // convert to tape block

View File

@ -172,7 +172,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
byte cart_1 = header[0x35]; byte cart_1 = header[0x35];
byte cart_2 = header[0x36]; byte cart_2 = header[0x36];
_isPAL = (header[0x39] > 0) ? true : false; _isPAL = (header[0x39] > 0);
if (cart_2.Bit(1)) if (cart_2.Bit(1))
{ {

View File

@ -120,7 +120,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
if (addr < 0x2000) if (addr < 0x2000)
{ {
RAM_enable = ((value & 0xA) == 0xA) ? true : false; RAM_enable = ((value & 0xA) == 0xA);
} }
else if (addr < 0x4000) else if (addr < 0x4000)
{ {

View File

@ -81,7 +81,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
if ((addr & 0x100) == 0) if ((addr & 0x100) == 0)
{ {
RAM_enable = ((value & 0xA) == 0xA) ? true : false; RAM_enable = ((value & 0xA) == 0xA);
} }
} }
else if (addr < 0x4000) else if (addr < 0x4000)

View File

@ -142,7 +142,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
if (addr < 0x2000) if (addr < 0x2000)
{ {
RAM_enable = ((value & 0xA) == 0xA) ? true : false; RAM_enable = ((value & 0xA) == 0xA);
} }
else if (addr < 0x4000) else if (addr < 0x4000)
{ {

View File

@ -419,11 +419,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
case 5: case 5:
if ((instr_clocks >= 0) && (instr_clocks <= 7)) if ((instr_clocks >= 0) && (instr_clocks <= 7))
{ {
DO = ((Core.cart_RAM[EE_addr * 2 + 1] >> (7 - instr_clocks)) & 1) == 1 ? true : false; DO = ((Core.cart_RAM[EE_addr * 2 + 1] >> (7 - instr_clocks)) & 1) == 1;
} }
else if ((instr_clocks >= 8) && (instr_clocks <= 15)) else if ((instr_clocks >= 8) && (instr_clocks <= 15))
{ {
DO = ((Core.cart_RAM[EE_addr * 2] >> (15 - instr_clocks)) & 1) == 1 ? true : false; DO = ((Core.cart_RAM[EE_addr * 2] >> (15 - instr_clocks)) & 1) == 1;
} }
if (instr_clocks == 15) if (instr_clocks == 15)

View File

@ -451,7 +451,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
else if (addr == 0x200) else if (addr == 0x200)
{ {
IRQCount &= 0xFF00; IRQCount |= value; ; IRQCount &= 0xFF00; IRQCount |= value;
IRQSignal = false; IRQSignal = false;
} }

View File

@ -66,14 +66,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
//Console.WriteLine("IRQ GO: SL {0} val {1}", NES.ppu.ppur.status.sl, value); //Console.WriteLine("IRQ GO: SL {0} val {1}", NES.ppu.ppur.status.sl, value);
//break; //break;
case 0x1000: SetMirrorType(!value.Bit(0) ? EMirrorType.Vertical : EMirrorType.Horizontal);break; case 0x1000: SetMirrorType(!value.Bit(0) ? EMirrorType.Vertical : EMirrorType.Horizontal);break;
case 0x3000: chr[0] = value & chr_bank_mask_1k; ; break; case 0x3000: chr[0] = value & chr_bank_mask_1k; break;
case 0x3002: chr[1] = value & chr_bank_mask_1k; ; break; case 0x3002: chr[1] = value & chr_bank_mask_1k; break;
case 0x4000: chr[2] = value & chr_bank_mask_1k; ; break; case 0x4000: chr[2] = value & chr_bank_mask_1k; break;
case 0x4002: chr[3] = value & chr_bank_mask_1k; ; break; case 0x4002: chr[3] = value & chr_bank_mask_1k; break;
case 0x5000: chr[4] = value & chr_bank_mask_1k; ; break; case 0x5000: chr[4] = value & chr_bank_mask_1k; break;
case 0x5002: chr[5] = value & chr_bank_mask_1k; ; break; case 0x5002: chr[5] = value & chr_bank_mask_1k; break;
case 0x6000: chr[6] = value & chr_bank_mask_1k; ; break; case 0x6000: chr[6] = value & chr_bank_mask_1k; break;
case 0x6002: chr[7] = value & chr_bank_mask_1k; ; break; case 0x6002: chr[7] = value & chr_bank_mask_1k; break;
} }

View File

@ -307,7 +307,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
string str = "oamdata" + i.ToString() + "y"; string str = "oamdata" + i.ToString() + "y";
oam_byte = t_oam[i].oam_y; ser.Sync(str, ref oam_byte); t_oam[i].oam_y = oam_byte; oam_byte = t_oam[i].oam_y; ser.Sync(str, ref oam_byte); t_oam[i].oam_y = oam_byte;
str = "oamdata" + i.ToString() + "ind"; str = "oamdata" + i.ToString() + "ind";
oam_byte = t_oam[i].oam_ind; ; ser.Sync(str, ref oam_byte); t_oam[i].oam_ind = oam_byte; oam_byte = t_oam[i].oam_ind; ser.Sync(str, ref oam_byte); t_oam[i].oam_ind = oam_byte;
str = "oamdata" + i.ToString() + "attr"; str = "oamdata" + i.ToString() + "attr";
oam_byte = t_oam[i].oam_attr; ser.Sync(str, ref oam_byte); t_oam[i].oam_attr = oam_byte; oam_byte = t_oam[i].oam_attr; ser.Sync(str, ref oam_byte); t_oam[i].oam_attr = oam_byte;
str = "oamdata" + i.ToString() + "x"; str = "oamdata" + i.ToString() + "x";

View File

@ -78,7 +78,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
for (int i = 0; i < xpad; i++) for (int i = 0; i < xpad; i++)
*pdst++ = unchecked((int)0xff000000); *pdst++ = unchecked((int)0xff000000);
for (int i = 0; i < gpwidth; i++) for (int i = 0; i < gpwidth; i++)
*pdst++ = *psrc++; ; *pdst++ = *psrc++;
for (int i = 0; i < xpad2; i++) for (int i = 0; i < xpad2; i++)
*pdst++ = unchecked((int)0xff000000); *pdst++ = unchecked((int)0xff000000);
psrc += rinc; psrc += rinc;