From 007fa6ff42115065a1bf82e6ca931fde145047f5 Mon Sep 17 00:00:00 2001 From: Chev <11602755+chev2@users.noreply.github.com> Date: Sun, 10 Jan 2021 20:07:53 -0800 Subject: [PATCH] Remove Color class, add InvalidMagicException --- botw-toolset/Color.cs | 16 ---------------- botw-toolset/Exceptions/InvalidMagicException.cs | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 botw-toolset/Color.cs create mode 100644 botw-toolset/Exceptions/InvalidMagicException.cs diff --git a/botw-toolset/Color.cs b/botw-toolset/Color.cs deleted file mode 100644 index 58e0873..0000000 --- a/botw-toolset/Color.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace BOTWToolset -{ - struct Color - { - public byte R; - public byte G; - public byte B; - - public Color(byte r, byte g, byte b) - { - R = r; - G = g; - B = b; - } - } -} diff --git a/botw-toolset/Exceptions/InvalidMagicException.cs b/botw-toolset/Exceptions/InvalidMagicException.cs new file mode 100644 index 0000000..a42c8b6 --- /dev/null +++ b/botw-toolset/Exceptions/InvalidMagicException.cs @@ -0,0 +1,14 @@ +using System; + +namespace BOTWToolset.Exceptions +{ + /// + /// An exception that's thrown when the magic header in a file is not what was expected. + /// + class InvalidMagicException : Exception + { + public InvalidMagicException() : base() { } + public InvalidMagicException(string message) : base(message) { } + public InvalidMagicException(string message, Exception inner) : base(message, inner) { } + } +}