From d1e9805f52b3881e5f54e2eb90a5f7ca2a8faff2 Mon Sep 17 00:00:00 2001 From: Phillip Smith <35803538+TimeTravelPenguin@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:00:18 +1100 Subject: [PATCH] updated project --- MupenSharp/MupenSharp/MupenSharp.csproj | 126 ++-- MupenSharp/MupenSharp/MupenSharp.xml | 603 +++++++++--------- MupenSharp/MupenSharp/Resources/Constants.cs | 17 +- .../Resources/ExceptionsResource.Designer.cs | 79 +-- .../Resources/ExceptionsResource.resx | 254 ++++---- global.json | 7 + 6 files changed, 540 insertions(+), 546 deletions(-) create mode 100644 global.json diff --git a/MupenSharp/MupenSharp/MupenSharp.csproj b/MupenSharp/MupenSharp/MupenSharp.csproj index ff1f994..b534ca5 100644 --- a/MupenSharp/MupenSharp/MupenSharp.csproj +++ b/MupenSharp/MupenSharp/MupenSharp.csproj @@ -1,69 +1,63 @@  - - netstandard2.1 - latest - en - Phillip Smith - Phillip Smith - .Net Standard library to read and write .m64 files for Mupen64 - nugetIcon.png - mupen, n64, m64 - true - https://github.com/TimeTravelPenguin/MupenSharp - https://github.com/TimeTravelPenguin/MupenSharp - true - 1.0.3.8 - Phillip Smith - - icon.ico - 1.0.3.8 - 1.0.3.8 - - - - bin\Debug\netstandard2.1\MupenSharp.xml - - - - true - bin\Release\netstandard2.1\MupenSharp.xml - - - - - - - - - - - - - - C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.ComponentModel.DataAnnotations.dll - - - - - - True - - - - - - - True - True - ExceptionsResource.resx - - - - - - ResXFileCodeGenerator - ExceptionsResource.Designer.cs - - + + netstandard2.1 + latest + en + Phillip Smith + Phillip Smith + .Net Standard library to read and write .m64 files for Mupen64 + nugetIcon.png + mupen, n64, m64 + true + https://github.com/TimeTravelPenguin/MupenSharp + https://github.com/TimeTravelPenguin/MupenSharp + true + 1.1.0 + Phillip Smith + + icon.ico + 1.1.0 + 1.1.0 + + + + bin\Debug\netstandard2.1\MupenSharp.xml + + + + true + bin\Release\netstandard2.1\MupenSharp.xml + + + + + + + + + + + + + + True + + + + + + + True + True + ExceptionsResource.resx + + + + + + ResXFileCodeGenerator + ExceptionsResource.Designer.cs + + \ No newline at end of file diff --git a/MupenSharp/MupenSharp/MupenSharp.xml b/MupenSharp/MupenSharp/MupenSharp.xml index 7316824..f6e720e 100644 --- a/MupenSharp/MupenSharp/MupenSharp.xml +++ b/MupenSharp/MupenSharp/MupenSharp.xml @@ -6,45 +6,45 @@ - Attribute used to specify a string encoding and byte size. + Attribute used to specify a string encoding and byte size. - Sets the string encoding type for reading and writing + Sets the string encoding type for reading and writing - The size of the string in bytes + The size of the string in bytes - Attribute used to specify a string encoding and byte size. + Attribute used to specify a string encoding and byte size. The type of encoding of the string. The number of bytes of the string. - Base class to implement INPC + Base class to implement INPC - The property changed event handler + The property changed event handler - Raises property changed event + Raises property changed event - Sets the value of a property and raises event changed if and only if the value is different + Sets the value of a property and raises event changed if and only if the value is different The field to set the value of @@ -54,290 +54,290 @@ - Enum for Analogue Inputs + Enum for Analogue Inputs - The horizontal analogue coordinate + The horizontal analogue coordinate - The vertical analogue coordinate + The vertical analogue coordinate - Enum to indicate a specific controller selection. + Enum to indicate a specific controller selection. - Controller in port one. Has offset 0. + Controller in port one. Has offset 0. - Controller in port two. Has offset 1. + Controller in port two. Has offset 1. - Controller in port three. Has offset 2. + Controller in port three. Has offset 2. - Controller in port four. Has offset 3. + Controller in port four. Has offset 3. - Controller button bit flags + Controller button bit flags - The C-Right button + The C-Right button - The C-Left button + The C-Left button - The C-Down button + The C-Down button - The C-Up button + The C-Up button - The right shoulder button + The right shoulder button - The left shoulder button + The left shoulder button - Reserved input 01 + Reserved input 01 - Reserved input 02 + Reserved input 02 - Right D-Pad button + Right D-Pad button - Left D-Pad button + Left D-Pad button - Down D-Pad button + Down D-Pad button - Up D-Pad button + Up D-Pad button - The Start button + The Start button - The Z button + The Z button - The B button + The B button - The A button + The A button - Properties to determine controller, controller memory pack, and controller rumble pack presence. + Properties to determine controller, controller memory pack, and controller rumble pack presence. - Presence flag for controller 1 + Presence flag for controller 1 - Presence flag for controller 2 + Presence flag for controller 2 - Presence flag for controller 3 + Presence flag for controller 3 - Presence flag for controller 4 + Presence flag for controller 4 - Presence flag for controller 1 memory pack + Presence flag for controller 1 memory pack - Presence flag for controller 2 memory pack + Presence flag for controller 2 memory pack - Presence flag for controller 3 memory pack + Presence flag for controller 3 memory pack - Presence flag for controller 4 memory pack + Presence flag for controller 4 memory pack - Presence flag for controller 1 rumble pack + Presence flag for controller 1 rumble pack - Presence flag for controller 2 rumble pack + Presence flag for controller 2 rumble pack - Presence flag for controller 3 rumble pack + Presence flag for controller 3 rumble pack - Presence flag for controller 4 rumble pack + Presence flag for controller 4 rumble pack - String encoding enums + String encoding enums - ASCII encoding + ASCII encoding - UTF-8 encoding + UTF-8 encoding - Known region codes for SM64 --- OBSOLETE + Known region codes for SM64 --- OBSOLETE - SM64 USA region code + SM64 USA region code - SM64 Japan region code + SM64 Japan region code - Region code for SM64 Ghost ROM hack v1 + Region code for SM64 Ghost ROM hack v1 - Region code for SM64 Ghost ROM hack v2 + Region code for SM64 Ghost ROM hack v2 - Exception to alert that the .m64 file version is not supported by this library. + Exception to alert that the .m64 file version is not supported by this library. - Exception to alert that the .m64 file version is not supported by this library. + Exception to alert that the .m64 file version is not supported by this library. - Exception to alert that the .m64 file version is not supported by this library. + Exception to alert that the .m64 file version is not supported by this library. The exception message - Exception for when a file's frame count and header frame count property do not match + Exception for when a file's frame count and header frame count property do not match - Raises an exception to indicate there is an invalid frame count + Raises an exception to indicate there is an invalid frame count - Raises an exception to indicate there is an invalid frame count + Raises an exception to indicate there is an invalid frame count - Exception to alert there is no controller present for the .m64 file + Exception to alert there is no controller present for the .m64 file - Exception to alert there is no controller present for the .m64 file + Exception to alert there is no controller present for the .m64 file - Exception to alert there is no controller present for the .m64 file + Exception to alert there is no controller present for the .m64 file The exception message - Extension methods for . + Extension methods for. - Read a single byte from a given offset of a binary stream. + Read a single byte from a given offset of a binary stream. The binary reader. The offset byte to read onward from. @@ -345,7 +345,7 @@ - Reads a number of bytes from a given offset of a binary stream. + Reads a number of bytes from a given offset of a binary stream. The binary reader. The offset byte to read onward from. @@ -354,31 +354,41 @@ - Reads 4 bytes from a given offset of a binary stream and returns it as an . + Reads 4 bytes from a given offset of a binary stream and returns it as an. The binary reader. The offset byte to read onward from. - Returns the read value. + Returns the read + + value. + - Reads 4 bytes from a given offset of a binary stream and returns it as an . + Reads 4 bytes from a given offset of a binary stream and returns it as an. The binary reader. The offset byte to read onward from. - Returns the read value. + Returns the read + + value. + - Reads 2 bytes from a given offset of a binary stream and returns it as an . + Reads 2 bytes from a given offset of a binary stream and returns it as an. The binary reader. The offset byte to read onward from. - Returns the read value. + Returns the read + + value. + - Reads a number of bytes from a given offset of a binary stream and returns it as a string with a specific encoding. + Reads a number of bytes from a given offset of a binary stream and returns it as a string with a + specific encoding. The binary reader. The offset byte to read onward from. @@ -388,12 +398,12 @@ - Extension methods for . + Extension methods for. - Join a collection of elements and return them as a comma-separated string. + Join a collection of elements and return them as a comma-separated string. The object type contained by the IEnumerable. The collection of elements to join. @@ -402,56 +412,65 @@ - Check all elements of the collection are equal to a given value. + Check all elements of the collection are equal to a given value. - The element type of the IEnumerable that inherits . + The element type of the IEnumerable that inherits. + The collection of elements which will be equated. The value to equate each element of the collection to. - True if all elements equate to . + True if all elements equate + + to. + - Extension methods for type . + Extension methods for type. - Returns an array of type containing values. + Returns an array of type + + containing + + values. - The element type of the array + The element type of the array - Returns an array of type + Returns an array of type + - Parser object that can read and write a .m64 file + Parser object that can read and write a .m64 file - Parses the file . + Parses the file. The path of the .m64 file Returns object with data of parsed file - Parser Interface for all m64 file versions + Parser Interface for all m64 file versions - Create an object containing data of a specific m64 file + Create an object containing data of a specific m64 file The file to parse - Validates a file is a valid m64 file. + Validates a file is a valid m64 file. The m64 file to validate. True if the file is valid. @@ -462,17 +481,17 @@ - Raises exception if the header's frame count does not match the file body length + Raises exception if the header's frame count does not match the file body length - Static class string encoder helper + Static class string encoder helper - Encode a byte array with a particular . + Encode a byte array with a particular. Byte array to be encoded The encoding type. @@ -480,401 +499,408 @@ - M64 file interface + M64 file interface - Version number. Should be 3. + Version number. Should be 3. - The number of frames (vertical interrupts). + The number of frames (vertical interrupts). - The number of file rerecords. + The number of file rerecords. - Frames (vertical interrupts) per second. + Frames (vertical interrupts) per second. - The number of controllers enabled for the file. + The number of controllers enabled for the file. - The movie start type. - - - - Value - - - Description - - - - 1 - - movie begins from snapshot (the snapshot will be loaded from an external file with the movie filename. - and a .st extension) - - - - 2 - - movie begins from power-on - - - - other values - - invalid movie - - - + The movie start type. + + + + Value + + + Description + + + + 1 + + movie begins from snapshot (the snapshot will be loaded from an external file with the movie + filename. + and a .st extension) + + + + 2 + + movie begins from power-on + + + + other values + + invalid movie + + + - Flags set for each controller. - - - bit 0 - - Controller 1 present - - - - bit 4 - - Controller 1 has mempak - - - - bit 8 - - Controller 1 has rumblepak - - - - +1..3 for controllers 2..4. + Flags set for each controller. + + + bit 0 + + Controller 1 present + + + + bit 4 + + Controller 1 has mempak + + + + bit 8 + + Controller 1 has rumblepak + + + + +1..3 for controllers 2..4. - The internal name of ROM used when recording, directly from ROM. + The internal name of ROM used when recording, directly from ROM. - The name of video plugin used when recording, directly from plugin + The name of video plugin used when recording, directly from plugin - The name of audio plugin used when recording, directly from plugin + The name of audio plugin used when recording, directly from plugin - The name of input plugin used when recording, directly from plugin + The name of input plugin used when recording, directly from plugin - The name of rsp plugin used when recording, directly from plugin + The name of rsp plugin used when recording, directly from plugin - CRC32 of ROM used when recording, directly from ROM. + CRC32 of ROM used when recording, directly from ROM. - The country code of ROM used when recording, directly from ROM. + The country code of ROM used when recording, directly from ROM. - The movie description info. + The movie description info. - The collection of controller inputs every input frame and controller, - containing analogue x, y positions and buttons pressed. + The collection of controller inputs every input frame and controller, + containing analogue x, y positions and buttons pressed. - The number of input samples from the controllers. + The number of input samples from the controllers. - The Author info of the movie. + The Author info of the movie. - A wrapper for controller input for a particular frame + A wrapper for controller input for a particular frame - The analogue x coordinate + The analogue x coordinate - The analogue y coordinate + The analogue y coordinate - The array of bytes representing the combination of buttons pressed + The array of bytes representing the combination of buttons pressed - InputModel representing data contained within an .m64 file. + InputModel representing data contained within an .m64 file. - A 4-byte value containing X and Y analogue positions, and the XOR of buttons pressed. - The first two bytes are the XOR of the buttons, followed by the X and Y inputs - represented by 1-byte each. - - - Given the input 0xC0182541, this can be seen as: - - - Button Flags - 2-bytes = C0 18 - - - X Analogue - 1-byte = 25 - - - Y Analogue - 1-byte = 41 - - - - - When reading from an .m64 file from offset 0x400, 4-bytes at a time, the following code works if the - hex input is NOT REVERSED. - + A 4-byte value containing X and Y analogue positions, and the XOR of buttons pressed. + The first two bytes are the XOR of the buttons, followed by the X and Y inputs + represented by 1-byte each. + + + Given the input 0xC0182541, this can be seen as: + + + Button Flags + 2-bytes = C0 18 + + + X Analogue + 1-byte = 25 + + + Y Analogue + 1-byte = 41 + + + + + When reading from an .m64 file from offset 0x400, 4-bytes at a time, the following code works if the + hex input is NOT REVERSED. + - Sets a controller input to be either pressed or unpressed + Sets a controller input to be either pressed or unpressed The button type to set The state the button is to be set - Returns the state of a particular button + Returns the state of a particular button True is button is pressed - Override to return string of analogue inputs and buttons pressed + Override to return string of analogue inputs and buttons pressed - Returns a string of pressed button inputs + Returns a string of pressed button inputs - Implicitly converts a array into an . + Implicitly converts a + + array into an. - Explicitly converts an array into a . + Explicitly converts an + + array into a. - Stores data of a .m64 file. - Refer to the header documentation for more - information. + Stores data of a .m64 file. + Refer to the header documentation + for more + information. - The UID of the movie. + The UID of the movie. - The internal name of ROM used when recording, directly from ROM. + The internal name of ROM used when recording, directly from ROM. - The name of video plugin used when recording, directly from plugin + The name of video plugin used when recording, directly from plugin - The name of audio plugin used when recording, directly from plugin + The name of audio plugin used when recording, directly from plugin - The name of input plugin used when recording, directly from plugin + The name of input plugin used when recording, directly from plugin - The name of rsp plugin used when recording, directly from plugin + The name of rsp plugin used when recording, directly from plugin - The collection of controller inputs every input frame and controller, - containing analogue x, y positions and buttons pressed. + The collection of controller inputs every input frame and controller, + containing analogue x, y positions and buttons pressed. - Version number. Should be 3. + Version number. Should be 3. - The number of frames (vertical interrupts). + The number of frames (vertical interrupts). - The number of file rerecords. + The number of file rerecords. - Frames (vertical interrupts) per second. + Frames (vertical interrupts) per second. - The number of controllers enabled for the file. + The number of controllers enabled for the file. - The movie start type. - - - - Value - - - Description - - - - 1 - - movie begins from snapshot (the snapshot will be loaded from an external file with the movie filename. - and a .st extension) - - - - 2 - - movie begins from power-on - - - - other values - - invalid movie - - - + The movie start type. + + + + Value + + + Description + + + + 1 + + movie begins from snapshot (the snapshot will be loaded from an external file with the movie + filename. + and a .st extension) + + + + 2 + + movie begins from power-on + + + + other values + + invalid movie + + + - Flags set for each controller. - - - bit 0 - - Controller 1 present - - - - bit 4 - - Controller 1 has mempak - - - - bit 8 - - Controller 1 has rumblepak - - - - +1..3 for controllers 2..4. + Flags set for each controller. + + + bit 0 + + Controller 1 present + + + + bit 4 + + Controller 1 has mempak + + + + bit 8 + + Controller 1 has rumblepak + + + + +1..3 for controllers 2..4. - CRC32 of ROM used when recording, directly from ROM. + CRC32 of ROM used when recording, directly from ROM. - The country code of ROM used when recording, directly from ROM. + The country code of ROM used when recording, directly from ROM. - The movie description info. + The movie description info. - The number of input samples from the controllers (for one controller). + The number of input samples from the controllers (for one controller). - The Author info of the movie. + The Author info of the movie. - Object wrapper to encapsulate the data of a .m64 file + Object wrapper to encapsulate the data of a .m64 file - Get the input of a particular controller. + Get the input of a particular controller. The controller to get the input of. The input frame of interest. @@ -882,85 +908,86 @@ - Get all inputs for a given controller. + Get all inputs for a given controller. The controller to get the inputs. Returns the inputs of the given controller. - Constant variables class + Constant variables class - The first four byte of a valid .m64 file + The first four byte of a valid .m64 file - A strongly-typed resource class, for looking up localized strings, etc. + A strongly-typed resource class, for looking up localized strings, etc. - Returns the cached ResourceManager instance used by this class. + Returns the cached ResourceManager instance used by this class. - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. - Looks up a localized string similar to {0} is null. + Looks up a localized string similar to {0} is null. - Looks up a localized string similar to Value cannot be null or whitespace.. + Looks up a localized string similar to Value cannot be null or whitespace.. - Looks up a localized string similar to The file path has not been set. + Looks up a localized string similar to The file path has not been set. - Looks up a localized string similar to The array is of an invalid length. The byte[] should be of length 4.. + Looks up a localized string similar to The array is of an invalid length. The byte[] should be of length + 4.. - Looks up a localized string similar to The given encoding type is invalid. + Looks up a localized string similar to The given encoding type is invalid. - Looks up a localized string similar to The file path is invalid.. + Looks up a localized string similar to The file path is invalid.. - Looks up a localized string similar to The given file is not a m64 file. + Looks up a localized string similar to The given file is not a m64 file. - Looks up a localized string similar to '{0}' is null. + Looks up a localized string similar to '{0}' is null. - Looks up a localized string similar to Registry does not contain the requested key. + Looks up a localized string similar to Registry does not contain the requested key. - Looks up a localized string similar to Registry already contains the given key. + Looks up a localized string similar to Registry already contains the given key. diff --git a/MupenSharp/MupenSharp/Resources/Constants.cs b/MupenSharp/MupenSharp/Resources/Constants.cs index c83ce18..589f72c 100644 --- a/MupenSharp/MupenSharp/Resources/Constants.cs +++ b/MupenSharp/MupenSharp/Resources/Constants.cs @@ -14,16 +14,15 @@ #endregion -namespace MupenSharp.Resources +namespace MupenSharp.Resources; + +/// +/// Constant variables class +/// +internal static class Constants { - /// - /// Constant variables class - /// - internal static class Constants - { /// - /// The first four byte of a valid .m64 file + /// The first four bytes of a valid .m64 file /// - public static readonly byte[] ValidM64Signature = {0x4D, 0x36, 0x34, 0x1A}; - } + public static readonly byte[] ValidM64Signature = [0x4D, 0x36, 0x34, 0x1A]; } \ No newline at end of file diff --git a/MupenSharp/MupenSharp/Resources/ExceptionsResource.Designer.cs b/MupenSharp/MupenSharp/Resources/ExceptionsResource.Designer.cs index 23fc342..9aff5f5 100644 --- a/MupenSharp/MupenSharp/Resources/ExceptionsResource.Designer.cs +++ b/MupenSharp/MupenSharp/Resources/ExceptionsResource.Designer.cs @@ -1,7 +1,6 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -12,46 +11,32 @@ namespace MupenSharp.Resources { using System; - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class ExceptionsResource { - private static global::System.Resources.ResourceManager resourceMan; + private static System.Resources.ResourceManager resourceMan; - private static global::System.Globalization.CultureInfo resourceCulture; + private static System.Globalization.CultureInfo resourceCulture; - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal ExceptionsResource() { } - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Resources.ResourceManager ResourceManager { get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MupenSharp.Resources.ExceptionsResource", typeof(ExceptionsResource).Assembly); + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("MupenSharp.Resources.ExceptionsResource", typeof(ExceptionsResource).Assembly); resourceMan = temp; } return resourceMan; } } - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -60,72 +45,48 @@ internal ExceptionsResource() { } } - /// - /// Looks up a localized string similar to {0} is null.. - /// internal static string ArgumentIsNull { get { return ResourceManager.GetString("ArgumentIsNull", resourceCulture); } } - /// - /// Looks up a localized string similar to Value cannot be null or whitespace.. - /// internal static string CannotBeNullOrWhitespace { get { return ResourceManager.GetString("CannotBeNullOrWhitespace", resourceCulture); } } - /// - /// Looks up a localized string similar to The array is of an invalid length. The byte[] should be of length 4.. - /// internal static string InputArrayInvalidLength { get { return ResourceManager.GetString("InputArrayInvalidLength", resourceCulture); } } - /// - /// Looks up a localized string similar to The given encoding type is invalid.. - /// - internal static string InvalidEncodingType { - get { - return ResourceManager.GetString("InvalidEncodingType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The file path is invalid.. - /// internal static string InvalidFilePath { get { return ResourceManager.GetString("InvalidFilePath", resourceCulture); } } - /// - /// Looks up a localized string similar to The given file is not a m64 file.. - /// - internal static string NotM64 { + internal static string InvalidEncodingType { get { - return ResourceManager.GetString("NotM64", resourceCulture); + return ResourceManager.GetString("InvalidEncodingType", resourceCulture); } } - /// - /// Looks up a localized string similar to '{0}' is null.. - /// internal static string NullReference { get { return ResourceManager.GetString("NullReference", resourceCulture); } } - /// - /// Looks up a localized string similar to A reserved offset has a value that is non-zero.. - /// + internal static string NotM64 { + get { + return ResourceManager.GetString("NotM64", resourceCulture); + } + } + internal static string ReservedOffsetValueInvalid { get { return ResourceManager.GetString("ReservedOffsetValueInvalid", resourceCulture); diff --git a/MupenSharp/MupenSharp/Resources/ExceptionsResource.resx b/MupenSharp/MupenSharp/Resources/ExceptionsResource.resx index 7c75fb9..8a3e08d 100644 --- a/MupenSharp/MupenSharp/Resources/ExceptionsResource.resx +++ b/MupenSharp/MupenSharp/Resources/ExceptionsResource.resx @@ -1,145 +1,151 @@  - - - - - - - + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, + PublicKeyToken=b77a5c561934e089 + + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, + PublicKeyToken=b77a5c561934e089 + + + {0} is null. - String interpolation + String interpolation - + Value cannot be null or whitespace. - + The array is of an invalid length. The byte[] should be of length 4. - + The file path is invalid. - + The given encoding type is invalid. - + '{0}' is null. - + The given file is not a m64 file. - + A reserved offset has a value that is non-zero. \ No newline at end of file diff --git a/global.json b/global.json new file mode 100644 index 0000000..2ddda36 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "8.0.0", + "rollForward": "latestMinor", + "allowPrerelease": false + } +} \ No newline at end of file