diff --git a/BizHawk.Client.EmuHawk/AVOut/FFmpegWriter.cs b/BizHawk.Client.EmuHawk/AVOut/FFmpegWriter.cs index 4f07b1bf6e..0dbfc5cc1e 100644 --- a/BizHawk.Client.EmuHawk/AVOut/FFmpegWriter.cs +++ b/BizHawk.Client.EmuHawk/AVOut/FFmpegWriter.cs @@ -276,7 +276,7 @@ namespace BizHawk.Client.EmuHawk public void SetAudioParameters(int sampleRate, int channels, int bits) { if (bits != 16) - throw new ArgumentOutOfRangeException("sampling depth must be 16 bits!"); + throw new ArgumentOutOfRangeException("bits", "Sampling depth must be 16 bits!"); this.sampleRate = sampleRate; this.channels = channels; } diff --git a/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs b/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs index d04ab43e29..ec622a9aee 100644 --- a/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs +++ b/BizHawk.Client.EmuHawk/AVOut/NutMuxer.cs @@ -106,7 +106,7 @@ namespace BizHawk.Client.EmuHawk static void WriteVarU(int v, Stream stream) { if (v < 0) - throw new ArgumentOutOfRangeException("unsigned must be non-negative"); + throw new ArgumentOutOfRangeException("v", "unsigned must be non-negative"); WriteVarU((ulong)v, stream); } @@ -116,7 +116,7 @@ namespace BizHawk.Client.EmuHawk static void WriteVarU(long v, Stream stream) { if (v < 0) - throw new ArgumentOutOfRangeException("unsigned must be non-negative"); + throw new ArgumentOutOfRangeException("v", "unsigned must be non-negative"); WriteVarU((ulong)v, stream); } diff --git a/BizHawk.Client.EmuHawk/AVOut/NutWriter.cs b/BizHawk.Client.EmuHawk/AVOut/NutWriter.cs index 011b5d8ee0..97d6c3ab2a 100644 --- a/BizHawk.Client.EmuHawk/AVOut/NutWriter.cs +++ b/BizHawk.Client.EmuHawk/AVOut/NutWriter.cs @@ -112,7 +112,7 @@ namespace BizHawk.Client.EmuHawk public void SetAudioParameters(int sampleRate, int channels, int bits) { if (bits != 16) - throw new ArgumentOutOfRangeException("audio depth must be 16 bit!"); + throw new ArgumentOutOfRangeException("bits", "Audio depth must be 16 bit!"); this.sampleRate = sampleRate; this.channels = channels; } diff --git a/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs b/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs index b930feed1e..10c3b5dd78 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/MsgBox.cs @@ -136,7 +136,7 @@ namespace BizHawk.Client.EmuHawk.CustomControls public void SetButtons(string[] names, DialogResult[] results, int def) { if (names == null) - throw new ArgumentNullException("btnText", "Button Text is null"); + throw new ArgumentNullException("names", "Button Text is null"); int count = names.Length; diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.IGBAGPUViewable.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.IGBAGPUViewable.cs index 6a79fd5ae5..183f53e49b 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.IGBAGPUViewable.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/Meteor.IGBAGPUViewable.cs @@ -31,7 +31,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA { if (scanline < 0 || scanline > 227) { - throw new ArgumentOutOfRangeException("Scanline must be in [0, 227]!"); + throw new ArgumentOutOfRangeException("scanline", "Scanline must be in [0, 227]!"); } if (callback == null) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/VBANext.IGBAGPUViewable.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/VBANext.IGBAGPUViewable.cs index e8640455db..6acde38273 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/VBANext.IGBAGPUViewable.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/VBANext.IGBAGPUViewable.cs @@ -25,7 +25,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA { if (scanline < 0 || scanline > 227) { - throw new ArgumentOutOfRangeException("Scanline must be in [0, 227]!"); + throw new ArgumentOutOfRangeException("scanline", "Scanline must be in [0, 227]!"); } if (callback == null) { diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/Gambatte.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/Gambatte.cs index 94e05d6e2e..f96685a4b2 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/Gambatte.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/Gambatte.cs @@ -520,7 +520,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy LibGambatte.gambatte_setscanlinecallback(GambatteState, scanlinecb, line); } else - throw new ArgumentOutOfRangeException("line must be in [0, 153]"); + { + throw new ArgumentOutOfRangeException("line", "line must be in [0, 153]"); + } } LibGambatte.ScanlineCallback scanlinecb;