diff --git a/AVTools.MpegUtils/FFMpegException.cs b/AVTools.MpegUtils/FFMpegException.cs index 02c51b8..68d307a 100644 --- a/AVTools.MpegUtils/FFMpegException.cs +++ b/AVTools.MpegUtils/FFMpegException.cs @@ -2,11 +2,11 @@ namespace AVTools.MpegUtils { - [Serializable] - public class FfMpegException : Exception - { - public FfMpegException(string string0) : base(string0) - { - } - } -} + [Serializable] + public class FfMpegException : Exception + { + public FfMpegException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/Compression.Tar/TarException.cs b/Compression.Tar/TarException.cs index 643b08f..76c60fb 100644 --- a/Compression.Tar/TarException.cs +++ b/Compression.Tar/TarException.cs @@ -3,19 +3,20 @@ namespace Compression.Tar { - [Serializable] - public class TarException : SharpZipBaseException - { - public TarException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base(serializationInfo0, streamingContext0) - { - } + [Serializable] + public class TarException : SharpZipBaseException + { + public TarException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base( + serializationInfo0, streamingContext0) + { + } - public TarException() - { - } + public TarException() + { + } - public TarException(string string0) : base(string0) - { - } - } -} + public TarException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/Compression.Zip/ZipException.cs b/Compression.Zip/ZipException.cs index 4c9492d..2c00d61 100644 --- a/Compression.Zip/ZipException.cs +++ b/Compression.Zip/ZipException.cs @@ -3,19 +3,20 @@ namespace Compression.Zip { - [Serializable] - public class ZipException : SharpZipBaseException - { - public ZipException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base(serializationInfo0, streamingContext0) - { - } + [Serializable] + public class ZipException : SharpZipBaseException + { + public ZipException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base( + serializationInfo0, streamingContext0) + { + } - public ZipException() - { - } + public ZipException() + { + } - public ZipException(string string0) : base(string0) - { - } - } -} + public ZipException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/Compression/SharpZipBaseException.cs b/Compression/SharpZipBaseException.cs index 41a01db..692beaa 100644 --- a/Compression/SharpZipBaseException.cs +++ b/Compression/SharpZipBaseException.cs @@ -3,19 +3,20 @@ namespace Compression { - [Serializable] - public class SharpZipBaseException : ApplicationException - { - public SharpZipBaseException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base(serializationInfo0, streamingContext0) - { - } + [Serializable] + public class SharpZipBaseException : ApplicationException + { + public SharpZipBaseException(SerializationInfo serializationInfo0, StreamingContext streamingContext0) : base( + serializationInfo0, streamingContext0) + { + } - public SharpZipBaseException() - { - } + public SharpZipBaseException() + { + } - public SharpZipBaseException(string string0) : base(string0) - { - } - } -} + public SharpZipBaseException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Class1.cs b/GHNamespace1/Class1.cs index 0334434..1e178ac 100644 --- a/GHNamespace1/Class1.cs +++ b/GHNamespace1/Class1.cs @@ -2,13 +2,13 @@ namespace GHNamespace1 { - public class Class1 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] - public struct Struct0 - { - } + public class Class1 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] + public struct Struct0 + { + } - public static Struct0 Struct00; - } -} + public static Struct0 Struct00; + } +} \ No newline at end of file diff --git a/GHNamespace1/Class10.cs b/GHNamespace1/Class10.cs index 0e20a17..5f78e63 100644 --- a/GHNamespace1/Class10.cs +++ b/GHNamespace1/Class10.cs @@ -3,160 +3,167 @@ namespace GHNamespace1 { - public class Class10 - { - public struct Struct6 - { - public int Int0; + public class Class10 + { + public struct Struct6 + { + public int Int0; - public int Int1; - } + public int Int1; + } - public struct Struct7 - { - public Struct6 Struct60; + public struct Struct7 + { + public Struct6 Struct60; - public long Long0; + public long Long0; - public Guid Guid0; + public Guid Guid0; - public Struct6 Struct61; + public Struct6 Struct61; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public Struct6 Struct62; + public Struct6 Struct62; - public string String0; + public string String0; - public int Int3; + public int Int3; - public int Int4; - } + public int Int4; + } - [Guid("0000000c-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - [ComImport] - public interface Interface0 - { - void imethod_0(IntPtr pv, uint cb, out uint pcbRead); + [Guid("0000000c-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + [ComImport] + public interface Interface0 + { + void imethod_0(IntPtr pv, uint cb, out uint pcbRead); - void imethod_1(IntPtr pv, uint cb, out uint pcbWritten); + void imethod_1(IntPtr pv, uint cb, out uint pcbWritten); - void imethod_2(long dlibMove, uint dwOrigin, out ulong plibNewPosition); + void imethod_2(long dlibMove, uint dwOrigin, out ulong plibNewPosition); - void imethod_3(ulong libNewSize); + void imethod_3(ulong libNewSize); - void imethod_4(Interface0 pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten); + void imethod_4(Interface0 pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten); - void imethod_5(uint grfCommitFlags); + void imethod_5(uint grfCommitFlags); - void imethod_6(); + void imethod_6(); - void imethod_7(ulong libOffset, ulong cb, uint dwLockType); + void imethod_7(ulong libOffset, ulong cb, uint dwLockType); - void imethod_8(ulong libOffset, ulong cb, uint dwLockType); + void imethod_8(ulong libOffset, ulong cb, uint dwLockType); - void imethod_9(out Struct7 pstatstg, uint grfStatFlag); + void imethod_9(out Struct7 pstatstg, uint grfStatFlag); - void imethod_10(out Interface0 ppstm); - } + void imethod_10(out Interface0 ppstm); + } - [Guid("7c23ff90-33af-11d3-95da-00a024a85b51"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - [ComImport] - public interface Interface1 - { - void imethod_0(Interface2 pName); + [Guid("7c23ff90-33af-11d3-95da-00a024a85b51"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + [ComImport] + public interface Interface1 + { + void imethod_0(Interface2 pName); - void imethod_1(out Interface2 ppName); + void imethod_1(out Interface2 ppName); - void imethod_2([MarshalAs(UnmanagedType.LPWStr)] string szName, int pvValue, uint cbValue, uint dwFlags); + void imethod_2([MarshalAs(UnmanagedType.LPWStr)] string szName, int pvValue, uint cbValue, uint dwFlags); - void imethod_3([MarshalAs(UnmanagedType.LPWStr)] string szName, out int pvValue, ref uint pcbValue, uint dwFlags); + void imethod_3([MarshalAs(UnmanagedType.LPWStr)] string szName, out int pvValue, ref uint pcbValue, + uint dwFlags); - void imethod_4(out int wzDynamicDir, ref uint pdwSize); - } + void imethod_4(out int wzDynamicDir, ref uint pdwSize); + } - [Guid("CD193BC0-B4BC-11d2-9833-00C04FC31D2E"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - [ComImport] - public interface Interface2 - { - [PreserveSig] - int imethod_0(uint propertyId, IntPtr pvProperty, uint cbProperty); + [Guid("CD193BC0-B4BC-11d2-9833-00C04FC31D2E"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + [ComImport] + public interface Interface2 + { + [PreserveSig] + int imethod_0(uint propertyId, IntPtr pvProperty, uint cbProperty); - [PreserveSig] - int imethod_1(uint propertyId, IntPtr pvProperty, ref uint pcbProperty); + [PreserveSig] + int imethod_1(uint propertyId, IntPtr pvProperty, ref uint pcbProperty); - [PreserveSig] - int imethod_2(); + [PreserveSig] + int imethod_2(); - [PreserveSig] - int imethod_3(IntPtr szDisplayName, ref uint pccDisplayName, uint dwDisplayFlags); + [PreserveSig] + int imethod_3(IntPtr szDisplayName, ref uint pccDisplayName, uint dwDisplayFlags); - [PreserveSig] - int imethod_4(object refIid, object pAsmBindSink, Interface1 pApplicationContext, [MarshalAs(UnmanagedType.LPWStr)] string szCodeBase, long llFlags, int pvReserved, uint cbReserved, out int ppv); + [PreserveSig] + int imethod_4(object refIid, object pAsmBindSink, Interface1 pApplicationContext, + [MarshalAs(UnmanagedType.LPWStr)] string szCodeBase, long llFlags, int pvReserved, uint cbReserved, + out int ppv); - [PreserveSig] - int imethod_5(out uint lpcwBuffer, out int pwzName); + [PreserveSig] + int imethod_5(out uint lpcwBuffer, out int pwzName); - [PreserveSig] - int imethod_6(out uint pdwVersionHi, out uint pdwVersionLow); + [PreserveSig] + int imethod_6(out uint pdwVersionHi, out uint pdwVersionLow); - [PreserveSig] - int imethod_7(Interface2 pName, uint dwCmpFlags); + [PreserveSig] + int imethod_7(Interface2 pName, uint dwCmpFlags); - [PreserveSig] - int imethod_8(out Interface2 pName); - } + [PreserveSig] + int imethod_8(out Interface2 pName); + } - [Guid("9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - [ComImport] - public interface Interface3 - { - void imethod_0([MarshalAs(UnmanagedType.LPWStr)] string pszName, uint dwFormat, uint dwFlags, uint dwMaxSize, out Interface0 ppStream); + [Guid("9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + [ComImport] + public interface Interface3 + { + void imethod_0([MarshalAs(UnmanagedType.LPWStr)] string pszName, uint dwFormat, uint dwFlags, + uint dwMaxSize, out Interface0 ppStream); - void imethod_1(Interface2 pName); + void imethod_1(Interface2 pName); - void imethod_2(uint dwFlags); + void imethod_2(uint dwFlags); - void imethod_3(uint dwFlags); - } + void imethod_3(uint dwFlags); + } - [Guid("e707dcde-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - [ComImport] - public interface Interface4 - { - [PreserveSig] - int imethod_0(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pvReserved, out uint pulDisposition); + [Guid("e707dcde-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] + [ComImport] + public interface Interface4 + { + [PreserveSig] + int imethod_0(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pvReserved, + out uint pulDisposition); - [PreserveSig] - int imethod_1(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pAsmInfo); + [PreserveSig] + int imethod_1(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pAsmInfo); - [PreserveSig] - int imethod_2(uint dwFlags, IntPtr pvReserved, out Interface3 ppAsmItem, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName); + [PreserveSig] + int imethod_2(uint dwFlags, IntPtr pvReserved, out Interface3 ppAsmItem, + [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName); - [PreserveSig] - int imethod_3(out object ppAsmScavenger); + [PreserveSig] + int imethod_3(out object ppAsmScavenger); - [PreserveSig] - int imethod_4(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszManifestFilePath, IntPtr pvReserved); - } + [PreserveSig] + int imethod_4(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszManifestFilePath, + IntPtr pvReserved); + } - [DllImport("fusion", CharSet = CharSet.Auto)] - public static extern int CreateAssemblyCache(out Interface4 ppAsmCache, uint dwReserved); + [DllImport("fusion", CharSet = CharSet.Auto)] + public static extern int CreateAssemblyCache(out Interface4 ppAsmCache, uint dwReserved); - public static bool smethod_0(string string0) - { - Interface4 @interface = null; - var num = CreateAssemblyCache(out @interface, 0u); - if (num != 0) - { - return false; - } - num = @interface.imethod_4(0u, string0, IntPtr.Zero); - return num == 0; - } - } -} + public static bool smethod_0(string string0) + { + Interface4 @interface = null; + var num = CreateAssemblyCache(out @interface, 0u); + if (num != 0) + { + return false; + } + num = @interface.imethod_4(0u, string0, IntPtr.Zero); + return num == 0; + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Class11.cs b/GHNamespace1/Class11.cs index 41b1692..b98f916 100644 --- a/GHNamespace1/Class11.cs +++ b/GHNamespace1/Class11.cs @@ -2,178 +2,178 @@ namespace GHNamespace1 { - public static class Class11 - { - public static short smethod_0(byte byte0) - { - return (short)(byte0 - 128 << 8); - } - - public static Struct8 smethod_1(byte byte0) - { - return Struct8.smethod_1(byte0 - 128 << 16); - } - - public static int smethod_2(byte byte0) - { - return byte0 - 128 << 24; - } - - public static float smethod_3(byte byte0) - { - return (byte0 - 128) * 1f / 128f; - } - - public static byte smethod_4(short short0) - { - return (byte)((short0 >> 8) + 128); - } - - public static Struct8 smethod_5(short short0) - { - return Struct8.smethod_1(short0 << 8); - } - - public static int smethod_6(short short0) - { - return short0 << 16; - } - - public static float smethod_7(short short0) - { - return short0 * 1f / 32768f; - } - - public static byte smethod_8(Struct8 struct80) - { - return (byte)(Struct8.smethod_0(Struct8.smethod_5(struct80, 16)) + 128); - } - - public static short smethod_9(Struct8 struct80) - { - return (short)Struct8.smethod_0(Struct8.smethod_5(struct80, 8)); - } - - public static int smethod_10(Struct8 struct80) - { - return Struct8.smethod_0(Struct8.smethod_6(struct80, 8)); - } - - public static float smethod_11(Struct8 struct80) - { - return Struct8.smethod_0(struct80) * 1f / 8388608f; - } - - public static byte smethod_12(int int0) - { - return (byte)((int0 >> 24) + 128); - } - - public static short smethod_13(int int0) - { - return (short)(int0 >> 16); - } - - public static Struct8 smethod_14(int int0) - { - return Struct8.smethod_1(int0 >> 8); - } - - public static float smethod_15(int int0) - { - return int0 * 1f / 2.14748365E+09f; - } - - public static byte smethod_16(double double0) - { - var num = Math.Round(double0 * 127.0) + 128.0; - if (num > 255.0) - { - return 255; - } - if (num >= 0.0) - { - return (byte)num; - } - return 0; - } - - public static byte smethod_17(float float0) - { - return smethod_16(float0); - } - - public static sbyte smethod_18(double double0) - { - var num = Math.Round(double0 * 127.0); - if (num > 127.0) - { - return 127; - } - if (num >= -128.0) - { - return (sbyte)num; - } - return -128; - } - - public static sbyte smethod_19(float float0) - { - return smethod_18(float0); - } - - public static short smethod_20(double double0) - { - var num = Math.Round(double0 * 32767.0); - if (num > 32767.0) - { - return 32767; - } - if (num >= -32768.0) - { - return (short)num; - } - return -32768; - } - - public static short smethod_21(float float0) - { - return smethod_20(float0); - } - - public static Struct8 smethod_22(double double0) - { - var num = Math.Round(double0 * 8388607.0); - return Struct8.smethod_1((num > 8388607.0) ? 8388607 : ((num < -8388608.0) ? -8388608 : ((int)num))); - } - - public static Struct8 smethod_23(float float0) - { - return smethod_22(float0); - } - - public static int smethod_24(double double0) - { - var num = Math.Round(double0 * 2147483647.0); - if (num > 2147483647.0) - { - return 2147483647; - } - if (num >= -2147483648.0) - { - return (int)num; - } - return -2147483648; - } - - public static int smethod_25(float float0) - { - return smethod_24(float0); - } - - public static float smethod_26(double double0) - { - return (float)double0; - } - } -} + public static class Class11 + { + public static short smethod_0(byte byte0) + { + return (short) (byte0 - 128 << 8); + } + + public static Struct8 smethod_1(byte byte0) + { + return Struct8.smethod_1(byte0 - 128 << 16); + } + + public static int smethod_2(byte byte0) + { + return byte0 - 128 << 24; + } + + public static float smethod_3(byte byte0) + { + return (byte0 - 128) * 1f / 128f; + } + + public static byte smethod_4(short short0) + { + return (byte) ((short0 >> 8) + 128); + } + + public static Struct8 smethod_5(short short0) + { + return Struct8.smethod_1(short0 << 8); + } + + public static int smethod_6(short short0) + { + return short0 << 16; + } + + public static float smethod_7(short short0) + { + return short0 * 1f / 32768f; + } + + public static byte smethod_8(Struct8 struct80) + { + return (byte) (Struct8.smethod_0(Struct8.smethod_5(struct80, 16)) + 128); + } + + public static short smethod_9(Struct8 struct80) + { + return (short) Struct8.smethod_0(Struct8.smethod_5(struct80, 8)); + } + + public static int smethod_10(Struct8 struct80) + { + return Struct8.smethod_0(Struct8.smethod_6(struct80, 8)); + } + + public static float smethod_11(Struct8 struct80) + { + return Struct8.smethod_0(struct80) * 1f / 8388608f; + } + + public static byte smethod_12(int int0) + { + return (byte) ((int0 >> 24) + 128); + } + + public static short smethod_13(int int0) + { + return (short) (int0 >> 16); + } + + public static Struct8 smethod_14(int int0) + { + return Struct8.smethod_1(int0 >> 8); + } + + public static float smethod_15(int int0) + { + return int0 * 1f / 2.14748365E+09f; + } + + public static byte smethod_16(double double0) + { + var num = Math.Round(double0 * 127.0) + 128.0; + if (num > 255.0) + { + return 255; + } + if (num >= 0.0) + { + return (byte) num; + } + return 0; + } + + public static byte smethod_17(float float0) + { + return smethod_16(float0); + } + + public static sbyte smethod_18(double double0) + { + var num = Math.Round(double0 * 127.0); + if (num > 127.0) + { + return 127; + } + if (num >= -128.0) + { + return (sbyte) num; + } + return -128; + } + + public static sbyte smethod_19(float float0) + { + return smethod_18(float0); + } + + public static short smethod_20(double double0) + { + var num = Math.Round(double0 * 32767.0); + if (num > 32767.0) + { + return 32767; + } + if (num >= -32768.0) + { + return (short) num; + } + return -32768; + } + + public static short smethod_21(float float0) + { + return smethod_20(float0); + } + + public static Struct8 smethod_22(double double0) + { + var num = Math.Round(double0 * 8388607.0); + return Struct8.smethod_1((num > 8388607.0) ? 8388607 : ((num < -8388608.0) ? -8388608 : ((int) num))); + } + + public static Struct8 smethod_23(float float0) + { + return smethod_22(float0); + } + + public static int smethod_24(double double0) + { + var num = Math.Round(double0 * 2147483647.0); + if (num > 2147483647.0) + { + return 2147483647; + } + if (num >= -2147483648.0) + { + return (int) num; + } + return -2147483648; + } + + public static int smethod_25(float float0) + { + return smethod_24(float0); + } + + public static float smethod_26(double double0) + { + return (float) double0; + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Class12.cs b/GHNamespace1/Class12.cs index c1dccf3..901ba7c 100644 --- a/GHNamespace1/Class12.cs +++ b/GHNamespace1/Class12.cs @@ -3,19 +3,19 @@ namespace GHNamespace1 { - public class Class12 : List, INterface5 - { - public Class12(INterface5[] interface50) - { - AddRange(interface50); - } + public class Class12 : List, INterface5 + { + public Class12(INterface5[] interface50) + { + AddRange(interface50); + } - public virtual void imethod_0(Class13[] class130) - { - foreach (var current in this) - { - current.imethod_0(class130); - } - } - } -} + public virtual void imethod_0(Class13[] class130) + { + foreach (var current in this) + { + current.imethod_0(class130); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Class2.cs b/GHNamespace1/Class2.cs index 83f5b62..e95c664 100644 --- a/GHNamespace1/Class2.cs +++ b/GHNamespace1/Class2.cs @@ -4,1179 +4,1185 @@ namespace GHNamespace1 { - public class Class2 - { - public class Class3 - { - private static readonly int[] Int0 = { - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 13, - 15, - 17, - 19, - 23, - 27, - 31, - 35, - 43, - 51, - 59, - 67, - 83, - 99, - 115, - 131, - 163, - 195, - 227, - 258 - }; - - private static readonly int[] Int1 = { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 4, - 4, - 4, - 4, - 5, - 5, - 5, - 5, - 0 - }; - - private static readonly int[] Int2 = { - 1, - 2, - 3, - 4, - 5, - 7, - 9, - 13, - 17, - 25, - 33, - 49, - 65, - 97, - 129, - 193, - 257, - 385, - 513, - 769, - 1025, - 1537, - 2049, - 3073, - 4097, - 6145, - 8193, - 12289, - 16385, - 24577 - }; - - private static readonly int[] Int3 = { - 0, - 0, - 0, - 0, - 1, - 1, - 2, - 2, - 3, - 3, - 4, - 4, - 5, - 5, - 6, - 6, - 7, - 7, - 8, - 8, - 9, - 9, - 10, - 10, - 11, - 11, - 12, - 12, - 13, - 13 - }; - - private int _int4; - - private int _int5; - - private int _int6; - - private int _int7; - - private int _int8; - - private bool _bool0; - - private readonly Class4 _class40; - - private readonly Class5 _class50; - - private Class7 _class70; - - private Class6 _class60; - - private Class6 _class61; - - public Class3(byte[] byte0) - { - _class40 = new Class4(); - _class50 = new Class5(); - _int4 = 2; - _class40.method_7(byte0, 0, byte0.Length); - } - - private bool method_0() - { - var i = _class50.method_4(); - while (i >= 258) - { - int num; - switch (_int4) - { - case 7: - while (((num = _class60.method_1(_class40)) & -256) == 0) - { - _class50.method_0(num); - if (--i < 258) - { - return true; - } - } - if (num >= 257) - { - _int6 = Int0[num - 257]; - _int5 = Int1[num - 257]; - goto IL_9E; - } - if (num < 0) - { - return false; - } - _class61 = null; - _class60 = null; - _int4 = 2; - return true; - case 8: - goto IL_9E; - case 9: - goto IL_EE; - case 10: - break; - default: - continue; - } - IL_121: - if (_int5 > 0) - { - _int4 = 10; - var num2 = _class40.method_0(_int5); - if (num2 < 0) - { - return false; - } - _class40.method_1(_int5); - _int7 += num2; - } - _class50.method_2(_int6, _int7); - i -= _int6; - _int4 = 7; - continue; - IL_EE: - num = _class61.method_1(_class40); - if (num >= 0) - { - _int7 = Int2[num]; - _int5 = Int3[num]; - goto IL_121; - } - return false; - IL_9E: - if (_int5 > 0) - { - _int4 = 8; - var num3 = _class40.method_0(_int5); - if (num3 < 0) - { - return false; - } - _class40.method_1(_int5); - _int6 += num3; - } - _int4 = 9; - goto IL_EE; - } - return true; - } - - private bool method_1() - { - switch (_int4) - { - case 2: - { - if (_bool0) - { - _int4 = 12; - return false; - } - var num = _class40.method_0(3); - if (num < 0) - { - return false; - } - _class40.method_1(3); - if ((num & 1) != 0) - { - _bool0 = true; - } - switch (num >> 1) - { - case 0: - _class40.method_4(); - _int4 = 3; - break; - case 1: - _class60 = Class6.Class60; - _class61 = Class6.Class61; - _int4 = 7; - break; - case 2: - _class70 = new Class7(); - _int4 = 6; - break; - } - return true; - } - case 3: - if ((_int8 = _class40.method_0(16)) < 0) - { - return false; - } - _class40.method_1(16); - _int4 = 4; - break; - case 4: - break; - case 5: - goto IL_137; - case 6: - if (!_class70.method_0(_class40)) - { - return false; - } - _class60 = _class70.method_1(); - _class61 = _class70.method_2(); - _int4 = 7; - goto IL_1BB; - case 7: - case 8: - case 9: - case 10: - goto IL_1BB; - case 11: - return false; - case 12: - return false; - default: - return false; - } - var num2 = _class40.method_0(16); - if (num2 < 0) - { - return false; - } - _class40.method_1(16); - _int4 = 5; - IL_137: - var num3 = _class50.method_3(_class40, _int8); - _int8 -= num3; - if (_int8 == 0) - { - _int4 = 2; - return true; - } - return !_class40.method_5(); - IL_1BB: - return method_0(); - } - - public int method_2(byte[] byte0, int int9, int int10) - { - var num = 0; - while (true) - { - if (_int4 != 11) - { - var num2 = _class50.method_6(byte0, int9, int10); - int9 += num2; - num += num2; - int10 -= num2; - if (int10 == 0) - { - return num; - } - } - if (!method_1()) - { - if (_class50.method_5() <= 0) - { - break; - } - if (_int4 == 11) - { - break; - } - } - } - return num; - } - } - - public class Class4 - { - private byte[] _byte0; - - private int _int0; - - private int _int1; - - private uint _uint0; - - private int _int2; - - public int method_0(int int3) - { - if (_int2 < int3) - { - if (_int0 == _int1) - { - return -1; - } - _uint0 |= (uint)(_byte0[_int0++] & 255 | (_byte0[_int0++] & 255) << 8) << _int2; - _int2 += 16; - } - return (int)(_uint0 & (ulong)((1 << int3) - 1)); - } - - public void method_1(int int3) - { - _uint0 >>= int3; - _int2 -= int3; - } - - public int method_2() - { - return _int2; - } - - public int method_3() - { - return _int1 - _int0 + (_int2 >> 3); - } - - public void method_4() - { - _uint0 >>= (_int2 & 7); - _int2 &= -8; - } - - public bool method_5() - { - return _int0 == _int1; - } - - public int method_6(byte[] byte1, int int3, int int4) - { - var num = 0; - while (_int2 > 0 && int4 > 0) - { - byte1[int3++] = (byte)_uint0; - _uint0 >>= 8; - _int2 -= 8; - int4--; - num++; - } - if (int4 == 0) - { - return num; - } - var num2 = _int1 - _int0; - if (int4 > num2) - { - int4 = num2; - } - Array.Copy(_byte0, _int0, byte1, int3, int4); - _int0 += int4; - if ((_int0 - _int1 & 1) != 0) - { - _uint0 = (uint)(_byte0[_int0++] & 255); - _int2 = 8; - } - return num + int4; - } - - public void method_7(byte[] byte1, int int3, int int4) - { - if (_int0 < _int1) - { - throw new InvalidOperationException(); - } - var num = int3 + int4; - if (0 <= int3 && int3 <= num && num <= byte1.Length) - { - if ((int4 & 1) != 0) - { - _uint0 |= (uint)(byte1[int3++] & 255) << _int2; - _int2 += 8; - } - _byte0 = byte1; - _int0 = int3; - _int1 = num; - return; - } - throw new ArgumentOutOfRangeException(); - } - } - - public class Class5 - { - private static readonly int Int0 = 32768; - - private static readonly int Int1 = Int0 - 1; - - private readonly byte[] _byte0 = new byte[Int0]; - - private int _int2; - - private int _int3; - - public void method_0(int int4) - { - if (_int3++ == Int0) - { - throw new InvalidOperationException(); - } - _byte0[_int2++] = (byte)int4; - _int2 &= Int1; - } - - private void method_1(int int4, int int5, int int6) - { - while (int5-- > 0) - { - _byte0[_int2++] = _byte0[int4++]; - _int2 &= Int1; - int4 &= Int1; - } - } - - public void method_2(int int4, int int5) - { - if ((_int3 += int4) > Int0) - { - throw new InvalidOperationException(); - } - var num = _int2 - int5 & Int1; - var num2 = Int0 - int4; - if (num > num2 || _int2 >= num2) - { - method_1(num, int4, int5); - return; - } - if (int4 <= int5) - { - Array.Copy(_byte0, num, _byte0, _int2, int4); - _int2 += int4; - return; - } - while (int4-- > 0) - { - _byte0[_int2++] = _byte0[num++]; - } - } - - public int method_3(Class4 class40, int int4) - { - int4 = Math.Min(Math.Min(int4, Int0 - _int3), class40.method_3()); - var num = Int0 - _int2; - int num2; - if (int4 > num) - { - num2 = class40.method_6(_byte0, _int2, num); - if (num2 == num) - { - num2 += class40.method_6(_byte0, 0, int4 - num); - } - } - else - { - num2 = class40.method_6(_byte0, _int2, int4); - } - _int2 = (_int2 + num2 & Int1); - _int3 += num2; - return num2; - } - - public int method_4() - { - return Int0 - _int3; - } - - public int method_5() - { - return _int3; - } - - public int method_6(byte[] byte1, int int4, int int5) - { - var num = _int2; - if (int5 > _int3) - { - int5 = _int3; - } - else - { - num = (_int2 - _int3 + int5 & Int1); - } - var num2 = int5; - var num3 = int5 - num; - if (num3 > 0) - { - Array.Copy(_byte0, Int0 - num3, byte1, int4, num3); - int4 += num3; - int5 = num; - } - Array.Copy(_byte0, num - int5, byte1, int4, int5); - _int3 -= num2; - if (_int3 < 0) - { - throw new InvalidOperationException(); - } - return num2; - } - } - - public class Class6 - { - private static readonly int Int0; - - private short[] _short0; - - public static Class6 Class60; - - public static Class6 Class61; - - static Class6() - { - Int0 = 15; - var array = new byte[288]; - var i = 0; - while (i < 144) - { - array[i++] = 8; - } - while (i < 256) - { - array[i++] = 9; - } - while (i < 280) - { - array[i++] = 7; - } - while (i < 288) - { - array[i++] = 8; - } - Class60 = new Class6(array); - array = new byte[32]; - i = 0; - while (i < 32) - { - array[i++] = 5; - } - Class61 = new Class6(array); - } - - public Class6(byte[] byte0) - { - method_0(byte0); - } - - private void method_0(byte[] byte0) - { - var array = new int[Int0 + 1]; - var array2 = new int[Int0 + 1]; - for (var i = 0; i < byte0.Length; i++) - { - int num = byte0[i]; - if (num > 0) - { - array[num]++; - } - } - var num2 = 0; - var num3 = 512; - for (var j = 1; j <= Int0; j++) - { - array2[j] = num2; - num2 += array[j] << 16 - j; - if (j >= 10) - { - var num4 = array2[j] & 130944; - var num5 = num2 & 130944; - num3 += num5 - num4 >> 16 - j; - } - } - _short0 = new short[num3]; - var num6 = 512; - for (var k = Int0; k >= 10; k--) - { - var num7 = num2 & 130944; - num2 -= array[k] << 16 - k; - var num8 = num2 & 130944; - for (var l = num8; l < num7; l += 128) - { - _short0[Class8.smethod_0(l)] = (short)(-num6 << 4 | k); - num6 += 1 << k - 9; - } - } - for (var m = 0; m < byte0.Length; m++) - { - int num9 = byte0[m]; - if (num9 != 0) - { - num2 = array2[num9]; - int num10 = Class8.smethod_0(num2); - if (num9 <= 9) - { - do - { - _short0[num10] = (short)(m << 4 | num9); - num10 += 1 << num9; - } - while (num10 < 512); - } - else - { - int num11 = _short0[num10 & 511]; - var num12 = 1 << (num11 & 15); - num11 = -(num11 >> 4); - do - { - _short0[num11 | num10 >> 9] = (short)(m << 4 | num9); - num10 += 1 << num9; - } - while (num10 < num12); - } - array2[num9] = num2 + (1 << 16 - num9); - } - } - } - - public int method_1(Class4 class40) - { - int num; - if ((num = class40.method_0(9)) >= 0) - { - int num2; - if ((num2 = _short0[num]) >= 0) - { - class40.method_1(num2 & 15); - return num2 >> 4; - } - var num3 = -(num2 >> 4); - var int_ = num2 & 15; - if ((num = class40.method_0(int_)) >= 0) - { - num2 = _short0[num3 | num >> 9]; - class40.method_1(num2 & 15); - return num2 >> 4; - } - var num4 = class40.method_2(); - num = class40.method_0(num4); - num2 = _short0[num3 | num >> 9]; - if ((num2 & 15) <= num4) - { - class40.method_1(num2 & 15); - return num2 >> 4; - } - return -1; - } - else - { - var num5 = class40.method_2(); - num = class40.method_0(num5); - int num2 = _short0[num]; - if (num2 >= 0 && (num2 & 15) <= num5) - { - class40.method_1(num2 & 15); - return num2 >> 4; - } - return -1; - } - } - } - - public class Class7 - { - private static readonly int[] Int0 = { - 3, - 3, - 11 - }; - - private static readonly int[] Int1 = { - 2, - 3, - 7 - }; - - private byte[] _byte0; - - private byte[] _byte1; - - private Class6 _class60; - - private int _int2; - - private int _int3; - - private int _int4; - - private int _int5; - - private int _int6; - - private int _int7; - - private byte _byte2; - - private int _int8; - - private static readonly int[] Int9 = { - 16, - 17, - 18, - 0, - 8, - 7, - 9, - 6, - 10, - 5, - 11, - 4, - 12, - 3, - 13, - 2, - 14, - 1, - 15 - }; - - public bool method_0(Class4 class40) - { - while (true) - { - switch (_int2) - { - case 0: - _int3 = class40.method_0(5); - if (_int3 >= 0) - { - _int3 += 257; - class40.method_1(5); - _int2 = 1; - goto IL_1DD; - } - return false; - case 1: - goto IL_1DD; - case 2: - goto IL_18F; - case 3: - goto IL_156; - case 4: - break; - case 5: - goto IL_2C; - default: - continue; - } - IL_E1: - int num; - while (((num = _class60.method_1(class40)) & -16) == 0) - { - _byte1[_int8++] = (_byte2 = (byte)num); - if (_int8 == _int6) - { - return true; - } - } - if (num >= 0) - { - if (num >= 17) - { - _byte2 = 0; - } - _int7 = num - 16; - _int2 = 5; - goto IL_2C; - } - return false; - IL_156: - while (_int8 < _int5) - { - var num2 = class40.method_0(3); - if (num2 < 0) - { - return false; - } - class40.method_1(3); - _byte0[Int9[_int8]] = (byte)num2; - _int8++; - } - _class60 = new Class6(_byte0); - _byte0 = null; - _int8 = 0; - _int2 = 4; - goto IL_E1; - IL_2C: - var num3 = Int1[_int7]; - var num4 = class40.method_0(num3); - if (num4 < 0) - { - return false; - } - class40.method_1(num3); - num4 += Int0[_int7]; - while (num4-- > 0) - { - _byte1[_int8++] = _byte2; - } - if (_int8 == _int6) - { - break; - } - _int2 = 4; - continue; - IL_18F: - _int5 = class40.method_0(4); - if (_int5 >= 0) - { - _int5 += 4; - class40.method_1(4); - _byte0 = new byte[19]; - _int8 = 0; - _int2 = 3; - goto IL_156; - } - return false; - IL_1DD: - _int4 = class40.method_0(5); - if (_int4 >= 0) - { - _int4++; - class40.method_1(5); - _int6 = _int3 + _int4; - _byte1 = new byte[_int6]; - _int2 = 2; - goto IL_18F; - } - return false; - } - return true; - } - - public Class6 method_1() - { - var destinationArray = new byte[_int3]; - Array.Copy(_byte1, 0, destinationArray, 0, _int3); - return new Class6(destinationArray); - } - - public Class6 method_2() - { - var destinationArray = new byte[_int4]; - Array.Copy(_byte1, _int3, destinationArray, 0, _int4); - return new Class6(destinationArray); - } - } - - public class Class8 - { - private static int _int0; - - private static readonly int Int1; - - private static readonly int Int2; - - private static int _int3; - - private static int _int4; - - private static int _int5; - - private static int _int6; - - private static int _int7; - - private static int[] _int8; - - private static readonly byte[] Byte0; - - private static readonly short[] Short0; - - private static readonly byte[] Byte1; - - private static readonly short[] Short1; - - private static readonly byte[] Byte2; - - public static short smethod_0(int int9) - { - return (short)(Byte0[int9 & 15] << 12 | Byte0[int9 >> 4 & 15] << 8 | Byte0[int9 >> 8 & 15] << 4 | Byte0[int9 >> 12]); - } - - static Class8() - { - _int0 = 16384; - Int1 = 286; - Int2 = 30; - _int3 = 19; - _int4 = 16; - _int5 = 17; - _int6 = 18; - _int7 = 256; - _int8 = new[] - { - 16, - 17, - 18, - 0, - 8, - 7, - 9, - 6, - 10, - 5, - 11, - 4, - 12, - 3, - 13, - 2, - 14, - 1, - 15 - }; - Byte0 = new byte[] - { - 0, - 8, - 4, - 12, - 2, - 10, - 6, - 14, - 1, - 9, - 5, - 13, - 3, - 11, - 7, - 15 - }; - Short0 = new short[Int1]; - Byte1 = new byte[Int1]; - var i = 0; - while (i < 144) - { - Short0[i] = smethod_0(48 + i << 8); - Byte1[i++] = 8; - } - while (i < 256) - { - Short0[i] = smethod_0(256 + i << 7); - Byte1[i++] = 9; - } - while (i < 280) - { - Short0[i] = smethod_0(-256 + i << 9); - Byte1[i++] = 7; - } - while (i < Int1) - { - Short0[i] = smethod_0(-88 + i << 8); - Byte1[i++] = 8; - } - Short1 = new short[Int2]; - Byte2 = new byte[Int2]; - for (i = 0; i < Int2; i++) - { - Short1[i] = smethod_0(i << 11); - Byte2[i] = 5; - } - } - } - - public class Stream0 : MemoryStream - { - public int method_0() - { - return ReadByte() | ReadByte() << 8; - } - - public int method_1() - { - return method_0() | method_0() << 16; - } - - public Stream0(byte[] byte0) : base(byte0, false) - { - } - } - - public static byte[] smethod_0(byte[] byte0) - { - var stream = new Stream0(byte0); - var array = new byte[0]; - var num = stream.method_1(); - if (num == 67324752) - { - var num2 = (short)stream.method_0(); - var num3 = stream.method_0(); - var num4 = stream.method_0(); - if (num == 67324752 && num2 == 20 && num3 == 0) - { - if (num4 == 8) - { - stream.method_1(); - stream.method_1(); - stream.method_1(); - var num5 = stream.method_1(); - var num6 = stream.method_0(); - var num7 = stream.method_0(); - if (num6 > 0) - { - var buffer = new byte[num6]; - stream.Read(buffer, 0, num6); - } - if (num7 > 0) - { - var buffer2 = new byte[num7]; - stream.Read(buffer2, 0, num7); - } - var array2 = new byte[stream.Length - stream.Position]; - stream.Read(array2, 0, array2.Length); - var @class = new Class3(array2); - array = new byte[num5]; - @class.method_2(array, 0, array.Length); - goto IL_1FF; - } - } - throw new FormatException("Wrong Header Signature"); - } - var num8 = num >> 24; - num -= num8 << 24; - if (num != 8223355) - { - throw new FormatException("Unknown Header"); - } - if (num8 == 1) - { - var num9 = stream.method_1(); - array = new byte[num9]; - int num11; - for (var i = 0; i < num9; i += num11) - { - var num10 = stream.method_1(); - num11 = stream.method_1(); - var array3 = new byte[num10]; - stream.Read(array3, 0, array3.Length); - var class2 = new Class3(array3); - class2.method_2(array, i, num11); - } - } - if (num8 == 2) - { - var dEsCryptoServiceProvider = new DESCryptoServiceProvider(); - dEsCryptoServiceProvider.Key = new byte[] - { - 162, - 181, - 141, - 204, - 197, - 202, - 205, - 58 - }; - dEsCryptoServiceProvider.IV = new byte[] - { - 83, - 253, - 177, - 222, - 83, - 112, - 167, - 112 - }; - var cryptoTransform = dEsCryptoServiceProvider.CreateDecryptor(); - var byte_ = cryptoTransform.TransformFinalBlock(byte0, 4, byte0.Length - 4); - dEsCryptoServiceProvider.Clear(); - array = smethod_0(byte_); - } - IL_1FF: - stream.Close(); - return array; - } - } -} + public class Class2 + { + public class Class3 + { + private static readonly int[] Int0 = + { + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 13, + 15, + 17, + 19, + 23, + 27, + 31, + 35, + 43, + 51, + 59, + 67, + 83, + 99, + 115, + 131, + 163, + 195, + 227, + 258 + }; + + private static readonly int[] Int1 = + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 4, + 4, + 4, + 4, + 5, + 5, + 5, + 5, + 0 + }; + + private static readonly int[] Int2 = + { + 1, + 2, + 3, + 4, + 5, + 7, + 9, + 13, + 17, + 25, + 33, + 49, + 65, + 97, + 129, + 193, + 257, + 385, + 513, + 769, + 1025, + 1537, + 2049, + 3073, + 4097, + 6145, + 8193, + 12289, + 16385, + 24577 + }; + + private static readonly int[] Int3 = + { + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 3, + 4, + 4, + 5, + 5, + 6, + 6, + 7, + 7, + 8, + 8, + 9, + 9, + 10, + 10, + 11, + 11, + 12, + 12, + 13, + 13 + }; + + private int _int4; + + private int _int5; + + private int _int6; + + private int _int7; + + private int _int8; + + private bool _bool0; + + private readonly Class4 _class40; + + private readonly Class5 _class50; + + private Class7 _class70; + + private Class6 _class60; + + private Class6 _class61; + + public Class3(byte[] byte0) + { + _class40 = new Class4(); + _class50 = new Class5(); + _int4 = 2; + _class40.method_7(byte0, 0, byte0.Length); + } + + private bool method_0() + { + var i = _class50.method_4(); + while (i >= 258) + { + int num; + switch (_int4) + { + case 7: + while (((num = _class60.method_1(_class40)) & -256) == 0) + { + _class50.method_0(num); + if (--i < 258) + { + return true; + } + } + if (num >= 257) + { + _int6 = Int0[num - 257]; + _int5 = Int1[num - 257]; + goto IL_9E; + } + if (num < 0) + { + return false; + } + _class61 = null; + _class60 = null; + _int4 = 2; + return true; + case 8: + goto IL_9E; + case 9: + goto IL_EE; + case 10: + break; + default: + continue; + } + IL_121: + if (_int5 > 0) + { + _int4 = 10; + var num2 = _class40.method_0(_int5); + if (num2 < 0) + { + return false; + } + _class40.method_1(_int5); + _int7 += num2; + } + _class50.method_2(_int6, _int7); + i -= _int6; + _int4 = 7; + continue; + IL_EE: + num = _class61.method_1(_class40); + if (num >= 0) + { + _int7 = Int2[num]; + _int5 = Int3[num]; + goto IL_121; + } + return false; + IL_9E: + if (_int5 > 0) + { + _int4 = 8; + var num3 = _class40.method_0(_int5); + if (num3 < 0) + { + return false; + } + _class40.method_1(_int5); + _int6 += num3; + } + _int4 = 9; + goto IL_EE; + } + return true; + } + + private bool method_1() + { + switch (_int4) + { + case 2: + { + if (_bool0) + { + _int4 = 12; + return false; + } + var num = _class40.method_0(3); + if (num < 0) + { + return false; + } + _class40.method_1(3); + if ((num & 1) != 0) + { + _bool0 = true; + } + switch (num >> 1) + { + case 0: + _class40.method_4(); + _int4 = 3; + break; + case 1: + _class60 = Class6.Class60; + _class61 = Class6.Class61; + _int4 = 7; + break; + case 2: + _class70 = new Class7(); + _int4 = 6; + break; + } + return true; + } + case 3: + if ((_int8 = _class40.method_0(16)) < 0) + { + return false; + } + _class40.method_1(16); + _int4 = 4; + break; + case 4: + break; + case 5: + goto IL_137; + case 6: + if (!_class70.method_0(_class40)) + { + return false; + } + _class60 = _class70.method_1(); + _class61 = _class70.method_2(); + _int4 = 7; + goto IL_1BB; + case 7: + case 8: + case 9: + case 10: + goto IL_1BB; + case 11: + return false; + case 12: + return false; + default: + return false; + } + var num2 = _class40.method_0(16); + if (num2 < 0) + { + return false; + } + _class40.method_1(16); + _int4 = 5; + IL_137: + var num3 = _class50.method_3(_class40, _int8); + _int8 -= num3; + if (_int8 == 0) + { + _int4 = 2; + return true; + } + return !_class40.method_5(); + IL_1BB: + return method_0(); + } + + public int method_2(byte[] byte0, int int9, int int10) + { + var num = 0; + while (true) + { + if (_int4 != 11) + { + var num2 = _class50.method_6(byte0, int9, int10); + int9 += num2; + num += num2; + int10 -= num2; + if (int10 == 0) + { + return num; + } + } + if (!method_1()) + { + if (_class50.method_5() <= 0) + { + break; + } + if (_int4 == 11) + { + break; + } + } + } + return num; + } + } + + public class Class4 + { + private byte[] _byte0; + + private int _int0; + + private int _int1; + + private uint _uint0; + + private int _int2; + + public int method_0(int int3) + { + if (_int2 < int3) + { + if (_int0 == _int1) + { + return -1; + } + _uint0 |= (uint) (_byte0[_int0++] & 255 | (_byte0[_int0++] & 255) << 8) << _int2; + _int2 += 16; + } + return (int) (_uint0 & (ulong) ((1 << int3) - 1)); + } + + public void method_1(int int3) + { + _uint0 >>= int3; + _int2 -= int3; + } + + public int method_2() + { + return _int2; + } + + public int method_3() + { + return _int1 - _int0 + (_int2 >> 3); + } + + public void method_4() + { + _uint0 >>= (_int2 & 7); + _int2 &= -8; + } + + public bool method_5() + { + return _int0 == _int1; + } + + public int method_6(byte[] byte1, int int3, int int4) + { + var num = 0; + while (_int2 > 0 && int4 > 0) + { + byte1[int3++] = (byte) _uint0; + _uint0 >>= 8; + _int2 -= 8; + int4--; + num++; + } + if (int4 == 0) + { + return num; + } + var num2 = _int1 - _int0; + if (int4 > num2) + { + int4 = num2; + } + Array.Copy(_byte0, _int0, byte1, int3, int4); + _int0 += int4; + if ((_int0 - _int1 & 1) != 0) + { + _uint0 = (uint) (_byte0[_int0++] & 255); + _int2 = 8; + } + return num + int4; + } + + public void method_7(byte[] byte1, int int3, int int4) + { + if (_int0 < _int1) + { + throw new InvalidOperationException(); + } + var num = int3 + int4; + if (0 <= int3 && int3 <= num && num <= byte1.Length) + { + if ((int4 & 1) != 0) + { + _uint0 |= (uint) (byte1[int3++] & 255) << _int2; + _int2 += 8; + } + _byte0 = byte1; + _int0 = int3; + _int1 = num; + return; + } + throw new ArgumentOutOfRangeException(); + } + } + + public class Class5 + { + private static readonly int Int0 = 32768; + + private static readonly int Int1 = Int0 - 1; + + private readonly byte[] _byte0 = new byte[Int0]; + + private int _int2; + + private int _int3; + + public void method_0(int int4) + { + if (_int3++ == Int0) + { + throw new InvalidOperationException(); + } + _byte0[_int2++] = (byte) int4; + _int2 &= Int1; + } + + private void method_1(int int4, int int5, int int6) + { + while (int5-- > 0) + { + _byte0[_int2++] = _byte0[int4++]; + _int2 &= Int1; + int4 &= Int1; + } + } + + public void method_2(int int4, int int5) + { + if ((_int3 += int4) > Int0) + { + throw new InvalidOperationException(); + } + var num = _int2 - int5 & Int1; + var num2 = Int0 - int4; + if (num > num2 || _int2 >= num2) + { + method_1(num, int4, int5); + return; + } + if (int4 <= int5) + { + Array.Copy(_byte0, num, _byte0, _int2, int4); + _int2 += int4; + return; + } + while (int4-- > 0) + { + _byte0[_int2++] = _byte0[num++]; + } + } + + public int method_3(Class4 class40, int int4) + { + int4 = Math.Min(Math.Min(int4, Int0 - _int3), class40.method_3()); + var num = Int0 - _int2; + int num2; + if (int4 > num) + { + num2 = class40.method_6(_byte0, _int2, num); + if (num2 == num) + { + num2 += class40.method_6(_byte0, 0, int4 - num); + } + } + else + { + num2 = class40.method_6(_byte0, _int2, int4); + } + _int2 = (_int2 + num2 & Int1); + _int3 += num2; + return num2; + } + + public int method_4() + { + return Int0 - _int3; + } + + public int method_5() + { + return _int3; + } + + public int method_6(byte[] byte1, int int4, int int5) + { + var num = _int2; + if (int5 > _int3) + { + int5 = _int3; + } + else + { + num = (_int2 - _int3 + int5 & Int1); + } + var num2 = int5; + var num3 = int5 - num; + if (num3 > 0) + { + Array.Copy(_byte0, Int0 - num3, byte1, int4, num3); + int4 += num3; + int5 = num; + } + Array.Copy(_byte0, num - int5, byte1, int4, int5); + _int3 -= num2; + if (_int3 < 0) + { + throw new InvalidOperationException(); + } + return num2; + } + } + + public class Class6 + { + private static readonly int Int0; + + private short[] _short0; + + public static Class6 Class60; + + public static Class6 Class61; + + static Class6() + { + Int0 = 15; + var array = new byte[288]; + var i = 0; + while (i < 144) + { + array[i++] = 8; + } + while (i < 256) + { + array[i++] = 9; + } + while (i < 280) + { + array[i++] = 7; + } + while (i < 288) + { + array[i++] = 8; + } + Class60 = new Class6(array); + array = new byte[32]; + i = 0; + while (i < 32) + { + array[i++] = 5; + } + Class61 = new Class6(array); + } + + public Class6(byte[] byte0) + { + method_0(byte0); + } + + private void method_0(byte[] byte0) + { + var array = new int[Int0 + 1]; + var array2 = new int[Int0 + 1]; + for (var i = 0; i < byte0.Length; i++) + { + int num = byte0[i]; + if (num > 0) + { + array[num]++; + } + } + var num2 = 0; + var num3 = 512; + for (var j = 1; j <= Int0; j++) + { + array2[j] = num2; + num2 += array[j] << 16 - j; + if (j >= 10) + { + var num4 = array2[j] & 130944; + var num5 = num2 & 130944; + num3 += num5 - num4 >> 16 - j; + } + } + _short0 = new short[num3]; + var num6 = 512; + for (var k = Int0; k >= 10; k--) + { + var num7 = num2 & 130944; + num2 -= array[k] << 16 - k; + var num8 = num2 & 130944; + for (var l = num8; l < num7; l += 128) + { + _short0[Class8.smethod_0(l)] = (short) (-num6 << 4 | k); + num6 += 1 << k - 9; + } + } + for (var m = 0; m < byte0.Length; m++) + { + int num9 = byte0[m]; + if (num9 != 0) + { + num2 = array2[num9]; + int num10 = Class8.smethod_0(num2); + if (num9 <= 9) + { + do + { + _short0[num10] = (short) (m << 4 | num9); + num10 += 1 << num9; + } while (num10 < 512); + } + else + { + int num11 = _short0[num10 & 511]; + var num12 = 1 << (num11 & 15); + num11 = -(num11 >> 4); + do + { + _short0[num11 | num10 >> 9] = (short) (m << 4 | num9); + num10 += 1 << num9; + } while (num10 < num12); + } + array2[num9] = num2 + (1 << 16 - num9); + } + } + } + + public int method_1(Class4 class40) + { + int num; + if ((num = class40.method_0(9)) >= 0) + { + int num2; + if ((num2 = _short0[num]) >= 0) + { + class40.method_1(num2 & 15); + return num2 >> 4; + } + var num3 = -(num2 >> 4); + var int_ = num2 & 15; + if ((num = class40.method_0(int_)) >= 0) + { + num2 = _short0[num3 | num >> 9]; + class40.method_1(num2 & 15); + return num2 >> 4; + } + var num4 = class40.method_2(); + num = class40.method_0(num4); + num2 = _short0[num3 | num >> 9]; + if ((num2 & 15) <= num4) + { + class40.method_1(num2 & 15); + return num2 >> 4; + } + return -1; + } + else + { + var num5 = class40.method_2(); + num = class40.method_0(num5); + int num2 = _short0[num]; + if (num2 >= 0 && (num2 & 15) <= num5) + { + class40.method_1(num2 & 15); + return num2 >> 4; + } + return -1; + } + } + } + + public class Class7 + { + private static readonly int[] Int0 = + { + 3, + 3, + 11 + }; + + private static readonly int[] Int1 = + { + 2, + 3, + 7 + }; + + private byte[] _byte0; + + private byte[] _byte1; + + private Class6 _class60; + + private int _int2; + + private int _int3; + + private int _int4; + + private int _int5; + + private int _int6; + + private int _int7; + + private byte _byte2; + + private int _int8; + + private static readonly int[] Int9 = + { + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15 + }; + + public bool method_0(Class4 class40) + { + while (true) + { + switch (_int2) + { + case 0: + _int3 = class40.method_0(5); + if (_int3 >= 0) + { + _int3 += 257; + class40.method_1(5); + _int2 = 1; + goto IL_1DD; + } + return false; + case 1: + goto IL_1DD; + case 2: + goto IL_18F; + case 3: + goto IL_156; + case 4: + break; + case 5: + goto IL_2C; + default: + continue; + } + IL_E1: + int num; + while (((num = _class60.method_1(class40)) & -16) == 0) + { + _byte1[_int8++] = (_byte2 = (byte) num); + if (_int8 == _int6) + { + return true; + } + } + if (num >= 0) + { + if (num >= 17) + { + _byte2 = 0; + } + _int7 = num - 16; + _int2 = 5; + goto IL_2C; + } + return false; + IL_156: + while (_int8 < _int5) + { + var num2 = class40.method_0(3); + if (num2 < 0) + { + return false; + } + class40.method_1(3); + _byte0[Int9[_int8]] = (byte) num2; + _int8++; + } + _class60 = new Class6(_byte0); + _byte0 = null; + _int8 = 0; + _int2 = 4; + goto IL_E1; + IL_2C: + var num3 = Int1[_int7]; + var num4 = class40.method_0(num3); + if (num4 < 0) + { + return false; + } + class40.method_1(num3); + num4 += Int0[_int7]; + while (num4-- > 0) + { + _byte1[_int8++] = _byte2; + } + if (_int8 == _int6) + { + break; + } + _int2 = 4; + continue; + IL_18F: + _int5 = class40.method_0(4); + if (_int5 >= 0) + { + _int5 += 4; + class40.method_1(4); + _byte0 = new byte[19]; + _int8 = 0; + _int2 = 3; + goto IL_156; + } + return false; + IL_1DD: + _int4 = class40.method_0(5); + if (_int4 >= 0) + { + _int4++; + class40.method_1(5); + _int6 = _int3 + _int4; + _byte1 = new byte[_int6]; + _int2 = 2; + goto IL_18F; + } + return false; + } + return true; + } + + public Class6 method_1() + { + var destinationArray = new byte[_int3]; + Array.Copy(_byte1, 0, destinationArray, 0, _int3); + return new Class6(destinationArray); + } + + public Class6 method_2() + { + var destinationArray = new byte[_int4]; + Array.Copy(_byte1, _int3, destinationArray, 0, _int4); + return new Class6(destinationArray); + } + } + + public class Class8 + { + private static int _int0; + + private static readonly int Int1; + + private static readonly int Int2; + + private static int _int3; + + private static int _int4; + + private static int _int5; + + private static int _int6; + + private static int _int7; + + private static int[] _int8; + + private static readonly byte[] Byte0; + + private static readonly short[] Short0; + + private static readonly byte[] Byte1; + + private static readonly short[] Short1; + + private static readonly byte[] Byte2; + + public static short smethod_0(int int9) + { + return (short) (Byte0[int9 & 15] << 12 | Byte0[int9 >> 4 & 15] << 8 | Byte0[int9 >> 8 & 15] << 4 | + Byte0[int9 >> 12]); + } + + static Class8() + { + _int0 = 16384; + Int1 = 286; + Int2 = 30; + _int3 = 19; + _int4 = 16; + _int5 = 17; + _int6 = 18; + _int7 = 256; + _int8 = new[] + { + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15 + }; + Byte0 = new byte[] + { + 0, + 8, + 4, + 12, + 2, + 10, + 6, + 14, + 1, + 9, + 5, + 13, + 3, + 11, + 7, + 15 + }; + Short0 = new short[Int1]; + Byte1 = new byte[Int1]; + var i = 0; + while (i < 144) + { + Short0[i] = smethod_0(48 + i << 8); + Byte1[i++] = 8; + } + while (i < 256) + { + Short0[i] = smethod_0(256 + i << 7); + Byte1[i++] = 9; + } + while (i < 280) + { + Short0[i] = smethod_0(-256 + i << 9); + Byte1[i++] = 7; + } + while (i < Int1) + { + Short0[i] = smethod_0(-88 + i << 8); + Byte1[i++] = 8; + } + Short1 = new short[Int2]; + Byte2 = new byte[Int2]; + for (i = 0; i < Int2; i++) + { + Short1[i] = smethod_0(i << 11); + Byte2[i] = 5; + } + } + } + + public class Stream0 : MemoryStream + { + public int method_0() + { + return ReadByte() | ReadByte() << 8; + } + + public int method_1() + { + return method_0() | method_0() << 16; + } + + public Stream0(byte[] byte0) : base(byte0, false) + { + } + } + + public static byte[] smethod_0(byte[] byte0) + { + var stream = new Stream0(byte0); + var array = new byte[0]; + var num = stream.method_1(); + if (num == 67324752) + { + var num2 = (short) stream.method_0(); + var num3 = stream.method_0(); + var num4 = stream.method_0(); + if (num == 67324752 && num2 == 20 && num3 == 0) + { + if (num4 == 8) + { + stream.method_1(); + stream.method_1(); + stream.method_1(); + var num5 = stream.method_1(); + var num6 = stream.method_0(); + var num7 = stream.method_0(); + if (num6 > 0) + { + var buffer = new byte[num6]; + stream.Read(buffer, 0, num6); + } + if (num7 > 0) + { + var buffer2 = new byte[num7]; + stream.Read(buffer2, 0, num7); + } + var array2 = new byte[stream.Length - stream.Position]; + stream.Read(array2, 0, array2.Length); + var @class = new Class3(array2); + array = new byte[num5]; + @class.method_2(array, 0, array.Length); + goto IL_1FF; + } + } + throw new FormatException("Wrong Header Signature"); + } + var num8 = num >> 24; + num -= num8 << 24; + if (num != 8223355) + { + throw new FormatException("Unknown Header"); + } + if (num8 == 1) + { + var num9 = stream.method_1(); + array = new byte[num9]; + int num11; + for (var i = 0; i < num9; i += num11) + { + var num10 = stream.method_1(); + num11 = stream.method_1(); + var array3 = new byte[num10]; + stream.Read(array3, 0, array3.Length); + var class2 = new Class3(array3); + class2.method_2(array, i, num11); + } + } + if (num8 == 2) + { + var dEsCryptoServiceProvider = new DESCryptoServiceProvider(); + dEsCryptoServiceProvider.Key = new byte[] + { + 162, + 181, + 141, + 204, + 197, + 202, + 205, + 58 + }; + dEsCryptoServiceProvider.IV = new byte[] + { + 83, + 253, + 177, + 222, + 83, + 112, + 167, + 112 + }; + var cryptoTransform = dEsCryptoServiceProvider.CreateDecryptor(); + var byte_ = cryptoTransform.TransformFinalBlock(byte0, 4, byte0.Length - 4); + dEsCryptoServiceProvider.Clear(); + array = smethod_0(byte_); + } + IL_1FF: + stream.Close(); + return array; + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Class9.cs b/GHNamespace1/Class9.cs index eb00d8c..5511779 100644 --- a/GHNamespace1/Class9.cs +++ b/GHNamespace1/Class9.cs @@ -2,53 +2,53 @@ namespace GHNamespace1 { - public class Class9 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] - public struct Struct1 - { - } + public class Class9 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] + public struct Struct1 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] - public struct Struct2 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] + public struct Struct2 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)] - public struct Struct3 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)] + public struct Struct3 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] - public struct Struct4 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] + public struct Struct4 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] - public struct Struct5 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] + public struct Struct5 + { + } - public static long Long0; + public static long Long0; - public static long Long1; + public static long Long1; - public static Struct1 Struct10; + public static Struct1 Struct10; - public static Struct1 Struct11; + public static Struct1 Struct11; - public static Struct2 Struct20; + public static Struct2 Struct20; - public static Struct2 Struct21; + public static Struct2 Struct21; - public static Struct3 Struct30; + public static Struct3 Struct30; - public static Struct3 Struct31; + public static Struct3 Struct31; - public static Struct4 Struct40; + public static Struct4 Struct40; - public static Struct4 Struct41; + public static Struct4 Struct41; - public static Struct5 Struct50; - } -} + public static Struct5 Struct50; + } +} \ No newline at end of file diff --git a/GHNamespace1/Form0.cs b/GHNamespace1/Form0.cs index 7497d0f..957697b 100644 --- a/GHNamespace1/Form0.cs +++ b/GHNamespace1/Form0.cs @@ -3,10 +3,9 @@ namespace GHNamespace1 { - [StructLayout(LayoutKind.Sequential)] - public class Form0 : WaveFormat - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 100)] - public readonly byte[] byte_0 = new byte[100]; - } -} + [StructLayout(LayoutKind.Sequential)] + public class Form0 : WaveFormat + { + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 100)] public readonly byte[] byte_0 = new byte[100]; + } +} \ No newline at end of file diff --git a/GHNamespace1/Interface5.cs b/GHNamespace1/Interface5.cs index e72fe1b..b91bf76 100644 --- a/GHNamespace1/Interface5.cs +++ b/GHNamespace1/Interface5.cs @@ -2,8 +2,8 @@ namespace GHNamespace1 { - public interface INterface5 - { - void imethod_0(Class13[] class130); - } -} + public interface INterface5 + { + void imethod_0(Class13[] class130); + } +} \ No newline at end of file diff --git a/GHNamespace1/QBModifiedCheck.cs b/GHNamespace1/QBModifiedCheck.cs index 6e33368..e9ef762 100644 --- a/GHNamespace1/QBModifiedCheck.cs +++ b/GHNamespace1/QBModifiedCheck.cs @@ -3,14 +3,14 @@ namespace GHNamespace1 { - public static class QbModifiedCheck - { - private static ModuleHandle _moduleHandle0; + public static class QbModifiedCheck + { + private static ModuleHandle _moduleHandle0; - private static char[] _char0; + private static char[] _char0; - public static void smethod_0(int int0) - { + public static void smethod_0(int int0) + { throw new Exception("FUCK IT GOT CALLED"); // MethodInfo methodInfo; @@ -145,76 +145,76 @@ public static void smethod_0(int int0) // } // goto IL_CA; // } - } + } - static QbModifiedCheck() - { - _char0 = new[] - { - '\u0001', - '\u0002', - '\u0003', - '\u0004', - '\u0005', - '\u0006', - '\a', - '\b', - '\u000e', - '\u000f', - '\u0010', - '\u0011', - '\u0012', - '\u0013', - '\u0014', - '\u0015', - '\u0016', - '\u0017', - '\u0018', - '\u0019', - '\u001a', - '\u001b', - '\u001c', - '\u001d', - '\u001e', - '\u001f', - '\u007f', - '\u0080', - '\u0081', - '\u0082', - '\u0083', - '\u0084', - '\u0086', - '\u0087', - '\u0088', - '\u0089', - '\u008a', - '\u008b', - '\u008c', - '\u008d', - '\u008e', - '\u008f', - '\u0090', - '\u0091', - '\u0092', - '\u0093', - '\u0094', - '\u0095', - '\u0096', - '\u0097', - '\u0098', - '\u0099', - '\u009a', - '\u009b', - '\u009c', - '\u009d', - '\u009e', - '\u009f' - }; - var typeFromHandle = typeof(MulticastDelegate); - if (typeFromHandle != null) - { - _moduleHandle0 = Assembly.GetExecutingAssembly().GetModules()[0].ModuleHandle; - } - } - } -} + static QbModifiedCheck() + { + _char0 = new[] + { + '\u0001', + '\u0002', + '\u0003', + '\u0004', + '\u0005', + '\u0006', + '\a', + '\b', + '\u000e', + '\u000f', + '\u0010', + '\u0011', + '\u0012', + '\u0013', + '\u0014', + '\u0015', + '\u0016', + '\u0017', + '\u0018', + '\u0019', + '\u001a', + '\u001b', + '\u001c', + '\u001d', + '\u001e', + '\u001f', + '\u007f', + '\u0080', + '\u0081', + '\u0082', + '\u0083', + '\u0084', + '\u0086', + '\u0087', + '\u0088', + '\u0089', + '\u008a', + '\u008b', + '\u008c', + '\u008d', + '\u008e', + '\u008f', + '\u0090', + '\u0091', + '\u0092', + '\u0093', + '\u0094', + '\u0095', + '\u0096', + '\u0097', + '\u0098', + '\u0099', + '\u009a', + '\u009b', + '\u009c', + '\u009d', + '\u009e', + '\u009f' + }; + var typeFromHandle = typeof(MulticastDelegate); + if (typeFromHandle != null) + { + _moduleHandle0 = Assembly.GetExecutingAssembly().GetModules()[0].ModuleHandle; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Stream1.cs b/GHNamespace1/Stream1.cs index 69d8e7e..f6c5083 100644 --- a/GHNamespace1/Stream1.cs +++ b/GHNamespace1/Stream1.cs @@ -6,285 +6,285 @@ namespace GHNamespace1 { - public abstract class GenericAudioStream : Stream - { - public Stream FileStream; + public abstract class GenericAudioStream : Stream + { + public Stream FileStream; - public WaveFormat WaveFormat0; + public WaveFormat WaveFormat0; - private static int _int0 = 368; + private static int _int0 = 368; - private static int _int1 = 264; + private static int _int1 = 264; - public virtual WaveFormat vmethod_0() - { - return WaveFormat0; - } + public virtual WaveFormat vmethod_0() + { + return WaveFormat0; + } - public virtual Class16 vmethod_1() - { - return new Class16(WaveFormat0, (uint)Position, (uint)Length); - } + public virtual Class16 vmethod_1() + { + return new Class16(WaveFormat0, (uint) Position, (uint) Length); + } - public virtual Stream vmethod_2() - { - return FileStream; - } + public virtual Stream vmethod_2() + { + return FileStream; + } - public virtual int vmethod_3(IntPtr intptr0, int int2) - { - var array = new byte[int2]; - var num = Read(array, 0, int2); - Marshal.Copy(array, 0, intptr0, num); - return num; - } + public virtual int vmethod_3(IntPtr intptr0, int int2) + { + var array = new byte[int2]; + var num = Read(array, 0, int2); + Marshal.Copy(array, 0, intptr0, num); + return num; + } - public virtual int vmethod_4(float[] float0, int int2, int int3) - { - var num = vmethod_0().short_2 + 7 >> 3; - var array = new byte[num * int3]; - var num2 = Read(array, num * int2, array.Length) / num; - var num3 = int2 + num2; - var short_ = vmethod_0().short_2; - if (short_ <= 16) - { - if (short_ == 8) - { - for (var i = 0; i < num3; i++) - { - float0[int2 + i] = Class11.smethod_3(array[i]); - } - return num2; - } - if (short_ == 16) - { - var num4 = 0; - while (int2 < num3) - { - float0[int2] = Class11.smethod_7(BitConverter.ToInt16(array, num4)); - num4 += num; - int2++; - } - return num2; - } - } - else - { - if (short_ == 24) - { - var num5 = 0; - while (int2 < num3) - { - float0[int2] = Class11.smethod_11(Struct8.smethod_2(array, num5)); - num5 += num; - int2++; - } - return num2; - } - if (short_ != 32) - { - if (short_ == 64) - { - if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) - { - var num6 = 0; - while (int2 < num3) - { - float0[int2] = Class11.smethod_26(BitConverter.ToDouble(array, num6)); - num6 += num; - int2++; - } - return num2; - } - } - } - else - { - if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) - { - Buffer.BlockCopy(array, 0, float0, int2 << 2, num2); - return num2; - } - var num7 = 0; - while (int2 < num3) - { - float0[int2] = Class11.smethod_15(BitConverter.ToInt32(array, num7)); - num7 += num; - int2++; - } - return num2; - } - } - throw new ArrayTypeMismatchException(); - } + public virtual int vmethod_4(float[] float0, int int2, int int3) + { + var num = vmethod_0().short_2 + 7 >> 3; + var array = new byte[num * int3]; + var num2 = Read(array, num * int2, array.Length) / num; + var num3 = int2 + num2; + var short_ = vmethod_0().short_2; + if (short_ <= 16) + { + if (short_ == 8) + { + for (var i = 0; i < num3; i++) + { + float0[int2 + i] = Class11.smethod_3(array[i]); + } + return num2; + } + if (short_ == 16) + { + var num4 = 0; + while (int2 < num3) + { + float0[int2] = Class11.smethod_7(BitConverter.ToInt16(array, num4)); + num4 += num; + int2++; + } + return num2; + } + } + else + { + if (short_ == 24) + { + var num5 = 0; + while (int2 < num3) + { + float0[int2] = Class11.smethod_11(Struct8.smethod_2(array, num5)); + num5 += num; + int2++; + } + return num2; + } + if (short_ != 32) + { + if (short_ == 64) + { + if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) + { + var num6 = 0; + while (int2 < num3) + { + float0[int2] = Class11.smethod_26(BitConverter.ToDouble(array, num6)); + num6 += num; + int2++; + } + return num2; + } + } + } + else + { + if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) + { + Buffer.BlockCopy(array, 0, float0, int2 << 2, num2); + return num2; + } + var num7 = 0; + while (int2 < num3) + { + float0[int2] = Class11.smethod_15(BitConverter.ToInt32(array, num7)); + num7 += num; + int2++; + } + return num2; + } + } + throw new ArrayTypeMismatchException(); + } - public virtual float[][] vmethod_5(int int2) - { - var num = vmethod_0().short_2 + 7 >> 3; - var array = new byte[num * int2 * WaveFormat0.short_0]; - var num2 = Read(array, 0, array.Length) / num / WaveFormat0.short_0; - if (num2 <= 0) - { - return null; - } - int short_ = WaveFormat0.short_0; - var num3 = num * short_; - var array2 = new float[short_][]; - var short2 = vmethod_0().short_2; - if (short2 <= 16) - { - if (short2 == 8) - { - for (var i = 0; i < short_; i++) - { - var array3 = array2[i] = new float[num2]; - var j = 0; - var num4 = i; - while (j < array3.Length) - { - array3[j] = Class11.smethod_3(array[num4]); - j++; - num4 += short_; - } - } - return array2; - } - if (short2 == 16) - { - for (var k = 0; k < short_; k++) - { - var array4 = array2[k] = new float[num2]; - var l = 0; - var num5 = num * k; - while (l < array4.Length) - { - array4[l] = Class11.smethod_7(BitConverter.ToInt16(array, num5)); - l++; - num5 += num3; - } - } - return array2; - } - } - else - { - if (short2 == 24) - { - for (var m = 0; m < short_; m++) - { - var array5 = array2[m] = new float[num2]; - var n = 0; - var num6 = num * m; - while (n < array5.Length) - { - array5[n] = Class11.smethod_11(Struct8.smethod_2(array, num6)); - n++; - num6 += num3; - } - } - return array2; - } - if (short2 != 32) - { - if (short2 == 64) - { - if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) - { - for (var num7 = 0; num7 < short_; num7++) - { - var array6 = array2[num7] = new float[num2]; - var num8 = 0; - var num9 = num * num7; - while (num8 < array6.Length) - { - array6[num8] = Class11.smethod_26(BitConverter.ToDouble(array, num9)); - num8++; - num9 += num3; - } - } - return array2; - } - } - } - else - { - if (vmethod_0().waveFormatTag_0 != WaveFormatTag.IeeeFloat) - { - for (var num10 = 0; num10 < short_; num10++) - { - var array7 = array2[num10] = new float[num2]; - var num11 = 0; - var num12 = num * num10; - while (num11 < array7.Length) - { - array7[num11] = Class11.smethod_15(BitConverter.ToInt32(array, num12)); - num11++; - num12 += num3; - } - } - return array2; - } - if (short_ == 1) - { - Buffer.BlockCopy(array, 0, array2[0], 0, array.Length); - return array2; - } - for (var num13 = 0; num13 < short_; num13++) - { - var array8 = array2[num13] = new float[num2]; - var num14 = 0; - var num15 = num * num13; - while (num14 < array8.Length) - { - array8[num14] = BitConverter.ToSingle(array, num15); - num14++; - num15 += num3; - } - } - return array2; - } - } - throw new ArrayTypeMismatchException(); - } + public virtual float[][] vmethod_5(int int2) + { + var num = vmethod_0().short_2 + 7 >> 3; + var array = new byte[num * int2 * WaveFormat0.short_0]; + var num2 = Read(array, 0, array.Length) / num / WaveFormat0.short_0; + if (num2 <= 0) + { + return null; + } + int short_ = WaveFormat0.short_0; + var num3 = num * short_; + var array2 = new float[short_][]; + var short2 = vmethod_0().short_2; + if (short2 <= 16) + { + if (short2 == 8) + { + for (var i = 0; i < short_; i++) + { + var array3 = array2[i] = new float[num2]; + var j = 0; + var num4 = i; + while (j < array3.Length) + { + array3[j] = Class11.smethod_3(array[num4]); + j++; + num4 += short_; + } + } + return array2; + } + if (short2 == 16) + { + for (var k = 0; k < short_; k++) + { + var array4 = array2[k] = new float[num2]; + var l = 0; + var num5 = num * k; + while (l < array4.Length) + { + array4[l] = Class11.smethod_7(BitConverter.ToInt16(array, num5)); + l++; + num5 += num3; + } + } + return array2; + } + } + else + { + if (short2 == 24) + { + for (var m = 0; m < short_; m++) + { + var array5 = array2[m] = new float[num2]; + var n = 0; + var num6 = num * m; + while (n < array5.Length) + { + array5[n] = Class11.smethod_11(Struct8.smethod_2(array, num6)); + n++; + num6 += num3; + } + } + return array2; + } + if (short2 != 32) + { + if (short2 == 64) + { + if (vmethod_0().waveFormatTag_0 == WaveFormatTag.IeeeFloat) + { + for (var num7 = 0; num7 < short_; num7++) + { + var array6 = array2[num7] = new float[num2]; + var num8 = 0; + var num9 = num * num7; + while (num8 < array6.Length) + { + array6[num8] = Class11.smethod_26(BitConverter.ToDouble(array, num9)); + num8++; + num9 += num3; + } + } + return array2; + } + } + } + else + { + if (vmethod_0().waveFormatTag_0 != WaveFormatTag.IeeeFloat) + { + for (var num10 = 0; num10 < short_; num10++) + { + var array7 = array2[num10] = new float[num2]; + var num11 = 0; + var num12 = num * num10; + while (num11 < array7.Length) + { + array7[num11] = Class11.smethod_15(BitConverter.ToInt32(array, num12)); + num11++; + num12 += num3; + } + } + return array2; + } + if (short_ == 1) + { + Buffer.BlockCopy(array, 0, array2[0], 0, array.Length); + return array2; + } + for (var num13 = 0; num13 < short_; num13++) + { + var array8 = array2[num13] = new float[num2]; + var num14 = 0; + var num15 = num * num13; + while (num14 < array8.Length) + { + array8[num14] = BitConverter.ToSingle(array, num15); + num14++; + num15 += num3; + } + } + return array2; + } + } + throw new ArrayTypeMismatchException(); + } - public override long Seek(long offset, SeekOrigin origin) - { - switch (origin) - { - case SeekOrigin.Begin: - Position = offset; - return offset; - case SeekOrigin.Current: - return Position += offset; - case SeekOrigin.End: - return Position = Length + offset; - default: - throw new NotSupportedException(); - } - } + public override long Seek(long offset, SeekOrigin origin) + { + switch (origin) + { + case SeekOrigin.Begin: + Position = offset; + return offset; + case SeekOrigin.Current: + return Position += offset; + case SeekOrigin.End: + return Position = Length + offset; + default: + throw new NotSupportedException(); + } + } - public override void Close() - { - Dispose(); - } + public override void Close() + { + Dispose(); + } - public override void Flush() - { - FileStream.Flush(); - } + public override void Flush() + { + FileStream.Flush(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - FileStream.Close(); - } - } + { + if (disposing) + { + FileStream.Close(); + } + } - public new virtual void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - } -} + public new virtual void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Stream2.cs b/GHNamespace1/Stream2.cs index 0fb23bb..9ac9e61 100644 --- a/GHNamespace1/Stream2.cs +++ b/GHNamespace1/Stream2.cs @@ -6,435 +6,443 @@ namespace GHNamespace1 { - public class Stream2 : GenericAudioStream - { - private readonly List _list0; - - private readonly Class12 _class120; - - private readonly long _long0; - - private long _long1; - - private readonly bool _bool0; - - private readonly int _int2; - - private readonly Enum2 _enum20; - - private readonly bool _bool1; - - public override bool CanRead => true; - - public override bool CanSeek => true; - - public override bool CanWrite => false; - - public override long Length => _long0; - - public override long Position - { - get => _long1; - set - { - var num = value / (double)(WaveFormat0.int_0 * WaveFormat0.short_1); - for (var i = 0; i < _list0.Count; i++) - { - var num2 = Convert.ToInt64(_list0[i].vmethod_0().int_0 * _list0[i].vmethod_0().short_1 * num); - _list0[i].Position = ((_list0[i].Length < num2) ? _list0[i].Length : num2); - } - _long1 = value; - } - } - - public Stream2(GenericAudioStream[] stream10) : this(Enum2.Flag26, stream10) - { - } - - public Stream2(Enum2 enum21, GenericAudioStream[] stream10) : this(enum21, 0, false, stream10) - { - } - - public Stream2(Enum2 enum21, ushort ushort0, bool bool2, GenericAudioStream[] stream10) - { - _list0 = new List(); - _class120 = new Class12(new INterface5[0]); - //base..ctor(); - _enum20 = enum21; - _bool1 = bool2; - _list0.AddRange(stream10); - _bool0 = (stream10.Length == 1 && stream10[0].vmethod_0().short_0 == 1 && ushort0 < 2); - _long1 = 0L; - _long0 = stream10[0].Length; - var val = 0; - var num = 0; - for (var i = 0; i < stream10.Length; i++) - { - var stream = stream10[i]; - val = Math.Max(val, stream.vmethod_0().int_0); - if (_bool1) - { - num += stream.vmethod_0().short_0; - } - else - { - num = Math.Max(num, stream.vmethod_0().short_0); - } - stream.Position = _long1; - } - WaveFormat0 = new WaveFormat(val, (ushort0 != 0) ? ushort0 : Math.Min(num, smethod_0(_enum20) * (_bool1 ? stream10.Length : 1))); - for (var j = 0; j < stream10.Length; j++) - { - var stream2 = stream10[j]; - _long0 = Math.Max(_long0, Convert.ToInt64(WaveFormat0.int_0 * WaveFormat0.short_1 * stream2.vmethod_1().TimeSpan0.TotalSeconds)); - } - _int2 = WaveFormat0.short_0 << 2; - } - - public Stream2(GenericAudioStream stream10, INterface5[] interface50) : this(Enum2.Flag26, stream10, interface50) - { - } - - public Stream2(Enum2 enum21, GenericAudioStream stream10, INterface5[] interface50) : this(enum21, 0, stream10, interface50) - { - } - - public Stream2(Enum2 enum21, ushort ushort0, GenericAudioStream stream10, INterface5[] interface50) - { - _list0 = new List(); - _class120 = new Class12(new INterface5[0]); - //base..ctor(); - _enum20 = enum21; - _bool1 = false; - WaveFormat0 = new WaveFormat(stream10.vmethod_0().int_0, (ushort0 != 0) ? ushort0 : Math.Min(stream10.vmethod_0().short_0, smethod_0(_enum20))); - _list0.Add(stream10); - _long1 = 0L; - stream10.Position = 0L; - _long0 = Convert.ToInt64(WaveFormat0.int_0 * WaveFormat0.short_1 * stream10.vmethod_1().TimeSpan0.TotalSeconds); - method_0(interface50); - _bool0 = (stream10.vmethod_0().short_0 == 1 && ushort0 < 2); - _int2 = WaveFormat0.short_0 << 2; - } - - public void method_0(INterface5[] interface50) - { - _class120.AddRange(interface50); - } - - public override int vmethod_3(IntPtr intptr0, int int3) - { - int3 >>= 2; - var array = new float[int3]; - var num = vmethod_4(array, 0, int3); - Marshal.Copy(array, 0, intptr0, num); - return num << 2; - } - - public override int vmethod_4(float[] float0, int int3, int int4) - { - if (_long1 >= _long0) - { - return 0; - } - var num = 0; - var int5 = (int)(_long1 >> 2); - if (_bool0) - { - num = _list0[0].vmethod_4(float0, int3, int4); - if (num == 0) - { - _long1 = _long0; - return 0; - } - _class120.imethod_0(new[] - { - new Class13(int5, float0, int3, num) - }); - _long1 += (long)num << 2; - return num; - } - var array = vmethod_5(int4 / WaveFormat0.short_0); - if (array == null) - { - return 0; - } - var array2 = array; - for (var i = 0; i < array2.Length; i++) - { - var array3 = array2[i]; - num = Math.Max(array3.Length, num); - } - num *= WaveFormat0.short_0; - var num2 = array.Length; - for (var j = 0; j < num2; j++) - { - var array4 = array[j]; - var k = 0; - var num3 = int3 + j; - while (k < array4.Length) - { - float0[num3] = array4[k]; - k++; - num3 += num2; - } - } - return num; - } - - public override float[][] vmethod_5(int int3) - { - if (_long1 >= _long0) - { - return null; - } - var num = (int)(_long1 >> 2); - if (_bool0) - { - var array = _list0[0].vmethod_5(int3); - if (array == null) - { - _long1 = _long0; - return null; - } - _class120.imethod_0(new[] - { - new Class13(num, array[0]) - }); - _long1 += array[0].Length * _int2; - return array; - } - var num2 = 0; - var num3 = 0; - var list = new List(); - var list2 = new List(); - var i = 0; - while (i < _list0.Count) - { - float[][] array2; - if (_list0[i].vmethod_0().int_0 < WaveFormat0.int_0) - { - array2 = _list0[i].vmethod_5((int)(int3 * (_list0[i].vmethod_0().int_0 / (double)WaveFormat0.int_0))); - if (array2 != null) - { - var float_ = _list0[i].vmethod_0().int_0 / (float)WaveFormat0.int_0; - for (var j = 0; j < array2.Length; j++) - { - if ((_enum20 & (Enum2)(1 << j)) != 0) - { - var @class = new Class13(num / WaveFormat0.short_0, array2[j]); - smethod_1(@class, float_); - array2[j] = @class.Float0; - } - } - goto IL_19F; - } - } - else - { - array2 = _list0[i].vmethod_5(int3); - if (array2 != null) - { - goto IL_19F; - } - } - IL_32F: - i++; - continue; - IL_19F: - if (!_bool1) - { - if (array2.Length < WaveFormat0.short_0) - { - var array3 = new float[WaveFormat0.short_0][]; - Array.Copy(array2, array3, array2.Length); - var k = array2.Length; - var num4 = 0; - while (k < array3.Length) - { - if ((_enum20 & (Enum2)(1 << k - array2.Length)) != 0) - { - array3[k] = new float[array2[num4].Length]; - Buffer.BlockCopy(array2[num4], 0, array3[k], 0, array2[num4].Length << 2); - } - k++; - num4 = (num4 + 1) % array2.Length; - } - array2 = array3; - } - num3 = 0; - } - for (var l = 0; l < array2.Length; l++) - { - if ((_enum20 & (Enum2)(1 << l)) != 0) - { - if (num3 >= list.Count) - { - list.Add(new Class13(num / WaveFormat0.short_0, array2[l])); - list2.Add(1); - num2 = Math.Max(num2, array2[l].Length); - } - else - { - List list3; - int index; - (list3 = list2)[index = num3] = list3[index] + 1; - var class2 = list[num3]; - var class3 = new Class13(num / WaveFormat0.short_0, array2[l]); - if (num2 < array2[l].Length) - { - smethod_2(class3, class2); - list[num3] = class3; - num2 = array2[l].Length; - } - else - { - smethod_2(class2, class3); - } - } - num3 = (num3 + 1) % WaveFormat0.short_0; - } - } - goto IL_32F; - } - if (list.Count == 0) - { - _long1 = _long0; - return null; - } - var num5 = 0; - while (num5 < list.Count && list2[num5] > 1) - { - smethod_3(list[num5], 1f / list2[num5]); - num5++; - } - _class120.imethod_0(list.ToArray()); - var array4 = new float[list.Count][]; - for (var m = 0; m < array4.Length; m++) - { - array4[m] = list[m].Float0; - } - _long1 += num2 * _int2; - return array4; - } - - private static int smethod_0(Enum2 enum21) - { - var num = 0; - for (var num2 = (int)enum21; num2 != 0; num2 &= num2 - 1) - { - num++; - } - return num; - } - - private static void smethod_1(Class13 class130, float float0) - { - var float_ = class130.Float0; - var num = class130.method_0(); - var num2 = class130.method_2(); - var num3 = (int)(num2 / float0); - var array = new float[float_.Length - num2 + num3]; - Buffer.BlockCopy(float_, 0, array, 0, num << 2); - double num4 = num; - var num5 = num; - while (num5 < num + num3 && (int)num4 + 1 < float_.Length) - { - array[num5] = Class15.smethod_2(float_, (float)num4); - num4 += float0; - num5++; - } - Buffer.BlockCopy(float_, num + num2 << 2, array, num + num3 << 2, float_.Length - num - num2 << 2); - class130.Float0 = array; - } - - private static void smethod_2(Class13 class130, Class13 class131) - { - var num = class130.method_0(); - var num2 = class130.method_2(); - var num3 = class131.method_0(); - if (class131.Bool0) - { - try - { - for (var i = 0; i < num2; i++) - { - class130.vmethod_3(class130.vmethod_4(num + i) + class131.vmethod_4(num3 + i), num + i); - } - } - catch (IndexOutOfRangeException) - { - } - } - } - - private static void smethod_3(Class13 class130, float float0) - { - var float_ = class130.Float0; - var num = class130.method_0(); - var num2 = class130.method_2(); - try - { - for (var i = num; i < num + num2; i++) - { - float_[i] = class130.vmethod_1(i, float_[i], float0 * float_[i]); - } - Class15.smethod_8(float_, num); - Class15.smethod_8(float_, num + num2); - } - catch (IndexOutOfRangeException) - { - } - } - - public override int Read(byte[] buffer, int offset, int count) - { - count >>= 2; - var array = new float[count]; - var num = vmethod_4(array, 0, count); - Buffer.BlockCopy(array, 0, buffer, offset, num); - return num << 2; - } - - public override void SetLength(long value) - { - throw new NotImplementedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotImplementedException(); - } - - public override void Close() - { - foreach (var current in _list0) - { - current.Close(); - } - _class120.Clear(); - } + public class Stream2 : GenericAudioStream + { + private readonly List _list0; + + private readonly Class12 _class120; + + private readonly long _long0; + + private long _long1; + + private readonly bool _bool0; + + private readonly int _int2; + + private readonly Enum2 _enum20; + + private readonly bool _bool1; + + public override bool CanRead => true; + + public override bool CanSeek => true; + + public override bool CanWrite => false; + + public override long Length => _long0; + + public override long Position + { + get => _long1; + set + { + var num = value / (double) (WaveFormat0.int_0 * WaveFormat0.short_1); + for (var i = 0; i < _list0.Count; i++) + { + var num2 = Convert.ToInt64(_list0[i].vmethod_0().int_0 * _list0[i].vmethod_0().short_1 * num); + _list0[i].Position = ((_list0[i].Length < num2) ? _list0[i].Length : num2); + } + _long1 = value; + } + } + + public Stream2(GenericAudioStream[] stream10) : this(Enum2.Flag26, stream10) + { + } + + public Stream2(Enum2 enum21, GenericAudioStream[] stream10) : this(enum21, 0, false, stream10) + { + } + + public Stream2(Enum2 enum21, ushort ushort0, bool bool2, GenericAudioStream[] stream10) + { + _list0 = new List(); + _class120 = new Class12(new INterface5[0]); + //base..ctor(); + _enum20 = enum21; + _bool1 = bool2; + _list0.AddRange(stream10); + _bool0 = (stream10.Length == 1 && stream10[0].vmethod_0().short_0 == 1 && ushort0 < 2); + _long1 = 0L; + _long0 = stream10[0].Length; + var val = 0; + var num = 0; + for (var i = 0; i < stream10.Length; i++) + { + var stream = stream10[i]; + val = Math.Max(val, stream.vmethod_0().int_0); + if (_bool1) + { + num += stream.vmethod_0().short_0; + } + else + { + num = Math.Max(num, stream.vmethod_0().short_0); + } + stream.Position = _long1; + } + WaveFormat0 = new WaveFormat(val, + (ushort0 != 0) ? ushort0 : Math.Min(num, smethod_0(_enum20) * (_bool1 ? stream10.Length : 1))); + for (var j = 0; j < stream10.Length; j++) + { + var stream2 = stream10[j]; + _long0 = Math.Max(_long0, + Convert.ToInt64( + WaveFormat0.int_0 * WaveFormat0.short_1 * stream2.vmethod_1().TimeSpan0.TotalSeconds)); + } + _int2 = WaveFormat0.short_0 << 2; + } + + public Stream2(GenericAudioStream stream10, INterface5[] interface50) : this(Enum2.Flag26, stream10, + interface50) + { + } + + public Stream2(Enum2 enum21, GenericAudioStream stream10, INterface5[] interface50) : this(enum21, 0, stream10, + interface50) + { + } + + public Stream2(Enum2 enum21, ushort ushort0, GenericAudioStream stream10, INterface5[] interface50) + { + _list0 = new List(); + _class120 = new Class12(new INterface5[0]); + //base..ctor(); + _enum20 = enum21; + _bool1 = false; + WaveFormat0 = new WaveFormat(stream10.vmethod_0().int_0, + (ushort0 != 0) ? ushort0 : Math.Min(stream10.vmethod_0().short_0, smethod_0(_enum20))); + _list0.Add(stream10); + _long1 = 0L; + stream10.Position = 0L; + _long0 = Convert.ToInt64(WaveFormat0.int_0 * WaveFormat0.short_1 * + stream10.vmethod_1().TimeSpan0.TotalSeconds); + method_0(interface50); + _bool0 = (stream10.vmethod_0().short_0 == 1 && ushort0 < 2); + _int2 = WaveFormat0.short_0 << 2; + } + + public void method_0(INterface5[] interface50) + { + _class120.AddRange(interface50); + } + + public override int vmethod_3(IntPtr intptr0, int int3) + { + int3 >>= 2; + var array = new float[int3]; + var num = vmethod_4(array, 0, int3); + Marshal.Copy(array, 0, intptr0, num); + return num << 2; + } + + public override int vmethod_4(float[] float0, int int3, int int4) + { + if (_long1 >= _long0) + { + return 0; + } + var num = 0; + var int5 = (int) (_long1 >> 2); + if (_bool0) + { + num = _list0[0].vmethod_4(float0, int3, int4); + if (num == 0) + { + _long1 = _long0; + return 0; + } + _class120.imethod_0(new[] + { + new Class13(int5, float0, int3, num) + }); + _long1 += (long) num << 2; + return num; + } + var array = vmethod_5(int4 / WaveFormat0.short_0); + if (array == null) + { + return 0; + } + var array2 = array; + for (var i = 0; i < array2.Length; i++) + { + var array3 = array2[i]; + num = Math.Max(array3.Length, num); + } + num *= WaveFormat0.short_0; + var num2 = array.Length; + for (var j = 0; j < num2; j++) + { + var array4 = array[j]; + var k = 0; + var num3 = int3 + j; + while (k < array4.Length) + { + float0[num3] = array4[k]; + k++; + num3 += num2; + } + } + return num; + } + + public override float[][] vmethod_5(int int3) + { + if (_long1 >= _long0) + { + return null; + } + var num = (int) (_long1 >> 2); + if (_bool0) + { + var array = _list0[0].vmethod_5(int3); + if (array == null) + { + _long1 = _long0; + return null; + } + _class120.imethod_0(new[] + { + new Class13(num, array[0]) + }); + _long1 += array[0].Length * _int2; + return array; + } + var num2 = 0; + var num3 = 0; + var list = new List(); + var list2 = new List(); + var i = 0; + while (i < _list0.Count) + { + float[][] array2; + if (_list0[i].vmethod_0().int_0 < WaveFormat0.int_0) + { + array2 = _list0[i] + .vmethod_5((int) (int3 * (_list0[i].vmethod_0().int_0 / (double) WaveFormat0.int_0))); + if (array2 != null) + { + var float_ = _list0[i].vmethod_0().int_0 / (float) WaveFormat0.int_0; + for (var j = 0; j < array2.Length; j++) + { + if ((_enum20 & (Enum2) (1 << j)) != 0) + { + var @class = new Class13(num / WaveFormat0.short_0, array2[j]); + smethod_1(@class, float_); + array2[j] = @class.Float0; + } + } + goto IL_19F; + } + } + else + { + array2 = _list0[i].vmethod_5(int3); + if (array2 != null) + { + goto IL_19F; + } + } + IL_32F: + i++; + continue; + IL_19F: + if (!_bool1) + { + if (array2.Length < WaveFormat0.short_0) + { + var array3 = new float[WaveFormat0.short_0][]; + Array.Copy(array2, array3, array2.Length); + var k = array2.Length; + var num4 = 0; + while (k < array3.Length) + { + if ((_enum20 & (Enum2) (1 << k - array2.Length)) != 0) + { + array3[k] = new float[array2[num4].Length]; + Buffer.BlockCopy(array2[num4], 0, array3[k], 0, array2[num4].Length << 2); + } + k++; + num4 = (num4 + 1) % array2.Length; + } + array2 = array3; + } + num3 = 0; + } + for (var l = 0; l < array2.Length; l++) + { + if ((_enum20 & (Enum2) (1 << l)) != 0) + { + if (num3 >= list.Count) + { + list.Add(new Class13(num / WaveFormat0.short_0, array2[l])); + list2.Add(1); + num2 = Math.Max(num2, array2[l].Length); + } + else + { + List list3; + int index; + (list3 = list2)[index = num3] = list3[index] + 1; + var class2 = list[num3]; + var class3 = new Class13(num / WaveFormat0.short_0, array2[l]); + if (num2 < array2[l].Length) + { + smethod_2(class3, class2); + list[num3] = class3; + num2 = array2[l].Length; + } + else + { + smethod_2(class2, class3); + } + } + num3 = (num3 + 1) % WaveFormat0.short_0; + } + } + goto IL_32F; + } + if (list.Count == 0) + { + _long1 = _long0; + return null; + } + var num5 = 0; + while (num5 < list.Count && list2[num5] > 1) + { + smethod_3(list[num5], 1f / list2[num5]); + num5++; + } + _class120.imethod_0(list.ToArray()); + var array4 = new float[list.Count][]; + for (var m = 0; m < array4.Length; m++) + { + array4[m] = list[m].Float0; + } + _long1 += num2 * _int2; + return array4; + } + + private static int smethod_0(Enum2 enum21) + { + var num = 0; + for (var num2 = (int) enum21; num2 != 0; num2 &= num2 - 1) + { + num++; + } + return num; + } + + private static void smethod_1(Class13 class130, float float0) + { + var float_ = class130.Float0; + var num = class130.method_0(); + var num2 = class130.method_2(); + var num3 = (int) (num2 / float0); + var array = new float[float_.Length - num2 + num3]; + Buffer.BlockCopy(float_, 0, array, 0, num << 2); + double num4 = num; + var num5 = num; + while (num5 < num + num3 && (int) num4 + 1 < float_.Length) + { + array[num5] = Class15.smethod_2(float_, (float) num4); + num4 += float0; + num5++; + } + Buffer.BlockCopy(float_, num + num2 << 2, array, num + num3 << 2, float_.Length - num - num2 << 2); + class130.Float0 = array; + } + + private static void smethod_2(Class13 class130, Class13 class131) + { + var num = class130.method_0(); + var num2 = class130.method_2(); + var num3 = class131.method_0(); + if (class131.Bool0) + { + try + { + for (var i = 0; i < num2; i++) + { + class130.vmethod_3(class130.vmethod_4(num + i) + class131.vmethod_4(num3 + i), num + i); + } + } + catch (IndexOutOfRangeException) + { + } + } + } + + private static void smethod_3(Class13 class130, float float0) + { + var float_ = class130.Float0; + var num = class130.method_0(); + var num2 = class130.method_2(); + try + { + for (var i = num; i < num + num2; i++) + { + float_[i] = class130.vmethod_1(i, float_[i], float0 * float_[i]); + } + Class15.smethod_8(float_, num); + Class15.smethod_8(float_, num + num2); + } + catch (IndexOutOfRangeException) + { + } + } + + public override int Read(byte[] buffer, int offset, int count) + { + count >>= 2; + var array = new float[count]; + var num = vmethod_4(array, 0, count); + Buffer.BlockCopy(array, 0, buffer, offset, num); + return num << 2; + } + + public override void SetLength(long value) + { + throw new NotImplementedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotImplementedException(); + } + + public override void Close() + { + foreach (var current in _list0) + { + current.Close(); + } + _class120.Clear(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - _class120.Clear(); - foreach (var current in _list0) - { - current.Dispose(); - } - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - ~Stream2() - { - Dispose(false); - } - } -} + { + if (disposing) + { + _class120.Clear(); + foreach (var current in _list0) + { + current.Dispose(); + } + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + ~Stream2() + { + Dispose(false); + } + } +} \ No newline at end of file diff --git a/GHNamespace1/Struct8.cs b/GHNamespace1/Struct8.cs index c973149..7af69bd 100644 --- a/GHNamespace1/Struct8.cs +++ b/GHNamespace1/Struct8.cs @@ -3,108 +3,105 @@ namespace GHNamespace1 { - [StructLayout(LayoutKind.Explicit, Size = 3)] - public struct Struct8 - { - public const int Int0 = 8388607; + [StructLayout(LayoutKind.Explicit, Size = 3)] + public struct Struct8 + { + public const int Int0 = 8388607; - public const int Int1 = -8388608; + public const int Int1 = -8388608; - [FieldOffset(0)] - private byte byte_0; + [FieldOffset(0)] private byte byte_0; - [FieldOffset(1)] - private byte byte_1; + [FieldOffset(1)] private byte byte_1; - [FieldOffset(2)] - private byte byte_2; + [FieldOffset(2)] private byte byte_2; - public static int smethod_0(Struct8 struct80) - { - return BitConverter.ToInt32(new[] - { - struct80.byte_0, - struct80.byte_1, - struct80.byte_2, - (struct80.byte_2 > 127) ? (byte)255 : (byte)0 - }, 0); - } + public static int smethod_0(Struct8 struct80) + { + return BitConverter.ToInt32(new[] + { + struct80.byte_0, + struct80.byte_1, + struct80.byte_2, + (struct80.byte_2 > 127) ? (byte) 255 : (byte) 0 + }, 0); + } - public static Struct8 smethod_1(int int2) - { - var result = default(Struct8); - var bytes = BitConverter.GetBytes(int2); - result.byte_0 = bytes[0]; - result.byte_1 = bytes[1]; - result.byte_2 = bytes[2]; - return result; - } + public static Struct8 smethod_1(int int2) + { + var result = default(Struct8); + var bytes = BitConverter.GetBytes(int2); + result.byte_0 = bytes[0]; + result.byte_1 = bytes[1]; + result.byte_2 = bytes[2]; + return result; + } - public static Struct8 smethod_2(byte[] byte3, int int2) - { - return smethod_3(byte3, int2, false); - } + public static Struct8 smethod_2(byte[] byte3, int int2) + { + return smethod_3(byte3, int2, false); + } - public static Struct8 smethod_3(byte[] byte3, int int2, bool bool0) - { - if (byte3 == null) - { - throw new ArgumentNullException(); - } - if ((ulong)int2 >= (ulong)byte3.Length) - { - throw new ArgumentOutOfRangeException(); - } - if (int2 > byte3.Length - 3) - { - throw new ArgumentException("ToInt24: offseted size is too small."); - } - var result = default(Struct8); - if (bool0) - { - result.byte_0 = byte3[int2 + 2]; - result.byte_1 = byte3[int2 + 1]; - result.byte_2 = byte3[int2]; - } - else - { - result.byte_0 = byte3[int2]; - result.byte_1 = byte3[int2 + 1]; - result.byte_2 = byte3[int2 + 2]; - } - return result; - } + public static Struct8 smethod_3(byte[] byte3, int int2, bool bool0) + { + if (byte3 == null) + { + throw new ArgumentNullException(); + } + if ((ulong) int2 >= (ulong) byte3.Length) + { + throw new ArgumentOutOfRangeException(); + } + if (int2 > byte3.Length - 3) + { + throw new ArgumentException("ToInt24: offseted size is too small."); + } + var result = default(Struct8); + if (bool0) + { + result.byte_0 = byte3[int2 + 2]; + result.byte_1 = byte3[int2 + 1]; + result.byte_2 = byte3[int2]; + } + else + { + result.byte_0 = byte3[int2]; + result.byte_1 = byte3[int2 + 1]; + result.byte_2 = byte3[int2 + 2]; + } + return result; + } - public static byte[] smethod_4(Struct8 struct80) - { - return new[] - { - struct80.byte_0, - struct80.byte_1, - struct80.byte_2 - }; - } + public static byte[] smethod_4(Struct8 struct80) + { + return new[] + { + struct80.byte_0, + struct80.byte_1, + struct80.byte_2 + }; + } - public static Struct8 smethod_5(Struct8 struct80, int int2) - { - var array = new byte[4]; - array[0] = struct80.byte_0; - array[1] = struct80.byte_1; - array[2] = struct80.byte_2; - var num = BitConverter.ToInt32(array, 0); - num >>= int2; - return smethod_1(num); - } + public static Struct8 smethod_5(Struct8 struct80, int int2) + { + var array = new byte[4]; + array[0] = struct80.byte_0; + array[1] = struct80.byte_1; + array[2] = struct80.byte_2; + var num = BitConverter.ToInt32(array, 0); + num >>= int2; + return smethod_1(num); + } - public static Struct8 smethod_6(Struct8 struct80, int int2) - { - var array = new byte[4]; - array[0] = struct80.byte_0; - array[1] = struct80.byte_1; - array[2] = struct80.byte_2; - var num = BitConverter.ToInt32(array, 0); - num <<= int2; - return smethod_1(num); - } - } -} + public static Struct8 smethod_6(Struct8 struct80, int int2) + { + var array = new byte[4]; + array[0] = struct80.byte_0; + array[1] = struct80.byte_1; + array[2] = struct80.byte_2; + var num = BitConverter.ToInt32(array, 0); + num <<= int2; + return smethod_1(num); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/AudioInterface.cs b/GHNamespace2/AudioInterface.cs index 58dbd19..f11f621 100644 --- a/GHNamespace2/AudioInterface.cs +++ b/GHNamespace2/AudioInterface.cs @@ -3,26 +3,26 @@ namespace GHNamespace2 { - public interface IPlayableAudio - { - TimeSpan AudioLength(); + public interface IPlayableAudio + { + TimeSpan AudioLength(); - void SetStartingTime(TimeSpan timeSpan0); + void SetStartingTime(TimeSpan timeSpan0); - void SetStartingTimeBasedOnSomeValue(int int0); + void SetStartingTimeBasedOnSomeValue(int int0); - void DifferentStartPlaying(); + void DifferentStartPlaying(); - void StartPlaying(); + void StartPlaying(); - void StopPlaying(); + void StopPlaying(); - AudioStatus GetStatus(); + AudioStatus GetStatus(); - WaveFormat GetWaveFormat(); + WaveFormat GetWaveFormat(); - void SetVolume(float float0); + void SetVolume(float float0); - void Dispose(); - } -} + void Dispose(); + } +} \ No newline at end of file diff --git a/GHNamespace2/AudioStatus.cs b/GHNamespace2/AudioStatus.cs index df7c2c8..5e05899 100644 --- a/GHNamespace2/AudioStatus.cs +++ b/GHNamespace2/AudioStatus.cs @@ -1,9 +1,9 @@ namespace GHNamespace2 { - public enum AudioStatus - { - ShouldStopAudio, - ShouldStartAudio, - IsCurrentlyPlayingAudio - } -} + public enum AudioStatus + { + ShouldStopAudio, + ShouldStartAudio, + IsCurrentlyPlayingAudio + } +} \ No newline at end of file diff --git a/GHNamespace2/Class13.cs b/GHNamespace2/Class13.cs index 2131c36..700b2a5 100644 --- a/GHNamespace2/Class13.cs +++ b/GHNamespace2/Class13.cs @@ -4,206 +4,206 @@ namespace GHNamespace2 { - public class Class13 : IEnumerable, IEnumerable - { - public enum Enum0 - { - Const0 = 1, - Const1, - Const2, - Const3 = -1 - } + public class Class13 : IEnumerable, IEnumerable + { + public enum Enum0 + { + Const0 = 1, + Const1, + Const2, + Const3 = -1 + } - public class Class14 : IEnumerator, IEnumerator, IDisposable - { - private Class13 _class130; + public class Class14 : IEnumerator, IEnumerator, IDisposable + { + private Class13 _class130; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - public float Current => _class130.Float0[_int0]; - - object IEnumerator.Current => Current; - - public Class14(Class13 class131) - { - _class130 = class131; - Reset(); - } - - public void Dispose() - { - _class130 = null; - } - - public bool MoveNext() - { - return _int0++ < _int1; - } - - public void Reset() - { - _int0 = _class130._int1 - 1; - _int1 = _class130._int1 + _class130._int2; - } - } - - public float[] Float0; - - public int Int0; - - private int _int1; - - private int _int2; - - public bool Bool0 = true; - - private List _list0; - - private bool _bool1; - - private int _int3 = -1; - - private float[] _float1; - - private float[] _float2; - - private bool _bool2; - - private static readonly Enum0 Enum00 = Enum0.Const0; - - public float this[int int4] - { - get => Float0[_int1 + int4]; - set => Float0[_int1 + int4] = value; - } - - public int method_0() - { - return _int1; - } - - public void method_1(int int4) - { - if (int4 < 0 || int4 >= Float0.Length) - { - throw new IndexOutOfRangeException("Channel: Offset is out of range -> " + int4 + "."); - } - _int1 = int4; - } - - public int method_2() - { - return _int2; - } - - public void method_3(int int4) - { - if (int4 <= 0 || _int1 + int4 > Float0.Length) - { - throw new IndexOutOfRangeException("Channel: Length is out of range -> " + int4 + "."); - } - _int2 = int4; - } - - public Class13(int int4, float[] float3) : this(int4, float3, 0, float3.Length) - { - } - - public Class13(int int4, float[] float3, int int5, int int6) - { - Int0 = int4; - Float0 = float3; - method_1(int5); - method_3(int6); - method_4(); - } - - public virtual float vmethod_0(int int4) - { - if (!_bool1) - { - return 1f; - } - if (_bool2) - { - _float1 = new float[_list0.Count]; - _float2 = new float[_list0.Count]; - for (var i = 0; i < _list0.Count; i++) - { - _float1[i] = _list0[i].Float0; - _float2[i] = _list0[i].Float1; - } - _bool2 = false; - } - var num = Class15.smethod_3(_float1, _float2, (int4 - (float)method_0()) / method_2()); - switch (Enum00) - { - case Enum0.Const3: - return (float)Math.Sqrt(num); - case Enum0.Const1: - return num * num; - case Enum0.Const2: - return num * num * num; - } - return num; - } - - public virtual float vmethod_1(int int4, float float3, float float4) - { - var num = vmethod_0(int4); - return float4 * num + float3 * (1f - num); - } - - private void method_4() - { - if (_list0 == null) - { - _list0 = new List(); - vmethod_2(); - } - } - - public virtual void vmethod_2() - { - _list0.Clear(); - _list0.Add(new Struct9(0f, 1f)); - _list0.Add(new Struct9(1f, 1f)); - _bool2 = true; - _bool1 = false; - } - - public bool method_5(int int4) - { - return int4 >= 0 && int4 < method_2(); - } - - public virtual void vmethod_3(float float3, int int4) - { - if (method_5(int4)) - { - Float0[int4] = float3; - } - } - - public virtual float vmethod_4(int int4) - { - if (method_5(int4) && Bool0) - { - return Float0[int4]; - } - return 0f; - } - - public IEnumerator GetEnumerator() - { - return new Class14(this); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - } -} + public float Current => _class130.Float0[_int0]; + + object IEnumerator.Current => Current; + + public Class14(Class13 class131) + { + _class130 = class131; + Reset(); + } + + public void Dispose() + { + _class130 = null; + } + + public bool MoveNext() + { + return _int0++ < _int1; + } + + public void Reset() + { + _int0 = _class130._int1 - 1; + _int1 = _class130._int1 + _class130._int2; + } + } + + public float[] Float0; + + public int Int0; + + private int _int1; + + private int _int2; + + public bool Bool0 = true; + + private List _list0; + + private bool _bool1; + + private int _int3 = -1; + + private float[] _float1; + + private float[] _float2; + + private bool _bool2; + + private static readonly Enum0 Enum00 = Enum0.Const0; + + public float this[int int4] + { + get => Float0[_int1 + int4]; + set => Float0[_int1 + int4] = value; + } + + public int method_0() + { + return _int1; + } + + public void method_1(int int4) + { + if (int4 < 0 || int4 >= Float0.Length) + { + throw new IndexOutOfRangeException("Channel: Offset is out of range -> " + int4 + "."); + } + _int1 = int4; + } + + public int method_2() + { + return _int2; + } + + public void method_3(int int4) + { + if (int4 <= 0 || _int1 + int4 > Float0.Length) + { + throw new IndexOutOfRangeException("Channel: Length is out of range -> " + int4 + "."); + } + _int2 = int4; + } + + public Class13(int int4, float[] float3) : this(int4, float3, 0, float3.Length) + { + } + + public Class13(int int4, float[] float3, int int5, int int6) + { + Int0 = int4; + Float0 = float3; + method_1(int5); + method_3(int6); + method_4(); + } + + public virtual float vmethod_0(int int4) + { + if (!_bool1) + { + return 1f; + } + if (_bool2) + { + _float1 = new float[_list0.Count]; + _float2 = new float[_list0.Count]; + for (var i = 0; i < _list0.Count; i++) + { + _float1[i] = _list0[i].Float0; + _float2[i] = _list0[i].Float1; + } + _bool2 = false; + } + var num = Class15.smethod_3(_float1, _float2, (int4 - (float) method_0()) / method_2()); + switch (Enum00) + { + case Enum0.Const3: + return (float) Math.Sqrt(num); + case Enum0.Const1: + return num * num; + case Enum0.Const2: + return num * num * num; + } + return num; + } + + public virtual float vmethod_1(int int4, float float3, float float4) + { + var num = vmethod_0(int4); + return float4 * num + float3 * (1f - num); + } + + private void method_4() + { + if (_list0 == null) + { + _list0 = new List(); + vmethod_2(); + } + } + + public virtual void vmethod_2() + { + _list0.Clear(); + _list0.Add(new Struct9(0f, 1f)); + _list0.Add(new Struct9(1f, 1f)); + _bool2 = true; + _bool1 = false; + } + + public bool method_5(int int4) + { + return int4 >= 0 && int4 < method_2(); + } + + public virtual void vmethod_3(float float3, int int4) + { + if (method_5(int4)) + { + Float0[int4] = float3; + } + } + + public virtual float vmethod_4(int int4) + { + if (method_5(int4) && Bool0) + { + return Float0[int4]; + } + return 0f; + } + + public IEnumerator GetEnumerator() + { + return new Class14(this); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Class15.cs b/GHNamespace2/Class15.cs index 53e0e68..eef6083 100644 --- a/GHNamespace2/Class15.cs +++ b/GHNamespace2/Class15.cs @@ -2,129 +2,130 @@ namespace GHNamespace2 { - public static class Class15 - { - private static readonly double Double0 = 1.0 / Math.Log(Math.Pow(2.0, 0.083333333333333329)); + public static class Class15 + { + private static readonly double Double0 = 1.0 / Math.Log(Math.Pow(2.0, 0.083333333333333329)); - private static readonly double Double1 = 1.0 / Math.Log(2.0); + private static readonly double Double1 = 1.0 / Math.Log(2.0); - public static int Int0 = 64; + public static int Int0 = 64; - private static readonly int[] Int1 = { - 0, - 100, - 200, - 300, - 400, - 600, - 800, - 1200, - 2400 - }; + private static readonly int[] Int1 = + { + 0, + 100, + 200, + 300, + 400, + 600, + 800, + 1200, + 2400 + }; - public static int Int2 = 30; + public static int Int2 = 30; - public static float smethod_0(float float0) - { - return (float)smethod_1(float0); - } + public static float smethod_0(float float0) + { + return (float) smethod_1(float0); + } - public static double smethod_1(double double2) - { - return Math.Max(8.6858896380650368 * Math.Log(Math.Abs(double2)), -200.0); - } + public static double smethod_1(double double2) + { + return Math.Max(8.6858896380650368 * Math.Log(Math.Abs(double2)), -200.0); + } - public static float smethod_2(float[] float0, float float1) - { - float result; - try - { - result = float0[(int)float1 % float0.Length]; - } - catch (IndexOutOfRangeException) - { - result = 0f; - } - return result; - } + public static float smethod_2(float[] float0, float float1) + { + float result; + try + { + result = float0[(int) float1 % float0.Length]; + } + catch (IndexOutOfRangeException) + { + result = 0f; + } + return result; + } - public static float smethod_3(float[] float0, float[] float1, float float2) - { - if (float2 < float0[0]) - { - return float1[0]; - } - for (var i = 1; i < float0.Length; i++) - { - if (float0[i] > float2) - { - var num = float0[i] - float0[i - 1]; - var num2 = float1[i] - float1[i - 1]; - return float1[i - 1] + (float2 - float0[i - 1]) / num * num2; - } - } - return float1[float1.Length - 1]; - } + public static float smethod_3(float[] float0, float[] float1, float float2) + { + if (float2 < float0[0]) + { + return float1[0]; + } + for (var i = 1; i < float0.Length; i++) + { + if (float0[i] > float2) + { + var num = float0[i] - float0[i - 1]; + var num2 = float1[i] - float1[i - 1]; + return float1[i - 1] + (float2 - float0[i - 1]) / num * num2; + } + } + return float1[float1.Length - 1]; + } - public static float smethod_4(float[] float0, int int3, int int4) - { - var num = 0f; - for (var i = 0; i < int4; i++) - { - num += float0[int3 + i] * float0[int3 + i]; - } - return (float)Math.Sqrt(num / int4); - } + public static float smethod_4(float[] float0, int int3, int int4) + { + var num = 0f; + for (var i = 0; i < int4; i++) + { + num += float0[int3 + i] * float0[int3 + i]; + } + return (float) Math.Sqrt(num / int4); + } - public static float smethod_5(float float0, float float1, float float2) - { - return (float0 * float2 + float1) / (float2 + 1f); - } + public static float smethod_5(float float0, float float1, float float2) + { + return (float0 * float2 + float1) / (float2 + 1f); + } - public static void smethod_6(float[] float0, int int3, int int4, float float1) - { - var num = float0[int3]; - for (var i = int3; i < int3 + int4; i++) - { - num = smethod_5(num, float0[i], float1); - float0[i] = num; - } - num = float0[int3 + int4 - 1]; - for (var j = int3 + int4 - 1; j >= int3; j--) - { - num = smethod_5(num, float0[j], float1); - float0[j] = num; - } - } + public static void smethod_6(float[] float0, int int3, int int4, float float1) + { + var num = float0[int3]; + for (var i = int3; i < int3 + int4; i++) + { + num = smethod_5(num, float0[i], float1); + float0[i] = num; + } + num = float0[int3 + int4 - 1]; + for (var j = int3 + int4 - 1; j >= int3; j--) + { + num = smethod_5(num, float0[j], float1); + float0[j] = num; + } + } - public static void smethod_7(float[] float0, int int3, int int4) - { - try - { - smethod_6(float0, int3 - int4 / 2, int4, 1.5f); - } - catch (Exception) - { - } - } + public static void smethod_7(float[] float0, int int3, int int4) + { + try + { + smethod_6(float0, int3 - int4 / 2, int4, 1.5f); + } + catch (Exception) + { + } + } - public static void smethod_8(float[] float0, int int3) - { - smethod_7(float0, int3, Int2); - } + public static void smethod_8(float[] float0, int int3) + { + smethod_7(float0, int3, Int2); + } - public static float smethod_9(float[] float0, int int3, int int4) - { - var num = 0f; - for (var i = 0; i < int4; i++) - { - var num2 = Math.Abs(float0[int3 + i]); - if (num2 > num) - { - num = num2; - } - } - return num; - } - } -} + public static float smethod_9(float[] float0, int int3, int int4) + { + var num = 0f; + for (var i = 0; i < int4; i++) + { + var num2 = Math.Abs(float0[int3 + i]); + if (num2 > num) + { + num = num2; + } + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Class16.cs b/GHNamespace2/Class16.cs index a98e7f1..cb89e23 100644 --- a/GHNamespace2/Class16.cs +++ b/GHNamespace2/Class16.cs @@ -3,66 +3,66 @@ namespace GHNamespace2 { - public class Class16 - { - public readonly short Short0; + public class Class16 + { + public readonly short Short0; - public readonly int Int0; + public readonly int Int0; - public readonly uint Uint0; + public readonly uint Uint0; - public readonly TimeSpan TimeSpan0; + public readonly TimeSpan TimeSpan0; - public readonly uint Uint1; + public readonly uint Uint1; - public readonly uint Uint2; + public readonly uint Uint2; - public readonly uint Uint3; + public readonly uint Uint3; - public readonly WaveFormat WaveFormat0; + public readonly WaveFormat WaveFormat0; - public short method_0() - { - return WaveFormat0.short_0; - } + public short method_0() + { + return WaveFormat0.short_0; + } - public short method_1() - { - return WaveFormat0.short_1; - } + public short method_1() + { + return WaveFormat0.short_1; + } - public short method_2() - { - return WaveFormat0.short_2; - } + public short method_2() + { + return WaveFormat0.short_2; + } - public int method_3() - { - return WaveFormat0.int_0; - } + public int method_3() + { + return WaveFormat0.int_0; + } - public Class16(WaveFormat waveFormat1, uint uint4, uint uint5, int int1) - { - WaveFormat0 = waveFormat1; - Short0 = (short)(method_1() / method_0()); - Int0 = int1; - TimeSpan0 = TimeSpan.FromSeconds((uint5 - uint4) / (int1 / 8.0)); - Uint0 = Convert.ToUInt32(method_3() * TimeSpan0.TotalSeconds); - Uint1 = uint4; - Uint3 = Uint0 * (uint)method_1(); - Uint2 = uint5 - Uint1; - } + public Class16(WaveFormat waveFormat1, uint uint4, uint uint5, int int1) + { + WaveFormat0 = waveFormat1; + Short0 = (short) (method_1() / method_0()); + Int0 = int1; + TimeSpan0 = TimeSpan.FromSeconds((uint5 - uint4) / (int1 / 8.0)); + Uint0 = Convert.ToUInt32(method_3() * TimeSpan0.TotalSeconds); + Uint1 = uint4; + Uint3 = Uint0 * (uint) method_1(); + Uint2 = uint5 - Uint1; + } - public Class16(WaveFormat waveFormat1, uint uint4, uint uint5) - { - WaveFormat0 = waveFormat1; - Short0 = (short)(method_1() / method_0()); - Int0 = method_0() * method_3() * method_2(); - Uint0 = Convert.ToUInt32((long)(uint5 / (ulong)method_1())); - TimeSpan0 = TimeSpan.FromSeconds(Uint0 / (double)method_3()); - Uint1 = uint4; - Uint3 = uint5 - Uint1; - Uint2 = 0u; - } - } -} + public Class16(WaveFormat waveFormat1, uint uint4, uint uint5) + { + WaveFormat0 = waveFormat1; + Short0 = (short) (method_1() / method_0()); + Int0 = method_0() * method_3() * method_2(); + Uint0 = Convert.ToUInt32((long) (uint5 / (ulong) method_1())); + TimeSpan0 = TimeSpan.FromSeconds(Uint0 / (double) method_3()); + Uint1 = uint4; + Uint3 = uint5 - Uint1; + Uint2 = 0u; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Class17.cs b/GHNamespace2/Class17.cs index 19aacc8..cdcfdcd 100644 --- a/GHNamespace2/Class17.cs +++ b/GHNamespace2/Class17.cs @@ -3,94 +3,91 @@ namespace GHNamespace2 { - [StructLayout(LayoutKind.Explicit)] - public class Class17 - { - [FieldOffset(0)] - private int int_0; - - [FieldOffset(4)] - private readonly byte[] byte_0; - - [FieldOffset(4)] - private float[] float_0; - - [FieldOffset(4)] - private short[] short_0; - - [FieldOffset(4)] - private int[] int_1; - - public Class17(int int2) - { - var num = int2 & 3; - int2 = ((num == 0) ? int2 : (int2 + 4 - num)); - byte_0 = new byte[int2]; - int_0 = 0; - } - - public static short[] smethod_0(Class17 class170) - { - return class170.short_0; - } - - public byte[] method_0() - { - return byte_0; - } - - public float[] method_1() - { - return float_0; - } - - public short[] method_2() - { - return short_0; - } - - public int method_3() - { - return int_0; - } - - public void method_4(int int2) - { - int_0 = method_9("ByteBufferCount", int2, 0); - } - - public int method_5() - { - return int_0 >> 2; - } - - public void method_6(int int2) - { - int_0 = method_9("FloatBufferCount", int2, 2); - } - - public int method_7() - { - return int_0 >> 1; - } - - public void method_8(int int2) - { - int_0 = method_9("ShortBufferCount", int2, 1); - } - - private int method_9(string string0, int int2, int int3) - { - var num = int2 << int3; - if ((num & 3) != 0) - { - throw new ArgumentOutOfRangeException(string0, string.Format("{0} cannot set a count ({1}) that is not 4 bytes aligned ", string0, num)); - } - if (int2 < 0 || int2 > byte_0.Length >> int3) - { - throw new ArgumentOutOfRangeException(string0, string.Format("{0} cannot set a count that exceed max count {1}", string0, byte_0.Length >> int3)); - } - return num; - } - } -} + [StructLayout(LayoutKind.Explicit)] + public class Class17 + { + [FieldOffset(0)] private int int_0; + + [FieldOffset(4)] private readonly byte[] byte_0; + + [FieldOffset(4)] private float[] float_0; + + [FieldOffset(4)] private short[] short_0; + + [FieldOffset(4)] private int[] int_1; + + public Class17(int int2) + { + var num = int2 & 3; + int2 = ((num == 0) ? int2 : (int2 + 4 - num)); + byte_0 = new byte[int2]; + int_0 = 0; + } + + public static short[] smethod_0(Class17 class170) + { + return class170.short_0; + } + + public byte[] method_0() + { + return byte_0; + } + + public float[] method_1() + { + return float_0; + } + + public short[] method_2() + { + return short_0; + } + + public int method_3() + { + return int_0; + } + + public void method_4(int int2) + { + int_0 = method_9("ByteBufferCount", int2, 0); + } + + public int method_5() + { + return int_0 >> 2; + } + + public void method_6(int int2) + { + int_0 = method_9("FloatBufferCount", int2, 2); + } + + public int method_7() + { + return int_0 >> 1; + } + + public void method_8(int int2) + { + int_0 = method_9("ShortBufferCount", int2, 1); + } + + private int method_9(string string0, int int2, int int3) + { + var num = int2 << int3; + if ((num & 3) != 0) + { + throw new ArgumentOutOfRangeException(string0, + string.Format("{0} cannot set a count ({1}) that is not 4 bytes aligned ", string0, num)); + } + if (int2 < 0 || int2 > byte_0.Length >> int3) + { + throw new ArgumentOutOfRangeException(string0, + string.Format("{0} cannot set a count that exceed max count {1}", string0, byte_0.Length >> int3)); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Class18.cs b/GHNamespace2/Class18.cs index e0f7c7c..690e3f4 100644 --- a/GHNamespace2/Class18.cs +++ b/GHNamespace2/Class18.cs @@ -4,30 +4,30 @@ namespace GHNamespace2 { - public class Class18 : ICustomMarshaler - { - public void CleanUpManagedData(object managedObj) - { - } + public class Class18 : ICustomMarshaler + { + public void CleanUpManagedData(object managedObj) + { + } - public void CleanUpNativeData(IntPtr pNativeData) - { - Marshal.FreeHGlobal(pNativeData); - } + public void CleanUpNativeData(IntPtr pNativeData) + { + Marshal.FreeHGlobal(pNativeData); + } - public int GetNativeDataSize() - { - throw new NotImplementedException(); - } + public int GetNativeDataSize() + { + throw new NotImplementedException(); + } - public IntPtr MarshalManagedToNative(object managedObj) - { - return WaveFormat.smethod_1((WaveFormat)managedObj); - } + public IntPtr MarshalManagedToNative(object managedObj) + { + return WaveFormat.smethod_1((WaveFormat) managedObj); + } - public object MarshalNativeToManaged(IntPtr pNativeData) - { - return WaveFormat.smethod_0(pNativeData); - } - } -} + public object MarshalNativeToManaged(IntPtr pNativeData) + { + return WaveFormat.smethod_0(pNativeData); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Class19.cs b/GHNamespace2/Class19.cs index 13cfb54..db6dc29 100644 --- a/GHNamespace2/Class19.cs +++ b/GHNamespace2/Class19.cs @@ -3,49 +3,49 @@ namespace GHNamespace2 { - public class Class19 : IDisposable - { - private readonly Class17 _class170; - - private readonly GCHandle _gchandle0; - - private readonly IntPtr _intptr0; - - public Class19(int int0) - { - _class170 = new Class17(int0); - _class170.method_4(int0); - _gchandle0 = GCHandle.Alloc(_class170.method_0(), GCHandleType.Pinned); - _intptr0 = _gchandle0.AddrOfPinnedObject(); - } - - ~Class19() - { - method_0(false); - } - - public void Dispose() - { - GC.SuppressFinalize(this); - method_0(true); - } - - public void method_0(bool bool0) - { - if (_gchandle0.IsAllocated) - { - _gchandle0.Free(); - } - } - - public static short[] smethod_0(Class19 class190) - { - return Class17.smethod_0(class190._class170); - } - - public static IntPtr smethod_1(Class19 class190) - { - return class190._intptr0; - } - } -} + public class Class19 : IDisposable + { + private readonly Class17 _class170; + + private readonly GCHandle _gchandle0; + + private readonly IntPtr _intptr0; + + public Class19(int int0) + { + _class170 = new Class17(int0); + _class170.method_4(int0); + _gchandle0 = GCHandle.Alloc(_class170.method_0(), GCHandleType.Pinned); + _intptr0 = _gchandle0.AddrOfPinnedObject(); + } + + ~Class19() + { + method_0(false); + } + + public void Dispose() + { + GC.SuppressFinalize(this); + method_0(true); + } + + public void method_0(bool bool0) + { + if (_gchandle0.IsAllocated) + { + _gchandle0.Free(); + } + } + + public static short[] smethod_0(Class19 class190) + { + return Class17.smethod_0(class190._class170); + } + + public static IntPtr smethod_1(Class19 class190) + { + return class190._intptr0; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Enum2.cs b/GHNamespace2/Enum2.cs index 19583e3..e4370fa 100644 --- a/GHNamespace2/Enum2.cs +++ b/GHNamespace2/Enum2.cs @@ -2,63 +2,63 @@ namespace GHNamespace2 { - [Flags] - public enum Enum2 - { - Flag0 = 1, - Flag1 = 2, - Flag2 = 4, - Flag3 = 8, - Flag4 = 16, - Flag5 = 32, - Flag6 = 64, - Flag7 = 128, - Flag8 = 256, - Flag9 = 512, - Flag10 = 1024, - Flag11 = 2048, - Flag12 = 4096, - Flag13 = 8192, - Flag14 = 16384, - Flag15 = 32768, - Flag16 = 65536, - Flag17 = 131072, - Flag18 = 262144, - Flag19 = 524288, - Flag20 = 1048576, - Flag21 = 2097152, - Flag22 = 4194304, - Flag23 = 8388608, - Flag24 = 2147221504, - Flag25 = -2147483648, - Flag26 = -1, - Flag27 = 3, - Flag28 = 12, - Flag29 = 48, - Flag30 = 192, - Flag31 = 1536, - Flag32 = 20480, - Flag33 = 163840, - Flag34 = 1572864, - Flag35 = 262152, - Flag36 = 10485760, - Flag37 = 259, - Flag38 = 267, - Flag39 = 51, - Flag40 = 263, - Flag41 = 271, - Flag42 = 55, - Flag43 = 63, - Flag44 = 455, - Flag45 = 1807, - Flag46 = 1591, - Flag47 = 247, - Flag48 = 1599, - Flag49 = 255, - Flag50 = 1847, - Flag51 = 1855, - Flag52 = 511, - Flag53 = 283135, - Flag54 = 16777215 - } -} + [Flags] + public enum Enum2 + { + Flag0 = 1, + Flag1 = 2, + Flag2 = 4, + Flag3 = 8, + Flag4 = 16, + Flag5 = 32, + Flag6 = 64, + Flag7 = 128, + Flag8 = 256, + Flag9 = 512, + Flag10 = 1024, + Flag11 = 2048, + Flag12 = 4096, + Flag13 = 8192, + Flag14 = 16384, + Flag15 = 32768, + Flag16 = 65536, + Flag17 = 131072, + Flag18 = 262144, + Flag19 = 524288, + Flag20 = 1048576, + Flag21 = 2097152, + Flag22 = 4194304, + Flag23 = 8388608, + Flag24 = 2147221504, + Flag25 = -2147483648, + Flag26 = -1, + Flag27 = 3, + Flag28 = 12, + Flag29 = 48, + Flag30 = 192, + Flag31 = 1536, + Flag32 = 20480, + Flag33 = 163840, + Flag34 = 1572864, + Flag35 = 262152, + Flag36 = 10485760, + Flag37 = 259, + Flag38 = 267, + Flag39 = 51, + Flag40 = 263, + Flag41 = 271, + Flag42 = 55, + Flag43 = 63, + Flag44 = 455, + Flag45 = 1807, + Flag46 = 1591, + Flag47 = 247, + Flag48 = 1599, + Flag49 = 255, + Flag50 = 1847, + Flag51 = 1855, + Flag52 = 511, + Flag53 = 283135, + Flag54 = 16777215 + } +} \ No newline at end of file diff --git a/GHNamespace2/Form1.cs b/GHNamespace2/Form1.cs index da35233..29a2687 100644 --- a/GHNamespace2/Form1.cs +++ b/GHNamespace2/Form1.cs @@ -4,18 +4,19 @@ namespace GHNamespace2 { - [StructLayout(LayoutKind.Sequential)] - public class Form1 : WaveFormat - { - public short short_4; + [StructLayout(LayoutKind.Sequential)] + public class Form1 : WaveFormat + { + public short short_4; - public Enum2 enum2_0; + public Enum2 enum2_0; - public Guid guid_0; + public Guid guid_0; - public override string ToString() - { - return string.Format("{0} wBitsPerSample:{1} dwChannelMask:{2} SubFormat:{3} extraSize:{4}", base.ToString(), short_4, enum2_0, guid_0, short_3); - } - } -} + public override string ToString() + { + return string.Format("{0} wBitsPerSample:{1} dwChannelMask:{2} SubFormat:{3} extraSize:{4}", + base.ToString(), short_4, enum2_0, guid_0, short_3); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Form2.cs b/GHNamespace2/Form2.cs index e397ed2..0f6a235 100644 --- a/GHNamespace2/Form2.cs +++ b/GHNamespace2/Form2.cs @@ -3,72 +3,72 @@ namespace GHNamespace2 { - [StructLayout(LayoutKind.Sequential)] - public class Form2 : WaveFormat - { - public short short_4; + [StructLayout(LayoutKind.Sequential)] + public class Form2 : WaveFormat + { + public short short_4; - public short short_5; + public short short_5; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)] - public short[] short_6; + [MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)] public short[] short_6; - private Form2() : this(8000, 1) - { - } + private Form2() : this(8000, 1) + { + } - public Form2(int int2, int int3) : base(int2, 0, int3) - { - waveFormatTag_0 = WaveFormatTag.Adpcm; - short_3 = 32; - var int4 = int_0; - if (int4 <= 11025) - { - if (int4 == 8000 || int4 == 11025) - { - short_1 = 256; - goto IL_6E; - } - } - else - { - if (int4 == 22050) - { - short_1 = 512; - goto IL_6E; - } - if (int4 != 44100) - { - } - } - short_1 = 1024; - IL_6E: - short_2 = 4; - short_4 = (short)((short_1 - 7 * int3) * 8 / (short_2 * int3) + 2); - int_1 = int_0 * short_1 / short_4; - short_5 = 7; - short_6 = new short[] - { - 256, - 0, - 512, - -256, - 0, - 0, - 192, - 64, - 240, - 0, - 460, - -208, - 392, - -232 - }; - } + public Form2(int int2, int int3) : base(int2, 0, int3) + { + waveFormatTag_0 = WaveFormatTag.Adpcm; + short_3 = 32; + var int4 = int_0; + if (int4 <= 11025) + { + if (int4 == 8000 || int4 == 11025) + { + short_1 = 256; + goto IL_6E; + } + } + else + { + if (int4 == 22050) + { + short_1 = 512; + goto IL_6E; + } + if (int4 != 44100) + { + } + } + short_1 = 1024; + IL_6E: + short_2 = 4; + short_4 = (short) ((short_1 - 7 * int3) * 8 / (short_2 * int3) + 2); + int_1 = int_0 * short_1 / short_4; + short_5 = 7; + short_6 = new short[] + { + 256, + 0, + 512, + -256, + 0, + 0, + 192, + 64, + 240, + 0, + 460, + -208, + 392, + -232 + }; + } - public override string ToString() - { - return string.Format("Microsoft ADPCM {0} Hz {1} channels {2} bits per sample {3} samples per block", int_0, short_0, short_2, short_4); - } - } -} + public override string ToString() + { + return string.Format("Microsoft ADPCM {0} Hz {1} channels {2} bits per sample {3} samples per block", int_0, + short_0, short_2, short_4); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Stream14.cs b/GHNamespace2/Stream14.cs index b62e29b..16dca59 100644 --- a/GHNamespace2/Stream14.cs +++ b/GHNamespace2/Stream14.cs @@ -4,53 +4,53 @@ namespace GHNamespace2 { - public abstract class Stream14 : Stream, IDisposable - { - public Stream Stream0; + public abstract class Stream14 : Stream, IDisposable + { + public Stream Stream0; - public WaveFormat WaveFormat0; + public WaveFormat WaveFormat0; - private static int _int0 = 368; + private static int _int0 = 368; - private static int _int1 = 264; + private static int _int1 = 264; - public virtual int vmethod_0() - { - return WaveFormat0.int_1 / 10; - } + public virtual int vmethod_0() + { + return WaveFormat0.int_1 / 10; + } - public int method_0() - { - return vmethod_0(); - } + public int method_0() + { + return vmethod_0(); + } - public virtual Stream vmethod_1() - { - Flush(); - return Stream0; - } + public virtual Stream vmethod_1() + { + Flush(); + return Stream0; + } - public override void Close() - { - Dispose(true); - } + public override void Close() + { + Dispose(true); + } - public override void Flush() - { - Stream0.Flush(); - } + public override void Flush() + { + Stream0.Flush(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Stream0.Close(); - } - } - - public new virtual void Dispose() - { - Dispose(true); - } - } -} + { + if (disposing) + { + Stream0.Close(); + } + } + + public new virtual void Dispose() + { + Dispose(true); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Stream15.cs b/GHNamespace2/Stream15.cs index 45ba07c..6f0a96c 100644 --- a/GHNamespace2/Stream15.cs +++ b/GHNamespace2/Stream15.cs @@ -4,54 +4,54 @@ namespace GHNamespace2 { - public class Stream15 : Stream14 - { - public override bool CanRead => Stream0.CanRead; - - public override bool CanSeek => Stream0.CanSeek; - - public override bool CanWrite => Stream0.CanWrite; - - public override long Length => Stream0.Length; - - public override long Position - { - get => Stream0.Position; - set => Stream0.Position = value; - } - - public Stream15() - { - } - - public Stream15(Stream stream1, WaveFormat waveFormat1) - { - Stream0 = stream1; - WaveFormat0 = waveFormat1; - } - - public override void SetLength(long value) - { - Stream0.SetLength(value); - } - - public override long Seek(long offset, SeekOrigin origin) - { - return Stream0.Seek(offset, origin); - } - - public override int Read(byte[] buffer, int offset, int count) - { - if (!CanRead) - { - throw new NotSupportedException(); - } - return Stream0.Read(buffer, offset, count); - } - - public override void Write(byte[] buffer, int offset, int count) - { - Stream0.Write(buffer, offset, count); - } - } -} + public class Stream15 : Stream14 + { + public override bool CanRead => Stream0.CanRead; + + public override bool CanSeek => Stream0.CanSeek; + + public override bool CanWrite => Stream0.CanWrite; + + public override long Length => Stream0.Length; + + public override long Position + { + get => Stream0.Position; + set => Stream0.Position = value; + } + + public Stream15() + { + } + + public Stream15(Stream stream1, WaveFormat waveFormat1) + { + Stream0 = stream1; + WaveFormat0 = waveFormat1; + } + + public override void SetLength(long value) + { + Stream0.SetLength(value); + } + + public override long Seek(long offset, SeekOrigin origin) + { + return Stream0.Seek(offset, origin); + } + + public override int Read(byte[] buffer, int offset, int count) + { + if (!CanRead) + { + throw new NotSupportedException(); + } + return Stream0.Read(buffer, offset, count); + } + + public override void Write(byte[] buffer, int offset, int count) + { + Stream0.Write(buffer, offset, count); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Stream3.cs b/GHNamespace2/Stream3.cs index c1e5192..fc226ad 100644 --- a/GHNamespace2/Stream3.cs +++ b/GHNamespace2/Stream3.cs @@ -4,164 +4,166 @@ namespace GHNamespace2 { - public class Stream3 : GenericAudioStream - { - private readonly GenericAudioStream _stream10; - - private readonly long _long0; - - private readonly long _long1; - - private long _long2; - - public override bool CanRead => _stream10.CanRead; - - public override bool CanSeek => _stream10.CanSeek; - - public override bool CanWrite => _stream10.CanWrite; - - public override long Length => _long1; - - public override long Position - { - get => _long2 - _long0; - set - { - if (value < 0L || value >= _long1) - { - throw new IOException("Seeking position out of range."); - } - _stream10.Position = (_long2 = _long0 + value); - } - } - - private long method_0() - { - return Math.Max(_long0 + _long1 - _long2, 0L); - } - - private Stream3(GenericAudioStream stream11) - { - _stream10 = stream11; - FileStream = stream11; - WaveFormat0 = stream11.vmethod_0(); - } - - public Stream3(GenericAudioStream stream11, long long3, long long4) : this(stream11) - { - if (0L > long3) - { - throw new ArgumentException("Start Offset is out of range."); - } - if (stream11.Length < long4) - { - throw new ArgumentException("End Offset is out of range."); - } - if (long3 >= long4) - { - throw new ArgumentException("Start/End Offset are out of range."); - } - _long1 = long4 - long3; - Stream arg630 = _stream10; - _long0 = long3; - _long2 = long3; - arg630.Position = long3; - } - - public Stream3(GenericAudioStream stream11, TimeSpan timeSpan0, TimeSpan timeSpan1) : this(stream11, Convert.ToInt32(stream11.vmethod_0().int_0 * stream11.vmethod_0().short_1 * timeSpan0.TotalSeconds), Convert.ToInt32(stream11.vmethod_0().int_0 * stream11.vmethod_0().short_1 * timeSpan1.TotalSeconds)) - { - } - - public override void SetLength(long value) - { - throw new NotImplementedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotImplementedException(); - } - - public override int vmethod_3(IntPtr intptr0, int int2) - { - int result; - lock (_stream10) - { - if (vmethod_2().Position != _long2) - { - vmethod_2().Position = _long2; - } - int2 = (int)Math.Min(int2, method_0()); - var num = _stream10.vmethod_3(intptr0, int2); - _long2 += num; - result = num; - } - return result; - } - - public override int Read(byte[] buffer, int offset, int count) - { - int result; - lock (_stream10) - { - if (vmethod_2().Position != _long2) - { - vmethod_2().Position = _long2; - } - count = (int)Math.Min(count, method_0()); - var num = _stream10.Read(buffer, offset, count); - _long2 += num; - result = num; - } - return result; - } - - public override int vmethod_4(float[] float0, int int2, int int3) - { - int result; - lock (_stream10) - { - if (vmethod_2().Position != _long2) - { - vmethod_2().Position = _long2; - } - int3 = (int)Math.Min(int3, method_0() >> 2); - var num = _stream10.vmethod_4(float0, int2, int3); - _long2 += (long)num << 2; - result = num; - } - return result; - } - - public override float[][] vmethod_5(int int2) - { - float[][] result; - lock (_stream10) - { - if (vmethod_2().Position != _long2) - { - vmethod_2().Position = _long2; - } - int2 = (int)Math.Min(int2, (method_0() >> 2) / WaveFormat0.short_0); - if (int2 == 0) - { - result = null; - } - else - { - var array = _stream10.vmethod_5(int2); - if (array != null && array.Length >= 1) - { - _long2 += (array[0].Length << 2) * array.Length; - result = array; - } - else - { - result = null; - } - } - } - return result; - } - } -} + public class Stream3 : GenericAudioStream + { + private readonly GenericAudioStream _stream10; + + private readonly long _long0; + + private readonly long _long1; + + private long _long2; + + public override bool CanRead => _stream10.CanRead; + + public override bool CanSeek => _stream10.CanSeek; + + public override bool CanWrite => _stream10.CanWrite; + + public override long Length => _long1; + + public override long Position + { + get => _long2 - _long0; + set + { + if (value < 0L || value >= _long1) + { + throw new IOException("Seeking position out of range."); + } + _stream10.Position = (_long2 = _long0 + value); + } + } + + private long method_0() + { + return Math.Max(_long0 + _long1 - _long2, 0L); + } + + private Stream3(GenericAudioStream stream11) + { + _stream10 = stream11; + FileStream = stream11; + WaveFormat0 = stream11.vmethod_0(); + } + + public Stream3(GenericAudioStream stream11, long long3, long long4) : this(stream11) + { + if (0L > long3) + { + throw new ArgumentException("Start Offset is out of range."); + } + if (stream11.Length < long4) + { + throw new ArgumentException("End Offset is out of range."); + } + if (long3 >= long4) + { + throw new ArgumentException("Start/End Offset are out of range."); + } + _long1 = long4 - long3; + Stream arg630 = _stream10; + _long0 = long3; + _long2 = long3; + arg630.Position = long3; + } + + public Stream3(GenericAudioStream stream11, TimeSpan timeSpan0, TimeSpan timeSpan1) : this(stream11, + Convert.ToInt32(stream11.vmethod_0().int_0 * stream11.vmethod_0().short_1 * timeSpan0.TotalSeconds), + Convert.ToInt32(stream11.vmethod_0().int_0 * stream11.vmethod_0().short_1 * timeSpan1.TotalSeconds)) + { + } + + public override void SetLength(long value) + { + throw new NotImplementedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotImplementedException(); + } + + public override int vmethod_3(IntPtr intptr0, int int2) + { + int result; + lock (_stream10) + { + if (vmethod_2().Position != _long2) + { + vmethod_2().Position = _long2; + } + int2 = (int) Math.Min(int2, method_0()); + var num = _stream10.vmethod_3(intptr0, int2); + _long2 += num; + result = num; + } + return result; + } + + public override int Read(byte[] buffer, int offset, int count) + { + int result; + lock (_stream10) + { + if (vmethod_2().Position != _long2) + { + vmethod_2().Position = _long2; + } + count = (int) Math.Min(count, method_0()); + var num = _stream10.Read(buffer, offset, count); + _long2 += num; + result = num; + } + return result; + } + + public override int vmethod_4(float[] float0, int int2, int int3) + { + int result; + lock (_stream10) + { + if (vmethod_2().Position != _long2) + { + vmethod_2().Position = _long2; + } + int3 = (int) Math.Min(int3, method_0() >> 2); + var num = _stream10.vmethod_4(float0, int2, int3); + _long2 += (long) num << 2; + result = num; + } + return result; + } + + public override float[][] vmethod_5(int int2) + { + float[][] result; + lock (_stream10) + { + if (vmethod_2().Position != _long2) + { + vmethod_2().Position = _long2; + } + int2 = (int) Math.Min(int2, (method_0() >> 2) / WaveFormat0.short_0); + if (int2 == 0) + { + result = null; + } + else + { + var array = _stream10.vmethod_5(int2); + if (array != null && array.Length >= 1) + { + _long2 += (array[0].Length << 2) * array.Length; + result = array; + } + else + { + result = null; + } + } + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Stream4.cs b/GHNamespace2/Stream4.cs index bfb9d84..adf054b 100644 --- a/GHNamespace2/Stream4.cs +++ b/GHNamespace2/Stream4.cs @@ -5,343 +5,343 @@ namespace GHNamespace2 { - public class Stream4 : GenericAudioStream - { - private delegate byte[] Delegate0(byte[] buffer, int index); - - private delegate int Delegate1(byte[] buffer, int index, int count); - - private readonly GenericAudioStream _stream10; - - private readonly int _int2; - - private readonly int _int3; - - private readonly long _long0; - - private readonly double _double0 = 1.0; - - private readonly bool _bool0; - - private readonly bool _bool1; - - private readonly Delegate0 _delegate00; - - private readonly Delegate1 _delegate10; - - public override bool CanRead => _stream10.CanRead; - - public override bool CanSeek => _stream10.CanSeek; - - public override bool CanWrite => _stream10.CanWrite; - - public override long Length => _long0; - - public override long Position - { - get - { - var position = _stream10.Position; - if (!_bool0) - { - return position; - } - return (long)(position * _double0); - } - set => _stream10.Position = (_bool0 ? ((long)(value / _double0)) : value); - } - - public Stream4(GenericAudioStream stream11, int int4) - { - _stream10 = stream11; - FileStream = stream11; - WaveFormat0 = stream11.vmethod_0(); - _int3 = int4 + 7 >> 3; - _int2 = WaveFormat0.short_2 + 7 >> 3; - _bool1 = (WaveFormat0.waveFormatTag_0 == WaveFormatTag.IeeeFloat); - _bool0 = (WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm || _int2 != _int3); - if (!_bool0) - { - _delegate10 = _stream10.Read; - _long0 = stream11.Length; - return; - } - WaveFormat0 = new WaveFormat(stream11.vmethod_0().int_0, int4, stream11.vmethod_0().short_0); - _double0 = _int3 / (double)_int2; - _long0 = (long)(stream11.Length * _double0); - if (!_bool1) - { - switch (_int3) - { - case 1: - switch (_int2) - { - case 2: - _delegate10 = method_2; - return; - case 3: - _delegate10 = method_1; - return; - case 4: - _delegate10 = method_0; - return; - default: - return; - } - break; - case 2: - switch (_int2) - { - case 1: - _delegate00 = smethod_8; - break; - case 3: - _delegate00 = smethod_7; - break; - case 4: - _delegate00 = smethod_6; - break; - } - break; - case 3: - switch (_int2) - { - case 1: - _delegate00 = smethod_5; - break; - case 2: - _delegate00 = smethod_4; - break; - case 4: - _delegate00 = smethod_3; - break; - } - break; - case 4: - switch (_int2) - { - case 1: - _delegate00 = smethod_2; - break; - case 2: - _delegate00 = smethod_1; - break; - case 3: - _delegate00 = smethod_0; - break; - } - break; - } - _delegate10 = method_3; - return; - } - switch (_int3) - { - case 1: - _delegate10 = method_7; - return; - case 2: - _delegate10 = method_6; - return; - case 3: - _delegate10 = method_5; - return; - case 4: - _delegate10 = method_4; - return; - default: - return; - } - } - - private int method_0(byte[] byte0, int int4, int int5) - { - var array = new byte[int5 << 2]; - var num = _stream10.Read(array, 0, array.Length); - var i = 0; - while (i < num) - { - byte0[int4] = Class11.smethod_12(BitConverter.ToInt32(byte0, i)); - i += 4; - int4++; - } - return num >> 2; - } - - private int method_1(byte[] byte0, int int4, int int5) - { - var array = new byte[int5 + int5 + int5]; - var num = _stream10.Read(array, 0, array.Length); - var i = 0; - while (i < num) - { - byte0[int4] = Class11.smethod_8(Struct8.smethod_2(byte0, i)); - i += 3; - int4++; - } - return num / 3; - } - - private int method_2(byte[] byte0, int int4, int int5) - { - var array = new byte[int5 << 1]; - var num = _stream10.Read(array, 0, array.Length); - var i = 0; - while (i < num) - { - byte0[int4] = Class11.smethod_4(BitConverter.ToInt16(byte0, i)); - i += 2; - int4++; - } - return num >> 1; - } - - private static byte[] smethod_0(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_10(Struct8.smethod_2(byte0, int4))); - } - - private static byte[] smethod_1(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_6(BitConverter.ToInt16(byte0, int4))); - } - - private static byte[] smethod_2(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_2(byte0[int4])); - } - - private static byte[] smethod_3(byte[] byte0, int int4) - { - return Struct8.smethod_4(Class11.smethod_14(BitConverter.ToInt32(byte0, int4))); - } - - private static byte[] smethod_4(byte[] byte0, int int4) - { - return Struct8.smethod_4(Class11.smethod_5(BitConverter.ToInt16(byte0, int4))); - } - - private static byte[] smethod_5(byte[] byte0, int int4) - { - return Struct8.smethod_4(Class11.smethod_1(byte0[int4])); - } - - private static byte[] smethod_6(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_13(BitConverter.ToInt32(byte0, int4))); - } - - private static byte[] smethod_7(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_9(Struct8.smethod_2(byte0, int4))); - } - - private static byte[] smethod_8(byte[] byte0, int int4) - { - return BitConverter.GetBytes(Class11.smethod_0(byte0[int4])); - } - - private int method_3(byte[] byte0, int int4, int int5) - { - var array = new byte[(int)(int5 / _double0)]; - var num = _stream10.Read(array, 0, array.Length); - var i = 0; - while (i < num) - { - Buffer.BlockCopy(_delegate00(array, i), 0, byte0, int4, _int3); - i += _int2; - int4 += _int3; - } - return (int)(num * _double0); - } - - private int method_4(byte[] byte0, int int4, int int5) - { - var array = new float[int5 >> 2]; - var num = _stream10.vmethod_4(array, 0, array.Length); - var i = 0; - while (i < num) - { - Buffer.BlockCopy(BitConverter.GetBytes(Class11.smethod_25(array[i])), 0, byte0, int4, 4); - i++; - int4 += 4; - } - return num << 2; - } - - private int method_5(byte[] byte0, int int4, int int5) - { - var array = new float[int5 / 3]; - var num = _stream10.vmethod_4(array, 0, array.Length); - var i = 0; - while (i < num) - { - Buffer.BlockCopy(Struct8.smethod_4(Class11.smethod_23(array[i])), 0, byte0, int4, 3); - i++; - int4 += 3; - } - return num + num + num; - } - - private int method_6(byte[] byte0, int int4, int int5) - { - var array = new float[int5 >> 1]; - var num = _stream10.vmethod_4(array, 0, array.Length); - var i = 0; - while (i < num) - { - Buffer.BlockCopy(BitConverter.GetBytes(Class11.smethod_21(array[i])), 0, byte0, int4, 2); - i++; - int4 += 2; - } - return num << 1; - } - - private int method_7(byte[] byte0, int int4, int int5) - { - var array = new float[int5]; - var num = _stream10.vmethod_4(array, 0, array.Length); - var i = 0; - while (i < num) - { - byte0[int4] = Class11.smethod_17(array[i]); - i++; - int4++; - } - return num; - } - - public override void SetLength(long value) - { - throw new NotImplementedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotImplementedException(); - } - - public override int vmethod_3(IntPtr intptr0, int int4) - { - var array = new byte[int4]; - var num = Read(array, 0, int4); - Marshal.Copy(array, 0, intptr0, num); - return num; - } - - public override int Read(byte[] buffer, int offset, int count) - { - return _delegate10(buffer, offset, count); - } - - public override int vmethod_4(float[] float0, int int4, int int5) - { - return _stream10.vmethod_4(float0, int4, int5); - } - - public override float[][] vmethod_5(int int4) - { - return _stream10.vmethod_5(int4); - } - } -} + public class Stream4 : GenericAudioStream + { + private delegate byte[] Delegate0(byte[] buffer, int index); + + private delegate int Delegate1(byte[] buffer, int index, int count); + + private readonly GenericAudioStream _stream10; + + private readonly int _int2; + + private readonly int _int3; + + private readonly long _long0; + + private readonly double _double0 = 1.0; + + private readonly bool _bool0; + + private readonly bool _bool1; + + private readonly Delegate0 _delegate00; + + private readonly Delegate1 _delegate10; + + public override bool CanRead => _stream10.CanRead; + + public override bool CanSeek => _stream10.CanSeek; + + public override bool CanWrite => _stream10.CanWrite; + + public override long Length => _long0; + + public override long Position + { + get + { + var position = _stream10.Position; + if (!_bool0) + { + return position; + } + return (long) (position * _double0); + } + set => _stream10.Position = (_bool0 ? ((long) (value / _double0)) : value); + } + + public Stream4(GenericAudioStream stream11, int int4) + { + _stream10 = stream11; + FileStream = stream11; + WaveFormat0 = stream11.vmethod_0(); + _int3 = int4 + 7 >> 3; + _int2 = WaveFormat0.short_2 + 7 >> 3; + _bool1 = (WaveFormat0.waveFormatTag_0 == WaveFormatTag.IeeeFloat); + _bool0 = (WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm || _int2 != _int3); + if (!_bool0) + { + _delegate10 = _stream10.Read; + _long0 = stream11.Length; + return; + } + WaveFormat0 = new WaveFormat(stream11.vmethod_0().int_0, int4, stream11.vmethod_0().short_0); + _double0 = _int3 / (double) _int2; + _long0 = (long) (stream11.Length * _double0); + if (!_bool1) + { + switch (_int3) + { + case 1: + switch (_int2) + { + case 2: + _delegate10 = method_2; + return; + case 3: + _delegate10 = method_1; + return; + case 4: + _delegate10 = method_0; + return; + default: + return; + } + break; + case 2: + switch (_int2) + { + case 1: + _delegate00 = smethod_8; + break; + case 3: + _delegate00 = smethod_7; + break; + case 4: + _delegate00 = smethod_6; + break; + } + break; + case 3: + switch (_int2) + { + case 1: + _delegate00 = smethod_5; + break; + case 2: + _delegate00 = smethod_4; + break; + case 4: + _delegate00 = smethod_3; + break; + } + break; + case 4: + switch (_int2) + { + case 1: + _delegate00 = smethod_2; + break; + case 2: + _delegate00 = smethod_1; + break; + case 3: + _delegate00 = smethod_0; + break; + } + break; + } + _delegate10 = method_3; + return; + } + switch (_int3) + { + case 1: + _delegate10 = method_7; + return; + case 2: + _delegate10 = method_6; + return; + case 3: + _delegate10 = method_5; + return; + case 4: + _delegate10 = method_4; + return; + default: + return; + } + } + + private int method_0(byte[] byte0, int int4, int int5) + { + var array = new byte[int5 << 2]; + var num = _stream10.Read(array, 0, array.Length); + var i = 0; + while (i < num) + { + byte0[int4] = Class11.smethod_12(BitConverter.ToInt32(byte0, i)); + i += 4; + int4++; + } + return num >> 2; + } + + private int method_1(byte[] byte0, int int4, int int5) + { + var array = new byte[int5 + int5 + int5]; + var num = _stream10.Read(array, 0, array.Length); + var i = 0; + while (i < num) + { + byte0[int4] = Class11.smethod_8(Struct8.smethod_2(byte0, i)); + i += 3; + int4++; + } + return num / 3; + } + + private int method_2(byte[] byte0, int int4, int int5) + { + var array = new byte[int5 << 1]; + var num = _stream10.Read(array, 0, array.Length); + var i = 0; + while (i < num) + { + byte0[int4] = Class11.smethod_4(BitConverter.ToInt16(byte0, i)); + i += 2; + int4++; + } + return num >> 1; + } + + private static byte[] smethod_0(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_10(Struct8.smethod_2(byte0, int4))); + } + + private static byte[] smethod_1(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_6(BitConverter.ToInt16(byte0, int4))); + } + + private static byte[] smethod_2(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_2(byte0[int4])); + } + + private static byte[] smethod_3(byte[] byte0, int int4) + { + return Struct8.smethod_4(Class11.smethod_14(BitConverter.ToInt32(byte0, int4))); + } + + private static byte[] smethod_4(byte[] byte0, int int4) + { + return Struct8.smethod_4(Class11.smethod_5(BitConverter.ToInt16(byte0, int4))); + } + + private static byte[] smethod_5(byte[] byte0, int int4) + { + return Struct8.smethod_4(Class11.smethod_1(byte0[int4])); + } + + private static byte[] smethod_6(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_13(BitConverter.ToInt32(byte0, int4))); + } + + private static byte[] smethod_7(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_9(Struct8.smethod_2(byte0, int4))); + } + + private static byte[] smethod_8(byte[] byte0, int int4) + { + return BitConverter.GetBytes(Class11.smethod_0(byte0[int4])); + } + + private int method_3(byte[] byte0, int int4, int int5) + { + var array = new byte[(int) (int5 / _double0)]; + var num = _stream10.Read(array, 0, array.Length); + var i = 0; + while (i < num) + { + Buffer.BlockCopy(_delegate00(array, i), 0, byte0, int4, _int3); + i += _int2; + int4 += _int3; + } + return (int) (num * _double0); + } + + private int method_4(byte[] byte0, int int4, int int5) + { + var array = new float[int5 >> 2]; + var num = _stream10.vmethod_4(array, 0, array.Length); + var i = 0; + while (i < num) + { + Buffer.BlockCopy(BitConverter.GetBytes(Class11.smethod_25(array[i])), 0, byte0, int4, 4); + i++; + int4 += 4; + } + return num << 2; + } + + private int method_5(byte[] byte0, int int4, int int5) + { + var array = new float[int5 / 3]; + var num = _stream10.vmethod_4(array, 0, array.Length); + var i = 0; + while (i < num) + { + Buffer.BlockCopy(Struct8.smethod_4(Class11.smethod_23(array[i])), 0, byte0, int4, 3); + i++; + int4 += 3; + } + return num + num + num; + } + + private int method_6(byte[] byte0, int int4, int int5) + { + var array = new float[int5 >> 1]; + var num = _stream10.vmethod_4(array, 0, array.Length); + var i = 0; + while (i < num) + { + Buffer.BlockCopy(BitConverter.GetBytes(Class11.smethod_21(array[i])), 0, byte0, int4, 2); + i++; + int4 += 2; + } + return num << 1; + } + + private int method_7(byte[] byte0, int int4, int int5) + { + var array = new float[int5]; + var num = _stream10.vmethod_4(array, 0, array.Length); + var i = 0; + while (i < num) + { + byte0[int4] = Class11.smethod_17(array[i]); + i++; + int4++; + } + return num; + } + + public override void SetLength(long value) + { + throw new NotImplementedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotImplementedException(); + } + + public override int vmethod_3(IntPtr intptr0, int int4) + { + var array = new byte[int4]; + var num = Read(array, 0, int4); + Marshal.Copy(array, 0, intptr0, num); + return num; + } + + public override int Read(byte[] buffer, int offset, int count) + { + return _delegate10(buffer, offset, count); + } + + public override int vmethod_4(float[] float0, int int4, int int5) + { + return _stream10.vmethod_4(float0, int4, int5); + } + + public override float[][] vmethod_5(int int4) + { + return _stream10.vmethod_5(int4); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Stream5.cs b/GHNamespace2/Stream5.cs index b94bc80..e14bd8f 100644 --- a/GHNamespace2/Stream5.cs +++ b/GHNamespace2/Stream5.cs @@ -5,54 +5,54 @@ namespace GHNamespace2 { - public class Stream5 : GenericAudioStream - { - public override bool CanRead => FileStream.CanRead; - - public override bool CanSeek => FileStream.CanSeek; - - public override bool CanWrite => FileStream.CanWrite; - - public override long Length => FileStream.Length; - - public override long Position - { - get => FileStream.Position; - set => FileStream.Position = value; - } - - public Stream5() - { - } - - public Stream5(Stream stream1, WaveFormat waveFormat1) - { - FileStream = stream1; - WaveFormat0 = waveFormat1; - } - - public override void SetLength(long value) - { - FileStream.SetLength(value); - } - - public override long Seek(long offset, SeekOrigin origin) - { - return FileStream.Seek(offset, origin); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return FileStream.Read(buffer, offset, count); - } - - public override void Write(byte[] buffer, int offset, int count) - { - if (!CanWrite) - { - throw new NotSupportedException(); - } - FileStream.Write(buffer, offset, count); - } - } -} + public class Stream5 : GenericAudioStream + { + public override bool CanRead => FileStream.CanRead; + + public override bool CanSeek => FileStream.CanSeek; + + public override bool CanWrite => FileStream.CanWrite; + + public override long Length => FileStream.Length; + + public override long Position + { + get => FileStream.Position; + set => FileStream.Position = value; + } + + public Stream5() + { + } + + public Stream5(Stream stream1, WaveFormat waveFormat1) + { + FileStream = stream1; + WaveFormat0 = waveFormat1; + } + + public override void SetLength(long value) + { + FileStream.SetLength(value); + } + + public override long Seek(long offset, SeekOrigin origin) + { + return FileStream.Seek(offset, origin); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return FileStream.Read(buffer, offset, count); + } + + public override void Write(byte[] buffer, int offset, int count) + { + if (!CanWrite) + { + throw new NotSupportedException(); + } + FileStream.Write(buffer, offset, count); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Struct10.cs b/GHNamespace2/Struct10.cs index 7775b2a..ec42763 100644 --- a/GHNamespace2/Struct10.cs +++ b/GHNamespace2/Struct10.cs @@ -2,78 +2,78 @@ namespace GHNamespace2 { - public struct Struct10 : IComparable, ICloneable - { - public float Float0; + public struct Struct10 : IComparable, ICloneable + { + public float Float0; - public float Float1; + public float Float1; - public Struct10(Struct10 struct100) - { - Float0 = struct100.Float0; - Float1 = struct100.Float1; - } + public Struct10(Struct10 struct100) + { + Float0 = struct100.Float0; + Float1 = struct100.Float1; + } - object ICloneable.Clone() - { - return new Struct10(this); - } + object ICloneable.Clone() + { + return new Struct10(this); + } - public float method_0() - { - var num = Float0; - var num2 = Float1; - return (float)Math.Sqrt(num * num + num2 * num2); - } + public float method_0() + { + var num = Float0; + var num2 = Float1; + return (float) Math.Sqrt(num * num + num2 * num2); + } - public static bool smethod_0(Struct10 struct100, Struct10 struct101) - { - return struct100.Float0 == struct101.Float0 && struct100.Float1 == struct101.Float1; - } + public static bool smethod_0(Struct10 struct100, Struct10 struct101) + { + return struct100.Float0 == struct101.Float0 && struct100.Float1 == struct101.Float1; + } - public override int GetHashCode() - { - return Float0.GetHashCode() ^ Float1.GetHashCode(); - } + public override int GetHashCode() + { + return Float0.GetHashCode() ^ Float1.GetHashCode(); + } - public override bool Equals(object obj) - { - if (obj is Struct10) - { - var struct10 = (Struct10)obj; - return smethod_0(this, struct10); - } - return false; - } + public override bool Equals(object obj) + { + if (obj is Struct10) + { + var struct10 = (Struct10) obj; + return smethod_0(this, struct10); + } + return false; + } - public int CompareTo(object target) - { - if (target == null) - { - return 1; - } - if (target is Struct10) - { - return method_0().CompareTo(((Struct10)target).method_0()); - } - if (target is float) - { - return method_0().CompareTo((float)target); - } - if (target is Struct12) - { - return method_0().CompareTo(((Struct12)target).method_0()); - } - if (!(target is double)) - { - throw new ArgumentException(); - } - return method_0().CompareTo((double)target); - } + public int CompareTo(object target) + { + if (target == null) + { + return 1; + } + if (target is Struct10) + { + return method_0().CompareTo(((Struct10) target).method_0()); + } + if (target is float) + { + return method_0().CompareTo((float) target); + } + if (target is Struct12) + { + return method_0().CompareTo(((Struct12) target).method_0()); + } + if (!(target is double)) + { + throw new ArgumentException(); + } + return method_0().CompareTo((double) target); + } - public override string ToString() - { - return string.Format("( {0}, {1}i )", Float0, Float1); - } - } -} + public override string ToString() + { + return string.Format("( {0}, {1}i )", Float0, Float1); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Struct11.cs b/GHNamespace2/Struct11.cs index 6433dcb..9d47dda 100644 --- a/GHNamespace2/Struct11.cs +++ b/GHNamespace2/Struct11.cs @@ -2,42 +2,42 @@ namespace GHNamespace2 { - public struct Struct11 - { - private readonly int _int0; + public struct Struct11 + { + private readonly int _int0; - private readonly int _int1; + private readonly int _int1; - public Struct11(int int2, int int3) - { - _int0 = int2; - _int1 = int3; - } + public Struct11(int int2, int int3) + { + _int0 = int2; + _int1 = int3; + } - public Struct11 method_0(Struct11 struct110) - { - var num = Math.Max(_int0, struct110._int0); - var num2 = Math.Min(_int1, struct110._int1); - if (num2 > num) - { - return new Struct11(num, num2); - } - return new Struct11(-1, -1); - } + public Struct11 method_0(Struct11 struct110) + { + var num = Math.Max(_int0, struct110._int0); + var num2 = Math.Min(_int1, struct110._int1); + if (num2 > num) + { + return new Struct11(num, num2); + } + return new Struct11(-1, -1); + } - public bool method_1() - { - return _int0 == -1 || _int1 == -1; - } + public bool method_1() + { + return _int0 == -1 || _int1 == -1; + } - public int method_2() - { - return _int0; - } + public int method_2() + { + return _int0; + } - public int method_3() - { - return _int1 - _int0; - } - } -} + public int method_3() + { + return _int1 - _int0; + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Struct12.cs b/GHNamespace2/Struct12.cs index c0e9d43..3f88291 100644 --- a/GHNamespace2/Struct12.cs +++ b/GHNamespace2/Struct12.cs @@ -2,78 +2,78 @@ namespace GHNamespace2 { - public struct Struct12 : IComparable, ICloneable - { - public double Double0; + public struct Struct12 : IComparable, ICloneable + { + public double Double0; - public double Double1; + public double Double1; - public Struct12(Struct12 struct120) - { - Double0 = struct120.Double0; - Double1 = struct120.Double1; - } + public Struct12(Struct12 struct120) + { + Double0 = struct120.Double0; + Double1 = struct120.Double1; + } - object ICloneable.Clone() - { - return new Struct12(this); - } + object ICloneable.Clone() + { + return new Struct12(this); + } - public double method_0() - { - var num = Double0; - var num2 = Double1; - return Math.Sqrt(num * num + num2 * num2); - } + public double method_0() + { + var num = Double0; + var num2 = Double1; + return Math.Sqrt(num * num + num2 * num2); + } - public static bool smethod_0(Struct12 struct120, Struct12 struct121) - { - return struct120.Double0 == struct121.Double0 && struct120.Double1 == struct121.Double1; - } + public static bool smethod_0(Struct12 struct120, Struct12 struct121) + { + return struct120.Double0 == struct121.Double0 && struct120.Double1 == struct121.Double1; + } - public override int GetHashCode() - { - return Double0.GetHashCode() ^ Double1.GetHashCode(); - } + public override int GetHashCode() + { + return Double0.GetHashCode() ^ Double1.GetHashCode(); + } - public override bool Equals(object obj) - { - if (obj is Struct12) - { - var struct12 = (Struct12)obj; - return smethod_0(this, struct12); - } - return false; - } + public override bool Equals(object obj) + { + if (obj is Struct12) + { + var struct12 = (Struct12) obj; + return smethod_0(this, struct12); + } + return false; + } - public int CompareTo(object target) - { - if (target == null) - { - return 1; - } - if (target is Struct12) - { - return method_0().CompareTo(((Struct12)target).method_0()); - } - if (target is double) - { - return method_0().CompareTo((double)target); - } - if (target is Struct10) - { - return method_0().CompareTo(((Struct10)target).method_0()); - } - if (!(target is float)) - { - throw new ArgumentException(); - } - return method_0().CompareTo((float)target); - } + public int CompareTo(object target) + { + if (target == null) + { + return 1; + } + if (target is Struct12) + { + return method_0().CompareTo(((Struct12) target).method_0()); + } + if (target is double) + { + return method_0().CompareTo((double) target); + } + if (target is Struct10) + { + return method_0().CompareTo(((Struct10) target).method_0()); + } + if (!(target is float)) + { + throw new ArgumentException(); + } + return method_0().CompareTo((float) target); + } - public override string ToString() - { - return string.Format("( {0}, {1}i )", Double0, Double1); - } - } -} + public override string ToString() + { + return string.Format("( {0}, {1}i )", Double0, Double1); + } + } +} \ No newline at end of file diff --git a/GHNamespace2/Struct9.cs b/GHNamespace2/Struct9.cs index f617df1..6d25013 100644 --- a/GHNamespace2/Struct9.cs +++ b/GHNamespace2/Struct9.cs @@ -1,15 +1,15 @@ namespace GHNamespace2 { - public struct Struct9 - { - public float Float0; + public struct Struct9 + { + public float Float0; - public float Float1; + public float Float1; - public Struct9(float float2, float float3) - { - Float0 = float2; - Float1 = float3; - } - } -} + public Struct9(float float2, float float3) + { + Float0 = float2; + Float1 = float3; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class51.cs b/GHNamespace3/Class51.cs index 7dfba45..ee48c06 100644 --- a/GHNamespace3/Class51.cs +++ b/GHNamespace3/Class51.cs @@ -3,20 +3,20 @@ namespace GHNamespace3 { - public class Class51 : Class50 - { - public override object vmethod_0(OggClass5 class490, OggClass3 class380) - { - return ""; - } + public class Class51 : Class50 + { + public override object vmethod_0(OggClass5 class490, OggClass3 class380) + { + return ""; + } - public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) - { - return ""; - } + public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) + { + return ""; + } - public override void vmethod_2(object object0) - { - } - } -} + public override void vmethod_2(object object0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class58.cs b/GHNamespace3/Class58.cs index 9aae93e..1fc967b 100644 --- a/GHNamespace3/Class58.cs +++ b/GHNamespace3/Class58.cs @@ -2,12 +2,12 @@ namespace GHNamespace3 { - public class Class58 : Class57 - { - private static int[][][] _int0 = new int[2][][]; + public class Class58 : Class57 + { + private static int[][][] _int0 = new int[2][][]; - public override void vmethod_0(object object0) - { - } - } -} + public override void vmethod_0(object object0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class59.cs b/GHNamespace3/Class59.cs index 91b3ced..67a9c59 100644 --- a/GHNamespace3/Class59.cs +++ b/GHNamespace3/Class59.cs @@ -1,6 +1,6 @@ namespace GHNamespace3 { - public class Class59 : Class58 - { - } -} + public class Class59 : Class58 + { + } +} \ No newline at end of file diff --git a/GHNamespace3/Class60.cs b/GHNamespace3/Class60.cs index f39db61..e14218c 100644 --- a/GHNamespace3/Class60.cs +++ b/GHNamespace3/Class60.cs @@ -1,6 +1,6 @@ namespace GHNamespace3 { - public class Class60 : Class58 - { - } -} + public class Class60 : Class58 + { + } +} \ No newline at end of file diff --git a/GHNamespace3/Class62.cs b/GHNamespace3/Class62.cs index 0bebda0..3d3952a 100644 --- a/GHNamespace3/Class62.cs +++ b/GHNamespace3/Class62.cs @@ -1,50 +1,51 @@ namespace GHNamespace3 { - public class Class62 - { - private static int _int0 = 256; + public class Class62 + { + private static int _int0 = 256; - private static readonly uint[] Uint0 = { - 0u, - 1u, - 3u, - 7u, - 15u, - 31u, - 63u, - 127u, - 255u, - 511u, - 1023u, - 2047u, - 4095u, - 8191u, - 16383u, - 32767u, - 65535u, - 131071u, - 262143u, - 524287u, - 1048575u, - 2097151u, - 4194303u, - 8388607u, - 16777215u, - 33554431u, - 67108863u, - 134217727u, - 268435455u, - 536870911u, - 1073741823u, - 2147483647u, - 4294967295u - }; + private static readonly uint[] Uint0 = + { + 0u, + 1u, + 3u, + 7u, + 15u, + 31u, + 63u, + 127u, + 255u, + 511u, + 1023u, + 2047u, + 4095u, + 8191u, + 16383u, + 32767u, + 65535u, + 131071u, + 262143u, + 524287u, + 1048575u, + 2097151u, + 4194303u, + 8388607u, + 16777215u, + 33554431u, + 67108863u, + 134217727u, + 268435455u, + 536870911u, + 1073741823u, + 2147483647u, + 4294967295u + }; - private byte[] _byte0; + private byte[] _byte0; - public void method_0() - { - _byte0 = null; - } - } -} + public void method_0() + { + _byte0 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class63.cs b/GHNamespace3/Class63.cs index af6f7b9..22c3896 100644 --- a/GHNamespace3/Class63.cs +++ b/GHNamespace3/Class63.cs @@ -1,15 +1,15 @@ namespace GHNamespace3 { - public class Class63 - { - private int _int0; + public class Class63 + { + private int _int0; - private int _int1; + private int _int1; - public void method_0(int int2, int int3) - { - _int0 = int2; - _int1 = int3; - } - } -} + public void method_0(int int2, int int3) + { + _int0 = int2; + _int1 = int3; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class64.cs b/GHNamespace3/Class64.cs index 05be43d..ea37ace 100644 --- a/GHNamespace3/Class64.cs +++ b/GHNamespace3/Class64.cs @@ -1,6 +1,6 @@ namespace GHNamespace3 { - public class Class64 - { - } -} + public class Class64 + { + } +} \ No newline at end of file diff --git a/GHNamespace3/Class67.cs b/GHNamespace3/Class67.cs index 83aebc6..27bf828 100644 --- a/GHNamespace3/Class67.cs +++ b/GHNamespace3/Class67.cs @@ -1,19 +1,19 @@ namespace GHNamespace3 { - public class Class67 - { - public byte[] Byte0; + public class Class67 + { + public byte[] Byte0; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public long Long0; + public long Long0; - public long Long1; - } -} + public long Long1; + } +} \ No newline at end of file diff --git a/GHNamespace3/Class68.cs b/GHNamespace3/Class68.cs index 38f796b..db44220 100644 --- a/GHNamespace3/Class68.cs +++ b/GHNamespace3/Class68.cs @@ -3,195 +3,195 @@ namespace GHNamespace3 { - public class Class68 - { - private int _int0; + public class Class68 + { + private int _int0; - private int _int1; + private int _int1; - private float[] _float0; + private float[] _float0; - private int[] _int2; + private int[] _int2; - private float _float1; + private float _float1; - private float[] _float2 = new float[1024]; + private float[] _float2 = new float[1024]; - private float[] _float3 = new float[1024]; + private float[] _float3 = new float[1024]; - public void method_0(int int3) - { - _int2 = new int[int3 / 4]; - _float0 = new float[int3 + int3 / 4]; - _int1 = (int)Math.Round(Math.Log(int3) / Math.Log(2.0)); - _int0 = int3; - var num = 0; - var num2 = 1; - var num3 = 0 + int3 / 2; - var num4 = num3 + 1; - var num5 = num3 + int3 / 2; - var num6 = num5 + 1; - for (var i = 0; i < int3 / 4; i++) - { - _float0[num + i * 2] = (float)Math.Cos(3.1415926535897931 / int3 * (4 * i)); - _float0[num2 + i * 2] = -(float)Math.Sin(3.1415926535897931 / int3 * (4 * i)); - _float0[num3 + i * 2] = (float)Math.Cos(3.1415926535897931 / (2 * int3) * (2 * i + 1)); - _float0[num4 + i * 2] = (float)Math.Sin(3.1415926535897931 / (2 * int3) * (2 * i + 1)); - } - for (var j = 0; j < int3 / 8; j++) - { - _float0[num5 + j * 2] = (float)Math.Cos(3.1415926535897931 / int3 * (4 * j + 2)); - _float0[num6 + j * 2] = -(float)Math.Sin(3.1415926535897931 / int3 * (4 * j + 2)); - } - var num7 = (1 << _int1 - 1) - 1; - var num8 = 1 << _int1 - 2; - for (var k = 0; k < int3 / 8; k++) - { - var num9 = 0; - var num10 = 0; - while ((uint)num8 >> num10 != 0u) - { - if (((uint)num8 >> num10 & (ulong)k) != 0uL) - { - num9 |= 1 << num10; - } - num10++; - } - _int2[k * 2] = (~num9 & num7); - _int2[k * 2 + 1] = num9; - } - _float1 = 4f / int3; - } + public void method_0(int int3) + { + _int2 = new int[int3 / 4]; + _float0 = new float[int3 + int3 / 4]; + _int1 = (int) Math.Round(Math.Log(int3) / Math.Log(2.0)); + _int0 = int3; + var num = 0; + var num2 = 1; + var num3 = 0 + int3 / 2; + var num4 = num3 + 1; + var num5 = num3 + int3 / 2; + var num6 = num5 + 1; + for (var i = 0; i < int3 / 4; i++) + { + _float0[num + i * 2] = (float) Math.Cos(3.1415926535897931 / int3 * (4 * i)); + _float0[num2 + i * 2] = -(float) Math.Sin(3.1415926535897931 / int3 * (4 * i)); + _float0[num3 + i * 2] = (float) Math.Cos(3.1415926535897931 / (2 * int3) * (2 * i + 1)); + _float0[num4 + i * 2] = (float) Math.Sin(3.1415926535897931 / (2 * int3) * (2 * i + 1)); + } + for (var j = 0; j < int3 / 8; j++) + { + _float0[num5 + j * 2] = (float) Math.Cos(3.1415926535897931 / int3 * (4 * j + 2)); + _float0[num6 + j * 2] = -(float) Math.Sin(3.1415926535897931 / int3 * (4 * j + 2)); + } + var num7 = (1 << _int1 - 1) - 1; + var num8 = 1 << _int1 - 2; + for (var k = 0; k < int3 / 8; k++) + { + var num9 = 0; + var num10 = 0; + while ((uint) num8 >> num10 != 0u) + { + if (((uint) num8 >> num10 & (ulong) k) != 0uL) + { + num9 |= 1 << num10; + } + num10++; + } + _int2[k * 2] = (~num9 & num7); + _int2[k * 2 + 1] = num9; + } + _float1 = 4f / int3; + } - [MethodImpl(MethodImplOptions.Synchronized)] - public void method_1(float[] float4, float[] float5) - { - if (_float2.Length < _int0 / 2) - { - _float2 = new float[_int0 / 2]; - } - if (_float3.Length < _int0 / 2) - { - _float3 = new float[_int0 / 2]; - } - var array = _float2; - var float6 = _float3; - var num = (int)((uint)_int0 >> 1); - var num2 = (int)((uint)_int0 >> 2); - var num3 = (int)((uint)_int0 >> 3); - var num4 = 1; - var num5 = 0; - var num6 = num; - for (var i = 0; i < num3; i++) - { - num6 -= 2; - array[num5++] = -float4[num4 + 2] * _float0[num6 + 1] - float4[num4] * _float0[num6]; - array[num5++] = float4[num4] * _float0[num6 + 1] - float4[num4 + 2] * _float0[num6]; - num4 += 4; - } - num4 = num - 4; - for (var i = 0; i < num3; i++) - { - num6 -= 2; - array[num5++] = float4[num4] * _float0[num6 + 1] + float4[num4 + 2] * _float0[num6]; - array[num5++] = float4[num4] * _float0[num6] - float4[num4 + 2] * _float0[num6 + 1]; - num4 -= 4; - } - var array2 = method_2(array, float6, _int0, num, num2, num3); - var num7 = 0; - var num8 = num; - var num9 = num2; - var num10 = num9 - 1; - var num11 = num2 + num; - var num12 = num11 - 1; - for (var j = 0; j < num2; j++) - { - var num13 = array2[num7] * _float0[num8 + 1] - array2[num7 + 1] * _float0[num8]; - var num14 = -(array2[num7] * _float0[num8] + array2[num7 + 1] * _float0[num8 + 1]); - float5[num9] = -num13; - float5[num10] = num13; - float5[num11] = num14; - float5[num12] = num14; - num9++; - num10--; - num11++; - num12--; - num7 += 2; - num8 += 2; - } - } + [MethodImpl(MethodImplOptions.Synchronized)] + public void method_1(float[] float4, float[] float5) + { + if (_float2.Length < _int0 / 2) + { + _float2 = new float[_int0 / 2]; + } + if (_float3.Length < _int0 / 2) + { + _float3 = new float[_int0 / 2]; + } + var array = _float2; + var float6 = _float3; + var num = (int) ((uint) _int0 >> 1); + var num2 = (int) ((uint) _int0 >> 2); + var num3 = (int) ((uint) _int0 >> 3); + var num4 = 1; + var num5 = 0; + var num6 = num; + for (var i = 0; i < num3; i++) + { + num6 -= 2; + array[num5++] = -float4[num4 + 2] * _float0[num6 + 1] - float4[num4] * _float0[num6]; + array[num5++] = float4[num4] * _float0[num6 + 1] - float4[num4 + 2] * _float0[num6]; + num4 += 4; + } + num4 = num - 4; + for (var i = 0; i < num3; i++) + { + num6 -= 2; + array[num5++] = float4[num4] * _float0[num6 + 1] + float4[num4 + 2] * _float0[num6]; + array[num5++] = float4[num4] * _float0[num6] - float4[num4 + 2] * _float0[num6 + 1]; + num4 -= 4; + } + var array2 = method_2(array, float6, _int0, num, num2, num3); + var num7 = 0; + var num8 = num; + var num9 = num2; + var num10 = num9 - 1; + var num11 = num2 + num; + var num12 = num11 - 1; + for (var j = 0; j < num2; j++) + { + var num13 = array2[num7] * _float0[num8 + 1] - array2[num7 + 1] * _float0[num8]; + var num14 = -(array2[num7] * _float0[num8] + array2[num7 + 1] * _float0[num8 + 1]); + float5[num9] = -num13; + float5[num10] = num13; + float5[num11] = num14; + float5[num12] = num14; + num9++; + num10--; + num11++; + num12--; + num7 += 2; + num8 += 2; + } + } - public float[] method_2(float[] float4, float[] float5, int int3, int int4, int int5, int int6) - { - var num = int5; - var num2 = 0; - var num3 = int4; - for (var i = 0; i < int5; i++) - { - var num4 = float4[num] - float4[num2]; - float5[int5 + i] = float4[num++] + float4[num2++]; - var num5 = float4[num] - float4[num2]; - num3 -= 4; - float5[i++] = num4 * _float0[num3] + num5 * _float0[num3 + 1]; - float5[i] = num5 * _float0[num3] - num4 * _float0[num3 + 1]; - float5[int5 + i] = float4[num++] + float4[num2++]; - } - for (var j = 0; j < _int1 - 3; j++) - { - var num6 = (int)((uint)int3 >> j + 2); - var num7 = 1 << j + 3; - var num8 = int4 - 2; - num3 = 0; - var num9 = 0; - while (num9 < (uint)num6 >> 2) - { - var num10 = num8; - var num11 = num10 - (num6 >> 1); - var num12 = _float0[num3]; - var num13 = _float0[num3 + 1]; - num8 -= 2; - num6++; - for (var k = 0; k < 2 << j; k++) - { - var num14 = float5[num10] - float5[num11]; - float4[num10] = float5[num10] + float5[num11]; - var num15 = float5[++num10] - float5[++num11]; - float4[num10] = float5[num10] + float5[num11]; - float4[num11] = num15 * num12 - num14 * num13; - float4[num11 - 1] = num14 * num12 + num15 * num13; - num10 -= num6; - num11 -= num6; - } - num6--; - num3 += num7; - num9++; - } - var array = float5; - float5 = float4; - float4 = array; - } - var num16 = int3; - var num17 = 0; - var num18 = 0; - var num19 = int4 - 1; - for (var l = 0; l < int6; l++) - { - var num20 = _int2[num17++]; - var num21 = _int2[num17++]; - var num22 = float5[num20] - float5[num21 + 1]; - var num23 = float5[num20 - 1] + float5[num21]; - var num24 = float5[num20] + float5[num21 + 1]; - var num25 = float5[num20 - 1] - float5[num21]; - var num26 = num22 * _float0[num16]; - var num27 = num23 * _float0[num16++]; - var num28 = num22 * _float0[num16]; - var num29 = num23 * _float0[num16++]; - float4[num18++] = (num24 + num28 + num27) * 0.5f; - float4[num19--] = (-num25 + num29 - num26) * 0.5f; - float4[num18++] = (num25 + num29 - num26) * 0.5f; - float4[num19--] = (num24 - num28 - num27) * 0.5f; - } - return float4; - } - } -} + public float[] method_2(float[] float4, float[] float5, int int3, int int4, int int5, int int6) + { + var num = int5; + var num2 = 0; + var num3 = int4; + for (var i = 0; i < int5; i++) + { + var num4 = float4[num] - float4[num2]; + float5[int5 + i] = float4[num++] + float4[num2++]; + var num5 = float4[num] - float4[num2]; + num3 -= 4; + float5[i++] = num4 * _float0[num3] + num5 * _float0[num3 + 1]; + float5[i] = num5 * _float0[num3] - num4 * _float0[num3 + 1]; + float5[int5 + i] = float4[num++] + float4[num2++]; + } + for (var j = 0; j < _int1 - 3; j++) + { + var num6 = (int) ((uint) int3 >> j + 2); + var num7 = 1 << j + 3; + var num8 = int4 - 2; + num3 = 0; + var num9 = 0; + while (num9 < (uint) num6 >> 2) + { + var num10 = num8; + var num11 = num10 - (num6 >> 1); + var num12 = _float0[num3]; + var num13 = _float0[num3 + 1]; + num8 -= 2; + num6++; + for (var k = 0; k < 2 << j; k++) + { + var num14 = float5[num10] - float5[num11]; + float4[num10] = float5[num10] + float5[num11]; + var num15 = float5[++num10] - float5[++num11]; + float4[num10] = float5[num10] + float5[num11]; + float4[num11] = num15 * num12 - num14 * num13; + float4[num11 - 1] = num14 * num12 + num15 * num13; + num10 -= num6; + num11 -= num6; + } + num6--; + num3 += num7; + num9++; + } + var array = float5; + float5 = float4; + float4 = array; + } + var num16 = int3; + var num17 = 0; + var num18 = 0; + var num19 = int4 - 1; + for (var l = 0; l < int6; l++) + { + var num20 = _int2[num17++]; + var num21 = _int2[num17++]; + var num22 = float5[num20] - float5[num21 + 1]; + var num23 = float5[num20 - 1] + float5[num21]; + var num24 = float5[num20] + float5[num21 + 1]; + var num25 = float5[num20 - 1] - float5[num21]; + var num26 = num22 * _float0[num16]; + var num27 = num23 * _float0[num16++]; + var num28 = num22 * _float0[num16]; + var num29 = num23 * _float0[num16++]; + float4[num18++] = (num24 + num28 + num27) * 0.5f; + float4[num19--] = (-num25 + num29 - num26) * 0.5f; + float4[num18++] = (num25 + num29 - num26) * 0.5f; + float4[num19--] = (num24 - num28 - num27) * 0.5f; + } + return float4; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class69.cs b/GHNamespace3/Class69.cs index aaef912..0e4eaaa 100644 --- a/GHNamespace3/Class69.cs +++ b/GHNamespace3/Class69.cs @@ -2,354 +2,359 @@ namespace GHNamespace3 { - public class Class69 - { - private static readonly int Int0 = 128; + public class Class69 + { + private static readonly int Int0 = 128; - private static readonly float[] Float0 = { - 1f, - 0.9996988f, - 0.99879545f, - 0.997290432f, - 0.9951847f, - 0.992479563f, - 0.9891765f, - 0.985277653f, - 0.980785251f, - 0.9757021f, - 0.970031261f, - 0.963776052f, - 0.956940353f, - 0.949528158f, - 0.941544056f, - 0.9329928f, - 0.9238795f, - 0.9142098f, - 0.9039893f, - 0.8932243f, - 0.8819213f, - 0.870086968f, - 0.8577286f, - 0.8448536f, - 0.8314696f, - 0.8175848f, - 0.8032075f, - 0.7883464f, - 0.773010433f, - 0.7572088f, - 0.7409511f, - 0.7242471f, - 0.707106769f, - 0.689540565f, - 0.671559f, - 0.653172851f, - 0.6343933f, - 0.6152316f, - 0.5956993f, - 0.575808167f, - 0.555570245f, - 0.534997642f, - 0.514102757f, - 0.4928982f, - 0.471396744f, - 0.449611336f, - 0.427555084f, - 0.4052413f, - 0.382683426f, - 0.359895051f, - 0.336889863f, - 0.313681751f, - 0.290284663f, - 0.266712755f, - 0.242980182f, - 0.219101235f, - 0.195090324f, - 0.170961887f, - 0.146730468f, - 0.122410677f, - 0.09801714f, - 0.07356457f, - 0.0490676761f, - 0.024541229f, - 0f, - -0.024541229f, - -0.0490676761f, - -0.07356457f, - -0.09801714f, - -0.122410677f, - -0.146730468f, - -0.170961887f, - -0.195090324f, - -0.219101235f, - -0.242980182f, - -0.266712755f, - -0.290284663f, - -0.313681751f, - -0.336889863f, - -0.359895051f, - -0.382683426f, - -0.4052413f, - -0.427555084f, - -0.449611336f, - -0.471396744f, - -0.4928982f, - -0.514102757f, - -0.534997642f, - -0.555570245f, - -0.575808167f, - -0.5956993f, - -0.6152316f, - -0.6343933f, - -0.653172851f, - -0.671559f, - -0.689540565f, - -0.707106769f, - -0.7242471f, - -0.7409511f, - -0.7572088f, - -0.773010433f, - -0.7883464f, - -0.8032075f, - -0.8175848f, - -0.8314696f, - -0.8448536f, - -0.8577286f, - -0.870086968f, - -0.8819213f, - -0.8932243f, - -0.9039893f, - -0.9142098f, - -0.9238795f, - -0.9329928f, - -0.941544056f, - -0.949528158f, - -0.956940353f, - -0.963776052f, - -0.970031261f, - -0.9757021f, - -0.980785251f, - -0.985277653f, - -0.9891765f, - -0.992479563f, - -0.9951847f, - -0.997290432f, - -0.99879545f, - -0.9996988f, - -1f - }; + private static readonly float[] Float0 = + { + 1f, + 0.9996988f, + 0.99879545f, + 0.997290432f, + 0.9951847f, + 0.992479563f, + 0.9891765f, + 0.985277653f, + 0.980785251f, + 0.9757021f, + 0.970031261f, + 0.963776052f, + 0.956940353f, + 0.949528158f, + 0.941544056f, + 0.9329928f, + 0.9238795f, + 0.9142098f, + 0.9039893f, + 0.8932243f, + 0.8819213f, + 0.870086968f, + 0.8577286f, + 0.8448536f, + 0.8314696f, + 0.8175848f, + 0.8032075f, + 0.7883464f, + 0.773010433f, + 0.7572088f, + 0.7409511f, + 0.7242471f, + 0.707106769f, + 0.689540565f, + 0.671559f, + 0.653172851f, + 0.6343933f, + 0.6152316f, + 0.5956993f, + 0.575808167f, + 0.555570245f, + 0.534997642f, + 0.514102757f, + 0.4928982f, + 0.471396744f, + 0.449611336f, + 0.427555084f, + 0.4052413f, + 0.382683426f, + 0.359895051f, + 0.336889863f, + 0.313681751f, + 0.290284663f, + 0.266712755f, + 0.242980182f, + 0.219101235f, + 0.195090324f, + 0.170961887f, + 0.146730468f, + 0.122410677f, + 0.09801714f, + 0.07356457f, + 0.0490676761f, + 0.024541229f, + 0f, + -0.024541229f, + -0.0490676761f, + -0.07356457f, + -0.09801714f, + -0.122410677f, + -0.146730468f, + -0.170961887f, + -0.195090324f, + -0.219101235f, + -0.242980182f, + -0.266712755f, + -0.290284663f, + -0.313681751f, + -0.336889863f, + -0.359895051f, + -0.382683426f, + -0.4052413f, + -0.427555084f, + -0.449611336f, + -0.471396744f, + -0.4928982f, + -0.514102757f, + -0.534997642f, + -0.555570245f, + -0.575808167f, + -0.5956993f, + -0.6152316f, + -0.6343933f, + -0.653172851f, + -0.671559f, + -0.689540565f, + -0.707106769f, + -0.7242471f, + -0.7409511f, + -0.7572088f, + -0.773010433f, + -0.7883464f, + -0.8032075f, + -0.8175848f, + -0.8314696f, + -0.8448536f, + -0.8577286f, + -0.870086968f, + -0.8819213f, + -0.8932243f, + -0.9039893f, + -0.9142098f, + -0.9238795f, + -0.9329928f, + -0.941544056f, + -0.949528158f, + -0.956940353f, + -0.963776052f, + -0.970031261f, + -0.9757021f, + -0.980785251f, + -0.985277653f, + -0.9891765f, + -0.992479563f, + -0.9951847f, + -0.997290432f, + -0.99879545f, + -0.9996988f, + -1f + }; - private static readonly int Int1 = 32; + private static readonly int Int1 = 32; - private static readonly float[] Float1 = { - 1.41421354f, - 1.39262128f, - 1.37198865f, - 1.35224676f, - 1.33333337f, - 1.31519186f, - 1.29777133f, - 1.28102517f, - 1.264911f, - 1.24939013f, - 1.23442686f, - 1.21998858f, - 1.20604539f, - 1.19256961f, - 1.17953563f, - 1.16692f, - 1.15470052f, - 1.14285719f, - 1.1313709f, - 1.12022412f, - 1.10940039f, - 1.09888446f, - 1.08866215f, - 1.07871974f, - 1.069045f, - 1.05962586f, - 1.05045152f, - 1.0415113f, - 1.03279555f, - 1.02429509f, - 1.016001f, - 1.00790524f, - 1f - }; + private static readonly float[] Float1 = + { + 1.41421354f, + 1.39262128f, + 1.37198865f, + 1.35224676f, + 1.33333337f, + 1.31519186f, + 1.29777133f, + 1.28102517f, + 1.264911f, + 1.24939013f, + 1.23442686f, + 1.21998858f, + 1.20604539f, + 1.19256961f, + 1.17953563f, + 1.16692f, + 1.15470052f, + 1.14285719f, + 1.1313709f, + 1.12022412f, + 1.10940039f, + 1.09888446f, + 1.08866215f, + 1.07871974f, + 1.069045f, + 1.05962586f, + 1.05045152f, + 1.0415113f, + 1.03279555f, + 1.02429509f, + 1.016001f, + 1.00790524f, + 1f + }; - private static readonly int Int2 = -32; + private static readonly int Int2 = -32; - private static readonly float[] Float2 = { - 65536f, - 46340.95f, - 32768f, - 23170.4746f, - 16384f, - 11585.2373f, - 8192f, - 5792.61865f, - 4096f, - 2896.30933f, - 2048f, - 1448.15466f, - 1024f, - 724.077332f, - 512f, - 362.038666f, - 256f, - 181.019333f, - 128f, - 90.50967f, - 64f, - 45.2548332f, - 32f, - 22.6274166f, - 16f, - 11.3137083f, - 8f, - 5.656854f, - 4f, - 2.828427f, - 2f, - 1.41421354f, - 1f, - 0.707106769f, - 0.5f, - 0.353553385f, - 0.25f, - 0.176776692f, - 0.125f, - 0.0883883461f, - 0.0625f, - 0.0441941731f, - 0.03125f, - 0.0220970865f, - 0.015625f, - 0.0110485433f, - 0.0078125f, - 0.00552427163f, - 0.00390625f, - 0.00276213582f, - 0.001953125f, - 0.00138106791f, - 0.0009765625f, - 0.000690533954f, - 0.00048828125f, - 0.000345266977f, - 0.000244140625f, - 0.000172633489f, - 0.000122070313f, - 8.63167443E-05f, - 6.10351563E-05f, - 4.31583721E-05f, - 3.05175781E-05f, - 2.15791861E-05f, - 1.52587891E-05f - }; + private static readonly float[] Float2 = + { + 65536f, + 46340.95f, + 32768f, + 23170.4746f, + 16384f, + 11585.2373f, + 8192f, + 5792.61865f, + 4096f, + 2896.30933f, + 2048f, + 1448.15466f, + 1024f, + 724.077332f, + 512f, + 362.038666f, + 256f, + 181.019333f, + 128f, + 90.50967f, + 64f, + 45.2548332f, + 32f, + 22.6274166f, + 16f, + 11.3137083f, + 8f, + 5.656854f, + 4f, + 2.828427f, + 2f, + 1.41421354f, + 1f, + 0.707106769f, + 0.5f, + 0.353553385f, + 0.25f, + 0.176776692f, + 0.125f, + 0.0883883461f, + 0.0625f, + 0.0441941731f, + 0.03125f, + 0.0220970865f, + 0.015625f, + 0.0110485433f, + 0.0078125f, + 0.00552427163f, + 0.00390625f, + 0.00276213582f, + 0.001953125f, + 0.00138106791f, + 0.0009765625f, + 0.000690533954f, + 0.00048828125f, + 0.000345266977f, + 0.000244140625f, + 0.000172633489f, + 0.000122070313f, + 8.63167443E-05f, + 6.10351563E-05f, + 4.31583721E-05f, + 3.05175781E-05f, + 2.15791861E-05f, + 1.52587891E-05f + }; - private static readonly float[] Float3 = { - 1f, - 0.630957365f, - 0.398107171f, - 0.251188636f, - 0.158489317f, - 0.1f, - 0.06309573f, - 0.0398107171f, - 0.0251188651f, - 0.0158489328f, - 0.01f, - 0.00630957354f, - 0.00398107152f, - 0.00251188641f, - 0.00158489321f, - 0.001f, - 0.000630957366f, - 0.000398107164f, - 0.000251188641f, - 0.000158489318f, - 0.0001f, - 6.309574E-05f, - 3.981072E-05f, - 2.51188649E-05f, - 1.58489311E-05f, - 1E-05f, - 6.30957356E-06f, - 3.98107159E-06f, - 2.51188635E-06f, - 1.5848932E-06f, - 1E-06f, - 6.30957345E-07f, - 3.98107176E-07f, - 2.51188652E-07f, - 1.58489314E-07f - }; + private static readonly float[] Float3 = + { + 1f, + 0.630957365f, + 0.398107171f, + 0.251188636f, + 0.158489317f, + 0.1f, + 0.06309573f, + 0.0398107171f, + 0.0251188651f, + 0.0158489328f, + 0.01f, + 0.00630957354f, + 0.00398107152f, + 0.00251188641f, + 0.00158489321f, + 0.001f, + 0.000630957366f, + 0.000398107164f, + 0.000251188641f, + 0.000158489318f, + 0.0001f, + 6.309574E-05f, + 3.981072E-05f, + 2.51188649E-05f, + 1.58489311E-05f, + 1E-05f, + 6.30957356E-06f, + 3.98107159E-06f, + 2.51188635E-06f, + 1.5848932E-06f, + 1E-06f, + 6.30957345E-07f, + 3.98107176E-07f, + 2.51188652E-07f, + 1.58489314E-07f + }; - private static readonly float[] Float4 = { - 0.9928303f, - 0.9786446f, - 0.9646616f, - 0.950878441f, - 0.9372922f, - 0.923900068f, - 0.9106993f, - 0.897687137f, - 0.8848609f, - 0.8722179f, - 0.8597556f, - 0.8474713f, - 0.835362554f, - 0.8234268f, - 0.8116616f, - 0.8000645f, - 0.7886331f, - 0.777365f, - 0.766257942f, - 0.7553096f, - 0.7445176f, - 0.7338799f, - 0.723394156f, - 0.713058233f, - 0.70287f, - 0.6928273f, - 0.682928145f, - 0.6731704f, - 0.663552046f, - 0.654071152f, - 0.64472574f, - 0.635513842f - }; + private static readonly float[] Float4 = + { + 0.9928303f, + 0.9786446f, + 0.9646616f, + 0.950878441f, + 0.9372922f, + 0.923900068f, + 0.9106993f, + 0.897687137f, + 0.8848609f, + 0.8722179f, + 0.8597556f, + 0.8474713f, + 0.835362554f, + 0.8234268f, + 0.8116616f, + 0.8000645f, + 0.7886331f, + 0.777365f, + 0.766257942f, + 0.7553096f, + 0.7445176f, + 0.7338799f, + 0.723394156f, + 0.713058233f, + 0.70287f, + 0.6928273f, + 0.682928145f, + 0.6731704f, + 0.663552046f, + 0.654071152f, + 0.64472574f, + 0.635513842f + }; - public static float smethod_0(float float5) - { - var num = float5 * (0.31830989 * Int0); - var num2 = (int)num; - return Float0[num2] + (float)(num - num2) * (Float0[num2 + 1] - Float0[num2]); - } + public static float smethod_0(float float5) + { + var num = float5 * (0.31830989 * Int0); + var num2 = (int) num; + return Float0[num2] + (float) (num - num2) * (Float0[num2 + 1] - Float0[num2]); + } - public static float smethod_1(float float5) - { - double num = float5 * (2f * Int1) - Int1; - var num2 = (int)num; - return Float1[num2] + (float)(num - num2) * (Float1[num2 + 1] - Float1[num2]); - } + public static float smethod_1(float float5) + { + double num = float5 * (2f * Int1) - Int1; + var num2 = (int) num; + return Float1[num2] + (float) (num - num2) * (Float1[num2 + 1] - Float1[num2]); + } - public static float smethod_2(int int3) - { - return Float2[int3 - Int2]; - } + public static float smethod_2(int int3) + { + return Float2[int3 - Int2]; + } - public static float smethod_3(float float5) - { - var num = (int)(float5 * -8f); - if (num < 0) - { - return 1f; - } - if (num < 1120) - { - return Float3[(int)((UIntPtr)((uint)num >> 5))] * Float4[num & 31]; - } - return 0f; - } - } -} + public static float smethod_3(float float5) + { + var num = (int) (float5 * -8f); + if (num < 0) + { + return 1f; + } + if (num < 1120) + { + return Float3[(int) ((UIntPtr) ((uint) num >> 5))] * Float4[num & 31]; + } + return 0f; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class70.cs b/GHNamespace3/Class70.cs index fab5767..ae68a3d 100644 --- a/GHNamespace3/Class70.cs +++ b/GHNamespace3/Class70.cs @@ -1,51 +1,51 @@ namespace GHNamespace3 { - public class Class70 - { - private float[] _float0 = new float[5]; + public class Class70 + { + private float[] _float0 = new float[5]; - private float[] _float1 = new float[5]; + private float[] _float1 = new float[5]; - private float[] _float2 = new float[5]; + private float[] _float2 = new float[5]; - private float[] _float3 = new float[5]; + private float[] _float3 = new float[5]; - private float[] _float4 = new float[5]; + private float[] _float4 = new float[5]; - private float[] _float5 = new float[5]; + private float[] _float5 = new float[5]; - private float[] _float6 = new float[5]; + private float[] _float6 = new float[5]; - private float[] _float7 = new float[5]; + private float[] _float7 = new float[5]; - private float[] _float8 = new float[5]; + private float[] _float8 = new float[5]; - private float[] _float9 = new float[5]; + private float[] _float9 = new float[5]; - private float[] _float10 = new float[5]; + private float[] _float10 = new float[5]; - private float[] _float11 = new float[5]; + private float[] _float11 = new float[5]; - private float[] _float12 = new float[5]; + private float[] _float12 = new float[5]; - private float[] _float13 = new float[5]; + private float[] _float13 = new float[5]; - private float[] _float14 = new float[5]; + private float[] _float14 = new float[5]; - private float[] _float15 = new float[5]; + private float[] _float15 = new float[5]; - private float[] _float16 = new float[5]; + private float[] _float16 = new float[5]; - private float[] _float17 = new float[5]; + private float[] _float17 = new float[5]; - private float[] _float18 = new float[5]; + private float[] _float18 = new float[5]; - private float[] _float19 = new float[5]; + private float[] _float19 = new float[5]; - private float[] _float20 = new float[5]; + private float[] _float20 = new float[5]; - public void method_0() - { - } - } -} + public void method_0() + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class72.cs b/GHNamespace3/Class72.cs index e34b537..b4fe493 100644 --- a/GHNamespace3/Class72.cs +++ b/GHNamespace3/Class72.cs @@ -1,11 +1,12 @@ namespace GHNamespace3 { - public abstract class Class72 - { - public static Class72[] Class720 = { - new Class73() - }; + public abstract class Class72 + { + public static Class72[] Class720 = + { + new Class73() + }; - public abstract void vmethod_0(object object0); - } -} + public abstract void vmethod_0(object object0); + } +} \ No newline at end of file diff --git a/GHNamespace3/Class73.cs b/GHNamespace3/Class73.cs index 74826de..e36e7e0 100644 --- a/GHNamespace3/Class73.cs +++ b/GHNamespace3/Class73.cs @@ -1,9 +1,9 @@ namespace GHNamespace3 { - public class Class73 : Class72 - { - public override void vmethod_0(object object0) - { - } - } -} + public class Class73 : Class72 + { + public override void vmethod_0(object object0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class74.cs b/GHNamespace3/Class74.cs index 7091adf..acaae3d 100644 --- a/GHNamespace3/Class74.cs +++ b/GHNamespace3/Class74.cs @@ -2,19 +2,19 @@ namespace GHNamespace3 { - public class Class74 - { - public Class62 Class620; + public class Class74 + { + public Class62 Class620; - public Class33 Class330; + public Class33 Class330; - public int method_0() - { - if (Class330 != null && Class330.Int2 != 0) - { - Class620.method_0(); - } - return 0; - } - } -} + public int method_0() + { + if (Class330 != null && Class330.Int2 != 0) + { + Class620.method_0(); + } + return 0; + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class76.cs b/GHNamespace3/Class76.cs index a6c81e8..f12b5fa 100644 --- a/GHNamespace3/Class76.cs +++ b/GHNamespace3/Class76.cs @@ -1,13 +1,13 @@ namespace GHNamespace3 { - public class Class76 - { - private static int _int0 = 21; + public class Class76 + { + private static int _int0 = 21; - private static int _int1 = 768; + private static int _int1 = 768; - public void method_0() - { - } - } -} + public void method_0() + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/Class77.cs b/GHNamespace3/Class77.cs index 9eb84bd..3592706 100644 --- a/GHNamespace3/Class77.cs +++ b/GHNamespace3/Class77.cs @@ -2,85 +2,83 @@ namespace GHNamespace3 { - public class Class77 - { - [StructLayout(LayoutKind.Explicit)] - public struct Struct15 - { - [FieldOffset(0)] - public float float_0; + public class Class77 + { + [StructLayout(LayoutKind.Explicit)] + public struct Struct15 + { + [FieldOffset(0)] public float float_0; - [FieldOffset(0)] - public int int_0; - } + [FieldOffset(0)] public int int_0; + } - private static readonly float Float0 = 3.14159274f; + private static readonly float Float0 = 3.14159274f; - public static void smethod_0(float[] float1, int[] int0, int int1, int int2, float[] float2, int int3, float float3, float float4) - { - var num = Float0 / int2; - int i; - for (i = 0; i < int3; i++) - { - float2[i] = Class69.smethod_0(float2[i]); - } - var num2 = int3 / 2 * 2; - i = 0; - while (i < int1) - { - var @struct = default(Struct15); - var num3 = int0[i]; - var num4 = 0.707106769f; - var num5 = 0.707106769f; - var num6 = Class69.smethod_0(num * num3); - for (var j = 0; j < num2; j += 2) - { - num5 *= float2[j] - num6; - num4 *= float2[j + 1] - num6; - } - if ((int3 & 1) != 0) - { - num5 *= float2[int3 - 1] - num6; - num5 *= num5; - num4 *= num4 * (1f - num6 * num6); - } - else - { - num5 *= num5 * (1f + num6); - num4 *= num4 * (1f - num6); - } - num5 = num4 + num5; - @struct.float_0 = num5; - var num7 = @struct.int_0; - var num8 = 2147483647 & num7; - var num9 = 0; - if (num8 < 2139095040 && num8 != 0) - { - if (num8 < 8388608) - { - num5 *= 33554432f; - @struct.float_0 = num5; - num7 = @struct.int_0; - num8 = (2147483647 & num7); - num9 = -25; - } - num9 += (int)(((uint)num8 >> 23) - 126u); - num7 = (int)((num7 & 2155872255L) | 1056964608L); - @struct.int_0 = num7; - num5 = @struct.float_0; - } - num5 = Class69.smethod_3(float3 * Class69.smethod_1(num5) * Class69.smethod_2(num9 + int3) - float4); - do - { - float1[i] *= num5; - i++; - if (i >= int1) - { - break; - } - } - while (int0[i] == num3); - } - } - } -} + public static void smethod_0(float[] float1, int[] int0, int int1, int int2, float[] float2, int int3, + float float3, float float4) + { + var num = Float0 / int2; + int i; + for (i = 0; i < int3; i++) + { + float2[i] = Class69.smethod_0(float2[i]); + } + var num2 = int3 / 2 * 2; + i = 0; + while (i < int1) + { + var @struct = default(Struct15); + var num3 = int0[i]; + var num4 = 0.707106769f; + var num5 = 0.707106769f; + var num6 = Class69.smethod_0(num * num3); + for (var j = 0; j < num2; j += 2) + { + num5 *= float2[j] - num6; + num4 *= float2[j + 1] - num6; + } + if ((int3 & 1) != 0) + { + num5 *= float2[int3 - 1] - num6; + num5 *= num5; + num4 *= num4 * (1f - num6 * num6); + } + else + { + num5 *= num5 * (1f + num6); + num4 *= num4 * (1f - num6); + } + num5 = num4 + num5; + @struct.float_0 = num5; + var num7 = @struct.int_0; + var num8 = 2147483647 & num7; + var num9 = 0; + if (num8 < 2139095040 && num8 != 0) + { + if (num8 < 8388608) + { + num5 *= 33554432f; + @struct.float_0 = num5; + num7 = @struct.int_0; + num8 = (2147483647 & num7); + num9 = -25; + } + num9 += (int) (((uint) num8 >> 23) - 126u); + num7 = (int) ((num7 & 2155872255L) | 1056964608L); + @struct.int_0 = num7; + num5 = @struct.float_0; + } + num5 = Class69.smethod_3(float3 * Class69.smethod_1(num5) * Class69.smethod_2(num9 + int3) - float4); + do + { + float1[i] *= num5; + i++; + if (i >= int1) + { + break; + } + } while (int0[i] == num3); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace3/OGGClass1.cs b/GHNamespace3/OGGClass1.cs index b04bd8c..a3e39a7 100644 --- a/GHNamespace3/OGGClass1.cs +++ b/GHNamespace3/OGGClass1.cs @@ -4,348 +4,348 @@ namespace GHNamespace3 { - public class OggClass1 - { - private static readonly float Float0 = 3.14159274f; + public class OggClass1 + { + private static readonly float Float0 = 3.14159274f; - private static readonly int Int0 = 1; + private static readonly int Int0 = 1; - private static readonly int Int1 = 1; + private static readonly int Int1 = 1; - public int Int2; + public int Int2; - public OggClass5 OggClass5; - - public int Int3; - - private float[][] _float1; - - private int _int4; - - private int _int5; - - private int _int6; - - private int _int7; - - private int _int8; - - private int _int9; - - private int _int10; - - private int _int11; - - private long _long0; - - public long Long1; - - private long _long2; - - private long _long3; - - private long _long4; - - private long _long5; - - public float[][][][][] Float2; - - public object[][] Object0; - - public OggClass4[] OggClass4; - - public object[] Object1; - - public OggClass1() - { - Object0 = new object[2][]; - Float2 = new float[2][][][][]; - Float2[0] = new float[2][][][]; - Float2[0][0] = new float[2][][]; - Float2[0][1] = new float[2][][]; - Float2[0][0][0] = new float[2][]; - Float2[0][0][1] = new float[2][]; - Float2[0][1][0] = new float[2][]; - Float2[0][1][1] = new float[2][]; - Float2[1] = new float[2][][][]; - Float2[1][0] = new float[2][][]; - Float2[1][1] = new float[2][][]; - Float2[1][0][0] = new float[2][]; - Float2[1][0][1] = new float[2][]; - Float2[1][1][0] = new float[2][]; - Float2[1][1][1] = new float[2][]; - } - - private static int smethod_0(int int12) - { - var num = 0; - while (int12 > 1) - { - num++; - int12 = (int)((uint)int12 >> 1); - } - return num; - } - - public static float[] smethod_1(int int12, int int13, int int14, int int15) - { - var array = new float[int13]; - if (int12 == 0) - { - var num = (int13 >> 2) - (int14 >> 1); - var num2 = int13 - (int13 >> 2) - (int15 >> 1); - for (var i = 0; i < int14; i++) - { - var num3 = (float)((i + 0.5) / int14 * Float0 / 2.0); - num3 = (float)Math.Sin(num3); - num3 *= num3; - num3 *= (float)(Float0 / 2.0); - num3 = (float)Math.Sin(num3); - array[i + num] = num3; - } - for (var j = num + int14; j < num2; j++) - { - array[j] = 1f; - } - for (var k = 0; k < int15; k++) - { - var num4 = (float)((int15 - k - 0.5) / int15 * Float0 / 2.0); - num4 = (float)Math.Sin(num4); - num4 *= num4; - num4 *= (float)(Float0 / 2.0); - num4 = (float)Math.Sin(num4); - array[k + num2] = num4; - } - return array; - } - return null; - } - - private int method_0(OggClass5 oggClass5, bool bool0) - { - OggClass5 = oggClass5; - Int3 = smethod_0(oggClass5.Int14); - Object0[0] = new object[Int0]; - Object0[1] = new object[Int0]; - Object0[0][0] = new Class68(); - Object0[1][0] = new Class68(); - ((Class68)Object0[0][0]).method_0(oggClass5.Int13[0]); - ((Class68)Object0[1][0]).method_0(oggClass5.Int13[1]); - Float2[0][0][0] = new float[Int1][]; - Float2[0][0][1] = Float2[0][0][0]; - Float2[0][1][0] = Float2[0][0][0]; - Float2[0][1][1] = Float2[0][0][0]; - Float2[1][0][0] = new float[Int1][]; - Float2[1][0][1] = new float[Int1][]; - Float2[1][1][0] = new float[Int1][]; - Float2[1][1][1] = new float[Int1][]; + public OggClass5 OggClass5; + + public int Int3; + + private float[][] _float1; + + private int _int4; + + private int _int5; + + private int _int6; + + private int _int7; + + private int _int8; + + private int _int9; + + private int _int10; + + private int _int11; + + private long _long0; + + public long Long1; + + private long _long2; + + private long _long3; + + private long _long4; + + private long _long5; + + public float[][][][][] Float2; + + public object[][] Object0; + + public OggClass4[] OggClass4; + + public object[] Object1; + + public OggClass1() + { + Object0 = new object[2][]; + Float2 = new float[2][][][][]; + Float2[0] = new float[2][][][]; + Float2[0][0] = new float[2][][]; + Float2[0][1] = new float[2][][]; + Float2[0][0][0] = new float[2][]; + Float2[0][0][1] = new float[2][]; + Float2[0][1][0] = new float[2][]; + Float2[0][1][1] = new float[2][]; + Float2[1] = new float[2][][][]; + Float2[1][0] = new float[2][][]; + Float2[1][1] = new float[2][][]; + Float2[1][0][0] = new float[2][]; + Float2[1][0][1] = new float[2][]; + Float2[1][1][0] = new float[2][]; + Float2[1][1][1] = new float[2][]; + } + + private static int smethod_0(int int12) + { + var num = 0; + while (int12 > 1) + { + num++; + int12 = (int) ((uint) int12 >> 1); + } + return num; + } + + public static float[] smethod_1(int int12, int int13, int int14, int int15) + { + var array = new float[int13]; + if (int12 == 0) + { + var num = (int13 >> 2) - (int14 >> 1); + var num2 = int13 - (int13 >> 2) - (int15 >> 1); + for (var i = 0; i < int14; i++) + { + var num3 = (float) ((i + 0.5) / int14 * Float0 / 2.0); + num3 = (float) Math.Sin(num3); + num3 *= num3; + num3 *= (float) (Float0 / 2.0); + num3 = (float) Math.Sin(num3); + array[i + num] = num3; + } + for (var j = num + int14; j < num2; j++) + { + array[j] = 1f; + } + for (var k = 0; k < int15; k++) + { + var num4 = (float) ((int15 - k - 0.5) / int15 * Float0 / 2.0); + num4 = (float) Math.Sin(num4); + num4 *= num4; + num4 *= (float) (Float0 / 2.0); + num4 = (float) Math.Sin(num4); + array[k + num2] = num4; + } + return array; + } + return null; + } + + private int method_0(OggClass5 oggClass5, bool bool0) + { + OggClass5 = oggClass5; + Int3 = smethod_0(oggClass5.Int14); + Object0[0] = new object[Int0]; + Object0[1] = new object[Int0]; + Object0[0][0] = new Class68(); + Object0[1][0] = new Class68(); + ((Class68) Object0[0][0]).method_0(oggClass5.Int13[0]); + ((Class68) Object0[1][0]).method_0(oggClass5.Int13[1]); + Float2[0][0][0] = new float[Int1][]; + Float2[0][0][1] = Float2[0][0][0]; + Float2[0][1][0] = Float2[0][0][0]; + Float2[0][1][1] = Float2[0][0][0]; + Float2[1][0][0] = new float[Int1][]; + Float2[1][0][1] = new float[Int1][]; + Float2[1][1][0] = new float[Int1][]; + Float2[1][1][1] = new float[Int1][]; for (var i = 0; i < Int1; i++) - { - Float2[0][0][0][i] = smethod_1(i, oggClass5.Int13[0], oggClass5.Int13[0] >> 1, oggClass5.Int13[0] >> 1); - Float2[1][0][0][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[0] >> 1, oggClass5.Int13[0] >> 1); - Float2[1][0][1][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[0] >> 1, oggClass5.Int13[1] >> 1); - Float2[1][1][0][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[1] >> 1, oggClass5.Int13[0] >> 1); - Float2[1][1][1][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[1] >> 1, oggClass5.Int13[1] >> 1); - } + { + Float2[0][0][0][i] = smethod_1(i, oggClass5.Int13[0], oggClass5.Int13[0] >> 1, oggClass5.Int13[0] >> 1); + Float2[1][0][0][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[0] >> 1, oggClass5.Int13[0] >> 1); + Float2[1][0][1][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[0] >> 1, oggClass5.Int13[1] >> 1); + Float2[1][1][0][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[1] >> 1, oggClass5.Int13[0] >> 1); + Float2[1][1][1][i] = smethod_1(i, oggClass5.Int13[1], oggClass5.Int13[1] >> 1, oggClass5.Int13[1] >> 1); + } OggClass4 = new OggClass4[oggClass5.Int19]; for (var j = 0; j < oggClass5.Int19; j++) - { + { OggClass4[j] = new OggClass4(); OggClass4[j].method_6(oggClass5.OggClass2[j]); } _int4 = 8192; - _float1 = new float[oggClass5.Int8][]; - for (var k = 0; k < oggClass5.Int8; k++) - { - _float1[k] = new float[_int4]; - } + _float1 = new float[oggClass5.Int8][]; + for (var k = 0; k < oggClass5.Int8; k++) + { + _float1[k] = new float[_int4]; + } _int8 = 0; - _int9 = 0; - _int11 = oggClass5.Int13[1] >> 1; - _int5 = _int11; - Object1 = new object[oggClass5.Int14]; + _int9 = 0; + _int11 = oggClass5.Int13[1] >> 1; + _int5 = _int11; + Object1 = new object[oggClass5.Int14]; for (var l = 0; l < oggClass5.Int14; l++) - { - var num = oggClass5.Class270[l].Int3; - var num2 = oggClass5.Int21[num]; - Object1[l] = Class34.Class340[num2].vmethod_1(this, oggClass5.Class270[l], oggClass5.Object0[num]); - } + { + var num = oggClass5.Class270[l].Int3; + var num2 = oggClass5.Int21[num]; + Object1[l] = Class34.Class340[num2].vmethod_1(this, oggClass5.Class270[l], oggClass5.Object0[num]); + } return 0; - } + } - public int method_1(OggClass5 oggClass5) - { + public int method_1(OggClass5 oggClass5) + { method_0(oggClass5, false); _int6 = _int11; _int11 -= (oggClass5.Int13[_int9] >> 2) + (oggClass5.Int13[_int8] >> 2); - _long0 = -1L; - Long1 = -1L; + _long0 = -1L; + Long1 = -1L; + return 0; + } + + public int method_2(OggClass6 class710) + { + if (_int11 > OggClass5.Int13[1] >> 1 && _int6 > 8192) + { + var num = _int11 - (OggClass5.Int13[1] >> 1); + num = ((_int6 < num) ? _int6 : num); + _int5 -= num; + _int11 -= num; + _int6 -= num; + if (num != 0) + { + for (var i = 0; i < OggClass5.Int8; i++) + { + Buffer.BlockCopy(_float1[i], num << 2, _float1[i], 0, _int5 << 2); + } + } + } + _int8 = _int9; + _int9 = class710.Int1; + _int10 = -1; + _long2 += class710.Int6; + _long3 += class710.Int7; + _long4 += class710.Int8; + _long5 += class710.Int9; + if (Long1 + 1L != class710.Long1) + { + _long0 = -1L; + } + Long1 = class710.Long1; + var num2 = OggClass5.Int13[_int9]; + var num3 = _int11 + (OggClass5.Int13[_int8] >> 2) + (num2 >> 2); + var num4 = num3 - (num2 >> 1); + var num5 = num4 + num2; + var num6 = 0; + var num7 = 0; + if (num5 > _int4) + { + _int4 = num5 + OggClass5.Int13[1]; + for (var j = 0; j < OggClass5.Int8; j++) + { + var array = new float[_int4]; + Buffer.BlockCopy(_float1[j], 0, array, 0, _float1[j].Length << 2); + _float1[j] = array; + } + } + switch (_int9) + { + case 0: + num6 = 0; + num7 = OggClass5.Int13[0] >> 1; + break; + case 1: + num6 = (OggClass5.Int13[1] >> 2) - (OggClass5.Int13[_int8] >> 2); + num7 = num6 + (OggClass5.Int13[_int8] >> 1); + break; + } + for (var k = 0; k < OggClass5.Int8; k++) + { + var num8 = num4; + int l; + for (l = num6; l < num7; l++) + { + _float1[k][num8 + l] += class710.Float0[k][l]; + } + while (l < num2) + { + _float1[k][num8 + l] = class710.Float0[k][l]; + l++; + } + } + if (_long0 == -1L) + { + _long0 = class710.Long0; + } + else + { + _long0 += num3 - _int11; + if (class710.Long0 != -1L && _long0 != class710.Long0) + { + if (_long0 > class710.Long0 && class710.Int5 != 0) + { + num3 -= (int) (_long0 - class710.Long0); + } + _long0 = class710.Long0; + } + } + _int11 = num3; + _int5 = num5; + if (class710.Int5 != 0) + { + _int7 = 1; + } return 0; - } - - public int method_2(OggClass6 class710) - { - if (_int11 > OggClass5.Int13[1] >> 1 && _int6 > 8192) - { - var num = _int11 - (OggClass5.Int13[1] >> 1); - num = ((_int6 < num) ? _int6 : num); - _int5 -= num; - _int11 -= num; - _int6 -= num; - if (num != 0) - { - for (var i = 0; i < OggClass5.Int8; i++) - { - Buffer.BlockCopy(_float1[i], num << 2, _float1[i], 0, _int5 << 2); - } - } - } - _int8 = _int9; - _int9 = class710.Int1; - _int10 = -1; - _long2 += class710.Int6; - _long3 += class710.Int7; - _long4 += class710.Int8; - _long5 += class710.Int9; - if (Long1 + 1L != class710.Long1) - { - _long0 = -1L; - } - Long1 = class710.Long1; - var num2 = OggClass5.Int13[_int9]; - var num3 = _int11 + (OggClass5.Int13[_int8] >> 2) + (num2 >> 2); - var num4 = num3 - (num2 >> 1); - var num5 = num4 + num2; - var num6 = 0; - var num7 = 0; - if (num5 > _int4) - { - _int4 = num5 + OggClass5.Int13[1]; - for (var j = 0; j < OggClass5.Int8; j++) - { - var array = new float[_int4]; - Buffer.BlockCopy(_float1[j], 0, array, 0, _float1[j].Length << 2); - _float1[j] = array; - } - } - switch (_int9) - { - case 0: - num6 = 0; - num7 = OggClass5.Int13[0] >> 1; - break; - case 1: - num6 = (OggClass5.Int13[1] >> 2) - (OggClass5.Int13[_int8] >> 2); - num7 = num6 + (OggClass5.Int13[_int8] >> 1); - break; - } - for (var k = 0; k < OggClass5.Int8; k++) - { - var num8 = num4; - int l; - for (l = num6; l < num7; l++) - { - _float1[k][num8 + l] += class710.Float0[k][l]; - } - while (l < num2) - { - _float1[k][num8 + l] = class710.Float0[k][l]; - l++; - } - } - if (_long0 == -1L) - { - _long0 = class710.Long0; - } - else - { - _long0 += num3 - _int11; - if (class710.Long0 != -1L && _long0 != class710.Long0) - { - if (_long0 > class710.Long0 && class710.Int5 != 0) - { - num3 -= (int)(_long0 - class710.Long0); - } - _long0 = class710.Long0; - } - } - _int11 = num3; - _int5 = num5; - if (class710.Int5 != 0) - { - _int7 = 1; - } - return 0; - } - - public int method_3() - { - if (_int6 < _int11) - { - return _int11 - _int6; - } - return 0; - } - - public int method_4(float[] float3, int int12, int int13) - { - if (_int6 < _int11) - { - var num = _float1.Length; - var num2 = _int11 - _int6; - var num3 = (int13 - int12) / num; - if (num2 > num3) - { - num2 = num3; - } - var num4 = _int6 + num2; - for (var i = 0; i < _float1.Length; i++) - { - var array = _float1[i]; - var j = _int6; - var num5 = int12 + i; - while (j < num4) - { - float3[num5] = array[j]; - j++; - num5 += num; - } - } - return num2; - } - return 0; - } - - public int method_5(float[][] float3, int int12, int int13) - { - if (_int6 < _int11) - { - var num = _int11 - _int6; - if (num > int13 - int12) - { - num = int13 - int12; - } - for (var i = 0; i < OggClass5.Int8; i++) - { - Buffer.BlockCopy(_float1[i], _int6 << 2, float3[i], int12 << 2, num << 2); - } - return num; - } - return 0; - } - - public int method_6(int int12) - { - if (int12 != 0 && _int6 + int12 > _int11) - { - return -1; - } - _int6 += int12; - return 0; - } - - public void method_7() - { - } - } -} + } + + public int method_3() + { + if (_int6 < _int11) + { + return _int11 - _int6; + } + return 0; + } + + public int method_4(float[] float3, int int12, int int13) + { + if (_int6 < _int11) + { + var num = _float1.Length; + var num2 = _int11 - _int6; + var num3 = (int13 - int12) / num; + if (num2 > num3) + { + num2 = num3; + } + var num4 = _int6 + num2; + for (var i = 0; i < _float1.Length; i++) + { + var array = _float1[i]; + var j = _int6; + var num5 = int12 + i; + while (j < num4) + { + float3[num5] = array[j]; + j++; + num5 += num; + } + } + return num2; + } + return 0; + } + + public int method_5(float[][] float3, int int12, int int13) + { + if (_int6 < _int11) + { + var num = _int11 - _int6; + if (num > int13 - int12) + { + num = int13 - int12; + } + for (var i = 0; i < OggClass5.Int8; i++) + { + Buffer.BlockCopy(_float1[i], _int6 << 2, float3[i], int12 << 2, num << 2); + } + return num; + } + return 0; + } + + public int method_6(int int12) + { + if (int12 != 0 && _int6 + int12 > _int11) + { + return -1; + } + _int6 += int12; + return 0; + } + + public void method_7() + { + } + } +} \ No newline at end of file diff --git a/GHNamespace3/OGGClass2.cs b/GHNamespace3/OGGClass2.cs index b97c37c..d7a733a 100644 --- a/GHNamespace3/OGGClass2.cs +++ b/GHNamespace3/OGGClass2.cs @@ -3,262 +3,262 @@ namespace GHNamespace3 { - public class OggClass2 - { - public int Int0; + public class OggClass2 + { + public int Int0; - public int Int1; + public int Int1; - public int[] Int2; + public int[] Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - public int Int5; + public int Int5; - public int Int6; + public int Int6; - public int Int7; + public int Int7; - public int[] Int8; + public int[] Int8; - private static readonly int Int9 = 21; + private static readonly int Int9 = 21; - private static readonly int Int10 = 768; + private static readonly int Int10 = 768; - public int method_0(OggClass3 oggClass3) - { - if (oggClass3.method_6(24) != 5653314) - { - method_2(); - return -1; - } - Int0 = oggClass3.method_6(16); - Int1 = oggClass3.method_6(24); - if (Int1 == -1) - { - method_2(); - return -1; - } - switch (oggClass3.method_6(1)) - { - case 0: - Int2 = new int[Int1]; - if (oggClass3.method_6(1) != 0) - { - for (var i = 0; i < Int1; i++) - { - if (oggClass3.method_6(1) != 0) - { - var num = oggClass3.method_6(5); - if (num == -1) - { - method_2(); - return -1; - } - Int2[i] = num + 1; - } - else - { - Int2[i] = 0; - } - } - } - else - { - for (var i = 0; i < Int1; i++) - { - var num2 = oggClass3.method_6(5); - if (num2 == -1) - { - method_2(); - return -1; - } - Int2[i] = num2 + 1; - } - } - break; - case 1: - { - var num3 = oggClass3.method_6(5) + 1; - Int2 = new int[Int1]; - var i = 0; - while (i < Int1) - { - var num4 = oggClass3.method_6(smethod_0(Int1 - i)); - if (num4 == -1) - { - method_2(); - return -1; - } - var j = 0; - while (j < num4) - { - Int2[i] = num3; - j++; - i++; - } - num3++; - } - break; - } - default: - return -1; - } - switch (Int3 = oggClass3.method_6(4)) - { - case 0: - break; - case 1: - case 2: - { - Int4 = oggClass3.method_6(32); - Int5 = oggClass3.method_6(32); - Int6 = oggClass3.method_6(4) + 1; - Int7 = oggClass3.method_6(1); - var num5 = 0; - switch (Int3) - { - case 1: - num5 = method_1(); - break; - case 2: - num5 = Int1 * Int0; - break; - } - Int8 = new int[num5]; - for (var i = 0; i < num5; i++) - { - Int8[i] = oggClass3.method_6(Int6); - } - if (Int8[num5 - 1] == -1) - { - method_2(); - return -1; - } - break; - } - default: - method_2(); - return -1; - } - return 0; - } + public int method_0(OggClass3 oggClass3) + { + if (oggClass3.method_6(24) != 5653314) + { + method_2(); + return -1; + } + Int0 = oggClass3.method_6(16); + Int1 = oggClass3.method_6(24); + if (Int1 == -1) + { + method_2(); + return -1; + } + switch (oggClass3.method_6(1)) + { + case 0: + Int2 = new int[Int1]; + if (oggClass3.method_6(1) != 0) + { + for (var i = 0; i < Int1; i++) + { + if (oggClass3.method_6(1) != 0) + { + var num = oggClass3.method_6(5); + if (num == -1) + { + method_2(); + return -1; + } + Int2[i] = num + 1; + } + else + { + Int2[i] = 0; + } + } + } + else + { + for (var i = 0; i < Int1; i++) + { + var num2 = oggClass3.method_6(5); + if (num2 == -1) + { + method_2(); + return -1; + } + Int2[i] = num2 + 1; + } + } + break; + case 1: + { + var num3 = oggClass3.method_6(5) + 1; + Int2 = new int[Int1]; + var i = 0; + while (i < Int1) + { + var num4 = oggClass3.method_6(smethod_0(Int1 - i)); + if (num4 == -1) + { + method_2(); + return -1; + } + var j = 0; + while (j < num4) + { + Int2[i] = num3; + j++; + i++; + } + num3++; + } + break; + } + default: + return -1; + } + switch (Int3 = oggClass3.method_6(4)) + { + case 0: + break; + case 1: + case 2: + { + Int4 = oggClass3.method_6(32); + Int5 = oggClass3.method_6(32); + Int6 = oggClass3.method_6(4) + 1; + Int7 = oggClass3.method_6(1); + var num5 = 0; + switch (Int3) + { + case 1: + num5 = method_1(); + break; + case 2: + num5 = Int1 * Int0; + break; + } + Int8 = new int[num5]; + for (var i = 0; i < num5; i++) + { + Int8[i] = oggClass3.method_6(Int6); + } + if (Int8[num5 - 1] == -1) + { + method_2(); + return -1; + } + break; + } + default: + method_2(); + return -1; + } + return 0; + } - public int method_1() - { - var num = (int)Math.Floor(Math.Pow(Int1, 1.0 / Int0)); - while (true) - { - var num2 = 1; - var num3 = 1; - for (var i = 0; i < Int0; i++) - { - num2 *= num; - num3 *= num + 1; - } - if (num2 <= Int1 && num3 > Int1) - { - break; - } + public int method_1() + { + var num = (int) Math.Floor(Math.Pow(Int1, 1.0 / Int0)); + while (true) + { + var num2 = 1; + var num3 = 1; + for (var i = 0; i < Int0; i++) + { + num2 *= num; + num3 *= num + 1; + } + if (num2 <= Int1 && num3 > Int1) + { + break; + } if (num2 > Int1) - { - num--; - } - else - { - num++; - } - } - return num; - } + { + num--; + } + else + { + num++; + } + } + return num; + } - public void method_2() - { - } + public void method_2() + { + } - public float[] method_3() - { - if (Int3 != 1) - { - if (Int3 != 2) - { - return null; - } - } - var num = smethod_1(Int4); - var num2 = smethod_1(Int5); - var array = new float[Int1 * Int0]; - switch (Int3) - { - case 1: - { - var num3 = method_1(); - for (var i = 0; i < Int1; i++) - { - var num4 = 0f; - var num5 = 1; - for (var j = 0; j < Int0; j++) - { - var num6 = i / num5 % num3; - float num7 = Int8[num6]; - num7 = Math.Abs(num7) * num2 + num + num4; - if (Int7 != 0) - { - num4 = num7; - } - array[i * Int0 + j] = num7; - num5 *= num3; - } - } - break; - } - case 2: - for (var k = 0; k < Int1; k++) - { - var num8 = 0f; - for (var l = 0; l < Int0; l++) - { - float num9 = Int8[k * Int0 + l]; - num9 = Math.Abs(num9) * num2 + num + num8; - if (Int7 != 0) - { - num8 = num9; - } - array[k * Int0 + l] = num9; - } - } - break; - } - return array; - } + public float[] method_3() + { + if (Int3 != 1) + { + if (Int3 != 2) + { + return null; + } + } + var num = smethod_1(Int4); + var num2 = smethod_1(Int5); + var array = new float[Int1 * Int0]; + switch (Int3) + { + case 1: + { + var num3 = method_1(); + for (var i = 0; i < Int1; i++) + { + var num4 = 0f; + var num5 = 1; + for (var j = 0; j < Int0; j++) + { + var num6 = i / num5 % num3; + float num7 = Int8[num6]; + num7 = Math.Abs(num7) * num2 + num + num4; + if (Int7 != 0) + { + num4 = num7; + } + array[i * Int0 + j] = num7; + num5 *= num3; + } + } + break; + } + case 2: + for (var k = 0; k < Int1; k++) + { + var num8 = 0f; + for (var l = 0; l < Int0; l++) + { + float num9 = Int8[k * Int0 + l]; + num9 = Math.Abs(num9) * num2 + num + num8; + if (Int7 != 0) + { + num8 = num9; + } + array[k * Int0 + l] = num9; + } + } + break; + } + return array; + } - public static int smethod_0(int int11) - { - var num = 0; - while (int11 != 0) - { - num++; - int11 = (int)((uint)int11 >> 1); - } - return num; - } + public static int smethod_0(int int11) + { + var num = 0; + while (int11 != 0) + { + num++; + int11 = (int) ((uint) int11 >> 1); + } + return num; + } - public static float smethod_1(int int11) - { - float num = int11 & 2097151; - float num2 = (uint)(int11 & 2145386496) >> Int9; - if ((int11 & 2147483648L) != 0L) - { - num = -num; - } - return smethod_2(num, (int)num2 - (Int9 - 1) - Int10); - } + public static float smethod_1(int int11) + { + float num = int11 & 2097151; + float num2 = (uint) (int11 & 2145386496) >> Int9; + if ((int11 & 2147483648L) != 0L) + { + num = -num; + } + return smethod_2(num, (int) num2 - (Int9 - 1) - Int10); + } - public static float smethod_2(float float0, int int11) - { - return (float)(float0 * Math.Pow(2.0, int11)); - } - } -} + public static float smethod_2(float float0, int int11) + { + return (float) (float0 * Math.Pow(2.0, int11)); + } + } +} \ No newline at end of file diff --git a/GHNamespace3/OGGClass6.cs b/GHNamespace3/OGGClass6.cs index ac5f038..716d018 100644 --- a/GHNamespace3/OGGClass6.cs +++ b/GHNamespace3/OGGClass6.cs @@ -2,114 +2,114 @@ namespace GHNamespace3 { - public class OggClass6 - { - public float[][] Float0 = new float[0][]; - - public OggClass3 OggClass3 = new OggClass3(); - - public int Int0; - - public int Int1; - - public int Int2; - - public int Int3; - - public int Int4; - - public int Int5; - - public long Long0; - - public long Long1; - - public OggClass1 OggClass1; - - public int Int6; - - public int Int7; - - public int Int8; - - public int Int9; - - public OggClass6(OggClass1 oggClass1) - { - OggClass1 = oggClass1; - if (oggClass1.Int2 != 0) - { - OggClass3.method_0(); - } - } - - public void method_0(OggClass1 oggClass1) - { - OggClass1 = oggClass1; - } - - public int method_1() - { - if (OggClass1 != null && OggClass1.Int2 != 0) - { - OggClass3.method_1(); - } - return 0; - } - - public int method_2(Class67 class670) - { - var oggClass5 = OggClass1.OggClass5; - OggClass3.method_4(class670.Byte0, class670.Int0, class670.Int1); - if (OggClass3.method_6(1) != 0) - { - return -1; - } - var num = OggClass3.method_6(OggClass1.Int3); - if (num == -1) - { - return -1; - } - Int4 = num; - Int1 = oggClass5.Class270[Int4].Int0; - if (Int1 != 0) - { - Int0 = OggClass3.method_6(1); - Int2 = OggClass3.method_6(1); - if (Int2 == -1) - { - return -1; - } - } - else - { - Int0 = 0; - Int2 = 0; - } - Long0 = class670.Long0; - Long1 = class670.Long1 - 3L; - Int5 = class670.Int3; - Int3 = oggClass5.Int13[Int1]; - if (Float0.Length < oggClass5.Int8) - { - Float0 = new float[oggClass5.Int8][]; - } - for (var i = 0; i < oggClass5.Int8; i++) - { - if (Float0[i] != null && Float0[i].Length >= Int3) - { - for (var j = 0; j < Int3; j++) - { - Float0[i][j] = 0f; - } - } - else - { - Float0[i] = new float[Int3]; - } - } - var num2 = oggClass5.Int21[oggClass5.Class270[Int4].Int3]; - return Class34.Class340[num2].vmethod_3(this, OggClass1.Object1[Int4]); - } - } -} + public class OggClass6 + { + public float[][] Float0 = new float[0][]; + + public OggClass3 OggClass3 = new OggClass3(); + + public int Int0; + + public int Int1; + + public int Int2; + + public int Int3; + + public int Int4; + + public int Int5; + + public long Long0; + + public long Long1; + + public OggClass1 OggClass1; + + public int Int6; + + public int Int7; + + public int Int8; + + public int Int9; + + public OggClass6(OggClass1 oggClass1) + { + OggClass1 = oggClass1; + if (oggClass1.Int2 != 0) + { + OggClass3.method_0(); + } + } + + public void method_0(OggClass1 oggClass1) + { + OggClass1 = oggClass1; + } + + public int method_1() + { + if (OggClass1 != null && OggClass1.Int2 != 0) + { + OggClass3.method_1(); + } + return 0; + } + + public int method_2(Class67 class670) + { + var oggClass5 = OggClass1.OggClass5; + OggClass3.method_4(class670.Byte0, class670.Int0, class670.Int1); + if (OggClass3.method_6(1) != 0) + { + return -1; + } + var num = OggClass3.method_6(OggClass1.Int3); + if (num == -1) + { + return -1; + } + Int4 = num; + Int1 = oggClass5.Class270[Int4].Int0; + if (Int1 != 0) + { + Int0 = OggClass3.method_6(1); + Int2 = OggClass3.method_6(1); + if (Int2 == -1) + { + return -1; + } + } + else + { + Int0 = 0; + Int2 = 0; + } + Long0 = class670.Long0; + Long1 = class670.Long1 - 3L; + Int5 = class670.Int3; + Int3 = oggClass5.Int13[Int1]; + if (Float0.Length < oggClass5.Int8) + { + Float0 = new float[oggClass5.Int8][]; + } + for (var i = 0; i < oggClass5.Int8; i++) + { + if (Float0[i] != null && Float0[i].Length >= Int3) + { + for (var j = 0; j < Int3; j++) + { + Float0[i][j] = 0f; + } + } + else + { + Float0[i] = new float[Int3]; + } + } + var num2 = oggClass5.Int21[oggClass5.Class270[Int4].Int3]; + return Class34.Class340[num2].vmethod_3(this, OggClass1.Object1[Int4]); + } + } +} \ No newline at end of file diff --git a/GHNamespace3/VorbisClass.cs b/GHNamespace3/VorbisClass.cs index acada3f..253d4b8 100644 --- a/GHNamespace3/VorbisClass.cs +++ b/GHNamespace3/VorbisClass.cs @@ -2,102 +2,102 @@ namespace GHNamespace3 { - public class VorbisClass - { - private static int _int0 = -136; + public class VorbisClass + { + private static int _int0 = -136; - private static int _int1 = -135; + private static int _int1 = -135; - private static string _string0 = "vorbis"; + private static string _string0 = "vorbis"; - private static int _int2 = 1; + private static int _int2 = 1; - private static int _int3 = 2; + private static int _int3 = 2; - private static int _int4 = 3; + private static int _int4 = 3; - private static int _int5 = 1; + private static int _int5 = 1; - private static int _int6 = 1; + private static int _int6 = 1; - public int[] Int7 = new int[2]; + public int[] Int7 = new int[2]; - public int Int8; + public int Int8; - public int Int9; + public int Int9; - public int Int10; + public int Int10; - public int Int11; + public int Int11; - public int Int12; + public int Int12; - public int Int13; + public int Int13; - public int Int14; + public int Int14; - public Class64[] Class640; + public Class64[] Class640; - public int[] Int15; + public int[] Int15; - public object[] Object0; + public object[] Object0; - public int[] Int16; + public int[] Int16; - public object[] Object1; + public object[] Object1; - public int[] Int17; + public int[] Int17; - public object[] Object2; + public object[] Object2; - public int[] Int18; + public int[] Int18; - public object[] Object3; + public object[] Object3; - public Class76[] Class760; + public Class76[] Class760; - public Class53[] Class530 = new Class53[64]; + public Class53[] Class530 = new Class53[64]; - public void method_0() - { - for (var i = 0; i < Int8; i++) - { - Class640[i] = null; - } - Class640 = null; - for (var j = 0; j < Int9; j++) - { - Class45.Class450[Int15[j]].vmethod_0(Object0[j]); - } - Object0 = null; - for (var k = 0; k < Int10; k++) - { - Class72.Class720[Int16[k]].vmethod_0(Object1[k]); - } - Object1 = null; - for (var l = 0; l < Int11; l++) - { - Class41.Class410[Int17[l]].vmethod_0(Object2[l]); - } - Object2 = null; - for (var m = 0; m < Int12; m++) - { - Class57.Class570[Int18[m]].vmethod_0(Object3[m]); - } - Object3 = null; - for (var n = 0; n < Int13; n++) - { - if (Class760[n] != null) - { - Class760[n].method_0(); - Class760[n] = null; - } - } - Class760 = null; - for (var num = 0; num < Int14; num++) - { - Class530[num].method_0(); - } - } - } -} + public void method_0() + { + for (var i = 0; i < Int8; i++) + { + Class640[i] = null; + } + Class640 = null; + for (var j = 0; j < Int9; j++) + { + Class45.Class450[Int15[j]].vmethod_0(Object0[j]); + } + Object0 = null; + for (var k = 0; k < Int10; k++) + { + Class72.Class720[Int16[k]].vmethod_0(Object1[k]); + } + Object1 = null; + for (var l = 0; l < Int11; l++) + { + Class41.Class410[Int17[l]].vmethod_0(Object2[l]); + } + Object2 = null; + for (var m = 0; m < Int12; m++) + { + Class57.Class570[Int18[m]].vmethod_0(Object3[m]); + } + Object3 = null; + for (var n = 0; n < Int13; n++) + { + if (Class760[n] != null) + { + Class760[n].method_0(); + Class760[n] = null; + } + } + Class760 = null; + for (var num = 0; num < Int14; num++) + { + Class530[num].method_0(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace4/AudioPlayer.cs b/GHNamespace4/AudioPlayer.cs index 874f009..e5584a0 100644 --- a/GHNamespace4/AudioPlayer.cs +++ b/GHNamespace4/AudioPlayer.cs @@ -7,263 +7,264 @@ namespace GHNamespace4 { - public class AudioPlayer : IDisposable - { - [CompilerGenerated] - private class VolumeListener - { - public AudioPlayer AudioPlayer; + public class AudioPlayer : IDisposable + { + [CompilerGenerated] + private class VolumeListener + { + public AudioPlayer AudioPlayer; - public float Volume; + public float Volume; - public void StartListener(object object0) - { - var num = 0f; - var num2 = Volume; - while (num < num2) - { - AudioPlayer.SetVolume(num); - num += 0.1f; - Thread.Sleep(50); - } - AudioPlayer.SetVolume(num2); - } - } + public void StartListener(object object0) + { + var num = 0f; + var num2 = Volume; + while (num < num2) + { + AudioPlayer.SetVolume(num); + num += 0.1f; + Thread.Sleep(50); + } + AudioPlayer.SetVolume(num2); + } + } - [CompilerGenerated] - private class Class161 - { - public IntPtr Intptr0; + [CompilerGenerated] + private class Class161 + { + public IntPtr Intptr0; - public AudioPlayer Class1590; + public AudioPlayer Class1590; - public void method_0(object object0) - { - GC.KeepAlive(Class1590._delegate40); - var intPtr = Intptr0; - while (Class162.waveOutClose(intPtr) != Enum18.Const0) - { - Thread.Sleep(1000); - } - } - } + public void method_0(object object0) + { + GC.KeepAlive(Class1590._delegate40); + var intPtr = Intptr0; + while (Class162.waveOutClose(intPtr) != Enum18.Const0) + { + Thread.Sleep(1000); + } + } + } - private IntPtr _intptr0; + private IntPtr _intptr0; - private Class165 _class1650; + private Class165 _class1650; - private Class165 _class1651; + private Class165 _class1651; - private Thread _thread0; + private Thread _thread0; - private Delegate3 _delegate30; + private Delegate3 _delegate30; - private bool _bool0; + private bool _bool0; - private bool _bool1; + private bool _bool1; - private readonly byte _byte0; + private readonly byte _byte0; - private readonly bool _bool2; + private readonly bool _bool2; - private readonly Class162.Delegate4 _delegate40; + private readonly Class162.Delegate4 _delegate40; - private readonly object _object0; + private readonly object _object0; - public AudioPlayer(int int0, WaveFormat waveFormat0, int int1, float volume, bool bool3, Delegate3 delegate31) - { - WaitCallback waitCallback = null; - var volumeListener = new VolumeListener(); - volumeListener.Volume = volume; + public AudioPlayer(int int0, WaveFormat waveFormat0, int int1, float volume, bool bool3, Delegate3 delegate31) + { + WaitCallback waitCallback = null; + var volumeListener = new VolumeListener(); + volumeListener.Volume = volume; _delegate40 = Class165.smethod_0; - _object0 = new object(); - //base..ctor(); - volumeListener.AudioPlayer = this; - _bool2 = bool3; - _byte0 = (byte)((waveFormat0.short_2 == 8) ? 128 : 0); - _delegate30 = delegate31; - Exception4.smethod_1(Class162.waveOutOpen(out _intptr0, int0, waveFormat0, _delegate40, 0, Class162.Enum17.Const3), "waveOutOpen"); - method_7(waveFormat0.method_0(int1 / 5), 5); - _thread0 = new Thread(method_6); - SetVolume(0f); - _thread0.Start(); - if (waitCallback == null) - { - waitCallback = volumeListener.StartListener; - } - ThreadPool.QueueUserWorkItem(waitCallback); - } + _object0 = new object(); + //base..ctor(); + volumeListener.AudioPlayer = this; + _bool2 = bool3; + _byte0 = (byte) ((waveFormat0.short_2 == 8) ? 128 : 0); + _delegate30 = delegate31; + Exception4.smethod_1( + Class162.waveOutOpen(out _intptr0, int0, waveFormat0, _delegate40, 0, Class162.Enum17.Const3), + "waveOutOpen"); + method_7(waveFormat0.method_0(int1 / 5), 5); + _thread0 = new Thread(method_6); + SetVolume(0f); + _thread0.Start(); + if (waitCallback == null) + { + waitCallback = volumeListener.StartListener; + } + ThreadPool.QueueUserWorkItem(waitCallback); + } - public int method_0() - { - var @struct = default(Struct67); - @struct.enum14_0 = Enum14.Const2; - if (_intptr0 != IntPtr.Zero) - { - Class162.waveOutGetPosition(_intptr0, ref @struct, Marshal.SizeOf(@struct)); - } - return @struct.int_2; - } + public int method_0() + { + var @struct = default(Struct67); + @struct.enum14_0 = Enum14.Const2; + if (_intptr0 != IntPtr.Zero) + { + Class162.waveOutGetPosition(_intptr0, ref @struct, Marshal.SizeOf(@struct)); + } + return @struct.int_2; + } - public float method_1() - { - var num = 0; - if (_intptr0 != IntPtr.Zero) - { - Class162.waveOutGetVolume(_intptr0, ref num); - } - return ((num >> 16) / 65536f + (num & 65535) / 65536f) / 2f; - } + public float method_1() + { + var num = 0; + if (_intptr0 != IntPtr.Zero) + { + Class162.waveOutGetVolume(_intptr0, ref num); + } + return ((num >> 16) / 65536f + (num & 65535) / 65536f) / 2f; + } - public void SetVolume(float float0) - { - var int_ = (int)(float0 * 65535f) + ((int)(float0 * 65535f) << 16); - if (_intptr0 != IntPtr.Zero) - { - Class162.waveOutSetVolume(_intptr0, int_); - } - } + public void SetVolume(float float0) + { + var int_ = (int) (float0 * 65535f) + ((int) (float0 * 65535f) << 16); + if (_intptr0 != IntPtr.Zero) + { + Class162.waveOutSetVolume(_intptr0, int_); + } + } - public void method_3() - { - Class162.waveOutRestart(_intptr0); - } + public void method_3() + { + Class162.waveOutRestart(_intptr0); + } - public void method_4() - { - Class162.waveOutPause(_intptr0); - } + public void method_4() + { + Class162.waveOutPause(_intptr0); + } - public bool method_5() - { - return !_bool2 && _bool1; - } + public bool method_5() + { + return !_bool2 && _bool1; + } - ~AudioPlayer() - { - Dispose(); - } + ~AudioPlayer() + { + Dispose(); + } - public void Dispose() - { - lock (_object0) - { - if (_thread0 != null) - { - try - { - _bool0 = true; - if (_intptr0 != IntPtr.Zero) - { - Class162.waveOutReset(_intptr0); - } - _thread0.Join(); - _delegate30 = null; - method_8(); - if (_intptr0 != IntPtr.Zero) - { - var @class = new Class161(); - @class.Class1590 = this; - @class.Intptr0 = _intptr0; - ThreadPool.QueueUserWorkItem(@class.method_0); - } - } - finally - { - _thread0 = null; - _intptr0 = IntPtr.Zero; - } - } - } - GC.SuppressFinalize(this); - } + public void Dispose() + { + lock (_object0) + { + if (_thread0 != null) + { + try + { + _bool0 = true; + if (_intptr0 != IntPtr.Zero) + { + Class162.waveOutReset(_intptr0); + } + _thread0.Join(); + _delegate30 = null; + method_8(); + if (_intptr0 != IntPtr.Zero) + { + var @class = new Class161(); + @class.Class1590 = this; + @class.Intptr0 = _intptr0; + ThreadPool.QueueUserWorkItem(@class.method_0); + } + } + finally + { + _thread0 = null; + _intptr0 = IntPtr.Zero; + } + } + } + GC.SuppressFinalize(this); + } - private void method_6() - { - while (!_bool0) - { - method_9(); - if (_delegate30 != null && !_bool0) - { - _delegate30(this, _class1651.method_1(), _class1651.method_0(), ref _bool0); - if (_bool0 && _bool2) - { - _bool0 = false; - } - } - else - { + private void method_6() + { + while (!_bool0) + { + method_9(); + if (_delegate30 != null && !_bool0) + { + _delegate30(this, _class1651.method_1(), _class1651.method_0(), ref _bool0); + if (_bool0 && _bool2) + { + _bool0 = false; + } + } + else + { var array = new byte[_class1651.method_0()]; - if (_byte0 != 0) - { - for (var i = 0; i < array.Length; i++) - { - array[i] = _byte0; - } - } - Marshal.Copy(array, 0, _class1651.method_1(), array.Length); - } - _class1651.method_2(); - } - method_10(); - _bool1 = true; - } + if (_byte0 != 0) + { + for (var i = 0; i < array.Length; i++) + { + array[i] = _byte0; + } + } + Marshal.Copy(array, 0, _class1651.method_1(), array.Length); + } + _class1651.method_2(); + } + method_10(); + _bool1 = true; + } - private void method_7(int int0, int int1) - { - method_8(); - if (int1 > 0) - { - _class1650 = new Class165(_intptr0, int0); - var @class = _class1650; - try - { - for (var i = 1; i < int1; i++) - { - var class2 = new Class165(_intptr0, int0); - @class.Class1650 = class2; - @class = class2; - } - } - finally - { - @class.Class1650 = _class1650; - } - } - } + private void method_7(int int0, int int1) + { + method_8(); + if (int1 > 0) + { + _class1650 = new Class165(_intptr0, int0); + var @class = _class1650; + try + { + for (var i = 1; i < int1; i++) + { + var class2 = new Class165(_intptr0, int0); + @class.Class1650 = class2; + @class = class2; + } + } + finally + { + @class.Class1650 = _class1650; + } + } + } - private void method_8() - { - _class1651 = null; - if (_class1650 != null) - { - var @class = _class1650; - _class1650 = null; - var class2 = @class; - do - { - var class3 = class2.Class1650; - class2.Dispose(); - class2 = class3; - } - while (class2 != @class); - } - } + private void method_8() + { + _class1651 = null; + if (_class1650 != null) + { + var @class = _class1650; + _class1650 = null; + var class2 = @class; + do + { + var class3 = class2.Class1650; + class2.Dispose(); + class2 = class3; + } while (class2 != @class); + } + } - private void method_9() - { - _class1651 = ((_class1651 == null) ? _class1650 : _class1651.Class1650); - _class1651.method_3(); - } + private void method_9() + { + _class1651 = ((_class1651 == null) ? _class1650 : _class1651.Class1650); + _class1651.method_3(); + } - private void method_10() - { - var @class = _class1650; - while (@class.Class1650 != _class1650) - { - @class.method_3(); - @class = @class.Class1650; - } - } - } -} + private void method_10() + { + var @class = _class1650; + while (@class.Class1650 != _class1650) + { + @class.method_3(); + @class = @class.Class1650; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class134.cs b/GHNamespace4/Class134.cs index 78c7ea2..f5996d5 100644 --- a/GHNamespace4/Class134.cs +++ b/GHNamespace4/Class134.cs @@ -6,49 +6,51 @@ namespace GHNamespace4 { - public class Class134 : Class131 - { - private readonly Class137 _class1370; + public class Class134 : Class131 + { + private readonly Class137 _class1370; - private readonly int _int1; + private readonly int _int1; - private readonly int[] _int2 = new int[4]; + private readonly int[] _int2 = new int[4]; - private readonly int[] _int3; + private readonly int[] _int3; - public Class134(Class144 class1440, Class140 class1401, Class136 class1360, int int4, int int5, int int6) : base(class1401, int5) - { - _int3 = class1360.vmethod_2(); - _int1 = int6; - for (var i = 0; i < int6; i++) - { - _int2[i] = class1440.vmethod_12(int4); - } - var num = class1440.vmethod_10(2); - var num2 = num; - if (num2 == 0) - { - var int7 = class1440.vmethod_10(4); - var @class = new Class138(); - _class1370 = @class; - @class.Int0 = int7; - @class.Class1430 = class1360.vmethod_1(); - @class.vmethod_0(class1440, int6, @class.Int0, class1401, class1360.vmethod_2()); - Buffer.BlockCopy(_int2, 0, class1360.vmethod_0(), 0, int6 << 2); - BlackMagic.CopyArrayOffset(_int3, class1401.Int0 - int6, int6, class1360.vmethod_0(), int6); - return; - } - throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); - } + public Class134(Class144 class1440, Class140 class1401, Class136 class1360, int int4, int int5, + int int6) : base(class1401, int5) + { + _int3 = class1360.vmethod_2(); + _int1 = int6; + for (var i = 0; i < int6; i++) + { + _int2[i] = class1440.vmethod_12(int4); + } + var num = class1440.vmethod_10(2); + var num2 = num; + if (num2 == 0) + { + var int7 = class1440.vmethod_10(4); + var @class = new Class138(); + _class1370 = @class; + @class.Int0 = int7; + @class.Class1430 = class1360.vmethod_1(); + @class.vmethod_0(class1440, int6, @class.Int0, class1401, class1360.vmethod_2()); + Buffer.BlockCopy(_int2, 0, class1360.vmethod_0(), 0, int6 << 2); + BlackMagic.CopyArrayOffset(_int3, class1401.Int0 - int6, int6, class1360.vmethod_0(), int6); + return; + } + throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); + } - public override string ToString() - { - var stringBuilder = new StringBuilder(string.Concat("FLACSubframe_Fixed: Order=", _int1, " PartitionOrder=", ((Class138)_class1370).Int0, " WastedBits=", Int0)); - for (var i = 0; i < _int1; i++) - { - stringBuilder.Append(string.Concat(" warmup[", i, "]=", _int2[i])); - } - return stringBuilder.ToString(); - } - } -} + public override string ToString() + { + var stringBuilder = new StringBuilder(string.Concat("FLACSubframe_Fixed: Order=", _int1, " PartitionOrder=", + ((Class138) _class1370).Int0, " WastedBits=", Int0)); + for (var i = 0; i < _int1; i++) + { + stringBuilder.Append(string.Concat(" warmup[", i, "]=", _int2[i])); + } + return stringBuilder.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class135.cs b/GHNamespace4/Class135.cs index 9c9d5e3..a0d78bb 100644 --- a/GHNamespace4/Class135.cs +++ b/GHNamespace4/Class135.cs @@ -6,88 +6,93 @@ namespace GHNamespace4 { - public class Class135 : Class131 - { - private readonly Class137 _class1370; + public class Class135 : Class131 + { + private readonly Class137 _class1370; - private readonly int _int1; + private readonly int _int1; - private readonly int _int2; + private readonly int _int2; - private readonly int _int3; + private readonly int _int3; - private readonly int[] _int4 = new int[32]; + private readonly int[] _int4 = new int[32]; - private readonly int[] _int5 = new int[32]; + private readonly int[] _int5 = new int[32]; - private int[] _int6; + private int[] _int6; - public Class135(Class144 class1440, Class140 class1401, Class136 class1360, int int7, int int8, int int9) : base(class1401, int8) - { - _int6 = class1360.vmethod_2(); - _int1 = int9; - for (var i = 0; i < int9; i++) - { - _int5[i] = class1440.vmethod_12(int7); - } - var num = class1440.vmethod_10(4); - if (num == 15) - { - throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); - } - _int2 = num + 1; - _int3 = class1440.vmethod_12(5); - for (var j = 0; j < int9; j++) - { - _int4[j] = class1440.vmethod_12(_int2); - } - var num2 = class1440.vmethod_10(2); - var num3 = num2; - if (num3 != 0) - { - throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); - } - _class1370 = new Class138(); - ((Class138)_class1370).Int0 = class1440.vmethod_10(4); - ((Class138)_class1370).Class1430 = class1360.vmethod_1(); - if (_class1370 is Class138) - { - ((Class138)_class1370).vmethod_0(class1440, int9, ((Class138)_class1370).Int0, class1401, class1360.vmethod_2()); - } - Buffer.BlockCopy(_int5, 0, class1360.vmethod_0(), 0, int9 << 2); - if (int7 + _int2 + Class141.smethod_0(int9) > 32) - { - Class130.smethod_1(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); - return; - } - if (int7 <= 16 && _int2 <= 16) - { - Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); - return; - } - Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); - } + public Class135(Class144 class1440, Class140 class1401, Class136 class1360, int int7, int int8, + int int9) : base(class1401, int8) + { + _int6 = class1360.vmethod_2(); + _int1 = int9; + for (var i = 0; i < int9; i++) + { + _int5[i] = class1440.vmethod_12(int7); + } + var num = class1440.vmethod_10(4); + if (num == 15) + { + throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); + } + _int2 = num + 1; + _int3 = class1440.vmethod_12(5); + for (var j = 0; j < int9; j++) + { + _int4[j] = class1440.vmethod_12(_int2); + } + var num2 = class1440.vmethod_10(2); + var num3 = num2; + if (num3 != 0) + { + throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); + } + _class1370 = new Class138(); + ((Class138) _class1370).Int0 = class1440.vmethod_10(4); + ((Class138) _class1370).Class1430 = class1360.vmethod_1(); + if (_class1370 is Class138) + { + ((Class138) _class1370).vmethod_0(class1440, int9, ((Class138) _class1370).Int0, class1401, + class1360.vmethod_2()); + } + Buffer.BlockCopy(_int5, 0, class1360.vmethod_0(), 0, int9 << 2); + if (int7 + _int2 + Class141.smethod_0(int9) > 32) + { + Class130.smethod_1(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, + class1360.vmethod_0(), int9); + return; + } + if (int7 <= 16 && _int2 <= 16) + { + Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, + class1360.vmethod_0(), int9); + return; + } + Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), + int9); + } - public override string ToString() - { - var stringBuilder = new StringBuilder(string.Concat("ChannelLPC: Order=", _int1, " WastedBits=", Int0)); - stringBuilder.Append(string.Concat(" qlpCoeffPrecision=", _int2, " quantizationLevel=", _int3)); - stringBuilder.Append("\n\t\tqlpCoeff: "); - for (var i = 0; i < _int1; i++) - { - stringBuilder.Append(_int4[i] + " "); - } - stringBuilder.Append("\n\t\tWarmup: "); - for (var j = 0; j < _int1; j++) - { - stringBuilder.Append(_int5[j] + " "); - } - stringBuilder.Append("\n\t\tParameter: "); - for (var k = 0; k < 1 << ((Class138)_class1370).Int0; k++) - { - stringBuilder.Append(((Class138)_class1370).Class1430.Int0[k] + " "); - } - return stringBuilder.ToString(); - } - } -} + public override string ToString() + { + var stringBuilder = new StringBuilder(string.Concat("ChannelLPC: Order=", _int1, " WastedBits=", Int0)); + stringBuilder.Append(string.Concat(" qlpCoeffPrecision=", _int2, " quantizationLevel=", _int3)); + stringBuilder.Append("\n\t\tqlpCoeff: "); + for (var i = 0; i < _int1; i++) + { + stringBuilder.Append(_int4[i] + " "); + } + stringBuilder.Append("\n\t\tWarmup: "); + for (var j = 0; j < _int1; j++) + { + stringBuilder.Append(_int5[j] + " "); + } + stringBuilder.Append("\n\t\tParameter: "); + for (var k = 0; k < 1 << ((Class138) _class1370).Int0; k++) + { + stringBuilder.Append(((Class138) _class1370).Class1430.Int0[k] + " "); + } + return stringBuilder.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class152.cs b/GHNamespace4/Class152.cs index 75be38c..74f92fc 100644 --- a/GHNamespace4/Class152.cs +++ b/GHNamespace4/Class152.cs @@ -1,39 +1,39 @@ namespace GHNamespace4 { - public class Class152 - { - private readonly byte[] _byte0; + public class Class152 + { + private readonly byte[] _byte0; - private int _int0; + private int _int0; - public virtual int vmethod_0() - { - return _int0; - } + public virtual int vmethod_0() + { + return _int0; + } - public Class152(int int1) - { - if (int1 <= 0) - { - int1 = 256; - } - _byte0 = new byte[int1]; - _int0 = 0; - } + public Class152(int int1) + { + if (int1 <= 0) + { + int1 = 256; + } + _byte0 = new byte[int1]; + _int0 = 0; + } - public virtual void vmethod_1(byte byte1) - { - _byte0[_int0++] = byte1; - } + public virtual void vmethod_1(byte byte1) + { + _byte0[_int0++] = byte1; + } - public virtual byte[] vmethod_2() - { - return _byte0; - } + public virtual byte[] vmethod_2() + { + return _byte0; + } - public virtual byte vmethod_3(int int1) - { - return _byte0[int1]; - } - } -} + public virtual byte vmethod_3(int int1) + { + return _byte0[int1]; + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class153.cs b/GHNamespace4/Class153.cs index 1ad17de..bda0579 100644 --- a/GHNamespace4/Class153.cs +++ b/GHNamespace4/Class153.cs @@ -3,30 +3,30 @@ namespace GHNamespace4 { - [CompilerGenerated] - public class Class153 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 3)] - public struct Struct63 - { - } + [CompilerGenerated] + public class Class153 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 3)] + public struct Struct63 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] - public struct Struct64 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] + public struct Struct64 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 512)] - public struct Struct65 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 512)] + public struct Struct65 + { + } - public static int Int0; + public static int Int0; - public static Struct64 Struct640; + public static Struct64 Struct640; - public static Struct63 Struct630; + public static Struct63 Struct630; - public static Struct65 Struct650; - } -} + public static Struct65 Struct650; + } +} \ No newline at end of file diff --git a/GHNamespace4/Class154.cs b/GHNamespace4/Class154.cs index 24c2000..92c43ee 100644 --- a/GHNamespace4/Class154.cs +++ b/GHNamespace4/Class154.cs @@ -3,80 +3,79 @@ namespace GHNamespace4 { - public class Class154 : IDisposable - { - private IntPtr _intptr0; + public class Class154 : IDisposable + { + private IntPtr _intptr0; - private Class156 _class1560; + private Class156 _class1560; - private Class156 _class1561; + private Class156 _class1561; - private Thread _thread0; + private Thread _thread0; - private Delegate2 _delegate20; + private Delegate2 _delegate20; - private bool _bool0; + private bool _bool0; - ~Class154() - { - Dispose(); - } + ~Class154() + { + Dispose(); + } - public void Dispose() - { - if (_thread0 != null) - { - try - { - _bool0 = true; - if (_intptr0 != IntPtr.Zero) - { - Class162.waveInReset(_intptr0); - } - method_1(); - _thread0.Join(); - _delegate20 = null; - method_0(); - if (_intptr0 != IntPtr.Zero) - { - Class162.waveInClose(_intptr0); - } - } - finally - { - _thread0 = null; - _intptr0 = IntPtr.Zero; - } - } - GC.SuppressFinalize(this); - } + public void Dispose() + { + if (_thread0 != null) + { + try + { + _bool0 = true; + if (_intptr0 != IntPtr.Zero) + { + Class162.waveInReset(_intptr0); + } + method_1(); + _thread0.Join(); + _delegate20 = null; + method_0(); + if (_intptr0 != IntPtr.Zero) + { + Class162.waveInClose(_intptr0); + } + } + finally + { + _thread0 = null; + _intptr0 = IntPtr.Zero; + } + } + GC.SuppressFinalize(this); + } - private void method_0() - { - _class1561 = null; - if (_class1560 != null) - { - var @class = _class1560; - _class1560 = null; - var class2 = @class; - do - { - var class3 = class2.Class1560; - class2.Dispose(); - class2 = class3; - } - while (class2 != @class); - } - } + private void method_0() + { + _class1561 = null; + if (_class1560 != null) + { + var @class = _class1560; + _class1560 = null; + var class2 = @class; + do + { + var class3 = class2.Class1560; + class2.Dispose(); + class2 = class3; + } while (class2 != @class); + } + } - private void method_1() - { - var @class = _class1560; - while (@class.Class1560 != _class1560) - { - @class.method_0(); - @class = @class.Class1560; - } - } - } -} + private void method_1() + { + var @class = _class1560; + while (@class.Class1560 != _class1560) + { + @class.method_0(); + @class = @class.Class1560; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class156.cs b/GHNamespace4/Class156.cs index f12ef23..b46903d 100644 --- a/GHNamespace4/Class156.cs +++ b/GHNamespace4/Class156.cs @@ -4,51 +4,51 @@ namespace GHNamespace4 { - public class Class156 : IDisposable - { - public Class156 Class1560; - - private readonly AutoResetEvent _autoResetEvent0; - - private readonly IntPtr _intptr0; - - private Struct66 _struct660; - - private GCHandle _gchandle0; - - private GCHandle _gchandle1; - - private bool _bool0; - - ~Class156() - { - Dispose(); - } - - public void Dispose() - { - if (_struct660.Intptr0 != IntPtr.Zero) - { - Class162.waveInUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); - _gchandle0.Free(); - _struct660.Intptr0 = IntPtr.Zero; - } - _autoResetEvent0.Close(); - if (_gchandle1.IsAllocated) - { - _gchandle1.Free(); - } - GC.SuppressFinalize(this); - } - - public void method_0() - { - if (_bool0) - { - _bool0 = _autoResetEvent0.WaitOne(); - return; - } - Thread.Sleep(0); - } - } -} + public class Class156 : IDisposable + { + public Class156 Class1560; + + private readonly AutoResetEvent _autoResetEvent0; + + private readonly IntPtr _intptr0; + + private Struct66 _struct660; + + private GCHandle _gchandle0; + + private GCHandle _gchandle1; + + private bool _bool0; + + ~Class156() + { + Dispose(); + } + + public void Dispose() + { + if (_struct660.Intptr0 != IntPtr.Zero) + { + Class162.waveInUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); + _gchandle0.Free(); + _struct660.Intptr0 = IntPtr.Zero; + } + _autoResetEvent0.Close(); + if (_gchandle1.IsAllocated) + { + _gchandle1.Free(); + } + GC.SuppressFinalize(this); + } + + public void method_0() + { + if (_bool0) + { + _bool0 = _autoResetEvent0.WaitOne(); + return; + } + Thread.Sleep(0); + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class157.cs b/GHNamespace4/Class157.cs index 6f11a14..87653df 100644 --- a/GHNamespace4/Class157.cs +++ b/GHNamespace4/Class157.cs @@ -3,46 +3,46 @@ namespace GHNamespace4 { - public class Class157 : IDisposable - { - private Class154 _class1540; + public class Class157 : IDisposable + { + private Class154 _class1540; - public Stream14 Stream140; + public Stream14 Stream140; - ~Class157() - { - Dispose(); - } + ~Class157() + { + Dispose(); + } - public void method_0() - { - if (_class1540 != null) - { - try - { - _class1540.Dispose(); - } - finally - { - _class1540 = null; - } - } - } + public void method_0() + { + if (_class1540 != null) + { + try + { + _class1540.Dispose(); + } + finally + { + _class1540 = null; + } + } + } - public void Dispose() - { - method_0(); - if (Stream140 != null) - { - try - { - Stream140.Close(); - } - finally - { - Stream140 = null; - } - } - } - } -} + public void Dispose() + { + method_0(); + if (Stream140 != null) + { + try + { + Stream140.Close(); + } + finally + { + Stream140 = null; + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class158.cs b/GHNamespace4/Class158.cs index cfd5bdb..0cd18d3 100644 --- a/GHNamespace4/Class158.cs +++ b/GHNamespace4/Class158.cs @@ -6,124 +6,125 @@ namespace GHNamespace4 { - public class Class158 : IDisposable - { - private Struct66 _struct660; - - private readonly int _int0; - - private readonly Class17 _class170; - - private GCHandle _gchandle0; - - private IntPtr _intptr0; - - private GCHandle _gchandle1; - - private GCHandle _gchandle2; - - private readonly GenericAudioStream _stream10; - - private readonly object _object0; - - public Class158(IntPtr intptr1, int int1, GenericAudioStream stream11, object object1) - { - _int0 = int1; - _class170 = new Class17(int1); - _gchandle0 = GCHandle.Alloc(_class170.method_0(), GCHandleType.Pinned); - _intptr0 = intptr1; - _stream10 = stream11; - _object0 = object1; - _struct660 = default(Struct66); - _gchandle1 = GCHandle.Alloc(_struct660); - _struct660.Intptr0 = _gchandle0.AddrOfPinnedObject(); - _struct660.Int0 = int1; - _struct660.Int2 = 1; - _gchandle2 = GCHandle.Alloc(this); - _struct660.Intptr1 = (IntPtr)_gchandle2; - lock (object1) - { - Exception4.smethod_1(Class162.waveOutPrepareHeader(intptr1, ref _struct660, Marshal.SizeOf(_struct660)), "waveOutPrepareHeader"); - } - } - - ~Class158() - { - method_0(false); - } - - public void Dispose() - { - GC.SuppressFinalize(this); - method_0(true); - } - - public void method_0(bool bool0) - { - if (_gchandle1.IsAllocated) - { - _gchandle1.Free(); - } - if (_gchandle0.IsAllocated) - { - _gchandle0.Free(); - } - if (_gchandle2.IsAllocated) - { - _gchandle2.Free(); - } - if (_intptr0 != IntPtr.Zero) - { - lock (_object0) - { - Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); - } - _intptr0 = IntPtr.Zero; - } - } - - public bool method_1() - { - int num; - lock (_stream10) - { - var arg390 = _stream10; - var arg391 = _struct660.Intptr0; - int int_; - _class170.method_4(int_ = _class170.method_0().Length); - num = arg390.vmethod_3(arg391, int_); - } - if (num == 0) - { - return false; - } - Array.Clear(_class170.method_0(), num, _class170.method_3() - num); - method_4(); - return true; - } - - public bool method_2() - { - return (_struct660.Enum150 & Enum15.Flag3) == Enum15.Flag3; - } - - public Class17 method_3() - { - return _class170; - } - - private void method_4() - { - Enum18 @enum; - lock (_object0) - { - @enum = Class162.waveOutWrite(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); - } - if (@enum != Enum18.Const0) - { - throw new Exception4(@enum, "waveOutWrite"); - } - GC.KeepAlive(this); - } - } -} + public class Class158 : IDisposable + { + private Struct66 _struct660; + + private readonly int _int0; + + private readonly Class17 _class170; + + private GCHandle _gchandle0; + + private IntPtr _intptr0; + + private GCHandle _gchandle1; + + private GCHandle _gchandle2; + + private readonly GenericAudioStream _stream10; + + private readonly object _object0; + + public Class158(IntPtr intptr1, int int1, GenericAudioStream stream11, object object1) + { + _int0 = int1; + _class170 = new Class17(int1); + _gchandle0 = GCHandle.Alloc(_class170.method_0(), GCHandleType.Pinned); + _intptr0 = intptr1; + _stream10 = stream11; + _object0 = object1; + _struct660 = default(Struct66); + _gchandle1 = GCHandle.Alloc(_struct660); + _struct660.Intptr0 = _gchandle0.AddrOfPinnedObject(); + _struct660.Int0 = int1; + _struct660.Int2 = 1; + _gchandle2 = GCHandle.Alloc(this); + _struct660.Intptr1 = (IntPtr) _gchandle2; + lock (object1) + { + Exception4.smethod_1(Class162.waveOutPrepareHeader(intptr1, ref _struct660, Marshal.SizeOf(_struct660)), + "waveOutPrepareHeader"); + } + } + + ~Class158() + { + method_0(false); + } + + public void Dispose() + { + GC.SuppressFinalize(this); + method_0(true); + } + + public void method_0(bool bool0) + { + if (_gchandle1.IsAllocated) + { + _gchandle1.Free(); + } + if (_gchandle0.IsAllocated) + { + _gchandle0.Free(); + } + if (_gchandle2.IsAllocated) + { + _gchandle2.Free(); + } + if (_intptr0 != IntPtr.Zero) + { + lock (_object0) + { + Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); + } + _intptr0 = IntPtr.Zero; + } + } + + public bool method_1() + { + int num; + lock (_stream10) + { + var arg390 = _stream10; + var arg391 = _struct660.Intptr0; + int int_; + _class170.method_4(int_ = _class170.method_0().Length); + num = arg390.vmethod_3(arg391, int_); + } + if (num == 0) + { + return false; + } + Array.Clear(_class170.method_0(), num, _class170.method_3() - num); + method_4(); + return true; + } + + public bool method_2() + { + return (_struct660.Enum150 & Enum15.Flag3) == Enum15.Flag3; + } + + public Class17 method_3() + { + return _class170; + } + + private void method_4() + { + Enum18 @enum; + lock (_object0) + { + @enum = Class162.waveOutWrite(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); + } + if (@enum != Enum18.Const0) + { + throw new Exception4(@enum, "waveOutWrite"); + } + GC.KeepAlive(this); + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Class162.cs b/GHNamespace4/Class162.cs index 7f6f910..a65ef3b 100644 --- a/GHNamespace4/Class162.cs +++ b/GHNamespace4/Class162.cs @@ -4,66 +4,67 @@ namespace GHNamespace4 { - public class Class162 - { - public enum Enum16 - { - Const0 = 956, - Const1, - Const2 = 955 - } + public class Class162 + { + public enum Enum16 + { + Const0 = 956, + Const1, + Const2 = 955 + } - public enum Enum17 - { - Const0, - Const1 = 65536, - Const2 = 131072, - Const3 = 196608, - Const4 = 196608 - } + public enum Enum17 + { + Const0, + Const1 = 65536, + Const2 = 131072, + Const3 = 196608, + Const4 = 196608 + } - public delegate void Delegate4(IntPtr hdrvr, Enum16 uMsg, int dwUser, ref Struct66 wavhdr, int dwParam2); + public delegate void Delegate4(IntPtr hdrvr, Enum16 uMsg, int dwUser, ref Struct66 wavhdr, int dwParam2); - [DllImport("winmm.dll")] - public static extern Enum18 waveInClose(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveInClose(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveInUnprepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveInUnprepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveInReset(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveInReset(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutPrepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutPrepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutUnprepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutUnprepareHeader(IntPtr intptr0, ref Struct66 struct660, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutWrite(IntPtr intptr0, ref Struct66 struct660, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutWrite(IntPtr intptr0, ref Struct66 struct660, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutOpen(out IntPtr hWaveOut, int uDeviceId, WaveFormat lpFormat, Delegate4 dwCallback, int dwInstance, Enum17 dwFlags); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutOpen(out IntPtr hWaveOut, int uDeviceId, WaveFormat lpFormat, + Delegate4 dwCallback, int dwInstance, Enum17 dwFlags); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutClose(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutClose(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutReset(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutReset(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutPause(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutPause(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutRestart(IntPtr intptr0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutRestart(IntPtr intptr0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutGetPosition(IntPtr intptr0, ref Struct67 struct670, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutGetPosition(IntPtr intptr0, ref Struct67 struct670, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutSetVolume(IntPtr intptr0, int int0); + [DllImport("winmm.dll")] + public static extern Enum18 waveOutSetVolume(IntPtr intptr0, int int0); - [DllImport("winmm.dll")] - public static extern Enum18 waveOutGetVolume(IntPtr intptr0, ref int int0); - } -} + [DllImport("winmm.dll")] + public static extern Enum18 waveOutGetVolume(IntPtr intptr0, ref int int0); + } +} \ No newline at end of file diff --git a/GHNamespace4/Class165.cs b/GHNamespace4/Class165.cs index 1319413..7a61ff4 100644 --- a/GHNamespace4/Class165.cs +++ b/GHNamespace4/Class165.cs @@ -5,108 +5,110 @@ namespace GHNamespace4 { - public class Class165 : IDisposable - { - public Class165 Class1650; - - private readonly AutoResetEvent _autoResetEvent0 = new AutoResetEvent(false); - - private readonly IntPtr _intptr0; - - private Struct66 _struct660; - - private readonly byte[] _byte0; - - private GCHandle _gchandle0; - - private GCHandle _gchandle1; - - private bool _bool0; - - private readonly object _object0 = new object(); - - public static void smethod_0(IntPtr intptr1, Class162.Enum16 enum160, int int0, ref Struct66 struct661, int int1) - { - if (enum160 == Class162.Enum16.Const1) - { - try - { - var @class = (Class165)((GCHandle)struct661.Intptr1).Target; - @class.method_4(); - } - catch - { - } - } - } - - public Class165(IntPtr intptr1, int int0) - { - _intptr0 = intptr1; - _gchandle0 = GCHandle.Alloc(_struct660, GCHandleType.Pinned); - _struct660.Intptr1 = (IntPtr)GCHandle.Alloc(this); - _byte0 = new byte[int0]; - _gchandle1 = GCHandle.Alloc(_byte0, GCHandleType.Pinned); - _struct660.Intptr0 = _gchandle1.AddrOfPinnedObject(); - _struct660.Int0 = int0; - Exception4.smethod_1(Class162.waveOutPrepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)), "waveOutPrepareHeader"); - } - - ~Class165() - { - Dispose(); - } - - public void Dispose() - { - if (_struct660.Intptr0 != IntPtr.Zero) - { - Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); - _gchandle0.Free(); - _struct660.Intptr0 = IntPtr.Zero; - } - _autoResetEvent0.Close(); - if (_gchandle1.IsAllocated) - { - _gchandle1.Free(); - } - GC.SuppressFinalize(this); - } - - public int method_0() - { - return _struct660.Int0; - } - - public IntPtr method_1() - { - return _struct660.Intptr0; - } - - public bool method_2() - { - lock (_object0) - { - _autoResetEvent0.Reset(); - _bool0 = (Class162.waveOutWrite(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)) == Enum18.Const0); - } - return _bool0; - } - - public void method_3() - { - if (_bool0) - { - _bool0 = _autoResetEvent0.WaitOne(); - return; - } - Thread.Sleep(0); - } - - public void method_4() - { - _autoResetEvent0.Set(); - _bool0 = false; - } - } -} + public class Class165 : IDisposable + { + public Class165 Class1650; + + private readonly AutoResetEvent _autoResetEvent0 = new AutoResetEvent(false); + + private readonly IntPtr _intptr0; + + private Struct66 _struct660; + + private readonly byte[] _byte0; + + private GCHandle _gchandle0; + + private GCHandle _gchandle1; + + private bool _bool0; + + private readonly object _object0 = new object(); + + public static void smethod_0(IntPtr intptr1, Class162.Enum16 enum160, int int0, ref Struct66 struct661, + int int1) + { + if (enum160 == Class162.Enum16.Const1) + { + try + { + var @class = (Class165) ((GCHandle) struct661.Intptr1).Target; + @class.method_4(); + } + catch + { + } + } + } + + public Class165(IntPtr intptr1, int int0) + { + _intptr0 = intptr1; + _gchandle0 = GCHandle.Alloc(_struct660, GCHandleType.Pinned); + _struct660.Intptr1 = (IntPtr) GCHandle.Alloc(this); + _byte0 = new byte[int0]; + _gchandle1 = GCHandle.Alloc(_byte0, GCHandleType.Pinned); + _struct660.Intptr0 = _gchandle1.AddrOfPinnedObject(); + _struct660.Int0 = int0; + Exception4.smethod_1(Class162.waveOutPrepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)), + "waveOutPrepareHeader"); + } + + ~Class165() + { + Dispose(); + } + + public void Dispose() + { + if (_struct660.Intptr0 != IntPtr.Zero) + { + Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)); + _gchandle0.Free(); + _struct660.Intptr0 = IntPtr.Zero; + } + _autoResetEvent0.Close(); + if (_gchandle1.IsAllocated) + { + _gchandle1.Free(); + } + GC.SuppressFinalize(this); + } + + public int method_0() + { + return _struct660.Int0; + } + + public IntPtr method_1() + { + return _struct660.Intptr0; + } + + public bool method_2() + { + lock (_object0) + { + _autoResetEvent0.Reset(); + _bool0 = (Class162.waveOutWrite(_intptr0, ref _struct660, Marshal.SizeOf(_struct660)) == Enum18.Const0); + } + return _bool0; + } + + public void method_3() + { + if (_bool0) + { + _bool0 = _autoResetEvent0.WaitOne(); + return; + } + Thread.Sleep(0); + } + + public void method_4() + { + _autoResetEvent0.Set(); + _bool0 = false; + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Delegate2.cs b/GHNamespace4/Delegate2.cs index 2099ed0..0816019 100644 --- a/GHNamespace4/Delegate2.cs +++ b/GHNamespace4/Delegate2.cs @@ -2,5 +2,5 @@ namespace GHNamespace4 { - public delegate void Delegate2(IntPtr data, int size); -} + public delegate void Delegate2(IntPtr data, int size); +} \ No newline at end of file diff --git a/GHNamespace4/Delegate3.cs b/GHNamespace4/Delegate3.cs index 72e0711..c4cfdf2 100644 --- a/GHNamespace4/Delegate3.cs +++ b/GHNamespace4/Delegate3.cs @@ -2,5 +2,5 @@ namespace GHNamespace4 { - public delegate void Delegate3(AudioPlayer player, IntPtr data, int size, ref bool finished); -} + public delegate void Delegate3(AudioPlayer player, IntPtr data, int size, ref bool finished); +} \ No newline at end of file diff --git a/GHNamespace4/Enum14.cs b/GHNamespace4/Enum14.cs index e8d5d20..e6dbfa5 100644 --- a/GHNamespace4/Enum14.cs +++ b/GHNamespace4/Enum14.cs @@ -1,9 +1,9 @@ namespace GHNamespace4 { - public enum Enum14 - { - Const0 = 1, - Const1, - Const2 = 4 - } -} + public enum Enum14 + { + Const0 = 1, + Const1, + Const2 = 4 + } +} \ No newline at end of file diff --git a/GHNamespace4/Enum15.cs b/GHNamespace4/Enum15.cs index 0e63f99..bb00083 100644 --- a/GHNamespace4/Enum15.cs +++ b/GHNamespace4/Enum15.cs @@ -2,13 +2,13 @@ namespace GHNamespace4 { - [Flags] - public enum Enum15 - { - Flag0 = 4, - Flag1 = 1, - Flag2 = 8, - Flag3 = 16, - Flag4 = 2 - } -} + [Flags] + public enum Enum15 + { + Flag0 = 4, + Flag1 = 1, + Flag2 = 8, + Flag3 = 16, + Flag4 = 2 + } +} \ No newline at end of file diff --git a/GHNamespace4/Enum18.cs b/GHNamespace4/Enum18.cs index e7717a9..6c479d4 100644 --- a/GHNamespace4/Enum18.cs +++ b/GHNamespace4/Enum18.cs @@ -1,39 +1,39 @@ namespace GHNamespace4 { - public enum Enum18 - { - Const0, - Const1, - Const2, - Const3, - Const4, - Const5, - Const6, - Const7, - Const8, - Const9, - Const10, - Const11, - Const12, - Const13, - Const14, - Const15, - Const16, - Const17, - Const18, - Const19, - Const20, - Const21, - Const22 = 32, - Const23, - Const24, - Const25, - Const26 = 512, - Const27, - Const28, - Const29, - Const30 = 1024, - Const31, - Const32 - } -} + public enum Enum18 + { + Const0, + Const1, + Const2, + Const3, + Const4, + Const5, + Const6, + Const7, + Const8, + Const9, + Const10, + Const11, + Const12, + Const13, + Const14, + Const15, + Const16, + Const17, + Const18, + Const19, + Const20, + Const21, + Const22 = 32, + Const23, + Const24, + Const25, + Const26 = 512, + Const27, + Const28, + Const29, + Const30 = 1024, + Const31, + Const32 + } +} \ No newline at end of file diff --git a/GHNamespace4/MP3Output.cs b/GHNamespace4/MP3Output.cs index c96cb25..3b59c4a 100644 --- a/GHNamespace4/MP3Output.cs +++ b/GHNamespace4/MP3Output.cs @@ -9,248 +9,250 @@ namespace GHNamespace4 { - public class Mp3Output : IDisposable, IPlayableAudio - { - private AudioPlayer _class1590; + public class Mp3Output : IDisposable, IPlayableAudio + { + private AudioPlayer _class1590; - private readonly Class16 _class160; + private readonly Class16 _class160; - private GenericAudioStream _stream10; + private GenericAudioStream _stream10; - private readonly bool _bool0; + private readonly bool _bool0; - private byte[] _byte0; + private byte[] _byte0; - private AudioStatus _enum10; + private AudioStatus _enum10; - private float _volume = 1f; + private float _volume = 1f; - private int _int0; + private int _int0; - public Mp3Output(GenericAudioStream stream11) : this(stream11, false) - { - } + public Mp3Output(GenericAudioStream stream11) : this(stream11, false) + { + } - public Mp3Output(GenericAudioStream stream11, bool bool1) - { - if (stream11.Length <= 0L) - { - throw new Exception("WinMM2Player: Invalid Stream."); - } - _class160 = stream11.vmethod_1(); - if (_class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm && _class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.IeeeFloat) - { - throw new Exception("WinMM2Player: Only PCM is supported."); - } - _stream10 = stream11; - _bool0 = bool1; - SetStartingTimeBasedOnSomeValue(0); - _enum10 = AudioStatus.ShouldStopAudio; - } + public Mp3Output(GenericAudioStream stream11, bool bool1) + { + if (stream11.Length <= 0L) + { + throw new Exception("WinMM2Player: Invalid Stream."); + } + _class160 = stream11.vmethod_1(); + if (_class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm && + _class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.IeeeFloat) + { + throw new Exception("WinMM2Player: Only PCM is supported."); + } + _stream10 = stream11; + _bool0 = bool1; + SetStartingTimeBasedOnSomeValue(0); + _enum10 = AudioStatus.ShouldStopAudio; + } - public TimeSpan AudioLength() - { - return TimeSpan.FromSeconds(vmethod_0() / (double)(_class160.method_3() * _class160.method_1())); - } + public TimeSpan AudioLength() + { + return TimeSpan.FromSeconds(vmethod_0() / (double) (_class160.method_3() * _class160.method_1())); + } - public void SetStartingTime(TimeSpan timeSpan0) - { - SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_class160.method_3() * _class160.method_1() * timeSpan0.TotalSeconds)); - } + public void SetStartingTime(TimeSpan timeSpan0) + { + SetStartingTimeBasedOnSomeValue( + Convert.ToInt32(_class160.method_3() * _class160.method_1() * timeSpan0.TotalSeconds)); + } - public int vmethod_0() - { - if (_enum10 != AudioStatus.ShouldStopAudio) - { - return _int0 + _class1590.method_0(); - } - return (int)_stream10.Position; - } + public int vmethod_0() + { + if (_enum10 != AudioStatus.ShouldStopAudio) + { + return _int0 + _class1590.method_0(); + } + return (int) _stream10.Position; + } - public void SetStartingTimeBasedOnSomeValue(int int1) - { - var @enum = _enum10; - if (@enum != AudioStatus.ShouldStopAudio) - { - StopPlaying(); - } - Stream arg210 = _stream10; - _int0 = int1; - arg210.Position = int1; - if (@enum == AudioStatus.ShouldStartAudio) - { - DifferentStartPlaying(); - } - } + public void SetStartingTimeBasedOnSomeValue(int int1) + { + var @enum = _enum10; + if (@enum != AudioStatus.ShouldStopAudio) + { + StopPlaying(); + } + Stream arg210 = _stream10; + _int0 = int1; + arg210.Position = int1; + if (@enum == AudioStatus.ShouldStartAudio) + { + DifferentStartPlaying(); + } + } - public float vmethod_1() - { - if (_class1590 == null) - { - return _volume; - } - return _class1590.method_1(); - } + public float vmethod_1() + { + if (_class1590 == null) + { + return _volume; + } + return _class1590.method_1(); + } - public void SetVolume(float float1) - { - _volume = float1; - if (_class1590 != null) - { - _class1590.SetVolume(_volume); - } - } + public void SetVolume(float float1) + { + _volume = float1; + if (_class1590 != null) + { + _class1590.SetVolume(_volume); + } + } - public AudioStatus GetStatus() - { - return _enum10; - } + public AudioStatus GetStatus() + { + return _enum10; + } - public WaveFormat GetWaveFormat() - { - return _class160.WaveFormat0; - } + public WaveFormat GetWaveFormat() + { + return _class160.WaveFormat0; + } - public void DifferentStartPlaying() - { + public void DifferentStartPlaying() + { WaitCallback waitCallback = null; //Error Case (Will never get called) if (_enum10 == AudioStatus.ShouldStartAudio) - { - return; - } + { + return; + } //If song is already playing if (_class1590 != null && _enum10 == AudioStatus.IsCurrentlyPlayingAudio && !_class1590.method_5()) - { + { _enum10 = AudioStatus.ShouldStartAudio; - _class1590.SetVolume(0f); - _class1590.method_3(); + _class1590.SetVolume(0f); + _class1590.method_3(); if (waitCallback == null) - { - waitCallback = method_2; - } - ThreadPool.QueueUserWorkItem(waitCallback); - return; - } + { + waitCallback = method_2; + } + ThreadPool.QueueUserWorkItem(waitCallback); + return; + } StopPlaying(); - _enum10 = AudioStatus.ShouldStartAudio; + _enum10 = AudioStatus.ShouldStartAudio; _class1590 = new AudioPlayer(-1, _class160.WaveFormat0, 200, _volume, _bool0, method_0); } - public void StartPlaying() - { - if (_class1590 != null) - { - if (_enum10 == AudioStatus.ShouldStartAudio) - { - _enum10 = AudioStatus.IsCurrentlyPlayingAudio; + public void StartPlaying() + { + if (_class1590 != null) + { + if (_enum10 == AudioStatus.ShouldStartAudio) + { + _enum10 = AudioStatus.IsCurrentlyPlayingAudio; _class1590.method_4(); - } - } - } + } + } + } - public void StopPlaying() - { - if (_class1590 != null && _enum10 != AudioStatus.ShouldStopAudio) - { - _enum10 = AudioStatus.ShouldStopAudio; - try - { - _class1590.Dispose(); - } - finally - { - _class1590 = null; - } - } - } + public void StopPlaying() + { + if (_class1590 != null && _enum10 != AudioStatus.ShouldStopAudio) + { + _enum10 = AudioStatus.ShouldStopAudio; + try + { + _class1590.Dispose(); + } + finally + { + _class1590 = null; + } + } + } - private void method_0(AudioPlayer class1591, IntPtr intptr0, int int1, ref bool bool1) - { - WaitCallback waitCallback = null; - if (_byte0 == null || _byte0.Length < int1) - { - _byte0 = new byte[int1]; - } - if (_stream10 != null && class1591 == _class1590) - { + private void method_0(AudioPlayer class1591, IntPtr intptr0, int int1, ref bool bool1) + { + WaitCallback waitCallback = null; + if (_byte0 == null || _byte0.Length < int1) + { + _byte0 = new byte[int1]; + } + if (_stream10 != null && class1591 == _class1590) + { lock (_stream10) - { - var num = _stream10.vmethod_3(intptr0, int1); - if (num < int1) - { + { + var num = _stream10.vmethod_3(intptr0, int1); + if (num < int1) + { bool1 = true; - if (waitCallback == null) - { - waitCallback = method_3; - } - ThreadPool.QueueUserWorkItem(waitCallback); - } - return; - } - } - Marshal.Copy(_byte0, 0, intptr0, int1); - } + if (waitCallback == null) + { + waitCallback = method_3; + } + ThreadPool.QueueUserWorkItem(waitCallback); + } + return; + } + } + Marshal.Copy(_byte0, 0, intptr0, int1); + } - public void method_1(bool bool1) - { - StopPlaying(); - if (bool1 && _stream10 != null) - { - try - { - _stream10.Dispose(); - } - finally - { - _stream10 = null; - } - } - } + public void method_1(bool bool1) + { + StopPlaying(); + if (bool1 && _stream10 != null) + { + try + { + _stream10.Dispose(); + } + finally + { + _stream10 = null; + } + } + } - public void Dispose() - { - method_1(true); - GC.SuppressFinalize(this); - } + public void Dispose() + { + method_1(true); + GC.SuppressFinalize(this); + } - ~Mp3Output() - { - method_1(false); - } + ~Mp3Output() + { + method_1(false); + } - [CompilerGenerated] - private void method_2(object object0) - { - var num = vmethod_1(); + [CompilerGenerated] + private void method_2(object object0) + { + var num = vmethod_1(); while (num < _volume) - { + { if (_enum10 != AudioStatus.ShouldStartAudio) - { - break; - } - _class1590.SetVolume(num); - num += 0.1f; - Thread.Sleep(50); - } + { + break; + } + _class1590.SetVolume(num); + num += 0.1f; + Thread.Sleep(50); + } if (_enum10 != AudioStatus.ShouldStartAudio) - { - return; - } - _class1590.SetVolume(_volume); - } + { + return; + } + _class1590.SetVolume(_volume); + } - [CompilerGenerated] - private void method_3(object object0) - { - if (_class1590 != null) - { - while (!_class1590.method_5()) - { - } - } - StopPlaying(); - SetStartingTimeBasedOnSomeValue(0); - } - } -} + [CompilerGenerated] + private void method_3(object object0) + { + if (_class1590 != null) + { + while (!_class1590.method_5()) + { + } + } + StopPlaying(); + SetStartingTimeBasedOnSomeValue(0); + } + } +} \ No newline at end of file diff --git a/GHNamespace4/Struct66.cs b/GHNamespace4/Struct66.cs index 695f983..be894e1 100644 --- a/GHNamespace4/Struct66.cs +++ b/GHNamespace4/Struct66.cs @@ -2,22 +2,22 @@ namespace GHNamespace4 { - public struct Struct66 - { - public IntPtr Intptr0; + public struct Struct66 + { + public IntPtr Intptr0; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public IntPtr Intptr1; + public IntPtr Intptr1; - public Enum15 Enum150; + public Enum15 Enum150; - public int Int2; + public int Int2; - public IntPtr Intptr2; + public IntPtr Intptr2; - public int Int3; - } -} + public int Int3; + } +} \ No newline at end of file diff --git a/GHNamespace4/Struct67.cs b/GHNamespace4/Struct67.cs index 89f3651..f5f2d09 100644 --- a/GHNamespace4/Struct67.cs +++ b/GHNamespace4/Struct67.cs @@ -2,49 +2,35 @@ namespace GHNamespace4 { - [StructLayout(LayoutKind.Explicit)] - public struct Struct67 - { - [FieldOffset(0)] - public Enum14 enum14_0; + [StructLayout(LayoutKind.Explicit)] + public struct Struct67 + { + [FieldOffset(0)] public Enum14 enum14_0; - [FieldOffset(4)] - public int int_0; + [FieldOffset(4)] public int int_0; - [FieldOffset(4)] - public int int_1; + [FieldOffset(4)] public int int_1; - [FieldOffset(4)] - public int int_2; + [FieldOffset(4)] public int int_2; - [FieldOffset(4)] - public int int_3; + [FieldOffset(4)] public int int_3; - [FieldOffset(4)] - public byte byte_0; + [FieldOffset(4)] public byte byte_0; - [FieldOffset(5)] - public byte byte_1; + [FieldOffset(5)] public byte byte_1; - [FieldOffset(6)] - public byte byte_2; + [FieldOffset(6)] public byte byte_2; - [FieldOffset(7)] - public byte byte_3; + [FieldOffset(7)] public byte byte_3; - [FieldOffset(8)] - public byte byte_4; + [FieldOffset(8)] public byte byte_4; - [FieldOffset(9)] - public byte byte_5; + [FieldOffset(9)] public byte byte_5; - [FieldOffset(10)] - public byte byte_6; + [FieldOffset(10)] public byte byte_6; - [FieldOffset(11)] - public byte byte_7; + [FieldOffset(11)] public byte byte_7; - [FieldOffset(4)] - public int int_4; - } -} + [FieldOffset(4)] public int int_4; + } +} \ No newline at end of file diff --git a/GHNamespace4/WaveOutput.cs b/GHNamespace4/WaveOutput.cs index 6c0a2d0..c44bd46 100644 --- a/GHNamespace4/WaveOutput.cs +++ b/GHNamespace4/WaveOutput.cs @@ -12,577 +12,579 @@ namespace GHNamespace4 { - public class WaveOutput : IPlayableAudio - { - private class Class164 - { - private readonly Enum19 _enum190; + public class WaveOutput : IPlayableAudio + { + private class Class164 + { + private readonly Enum19 _enum190; - private readonly object _object0; + private readonly object _object0; - public Class164(Enum19 enum191, object object1) - { - _enum190 = enum191; - _object0 = object1; - } + public Class164(Enum19 enum191, object object1) + { + _enum190 = enum191; + _object0 = object1; + } - public Enum19 method_0() - { - return _enum190; - } - - public object method_1() - { - return _object0; - } - } - - private enum Enum19 - { - Const0, - Const1, - Const2, - Const3, - Const4, - Const5, - Const6, - Const7 - } - - private IntPtr _intptr0; - - private Class158[] _class1580; - - private readonly Queue _queue0; - - private GenericAudioStream _stream10; - - private int _int0; - - private readonly double _double0; - - private AudioStatus _enum10; - - private readonly Class162.Delegate4 _delegate40; - - private readonly int _int1; - - private readonly int _int2; - - private float _float0 = 1f; - - private bool _bool0; - - private readonly Thread _thread0; - - private readonly Queue _queue1; - - private readonly AutoResetEvent _autoResetEvent0; - - private readonly object _object0; - - private bool _bool1; - - private readonly Stopwatch _stopwatch0 = new Stopwatch(); - - private int _int3; - - private EventHandler _eventHandler0; - - public WaveOutput(GenericAudioStream stream11) : this(stream11, -1, 300) - { - } - - public WaveOutput(GenericAudioStream stream11, int int4, int int5) - { - _stream10 = stream11; - _int1 = int4; - _int2 = int5; - _double0 = stream11.vmethod_0().int_0 * (double)stream11.vmethod_0().short_1 / 1000.0; - _delegate40 = method_2; - _queue1 = new Queue(); - _queue0 = new Queue(5); - _autoResetEvent0 = new AutoResetEvent(false); - _object0 = new object(); - _thread0 = new Thread(method_1); - _thread0.Start(); - _enum10 = AudioStatus.ShouldStopAudio; - method_0(stream11); - } - - public void method_0(GenericAudioStream stream11) - { - if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) - { - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const0, _stream10)); - _autoResetEvent0.Set(); - } - return; - } - _stream10 = stream11; - _int0 = stream11.vmethod_0().method_0(_int2 / 5); - Exception4.smethod_1(Class162.waveOutOpen(out _intptr0, _int1, _stream10.vmethod_0(), _delegate40, 0, Class162.Enum17.Const3), "waveOutOpen"); - _stream10.Position = vmethod_0(); - _class1580 = new Class158[5]; - for (var i = 0; i < 5; i++) - { - _class1580[i] = new Class158(_intptr0, _int0, _stream10, _object0); - } - _bool0 = false; - } - - private void method_1() - { - while (true) - { - _autoResetEvent0.WaitOne(); - var flag = true; - while (flag) - { - Class164 @class = null; - lock (_queue1) - { - if (_queue1.Count > 0) - { - @class = _queue1.Dequeue(); - } - } - if (@class != null) - { - try - { - switch (@class.method_0()) - { - case Enum19.Const0: - method_0((GenericAudioStream)@class.method_1()); - break; - case Enum19.Const1: - StopPlaying(); - break; - case Enum19.Const2: - method_3((Class158)@class.method_1()); - break; - case Enum19.Const3: - method_5(); - break; - case Enum19.Const4: - method_6(); - break; - case Enum19.Const5: - method_9((int)@class.method_1()); - break; - case Enum19.Const6: - method_7(); - return; - case Enum19.Const7: - method_8((int)@class.method_1()); - break; - } - continue; - } - catch (Exception4 exception) - { - exception.ToString(); - if (@class.method_0() == Enum19.Const6) - { - return; - } - if (exception.method_0() == Enum18.Const23) - { - method_7(); - GC.Collect(); - method_0(_stream10); - method_5(); - } - continue; - } - } - flag = false; - } - } - } - - private void method_2(IntPtr intptr1, Class162.Enum16 enum160, int int4, ref Struct66 struct660, int int5) - { - if (enum160 == Class162.Enum16.Const1) - { - var object_ = (Class158)((GCHandle)struct660.Intptr1).Target; - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const2, object_)); - _autoResetEvent0.Set(); - } - } - } - - private void method_3(Class158 class1581) - { - if (_enum10 == AudioStatus.ShouldStartAudio && !class1581.method_1()) - { - StopPlaying(); - method_4(); - return; - } - if (class1581.method_2()) - { - _int3 += class1581.method_3().method_3(); - _stopwatch0.Reset(); - _stopwatch0.Start(); - if (_queue0.Count == 5) - { - _queue0.Dequeue(); - } - _queue0.Enqueue(class1581); - } - } - - private void method_4() - { - SetStartingTimeBasedOnSomeValue(0); - _stopwatch0.Reset(); - if (_eventHandler0 != null) - { - _eventHandler0(this, EventArgs.Empty); - } - } - - public void DifferentStartPlaying() - { - if (_enum10 != AudioStatus.ShouldStartAudio) - { - _enum10 = AudioStatus.ShouldStartAudio; - if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) - { - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const3, null)); - _autoResetEvent0.Set(); - } - return; - } - method_5(); - } - } - - private void method_5() - { - if (!_bool0) - { - _enum10 = AudioStatus.ShouldStartAudio; - for (var i = 0; i < 5; i++) - { - _class1580[i].method_1(); - } - _bool0 = true; - } - method_6(); - } - - public void StartPlaying() - { - if (_enum10 != AudioStatus.ShouldStartAudio) - { - return; - } - var num = vmethod_0(); - StopPlaying(); - _stream10.Position = _int3 = num; - _enum10 = AudioStatus.IsCurrentlyPlayingAudio; - } - - public void method_6() - { - if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) - { - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const4, null)); - _autoResetEvent0.Set(); - } - return; - } - method_9(0); - Enum18 @enum; - lock (_object0) - { - @enum = Class162.waveOutRestart(_intptr0); - } - if (@enum != Enum18.Const0) - { - throw new Exception4(@enum, "waveOutRestart"); - } - if (!_stopwatch0.IsRunning) - { - _stopwatch0.Start(); - } - if (!_bool1) - { - ThreadPool.QueueUserWorkItem(method_11); - } - } - - public void method_7() - { - if (_intptr0 != IntPtr.Zero) - { - StopPlaying(); - Class162.waveOutClose(_intptr0); - _intptr0 = IntPtr.Zero; - } - if (_class1580 != null) - { - for (var i = 0; i < 5; i++) - { - _class1580[i].Dispose(); - } - _class1580 = null; - } - } - - public void StopPlaying() - { - if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) - { - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const1, null)); - _autoResetEvent0.Set(); - } - return; - } - _enum10 = AudioStatus.ShouldStopAudio; - _bool0 = false; - Enum18 @enum; - lock (_object0) - { - @enum = Class162.waveOutReset(_intptr0); - } - if (@enum != Enum18.Const0) - { - throw new Exception4(@enum, "waveOutReset"); - } - _stopwatch0.Reset(); - } - - public TimeSpan AudioLength() - { - return TimeSpan.FromMilliseconds(_int3 / _double0 + _stopwatch0.ElapsedMilliseconds); - } - - public void SetStartingTime(TimeSpan timeSpan0) - { - SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); - } - - public int vmethod_0() - { - if (_enum10 != AudioStatus.ShouldStopAudio) - { - return _int3 + (int)(_double0 * _stopwatch0.ElapsedMilliseconds); - } - return _int3; - } - - public void SetStartingTimeBasedOnSomeValue(int int4) - { - _int3 = int4; - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const7, int4)); - _autoResetEvent0.Set(); - } - } - - private void method_8(int int4) - { - WaitCallback waitCallback = null; - var @enum = _enum10; - if (@enum == AudioStatus.IsCurrentlyPlayingAudio) - { - StopPlaying(); - } - lock (_object0) - { - Stream arg350 = _stream10; - _int3 = int4; - arg350.Position = int4; - if (@enum == AudioStatus.ShouldStartAudio) - { - var count = _queue0.Count; - var num = 1f / (_int0 * count / (float)GetWaveFormat().short_1); - var num2 = 0f; - var num3 = 1f; - if (GetWaveFormat().waveFormatTag_0 == WaveFormatTag.IeeeFloat) - { - var array = new float[_int0 >> 2]; - using (var enumerator = _queue0.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - var current = enumerator.Current; - var array2 = current.method_3().method_1(); - var num4 = _stream10.vmethod_4(array, 0, array.Length); - if (num4 == 0) - { - break; - } - var i = 0; - var num5 = 0; - while (i < num4) - { - array2[i] = num3 * array2[i] + num2 * array[i]; - num5++; - if (num5 == GetWaveFormat().short_0) - { - num2 += num; - num3 -= num; - num5 = 0; - } - i++; - } - Array.Clear(array2, num4, current.method_3().method_5() - num4); - current.method_3().method_6(num4); - } - goto IL_27D; - } - } - if (GetWaveFormat().waveFormatTag_0 == WaveFormatTag.Pcm) - { - using (var @class = new Class19(_int0)) - { - foreach (var current2 in _queue0) - { - var array3 = current2.method_3().method_2(); - var array4 = Class19.smethod_0(@class); - var num6 = _stream10.vmethod_3(Class19.smethod_1(@class), _int0) >> 1; - if (num6 == 0) - { - break; - } - var j = 0; - var num7 = 0; - while (j < num6) - { - array3[j] = (short)(num3 * array3[j] + num2 * array4[j]); - num7++; - if (num7 == GetWaveFormat().short_0) - { - num2 += num; - num3 -= num; - num7 = 0; - } - j++; - } - Array.Clear(array3, num6, current2.method_3().method_7() - num6); - current2.method_3().method_8(num6); - } - } - } - IL_27D: - GC.Collect(); - _stopwatch0.Reset(); - method_9(0); - if (!_bool1) - { - if (waitCallback == null) - { - waitCallback = method_12; - } - ThreadPool.QueueUserWorkItem(waitCallback); - } - } - } - } - - public AudioStatus GetStatus() - { - return _enum10; - } - - public WaveFormat GetWaveFormat() - { - return _stream10.vmethod_0(); - } - - public void SetVolume(float float1) - { - _float0 = float1; - var num = _float0; - var num2 = _float0; - var num3 = (int)(num * 65535f) + ((int)(num2 * 65535f) << 16); - lock (_queue1) - { - _queue1.Enqueue(new Class164(Enum19.Const5, num3)); - _autoResetEvent0.Set(); - } - } - - private void method_9(int int4) - { - lock (_object0) - { - Exception4.smethod_1(Class162.waveOutSetVolume(_intptr0, int4), "waveOutSetVolume"); - } - } - - public void Dispose() - { - method_10(true); - GC.SuppressFinalize(this); - } - - public void method_10(bool bool2) - { - lock (_queue1) - { - _queue1.Clear(); - _queue1.Enqueue(new Class164(Enum19.Const6, null)); - _autoResetEvent0.Set(); - } - _thread0.Join(); - if (bool2) - { - _stream10.Dispose(); - } - } - - ~WaveOutput() - { - method_10(false); - } - - [CompilerGenerated] - private void method_11(object object1) - { - _bool1 = true; - var num = 0f; - var num2 = _float0; - while (num < num2) - { - SetVolume(num); - num += 0.1f; - Thread.Sleep(50); - } - SetVolume(num2); - _bool1 = false; - } - - [CompilerGenerated] - private void method_12(object object1) - { - _bool1 = true; - var num = 0f; - var num2 = _float0; - while (num < num2) - { - SetVolume(num); - num += 0.1f; - Thread.Sleep(50); - } - SetVolume(num2); - _bool1 = false; - } - } -} + public Enum19 method_0() + { + return _enum190; + } + + public object method_1() + { + return _object0; + } + } + + private enum Enum19 + { + Const0, + Const1, + Const2, + Const3, + Const4, + Const5, + Const6, + Const7 + } + + private IntPtr _intptr0; + + private Class158[] _class1580; + + private readonly Queue _queue0; + + private GenericAudioStream _stream10; + + private int _int0; + + private readonly double _double0; + + private AudioStatus _enum10; + + private readonly Class162.Delegate4 _delegate40; + + private readonly int _int1; + + private readonly int _int2; + + private float _float0 = 1f; + + private bool _bool0; + + private readonly Thread _thread0; + + private readonly Queue _queue1; + + private readonly AutoResetEvent _autoResetEvent0; + + private readonly object _object0; + + private bool _bool1; + + private readonly Stopwatch _stopwatch0 = new Stopwatch(); + + private int _int3; + + private EventHandler _eventHandler0; + + public WaveOutput(GenericAudioStream stream11) : this(stream11, -1, 300) + { + } + + public WaveOutput(GenericAudioStream stream11, int int4, int int5) + { + _stream10 = stream11; + _int1 = int4; + _int2 = int5; + _double0 = stream11.vmethod_0().int_0 * (double) stream11.vmethod_0().short_1 / 1000.0; + _delegate40 = method_2; + _queue1 = new Queue(); + _queue0 = new Queue(5); + _autoResetEvent0 = new AutoResetEvent(false); + _object0 = new object(); + _thread0 = new Thread(method_1); + _thread0.Start(); + _enum10 = AudioStatus.ShouldStopAudio; + method_0(stream11); + } + + public void method_0(GenericAudioStream stream11) + { + if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) + { + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const0, _stream10)); + _autoResetEvent0.Set(); + } + return; + } + _stream10 = stream11; + _int0 = stream11.vmethod_0().method_0(_int2 / 5); + Exception4.smethod_1( + Class162.waveOutOpen(out _intptr0, _int1, _stream10.vmethod_0(), _delegate40, 0, + Class162.Enum17.Const3), "waveOutOpen"); + _stream10.Position = vmethod_0(); + _class1580 = new Class158[5]; + for (var i = 0; i < 5; i++) + { + _class1580[i] = new Class158(_intptr0, _int0, _stream10, _object0); + } + _bool0 = false; + } + + private void method_1() + { + while (true) + { + _autoResetEvent0.WaitOne(); + var flag = true; + while (flag) + { + Class164 @class = null; + lock (_queue1) + { + if (_queue1.Count > 0) + { + @class = _queue1.Dequeue(); + } + } + if (@class != null) + { + try + { + switch (@class.method_0()) + { + case Enum19.Const0: + method_0((GenericAudioStream) @class.method_1()); + break; + case Enum19.Const1: + StopPlaying(); + break; + case Enum19.Const2: + method_3((Class158) @class.method_1()); + break; + case Enum19.Const3: + method_5(); + break; + case Enum19.Const4: + method_6(); + break; + case Enum19.Const5: + method_9((int) @class.method_1()); + break; + case Enum19.Const6: + method_7(); + return; + case Enum19.Const7: + method_8((int) @class.method_1()); + break; + } + continue; + } + catch (Exception4 exception) + { + exception.ToString(); + if (@class.method_0() == Enum19.Const6) + { + return; + } + if (exception.method_0() == Enum18.Const23) + { + method_7(); + GC.Collect(); + method_0(_stream10); + method_5(); + } + continue; + } + } + flag = false; + } + } + } + + private void method_2(IntPtr intptr1, Class162.Enum16 enum160, int int4, ref Struct66 struct660, int int5) + { + if (enum160 == Class162.Enum16.Const1) + { + var object_ = (Class158) ((GCHandle) struct660.Intptr1).Target; + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const2, object_)); + _autoResetEvent0.Set(); + } + } + } + + private void method_3(Class158 class1581) + { + if (_enum10 == AudioStatus.ShouldStartAudio && !class1581.method_1()) + { + StopPlaying(); + method_4(); + return; + } + if (class1581.method_2()) + { + _int3 += class1581.method_3().method_3(); + _stopwatch0.Reset(); + _stopwatch0.Start(); + if (_queue0.Count == 5) + { + _queue0.Dequeue(); + } + _queue0.Enqueue(class1581); + } + } + + private void method_4() + { + SetStartingTimeBasedOnSomeValue(0); + _stopwatch0.Reset(); + if (_eventHandler0 != null) + { + _eventHandler0(this, EventArgs.Empty); + } + } + + public void DifferentStartPlaying() + { + if (_enum10 != AudioStatus.ShouldStartAudio) + { + _enum10 = AudioStatus.ShouldStartAudio; + if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) + { + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const3, null)); + _autoResetEvent0.Set(); + } + return; + } + method_5(); + } + } + + private void method_5() + { + if (!_bool0) + { + _enum10 = AudioStatus.ShouldStartAudio; + for (var i = 0; i < 5; i++) + { + _class1580[i].method_1(); + } + _bool0 = true; + } + method_6(); + } + + public void StartPlaying() + { + if (_enum10 != AudioStatus.ShouldStartAudio) + { + return; + } + var num = vmethod_0(); + StopPlaying(); + _stream10.Position = _int3 = num; + _enum10 = AudioStatus.IsCurrentlyPlayingAudio; + } + + public void method_6() + { + if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) + { + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const4, null)); + _autoResetEvent0.Set(); + } + return; + } + method_9(0); + Enum18 @enum; + lock (_object0) + { + @enum = Class162.waveOutRestart(_intptr0); + } + if (@enum != Enum18.Const0) + { + throw new Exception4(@enum, "waveOutRestart"); + } + if (!_stopwatch0.IsRunning) + { + _stopwatch0.Start(); + } + if (!_bool1) + { + ThreadPool.QueueUserWorkItem(method_11); + } + } + + public void method_7() + { + if (_intptr0 != IntPtr.Zero) + { + StopPlaying(); + Class162.waveOutClose(_intptr0); + _intptr0 = IntPtr.Zero; + } + if (_class1580 != null) + { + for (var i = 0; i < 5; i++) + { + _class1580[i].Dispose(); + } + _class1580 = null; + } + } + + public void StopPlaying() + { + if (Thread.CurrentThread.ManagedThreadId != _thread0.ManagedThreadId) + { + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const1, null)); + _autoResetEvent0.Set(); + } + return; + } + _enum10 = AudioStatus.ShouldStopAudio; + _bool0 = false; + Enum18 @enum; + lock (_object0) + { + @enum = Class162.waveOutReset(_intptr0); + } + if (@enum != Enum18.Const0) + { + throw new Exception4(@enum, "waveOutReset"); + } + _stopwatch0.Reset(); + } + + public TimeSpan AudioLength() + { + return TimeSpan.FromMilliseconds(_int3 / _double0 + _stopwatch0.ElapsedMilliseconds); + } + + public void SetStartingTime(TimeSpan timeSpan0) + { + SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); + } + + public int vmethod_0() + { + if (_enum10 != AudioStatus.ShouldStopAudio) + { + return _int3 + (int) (_double0 * _stopwatch0.ElapsedMilliseconds); + } + return _int3; + } + + public void SetStartingTimeBasedOnSomeValue(int int4) + { + _int3 = int4; + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const7, int4)); + _autoResetEvent0.Set(); + } + } + + private void method_8(int int4) + { + WaitCallback waitCallback = null; + var @enum = _enum10; + if (@enum == AudioStatus.IsCurrentlyPlayingAudio) + { + StopPlaying(); + } + lock (_object0) + { + Stream arg350 = _stream10; + _int3 = int4; + arg350.Position = int4; + if (@enum == AudioStatus.ShouldStartAudio) + { + var count = _queue0.Count; + var num = 1f / (_int0 * count / (float) GetWaveFormat().short_1); + var num2 = 0f; + var num3 = 1f; + if (GetWaveFormat().waveFormatTag_0 == WaveFormatTag.IeeeFloat) + { + var array = new float[_int0 >> 2]; + using (var enumerator = _queue0.GetEnumerator()) + { + while (enumerator.MoveNext()) + { + var current = enumerator.Current; + var array2 = current.method_3().method_1(); + var num4 = _stream10.vmethod_4(array, 0, array.Length); + if (num4 == 0) + { + break; + } + var i = 0; + var num5 = 0; + while (i < num4) + { + array2[i] = num3 * array2[i] + num2 * array[i]; + num5++; + if (num5 == GetWaveFormat().short_0) + { + num2 += num; + num3 -= num; + num5 = 0; + } + i++; + } + Array.Clear(array2, num4, current.method_3().method_5() - num4); + current.method_3().method_6(num4); + } + goto IL_27D; + } + } + if (GetWaveFormat().waveFormatTag_0 == WaveFormatTag.Pcm) + { + using (var @class = new Class19(_int0)) + { + foreach (var current2 in _queue0) + { + var array3 = current2.method_3().method_2(); + var array4 = Class19.smethod_0(@class); + var num6 = _stream10.vmethod_3(Class19.smethod_1(@class), _int0) >> 1; + if (num6 == 0) + { + break; + } + var j = 0; + var num7 = 0; + while (j < num6) + { + array3[j] = (short) (num3 * array3[j] + num2 * array4[j]); + num7++; + if (num7 == GetWaveFormat().short_0) + { + num2 += num; + num3 -= num; + num7 = 0; + } + j++; + } + Array.Clear(array3, num6, current2.method_3().method_7() - num6); + current2.method_3().method_8(num6); + } + } + } + IL_27D: + GC.Collect(); + _stopwatch0.Reset(); + method_9(0); + if (!_bool1) + { + if (waitCallback == null) + { + waitCallback = method_12; + } + ThreadPool.QueueUserWorkItem(waitCallback); + } + } + } + } + + public AudioStatus GetStatus() + { + return _enum10; + } + + public WaveFormat GetWaveFormat() + { + return _stream10.vmethod_0(); + } + + public void SetVolume(float float1) + { + _float0 = float1; + var num = _float0; + var num2 = _float0; + var num3 = (int) (num * 65535f) + ((int) (num2 * 65535f) << 16); + lock (_queue1) + { + _queue1.Enqueue(new Class164(Enum19.Const5, num3)); + _autoResetEvent0.Set(); + } + } + + private void method_9(int int4) + { + lock (_object0) + { + Exception4.smethod_1(Class162.waveOutSetVolume(_intptr0, int4), "waveOutSetVolume"); + } + } + + public void Dispose() + { + method_10(true); + GC.SuppressFinalize(this); + } + + public void method_10(bool bool2) + { + lock (_queue1) + { + _queue1.Clear(); + _queue1.Enqueue(new Class164(Enum19.Const6, null)); + _autoResetEvent0.Set(); + } + _thread0.Join(); + if (bool2) + { + _stream10.Dispose(); + } + } + + ~WaveOutput() + { + method_10(false); + } + + [CompilerGenerated] + private void method_11(object object1) + { + _bool1 = true; + var num = 0f; + var num2 = _float0; + while (num < num2) + { + SetVolume(num); + num += 0.1f; + Thread.Sleep(50); + } + SetVolume(num2); + _bool1 = false; + } + + [CompilerGenerated] + private void method_12(object object1) + { + _bool1 = true; + var num = 0f; + var num2 = _float0; + while (num < num2) + { + SetVolume(num); + num += 0.1f; + Thread.Sleep(50); + } + SetVolume(num2); + _bool1 = false; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class173.cs b/GHNamespace5/Class173.cs index bea6126..340c14d 100644 --- a/GHNamespace5/Class173.cs +++ b/GHNamespace5/Class173.cs @@ -4,159 +4,162 @@ namespace GHNamespace5 { - public class Class173 : Class172 - { - public enum Enum26 - { - Const0 = 1, - Const1, - Const2 - } + public class Class173 : Class172 + { + public enum Enum26 + { + Const0 = 1, + Const1, + Const2 + } - public enum Enum27 - { - Const0 = -2, - Const1 = 1, - Const2, - Const3 - } + public enum Enum27 + { + Const0 = -2, + Const1 = 1, + Const2, + Const3 + } - private readonly Enum26 _enum260; + private readonly Enum26 _enum260; - private readonly Enum27 _enum270; + private readonly Enum27 _enum270; - private readonly bool _bool0; + private readonly bool _bool0; - private readonly float _float0; + private readonly float _float0; - private readonly float _float1; + private readonly float _float1; - private readonly Struct11[] _struct110; + private readonly Struct11[] _struct110; - public Class173(Enum26 enum261, Enum27 enum271, float float2, bool bool1, Struct11[] struct111) - { - _enum260 = enum261; - _enum270 = enum271; - _float0 = float2; - _float1 = 1f - float2; - _bool0 = bool1; - _struct110 = struct111; - } + public Class173(Enum26 enum261, Enum27 enum271, float float2, bool bool1, Struct11[] struct111) + { + _enum260 = enum261; + _enum270 = enum271; + _float0 = float2; + _float1 = 1f - float2; + _bool0 = bool1; + _struct110 = struct111; + } - public Class173(Enum26 enum261, Struct11[] struct111) : this(enum261, Enum27.Const1, 0f, false, struct111) - { - } + public Class173(Enum26 enum261, Struct11[] struct111) : this(enum261, Enum27.Const1, 0f, false, struct111) + { + } - private float method_0(float float2) - { - switch (_enum270) - { - case Enum27.Const0: - return (float)Math.Sqrt(float2); - case Enum27.Const1: - return float2; - case Enum27.Const2: - return float2 * float2; - case Enum27.Const3: - return float2 * float2 * float2; - } - return float2; - } + private float method_0(float float2) + { + switch (_enum270) + { + case Enum27.Const0: + return (float) Math.Sqrt(float2); + case Enum27.Const1: + return float2; + case Enum27.Const2: + return float2 * float2; + case Enum27.Const3: + return float2 * float2 * float2; + } + return float2; + } - public override void vmethod_0(Class13 class130) - { - var @struct = new Struct11(class130.Int0 + class130.method_0(), class130.Int0 + class130.method_0() + class130.method_2()); - if (_struct110.Length != 0) - { - var array = _struct110; - for (var i = 0; i < array.Length; i++) - { - var struct2 = array[i]; - var struct3 = struct2.method_0(@struct); - if (!struct3.method_1()) - { - method_1(ref class130.Float0, struct3.method_2() - class130.Int0, struct3.method_3(), struct3.method_2() - struct2.method_2(), struct2.method_3()); - } - } - return; - } - method_1(ref class130.Float0, class130.method_0(), class130.method_2(), 0, class130.method_2()); - } + public override void vmethod_0(Class13 class130) + { + var @struct = new Struct11(class130.Int0 + class130.method_0(), + class130.Int0 + class130.method_0() + class130.method_2()); + if (_struct110.Length != 0) + { + var array = _struct110; + for (var i = 0; i < array.Length; i++) + { + var struct2 = array[i]; + var struct3 = struct2.method_0(@struct); + if (!struct3.method_1()) + { + method_1(ref class130.Float0, struct3.method_2() - class130.Int0, struct3.method_3(), + struct3.method_2() - struct2.method_2(), struct2.method_3()); + } + } + return; + } + method_1(ref class130.Float0, class130.method_0(), class130.method_2(), 0, class130.method_2()); + } - private void method_1(ref float[] float2, int int0, int int1, int int2, float float3) - { - switch (_enum260) - { - case Enum26.Const0: - try - { - for (var i = 0; i < int1; i++) - { - float2[int0 + i] *= method_0((int2 + i) / float3) * _float1 + _float0; - } - if (_bool0) - { - for (var j = 0; j < int0; j++) - { - float2[j] *= _float0; - } - } - return; - } - catch (IndexOutOfRangeException) - { - return; - } - break; - case Enum26.Const1: - break; - case Enum26.Const2: - goto IL_117; - default: - return; - } - try - { - for (var k = 0; k < int1; k++) - { - float2[int0 + k] *= method_0(1f - (int2 + k) / float3) * _float1 + _float0; - } - if (_bool0) - { - for (var l = int0 + int1; l < float2.Length; l++) - { - float2[l] *= _float0; - } - } - return; - } - catch (IndexOutOfRangeException) - { - return; - } - IL_117: - var num = int1 / 2; - float3 = num; - var array = new float[float2.Length - num]; - try - { - for (var m = 0; m < num; m++) - { - float2[int0 + m] = method_0((num - m) / float3) * float2[int0 + m] + method_0(m / float3) * float2[int0 + num + m]; - } - for (var n = 0; n < int0 + num; n++) - { - array[n] = float2[n]; - } - for (var num2 = int0 + int1; num2 < float2.Length; num2++) - { - array[num2 - num] = float2[num2]; - } - } - catch (IndexOutOfRangeException) - { - } - float2 = array; - } - } -} + private void method_1(ref float[] float2, int int0, int int1, int int2, float float3) + { + switch (_enum260) + { + case Enum26.Const0: + try + { + for (var i = 0; i < int1; i++) + { + float2[int0 + i] *= method_0((int2 + i) / float3) * _float1 + _float0; + } + if (_bool0) + { + for (var j = 0; j < int0; j++) + { + float2[j] *= _float0; + } + } + return; + } + catch (IndexOutOfRangeException) + { + return; + } + break; + case Enum26.Const1: + break; + case Enum26.Const2: + goto IL_117; + default: + return; + } + try + { + for (var k = 0; k < int1; k++) + { + float2[int0 + k] *= method_0(1f - (int2 + k) / float3) * _float1 + _float0; + } + if (_bool0) + { + for (var l = int0 + int1; l < float2.Length; l++) + { + float2[l] *= _float0; + } + } + return; + } + catch (IndexOutOfRangeException) + { + return; + } + IL_117: + var num = int1 / 2; + float3 = num; + var array = new float[float2.Length - num]; + try + { + for (var m = 0; m < num; m++) + { + float2[int0 + m] = method_0((num - m) / float3) * float2[int0 + m] + + method_0(m / float3) * float2[int0 + num + m]; + } + for (var n = 0; n < int0 + num; n++) + { + array[n] = float2[n]; + } + for (var num2 = int0 + int1; num2 < float2.Length; num2++) + { + array[num2 - num] = float2[num2]; + } + } + catch (IndexOutOfRangeException) + { + } + float2 = array; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class174.cs b/GHNamespace5/Class174.cs index 93a7475..c02c5dc 100644 --- a/GHNamespace5/Class174.cs +++ b/GHNamespace5/Class174.cs @@ -3,41 +3,41 @@ namespace GHNamespace5 { - public class Class174 : Class172 - { - private readonly float _float0; + public class Class174 : Class172 + { + private readonly float _float0; - private readonly int _int0; + private readonly int _int0; - public Class174(int int1, float float1) - { - _int0 = int1; - _float0 = float1; - } + public Class174(int int1, float float1) + { + _int0 = int1; + _float0 = float1; + } - public override void vmethod_0(Class13 class130) - { - var array = class130.Float0; - var num = class130.method_0(); - var num2 = class130.method_2(); - var num3 = 0f; - switch (_int0) - { - case 1: - num3 = Class15.smethod_9(array, num, num2); - break; - case 2: - num3 = Class15.smethod_4(array, num, num2); - break; - case 3: - num3 = 1f; - break; - } - var num4 = _float0 / num3; - for (var i = num; i < num + num2; i++) - { - array[i] = class130.vmethod_1(i, array[i], array[i] * num4); - } - } - } -} + public override void vmethod_0(Class13 class130) + { + var array = class130.Float0; + var num = class130.method_0(); + var num2 = class130.method_2(); + var num3 = 0f; + switch (_int0) + { + case 1: + num3 = Class15.smethod_9(array, num, num2); + break; + case 2: + num3 = Class15.smethod_4(array, num, num2); + break; + case 3: + num3 = 1f; + break; + } + var num4 = _float0 / num3; + for (var i = num; i < num + num2; i++) + { + array[i] = class130.vmethod_1(i, array[i], array[i] * num4); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class178.cs b/GHNamespace5/Class178.cs index 9faf12f..19738fc 100644 --- a/GHNamespace5/Class178.cs +++ b/GHNamespace5/Class178.cs @@ -3,23 +3,23 @@ namespace GHNamespace5 { - public abstract class Class178 : INterface5 - { - public abstract void vmethod_0(Class13 class130, Class13 class131); + public abstract class Class178 : INterface5 + { + public abstract void vmethod_0(Class13 class130, Class13 class131); - public abstract void vmethod_1(Class13 class130, Class13 class131, Class13 class132); + public abstract void vmethod_1(Class13 class130, Class13 class131, Class13 class132); - public void imethod_0(Class13[] class130) - { - if (class130.Length == 2) - { - vmethod_0(class130[0], class130[1]); - return; - } - if (class130.Length == 3) - { - vmethod_1(class130[0], class130[1], class130[2]); - } - } - } -} + public void imethod_0(Class13[] class130) + { + if (class130.Length == 2) + { + vmethod_0(class130[0], class130[1]); + return; + } + if (class130.Length == 3) + { + vmethod_1(class130[0], class130[1], class130[2]); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class179.cs b/GHNamespace5/Class179.cs index ba52299..6a38bec 100644 --- a/GHNamespace5/Class179.cs +++ b/GHNamespace5/Class179.cs @@ -6,179 +6,179 @@ namespace GHNamespace5 { - public class Class179 : IEnumerable, IDisposable - { - private enum Enum28 - { - Const0, - Const1, - Const2 - } - - private class Class180 : IComparer - { - public int Compare(object x, object y) - { - var @class = x as Class181; - var class2 = y as Class181; - int num; - if (@class == null) - { - if (class2 == null) - { - num = 0; - } - else - { - num = -1; - } - } - else if (class2 == null) - { - num = 1; - } - else - { - var num2 = (@class.method_1() == Enum28.Const0 || @class.method_1() == Enum28.Const1) ? 0 : 1; - var num3 = (class2.method_1() == Enum28.Const0 || class2.method_1() == Enum28.Const1) ? 0 : 1; - num = num2 - num3; - if (num == 0) - { - var num4 = @class.method_0().method_6() - class2.method_0().method_6(); - if (num4 < 0L) - { - num = -1; - } - else if (num4 == 0L) - { - num = 0; - } - else - { - num = 1; - } - } - } - return num; - } - } - - private class Class181 - { - private Class193 _class1930; - - private Enum28 _enum280; - - public Class193 method_0() - { - return _class1930; - } - - public Enum28 method_1() - { - return _enum280; - } - } - - private class Class182 : IEnumerator - { - private readonly Class193[] _class1930; - - private int _int0 = -1; - - public object Current => _class1930[_int0]; - - public Class182(Class193[] class1931) - { - _class1930 = class1931; - } - - public void Reset() - { - _int0 = -1; - } - - public bool MoveNext() - { - return ++_int0 < _class1930.Length; - } - } - - private bool _bool0; - - private Stream _stream0; - - private bool _bool1; - - private Class193[] _class1930; - - private bool _bool2; - - private Enum30 _enum300 = Enum30.Const2; - - private int _int0 = 4096; - - private INterface9 _interface90 = new Class212(); - - private string _string0 = string.Empty; - - public Class193 this[int int1] => (Class193)_class1930[int1].Clone(); - - public Class179() - { - _class1930 = new Class193[0]; - _bool2 = true; - } - - ~Class179() - { - vmethod_0(false); - } - - public void method_0() - { - method_2(true); - GC.SuppressFinalize(this); - } - - public bool method_1() - { - return _bool1; - } - - public IEnumerator GetEnumerator() - { - if (_class1930 == null) - { - throw new InvalidOperationException("ZipFile has closed"); - } - return new Class182(_class1930); - } - - void IDisposable.Dispose() - { - method_0(); - } - - private void method_2(bool bool3) - { - if (!_bool0) - { - _bool0 = true; - _class1930 = null; - if (method_1() && _stream0 != null) - { - lock (_stream0) - { - _stream0.Close(); - } - } - } - } - - public virtual void vmethod_0(bool bool3) - { - method_2(bool3); - } - } -} + public class Class179 : IEnumerable, IDisposable + { + private enum Enum28 + { + Const0, + Const1, + Const2 + } + + private class Class180 : IComparer + { + public int Compare(object x, object y) + { + var @class = x as Class181; + var class2 = y as Class181; + int num; + if (@class == null) + { + if (class2 == null) + { + num = 0; + } + else + { + num = -1; + } + } + else if (class2 == null) + { + num = 1; + } + else + { + var num2 = (@class.method_1() == Enum28.Const0 || @class.method_1() == Enum28.Const1) ? 0 : 1; + var num3 = (class2.method_1() == Enum28.Const0 || class2.method_1() == Enum28.Const1) ? 0 : 1; + num = num2 - num3; + if (num == 0) + { + var num4 = @class.method_0().method_6() - class2.method_0().method_6(); + if (num4 < 0L) + { + num = -1; + } + else if (num4 == 0L) + { + num = 0; + } + else + { + num = 1; + } + } + } + return num; + } + } + + private class Class181 + { + private Class193 _class1930; + + private Enum28 _enum280; + + public Class193 method_0() + { + return _class1930; + } + + public Enum28 method_1() + { + return _enum280; + } + } + + private class Class182 : IEnumerator + { + private readonly Class193[] _class1930; + + private int _int0 = -1; + + public object Current => _class1930[_int0]; + + public Class182(Class193[] class1931) + { + _class1930 = class1931; + } + + public void Reset() + { + _int0 = -1; + } + + public bool MoveNext() + { + return ++_int0 < _class1930.Length; + } + } + + private bool _bool0; + + private Stream _stream0; + + private bool _bool1; + + private Class193[] _class1930; + + private bool _bool2; + + private Enum30 _enum300 = Enum30.Const2; + + private int _int0 = 4096; + + private INterface9 _interface90 = new Class212(); + + private string _string0 = string.Empty; + + public Class193 this[int int1] => (Class193) _class1930[int1].Clone(); + + public Class179() + { + _class1930 = new Class193[0]; + _bool2 = true; + } + + ~Class179() + { + vmethod_0(false); + } + + public void method_0() + { + method_2(true); + GC.SuppressFinalize(this); + } + + public bool method_1() + { + return _bool1; + } + + public IEnumerator GetEnumerator() + { + if (_class1930 == null) + { + throw new InvalidOperationException("ZipFile has closed"); + } + return new Class182(_class1930); + } + + void IDisposable.Dispose() + { + method_0(); + } + + private void method_2(bool bool3) + { + if (!_bool0) + { + _bool0 = true; + _class1930 = null; + if (method_1() && _stream0 != null) + { + lock (_stream0) + { + _stream0.Close(); + } + } + } + } + + public virtual void vmethod_0(bool bool3) + { + method_2(bool3); + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class183.cs b/GHNamespace5/Class183.cs index 3c806d6..5203460 100644 --- a/GHNamespace5/Class183.cs +++ b/GHNamespace5/Class183.cs @@ -2,73 +2,78 @@ namespace GHNamespace5 { - public class Class183 - { - public static int Int0 = Math.Min(65535, 65531); + public class Class183 + { + public static int Int0 = Math.Min(65535, 65531); - public static int[] Int1 = { - 0, - 4, - 4, - 4, - 4, - 8, - 8, - 8, - 32, - 32 - }; + public static int[] Int1 = + { + 0, + 4, + 4, + 4, + 4, + 8, + 8, + 8, + 32, + 32 + }; - public static int[] Int2 = { - 0, - 4, - 5, - 6, - 4, - 16, - 16, - 32, - 128, - 258 - }; + public static int[] Int2 = + { + 0, + 4, + 5, + 6, + 4, + 16, + 16, + 32, + 128, + 258 + }; - public static int[] Int3 = { - 0, - 8, - 16, - 32, - 16, - 32, - 128, - 128, - 258, - 258 - }; + public static int[] Int3 = + { + 0, + 8, + 16, + 32, + 16, + 32, + 128, + 128, + 258, + 258 + }; - public static int[] Int4 = { - 0, - 4, - 8, - 32, - 16, - 32, - 128, - 256, - 1024, - 4096 - }; + public static int[] Int4 = + { + 0, + 4, + 8, + 32, + 16, + 32, + 128, + 256, + 1024, + 4096 + }; - public static int[] Int5 = { - 0, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2 - }; - } -} + public static int[] Int5 = + { + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2 + }; + } +} \ No newline at end of file diff --git a/GHNamespace5/Class184.cs b/GHNamespace5/Class184.cs index 0ea625c..69e5d4d 100644 --- a/GHNamespace5/Class184.cs +++ b/GHNamespace5/Class184.cs @@ -3,488 +3,492 @@ namespace GHNamespace5 { - public class Class184 : Class183 - { - private int _int6; - - private readonly short[] _short0; - - private readonly short[] _short1; - - private int _int7; - - private int _int8; - - private bool _bool0; - - private int _int9; - - private int _int10; - - private int _int11; - - private readonly byte[] _byte0; - - private Enum29 _enum290; - - private int _int12; - - private int _int13; - - private int _int14; - - private int _int15; - - private int _int16; - - private byte[] _byte1; - - private int _int17; - - private int _int18; - - private int _int19; - - private readonly Class189 _class1890; - - private readonly Class190 _class1900; - - private readonly Class200 _class2000; - - public Class184(Class189 class1891) - { - _class1890 = class1891; - _class1900 = new Class190(class1891); - _class2000 = new Class200(); - _byte0 = new byte[65536]; - _short0 = new short[32768]; - _short1 = new short[32768]; - _int10 = 1; - _int9 = 1; - } - - public bool method_0(bool bool1, bool bool2) - { - while (true) - { - method_7(); - var bool3 = bool1 && _int18 == _int19; - bool flag; - switch (_int16) - { - case 0: - flag = method_12(bool3, bool2); - goto IL_45; - case 1: - flag = method_13(bool3, bool2); - goto IL_45; - case 2: - flag = method_14(bool3, bool2); - goto IL_45; - } - break; - IL_45: - if (!_class1890.method_7()) - { - return flag; - } - if (!flag) - { - return flag; - } - } - throw new InvalidOperationException("unknown compressionFunction"); - } - - public void method_1(byte[] byte2, int int20, int int21) - { - if (byte2 == null) - { - throw new ArgumentNullException("buffer"); - } - if (int20 < 0) - { - throw new ArgumentOutOfRangeException("offset"); - } - if (int21 < 0) - { - throw new ArgumentOutOfRangeException("count"); - } - if (_int18 < _int19) - { - throw new InvalidOperationException("Old input was not completely processed"); - } - var num = int20 + int21; - if (int20 > num || num > byte2.Length) - { - throw new ArgumentOutOfRangeException("count"); - } - _byte1 = byte2; - _int18 = int20; - _int19 = num; - } - - public bool method_2() - { - return _int19 == _int18; - } - - public void method_3() - { - _class1900.method_0(); - _class2000.vmethod_1(); - _int10 = 1; - _int9 = 1; - _int11 = 0; - _int17 = 0; - _bool0 = false; - _int8 = 2; - for (var i = 0; i < 32768; i++) - { - _short0[i] = 0; - } - for (var j = 0; j < 32768; j++) - { - _short1[j] = 0; - } - } - - public void ResetAdler() - { - _class2000.vmethod_1(); - } - - public int method_4() - { - return (int)_class2000.vmethod_0(); - } - - public void method_5(Enum29 enum291) - { - _enum290 = enum291; - } - - public void method_6(int int20) - { - if (int20 >= 0 && int20 <= 9) - { - _int15 = Int1[int20]; - _int13 = Int2[int20]; - _int14 = Int3[int20]; - _int12 = Int4[int20]; - if (Int5[int20] != _int16) - { - switch (_int16) - { - case 0: - if (_int10 > _int9) - { - _class1900.method_3(_byte0, _int9, _int10 - _int9, false); - _int9 = _int10; - } - method_8(); - break; - case 1: - if (_int10 > _int9) - { - _class1900.method_4(_byte0, _int9, _int10 - _int9, false); - _int9 = _int10; - } - break; - case 2: - if (_bool0) - { - _class1900.method_6(_byte0[_int10 - 1] & 255); - } - if (_int10 > _int9) - { - _class1900.method_4(_byte0, _int9, _int10 - _int9, false); - _int9 = _int10; - } - _bool0 = false; - _int8 = 2; - break; - } - _int16 = Int5[int20]; - } - return; - } - throw new ArgumentOutOfRangeException("level"); - } - - public void method_7() - { - if (_int10 >= 65274) - { - method_10(); - } - while (_int11 < 262 && _int18 < _int19) - { - var num = 65536 - _int11 - _int10; - if (num > _int19 - _int18) - { - num = _int19 - _int18; - } - Array.Copy(_byte1, _int18, _byte0, _int10 + _int11, num); - _class2000.vmethod_2(_byte1, _int18, num); - _int18 += num; - _int17 += num; - _int11 += num; - } - if (_int11 >= 3) - { - method_8(); - } - } - - private void method_8() - { - _int6 = (_byte0[_int10] << 5 ^ _byte0[_int10 + 1]); - } - - private int method_9() - { - var num = (_int6 << 5 ^ _byte0[_int10 + 2]) & 32767; - var num2 = _short1[_int10 & 32767] = _short0[num]; - _short0[num] = (short)_int10; - _int6 = num; - return num2 & 65535; - } - - private void method_10() - { - Array.Copy(_byte0, 32768, _byte0, 0, 32768); - _int7 -= 32768; - _int10 -= 32768; - _int9 -= 32768; - for (var i = 0; i < 32768; i++) - { - var num = _short0[i] & 65535; - _short0[i] = (short)((num >= 32768) ? (num - 32768) : 0); - } - for (var j = 0; j < 32768; j++) - { - var num2 = _short1[j] & 65535; - _short1[j] = (short)((num2 >= 32768) ? (num2 - 32768) : 0); - } - } - - private bool method_11(int int20) - { - var num = _int12; - var num2 = _int14; - var array = _short1; - var num3 = _int10; - var num4 = _int10 + _int8; - var num5 = Math.Max(_int8, 2); - var num6 = Math.Max(_int10 - 32506, 0); - var num7 = _int10 + 258 - 1; - var b = _byte0[num4 - 1]; - var b2 = _byte0[num4]; - if (num5 >= _int15) - { - num >>= 2; - } - if (num2 > _int11) - { - num2 = _int11; - } - do - { - if (_byte0[int20 + num5] == b2 && _byte0[int20 + num5 - 1] == b && _byte0[int20] == _byte0[num3] && _byte0[int20 + 1] == _byte0[num3 + 1]) - { - var num8 = int20 + 2; - num3 += 2; - while (_byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && num3 < num7) - { - } - if (num3 > num4) - { - _int7 = int20; - num4 = num3; - num5 = num3 - _int10; - if (num5 >= num2) - { - break; - } - b = _byte0[num4 - 1]; - b2 = _byte0[num4]; - } - num3 = _int10; - } - if ((int20 = (array[int20 & 32767] & 65535)) <= num6) - { - break; - } - } - while (--num != 0); - _int8 = Math.Min(num5, _int11); - return _int8 >= 3; - } - - private bool method_12(bool bool1, bool bool2) - { - if (!bool1 && _int11 == 0) - { - return false; - } - _int10 += _int11; - _int11 = 0; - var num = _int10 - _int9; - if (num < Int0 && (_int9 >= 32768 || num < 32506) && !bool1) - { - return true; - } - var flag = bool2; - if (num > Int0) - { - num = Int0; - flag = false; - } - _class1900.method_3(_byte0, _int9, num, flag); - _int9 += num; - return !flag; - } - - private bool method_13(bool bool1, bool bool2) - { - if (_int11 < 262 && !bool1) - { - return false; - } - while (_int11 >= 262 || bool1) - { - if (_int11 == 0) - { - _class1900.method_4(_byte0, _int9, _int10 - _int9, bool2); - _int9 = _int10; - return false; - } - if (_int10 > 65274) - { - method_10(); - } - int num; - if (_int11 >= 3 && (num = method_9()) != 0 && _enum290 != Enum29.Const2 && _int10 - num <= 32506 && method_11(num)) - { - var flag = _class1900.method_7(_int10 - _int7, _int8); - _int11 -= _int8; - if (_int8 <= _int13 && _int11 >= 3) - { - while (--_int8 > 0) - { - _int10++; - method_9(); - } - _int10++; - } - else - { - _int10 += _int8; - if (_int11 >= 2) - { - method_8(); - } - } - _int8 = 2; - if (!flag) - { - continue; - } - } - else - { - _class1900.method_6(_byte0[_int10] & 255); - _int10++; - _int11--; - } - if (_class1900.method_5()) - { - var flag2 = bool2 && _int11 == 0; - _class1900.method_4(_byte0, _int9, _int10 - _int9, flag2); - _int9 = _int10; - return !flag2; - } - } - return true; - } - - private bool method_14(bool bool1, bool bool2) - { - if (_int11 < 262 && !bool1) - { - return false; - } - while (_int11 >= 262 || bool1) - { - if (_int11 == 0) - { - if (_bool0) - { - _class1900.method_6(_byte0[_int10 - 1] & 255); - } - _bool0 = false; - _class1900.method_4(_byte0, _int9, _int10 - _int9, bool2); - _int9 = _int10; - return false; - } - if (_int10 >= 65274) - { - method_10(); - } - var num = _int7; - var num2 = _int8; - if (_int11 >= 3) - { - var num3 = method_9(); - if (_enum290 != Enum29.Const2 && num3 != 0 && _int10 - num3 <= 32506 && method_11(num3) && _int8 <= 5 && (_enum290 == Enum29.Const1 || (_int8 == 3 && _int10 - _int7 > 4096))) - { - _int8 = 2; - } - } - if (num2 >= 3 && _int8 <= num2) - { - _class1900.method_7(_int10 - 1 - num, num2); - num2 -= 2; - do - { - _int10++; - _int11--; - if (_int11 >= 3) - { - method_9(); - } - } - while (--num2 > 0); - _int10++; - _int11--; - _bool0 = false; - _int8 = 2; - } - else - { - if (_bool0) - { - _class1900.method_6(_byte0[_int10 - 1] & 255); - } - _bool0 = true; - _int10++; - _int11--; - } - if (_class1900.method_5()) - { - var num4 = _int10 - _int9; - if (_bool0) - { - num4--; - } - var flag = bool2 && _int11 == 0 && !_bool0; - _class1900.method_4(_byte0, _int9, num4, flag); - _int9 += num4; - return !flag; - } - } - return true; - } - } -} + public class Class184 : Class183 + { + private int _int6; + + private readonly short[] _short0; + + private readonly short[] _short1; + + private int _int7; + + private int _int8; + + private bool _bool0; + + private int _int9; + + private int _int10; + + private int _int11; + + private readonly byte[] _byte0; + + private Enum29 _enum290; + + private int _int12; + + private int _int13; + + private int _int14; + + private int _int15; + + private int _int16; + + private byte[] _byte1; + + private int _int17; + + private int _int18; + + private int _int19; + + private readonly Class189 _class1890; + + private readonly Class190 _class1900; + + private readonly Class200 _class2000; + + public Class184(Class189 class1891) + { + _class1890 = class1891; + _class1900 = new Class190(class1891); + _class2000 = new Class200(); + _byte0 = new byte[65536]; + _short0 = new short[32768]; + _short1 = new short[32768]; + _int10 = 1; + _int9 = 1; + } + + public bool method_0(bool bool1, bool bool2) + { + while (true) + { + method_7(); + var bool3 = bool1 && _int18 == _int19; + bool flag; + switch (_int16) + { + case 0: + flag = method_12(bool3, bool2); + goto IL_45; + case 1: + flag = method_13(bool3, bool2); + goto IL_45; + case 2: + flag = method_14(bool3, bool2); + goto IL_45; + } + break; + IL_45: + if (!_class1890.method_7()) + { + return flag; + } + if (!flag) + { + return flag; + } + } + throw new InvalidOperationException("unknown compressionFunction"); + } + + public void method_1(byte[] byte2, int int20, int int21) + { + if (byte2 == null) + { + throw new ArgumentNullException("buffer"); + } + if (int20 < 0) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (int21 < 0) + { + throw new ArgumentOutOfRangeException("count"); + } + if (_int18 < _int19) + { + throw new InvalidOperationException("Old input was not completely processed"); + } + var num = int20 + int21; + if (int20 > num || num > byte2.Length) + { + throw new ArgumentOutOfRangeException("count"); + } + _byte1 = byte2; + _int18 = int20; + _int19 = num; + } + + public bool method_2() + { + return _int19 == _int18; + } + + public void method_3() + { + _class1900.method_0(); + _class2000.vmethod_1(); + _int10 = 1; + _int9 = 1; + _int11 = 0; + _int17 = 0; + _bool0 = false; + _int8 = 2; + for (var i = 0; i < 32768; i++) + { + _short0[i] = 0; + } + for (var j = 0; j < 32768; j++) + { + _short1[j] = 0; + } + } + + public void ResetAdler() + { + _class2000.vmethod_1(); + } + + public int method_4() + { + return (int) _class2000.vmethod_0(); + } + + public void method_5(Enum29 enum291) + { + _enum290 = enum291; + } + + public void method_6(int int20) + { + if (int20 >= 0 && int20 <= 9) + { + _int15 = Int1[int20]; + _int13 = Int2[int20]; + _int14 = Int3[int20]; + _int12 = Int4[int20]; + if (Int5[int20] != _int16) + { + switch (_int16) + { + case 0: + if (_int10 > _int9) + { + _class1900.method_3(_byte0, _int9, _int10 - _int9, false); + _int9 = _int10; + } + method_8(); + break; + case 1: + if (_int10 > _int9) + { + _class1900.method_4(_byte0, _int9, _int10 - _int9, false); + _int9 = _int10; + } + break; + case 2: + if (_bool0) + { + _class1900.method_6(_byte0[_int10 - 1] & 255); + } + if (_int10 > _int9) + { + _class1900.method_4(_byte0, _int9, _int10 - _int9, false); + _int9 = _int10; + } + _bool0 = false; + _int8 = 2; + break; + } + _int16 = Int5[int20]; + } + return; + } + throw new ArgumentOutOfRangeException("level"); + } + + public void method_7() + { + if (_int10 >= 65274) + { + method_10(); + } + while (_int11 < 262 && _int18 < _int19) + { + var num = 65536 - _int11 - _int10; + if (num > _int19 - _int18) + { + num = _int19 - _int18; + } + Array.Copy(_byte1, _int18, _byte0, _int10 + _int11, num); + _class2000.vmethod_2(_byte1, _int18, num); + _int18 += num; + _int17 += num; + _int11 += num; + } + if (_int11 >= 3) + { + method_8(); + } + } + + private void method_8() + { + _int6 = (_byte0[_int10] << 5 ^ _byte0[_int10 + 1]); + } + + private int method_9() + { + var num = (_int6 << 5 ^ _byte0[_int10 + 2]) & 32767; + var num2 = _short1[_int10 & 32767] = _short0[num]; + _short0[num] = (short) _int10; + _int6 = num; + return num2 & 65535; + } + + private void method_10() + { + Array.Copy(_byte0, 32768, _byte0, 0, 32768); + _int7 -= 32768; + _int10 -= 32768; + _int9 -= 32768; + for (var i = 0; i < 32768; i++) + { + var num = _short0[i] & 65535; + _short0[i] = (short) ((num >= 32768) ? (num - 32768) : 0); + } + for (var j = 0; j < 32768; j++) + { + var num2 = _short1[j] & 65535; + _short1[j] = (short) ((num2 >= 32768) ? (num2 - 32768) : 0); + } + } + + private bool method_11(int int20) + { + var num = _int12; + var num2 = _int14; + var array = _short1; + var num3 = _int10; + var num4 = _int10 + _int8; + var num5 = Math.Max(_int8, 2); + var num6 = Math.Max(_int10 - 32506, 0); + var num7 = _int10 + 258 - 1; + var b = _byte0[num4 - 1]; + var b2 = _byte0[num4]; + if (num5 >= _int15) + { + num >>= 2; + } + if (num2 > _int11) + { + num2 = _int11; + } + do + { + if (_byte0[int20 + num5] == b2 && _byte0[int20 + num5 - 1] == b && _byte0[int20] == _byte0[num3] && + _byte0[int20 + 1] == _byte0[num3 + 1]) + { + var num8 = int20 + 2; + num3 += 2; + while (_byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && + _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && + _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && + _byte0[++num3] == _byte0[++num8] && _byte0[++num3] == _byte0[++num8] && num3 < num7) + { + } + if (num3 > num4) + { + _int7 = int20; + num4 = num3; + num5 = num3 - _int10; + if (num5 >= num2) + { + break; + } + b = _byte0[num4 - 1]; + b2 = _byte0[num4]; + } + num3 = _int10; + } + if ((int20 = (array[int20 & 32767] & 65535)) <= num6) + { + break; + } + } while (--num != 0); + _int8 = Math.Min(num5, _int11); + return _int8 >= 3; + } + + private bool method_12(bool bool1, bool bool2) + { + if (!bool1 && _int11 == 0) + { + return false; + } + _int10 += _int11; + _int11 = 0; + var num = _int10 - _int9; + if (num < Int0 && (_int9 >= 32768 || num < 32506) && !bool1) + { + return true; + } + var flag = bool2; + if (num > Int0) + { + num = Int0; + flag = false; + } + _class1900.method_3(_byte0, _int9, num, flag); + _int9 += num; + return !flag; + } + + private bool method_13(bool bool1, bool bool2) + { + if (_int11 < 262 && !bool1) + { + return false; + } + while (_int11 >= 262 || bool1) + { + if (_int11 == 0) + { + _class1900.method_4(_byte0, _int9, _int10 - _int9, bool2); + _int9 = _int10; + return false; + } + if (_int10 > 65274) + { + method_10(); + } + int num; + if (_int11 >= 3 && (num = method_9()) != 0 && _enum290 != Enum29.Const2 && _int10 - num <= 32506 && + method_11(num)) + { + var flag = _class1900.method_7(_int10 - _int7, _int8); + _int11 -= _int8; + if (_int8 <= _int13 && _int11 >= 3) + { + while (--_int8 > 0) + { + _int10++; + method_9(); + } + _int10++; + } + else + { + _int10 += _int8; + if (_int11 >= 2) + { + method_8(); + } + } + _int8 = 2; + if (!flag) + { + continue; + } + } + else + { + _class1900.method_6(_byte0[_int10] & 255); + _int10++; + _int11--; + } + if (_class1900.method_5()) + { + var flag2 = bool2 && _int11 == 0; + _class1900.method_4(_byte0, _int9, _int10 - _int9, flag2); + _int9 = _int10; + return !flag2; + } + } + return true; + } + + private bool method_14(bool bool1, bool bool2) + { + if (_int11 < 262 && !bool1) + { + return false; + } + while (_int11 >= 262 || bool1) + { + if (_int11 == 0) + { + if (_bool0) + { + _class1900.method_6(_byte0[_int10 - 1] & 255); + } + _bool0 = false; + _class1900.method_4(_byte0, _int9, _int10 - _int9, bool2); + _int9 = _int10; + return false; + } + if (_int10 >= 65274) + { + method_10(); + } + var num = _int7; + var num2 = _int8; + if (_int11 >= 3) + { + var num3 = method_9(); + if (_enum290 != Enum29.Const2 && num3 != 0 && _int10 - num3 <= 32506 && method_11(num3) && + _int8 <= 5 && (_enum290 == Enum29.Const1 || (_int8 == 3 && _int10 - _int7 > 4096))) + { + _int8 = 2; + } + } + if (num2 >= 3 && _int8 <= num2) + { + _class1900.method_7(_int10 - 1 - num, num2); + num2 -= 2; + do + { + _int10++; + _int11--; + if (_int11 >= 3) + { + method_9(); + } + } while (--num2 > 0); + _int10++; + _int11--; + _bool0 = false; + _int8 = 2; + } + else + { + if (_bool0) + { + _class1900.method_6(_byte0[_int10 - 1] & 255); + } + _bool0 = true; + _int10++; + _int11--; + } + if (_class1900.method_5()) + { + var num4 = _int10 - _int9; + if (_bool0) + { + num4--; + } + var flag = bool2 && _int11 == 0 && !_bool0; + _class1900.method_4(_byte0, _int9, num4, flag); + _int9 += num4; + return !flag; + } + } + return true; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class185.cs b/GHNamespace5/Class185.cs index 9cc9e04..07b97f4 100644 --- a/GHNamespace5/Class185.cs +++ b/GHNamespace5/Class185.cs @@ -3,27 +3,27 @@ namespace GHNamespace5 { - public class Class185 : INterface8 - { - private static readonly char[] Char0; + public class Class185 : INterface8 + { + private static readonly char[] Char0; - private static readonly char[] Char1; + private static readonly char[] Char1; - static Class185() - { - var invalidPathChars = Path.GetInvalidPathChars(); - var num = invalidPathChars.Length + 2; - Char1 = new char[num]; - Array.Copy(invalidPathChars, 0, Char1, 0, invalidPathChars.Length); - Char1[num - 1] = '*'; - Char1[num - 2] = '?'; - num = invalidPathChars.Length + 4; - Char0 = new char[num]; - Array.Copy(invalidPathChars, 0, Char0, 0, invalidPathChars.Length); - Char0[num - 1] = ':'; - Char0[num - 2] = '\\'; - Char0[num - 3] = '*'; - Char0[num - 4] = '?'; - } - } -} + static Class185() + { + var invalidPathChars = Path.GetInvalidPathChars(); + var num = invalidPathChars.Length + 2; + Char1 = new char[num]; + Array.Copy(invalidPathChars, 0, Char1, 0, invalidPathChars.Length); + Char1[num - 1] = '*'; + Char1[num - 2] = '?'; + num = invalidPathChars.Length + 4; + Char0 = new char[num]; + Array.Copy(invalidPathChars, 0, Char0, 0, invalidPathChars.Length); + Char0[num - 1] = ':'; + Char0[num - 2] = '\\'; + Char0[num - 3] = '*'; + Char0[num - 4] = '?'; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class186.cs b/GHNamespace5/Class186.cs index c698e02..2a65aff 100644 --- a/GHNamespace5/Class186.cs +++ b/GHNamespace5/Class186.cs @@ -3,61 +3,61 @@ namespace GHNamespace5 { - public class Class186 - { - private static readonly int Int0 = Thread.CurrentThread.CurrentCulture.TextInfo.OEMCodePage; + public class Class186 + { + private static readonly int Int0 = Thread.CurrentThread.CurrentCulture.TextInfo.OEMCodePage; - public static int smethod_0() - { - return Int0; - } + public static int smethod_0() + { + return Int0; + } - public static string smethod_1(byte[] byte0, int int1) - { - if (byte0 == null) - { - return string.Empty; - } - return Encoding.GetEncoding(smethod_0()).GetString(byte0, 0, int1); - } + public static string smethod_1(byte[] byte0, int int1) + { + if (byte0 == null) + { + return string.Empty; + } + return Encoding.GetEncoding(smethod_0()).GetString(byte0, 0, int1); + } - public static string smethod_2(int int1, byte[] byte0) - { - if (byte0 == null) - { - return string.Empty; - } - if ((int1 & 2048) != 0) - { - return Encoding.UTF8.GetString(byte0, 0, byte0.Length); - } - return smethod_1(byte0, byte0.Length); - } + public static string smethod_2(int int1, byte[] byte0) + { + if (byte0 == null) + { + return string.Empty; + } + if ((int1 & 2048) != 0) + { + return Encoding.UTF8.GetString(byte0, 0, byte0.Length); + } + return smethod_1(byte0, byte0.Length); + } - public static byte[] smethod_3(string string0) - { - if (string0 == null) - { - return new byte[0]; - } - return Encoding.GetEncoding(smethod_0()).GetBytes(string0); - } + public static byte[] smethod_3(string string0) + { + if (string0 == null) + { + return new byte[0]; + } + return Encoding.GetEncoding(smethod_0()).GetBytes(string0); + } - public static byte[] smethod_4(int int1, string string0) - { - if (string0 == null) - { - return new byte[0]; - } - if ((int1 & 2048) != 0) - { - return Encoding.UTF8.GetBytes(string0); - } - return smethod_3(string0); - } + public static byte[] smethod_4(int int1, string string0) + { + if (string0 == null) + { + return new byte[0]; + } + if ((int1 & 2048) != 0) + { + return Encoding.UTF8.GetBytes(string0); + } + return smethod_3(string0); + } - private Class186() - { - } - } -} + private Class186() + { + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class187.cs b/GHNamespace5/Class187.cs index e545bff..242cb8e 100644 --- a/GHNamespace5/Class187.cs +++ b/GHNamespace5/Class187.cs @@ -2,137 +2,137 @@ namespace GHNamespace5 { - public class Class187 - { - private byte[] _byte0; + public class Class187 + { + private byte[] _byte0; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private uint _uint0; + private uint _uint0; - private int _int2; + private int _int2; - public int method_0(int int3) - { - if (_int2 < int3) - { - if (_int0 == _int1) - { - return -1; - } - _uint0 |= (uint)(_byte0[_int0++] & 255 | (_byte0[_int0++] & 255) << 8) << _int2; - _int2 += 16; - } - return (int)(_uint0 & (ulong)((1 << int3) - 1)); - } + public int method_0(int int3) + { + if (_int2 < int3) + { + if (_int0 == _int1) + { + return -1; + } + _uint0 |= (uint) (_byte0[_int0++] & 255 | (_byte0[_int0++] & 255) << 8) << _int2; + _int2 += 16; + } + return (int) (_uint0 & (ulong) ((1 << int3) - 1)); + } - public void method_1(int int3) - { - _uint0 >>= int3; - _int2 -= int3; - } + public void method_1(int int3) + { + _uint0 >>= int3; + _int2 -= int3; + } - public int method_2() - { - return _int2; - } + public int method_2() + { + return _int2; + } - public int method_3() - { - return _int1 - _int0 + (_int2 >> 3); - } + public int method_3() + { + return _int1 - _int0 + (_int2 >> 3); + } - public void method_4() - { - _uint0 >>= (_int2 & 7); - _int2 &= -8; - } + public void method_4() + { + _uint0 >>= (_int2 & 7); + _int2 &= -8; + } - public bool method_5() - { - return _int0 == _int1; - } + public bool method_5() + { + return _int0 == _int1; + } - public int method_6(byte[] byte1, int int3, int int4) - { - if (int4 < 0) - { - throw new ArgumentOutOfRangeException("length"); - } - if ((_int2 & 7) != 0) - { - throw new InvalidOperationException("Bit buffer is not byte aligned!"); - } - var num = 0; - while (_int2 > 0 && int4 > 0) - { - byte1[int3++] = (byte)_uint0; - _uint0 >>= 8; - _int2 -= 8; - int4--; - num++; - } - if (int4 == 0) - { - return num; - } - var num2 = _int1 - _int0; - if (int4 > num2) - { - int4 = num2; - } - Array.Copy(_byte0, _int0, byte1, int3, int4); - _int0 += int4; - if ((_int0 - _int1 & 1) != 0) - { - _uint0 = (uint)(_byte0[_int0++] & 255); - _int2 = 8; - } - return num + int4; - } + public int method_6(byte[] byte1, int int3, int int4) + { + if (int4 < 0) + { + throw new ArgumentOutOfRangeException("length"); + } + if ((_int2 & 7) != 0) + { + throw new InvalidOperationException("Bit buffer is not byte aligned!"); + } + var num = 0; + while (_int2 > 0 && int4 > 0) + { + byte1[int3++] = (byte) _uint0; + _uint0 >>= 8; + _int2 -= 8; + int4--; + num++; + } + if (int4 == 0) + { + return num; + } + var num2 = _int1 - _int0; + if (int4 > num2) + { + int4 = num2; + } + Array.Copy(_byte0, _int0, byte1, int3, int4); + _int0 += int4; + if ((_int0 - _int1 & 1) != 0) + { + _uint0 = (uint) (_byte0[_int0++] & 255); + _int2 = 8; + } + return num + int4; + } - public void method_7() - { - _uint0 = 0u; - _int2 = 0; - _int1 = 0; - _int0 = 0; - } + public void method_7() + { + _uint0 = 0u; + _int2 = 0; + _int1 = 0; + _int0 = 0; + } - public void method_8(byte[] byte1, int int3, int int4) - { - if (byte1 == null) - { - throw new ArgumentNullException("buffer"); - } - if (int3 < 0) - { - throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); - } - if (int4 < 0) - { - throw new ArgumentOutOfRangeException("count", "Cannot be negative"); - } - if (_int0 < _int1) - { - throw new InvalidOperationException("Old input was not completely processed"); - } - var num = int3 + int4; - if (int3 <= num && num <= byte1.Length) - { - if ((int4 & 1) != 0) - { - _uint0 |= (uint)(byte1[int3++] & 255) << _int2; - _int2 += 8; - } - _byte0 = byte1; - _int0 = int3; - _int1 = num; - return; - } - throw new ArgumentOutOfRangeException("count"); - } - } -} + public void method_8(byte[] byte1, int int3, int int4) + { + if (byte1 == null) + { + throw new ArgumentNullException("buffer"); + } + if (int3 < 0) + { + throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); + } + if (int4 < 0) + { + throw new ArgumentOutOfRangeException("count", "Cannot be negative"); + } + if (_int0 < _int1) + { + throw new InvalidOperationException("Old input was not completely processed"); + } + var num = int3 + int4; + if (int3 <= num && num <= byte1.Length) + { + if ((int4 & 1) != 0) + { + _uint0 |= (uint) (byte1[int3++] & 255) << _int2; + _int2 += 8; + } + _byte0 = byte1; + _int0 = int3; + _int1 = num; + return; + } + throw new ArgumentOutOfRangeException("count"); + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class188.cs b/GHNamespace5/Class188.cs index 96c8886..293f19f 100644 --- a/GHNamespace5/Class188.cs +++ b/GHNamespace5/Class188.cs @@ -2,110 +2,110 @@ namespace GHNamespace5 { - public class Class188 - { - private readonly byte[] _byte0; - - private int _int0; - - private int _int1; - - private uint _uint0; - - private int _int2; - - public Class188() : this(4096) - { - } - - public Class188(int int3) - { - _byte0 = new byte[int3]; - } - - public void method_0() - { - _int2 = 0; - _int1 = 0; - _int0 = 0; - } - - public void method_1(int int3) - { - _byte0[_int1++] = (byte)int3; - _byte0[_int1++] = (byte)(int3 >> 8); - } - - public void method_2(byte[] byte1, int int3, int int4) - { - Array.Copy(byte1, int3, _byte0, _int1, int4); - _int1 += int4; - } - - public int method_3() - { - return _int2; - } - - public void method_4() - { - if (_int2 > 0) - { - _byte0[_int1++] = (byte)_uint0; - if (_int2 > 8) - { - _byte0[_int1++] = (byte)(_uint0 >> 8); - } - } - _uint0 = 0u; - _int2 = 0; - } - - public void method_5(int int3, int int4) - { - _uint0 |= (uint)int3 << _int2; - _int2 += int4; - if (_int2 >= 16) - { - _byte0[_int1++] = (byte)_uint0; - _byte0[_int1++] = (byte)(_uint0 >> 8); - _uint0 >>= 16; - _int2 -= 16; - } - } - - public void method_6(int int3) - { - _byte0[_int1++] = (byte)(int3 >> 8); - _byte0[_int1++] = (byte)int3; - } - - public bool method_7() - { - return _int1 == 0; - } - - public int method_8(byte[] byte1, int int3, int int4) - { - if (_int2 >= 8) - { - _byte0[_int1++] = (byte)_uint0; - _uint0 >>= 8; - _int2 -= 8; - } - if (int4 > _int1 - _int0) - { - int4 = _int1 - _int0; - Array.Copy(_byte0, _int0, byte1, int3, int4); - _int0 = 0; - _int1 = 0; - } - else - { - Array.Copy(_byte0, _int0, byte1, int3, int4); - _int0 += int4; - } - return int4; - } - } -} + public class Class188 + { + private readonly byte[] _byte0; + + private int _int0; + + private int _int1; + + private uint _uint0; + + private int _int2; + + public Class188() : this(4096) + { + } + + public Class188(int int3) + { + _byte0 = new byte[int3]; + } + + public void method_0() + { + _int2 = 0; + _int1 = 0; + _int0 = 0; + } + + public void method_1(int int3) + { + _byte0[_int1++] = (byte) int3; + _byte0[_int1++] = (byte) (int3 >> 8); + } + + public void method_2(byte[] byte1, int int3, int int4) + { + Array.Copy(byte1, int3, _byte0, _int1, int4); + _int1 += int4; + } + + public int method_3() + { + return _int2; + } + + public void method_4() + { + if (_int2 > 0) + { + _byte0[_int1++] = (byte) _uint0; + if (_int2 > 8) + { + _byte0[_int1++] = (byte) (_uint0 >> 8); + } + } + _uint0 = 0u; + _int2 = 0; + } + + public void method_5(int int3, int int4) + { + _uint0 |= (uint) int3 << _int2; + _int2 += int4; + if (_int2 >= 16) + { + _byte0[_int1++] = (byte) _uint0; + _byte0[_int1++] = (byte) (_uint0 >> 8); + _uint0 >>= 16; + _int2 -= 16; + } + } + + public void method_6(int int3) + { + _byte0[_int1++] = (byte) (int3 >> 8); + _byte0[_int1++] = (byte) int3; + } + + public bool method_7() + { + return _int1 == 0; + } + + public int method_8(byte[] byte1, int int3, int int4) + { + if (_int2 >= 8) + { + _byte0[_int1++] = (byte) _uint0; + _uint0 >>= 8; + _int2 -= 8; + } + if (int4 > _int1 - _int0) + { + int4 = _int1 - _int0; + Array.Copy(_byte0, _int0, byte1, int3, int4); + _int0 = 0; + _int1 = 0; + } + else + { + Array.Copy(_byte0, _int0, byte1, int3, int4); + _int0 += int4; + } + return int4; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Class189.cs b/GHNamespace5/Class189.cs index c695a85..b51796d 100644 --- a/GHNamespace5/Class189.cs +++ b/GHNamespace5/Class189.cs @@ -1,9 +1,9 @@ namespace GHNamespace5 { - public class Class189 : Class188 - { - public Class189() : base(65536) - { - } - } -} + public class Class189 : Class188 + { + public Class189() : base(65536) + { + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Enum29.cs b/GHNamespace5/Enum29.cs index e8e5230..5daad3d 100644 --- a/GHNamespace5/Enum29.cs +++ b/GHNamespace5/Enum29.cs @@ -1,9 +1,9 @@ namespace GHNamespace5 { - public enum Enum29 - { - Const0, - Const1, - Const2 - } -} + public enum Enum29 + { + Const0, + Const1, + Const2 + } +} \ No newline at end of file diff --git a/GHNamespace5/Enum30.cs b/GHNamespace5/Enum30.cs index 7096f21..2674a1b 100644 --- a/GHNamespace5/Enum30.cs +++ b/GHNamespace5/Enum30.cs @@ -1,9 +1,9 @@ namespace GHNamespace5 { - public enum Enum30 - { - Const0, - Const1, - Const2 - } -} + public enum Enum30 + { + Const0, + Const1, + Const2 + } +} \ No newline at end of file diff --git a/GHNamespace5/Enum31.cs b/GHNamespace5/Enum31.cs index 01abd86..a9c05e5 100644 --- a/GHNamespace5/Enum31.cs +++ b/GHNamespace5/Enum31.cs @@ -1,11 +1,11 @@ namespace GHNamespace5 { - public enum Enum31 - { - Const0, - Const1 = 8, - Const2, - Const3 = 11, - Const4 = 99 - } -} + public enum Enum31 + { + Const0, + Const1 = 8, + Const2, + Const3 = 11, + Const4 = 99 + } +} \ No newline at end of file diff --git a/GHNamespace5/Interface8.cs b/GHNamespace5/Interface8.cs index 520366f..d2a378c 100644 --- a/GHNamespace5/Interface8.cs +++ b/GHNamespace5/Interface8.cs @@ -1,6 +1,6 @@ namespace GHNamespace5 { - public interface INterface8 - { - } -} + public interface INterface8 + { + } +} \ No newline at end of file diff --git a/GHNamespace5/Interface9.cs b/GHNamespace5/Interface9.cs index 11bf6a5..2249adc 100644 --- a/GHNamespace5/Interface9.cs +++ b/GHNamespace5/Interface9.cs @@ -1,6 +1,6 @@ namespace GHNamespace5 { - public interface INterface9 - { - } -} + public interface INterface9 + { + } +} \ No newline at end of file diff --git a/GHNamespace5/Stream19.cs b/GHNamespace5/Stream19.cs index 5e2b043..9656863 100644 --- a/GHNamespace5/Stream19.cs +++ b/GHNamespace5/Stream19.cs @@ -6,158 +6,159 @@ namespace GHNamespace5 { - public class Stream19 : Stream - { - public Class196 Class1960; - - public Class201 Class2010; - - public Stream Stream0; - - public long Long0; - - private bool _bool0; - - private readonly bool _bool1 = true; - - public override bool CanRead => Stream0.CanRead; - - public override bool CanSeek => false; - - public override bool CanWrite => false; - - public override long Length => Class2010.method_0(); - - public override long Position - { - get => Stream0.Position; - set => throw new NotSupportedException("InflaterInputStream Position not supported"); - } - - public Stream19(Stream stream1, Class196 class1961) : this(stream1, class1961, 4096) - { - } - - public Stream19(Stream stream1, Class196 class1961, int int0) - { - if (stream1 == null) - { - throw new ArgumentNullException("baseInputStream"); - } - if (class1961 == null) - { - throw new ArgumentNullException("inflater"); - } - if (int0 <= 0) - { - throw new ArgumentOutOfRangeException("bufferSize"); - } - Stream0 = stream1; - Class1960 = class1961; - Class2010 = new Class201(stream1, int0); - } - - public long method_0(long long1) - { - if (long1 < 0L) - { - throw new ArgumentOutOfRangeException("count"); - } - if (Stream0.CanSeek) - { - Stream0.Seek(long1, SeekOrigin.Current); - return long1; - } - var num = 2048; - if (long1 < 2048L) - { - num = (int)long1; - } - var array = new byte[num]; - return Stream0.Read(array, 0, array.Length); - } - - public void method_1() - { - Class2010.method_12(null); - } - - public void method_2() - { - Class2010.method_4(); - Class2010.method_3(Class1960); - } - - public override void Flush() - { - Stream0.Flush(); - } - - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotSupportedException("Seek not supported"); - } - - public override void SetLength(long value) - { - throw new NotSupportedException("InflaterInputStream SetLength not supported"); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException("InflaterInputStream Write not supported"); - } - - public override void WriteByte(byte value) - { - throw new NotSupportedException("InflaterInputStream WriteByte not supported"); - } - - public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) - { - throw new NotSupportedException("InflaterInputStream BeginWrite not supported"); - } - - public override void Close() - { - if (!_bool0) - { - _bool0 = true; - if (_bool1) - { - Stream0.Close(); - } - } - } - - public override int Read(byte[] buffer, int offset, int count) - { - if (Class1960.method_9()) - { - throw new SharpZipBaseException("Need a dictionary"); - } - var num = count; - while (true) - { - var num2 = Class1960.method_7(buffer, offset, num); - offset += num2; - num -= num2; - if (num == 0 || Class1960.method_10()) - { - goto IL_69; - } - if (Class1960.method_8()) - { - method_2(); - } - else if (num2 == 0) - { - break; - } - } - throw new ZipException("Dont know what to do"); - IL_69: - return count - num; - } - } -} + public class Stream19 : Stream + { + public Class196 Class1960; + + public Class201 Class2010; + + public Stream Stream0; + + public long Long0; + + private bool _bool0; + + private readonly bool _bool1 = true; + + public override bool CanRead => Stream0.CanRead; + + public override bool CanSeek => false; + + public override bool CanWrite => false; + + public override long Length => Class2010.method_0(); + + public override long Position + { + get => Stream0.Position; + set => throw new NotSupportedException("InflaterInputStream Position not supported"); + } + + public Stream19(Stream stream1, Class196 class1961) : this(stream1, class1961, 4096) + { + } + + public Stream19(Stream stream1, Class196 class1961, int int0) + { + if (stream1 == null) + { + throw new ArgumentNullException("baseInputStream"); + } + if (class1961 == null) + { + throw new ArgumentNullException("inflater"); + } + if (int0 <= 0) + { + throw new ArgumentOutOfRangeException("bufferSize"); + } + Stream0 = stream1; + Class1960 = class1961; + Class2010 = new Class201(stream1, int0); + } + + public long method_0(long long1) + { + if (long1 < 0L) + { + throw new ArgumentOutOfRangeException("count"); + } + if (Stream0.CanSeek) + { + Stream0.Seek(long1, SeekOrigin.Current); + return long1; + } + var num = 2048; + if (long1 < 2048L) + { + num = (int) long1; + } + var array = new byte[num]; + return Stream0.Read(array, 0, array.Length); + } + + public void method_1() + { + Class2010.method_12(null); + } + + public void method_2() + { + Class2010.method_4(); + Class2010.method_3(Class1960); + } + + public override void Flush() + { + Stream0.Flush(); + } + + public override long Seek(long offset, SeekOrigin origin) + { + throw new NotSupportedException("Seek not supported"); + } + + public override void SetLength(long value) + { + throw new NotSupportedException("InflaterInputStream SetLength not supported"); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException("InflaterInputStream Write not supported"); + } + + public override void WriteByte(byte value) + { + throw new NotSupportedException("InflaterInputStream WriteByte not supported"); + } + + public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, + object state) + { + throw new NotSupportedException("InflaterInputStream BeginWrite not supported"); + } + + public override void Close() + { + if (!_bool0) + { + _bool0 = true; + if (_bool1) + { + Stream0.Close(); + } + } + } + + public override int Read(byte[] buffer, int offset, int count) + { + if (Class1960.method_9()) + { + throw new SharpZipBaseException("Need a dictionary"); + } + var num = count; + while (true) + { + var num2 = Class1960.method_7(buffer, offset, num); + offset += num2; + num -= num2; + if (num == 0 || Class1960.method_10()) + { + goto IL_69; + } + if (Class1960.method_8()) + { + method_2(); + } + else if (num2 == 0) + { + break; + } + } + throw new ZipException("Dont know what to do"); + IL_69: + return count - num; + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Stream21.cs b/GHNamespace5/Stream21.cs index 8da1b71..b8e1929 100644 --- a/GHNamespace5/Stream21.cs +++ b/GHNamespace5/Stream21.cs @@ -5,134 +5,134 @@ namespace GHNamespace5 { - public class Stream21 : Stream - { - public long Long0; - - public long Long1; - - public byte[] Byte0; - - public Class206 Class2060; - - private Stream _stream0; - - public override bool CanRead => _stream0.CanRead; - - public override bool CanSeek => false; - - public override bool CanWrite => false; - - public override long Length => _stream0.Length; - - public override long Position - { - get => _stream0.Position; - set => throw new NotSupportedException("TarInputStream Seek not supported"); - } - - public override void Flush() - { - _stream0.Flush(); - } - - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotSupportedException("TarInputStream Seek not supported"); - } - - public override void SetLength(long value) - { - throw new NotSupportedException("TarInputStream SetLength not supported"); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException("TarInputStream Write not supported"); - } - - public override void WriteByte(byte value) - { - throw new NotSupportedException("TarInputStream WriteByte not supported"); - } - - public override int ReadByte() - { - var array = new byte[1]; - var num = Read(array, 0, 1); - if (num <= 0) - { - return -1; - } - return array[0]; - } - - public override int Read(byte[] buffer, int offset, int count) - { - if (buffer == null) - { - throw new ArgumentNullException("buffer"); - } - var num = 0; - if (Long1 >= Long0) - { - return 0; - } - long num2 = count; - if (num2 + Long1 > Long0) - { - num2 = Long0 - Long1; - } - if (Byte0 != null) - { - var num3 = (num2 > (long)Byte0.Length) ? Byte0.Length : ((int)num2); - Array.Copy(Byte0, 0, buffer, offset, num3); - if (num3 >= Byte0.Length) - { - Byte0 = null; - } - else - { - var num4 = Byte0.Length - num3; - var destinationArray = new byte[num4]; - Array.Copy(Byte0, num3, destinationArray, 0, num4); - Byte0 = destinationArray; - } - num += num3; - num2 -= num3; - offset += num3; - } - while (num2 > 0L) - { - var array = Class2060.method_2(); - if (array == null) - { - throw new TarException("unexpected EOF with " + num2 + " bytes unread"); - } - var num5 = (int)num2; - var num6 = array.Length; - if (num6 > num5) - { - Array.Copy(array, 0, buffer, offset, num5); - Byte0 = new byte[num6 - num5]; - Array.Copy(array, num5, Byte0, 0, num6 - num5); - } - else - { - num5 = num6; - Array.Copy(array, 0, buffer, offset, num6); - } - num += num5; - num2 -= num5; - offset += num5; - } - Long1 += num; - return num; - } - - public override void Close() - { - Class2060.method_8(); - } - } -} + public class Stream21 : Stream + { + public long Long0; + + public long Long1; + + public byte[] Byte0; + + public Class206 Class2060; + + private Stream _stream0; + + public override bool CanRead => _stream0.CanRead; + + public override bool CanSeek => false; + + public override bool CanWrite => false; + + public override long Length => _stream0.Length; + + public override long Position + { + get => _stream0.Position; + set => throw new NotSupportedException("TarInputStream Seek not supported"); + } + + public override void Flush() + { + _stream0.Flush(); + } + + public override long Seek(long offset, SeekOrigin origin) + { + throw new NotSupportedException("TarInputStream Seek not supported"); + } + + public override void SetLength(long value) + { + throw new NotSupportedException("TarInputStream SetLength not supported"); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException("TarInputStream Write not supported"); + } + + public override void WriteByte(byte value) + { + throw new NotSupportedException("TarInputStream WriteByte not supported"); + } + + public override int ReadByte() + { + var array = new byte[1]; + var num = Read(array, 0, 1); + if (num <= 0) + { + return -1; + } + return array[0]; + } + + public override int Read(byte[] buffer, int offset, int count) + { + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + var num = 0; + if (Long1 >= Long0) + { + return 0; + } + long num2 = count; + if (num2 + Long1 > Long0) + { + num2 = Long0 - Long1; + } + if (Byte0 != null) + { + var num3 = (num2 > (long) Byte0.Length) ? Byte0.Length : ((int) num2); + Array.Copy(Byte0, 0, buffer, offset, num3); + if (num3 >= Byte0.Length) + { + Byte0 = null; + } + else + { + var num4 = Byte0.Length - num3; + var destinationArray = new byte[num4]; + Array.Copy(Byte0, num3, destinationArray, 0, num4); + Byte0 = destinationArray; + } + num += num3; + num2 -= num3; + offset += num3; + } + while (num2 > 0L) + { + var array = Class2060.method_2(); + if (array == null) + { + throw new TarException("unexpected EOF with " + num2 + " bytes unread"); + } + var num5 = (int) num2; + var num6 = array.Length; + if (num6 > num5) + { + Array.Copy(array, 0, buffer, offset, num5); + Byte0 = new byte[num6 - num5]; + Array.Copy(array, num5, Byte0, 0, num6 - num5); + } + else + { + num5 = num6; + Array.Copy(array, 0, buffer, offset, num6); + } + num += num5; + num2 -= num5; + offset += num5; + } + Long1 += num; + return num; + } + + public override void Close() + { + Class2060.method_8(); + } + } +} \ No newline at end of file diff --git a/GHNamespace5/Stream22.cs b/GHNamespace5/Stream22.cs index 5f3001b..1837b40 100644 --- a/GHNamespace5/Stream22.cs +++ b/GHNamespace5/Stream22.cs @@ -7,217 +7,219 @@ namespace GHNamespace5 { - public class Stream22 : Stream - { - private string _password; - - private ICryptoTransform _icryptoTransform0; - - private readonly byte[] _byte0; - - public Class194 Class1940; - - public Stream Stream0; - - private bool _bool0; - - private readonly bool _bool1 = true; - - public override bool CanRead => false; - - public override bool CanSeek => false; - - public override bool CanWrite => Stream0.CanWrite; - - public override long Length => Stream0.Length; - - public override long Position - { - get => Stream0.Position; - set => throw new NotSupportedException("Position property not supported"); - } - - public Stream22(Stream stream1, Class194 class1941) : this(stream1, class1941, 512) - { - } - - public Stream22(Stream stream1, Class194 class1941, int int0) - { - if (stream1 == null) - { - throw new ArgumentNullException("baseOutputStream"); - } - if (!stream1.CanWrite) - { - throw new ArgumentException("Must support writing", "baseOutputStream"); - } - if (class1941 == null) - { - throw new ArgumentNullException("deflater"); - } - if (int0 <= 0) - { - throw new ArgumentOutOfRangeException("bufferSize"); - } - Stream0 = stream1; - _byte0 = new byte[int0]; - Class1940 = class1941; - } - - public virtual void vmethod_0() - { - Class1940.method_3(); - while (!Class1940.method_4()) - { - var num = Class1940.method_9(_byte0, 0, _byte0.Length); - if (num <= 0) - { - break; - } - if (_icryptoTransform0 != null) - { - method_3(_byte0, 0, num); - } - Stream0.Write(_byte0, 0, num); - } - if (!Class1940.method_4()) - { - throw new SharpZipBaseException("Can't deflate all input?"); - } - Stream0.Flush(); - if (_icryptoTransform0 != null) - { - _icryptoTransform0.Dispose(); - _icryptoTransform0 = null; - } - } - - public bool method_0() - { - return Stream0.CanSeek; - } - - public string method_1() - { - return _password; - } - - public void method_2(string password) - { - if (password != null && password.Length == 0) - { - _password = null; - return; - } - _password = password; - } - - public void method_3(byte[] byte1, int int0, int int1) - { - _icryptoTransform0.TransformBlock(byte1, 0, int1, byte1, 0); - } - - public void method_4(string string1) - { - var @class = new Class208(); - var rgbKey = Class207.smethod_0(Class186.smethod_3(string1)); - _icryptoTransform0 = @class.CreateEncryptor(rgbKey, null); - } - - public void method_5() - { - while (!Class1940.method_5()) - { - var num = Class1940.method_9(_byte0, 0, _byte0.Length); - if (num <= 0) - { - break; - } - if (_icryptoTransform0 != null) - { - method_3(_byte0, 0, num); - } - Stream0.Write(_byte0, 0, num); - } - if (!Class1940.method_5()) - { - throw new SharpZipBaseException("DeflaterOutputStream can't deflate all input?"); - } - } - - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotSupportedException("DeflaterOutputStream Seek not supported"); - } - - public override void SetLength(long value) - { - throw new NotSupportedException("DeflaterOutputStream SetLength not supported"); - } - - public override int ReadByte() - { - throw new NotSupportedException("DeflaterOutputStream ReadByte not supported"); - } - - public override int Read(byte[] buffer, int offset, int count) - { - throw new NotSupportedException("DeflaterOutputStream Read not supported"); - } - - public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) - { - throw new NotSupportedException("DeflaterOutputStream BeginRead not currently supported"); - } - - public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) - { - throw new NotSupportedException("BeginWrite is not supported"); - } - - public override void Flush() - { - Class1940.method_2(); - method_5(); - Stream0.Flush(); - } - - public override void Close() - { - if (!_bool0) - { - _bool0 = true; - try - { - vmethod_0(); - if (_icryptoTransform0 != null) - { - _icryptoTransform0.Dispose(); - _icryptoTransform0 = null; - } - } - finally - { - if (_bool1) - { - Stream0.Close(); - } - } - } - } - - public override void WriteByte(byte value) - { - Write(new[] - { - value - }, 0, 1); - } - - public override void Write(byte[] buffer, int offset, int count) - { - Class1940.method_6(buffer, offset, count); - method_5(); - } - } -} + public class Stream22 : Stream + { + private string _password; + + private ICryptoTransform _icryptoTransform0; + + private readonly byte[] _byte0; + + public Class194 Class1940; + + public Stream Stream0; + + private bool _bool0; + + private readonly bool _bool1 = true; + + public override bool CanRead => false; + + public override bool CanSeek => false; + + public override bool CanWrite => Stream0.CanWrite; + + public override long Length => Stream0.Length; + + public override long Position + { + get => Stream0.Position; + set => throw new NotSupportedException("Position property not supported"); + } + + public Stream22(Stream stream1, Class194 class1941) : this(stream1, class1941, 512) + { + } + + public Stream22(Stream stream1, Class194 class1941, int int0) + { + if (stream1 == null) + { + throw new ArgumentNullException("baseOutputStream"); + } + if (!stream1.CanWrite) + { + throw new ArgumentException("Must support writing", "baseOutputStream"); + } + if (class1941 == null) + { + throw new ArgumentNullException("deflater"); + } + if (int0 <= 0) + { + throw new ArgumentOutOfRangeException("bufferSize"); + } + Stream0 = stream1; + _byte0 = new byte[int0]; + Class1940 = class1941; + } + + public virtual void vmethod_0() + { + Class1940.method_3(); + while (!Class1940.method_4()) + { + var num = Class1940.method_9(_byte0, 0, _byte0.Length); + if (num <= 0) + { + break; + } + if (_icryptoTransform0 != null) + { + method_3(_byte0, 0, num); + } + Stream0.Write(_byte0, 0, num); + } + if (!Class1940.method_4()) + { + throw new SharpZipBaseException("Can't deflate all input?"); + } + Stream0.Flush(); + if (_icryptoTransform0 != null) + { + _icryptoTransform0.Dispose(); + _icryptoTransform0 = null; + } + } + + public bool method_0() + { + return Stream0.CanSeek; + } + + public string method_1() + { + return _password; + } + + public void method_2(string password) + { + if (password != null && password.Length == 0) + { + _password = null; + return; + } + _password = password; + } + + public void method_3(byte[] byte1, int int0, int int1) + { + _icryptoTransform0.TransformBlock(byte1, 0, int1, byte1, 0); + } + + public void method_4(string string1) + { + var @class = new Class208(); + var rgbKey = Class207.smethod_0(Class186.smethod_3(string1)); + _icryptoTransform0 = @class.CreateEncryptor(rgbKey, null); + } + + public void method_5() + { + while (!Class1940.method_5()) + { + var num = Class1940.method_9(_byte0, 0, _byte0.Length); + if (num <= 0) + { + break; + } + if (_icryptoTransform0 != null) + { + method_3(_byte0, 0, num); + } + Stream0.Write(_byte0, 0, num); + } + if (!Class1940.method_5()) + { + throw new SharpZipBaseException("DeflaterOutputStream can't deflate all input?"); + } + } + + public override long Seek(long offset, SeekOrigin origin) + { + throw new NotSupportedException("DeflaterOutputStream Seek not supported"); + } + + public override void SetLength(long value) + { + throw new NotSupportedException("DeflaterOutputStream SetLength not supported"); + } + + public override int ReadByte() + { + throw new NotSupportedException("DeflaterOutputStream ReadByte not supported"); + } + + public override int Read(byte[] buffer, int offset, int count) + { + throw new NotSupportedException("DeflaterOutputStream Read not supported"); + } + + public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, + object state) + { + throw new NotSupportedException("DeflaterOutputStream BeginRead not currently supported"); + } + + public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, + object state) + { + throw new NotSupportedException("BeginWrite is not supported"); + } + + public override void Flush() + { + Class1940.method_2(); + method_5(); + Stream0.Flush(); + } + + public override void Close() + { + if (!_bool0) + { + _bool0 = true; + try + { + vmethod_0(); + if (_icryptoTransform0 != null) + { + _icryptoTransform0.Dispose(); + _icryptoTransform0 = null; + } + } + finally + { + if (_bool1) + { + Stream0.Close(); + } + } + } + } + + public override void WriteByte(byte value) + { + Write(new[] + { + value + }, 0, 1); + } + + public override void Write(byte[] buffer, int offset, int count) + { + Class1940.method_6(buffer, offset, count); + method_5(); + } + } +} \ No newline at end of file diff --git a/GHNamespace5/ZIPCompressor.cs b/GHNamespace5/ZIPCompressor.cs index 9d44ab1..5a11c89 100644 --- a/GHNamespace5/ZIPCompressor.cs +++ b/GHNamespace5/ZIPCompressor.cs @@ -6,399 +6,402 @@ namespace GHNamespace5 { - public class ZipCompressor : Stream19 - { - private delegate int Delegate5(byte[] b, int offset, int length); + public class ZipCompressor : Stream19 + { + private delegate int Delegate5(byte[] b, int offset, int length); - private Delegate5 _delegate50; + private Delegate5 _delegate50; - private Class192 _class1920 = new Class192(); + private Class192 _class1920 = new Class192(); - private Class193 _class1930; + private Class193 _class1930; - private long _long1; + private long _long1; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private string _password; + private string _password; - public override long Length - { - get - { - if (_class1930 == null) - { - throw new InvalidOperationException("No current entry"); - } - if (_class1930.method_21() < 0L) - { - throw new ZipException("Length not available for the current entry"); - } - return _class1930.method_21(); - } - } + public override long Length + { + get + { + if (_class1930 == null) + { + throw new InvalidOperationException("No current entry"); + } + if (_class1930.method_21() < 0L) + { + throw new ZipException("Length not available for the current entry"); + } + return _class1930.method_21(); + } + } - public ZipCompressor(Stream stream1) : base(stream1, new Class196(true)) - { - _delegate50 = method_9; - } + public ZipCompressor(Stream stream1) : base(stream1, new Class196(true)) + { + _delegate50 = method_9; + } - public void method_3(string password) - { - _password = password; - } + public void method_3(string password) + { + _password = password; + } - public bool method_4() - { - return _class1930 != null && _class1930.method_12(); - } + public bool method_4() + { + return _class1930 != null && _class1930.method_12(); + } - public Class193 method_5() - { - if (_class1920 == null) - { - throw new InvalidOperationException("Closed."); - } - if (_class1930 != null) - { - method_8(); - } - var num = Class2010.method_10(); - if (num != 33639248 && num != 101010256 && num != 84233040 && num != 117853008) - { - if (num != 101075792) - { - if (num == 808471376 || num == 134695760) - { - num = Class2010.method_10(); - } - if (num != 67324752) - { - throw new ZipException("Wrong Local header signature: 0x" + string.Format("{0:X}", num)); - } - var int_ = (short)Class2010.method_9(); - _int1 = Class2010.method_9(); - _int0 = Class2010.method_9(); - var num2 = (uint)Class2010.method_10(); - var num3 = Class2010.method_10(); - Long0 = Class2010.method_10(); - _long1 = Class2010.method_10(); - var num4 = Class2010.method_9(); - var num5 = Class2010.method_9(); - var flag = (_int1 & 1) == 1; - var array = new byte[num4]; - Class2010.method_5(array); - var string_ = Class186.smethod_2(_int1, array); - _class1930 = new Class193(string_, int_); - _class1930.method_5(_int1); - _class1930.method_28((Enum31)_int0); - if ((_int1 & 8) == 0) - { - _class1930.method_26(num3 & 4294967295L); - _class1930.method_22(_long1 & 4294967295L); - _class1930.method_24(Long0 & 4294967295L); - _class1930.method_3((byte)(num3 >> 24 & 255)); - } - else - { - if (num3 != 0) - { - _class1930.method_26(num3 & 4294967295L); - } - if (_long1 != 0L) - { - _class1930.method_22(_long1 & 4294967295L); - } - if (Long0 != 0L) - { - _class1930.method_24(Long0 & 4294967295L); - } - _class1930.method_3((byte)(num2 >> 8 & 255u)); - } - _class1930.method_18(num2); - if (num5 > 0) - { - var array2 = new byte[num5]; - Class2010.method_5(array2); - _class1930.method_30(array2); - } - _class1930.method_31(true); - if (_class1930.method_23() >= 0L) - { - Long0 = _class1930.method_23(); - } - if (_class1930.method_21() >= 0L) - { - _long1 = _class1930.method_21(); - } - if (_int0 == 0 && ((!flag && Long0 != _long1) || (flag && Long0 - 12L != _long1))) - { - throw new ZipException("Stored, but compressed != uncompressed"); - } - if (_class1930.method_34()) - { - _delegate50 = method_11; - } - else - { - _delegate50 = method_10; - } - return _class1930; - } - } - Close(); - return null; - } + public Class193 method_5() + { + if (_class1920 == null) + { + throw new InvalidOperationException("Closed."); + } + if (_class1930 != null) + { + method_8(); + } + var num = Class2010.method_10(); + if (num != 33639248 && num != 101010256 && num != 84233040 && num != 117853008) + { + if (num != 101075792) + { + if (num == 808471376 || num == 134695760) + { + num = Class2010.method_10(); + } + if (num != 67324752) + { + throw new ZipException("Wrong Local header signature: 0x" + string.Format("{0:X}", num)); + } + var int_ = (short) Class2010.method_9(); + _int1 = Class2010.method_9(); + _int0 = Class2010.method_9(); + var num2 = (uint) Class2010.method_10(); + var num3 = Class2010.method_10(); + Long0 = Class2010.method_10(); + _long1 = Class2010.method_10(); + var num4 = Class2010.method_9(); + var num5 = Class2010.method_9(); + var flag = (_int1 & 1) == 1; + var array = new byte[num4]; + Class2010.method_5(array); + var string_ = Class186.smethod_2(_int1, array); + _class1930 = new Class193(string_, int_); + _class1930.method_5(_int1); + _class1930.method_28((Enum31) _int0); + if ((_int1 & 8) == 0) + { + _class1930.method_26(num3 & 4294967295L); + _class1930.method_22(_long1 & 4294967295L); + _class1930.method_24(Long0 & 4294967295L); + _class1930.method_3((byte) (num3 >> 24 & 255)); + } + else + { + if (num3 != 0) + { + _class1930.method_26(num3 & 4294967295L); + } + if (_long1 != 0L) + { + _class1930.method_22(_long1 & 4294967295L); + } + if (Long0 != 0L) + { + _class1930.method_24(Long0 & 4294967295L); + } + _class1930.method_3((byte) (num2 >> 8 & 255u)); + } + _class1930.method_18(num2); + if (num5 > 0) + { + var array2 = new byte[num5]; + Class2010.method_5(array2); + _class1930.method_30(array2); + } + _class1930.method_31(true); + if (_class1930.method_23() >= 0L) + { + Long0 = _class1930.method_23(); + } + if (_class1930.method_21() >= 0L) + { + _long1 = _class1930.method_21(); + } + if (_int0 == 0 && ((!flag && Long0 != _long1) || (flag && Long0 - 12L != _long1))) + { + throw new ZipException("Stored, but compressed != uncompressed"); + } + if (_class1930.method_34()) + { + _delegate50 = method_11; + } + else + { + _delegate50 = method_10; + } + return _class1930; + } + } + Close(); + return null; + } - private void method_6() - { - if (Class2010.method_10() != 134695760) - { - throw new ZipException("Data descriptor signature not found"); - } - _class1930.method_26(Class2010.method_10() & 4294967295L); - if (_class1930.method_15()) - { - Long0 = Class2010.method_11(); - _long1 = Class2010.method_11(); - } - else - { - Long0 = Class2010.method_10(); - _long1 = Class2010.method_10(); - } - _class1930.method_24(Long0); - _class1930.method_22(_long1); - } + private void method_6() + { + if (Class2010.method_10() != 134695760) + { + throw new ZipException("Data descriptor signature not found"); + } + _class1930.method_26(Class2010.method_10() & 4294967295L); + if (_class1930.method_15()) + { + Long0 = Class2010.method_11(); + _long1 = Class2010.method_11(); + } + else + { + Long0 = Class2010.method_10(); + _long1 = Class2010.method_10(); + } + _class1930.method_24(Long0); + _class1930.method_22(_long1); + } - private void method_7(bool bool2) - { - method_1(); - if ((_int1 & 8) != 0) - { - method_6(); - } - _long1 = 0L; - if (bool2 && (_class1920.vmethod_0() & 4294967295L) != _class1930.method_25() && _class1930.method_25() != -1L) - { - throw new ZipException("CRC mismatch"); - } - _class1920.vmethod_1(); - if (_int0 == 8) - { - Class1960.method_0(); - } - _class1930 = null; - } + private void method_7(bool bool2) + { + method_1(); + if ((_int1 & 8) != 0) + { + method_6(); + } + _long1 = 0L; + if (bool2 && (_class1920.vmethod_0() & 4294967295L) != _class1930.method_25() && + _class1930.method_25() != -1L) + { + throw new ZipException("CRC mismatch"); + } + _class1920.vmethod_1(); + if (_int0 == 8) + { + Class1960.method_0(); + } + _class1930 = null; + } - public void method_8() - { - if (_class1920 == null) - { - throw new InvalidOperationException("Closed"); - } - if (_class1930 == null) - { - return; - } - if (_int0 == 8) - { - if ((_int1 & 8) != 0) - { - var array = new byte[2048]; - while (Read(array, 0, array.Length) > 0) - { - } - return; - } - Long0 -= Class1960.method_12(); - var expr67 = Class2010; - expr67.method_2(expr67.method_1() + Class1960.method_13()); - } - if (Class2010.method_1() > Long0 && Long0 >= 0L) - { - Class2010.method_2((int)(Class2010.method_1() - Long0)); - } - else - { - Long0 -= Class2010.method_1(); - Class2010.method_2(0); - while (Long0 != 0L) - { - var num = (int)method_0(Long0 & 4294967295L); - if (num <= 0) - { - throw new ZipException("Zip archive ends early."); - } - Long0 -= num; - } - } - method_7(false); - } + public void method_8() + { + if (_class1920 == null) + { + throw new InvalidOperationException("Closed"); + } + if (_class1930 == null) + { + return; + } + if (_int0 == 8) + { + if ((_int1 & 8) != 0) + { + var array = new byte[2048]; + while (Read(array, 0, array.Length) > 0) + { + } + return; + } + Long0 -= Class1960.method_12(); + var expr67 = Class2010; + expr67.method_2(expr67.method_1() + Class1960.method_13()); + } + if (Class2010.method_1() > Long0 && Long0 >= 0L) + { + Class2010.method_2((int) (Class2010.method_1() - Long0)); + } + else + { + Long0 -= Class2010.method_1(); + Class2010.method_2(0); + while (Long0 != 0L) + { + var num = (int) method_0(Long0 & 4294967295L); + if (num <= 0) + { + throw new ZipException("Zip archive ends early."); + } + Long0 -= num; + } + } + method_7(false); + } - public override int ReadByte() - { - var array = new byte[1]; - if (Read(array, 0, 1) <= 0) - { - return -1; - } - return array[0] & 255; - } + public override int ReadByte() + { + var array = new byte[1]; + if (Read(array, 0, 1) <= 0) + { + return -1; + } + return array[0] & 255; + } - private int method_9(byte[] byte0, int int2, int int3) - { - throw new InvalidOperationException("Unable to read from this stream"); - } + private int method_9(byte[] byte0, int int2, int int3) + { + throw new InvalidOperationException("Unable to read from this stream"); + } - private int method_10(byte[] byte0, int int2, int int3) - { - throw new ZipException("The compression method for this entry is not supported"); - } + private int method_10(byte[] byte0, int int2, int int3) + { + throw new ZipException("The compression method for this entry is not supported"); + } - private int method_11(byte[] byte0, int int2, int int3) - { - if (!method_4()) - { - throw new ZipException("Library cannot extract this entry. Version required is (" + _class1930.method_11() + ")"); - } - if (_class1930.method_0()) - { - if (_password == null) - { - throw new ZipException("No password set."); - } - var @class = new Class208(); - var rgbKey = Class207.smethod_0(Class186.smethod_3(_password)); - Class2010.method_12(@class.CreateDecryptor(rgbKey, null)); - var array = new byte[12]; - Class2010.method_7(array, 0, 12); - if (array[11] != _class1930.method_2()) - { - throw new ZipException("Invalid password"); - } - if (Long0 >= 12L) - { - Long0 -= 12L; - } - else if ((_class1930.method_4() & 8) == 0) - { - throw new ZipException(string.Format("Entry compressed size {0} too small for encryption", Long0)); - } - } - else - { - Class2010.method_12(null); - } - if (_int0 == 8 && Class2010.method_1() > 0) - { - Class2010.method_3(Class1960); - } - _delegate50 = method_12; - return method_12(byte0, int2, int3); - } + private int method_11(byte[] byte0, int int2, int int3) + { + if (!method_4()) + { + throw new ZipException("Library cannot extract this entry. Version required is (" + + _class1930.method_11() + ")"); + } + if (_class1930.method_0()) + { + if (_password == null) + { + throw new ZipException("No password set."); + } + var @class = new Class208(); + var rgbKey = Class207.smethod_0(Class186.smethod_3(_password)); + Class2010.method_12(@class.CreateDecryptor(rgbKey, null)); + var array = new byte[12]; + Class2010.method_7(array, 0, 12); + if (array[11] != _class1930.method_2()) + { + throw new ZipException("Invalid password"); + } + if (Long0 >= 12L) + { + Long0 -= 12L; + } + else if ((_class1930.method_4() & 8) == 0) + { + throw new ZipException(string.Format("Entry compressed size {0} too small for encryption", Long0)); + } + } + else + { + Class2010.method_12(null); + } + if (_int0 == 8 && Class2010.method_1() > 0) + { + Class2010.method_3(Class1960); + } + _delegate50 = method_12; + return method_12(byte0, int2, int3); + } - public override int Read(byte[] buffer, int offset, int count) - { - if (buffer == null) - { - throw new ArgumentNullException("buffer"); - } - if (offset < 0) - { - throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); - } - if (count < 0) - { - throw new ArgumentOutOfRangeException("count", "Cannot be negative"); - } - if (buffer.Length - offset < count) - { - throw new ArgumentException("Invalid offset/count combination"); - } - return _delegate50(buffer, offset, count); - } + public override int Read(byte[] buffer, int offset, int count) + { + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0) + { + throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); + } + if (count < 0) + { + throw new ArgumentOutOfRangeException("count", "Cannot be negative"); + } + if (buffer.Length - offset < count) + { + throw new ArgumentException("Invalid offset/count combination"); + } + return _delegate50(buffer, offset, count); + } - private int method_12(byte[] byte0, int int2, int int3) - { - if (_class1920 == null) - { - throw new InvalidOperationException("Closed"); - } - if (_class1930 == null || int3 <= 0) - { - return 0; - } - if (int2 + int3 > byte0.Length) - { - throw new ArgumentException("Offset + count exceeds buffer size"); - } - var flag = false; - var num = _int0; - if (num != 0) - { - if (num == 8) - { - int3 = base.Read(byte0, int2, int3); - if (int3 <= 0) - { - if (!Class1960.method_10()) - { - throw new ZipException("Inflater not finished!"); - } - Class2010.method_2(Class1960.method_13()); - if ((_int1 & 8) == 0 && (Class1960.method_12() != Long0 || Class1960.method_11() != _long1)) - { - throw new ZipException(string.Concat("Size mismatch: ", Long0, ";", _long1, " <-> ", Class1960.method_12(), ";", Class1960.method_11())); - } - Class1960.method_0(); - flag = true; - } - } - } - else - { - if (int3 > Long0 && Long0 >= 0L) - { - int3 = (int)Long0; - } - if (int3 > 0) - { - int3 = Class2010.method_7(byte0, int2, int3); - if (int3 > 0) - { - Long0 -= int3; - _long1 -= int3; - } - } - if (Long0 == 0L) - { - flag = true; - } - else if (int3 < 0) - { - throw new ZipException("EOF in stored block"); - } - } - if (int3 > 0) - { - _class1920.vmethod_3(byte0, int2, int3); - } - if (flag) - { - method_7(true); - } - return int3; - } + private int method_12(byte[] byte0, int int2, int int3) + { + if (_class1920 == null) + { + throw new InvalidOperationException("Closed"); + } + if (_class1930 == null || int3 <= 0) + { + return 0; + } + if (int2 + int3 > byte0.Length) + { + throw new ArgumentException("Offset + count exceeds buffer size"); + } + var flag = false; + var num = _int0; + if (num != 0) + { + if (num == 8) + { + int3 = base.Read(byte0, int2, int3); + if (int3 <= 0) + { + if (!Class1960.method_10()) + { + throw new ZipException("Inflater not finished!"); + } + Class2010.method_2(Class1960.method_13()); + if ((_int1 & 8) == 0 && (Class1960.method_12() != Long0 || Class1960.method_11() != _long1)) + { + throw new ZipException(string.Concat("Size mismatch: ", Long0, ";", _long1, " <-> ", + Class1960.method_12(), ";", Class1960.method_11())); + } + Class1960.method_0(); + flag = true; + } + } + } + else + { + if (int3 > Long0 && Long0 >= 0L) + { + int3 = (int) Long0; + } + if (int3 > 0) + { + int3 = Class2010.method_7(byte0, int2, int3); + if (int3 > 0) + { + Long0 -= int3; + _long1 -= int3; + } + } + if (Long0 == 0L) + { + flag = true; + } + else if (int3 < 0) + { + throw new ZipException("EOF in stored block"); + } + } + if (int3 > 0) + { + _class1920.vmethod_3(byte0, int2, int3); + } + if (flag) + { + method_7(true); + } + return int3; + } - public override void Close() - { - _delegate50 = method_9; - _class1920 = null; - _class1930 = null; - base.Close(); - } - } -} + public override void Close() + { + _delegate50 = method_9; + _class1920 = null; + _class1930 = null; + base.Close(); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class190.cs b/GHNamespace6/Class190.cs index bacfbae..70a67a3 100644 --- a/GHNamespace6/Class190.cs +++ b/GHNamespace6/Class190.cs @@ -4,679 +4,678 @@ namespace GHNamespace6 { - public class Class190 - { - private class Class191 - { - public readonly short[] Short0; - - public byte[] Byte0; - - public readonly int Int0; - - public int Int1; - - private short[] _short1; - - private readonly int[] _int2; - - private readonly int _int3; - - private readonly Class190 _class1900; - - public Class191(Class190 class1901, int int4, int int5, int int6) - { - _class1900 = class1901; - Int0 = int5; - _int3 = int6; - Short0 = new short[int4]; - _int2 = new int[int6]; - } - - public void method_0() - { - for (var i = 0; i < Short0.Length; i++) - { - Short0[i] = 0; - } - _short1 = null; - Byte0 = null; - } - - public void method_1(int int4) - { - _class1900.Class1890.method_5(_short1[int4] & 65535, Byte0[int4]); - } - - public void method_2(short[] short2, byte[] byte1) - { - _short1 = short2; - Byte0 = byte1; - } - - public void method_3() - { - var array = new int[_int3]; - var num = 0; - _short1 = new short[Short0.Length]; - for (var i = 0; i < _int3; i++) - { - array[i] = num; - num += _int2[i] << 15 - i; - } - for (var j = 0; j < Int1; j++) - { - int num2 = Byte0[j]; - if (num2 > 0) - { - _short1[j] = smethod_0(array[num2 - 1]); - array[num2 - 1] += 1 << 16 - num2; - } - } - } - - public void method_4() - { - var num = Short0.Length; - var array = new int[num]; - var i = 0; - var num2 = 0; - for (var j = 0; j < num; j++) - { - int num3 = Short0[j]; - if (num3 != 0) - { - var num4 = i++; - int num5; - while (num4 > 0 && Short0[array[num5 = (num4 - 1) / 2]] > num3) - { - array[num4] = array[num5]; - num4 = num5; - } - array[num4] = j; - num2 = j; - } - } - while (i < 2) - { - var num6 = (num2 < 2) ? (++num2) : 0; - array[i++] = num6; - } - Int1 = Math.Max(num2 + 1, Int0); - var num7 = i; - var array2 = new int[4 * i - 2]; - var array3 = new int[2 * i - 1]; - var num8 = num7; - for (var k = 0; k < i; k++) - { - var num9 = array[k]; - array2[2 * k] = num9; - array2[2 * k + 1] = -1; - array3[k] = Short0[num9] << 8; - array[k] = k; - } - do - { - var num10 = array[0]; - var num11 = array[--i]; - var num12 = 0; - int l; - for (l = 1; l < i; l = l * 2 + 1) - { - if (l + 1 < i && array3[array[l]] > array3[array[l + 1]]) - { - l++; - } - array[num12] = array[l]; - num12 = l; - } - var num13 = array3[num11]; - while ((l = num12) > 0 && array3[array[num12 = (l - 1) / 2]] > num13) - { - array[l] = array[num12]; - } - array[l] = num11; - var num14 = array[0]; - num11 = num8++; - array2[2 * num11] = num10; - array2[2 * num11 + 1] = num14; - var num15 = Math.Min(array3[num10] & 255, array3[num14] & 255); - num13 = (array3[num11] = array3[num10] + array3[num14] - num15 + 1); - num12 = 0; - for (l = 1; l < i; l = num12 * 2 + 1) - { - if (l + 1 < i && array3[array[l]] > array3[array[l + 1]]) - { - l++; - } - array[num12] = array[l]; - num12 = l; - } - while ((l = num12) > 0 && array3[array[num12 = (l - 1) / 2]] > num13) - { - array[l] = array[num12]; - } - array[l] = num11; - } - while (i > 1); - if (array[0] != array2.Length / 2 - 1) - { - throw new SharpZipBaseException("Heap invariant violated"); - } - method_8(array2); - } - - public int method_5() - { - var num = 0; - for (var i = 0; i < Short0.Length; i++) - { - num += Short0[i] * Byte0[i]; - } - return num; - } - - public void method_6(Class191 class1910) - { - var num = -1; - var i = 0; - while (i < Int1) - { - var num2 = 1; - int num3 = Byte0[i]; - int num4; - int num5; - if (num3 == 0) - { - num4 = 138; - num5 = 3; - } - else - { - num4 = 6; - num5 = 3; - if (num != num3) - { - var expr_3BCp0 = class1910.Short0; - var expr_3BCp1 = num3; - expr_3BCp0[expr_3BCp1] += 1; - num2 = 0; - } - } - num = num3; - i++; - while (i < Int1) - { - if (num != Byte0[i]) - { - break; - } - i++; - if (++num2 >= num4) - { - break; - } - } - if (num2 < num5) - { - var expr_8CCp0 = class1910.Short0; - var expr_8CCp1 = num; - expr_8CCp0[expr_8CCp1] += (short)num2; - } - else if (num != 0) - { - var exprAdCp0 = class1910.Short0; - var exprAdCp1 = 16; - exprAdCp0[exprAdCp1] += 1; - } - else if (num2 <= 10) - { - var exprCfCp0 = class1910.Short0; - var exprCfCp1 = 17; - exprCfCp0[exprCfCp1] += 1; - } - else - { - var exprEcCp0 = class1910.Short0; - var exprEcCp1 = 18; - exprEcCp0[exprEcCp1] += 1; - } - } - } - - public void method_7(Class191 class1910) - { - var num = -1; - var i = 0; - while (i < Int1) - { - var num2 = 1; - int num3 = Byte0[i]; - int num4; - int num5; - if (num3 == 0) - { - num4 = 138; - num5 = 3; - } - else - { - num4 = 6; - num5 = 3; - if (num != num3) - { - class1910.method_1(num3); - num2 = 0; - } - } - num = num3; - i++; - while (i < Int1) - { - if (num != Byte0[i]) - { - break; - } - i++; - if (++num2 >= num4) - { - break; - } - } - if (num2 < num5) - { - while (num2-- > 0) - { - class1910.method_1(num); - } - } - else if (num != 0) - { - class1910.method_1(16); - _class1900.Class1890.method_5(num2 - 3, 2); - } - else if (num2 <= 10) - { - class1910.method_1(17); - _class1900.Class1890.method_5(num2 - 3, 3); - } - else - { - class1910.method_1(18); - _class1900.Class1890.method_5(num2 - 11, 7); - } - } - } - - private void method_8(int[] int4) - { - Byte0 = new byte[Short0.Length]; - var num = int4.Length / 2; - var num2 = (num + 1) / 2; - var num3 = 0; - for (var i = 0; i < _int3; i++) - { - _int2[i] = 0; - } - var array = new int[num]; - array[num - 1] = 0; - for (var j = num - 1; j >= 0; j--) - { - if (int4[2 * j + 1] != -1) - { - var num4 = array[j] + 1; - if (num4 > _int3) - { - num4 = _int3; - num3++; - } - array[int4[2 * j]] = (array[int4[2 * j + 1]] = num4); - } - else - { - var num5 = array[j]; - _int2[num5 - 1]++; - Byte0[int4[2 * j]] = (byte)array[j]; - } - } - if (num3 == 0) - { - return; - } - var num6 = _int3 - 1; - while (true) - { - if (_int2[--num6] != 0) - { - do - { - _int2[num6]--; - _int2[++num6]++; - num3 -= 1 << _int3 - 1 - num6; - } - while (num3 > 0 && num6 < _int3 - 1); - if (num3 <= 0) - { - break; - } - } - } - _int2[_int3 - 1] += num3; - _int2[_int3 - 2] -= num3; - var num7 = 2 * num2; - for (var num8 = _int3; num8 != 0; num8--) - { - var k = _int2[num8 - 1]; - while (k > 0) - { - var num9 = 2 * int4[num7++]; - if (int4[num9 + 1] == -1) - { - Byte0[int4[num9]] = (byte)num8; - k--; - } - } - } - } - } - - private static readonly int[] Int0; - - private static readonly byte[] Byte0; - - private static readonly short[] Short0; - - private static readonly byte[] Byte1; - - private static readonly short[] Short1; - - private static readonly byte[] Byte2; - - public Class189 Class1890; - - private readonly Class191 _class1910; - - private readonly Class191 _class1911; - - private readonly Class191 _class1912; - - private readonly short[] _short2; - - private readonly byte[] _byte3; - - private int _int1; - - private int _int2; - - static Class190() - { - Int0 = new[] - { - 16, - 17, - 18, - 0, - 8, - 7, - 9, - 6, - 10, - 5, - 11, - 4, - 12, - 3, - 13, - 2, - 14, - 1, - 15 - }; - Byte0 = new byte[] - { - 0, - 8, - 4, - 12, - 2, - 10, - 6, - 14, - 1, - 9, - 5, - 13, - 3, - 11, - 7, - 15 - }; - Short0 = new short[286]; - Byte1 = new byte[286]; - var i = 0; - while (i < 144) - { - Short0[i] = smethod_0(48 + i << 8); - Byte1[i++] = 8; - } - while (i < 256) - { - Short0[i] = smethod_0(256 + i << 7); - Byte1[i++] = 9; - } - while (i < 280) - { - Short0[i] = smethod_0(-256 + i << 9); - Byte1[i++] = 7; - } - while (i < 286) - { - Short0[i] = smethod_0(-88 + i << 8); - Byte1[i++] = 8; - } - Short1 = new short[30]; - Byte2 = new byte[30]; - for (i = 0; i < 30; i++) - { - Short1[i] = smethod_0(i << 11); - Byte2[i] = 5; - } - } - - public Class190(Class189 class1891) - { - Class1890 = class1891; - _class1910 = new Class191(this, 286, 257, 15); - _class1911 = new Class191(this, 30, 1, 15); - _class1912 = new Class191(this, 19, 4, 7); - _short2 = new short[16384]; - _byte3 = new byte[16384]; - } - - public void method_0() - { - _int1 = 0; - _int2 = 0; - _class1910.method_0(); - _class1911.method_0(); - _class1912.method_0(); - } - - public void method_1(int int3) - { - _class1912.method_3(); - _class1910.method_3(); - _class1911.method_3(); - Class1890.method_5(_class1910.Int1 - 257, 5); - Class1890.method_5(_class1911.Int1 - 1, 5); - Class1890.method_5(int3 - 4, 4); - for (var i = 0; i < int3; i++) - { - Class1890.method_5(_class1912.Byte0[Int0[i]], 3); - } - _class1910.method_7(_class1912); - _class1911.method_7(_class1912); - } - - public void method_2() - { - for (var i = 0; i < _int1; i++) - { - var num = _byte3[i] & 255; - int num2 = _short2[i]; - if (num2-- != 0) - { - var num3 = smethod_1(num); - _class1910.method_1(num3); - var num4 = (num3 - 261) / 4; - if (num4 > 0 && num4 <= 5) - { - Class1890.method_5(num & (1 << num4) - 1, num4); - } - var num5 = smethod_2(num2); - _class1911.method_1(num5); - num4 = num5 / 2 - 1; - if (num4 > 0) - { - Class1890.method_5(num2 & (1 << num4) - 1, num4); - } - } - else - { - _class1910.method_1(num); - } - } - _class1910.method_1(256); - } - - public void method_3(byte[] byte4, int int3, int int4, bool bool0) - { - Class1890.method_5(bool0 ? 1 : 0, 3); - Class1890.method_4(); - Class1890.method_1(int4); - Class1890.method_1(~int4); - Class1890.method_2(byte4, int3, int4); - method_0(); - } - - public void method_4(byte[] byte4, int int3, int int4, bool bool0) - { - var expr15Cp0 = _class1910.Short0; - var expr15Cp1 = 256; - expr15Cp0[expr15Cp1] += 1; - _class1910.method_4(); - _class1911.method_4(); - _class1910.method_6(_class1912); - _class1911.method_6(_class1912); - _class1912.method_4(); - var num = 4; - for (var i = 18; i > num; i--) - { - if (_class1912.Byte0[Int0[i]] > 0) - { - num = i + 1; - } - } - var num2 = 14 + num * 3 + _class1912.method_5() + _class1910.method_5() + _class1911.method_5() + _int2; - var num3 = _int2; - for (var j = 0; j < 286; j++) - { - num3 += _class1910.Short0[j] * Byte1[j]; - } - for (var k = 0; k < 30; k++) - { - num3 += _class1911.Short0[k] * Byte2[k]; - } - if (num2 >= num3) - { - num2 = num3; - } - if (int3 >= 0 && int4 + 4 < num2 >> 3) - { - method_3(byte4, int3, int4, bool0); - return; - } - if (num2 == num3) - { - Class1890.method_5(2 + (bool0 ? 1 : 0), 3); - _class1910.method_2(Short0, Byte1); - _class1911.method_2(Short1, Byte2); - method_2(); - method_0(); - return; - } - Class1890.method_5(4 + (bool0 ? 1 : 0), 3); - method_1(num); - method_2(); - method_0(); - } - - public bool method_5() - { - return _int1 >= 16384; - } - - public bool method_6(int int3) - { - _short2[_int1] = 0; - _byte3[_int1++] = (byte)int3; - var expr39Cp0 = _class1910.Short0; - expr39Cp0[int3] += 1; - return method_5(); - } - - public bool method_7(int int3, int int4) - { - _short2[_int1] = (short)int3; - _byte3[_int1++] = (byte)(int4 - 3); - var num = smethod_1(int4 - 3); - var expr45Cp0 = _class1910.Short0; - var expr45Cp1 = num; - expr45Cp0[expr45Cp1] += 1; - if (num >= 265 && num < 285) - { - _int2 += (num - 261) / 4; - } - var num2 = smethod_2(int3 - 1); - var expr93Cp0 = _class1911.Short0; - var expr93Cp1 = num2; - expr93Cp0[expr93Cp1] += 1; - if (num2 >= 4) - { - _int2 += num2 / 2 - 1; - } - return method_5(); - } - - public static short smethod_0(int int3) - { - return (short)(Byte0[int3 & 15] << 12 | Byte0[int3 >> 4 & 15] << 8 | Byte0[int3 >> 8 & 15] << 4 | Byte0[int3 >> 12]); - } - - private static int smethod_1(int int3) - { - if (int3 == 255) - { - return 285; - } - var num = 257; - while (int3 >= 8) - { - num += 4; - int3 >>= 1; - } - return num + int3; - } - - private static int smethod_2(int int3) - { - var num = 0; - while (int3 >= 4) - { - num += 2; - int3 >>= 1; - } - return num + int3; - } - } -} + public class Class190 + { + private class Class191 + { + public readonly short[] Short0; + + public byte[] Byte0; + + public readonly int Int0; + + public int Int1; + + private short[] _short1; + + private readonly int[] _int2; + + private readonly int _int3; + + private readonly Class190 _class1900; + + public Class191(Class190 class1901, int int4, int int5, int int6) + { + _class1900 = class1901; + Int0 = int5; + _int3 = int6; + Short0 = new short[int4]; + _int2 = new int[int6]; + } + + public void method_0() + { + for (var i = 0; i < Short0.Length; i++) + { + Short0[i] = 0; + } + _short1 = null; + Byte0 = null; + } + + public void method_1(int int4) + { + _class1900.Class1890.method_5(_short1[int4] & 65535, Byte0[int4]); + } + + public void method_2(short[] short2, byte[] byte1) + { + _short1 = short2; + Byte0 = byte1; + } + + public void method_3() + { + var array = new int[_int3]; + var num = 0; + _short1 = new short[Short0.Length]; + for (var i = 0; i < _int3; i++) + { + array[i] = num; + num += _int2[i] << 15 - i; + } + for (var j = 0; j < Int1; j++) + { + int num2 = Byte0[j]; + if (num2 > 0) + { + _short1[j] = smethod_0(array[num2 - 1]); + array[num2 - 1] += 1 << 16 - num2; + } + } + } + + public void method_4() + { + var num = Short0.Length; + var array = new int[num]; + var i = 0; + var num2 = 0; + for (var j = 0; j < num; j++) + { + int num3 = Short0[j]; + if (num3 != 0) + { + var num4 = i++; + int num5; + while (num4 > 0 && Short0[array[num5 = (num4 - 1) / 2]] > num3) + { + array[num4] = array[num5]; + num4 = num5; + } + array[num4] = j; + num2 = j; + } + } + while (i < 2) + { + var num6 = (num2 < 2) ? (++num2) : 0; + array[i++] = num6; + } + Int1 = Math.Max(num2 + 1, Int0); + var num7 = i; + var array2 = new int[4 * i - 2]; + var array3 = new int[2 * i - 1]; + var num8 = num7; + for (var k = 0; k < i; k++) + { + var num9 = array[k]; + array2[2 * k] = num9; + array2[2 * k + 1] = -1; + array3[k] = Short0[num9] << 8; + array[k] = k; + } + do + { + var num10 = array[0]; + var num11 = array[--i]; + var num12 = 0; + int l; + for (l = 1; l < i; l = l * 2 + 1) + { + if (l + 1 < i && array3[array[l]] > array3[array[l + 1]]) + { + l++; + } + array[num12] = array[l]; + num12 = l; + } + var num13 = array3[num11]; + while ((l = num12) > 0 && array3[array[num12 = (l - 1) / 2]] > num13) + { + array[l] = array[num12]; + } + array[l] = num11; + var num14 = array[0]; + num11 = num8++; + array2[2 * num11] = num10; + array2[2 * num11 + 1] = num14; + var num15 = Math.Min(array3[num10] & 255, array3[num14] & 255); + num13 = (array3[num11] = array3[num10] + array3[num14] - num15 + 1); + num12 = 0; + for (l = 1; l < i; l = num12 * 2 + 1) + { + if (l + 1 < i && array3[array[l]] > array3[array[l + 1]]) + { + l++; + } + array[num12] = array[l]; + num12 = l; + } + while ((l = num12) > 0 && array3[array[num12 = (l - 1) / 2]] > num13) + { + array[l] = array[num12]; + } + array[l] = num11; + } while (i > 1); + if (array[0] != array2.Length / 2 - 1) + { + throw new SharpZipBaseException("Heap invariant violated"); + } + method_8(array2); + } + + public int method_5() + { + var num = 0; + for (var i = 0; i < Short0.Length; i++) + { + num += Short0[i] * Byte0[i]; + } + return num; + } + + public void method_6(Class191 class1910) + { + var num = -1; + var i = 0; + while (i < Int1) + { + var num2 = 1; + int num3 = Byte0[i]; + int num4; + int num5; + if (num3 == 0) + { + num4 = 138; + num5 = 3; + } + else + { + num4 = 6; + num5 = 3; + if (num != num3) + { + var expr_3BCp0 = class1910.Short0; + var expr_3BCp1 = num3; + expr_3BCp0[expr_3BCp1] += 1; + num2 = 0; + } + } + num = num3; + i++; + while (i < Int1) + { + if (num != Byte0[i]) + { + break; + } + i++; + if (++num2 >= num4) + { + break; + } + } + if (num2 < num5) + { + var expr_8CCp0 = class1910.Short0; + var expr_8CCp1 = num; + expr_8CCp0[expr_8CCp1] += (short) num2; + } + else if (num != 0) + { + var exprAdCp0 = class1910.Short0; + var exprAdCp1 = 16; + exprAdCp0[exprAdCp1] += 1; + } + else if (num2 <= 10) + { + var exprCfCp0 = class1910.Short0; + var exprCfCp1 = 17; + exprCfCp0[exprCfCp1] += 1; + } + else + { + var exprEcCp0 = class1910.Short0; + var exprEcCp1 = 18; + exprEcCp0[exprEcCp1] += 1; + } + } + } + + public void method_7(Class191 class1910) + { + var num = -1; + var i = 0; + while (i < Int1) + { + var num2 = 1; + int num3 = Byte0[i]; + int num4; + int num5; + if (num3 == 0) + { + num4 = 138; + num5 = 3; + } + else + { + num4 = 6; + num5 = 3; + if (num != num3) + { + class1910.method_1(num3); + num2 = 0; + } + } + num = num3; + i++; + while (i < Int1) + { + if (num != Byte0[i]) + { + break; + } + i++; + if (++num2 >= num4) + { + break; + } + } + if (num2 < num5) + { + while (num2-- > 0) + { + class1910.method_1(num); + } + } + else if (num != 0) + { + class1910.method_1(16); + _class1900.Class1890.method_5(num2 - 3, 2); + } + else if (num2 <= 10) + { + class1910.method_1(17); + _class1900.Class1890.method_5(num2 - 3, 3); + } + else + { + class1910.method_1(18); + _class1900.Class1890.method_5(num2 - 11, 7); + } + } + } + + private void method_8(int[] int4) + { + Byte0 = new byte[Short0.Length]; + var num = int4.Length / 2; + var num2 = (num + 1) / 2; + var num3 = 0; + for (var i = 0; i < _int3; i++) + { + _int2[i] = 0; + } + var array = new int[num]; + array[num - 1] = 0; + for (var j = num - 1; j >= 0; j--) + { + if (int4[2 * j + 1] != -1) + { + var num4 = array[j] + 1; + if (num4 > _int3) + { + num4 = _int3; + num3++; + } + array[int4[2 * j]] = (array[int4[2 * j + 1]] = num4); + } + else + { + var num5 = array[j]; + _int2[num5 - 1]++; + Byte0[int4[2 * j]] = (byte) array[j]; + } + } + if (num3 == 0) + { + return; + } + var num6 = _int3 - 1; + while (true) + { + if (_int2[--num6] != 0) + { + do + { + _int2[num6]--; + _int2[++num6]++; + num3 -= 1 << _int3 - 1 - num6; + } while (num3 > 0 && num6 < _int3 - 1); + if (num3 <= 0) + { + break; + } + } + } + _int2[_int3 - 1] += num3; + _int2[_int3 - 2] -= num3; + var num7 = 2 * num2; + for (var num8 = _int3; num8 != 0; num8--) + { + var k = _int2[num8 - 1]; + while (k > 0) + { + var num9 = 2 * int4[num7++]; + if (int4[num9 + 1] == -1) + { + Byte0[int4[num9]] = (byte) num8; + k--; + } + } + } + } + } + + private static readonly int[] Int0; + + private static readonly byte[] Byte0; + + private static readonly short[] Short0; + + private static readonly byte[] Byte1; + + private static readonly short[] Short1; + + private static readonly byte[] Byte2; + + public Class189 Class1890; + + private readonly Class191 _class1910; + + private readonly Class191 _class1911; + + private readonly Class191 _class1912; + + private readonly short[] _short2; + + private readonly byte[] _byte3; + + private int _int1; + + private int _int2; + + static Class190() + { + Int0 = new[] + { + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15 + }; + Byte0 = new byte[] + { + 0, + 8, + 4, + 12, + 2, + 10, + 6, + 14, + 1, + 9, + 5, + 13, + 3, + 11, + 7, + 15 + }; + Short0 = new short[286]; + Byte1 = new byte[286]; + var i = 0; + while (i < 144) + { + Short0[i] = smethod_0(48 + i << 8); + Byte1[i++] = 8; + } + while (i < 256) + { + Short0[i] = smethod_0(256 + i << 7); + Byte1[i++] = 9; + } + while (i < 280) + { + Short0[i] = smethod_0(-256 + i << 9); + Byte1[i++] = 7; + } + while (i < 286) + { + Short0[i] = smethod_0(-88 + i << 8); + Byte1[i++] = 8; + } + Short1 = new short[30]; + Byte2 = new byte[30]; + for (i = 0; i < 30; i++) + { + Short1[i] = smethod_0(i << 11); + Byte2[i] = 5; + } + } + + public Class190(Class189 class1891) + { + Class1890 = class1891; + _class1910 = new Class191(this, 286, 257, 15); + _class1911 = new Class191(this, 30, 1, 15); + _class1912 = new Class191(this, 19, 4, 7); + _short2 = new short[16384]; + _byte3 = new byte[16384]; + } + + public void method_0() + { + _int1 = 0; + _int2 = 0; + _class1910.method_0(); + _class1911.method_0(); + _class1912.method_0(); + } + + public void method_1(int int3) + { + _class1912.method_3(); + _class1910.method_3(); + _class1911.method_3(); + Class1890.method_5(_class1910.Int1 - 257, 5); + Class1890.method_5(_class1911.Int1 - 1, 5); + Class1890.method_5(int3 - 4, 4); + for (var i = 0; i < int3; i++) + { + Class1890.method_5(_class1912.Byte0[Int0[i]], 3); + } + _class1910.method_7(_class1912); + _class1911.method_7(_class1912); + } + + public void method_2() + { + for (var i = 0; i < _int1; i++) + { + var num = _byte3[i] & 255; + int num2 = _short2[i]; + if (num2-- != 0) + { + var num3 = smethod_1(num); + _class1910.method_1(num3); + var num4 = (num3 - 261) / 4; + if (num4 > 0 && num4 <= 5) + { + Class1890.method_5(num & (1 << num4) - 1, num4); + } + var num5 = smethod_2(num2); + _class1911.method_1(num5); + num4 = num5 / 2 - 1; + if (num4 > 0) + { + Class1890.method_5(num2 & (1 << num4) - 1, num4); + } + } + else + { + _class1910.method_1(num); + } + } + _class1910.method_1(256); + } + + public void method_3(byte[] byte4, int int3, int int4, bool bool0) + { + Class1890.method_5(bool0 ? 1 : 0, 3); + Class1890.method_4(); + Class1890.method_1(int4); + Class1890.method_1(~int4); + Class1890.method_2(byte4, int3, int4); + method_0(); + } + + public void method_4(byte[] byte4, int int3, int int4, bool bool0) + { + var expr15Cp0 = _class1910.Short0; + var expr15Cp1 = 256; + expr15Cp0[expr15Cp1] += 1; + _class1910.method_4(); + _class1911.method_4(); + _class1910.method_6(_class1912); + _class1911.method_6(_class1912); + _class1912.method_4(); + var num = 4; + for (var i = 18; i > num; i--) + { + if (_class1912.Byte0[Int0[i]] > 0) + { + num = i + 1; + } + } + var num2 = 14 + num * 3 + _class1912.method_5() + _class1910.method_5() + _class1911.method_5() + _int2; + var num3 = _int2; + for (var j = 0; j < 286; j++) + { + num3 += _class1910.Short0[j] * Byte1[j]; + } + for (var k = 0; k < 30; k++) + { + num3 += _class1911.Short0[k] * Byte2[k]; + } + if (num2 >= num3) + { + num2 = num3; + } + if (int3 >= 0 && int4 + 4 < num2 >> 3) + { + method_3(byte4, int3, int4, bool0); + return; + } + if (num2 == num3) + { + Class1890.method_5(2 + (bool0 ? 1 : 0), 3); + _class1910.method_2(Short0, Byte1); + _class1911.method_2(Short1, Byte2); + method_2(); + method_0(); + return; + } + Class1890.method_5(4 + (bool0 ? 1 : 0), 3); + method_1(num); + method_2(); + method_0(); + } + + public bool method_5() + { + return _int1 >= 16384; + } + + public bool method_6(int int3) + { + _short2[_int1] = 0; + _byte3[_int1++] = (byte) int3; + var expr39Cp0 = _class1910.Short0; + expr39Cp0[int3] += 1; + return method_5(); + } + + public bool method_7(int int3, int int4) + { + _short2[_int1] = (short) int3; + _byte3[_int1++] = (byte) (int4 - 3); + var num = smethod_1(int4 - 3); + var expr45Cp0 = _class1910.Short0; + var expr45Cp1 = num; + expr45Cp0[expr45Cp1] += 1; + if (num >= 265 && num < 285) + { + _int2 += (num - 261) / 4; + } + var num2 = smethod_2(int3 - 1); + var expr93Cp0 = _class1911.Short0; + var expr93Cp1 = num2; + expr93Cp0[expr93Cp1] += 1; + if (num2 >= 4) + { + _int2 += num2 / 2 - 1; + } + return method_5(); + } + + public static short smethod_0(int int3) + { + return (short) (Byte0[int3 & 15] << 12 | Byte0[int3 >> 4 & 15] << 8 | Byte0[int3 >> 8 & 15] << 4 | + Byte0[int3 >> 12]); + } + + private static int smethod_1(int int3) + { + if (int3 == 255) + { + return 285; + } + var num = 257; + while (int3 >= 8) + { + num += 4; + int3 >>= 1; + } + return num + int3; + } + + private static int smethod_2(int int3) + { + var num = 0; + while (int3 >= 4) + { + num += 2; + int3 >>= 1; + } + return num + int3; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class192.cs b/GHNamespace6/Class192.cs index 5073820..656ce4e 100644 --- a/GHNamespace6/Class192.cs +++ b/GHNamespace6/Class192.cs @@ -2,316 +2,317 @@ namespace GHNamespace6 { - public class Class192 - { - private static readonly uint Uint0 = 4294967295u; + public class Class192 + { + private static readonly uint Uint0 = 4294967295u; - private static readonly uint[] Uint1 = { - 0u, - 1996959894u, - 3993919788u, - 2567524794u, - 124634137u, - 1886057615u, - 3915621685u, - 2657392035u, - 249268274u, - 2044508324u, - 3772115230u, - 2547177864u, - 162941995u, - 2125561021u, - 3887607047u, - 2428444049u, - 498536548u, - 1789927666u, - 4089016648u, - 2227061214u, - 450548861u, - 1843258603u, - 4107580753u, - 2211677639u, - 325883990u, - 1684777152u, - 4251122042u, - 2321926636u, - 335633487u, - 1661365465u, - 4195302755u, - 2366115317u, - 997073096u, - 1281953886u, - 3579855332u, - 2724688242u, - 1006888145u, - 1258607687u, - 3524101629u, - 2768942443u, - 901097722u, - 1119000684u, - 3686517206u, - 2898065728u, - 853044451u, - 1172266101u, - 3705015759u, - 2882616665u, - 651767980u, - 1373503546u, - 3369554304u, - 3218104598u, - 565507253u, - 1454621731u, - 3485111705u, - 3099436303u, - 671266974u, - 1594198024u, - 3322730930u, - 2970347812u, - 795835527u, - 1483230225u, - 3244367275u, - 3060149565u, - 1994146192u, - 31158534u, - 2563907772u, - 4023717930u, - 1907459465u, - 112637215u, - 2680153253u, - 3904427059u, - 2013776290u, - 251722036u, - 2517215374u, - 3775830040u, - 2137656763u, - 141376813u, - 2439277719u, - 3865271297u, - 1802195444u, - 476864866u, - 2238001368u, - 4066508878u, - 1812370925u, - 453092731u, - 2181625025u, - 4111451223u, - 1706088902u, - 314042704u, - 2344532202u, - 4240017532u, - 1658658271u, - 366619977u, - 2362670323u, - 4224994405u, - 1303535960u, - 984961486u, - 2747007092u, - 3569037538u, - 1256170817u, - 1037604311u, - 2765210733u, - 3554079995u, - 1131014506u, - 879679996u, - 2909243462u, - 3663771856u, - 1141124467u, - 855842277u, - 2852801631u, - 3708648649u, - 1342533948u, - 654459306u, - 3188396048u, - 3373015174u, - 1466479909u, - 544179635u, - 3110523913u, - 3462522015u, - 1591671054u, - 702138776u, - 2966460450u, - 3352799412u, - 1504918807u, - 783551873u, - 3082640443u, - 3233442989u, - 3988292384u, - 2596254646u, - 62317068u, - 1957810842u, - 3939845945u, - 2647816111u, - 81470997u, - 1943803523u, - 3814918930u, - 2489596804u, - 225274430u, - 2053790376u, - 3826175755u, - 2466906013u, - 167816743u, - 2097651377u, - 4027552580u, - 2265490386u, - 503444072u, - 1762050814u, - 4150417245u, - 2154129355u, - 426522225u, - 1852507879u, - 4275313526u, - 2312317920u, - 282753626u, - 1742555852u, - 4189708143u, - 2394877945u, - 397917763u, - 1622183637u, - 3604390888u, - 2714866558u, - 953729732u, - 1340076626u, - 3518719985u, - 2797360999u, - 1068828381u, - 1219638859u, - 3624741850u, - 2936675148u, - 906185462u, - 1090812512u, - 3747672003u, - 2825379669u, - 829329135u, - 1181335161u, - 3412177804u, - 3160834842u, - 628085408u, - 1382605366u, - 3423369109u, - 3138078467u, - 570562233u, - 1426400815u, - 3317316542u, - 2998733608u, - 733239954u, - 1555261956u, - 3268935591u, - 3050360625u, - 752459403u, - 1541320221u, - 2607071920u, - 3965973030u, - 1969922972u, - 40735498u, - 2617837225u, - 3943577151u, - 1913087877u, - 83908371u, - 2512341634u, - 3803740692u, - 2075208622u, - 213261112u, - 2463272603u, - 3855990285u, - 2094854071u, - 198958881u, - 2262029012u, - 4057260610u, - 1759359992u, - 534414190u, - 2176718541u, - 4139329115u, - 1873836001u, - 414664567u, - 2282248934u, - 4279200368u, - 1711684554u, - 285281116u, - 2405801727u, - 4167216745u, - 1634467795u, - 376229701u, - 2685067896u, - 3608007406u, - 1308918612u, - 956543938u, - 2808555105u, - 3495958263u, - 1231636301u, - 1047427035u, - 2932959818u, - 3654703836u, - 1088359270u, - 936918000u, - 2847714899u, - 3736837829u, - 1202900863u, - 817233897u, - 3183342108u, - 3401237130u, - 1404277552u, - 615818150u, - 3134207493u, - 3453421203u, - 1423857449u, - 601450431u, - 3009837614u, - 3294710456u, - 1567103746u, - 711928724u, - 3020668471u, - 3272380065u, - 1510334235u, - 755167117u - }; + private static readonly uint[] Uint1 = + { + 0u, + 1996959894u, + 3993919788u, + 2567524794u, + 124634137u, + 1886057615u, + 3915621685u, + 2657392035u, + 249268274u, + 2044508324u, + 3772115230u, + 2547177864u, + 162941995u, + 2125561021u, + 3887607047u, + 2428444049u, + 498536548u, + 1789927666u, + 4089016648u, + 2227061214u, + 450548861u, + 1843258603u, + 4107580753u, + 2211677639u, + 325883990u, + 1684777152u, + 4251122042u, + 2321926636u, + 335633487u, + 1661365465u, + 4195302755u, + 2366115317u, + 997073096u, + 1281953886u, + 3579855332u, + 2724688242u, + 1006888145u, + 1258607687u, + 3524101629u, + 2768942443u, + 901097722u, + 1119000684u, + 3686517206u, + 2898065728u, + 853044451u, + 1172266101u, + 3705015759u, + 2882616665u, + 651767980u, + 1373503546u, + 3369554304u, + 3218104598u, + 565507253u, + 1454621731u, + 3485111705u, + 3099436303u, + 671266974u, + 1594198024u, + 3322730930u, + 2970347812u, + 795835527u, + 1483230225u, + 3244367275u, + 3060149565u, + 1994146192u, + 31158534u, + 2563907772u, + 4023717930u, + 1907459465u, + 112637215u, + 2680153253u, + 3904427059u, + 2013776290u, + 251722036u, + 2517215374u, + 3775830040u, + 2137656763u, + 141376813u, + 2439277719u, + 3865271297u, + 1802195444u, + 476864866u, + 2238001368u, + 4066508878u, + 1812370925u, + 453092731u, + 2181625025u, + 4111451223u, + 1706088902u, + 314042704u, + 2344532202u, + 4240017532u, + 1658658271u, + 366619977u, + 2362670323u, + 4224994405u, + 1303535960u, + 984961486u, + 2747007092u, + 3569037538u, + 1256170817u, + 1037604311u, + 2765210733u, + 3554079995u, + 1131014506u, + 879679996u, + 2909243462u, + 3663771856u, + 1141124467u, + 855842277u, + 2852801631u, + 3708648649u, + 1342533948u, + 654459306u, + 3188396048u, + 3373015174u, + 1466479909u, + 544179635u, + 3110523913u, + 3462522015u, + 1591671054u, + 702138776u, + 2966460450u, + 3352799412u, + 1504918807u, + 783551873u, + 3082640443u, + 3233442989u, + 3988292384u, + 2596254646u, + 62317068u, + 1957810842u, + 3939845945u, + 2647816111u, + 81470997u, + 1943803523u, + 3814918930u, + 2489596804u, + 225274430u, + 2053790376u, + 3826175755u, + 2466906013u, + 167816743u, + 2097651377u, + 4027552580u, + 2265490386u, + 503444072u, + 1762050814u, + 4150417245u, + 2154129355u, + 426522225u, + 1852507879u, + 4275313526u, + 2312317920u, + 282753626u, + 1742555852u, + 4189708143u, + 2394877945u, + 397917763u, + 1622183637u, + 3604390888u, + 2714866558u, + 953729732u, + 1340076626u, + 3518719985u, + 2797360999u, + 1068828381u, + 1219638859u, + 3624741850u, + 2936675148u, + 906185462u, + 1090812512u, + 3747672003u, + 2825379669u, + 829329135u, + 1181335161u, + 3412177804u, + 3160834842u, + 628085408u, + 1382605366u, + 3423369109u, + 3138078467u, + 570562233u, + 1426400815u, + 3317316542u, + 2998733608u, + 733239954u, + 1555261956u, + 3268935591u, + 3050360625u, + 752459403u, + 1541320221u, + 2607071920u, + 3965973030u, + 1969922972u, + 40735498u, + 2617837225u, + 3943577151u, + 1913087877u, + 83908371u, + 2512341634u, + 3803740692u, + 2075208622u, + 213261112u, + 2463272603u, + 3855990285u, + 2094854071u, + 198958881u, + 2262029012u, + 4057260610u, + 1759359992u, + 534414190u, + 2176718541u, + 4139329115u, + 1873836001u, + 414664567u, + 2282248934u, + 4279200368u, + 1711684554u, + 285281116u, + 2405801727u, + 4167216745u, + 1634467795u, + 376229701u, + 2685067896u, + 3608007406u, + 1308918612u, + 956543938u, + 2808555105u, + 3495958263u, + 1231636301u, + 1047427035u, + 2932959818u, + 3654703836u, + 1088359270u, + 936918000u, + 2847714899u, + 3736837829u, + 1202900863u, + 817233897u, + 3183342108u, + 3401237130u, + 1404277552u, + 615818150u, + 3134207493u, + 3453421203u, + 1423857449u, + 601450431u, + 3009837614u, + 3294710456u, + 1567103746u, + 711928724u, + 3020668471u, + 3272380065u, + 1510334235u, + 755167117u + }; - private uint _uint2; + private uint _uint2; - public static uint smethod_0(uint uint3, byte byte0) - { - return Uint1[(int)((UIntPtr)((uint3 ^ byte0) & 255u))] ^ uint3 >> 8; - } + public static uint smethod_0(uint uint3, byte byte0) + { + return Uint1[(int) ((UIntPtr) ((uint3 ^ byte0) & 255u))] ^ uint3 >> 8; + } - public long vmethod_0() - { - return _uint2; - } + public long vmethod_0() + { + return _uint2; + } - public void vmethod_1() - { - _uint2 = 0u; - } + public void vmethod_1() + { + _uint2 = 0u; + } - public void vmethod_2(byte[] byte0) - { - if (byte0 == null) - { - throw new ArgumentNullException("buffer"); - } - vmethod_3(byte0, 0, byte0.Length); - } + public void vmethod_2(byte[] byte0) + { + if (byte0 == null) + { + throw new ArgumentNullException("buffer"); + } + vmethod_3(byte0, 0, byte0.Length); + } - public void vmethod_3(byte[] byte0, int int0, int int1) - { - if (byte0 == null) - { - throw new ArgumentNullException("buffer"); - } - if (int1 < 0) - { - throw new ArgumentOutOfRangeException("count", "Count cannot be less than zero"); - } - if (int0 >= 0 && int0 + int1 <= byte0.Length) - { - _uint2 ^= Uint0; - while (--int1 >= 0) - { - _uint2 = (Uint1[(int)((UIntPtr)((_uint2 ^ byte0[int0++]) & 255u))] ^ _uint2 >> 8); - } - _uint2 ^= Uint0; - return; - } - throw new ArgumentOutOfRangeException("offset"); - } - } -} + public void vmethod_3(byte[] byte0, int int0, int int1) + { + if (byte0 == null) + { + throw new ArgumentNullException("buffer"); + } + if (int1 < 0) + { + throw new ArgumentOutOfRangeException("count", "Count cannot be less than zero"); + } + if (int0 >= 0 && int0 + int1 <= byte0.Length) + { + _uint2 ^= Uint0; + while (--int1 >= 0) + { + _uint2 = (Uint1[(int) ((UIntPtr) ((_uint2 ^ byte0[int0++]) & 255u))] ^ _uint2 >> 8); + } + _uint2 ^= Uint0; + return; + } + throw new ArgumentOutOfRangeException("offset"); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class193.cs b/GHNamespace6/Class193.cs index 7b19ba1..3b0f347 100644 --- a/GHNamespace6/Class193.cs +++ b/GHNamespace6/Class193.cs @@ -4,458 +4,461 @@ namespace GHNamespace6 { - public class Class193 : ICloneable - { - [Flags] - private enum Enum32 : byte - { - Flag0 = 0, - Flag1 = 1, - Flag2 = 2, - Flag3 = 4, - Flag4 = 8, - Flag5 = 16 - } - - private Enum32 _enum320; - - private readonly int _int0 = -1; - - private readonly ushort _ushort0; - - private readonly string _string0; - - private ulong _ulong0; - - private ulong _ulong1; - - private readonly ushort _ushort1; - - private uint _uint0; - - private uint _uint1; - - private Enum31 _enum310 = Enum31.Const1; - - private byte[] _byte0; - - private string _string1; - - private int _int1; - - private long _long0 = -1L; - - private long _long1; - - private bool _bool0; - - private byte _byte1; - - public Class193(string string2) : this(string2, 0, 45, Enum31.Const1) - { - } - - public Class193(string string2, int int2) : this(string2, int2, 45, Enum31.Const1) - { - } - - public Class193(string string2, int int2, int int3, Enum31 enum311) - { - if (string2 == null) - { - throw new ArgumentNullException("ZipEntry name"); - } - if (string2.Length > 65535) - { - throw new ArgumentException("Name is too long", "name"); - } - if (int2 != 0 && int2 < 10) - { - throw new ArgumentOutOfRangeException("versionRequiredToExtract"); - } - method_19(DateTime.Now); - _string0 = string2; - _ushort0 = (ushort)int3; - _ushort1 = (ushort)int2; - _enum310 = enum311; - } - - public bool method_0() - { - return (_int1 & 1) != 0; - } - - public void method_1(bool bool1) - { - if (bool1) - { - _int1 |= 1; - return; - } - _int1 &= -2; - } - - public byte method_2() - { - return _byte1; - } - - public void method_3(byte byte2) - { - _byte1 = byte2; - } - - public int method_4() - { - return _int1; - } - - public void method_5(int int2) - { - _int1 = int2; - } - - public long method_6() - { - return _long1; - } - - public void method_7(long long2) - { - _long1 = long2; - } - - public int method_8() - { - if ((byte)(_enum320 & Enum32.Flag5) == 0) - { - return -1; - } - return _int0; - } - - private bool method_9(int int2) - { - var result = false; - if ((byte)(_enum320 & Enum32.Flag5) != 0 && (method_10() == 0 || method_10() == 10) && (method_8() & int2) == int2) - { - result = true; - } - return result; - } - - public int method_10() - { - return _ushort0 >> 8 & 255; - } - - public int method_11() - { - if (_ushort1 != 0) - { - return _ushort1; - } - var result = 10; - if (method_16()) - { - result = 45; - } - else if (Enum31.Const1 == _enum310) - { - result = 20; - } - else if (method_33()) - { - result = 20; - } - else if (method_0()) - { - result = 20; - } - else if (method_9(8)) - { - result = 11; - } - return result; - } - - public bool method_12() - { - return method_11() <= 45 && (method_11() == 10 || method_11() == 11 || method_11() == 20 || method_11() == 45) && method_34(); - } - - public void method_13() - { - _bool0 = true; - } - - public bool method_14() - { - return _bool0; - } - - public bool method_15() - { - bool result; - if (!(result = _bool0)) - { - var num = _ulong1; - if (_ushort1 == 0 && method_0()) - { - num += 12uL; - } - result = ((_ulong0 >= 4294967295uL || num >= 4294967295uL) && (_ushort1 == 0 || _ushort1 >= 45)); - } - return result; - } - - public bool method_16() - { - return method_15() || _long1 >= 4294967295L; - } - - public long method_17() - { - if ((byte)(_enum320 & Enum32.Flag4) == 0) - { - return 0L; - } - return _uint1; - } - - public void method_18(long long2) - { - _uint1 = (uint)long2; - _enum320 |= Enum32.Flag4; - } - - public void method_19(DateTime dateTime0) - { - var num = (uint)dateTime0.Year; - var num2 = (uint)dateTime0.Month; - var num3 = (uint)dateTime0.Day; - var num4 = (uint)dateTime0.Hour; - var num5 = (uint)dateTime0.Minute; - var num6 = (uint)dateTime0.Second; - if (num < 1980u) - { - num = 1980u; - num2 = 1u; - num3 = 1u; - num4 = 0u; - num5 = 0u; - num6 = 0u; - } - else if (num > 2107u) - { - num = 2107u; - num2 = 12u; - num3 = 31u; - num4 = 23u; - num5 = 59u; - num6 = 59u; - } - method_18((num - 1980u & 127u) << 25 | num2 << 21 | num3 << 16 | num4 << 11 | num5 << 5 | num6 >> 1); - } - - public string method_20() - { - return _string0; - } - - public long method_21() - { - if ((byte)(_enum320 & Enum32.Flag1) == 0) - { - return -1L; - } - return (long)_ulong0; - } - - public void method_22(long long2) - { - _ulong0 = (ulong)long2; - _enum320 |= Enum32.Flag1; - } - - public long method_23() - { - if ((byte)(_enum320 & Enum32.Flag2) == 0) - { - return -1L; - } - return (long)_ulong1; - } - - public void method_24(long long2) - { - _ulong1 = (ulong)long2; - _enum320 |= Enum32.Flag2; - } - - public long method_25() - { - if ((byte)(_enum320 & Enum32.Flag3) == 0) - { - return -1L; - } - return (long)(_uint0 & 4294967295uL); - } - - public void method_26(long long2) - { - _uint0 = (uint)long2; - _enum320 |= Enum32.Flag3; - } - - public Enum31 method_27() - { - return _enum310; - } - - public void method_28(Enum31 enum311) - { - if (!smethod_0(enum311)) - { - throw new NotSupportedException("Compression method not supported"); - } - _enum310 = enum311; - } - - public byte[] method_29() - { - return _byte0; - } - - public void method_30(byte[] byte2) - { - if (byte2 == null) - { - _byte0 = null; - return; - } - if (byte2.Length > 65535) - { - throw new ArgumentOutOfRangeException("value"); - } - _byte0 = new byte[byte2.Length]; - Array.Copy(byte2, 0, _byte0, 0, byte2.Length); - } - - public void method_31(bool bool1) - { - var @class = new Class202(_byte0); - if (@class.method_6(1)) - { - if ((_ushort1 & 255) < 45) - { - throw new ZipException("Zip64 Extended information found but version is not valid"); - } - _bool0 = true; - if (@class.method_3() < 4) - { - throw new ZipException("Extra data extended Zip64 information length is invalid"); - } - if (bool1 || _ulong0 == 4294967295uL) - { - _ulong0 = (ulong)@class.method_14(); - } - if (bool1 || _ulong1 == 4294967295uL) - { - _ulong1 = (ulong)@class.method_14(); - } - if (!bool1 && _long1 == 4294967295L) - { - _long1 = @class.method_14(); - } - } - else if ((_ushort1 & 255) >= 45 && (_ulong0 == 4294967295uL || _ulong1 == 4294967295uL)) - { - throw new ZipException("Zip64 Extended information required but is missing."); - } - if (@class.method_6(10)) - { - if (@class.method_3() < 8) - { - throw new ZipException("NTFS Extra data invalid"); - } - @class.method_15(); - while (@class.method_5() >= 4) - { - var num = @class.method_16(); - var num2 = @class.method_16(); - if (num == 1) - { - if (num2 >= 24) - { - var fileTime = @class.method_14(); - @class.method_14(); - @class.method_14(); - method_19(DateTime.FromFileTime(fileTime)); - return; - } - return; - } - @class.method_18(num2); - } - } - else if (@class.method_6(21589)) - { - var num3 = @class.method_3(); - var num4 = @class.method_17(); - if ((num4 & 1) != 0 && num3 >= 5) - { - var seconds = @class.method_15(); - method_19((new DateTime(1970, 1, 1, 0, 0, 0).ToUniversalTime() + new TimeSpan(0, 0, 0, seconds, 0)).ToLocalTime()); - } - } - } - - public string method_32() - { - return _string1; - } - - public bool method_33() - { - var length = _string0.Length; - int arg410; - if (length > 0) - { - if (_string0[length - 1] == '/' || _string0[length - 1] == '\\') - { - arg410 = 1; - return arg410 != 0; - } - } - arg410 = (method_9(16) ? 1 : 0); - return arg410 != 0; - } - - public bool method_34() - { - return smethod_0(method_27()); - } - - public object Clone() - { - var @class = (Class193)MemberwiseClone(); - if (_byte0 != null) - { - @class._byte0 = new byte[_byte0.Length]; - Array.Copy(_byte0, 0, @class._byte0, 0, _byte0.Length); - } - return @class; - } - - public override string ToString() - { - return _string0; - } - - public static bool smethod_0(Enum31 enum311) - { - return enum311 == Enum31.Const1 || enum311 == Enum31.Const0; - } - } -} + public class Class193 : ICloneable + { + [Flags] + private enum Enum32 : byte + { + Flag0 = 0, + Flag1 = 1, + Flag2 = 2, + Flag3 = 4, + Flag4 = 8, + Flag5 = 16 + } + + private Enum32 _enum320; + + private readonly int _int0 = -1; + + private readonly ushort _ushort0; + + private readonly string _string0; + + private ulong _ulong0; + + private ulong _ulong1; + + private readonly ushort _ushort1; + + private uint _uint0; + + private uint _uint1; + + private Enum31 _enum310 = Enum31.Const1; + + private byte[] _byte0; + + private string _string1; + + private int _int1; + + private long _long0 = -1L; + + private long _long1; + + private bool _bool0; + + private byte _byte1; + + public Class193(string string2) : this(string2, 0, 45, Enum31.Const1) + { + } + + public Class193(string string2, int int2) : this(string2, int2, 45, Enum31.Const1) + { + } + + public Class193(string string2, int int2, int int3, Enum31 enum311) + { + if (string2 == null) + { + throw new ArgumentNullException("ZipEntry name"); + } + if (string2.Length > 65535) + { + throw new ArgumentException("Name is too long", "name"); + } + if (int2 != 0 && int2 < 10) + { + throw new ArgumentOutOfRangeException("versionRequiredToExtract"); + } + method_19(DateTime.Now); + _string0 = string2; + _ushort0 = (ushort) int3; + _ushort1 = (ushort) int2; + _enum310 = enum311; + } + + public bool method_0() + { + return (_int1 & 1) != 0; + } + + public void method_1(bool bool1) + { + if (bool1) + { + _int1 |= 1; + return; + } + _int1 &= -2; + } + + public byte method_2() + { + return _byte1; + } + + public void method_3(byte byte2) + { + _byte1 = byte2; + } + + public int method_4() + { + return _int1; + } + + public void method_5(int int2) + { + _int1 = int2; + } + + public long method_6() + { + return _long1; + } + + public void method_7(long long2) + { + _long1 = long2; + } + + public int method_8() + { + if ((byte) (_enum320 & Enum32.Flag5) == 0) + { + return -1; + } + return _int0; + } + + private bool method_9(int int2) + { + var result = false; + if ((byte) (_enum320 & Enum32.Flag5) != 0 && (method_10() == 0 || method_10() == 10) && + (method_8() & int2) == int2) + { + result = true; + } + return result; + } + + public int method_10() + { + return _ushort0 >> 8 & 255; + } + + public int method_11() + { + if (_ushort1 != 0) + { + return _ushort1; + } + var result = 10; + if (method_16()) + { + result = 45; + } + else if (Enum31.Const1 == _enum310) + { + result = 20; + } + else if (method_33()) + { + result = 20; + } + else if (method_0()) + { + result = 20; + } + else if (method_9(8)) + { + result = 11; + } + return result; + } + + public bool method_12() + { + return method_11() <= 45 && (method_11() == 10 || method_11() == 11 || method_11() == 20 || + method_11() == 45) && method_34(); + } + + public void method_13() + { + _bool0 = true; + } + + public bool method_14() + { + return _bool0; + } + + public bool method_15() + { + bool result; + if (!(result = _bool0)) + { + var num = _ulong1; + if (_ushort1 == 0 && method_0()) + { + num += 12uL; + } + result = ((_ulong0 >= 4294967295uL || num >= 4294967295uL) && (_ushort1 == 0 || _ushort1 >= 45)); + } + return result; + } + + public bool method_16() + { + return method_15() || _long1 >= 4294967295L; + } + + public long method_17() + { + if ((byte) (_enum320 & Enum32.Flag4) == 0) + { + return 0L; + } + return _uint1; + } + + public void method_18(long long2) + { + _uint1 = (uint) long2; + _enum320 |= Enum32.Flag4; + } + + public void method_19(DateTime dateTime0) + { + var num = (uint) dateTime0.Year; + var num2 = (uint) dateTime0.Month; + var num3 = (uint) dateTime0.Day; + var num4 = (uint) dateTime0.Hour; + var num5 = (uint) dateTime0.Minute; + var num6 = (uint) dateTime0.Second; + if (num < 1980u) + { + num = 1980u; + num2 = 1u; + num3 = 1u; + num4 = 0u; + num5 = 0u; + num6 = 0u; + } + else if (num > 2107u) + { + num = 2107u; + num2 = 12u; + num3 = 31u; + num4 = 23u; + num5 = 59u; + num6 = 59u; + } + method_18((num - 1980u & 127u) << 25 | num2 << 21 | num3 << 16 | num4 << 11 | num5 << 5 | num6 >> 1); + } + + public string method_20() + { + return _string0; + } + + public long method_21() + { + if ((byte) (_enum320 & Enum32.Flag1) == 0) + { + return -1L; + } + return (long) _ulong0; + } + + public void method_22(long long2) + { + _ulong0 = (ulong) long2; + _enum320 |= Enum32.Flag1; + } + + public long method_23() + { + if ((byte) (_enum320 & Enum32.Flag2) == 0) + { + return -1L; + } + return (long) _ulong1; + } + + public void method_24(long long2) + { + _ulong1 = (ulong) long2; + _enum320 |= Enum32.Flag2; + } + + public long method_25() + { + if ((byte) (_enum320 & Enum32.Flag3) == 0) + { + return -1L; + } + return (long) (_uint0 & 4294967295uL); + } + + public void method_26(long long2) + { + _uint0 = (uint) long2; + _enum320 |= Enum32.Flag3; + } + + public Enum31 method_27() + { + return _enum310; + } + + public void method_28(Enum31 enum311) + { + if (!smethod_0(enum311)) + { + throw new NotSupportedException("Compression method not supported"); + } + _enum310 = enum311; + } + + public byte[] method_29() + { + return _byte0; + } + + public void method_30(byte[] byte2) + { + if (byte2 == null) + { + _byte0 = null; + return; + } + if (byte2.Length > 65535) + { + throw new ArgumentOutOfRangeException("value"); + } + _byte0 = new byte[byte2.Length]; + Array.Copy(byte2, 0, _byte0, 0, byte2.Length); + } + + public void method_31(bool bool1) + { + var @class = new Class202(_byte0); + if (@class.method_6(1)) + { + if ((_ushort1 & 255) < 45) + { + throw new ZipException("Zip64 Extended information found but version is not valid"); + } + _bool0 = true; + if (@class.method_3() < 4) + { + throw new ZipException("Extra data extended Zip64 information length is invalid"); + } + if (bool1 || _ulong0 == 4294967295uL) + { + _ulong0 = (ulong) @class.method_14(); + } + if (bool1 || _ulong1 == 4294967295uL) + { + _ulong1 = (ulong) @class.method_14(); + } + if (!bool1 && _long1 == 4294967295L) + { + _long1 = @class.method_14(); + } + } + else if ((_ushort1 & 255) >= 45 && (_ulong0 == 4294967295uL || _ulong1 == 4294967295uL)) + { + throw new ZipException("Zip64 Extended information required but is missing."); + } + if (@class.method_6(10)) + { + if (@class.method_3() < 8) + { + throw new ZipException("NTFS Extra data invalid"); + } + @class.method_15(); + while (@class.method_5() >= 4) + { + var num = @class.method_16(); + var num2 = @class.method_16(); + if (num == 1) + { + if (num2 >= 24) + { + var fileTime = @class.method_14(); + @class.method_14(); + @class.method_14(); + method_19(DateTime.FromFileTime(fileTime)); + return; + } + return; + } + @class.method_18(num2); + } + } + else if (@class.method_6(21589)) + { + var num3 = @class.method_3(); + var num4 = @class.method_17(); + if ((num4 & 1) != 0 && num3 >= 5) + { + var seconds = @class.method_15(); + method_19((new DateTime(1970, 1, 1, 0, 0, 0).ToUniversalTime() + new TimeSpan(0, 0, 0, seconds, 0)) + .ToLocalTime()); + } + } + } + + public string method_32() + { + return _string1; + } + + public bool method_33() + { + var length = _string0.Length; + int arg410; + if (length > 0) + { + if (_string0[length - 1] == '/' || _string0[length - 1] == '\\') + { + arg410 = 1; + return arg410 != 0; + } + } + arg410 = (method_9(16) ? 1 : 0); + return arg410 != 0; + } + + public bool method_34() + { + return smethod_0(method_27()); + } + + public object Clone() + { + var @class = (Class193) MemberwiseClone(); + if (_byte0 != null) + { + @class._byte0 = new byte[_byte0.Length]; + Array.Copy(_byte0, 0, @class._byte0, 0, _byte0.Length); + } + return @class; + } + + public override string ToString() + { + return _string0; + } + + public static bool smethod_0(Enum31 enum311) + { + return enum311 == Enum31.Const1 || enum311 == Enum31.Const0; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class194.cs b/GHNamespace6/Class194.cs index 62edb0d..dad512e 100644 --- a/GHNamespace6/Class194.cs +++ b/GHNamespace6/Class194.cs @@ -3,180 +3,180 @@ namespace GHNamespace6 { - public class Class194 - { - private int _int0; - - private readonly bool _bool0; - - private int _int1; - - private long _long0; - - private readonly Class189 _class1890; - - private readonly Class184 _class1840; - - public Class194() : this(-1, false) - { - } - - public Class194(int int2, bool bool1) - { - if (int2 == -1) - { - int2 = 6; - } - else if (int2 < 0 || int2 > 9) - { - throw new ArgumentOutOfRangeException("level"); - } - _class1890 = new Class189(); - _class1840 = new Class184(_class1890); - _bool0 = bool1; - method_8(Enum29.Const0); - method_7(int2); - method_0(); - } - - public void method_0() - { - _int1 = (_bool0 ? 16 : 0); - _long0 = 0L; - _class1890.method_0(); - _class1840.method_3(); - } - - public long method_1() - { - return _long0; - } - - public void method_2() - { - _int1 |= 4; - } - - public void method_3() - { - _int1 |= 12; - } - - public bool method_4() - { - return _int1 == 30 && _class1890.method_7(); - } - - public bool method_5() - { - return _class1840.method_2(); - } - - public void method_6(byte[] byte0, int int2, int int3) - { - if ((_int1 & 8) != 0) - { - throw new InvalidOperationException("Finish() already called"); - } - _class1840.method_1(byte0, int2, int3); - } - - public void method_7(int int2) - { - if (int2 == -1) - { - int2 = 6; - } - else if (int2 < 0 || int2 > 9) - { - throw new ArgumentOutOfRangeException("level"); - } - if (_int0 != int2) - { - _int0 = int2; - _class1840.method_6(int2); - } - } - - public void method_8(Enum29 enum290) - { - _class1840.method_5(enum290); - } - - public int method_9(byte[] byte0, int int2, int int3) - { - var num = int3; - if (_int1 == 127) - { - throw new InvalidOperationException("Deflater closed"); - } - if (_int1 < 16) - { - var num2 = 30720; - var num3 = _int0 - 1 >> 1; - if (num3 < 0 || num3 > 3) - { - num3 = 3; - } - num2 |= num3 << 6; - if ((_int1 & 1) != 0) - { - num2 |= 32; - } - num2 += 31 - num2 % 31; - _class1890.method_6(num2); - if ((_int1 & 1) != 0) - { - var num4 = _class1840.method_4(); - _class1840.ResetAdler(); - _class1890.method_6(num4 >> 16); - _class1890.method_6(num4 & 65535); - } - _int1 = (16 | (_int1 & 12)); - } - while (true) - { - var num5 = _class1890.method_8(byte0, int2, int3); - int2 += num5; - _long0 += num5; - int3 -= num5; - if (int3 == 0 || _int1 == 30) - { - goto IL_1E2; - } - if (!_class1840.method_0((_int1 & 4) != 0, (_int1 & 8) != 0)) - { - if (_int1 == 16) - { - break; - } - if (_int1 == 20) - { - if (_int0 != 0) - { - for (var i = 8 + (-_class1890.method_3() & 7); i > 0; i -= 10) - { - _class1890.method_5(2, 10); - } - } - _int1 = 16; - } - else if (_int1 == 28) - { - _class1890.method_4(); - if (!_bool0) - { - var num6 = _class1840.method_4(); - _class1890.method_6(num6 >> 16); - _class1890.method_6(num6 & 65535); - } - _int1 = 30; - } - } - } - return num - int3; - IL_1E2: - return num - int3; - } - } -} + public class Class194 + { + private int _int0; + + private readonly bool _bool0; + + private int _int1; + + private long _long0; + + private readonly Class189 _class1890; + + private readonly Class184 _class1840; + + public Class194() : this(-1, false) + { + } + + public Class194(int int2, bool bool1) + { + if (int2 == -1) + { + int2 = 6; + } + else if (int2 < 0 || int2 > 9) + { + throw new ArgumentOutOfRangeException("level"); + } + _class1890 = new Class189(); + _class1840 = new Class184(_class1890); + _bool0 = bool1; + method_8(Enum29.Const0); + method_7(int2); + method_0(); + } + + public void method_0() + { + _int1 = (_bool0 ? 16 : 0); + _long0 = 0L; + _class1890.method_0(); + _class1840.method_3(); + } + + public long method_1() + { + return _long0; + } + + public void method_2() + { + _int1 |= 4; + } + + public void method_3() + { + _int1 |= 12; + } + + public bool method_4() + { + return _int1 == 30 && _class1890.method_7(); + } + + public bool method_5() + { + return _class1840.method_2(); + } + + public void method_6(byte[] byte0, int int2, int int3) + { + if ((_int1 & 8) != 0) + { + throw new InvalidOperationException("Finish() already called"); + } + _class1840.method_1(byte0, int2, int3); + } + + public void method_7(int int2) + { + if (int2 == -1) + { + int2 = 6; + } + else if (int2 < 0 || int2 > 9) + { + throw new ArgumentOutOfRangeException("level"); + } + if (_int0 != int2) + { + _int0 = int2; + _class1840.method_6(int2); + } + } + + public void method_8(Enum29 enum290) + { + _class1840.method_5(enum290); + } + + public int method_9(byte[] byte0, int int2, int int3) + { + var num = int3; + if (_int1 == 127) + { + throw new InvalidOperationException("Deflater closed"); + } + if (_int1 < 16) + { + var num2 = 30720; + var num3 = _int0 - 1 >> 1; + if (num3 < 0 || num3 > 3) + { + num3 = 3; + } + num2 |= num3 << 6; + if ((_int1 & 1) != 0) + { + num2 |= 32; + } + num2 += 31 - num2 % 31; + _class1890.method_6(num2); + if ((_int1 & 1) != 0) + { + var num4 = _class1840.method_4(); + _class1840.ResetAdler(); + _class1890.method_6(num4 >> 16); + _class1890.method_6(num4 & 65535); + } + _int1 = (16 | (_int1 & 12)); + } + while (true) + { + var num5 = _class1890.method_8(byte0, int2, int3); + int2 += num5; + _long0 += num5; + int3 -= num5; + if (int3 == 0 || _int1 == 30) + { + goto IL_1E2; + } + if (!_class1840.method_0((_int1 & 4) != 0, (_int1 & 8) != 0)) + { + if (_int1 == 16) + { + break; + } + if (_int1 == 20) + { + if (_int0 != 0) + { + for (var i = 8 + (-_class1890.method_3() & 7); i > 0; i -= 10) + { + _class1890.method_5(2, 10); + } + } + _int1 = 16; + } + else if (_int1 == 28) + { + _class1890.method_4(); + if (!_bool0) + { + var num6 = _class1840.method_4(); + _class1890.method_6(num6 >> 16); + _class1890.method_6(num6 & 65535); + } + _int1 = 30; + } + } + } + return num - int3; + IL_1E2: + return num - int3; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class195.cs b/GHNamespace6/Class195.cs index 62dce08..df39b13 100644 --- a/GHNamespace6/Class195.cs +++ b/GHNamespace6/Class195.cs @@ -3,52 +3,52 @@ namespace GHNamespace6 { - public class Class195 : IDisposable - { - private string _string0 = string.Empty; - - private string _string1 = string.Empty; - - private Stream21 _stream210; - - private Stream24 _stream240; - - private bool _bool0; - - public virtual void vmethod_0(bool bool1) - { - if (!_bool0) - { - _bool0 = true; - if (bool1) - { - if (_stream240 != null) - { - _stream240.Flush(); - _stream240.Close(); - } - if (_stream210 != null) - { - _stream210.Close(); - } - } - } - } - - public virtual void vmethod_1() - { - vmethod_0(true); - GC.SuppressFinalize(this); - } - - ~Class195() - { - vmethod_0(false); - } - - void IDisposable.Dispose() - { - vmethod_1(); - } - } -} + public class Class195 : IDisposable + { + private string _string0 = string.Empty; + + private string _string1 = string.Empty; + + private Stream21 _stream210; + + private Stream24 _stream240; + + private bool _bool0; + + public virtual void vmethod_0(bool bool1) + { + if (!_bool0) + { + _bool0 = true; + if (bool1) + { + if (_stream240 != null) + { + _stream240.Flush(); + _stream240.Close(); + } + if (_stream210 != null) + { + _stream210.Close(); + } + } + } + } + + public virtual void vmethod_1() + { + vmethod_0(true); + GC.SuppressFinalize(this); + } + + ~Class195() + { + vmethod_0(false); + } + + void IDisposable.Dispose() + { + vmethod_1(); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class196.cs b/GHNamespace6/Class196.cs index af7f029..6a501ff 100644 --- a/GHNamespace6/Class196.cs +++ b/GHNamespace6/Class196.cs @@ -4,565 +4,570 @@ namespace GHNamespace6 { - public class Class196 - { - private static readonly int[] Int0 = { - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 13, - 15, - 17, - 19, - 23, - 27, - 31, - 35, - 43, - 51, - 59, - 67, - 83, - 99, - 115, - 131, - 163, - 195, - 227, - 258 - }; - - private static readonly int[] Int1 = { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 4, - 4, - 4, - 4, - 5, - 5, - 5, - 5, - 0 - }; - - private static readonly int[] Int2 = { - 1, - 2, - 3, - 4, - 5, - 7, - 9, - 13, - 17, - 25, - 33, - 49, - 65, - 97, - 129, - 193, - 257, - 385, - 513, - 769, - 1025, - 1537, - 2049, - 3073, - 4097, - 6145, - 8193, - 12289, - 16385, - 24577 - }; - - private static readonly int[] Int3 = { - 0, - 0, - 0, - 0, - 1, - 1, - 2, - 2, - 3, - 3, - 4, - 4, - 5, - 5, - 6, - 6, - 7, - 7, - 8, - 8, - 9, - 9, - 10, - 10, - 11, - 11, - 12, - 12, - 13, - 13 - }; - - private int _int4; - - private int _int5; - - private int _int6; - - private int _int7; - - private int _int8; - - private int _int9; - - private bool _bool0; - - private long _long0; - - private long _long1; - - private readonly bool _bool1; - - private readonly Class187 _class1870; - - private readonly Class203 _class2030; - - private Class198 _class1980; - - private Class197 _class1970; - - private Class197 _class1971; - - private readonly Class200 _class2000; - - public Class196() : this(false) - { - } - - public Class196(bool bool2) - { - _bool1 = bool2; - _class2000 = new Class200(); - _class1870 = new Class187(); - _class2030 = new Class203(); - _int4 = (bool2 ? 2 : 0); - } - - public void method_0() - { - _int4 = (_bool1 ? 2 : 0); - _long1 = 0L; - _long0 = 0L; - _class1870.method_7(); - _class2030.method_7(); - _class1980 = null; - _class1970 = null; - _class1971 = null; - _bool0 = false; - _class2000.vmethod_1(); - } - - private bool method_1() - { - var num = _class1870.method_0(16); - if (num < 0) - { - return false; - } - _class1870.method_1(16); - num = ((num << 8 | num >> 8) & 65535); - if (num % 31 != 0) - { - throw new SharpZipBaseException("Header checksum illegal"); - } - if ((num & 3840) != 2048) - { - throw new SharpZipBaseException("Compression Method unknown"); - } - if ((num & 32) == 0) - { - _int4 = 2; - } - else - { - _int4 = 1; - _int6 = 32; - } - return true; - } - - private bool method_2() - { - while (_int6 > 0) - { - var num = _class1870.method_0(8); - if (num < 0) - { - return false; - } - _class1870.method_1(8); - _int5 = (_int5 << 8 | num); - _int6 -= 8; - } - return false; - } - - private bool method_3() - { - var i = _class2030.method_4(); - while (i >= 258) - { - int num; - switch (_int4) - { - case 7: - while (((num = _class1970.method_1(_class1870)) & -256) == 0) - { - _class2030.method_0(num); - if (--i < 258) - { - return true; - } - } - if (num >= 257) - { - try - { - _int7 = Int0[num - 257]; - _int6 = Int1[num - 257]; - } - catch (Exception) - { - throw new SharpZipBaseException("Illegal rep length code"); - } - goto IL_AC; - } - if (num < 0) - { - return false; - } - _class1971 = null; - _class1970 = null; - _int4 = 2; - return true; - case 8: - goto IL_AC; - case 9: - goto IL_FC; - case 10: - break; - default: - throw new SharpZipBaseException("Inflater unknown mode"); - } - IL_13D: - if (_int6 > 0) - { - _int4 = 10; - var num2 = _class1870.method_0(_int6); - if (num2 < 0) - { - return false; - } - _class1870.method_1(_int6); - _int8 += num2; - } - _class2030.method_2(_int7, _int8); - i -= _int7; - _int4 = 7; - continue; - IL_FC: - num = _class1971.method_1(_class1870); - if (num >= 0) - { - try - { - _int8 = Int2[num]; - _int6 = Int3[num]; - } - catch (Exception) - { - throw new SharpZipBaseException("Illegal rep dist code"); - } - goto IL_13D; - } - return false; - IL_AC: - if (_int6 > 0) - { - _int4 = 8; - var num3 = _class1870.method_0(_int6); - if (num3 < 0) - { - return false; - } - _class1870.method_1(_int6); - _int7 += num3; - } - _int4 = 9; - goto IL_FC; - } - return true; - } - - private bool method_4() - { - while (_int6 > 0) - { - var num = _class1870.method_0(8); - if (num < 0) - { - return false; - } - _class1870.method_1(8); - _int5 = (_int5 << 8 | num); - _int6 -= 8; - } - if ((int)_class2000.vmethod_0() != _int5) - { - throw new SharpZipBaseException(string.Concat("Adler chksum doesn't match: ", (int)_class2000.vmethod_0(), " vs. ", _int5)); - } - _int4 = 12; - return false; - } - - private bool method_5() - { - switch (_int4) - { - case 0: - return method_1(); - case 1: - return method_2(); - case 2: - if (_bool0) - { - if (_bool1) - { - _int4 = 12; - return false; - } - _class1870.method_4(); - _int6 = 32; - _int4 = 11; - return true; - } - else - { - var num = _class1870.method_0(3); - if (num < 0) - { - return false; - } - _class1870.method_1(3); - if ((num & 1) != 0) - { - _bool0 = true; - } - switch (num >> 1) - { - case 0: - _class1870.method_4(); - _int4 = 3; - break; - case 1: - _class1970 = Class197.Class1970; - _class1971 = Class197.Class1971; - _int4 = 7; - break; - case 2: - _class1980 = new Class198(); - _int4 = 6; - break; - default: - throw new SharpZipBaseException("Unknown block type " + num); - } - return true; - } - break; - case 3: - if ((_int9 = _class1870.method_0(16)) < 0) - { - return false; - } - _class1870.method_1(16); - _int4 = 4; - break; - case 4: - break; - case 5: - goto IL_1A4; - case 6: - if (!_class1980.method_0(_class1870)) - { - return false; - } - _class1970 = _class1980.method_1(); - _class1971 = _class1980.method_2(); - _int4 = 7; - goto IL_228; - case 7: - case 8: - case 9: - case 10: - goto IL_228; - case 11: - return method_4(); - case 12: - return false; - default: - throw new SharpZipBaseException("Inflater.Decode unknown mode"); - } - var num2 = _class1870.method_0(16); - if (num2 < 0) - { - return false; - } - _class1870.method_1(16); - if (num2 != (_int9 ^ 65535)) - { - throw new SharpZipBaseException("broken uncompressed block"); - } - _int4 = 5; - IL_1A4: - var num3 = _class2030.method_3(_class1870, _int9); - _int9 -= num3; - if (_int9 == 0) - { - _int4 = 2; - return true; - } - return !_class1870.method_5(); - IL_228: - return method_3(); - } - - public void method_6(byte[] byte0, int int10, int int11) - { - _class1870.method_8(byte0, int10, int11); - _long1 += int11; - } - - public int method_7(byte[] byte0, int int10, int int11) - { - if (byte0 == null) - { - throw new ArgumentNullException("buffer"); - } - if (int11 < 0) - { - throw new ArgumentOutOfRangeException("count", "count cannot be negative"); - } - if (int10 < 0) - { - throw new ArgumentOutOfRangeException("offset", "offset cannot be negative"); - } - if (int10 + int11 > byte0.Length) - { - throw new ArgumentException("count exceeds buffer bounds"); - } - if (int11 == 0) - { - if (!method_10()) - { - method_5(); - } - return 0; - } - var num = 0; - while (true) - { - if (_int4 != 11) - { - var num2 = _class2030.method_6(byte0, int10, int11); - if (num2 > 0) - { - _class2000.vmethod_2(byte0, int10, num2); - int10 += num2; - num += num2; - _long0 += num2; - int11 -= num2; - if (int11 == 0) - { - return num; - } - } - } - if (!method_5()) - { - if (_class2030.method_5() <= 0) - { - break; - } - if (_int4 == 11) - { - break; - } - } - } - return num; - } - - public bool method_8() - { - return _class1870.method_5(); - } - - public bool method_9() - { - return _int4 == 1 && _int6 == 0; - } - - public bool method_10() - { - return _int4 == 12 && _class2030.method_5() == 0; - } - - public long method_11() - { - return _long0; - } - - public long method_12() - { - return _long1 - method_13(); - } - - public int method_13() - { - return _class1870.method_3(); - } - } -} + public class Class196 + { + private static readonly int[] Int0 = + { + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 13, + 15, + 17, + 19, + 23, + 27, + 31, + 35, + 43, + 51, + 59, + 67, + 83, + 99, + 115, + 131, + 163, + 195, + 227, + 258 + }; + + private static readonly int[] Int1 = + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 4, + 4, + 4, + 4, + 5, + 5, + 5, + 5, + 0 + }; + + private static readonly int[] Int2 = + { + 1, + 2, + 3, + 4, + 5, + 7, + 9, + 13, + 17, + 25, + 33, + 49, + 65, + 97, + 129, + 193, + 257, + 385, + 513, + 769, + 1025, + 1537, + 2049, + 3073, + 4097, + 6145, + 8193, + 12289, + 16385, + 24577 + }; + + private static readonly int[] Int3 = + { + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 3, + 4, + 4, + 5, + 5, + 6, + 6, + 7, + 7, + 8, + 8, + 9, + 9, + 10, + 10, + 11, + 11, + 12, + 12, + 13, + 13 + }; + + private int _int4; + + private int _int5; + + private int _int6; + + private int _int7; + + private int _int8; + + private int _int9; + + private bool _bool0; + + private long _long0; + + private long _long1; + + private readonly bool _bool1; + + private readonly Class187 _class1870; + + private readonly Class203 _class2030; + + private Class198 _class1980; + + private Class197 _class1970; + + private Class197 _class1971; + + private readonly Class200 _class2000; + + public Class196() : this(false) + { + } + + public Class196(bool bool2) + { + _bool1 = bool2; + _class2000 = new Class200(); + _class1870 = new Class187(); + _class2030 = new Class203(); + _int4 = (bool2 ? 2 : 0); + } + + public void method_0() + { + _int4 = (_bool1 ? 2 : 0); + _long1 = 0L; + _long0 = 0L; + _class1870.method_7(); + _class2030.method_7(); + _class1980 = null; + _class1970 = null; + _class1971 = null; + _bool0 = false; + _class2000.vmethod_1(); + } + + private bool method_1() + { + var num = _class1870.method_0(16); + if (num < 0) + { + return false; + } + _class1870.method_1(16); + num = ((num << 8 | num >> 8) & 65535); + if (num % 31 != 0) + { + throw new SharpZipBaseException("Header checksum illegal"); + } + if ((num & 3840) != 2048) + { + throw new SharpZipBaseException("Compression Method unknown"); + } + if ((num & 32) == 0) + { + _int4 = 2; + } + else + { + _int4 = 1; + _int6 = 32; + } + return true; + } + + private bool method_2() + { + while (_int6 > 0) + { + var num = _class1870.method_0(8); + if (num < 0) + { + return false; + } + _class1870.method_1(8); + _int5 = (_int5 << 8 | num); + _int6 -= 8; + } + return false; + } + + private bool method_3() + { + var i = _class2030.method_4(); + while (i >= 258) + { + int num; + switch (_int4) + { + case 7: + while (((num = _class1970.method_1(_class1870)) & -256) == 0) + { + _class2030.method_0(num); + if (--i < 258) + { + return true; + } + } + if (num >= 257) + { + try + { + _int7 = Int0[num - 257]; + _int6 = Int1[num - 257]; + } + catch (Exception) + { + throw new SharpZipBaseException("Illegal rep length code"); + } + goto IL_AC; + } + if (num < 0) + { + return false; + } + _class1971 = null; + _class1970 = null; + _int4 = 2; + return true; + case 8: + goto IL_AC; + case 9: + goto IL_FC; + case 10: + break; + default: + throw new SharpZipBaseException("Inflater unknown mode"); + } + IL_13D: + if (_int6 > 0) + { + _int4 = 10; + var num2 = _class1870.method_0(_int6); + if (num2 < 0) + { + return false; + } + _class1870.method_1(_int6); + _int8 += num2; + } + _class2030.method_2(_int7, _int8); + i -= _int7; + _int4 = 7; + continue; + IL_FC: + num = _class1971.method_1(_class1870); + if (num >= 0) + { + try + { + _int8 = Int2[num]; + _int6 = Int3[num]; + } + catch (Exception) + { + throw new SharpZipBaseException("Illegal rep dist code"); + } + goto IL_13D; + } + return false; + IL_AC: + if (_int6 > 0) + { + _int4 = 8; + var num3 = _class1870.method_0(_int6); + if (num3 < 0) + { + return false; + } + _class1870.method_1(_int6); + _int7 += num3; + } + _int4 = 9; + goto IL_FC; + } + return true; + } + + private bool method_4() + { + while (_int6 > 0) + { + var num = _class1870.method_0(8); + if (num < 0) + { + return false; + } + _class1870.method_1(8); + _int5 = (_int5 << 8 | num); + _int6 -= 8; + } + if ((int) _class2000.vmethod_0() != _int5) + { + throw new SharpZipBaseException(string.Concat("Adler chksum doesn't match: ", + (int) _class2000.vmethod_0(), " vs. ", _int5)); + } + _int4 = 12; + return false; + } + + private bool method_5() + { + switch (_int4) + { + case 0: + return method_1(); + case 1: + return method_2(); + case 2: + if (_bool0) + { + if (_bool1) + { + _int4 = 12; + return false; + } + _class1870.method_4(); + _int6 = 32; + _int4 = 11; + return true; + } + else + { + var num = _class1870.method_0(3); + if (num < 0) + { + return false; + } + _class1870.method_1(3); + if ((num & 1) != 0) + { + _bool0 = true; + } + switch (num >> 1) + { + case 0: + _class1870.method_4(); + _int4 = 3; + break; + case 1: + _class1970 = Class197.Class1970; + _class1971 = Class197.Class1971; + _int4 = 7; + break; + case 2: + _class1980 = new Class198(); + _int4 = 6; + break; + default: + throw new SharpZipBaseException("Unknown block type " + num); + } + return true; + } + break; + case 3: + if ((_int9 = _class1870.method_0(16)) < 0) + { + return false; + } + _class1870.method_1(16); + _int4 = 4; + break; + case 4: + break; + case 5: + goto IL_1A4; + case 6: + if (!_class1980.method_0(_class1870)) + { + return false; + } + _class1970 = _class1980.method_1(); + _class1971 = _class1980.method_2(); + _int4 = 7; + goto IL_228; + case 7: + case 8: + case 9: + case 10: + goto IL_228; + case 11: + return method_4(); + case 12: + return false; + default: + throw new SharpZipBaseException("Inflater.Decode unknown mode"); + } + var num2 = _class1870.method_0(16); + if (num2 < 0) + { + return false; + } + _class1870.method_1(16); + if (num2 != (_int9 ^ 65535)) + { + throw new SharpZipBaseException("broken uncompressed block"); + } + _int4 = 5; + IL_1A4: + var num3 = _class2030.method_3(_class1870, _int9); + _int9 -= num3; + if (_int9 == 0) + { + _int4 = 2; + return true; + } + return !_class1870.method_5(); + IL_228: + return method_3(); + } + + public void method_6(byte[] byte0, int int10, int int11) + { + _class1870.method_8(byte0, int10, int11); + _long1 += int11; + } + + public int method_7(byte[] byte0, int int10, int int11) + { + if (byte0 == null) + { + throw new ArgumentNullException("buffer"); + } + if (int11 < 0) + { + throw new ArgumentOutOfRangeException("count", "count cannot be negative"); + } + if (int10 < 0) + { + throw new ArgumentOutOfRangeException("offset", "offset cannot be negative"); + } + if (int10 + int11 > byte0.Length) + { + throw new ArgumentException("count exceeds buffer bounds"); + } + if (int11 == 0) + { + if (!method_10()) + { + method_5(); + } + return 0; + } + var num = 0; + while (true) + { + if (_int4 != 11) + { + var num2 = _class2030.method_6(byte0, int10, int11); + if (num2 > 0) + { + _class2000.vmethod_2(byte0, int10, num2); + int10 += num2; + num += num2; + _long0 += num2; + int11 -= num2; + if (int11 == 0) + { + return num; + } + } + } + if (!method_5()) + { + if (_class2030.method_5() <= 0) + { + break; + } + if (_int4 == 11) + { + break; + } + } + } + return num; + } + + public bool method_8() + { + return _class1870.method_5(); + } + + public bool method_9() + { + return _int4 == 1 && _int6 == 0; + } + + public bool method_10() + { + return _int4 == 12 && _class2030.method_5() == 0; + } + + public long method_11() + { + return _long0; + } + + public long method_12() + { + return _long1 - method_13(); + } + + public int method_13() + { + return _class1870.method_3(); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class197.cs b/GHNamespace6/Class197.cs index 227f544..bc21571 100644 --- a/GHNamespace6/Class197.cs +++ b/GHNamespace6/Class197.cs @@ -4,168 +4,166 @@ namespace GHNamespace6 { - public class Class197 - { - private short[] _short0; + public class Class197 + { + private short[] _short0; - public static Class197 Class1970; + public static Class197 Class1970; - public static Class197 Class1971; + public static Class197 Class1971; - static Class197() - { - try - { - var array = new byte[288]; - var i = 0; - while (i < 144) - { - array[i++] = 8; - } - while (i < 256) - { - array[i++] = 9; - } - while (i < 280) - { - array[i++] = 7; - } - while (i < 288) - { - array[i++] = 8; - } - Class1970 = new Class197(array); - array = new byte[32]; - i = 0; - while (i < 32) - { - array[i++] = 5; - } - Class1971 = new Class197(array); - } - catch (Exception) - { - throw new SharpZipBaseException("InflaterHuffmanTree: static tree length illegal"); - } - } + static Class197() + { + try + { + var array = new byte[288]; + var i = 0; + while (i < 144) + { + array[i++] = 8; + } + while (i < 256) + { + array[i++] = 9; + } + while (i < 280) + { + array[i++] = 7; + } + while (i < 288) + { + array[i++] = 8; + } + Class1970 = new Class197(array); + array = new byte[32]; + i = 0; + while (i < 32) + { + array[i++] = 5; + } + Class1971 = new Class197(array); + } + catch (Exception) + { + throw new SharpZipBaseException("InflaterHuffmanTree: static tree length illegal"); + } + } - public Class197(byte[] byte0) - { - method_0(byte0); - } + public Class197(byte[] byte0) + { + method_0(byte0); + } - private void method_0(byte[] byte0) - { - var array = new int[16]; - var array2 = new int[16]; - for (var i = 0; i < byte0.Length; i++) - { - int num = byte0[i]; - if (num > 0) - { - array[num]++; - } - } - var num2 = 0; - var num3 = 512; - for (var j = 1; j <= 15; j++) - { - array2[j] = num2; - num2 += array[j] << 16 - j; - if (j >= 10) - { - var num4 = array2[j] & 130944; - var num5 = num2 & 130944; - num3 += num5 - num4 >> 16 - j; - } - } - _short0 = new short[num3]; - var num6 = 512; - for (var k = 15; k >= 10; k--) - { - var num7 = num2 & 130944; - num2 -= array[k] << 16 - k; - var num8 = num2 & 130944; - for (var l = num8; l < num7; l += 128) - { - _short0[Class190.smethod_0(l)] = (short)(-num6 << 4 | k); - num6 += 1 << k - 9; - } - } - for (var m = 0; m < byte0.Length; m++) - { - int num9 = byte0[m]; - if (num9 != 0) - { - num2 = array2[num9]; - int num10 = Class190.smethod_0(num2); - if (num9 <= 9) - { - do - { - _short0[num10] = (short)(m << 4 | num9); - num10 += 1 << num9; - } - while (num10 < 512); - } - else - { - int num11 = _short0[num10 & 511]; - var num12 = 1 << (num11 & 15); - num11 = -(num11 >> 4); - do - { - _short0[num11 | num10 >> 9] = (short)(m << 4 | num9); - num10 += 1 << num9; - } - while (num10 < num12); - } - array2[num9] = num2 + (1 << 16 - num9); - } - } - } + private void method_0(byte[] byte0) + { + var array = new int[16]; + var array2 = new int[16]; + for (var i = 0; i < byte0.Length; i++) + { + int num = byte0[i]; + if (num > 0) + { + array[num]++; + } + } + var num2 = 0; + var num3 = 512; + for (var j = 1; j <= 15; j++) + { + array2[j] = num2; + num2 += array[j] << 16 - j; + if (j >= 10) + { + var num4 = array2[j] & 130944; + var num5 = num2 & 130944; + num3 += num5 - num4 >> 16 - j; + } + } + _short0 = new short[num3]; + var num6 = 512; + for (var k = 15; k >= 10; k--) + { + var num7 = num2 & 130944; + num2 -= array[k] << 16 - k; + var num8 = num2 & 130944; + for (var l = num8; l < num7; l += 128) + { + _short0[Class190.smethod_0(l)] = (short) (-num6 << 4 | k); + num6 += 1 << k - 9; + } + } + for (var m = 0; m < byte0.Length; m++) + { + int num9 = byte0[m]; + if (num9 != 0) + { + num2 = array2[num9]; + int num10 = Class190.smethod_0(num2); + if (num9 <= 9) + { + do + { + _short0[num10] = (short) (m << 4 | num9); + num10 += 1 << num9; + } while (num10 < 512); + } + else + { + int num11 = _short0[num10 & 511]; + var num12 = 1 << (num11 & 15); + num11 = -(num11 >> 4); + do + { + _short0[num11 | num10 >> 9] = (short) (m << 4 | num9); + num10 += 1 << num9; + } while (num10 < num12); + } + array2[num9] = num2 + (1 << 16 - num9); + } + } + } - public int method_1(Class187 class1870) - { - int num; - if ((num = class1870.method_0(9)) >= 0) - { - int num2; - if ((num2 = _short0[num]) >= 0) - { - class1870.method_1(num2 & 15); - return num2 >> 4; - } - var num3 = -(num2 >> 4); - var int_ = num2 & 15; - if ((num = class1870.method_0(int_)) >= 0) - { - num2 = _short0[num3 | num >> 9]; - class1870.method_1(num2 & 15); - return num2 >> 4; - } - var num4 = class1870.method_2(); - num = class1870.method_0(num4); - num2 = _short0[num3 | num >> 9]; - if ((num2 & 15) <= num4) - { - class1870.method_1(num2 & 15); - return num2 >> 4; - } - return -1; - } - else - { - var num5 = class1870.method_2(); - num = class1870.method_0(num5); - int num2 = _short0[num]; - if (num2 >= 0 && (num2 & 15) <= num5) - { - class1870.method_1(num2 & 15); - return num2 >> 4; - } - return -1; - } - } - } -} + public int method_1(Class187 class1870) + { + int num; + if ((num = class1870.method_0(9)) >= 0) + { + int num2; + if ((num2 = _short0[num]) >= 0) + { + class1870.method_1(num2 & 15); + return num2 >> 4; + } + var num3 = -(num2 >> 4); + var int_ = num2 & 15; + if ((num = class1870.method_0(int_)) >= 0) + { + num2 = _short0[num3 | num >> 9]; + class1870.method_1(num2 & 15); + return num2 >> 4; + } + var num4 = class1870.method_2(); + num = class1870.method_0(num4); + num2 = _short0[num3 | num >> 9]; + if ((num2 & 15) <= num4) + { + class1870.method_1(num2 & 15); + return num2 >> 4; + } + return -1; + } + else + { + var num5 = class1870.method_2(); + num = class1870.method_0(num5); + int num2 = _short0[num]; + if (num2 >= 0 && (num2 & 15) <= num5) + { + class1870.method_1(num2 & 15); + return num2 >> 4; + } + return -1; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class198.cs b/GHNamespace6/Class198.cs index 5baf9c0..db5d899 100644 --- a/GHNamespace6/Class198.cs +++ b/GHNamespace6/Class198.cs @@ -4,200 +4,203 @@ namespace GHNamespace6 { - public class Class198 - { - private static readonly int[] Int0 = { - 3, - 3, - 11 - }; - - private static readonly int[] Int1 = { - 2, - 3, - 7 - }; - - private static readonly int[] Int2 = { - 16, - 17, - 18, - 0, - 8, - 7, - 9, - 6, - 10, - 5, - 11, - 4, - 12, - 3, - 13, - 2, - 14, - 1, - 15 - }; - - private byte[] _byte0; - - private byte[] _byte1; - - private Class197 _class1970; - - private int _int3; - - private int _int4; - - private int _int5; - - private int _int6; - - private int _int7; - - private int _int8; - - private byte _byte2; - - private int _int9; - - public bool method_0(Class187 class1870) - { - while (true) - { - switch (_int3) - { - case 0: - _int4 = class1870.method_0(5); - if (_int4 >= 0) - { - _int4 += 257; - class1870.method_1(5); - _int3 = 1; - goto IL_1FD; - } - return false; - case 1: - goto IL_1FD; - case 2: - goto IL_1AF; - case 3: - goto IL_176; - case 4: - break; - case 5: - goto IL_2C; - default: - continue; - } - IL_F4: - int num; - while (((num = _class1970.method_1(class1870)) & -16) == 0) - { - _byte1[_int9++] = (_byte2 = (byte)num); - if (_int9 == _int7) - { - return true; - } - } - if (num >= 0) - { - if (num >= 17) - { - _byte2 = 0; - } - else if (_int9 == 0) - { - goto IL_2A6; - } - _int8 = num - 16; - _int3 = 5; - goto IL_2C; - } - return false; - IL_176: - while (_int9 < _int6) - { - var num2 = class1870.method_0(3); - if (num2 < 0) - { - return false; - } - class1870.method_1(3); - _byte0[Int2[_int9]] = (byte)num2; - _int9++; - } - _class1970 = new Class197(_byte0); - _byte0 = null; - _int9 = 0; - _int3 = 4; - goto IL_F4; - IL_2C: - var num3 = Int1[_int8]; - var num4 = class1870.method_0(num3); - if (num4 < 0) - { - return false; - } - class1870.method_1(num3); - num4 += Int0[_int8]; - if (_int9 + num4 > _int7) - { - break; - } - while (num4-- > 0) - { - _byte1[_int9++] = _byte2; - } - if (_int9 == _int7) - { - return true; - } - _int3 = 4; - continue; - IL_1AF: - _int6 = class1870.method_0(4); - if (_int6 >= 0) - { - _int6 += 4; - class1870.method_1(4); - _byte0 = new byte[19]; - _int9 = 0; - _int3 = 3; - goto IL_176; - } - return false; - IL_1FD: - _int5 = class1870.method_0(5); - if (_int5 >= 0) - { - _int5++; - class1870.method_1(5); - _int7 = _int4 + _int5; - _byte1 = new byte[_int7]; - _int3 = 2; - goto IL_1AF; - } - return false; - } - throw new SharpZipBaseException(); - IL_2A6: - throw new SharpZipBaseException(); - } - - public Class197 method_1() - { - var destinationArray = new byte[_int4]; - Array.Copy(_byte1, 0, destinationArray, 0, _int4); - return new Class197(destinationArray); - } - - public Class197 method_2() - { - var destinationArray = new byte[_int5]; - Array.Copy(_byte1, _int4, destinationArray, 0, _int5); - return new Class197(destinationArray); - } - } -} + public class Class198 + { + private static readonly int[] Int0 = + { + 3, + 3, + 11 + }; + + private static readonly int[] Int1 = + { + 2, + 3, + 7 + }; + + private static readonly int[] Int2 = + { + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15 + }; + + private byte[] _byte0; + + private byte[] _byte1; + + private Class197 _class1970; + + private int _int3; + + private int _int4; + + private int _int5; + + private int _int6; + + private int _int7; + + private int _int8; + + private byte _byte2; + + private int _int9; + + public bool method_0(Class187 class1870) + { + while (true) + { + switch (_int3) + { + case 0: + _int4 = class1870.method_0(5); + if (_int4 >= 0) + { + _int4 += 257; + class1870.method_1(5); + _int3 = 1; + goto IL_1FD; + } + return false; + case 1: + goto IL_1FD; + case 2: + goto IL_1AF; + case 3: + goto IL_176; + case 4: + break; + case 5: + goto IL_2C; + default: + continue; + } + IL_F4: + int num; + while (((num = _class1970.method_1(class1870)) & -16) == 0) + { + _byte1[_int9++] = (_byte2 = (byte) num); + if (_int9 == _int7) + { + return true; + } + } + if (num >= 0) + { + if (num >= 17) + { + _byte2 = 0; + } + else if (_int9 == 0) + { + goto IL_2A6; + } + _int8 = num - 16; + _int3 = 5; + goto IL_2C; + } + return false; + IL_176: + while (_int9 < _int6) + { + var num2 = class1870.method_0(3); + if (num2 < 0) + { + return false; + } + class1870.method_1(3); + _byte0[Int2[_int9]] = (byte) num2; + _int9++; + } + _class1970 = new Class197(_byte0); + _byte0 = null; + _int9 = 0; + _int3 = 4; + goto IL_F4; + IL_2C: + var num3 = Int1[_int8]; + var num4 = class1870.method_0(num3); + if (num4 < 0) + { + return false; + } + class1870.method_1(num3); + num4 += Int0[_int8]; + if (_int9 + num4 > _int7) + { + break; + } + while (num4-- > 0) + { + _byte1[_int9++] = _byte2; + } + if (_int9 == _int7) + { + return true; + } + _int3 = 4; + continue; + IL_1AF: + _int6 = class1870.method_0(4); + if (_int6 >= 0) + { + _int6 += 4; + class1870.method_1(4); + _byte0 = new byte[19]; + _int9 = 0; + _int3 = 3; + goto IL_176; + } + return false; + IL_1FD: + _int5 = class1870.method_0(5); + if (_int5 >= 0) + { + _int5++; + class1870.method_1(5); + _int7 = _int4 + _int5; + _byte1 = new byte[_int7]; + _int3 = 2; + goto IL_1AF; + } + return false; + } + throw new SharpZipBaseException(); + IL_2A6: + throw new SharpZipBaseException(); + } + + public Class197 method_1() + { + var destinationArray = new byte[_int4]; + Array.Copy(_byte1, 0, destinationArray, 0, _int4); + return new Class197(destinationArray); + } + + public Class197 method_2() + { + var destinationArray = new byte[_int5]; + Array.Copy(_byte1, _int4, destinationArray, 0, _int5); + return new Class197(destinationArray); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class200.cs b/GHNamespace6/Class200.cs index 3224760..775f053 100644 --- a/GHNamespace6/Class200.cs +++ b/GHNamespace6/Class200.cs @@ -2,66 +2,66 @@ namespace GHNamespace6 { - public class Class200 - { - private uint _uint0; + public class Class200 + { + private uint _uint0; - public long vmethod_0() - { - return _uint0; - } + public long vmethod_0() + { + return _uint0; + } - public Class200() - { - vmethod_1(); - } + public Class200() + { + vmethod_1(); + } - public void vmethod_1() - { - _uint0 = 1u; - } + public void vmethod_1() + { + _uint0 = 1u; + } - public void vmethod_2(byte[] byte0, int int0, int int1) - { - if (byte0 == null) - { - throw new ArgumentNullException("buffer"); - } - if (int0 < 0) - { - throw new ArgumentOutOfRangeException("offset", "cannot be negative"); - } - if (int1 < 0) - { - throw new ArgumentOutOfRangeException("count", "cannot be negative"); - } - if (int0 >= byte0.Length) - { - throw new ArgumentOutOfRangeException("offset", "not a valid index into buffer"); - } - if (int0 + int1 > byte0.Length) - { - throw new ArgumentOutOfRangeException("count", "exceeds buffer size"); - } - var num = _uint0 & 65535u; - var num2 = _uint0 >> 16; - while (int1 > 0) - { - var num3 = 3800; - if (3800 > int1) - { - num3 = int1; - } - int1 -= num3; - while (--num3 >= 0) - { - num += (uint)(byte0[int0++] & 255); - num2 += num; - } - num %= 65521u; - num2 %= 65521u; - } - _uint0 = (num2 << 16 | num); - } - } -} + public void vmethod_2(byte[] byte0, int int0, int int1) + { + if (byte0 == null) + { + throw new ArgumentNullException("buffer"); + } + if (int0 < 0) + { + throw new ArgumentOutOfRangeException("offset", "cannot be negative"); + } + if (int1 < 0) + { + throw new ArgumentOutOfRangeException("count", "cannot be negative"); + } + if (int0 >= byte0.Length) + { + throw new ArgumentOutOfRangeException("offset", "not a valid index into buffer"); + } + if (int0 + int1 > byte0.Length) + { + throw new ArgumentOutOfRangeException("count", "exceeds buffer size"); + } + var num = _uint0 & 65535u; + var num2 = _uint0 >> 16; + while (int1 > 0) + { + var num3 = 3800; + if (3800 > int1) + { + num3 = int1; + } + int1 -= num3; + while (--num3 >= 0) + { + num += (uint) (byte0[int0++] & 255); + num2 += num; + } + num %= 65521u; + num2 %= 65521u; + } + _uint0 = (num2 << 16 | num); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class201.cs b/GHNamespace6/Class201.cs index 1a3345c..240b35a 100644 --- a/GHNamespace6/Class201.cs +++ b/GHNamespace6/Class201.cs @@ -6,206 +6,205 @@ namespace GHNamespace6 { - public class Class201 - { - private int _int0; - - private readonly byte[] _byte0; - - private int _int1; - - private byte[] _byte1; - - private byte[] _byte2; - - private int _int2; - - private ICryptoTransform _icryptoTransform0; - - private readonly Stream _stream0; - - public Class201(Stream stream1, int int3) - { - _stream0 = stream1; - if (int3 < 1024) - { - int3 = 1024; - } - _byte0 = new byte[int3]; - _byte1 = _byte0; - } - - public int method_0() - { - return _int0; - } - - public int method_1() - { - return _int2; - } - - public void method_2(int int3) - { - _int2 = int3; - } - - public void method_3(Class196 class1960) - { - if (_int2 > 0) - { - class1960.method_6(_byte1, _int1 - _int2, _int2); - _int2 = 0; - } - } - - public void method_4() - { - _int0 = 0; - var i = _byte0.Length; - while (i > 0) - { - var num = _stream0.Read(_byte0, _int0, i); - if (num > 0) - { - _int0 += num; - i -= num; - } - else - { - if (_int0 == 0) - { - throw new SharpZipBaseException("Unexpected EOF"); - } + public class Class201 + { + private int _int0; + + private readonly byte[] _byte0; + + private int _int1; + + private byte[] _byte1; + + private byte[] _byte2; + + private int _int2; + + private ICryptoTransform _icryptoTransform0; + + private readonly Stream _stream0; + + public Class201(Stream stream1, int int3) + { + _stream0 = stream1; + if (int3 < 1024) + { + int3 = 1024; + } + _byte0 = new byte[int3]; + _byte1 = _byte0; + } + + public int method_0() + { + return _int0; + } + + public int method_1() + { + return _int2; + } + + public void method_2(int int3) + { + _int2 = int3; + } + + public void method_3(Class196 class1960) + { + if (_int2 > 0) + { + class1960.method_6(_byte1, _int1 - _int2, _int2); + _int2 = 0; + } + } + + public void method_4() + { + _int0 = 0; + var i = _byte0.Length; + while (i > 0) + { + var num = _stream0.Read(_byte0, _int0, i); + if (num > 0) + { + _int0 += num; + i -= num; + } + else + { + if (_int0 == 0) + { + throw new SharpZipBaseException("Unexpected EOF"); + } goto IL_5A; - - } - } - IL_5A: + } + } + IL_5A: + if (_icryptoTransform0 != null) + { + _int1 = _icryptoTransform0.TransformBlock(_byte0, 0, _int0, _byte1, 0); + } + else + { + _int1 = _int0; + } + _int2 = _int1; + } + + public int method_5(byte[] byte3) + { + return method_6(byte3, 0, byte3.Length); + } + + public int method_6(byte[] byte3, int int3, int int4) + { + if (int4 < 0) + { + throw new ArgumentOutOfRangeException("length"); + } + var num = int3; + var i = int4; + while (i > 0) + { + if (_int2 <= 0) + { + method_4(); + if (_int2 <= 0) + { + return 0; + } + } + var num2 = Math.Min(i, _int2); + Array.Copy(_byte0, _int0 - _int2, byte3, num, num2); + num += num2; + i -= num2; + _int2 -= num2; + } + return int4; + } + + public int method_7(byte[] byte3, int int3, int int4) + { + if (int4 < 0) + { + throw new ArgumentOutOfRangeException("length"); + } + var num = int3; + var i = int4; + while (i > 0) + { + if (_int2 <= 0) + { + method_4(); + if (_int2 <= 0) + { + return 0; + } + } + var num2 = Math.Min(i, _int2); + Array.Copy(_byte1, _int1 - _int2, byte3, num, num2); + num += num2; + i -= num2; + _int2 -= num2; + } + return int4; + } + + public int method_8() + { + if (_int2 <= 0) + { + method_4(); + if (_int2 <= 0) + { + throw new ZipException("EOF in header"); + } + } + var result = (byte) (_byte0[_int0 - _int2] & 255); + _int2--; + return result; + } + + public int method_9() + { + return method_8() | method_8() << 8; + } + + public int method_10() + { + return method_9() | method_9() << 16; + } + + public long method_11() + { + return (long) ((ulong) method_10() | (ulong) method_10() << 32); + } + + public void method_12(ICryptoTransform icryptoTransform1) + { + _icryptoTransform0 = icryptoTransform1; if (_icryptoTransform0 != null) - { - _int1 = _icryptoTransform0.TransformBlock(_byte0, 0, _int0, _byte1, 0); - } - else - { - _int1 = _int0; - } - _int2 = _int1; - } - - public int method_5(byte[] byte3) - { - return method_6(byte3, 0, byte3.Length); - } - - public int method_6(byte[] byte3, int int3, int int4) - { - if (int4 < 0) - { - throw new ArgumentOutOfRangeException("length"); - } - var num = int3; - var i = int4; - while (i > 0) - { - if (_int2 <= 0) - { - method_4(); - if (_int2 <= 0) - { - return 0; - } - } - var num2 = Math.Min(i, _int2); - Array.Copy(_byte0, _int0 - _int2, byte3, num, num2); - num += num2; - i -= num2; - _int2 -= num2; - } - return int4; - } - - public int method_7(byte[] byte3, int int3, int int4) - { - if (int4 < 0) - { - throw new ArgumentOutOfRangeException("length"); - } - var num = int3; - var i = int4; - while (i > 0) - { - if (_int2 <= 0) - { - method_4(); - if (_int2 <= 0) - { - return 0; - } - } - var num2 = Math.Min(i, _int2); - Array.Copy(_byte1, _int1 - _int2, byte3, num, num2); - num += num2; - i -= num2; - _int2 -= num2; - } - return int4; - } - - public int method_8() - { - if (_int2 <= 0) - { - method_4(); - if (_int2 <= 0) - { - throw new ZipException("EOF in header"); - } - } - var result = (byte)(_byte0[_int0 - _int2] & 255); - _int2--; - return result; - } - - public int method_9() - { - return method_8() | method_8() << 8; - } - - public int method_10() - { - return method_9() | method_9() << 16; - } - - public long method_11() - { - return (long)((ulong)method_10() | (ulong)method_10() << 32); - } - - public void method_12(ICryptoTransform icryptoTransform1) - { - _icryptoTransform0 = icryptoTransform1; - if (_icryptoTransform0 != null) - { - if (_byte0 == _byte1) - { - if (_byte2 == null) - { - _byte2 = new byte[4096]; - } - _byte1 = _byte2; - } - _int1 = _int0; - if (_int2 > 0) - { - _icryptoTransform0.TransformBlock(_byte0, _int0 - _int2, _int2, _byte1, _int0 - _int2); - } - } - else - { - _byte1 = _byte0; - _int1 = _int0; - } - } - } -} + { + if (_byte0 == _byte1) + { + if (_byte2 == null) + { + _byte2 = new byte[4096]; + } + _byte1 = _byte2; + } + _int1 = _int0; + if (_int2 > 0) + { + _icryptoTransform0.TransformBlock(_byte0, _int0 - _int2, _int2, _byte1, _int0 - _int2); + } + } + else + { + _byte1 = _byte0; + _int1 = _int0; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class202.cs b/GHNamespace6/Class202.cs index c860bb2..316ee27 100644 --- a/GHNamespace6/Class202.cs +++ b/GHNamespace6/Class202.cs @@ -4,253 +4,254 @@ namespace GHNamespace6 { - public class Class202 : IDisposable - { - private int _int0; + public class Class202 : IDisposable + { + private int _int0; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private MemoryStream _memoryStream0; + private MemoryStream _memoryStream0; - private byte[] _byte0; + private byte[] _byte0; - public Class202() - { - method_1(); - } + public Class202() + { + method_1(); + } - public Class202(byte[] byte1) - { - if (byte1 == null) - { - _byte0 = new byte[0]; - return; - } - _byte0 = byte1; - } + public Class202(byte[] byte1) + { + if (byte1 == null) + { + _byte0 = new byte[0]; + return; + } + _byte0 = byte1; + } - public byte[] method_0() - { - if (method_2() > 65535) - { - throw new ZipException("Data exceeds maximum length"); - } - return (byte[])_byte0.Clone(); - } + public byte[] method_0() + { + if (method_2() > 65535) + { + throw new ZipException("Data exceeds maximum length"); + } + return (byte[]) _byte0.Clone(); + } - public void method_1() - { - if (_byte0 == null || _byte0.Length != 0) - { - _byte0 = new byte[0]; - } - } + public void method_1() + { + if (_byte0 == null || _byte0.Length != 0) + { + _byte0 = new byte[0]; + } + } - public int method_2() - { - return _byte0.Length; - } + public int method_2() + { + return _byte0.Length; + } - public int method_3() - { - return _int2; - } + public int method_3() + { + return _int2; + } - public int method_4() - { - return _int0; - } + public int method_4() + { + return _int0; + } - public int method_5() - { - if (_int1 > _byte0.Length || _int1 < 4) - { - throw new ZipException("Find must be called before calling a Read method"); - } - return _int1 + _int2 - _int0; - } + public int method_5() + { + if (_int1 > _byte0.Length || _int1 < 4) + { + throw new ZipException("Find must be called before calling a Read method"); + } + return _int1 + _int2 - _int0; + } - public bool method_6(int int3) - { - _int1 = _byte0.Length; - _int2 = 0; - _int0 = 0; - var num = _int1; - var num2 = int3 - 1; - while (num2 != int3 && _int0 < _byte0.Length - 3) - { - num2 = method_20(); - num = method_20(); - if (num2 != int3) - { - _int0 += num; - } - } - bool result; - if (result = (num2 == int3 && _int0 + num <= _byte0.Length)) - { - _int1 = _int0; - _int2 = num; - } - return result; - } + public bool method_6(int int3) + { + _int1 = _byte0.Length; + _int2 = 0; + _int0 = 0; + var num = _int1; + var num2 = int3 - 1; + while (num2 != int3 && _int0 < _byte0.Length - 3) + { + num2 = method_20(); + num = method_20(); + if (num2 != int3) + { + _int0 += num; + } + } + bool result; + if (result = (num2 == int3 && _int0 + num <= _byte0.Length)) + { + _int1 = _int0; + _int2 = num; + } + return result; + } - public void method_7(int int3, byte[] byte1) - { - if (int3 > 65535 || int3 < 0) - { - throw new ArgumentOutOfRangeException("headerID"); - } - var num = (byte1 == null) ? 0 : byte1.Length; - if (num > 65535) - { - throw new ArgumentOutOfRangeException("fieldData", "exceeds maximum length"); - } - var num2 = _byte0.Length + num + 4; - if (method_6(int3)) - { - num2 -= method_3() + 4; - } - if (num2 > 65535) - { - throw new ZipException("Data exceeds maximum length"); - } - method_13(int3); - var array = new byte[num2]; - _byte0.CopyTo(array, 0); - var index = _byte0.Length; - _byte0 = array; - method_21(ref index, int3); - method_21(ref index, num); - if (byte1 != null) - { - byte1.CopyTo(array, index); - } - } + public void method_7(int int3, byte[] byte1) + { + if (int3 > 65535 || int3 < 0) + { + throw new ArgumentOutOfRangeException("headerID"); + } + var num = (byte1 == null) ? 0 : byte1.Length; + if (num > 65535) + { + throw new ArgumentOutOfRangeException("fieldData", "exceeds maximum length"); + } + var num2 = _byte0.Length + num + 4; + if (method_6(int3)) + { + num2 -= method_3() + 4; + } + if (num2 > 65535) + { + throw new ZipException("Data exceeds maximum length"); + } + method_13(int3); + var array = new byte[num2]; + _byte0.CopyTo(array, 0); + var index = _byte0.Length; + _byte0 = array; + method_21(ref index, int3); + method_21(ref index, num); + if (byte1 != null) + { + byte1.CopyTo(array, index); + } + } - public void method_8() - { - _memoryStream0 = new MemoryStream(); - } + public void method_8() + { + _memoryStream0 = new MemoryStream(); + } - public void method_9(int int3) - { - var byte_ = _memoryStream0.ToArray(); - _memoryStream0 = null; - method_7(int3, byte_); - } + public void method_9(int int3) + { + var byte_ = _memoryStream0.ToArray(); + _memoryStream0 = null; + method_7(int3, byte_); + } - public void method_10(int int3) - { - _memoryStream0.WriteByte((byte)int3); - _memoryStream0.WriteByte((byte)(int3 >> 8)); - } + public void method_10(int int3) + { + _memoryStream0.WriteByte((byte) int3); + _memoryStream0.WriteByte((byte) (int3 >> 8)); + } - public void method_11(int int3) - { - method_10((short)int3); - method_10((short)(int3 >> 16)); - } + public void method_11(int int3) + { + method_10((short) int3); + method_10((short) (int3 >> 16)); + } - public void method_12(long long0) - { - method_11((int)(long0 & 4294967295L)); - method_11((int)(long0 >> 32)); - } + public void method_12(long long0) + { + method_11((int) (long0 & 4294967295L)); + method_11((int) (long0 >> 32)); + } - public bool method_13(int int3) - { - var result = false; - if (method_6(int3)) - { - result = true; - var num = _int1 - 4; - var destinationArray = new byte[_byte0.Length - (method_3() + 4)]; - Array.Copy(_byte0, 0, destinationArray, 0, num); - var num2 = num + method_3() + 4; - Array.Copy(_byte0, num2, destinationArray, num, _byte0.Length - num2); - _byte0 = destinationArray; - } - return result; - } + public bool method_13(int int3) + { + var result = false; + if (method_6(int3)) + { + result = true; + var num = _int1 - 4; + var destinationArray = new byte[_byte0.Length - (method_3() + 4)]; + Array.Copy(_byte0, 0, destinationArray, 0, num); + var num2 = num + method_3() + 4; + Array.Copy(_byte0, num2, destinationArray, num, _byte0.Length - num2); + _byte0 = destinationArray; + } + return result; + } - public long method_14() - { - method_19(8); - return (method_15() & 4294967295L) | (long)method_15() << 32; - } + public long method_14() + { + method_19(8); + return (method_15() & 4294967295L) | (long) method_15() << 32; + } - public int method_15() - { - method_19(4); - var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8) + (_byte0[_int0 + 2] << 16) + (_byte0[_int0 + 3] << 24); - _int0 += 4; - return result; - } + public int method_15() + { + method_19(4); + var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8) + (_byte0[_int0 + 2] << 16) + + (_byte0[_int0 + 3] << 24); + _int0 += 4; + return result; + } - public int method_16() - { - method_19(2); - var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8); - _int0 += 2; - return result; - } + public int method_16() + { + method_19(2); + var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8); + _int0 += 2; + return result; + } - public int method_17() - { - var result = -1; - if (_int0 < _byte0.Length && _int1 + _int2 > _int0) - { - result = _byte0[_int0]; - _int0++; - } - return result; - } + public int method_17() + { + var result = -1; + if (_int0 < _byte0.Length && _int1 + _int2 > _int0) + { + result = _byte0[_int0]; + _int0++; + } + return result; + } - public void method_18(int int3) - { - method_19(int3); - _int0 += int3; - } + public void method_18(int int3) + { + method_19(int3); + _int0 += int3; + } - private void method_19(int int3) - { - if (_int1 > _byte0.Length || _int1 < 4) - { - throw new ZipException("Find must be called before calling a Read method"); - } - if (_int0 > _int1 + _int2 - int3) - { - throw new ZipException("End of extra data"); - } - } + private void method_19(int int3) + { + if (_int1 > _byte0.Length || _int1 < 4) + { + throw new ZipException("Find must be called before calling a Read method"); + } + if (_int0 > _int1 + _int2 - int3) + { + throw new ZipException("End of extra data"); + } + } - private int method_20() - { - if (_int0 > _byte0.Length - 2) - { - throw new ZipException("End of extra data"); - } - var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8); - _int0 += 2; - return result; - } + private int method_20() + { + if (_int0 > _byte0.Length - 2) + { + throw new ZipException("End of extra data"); + } + var result = _byte0[_int0] + (_byte0[_int0 + 1] << 8); + _int0 += 2; + return result; + } - private void method_21(ref int int3, int int4) - { - _byte0[int3] = (byte)int4; - _byte0[int3 + 1] = (byte)(int4 >> 8); - int3 += 2; - } + private void method_21(ref int int3, int int4) + { + _byte0[int3] = (byte) int4; + _byte0[int3 + 1] = (byte) (int4 >> 8); + int3 += 2; + } - public void Dispose() - { - if (_memoryStream0 != null) - { - _memoryStream0.Close(); - } - } - } -} + public void Dispose() + { + if (_memoryStream0 != null) + { + _memoryStream0.Close(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class203.cs b/GHNamespace6/Class203.cs index 3664771..8a4abf5 100644 --- a/GHNamespace6/Class203.cs +++ b/GHNamespace6/Class203.cs @@ -3,123 +3,123 @@ namespace GHNamespace6 { - public class Class203 - { - private readonly byte[] _byte0 = new byte[32768]; + public class Class203 + { + private readonly byte[] _byte0 = new byte[32768]; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - public void method_0(int int2) - { - if (_int1++ == 32768) - { - throw new InvalidOperationException("Window full"); - } - _byte0[_int0++] = (byte)int2; - _int0 &= 32767; - } + public void method_0(int int2) + { + if (_int1++ == 32768) + { + throw new InvalidOperationException("Window full"); + } + _byte0[_int0++] = (byte) int2; + _int0 &= 32767; + } - private void method_1(int int2, int int3, int int4) - { - while (int3-- > 0) - { - _byte0[_int0++] = _byte0[int2++]; - _int0 &= 32767; - int2 &= 32767; - } - } + private void method_1(int int2, int int3, int int4) + { + while (int3-- > 0) + { + _byte0[_int0++] = _byte0[int2++]; + _int0 &= 32767; + int2 &= 32767; + } + } - public void method_2(int int2, int int3) - { - if ((_int1 += int2) > 32768) - { - throw new InvalidOperationException("Window full"); - } - var num = _int0 - int3 & 32767; - var num2 = 32768 - int2; - if (num > num2 || _int0 >= num2) - { - method_1(num, int2, int3); - return; - } - if (int2 <= int3) - { - Array.Copy(_byte0, num, _byte0, _int0, int2); - _int0 += int2; - return; - } - while (int2-- > 0) - { - _byte0[_int0++] = _byte0[num++]; - } - } + public void method_2(int int2, int int3) + { + if ((_int1 += int2) > 32768) + { + throw new InvalidOperationException("Window full"); + } + var num = _int0 - int3 & 32767; + var num2 = 32768 - int2; + if (num > num2 || _int0 >= num2) + { + method_1(num, int2, int3); + return; + } + if (int2 <= int3) + { + Array.Copy(_byte0, num, _byte0, _int0, int2); + _int0 += int2; + return; + } + while (int2-- > 0) + { + _byte0[_int0++] = _byte0[num++]; + } + } - public int method_3(Class187 class1870, int int2) - { - int2 = Math.Min(Math.Min(int2, 32768 - _int1), class1870.method_3()); - var num = 32768 - _int0; - int num2; - if (int2 > num) - { - num2 = class1870.method_6(_byte0, _int0, num); - if (num2 == num) - { - num2 += class1870.method_6(_byte0, 0, int2 - num); - } - } - else - { - num2 = class1870.method_6(_byte0, _int0, int2); - } - _int0 = (_int0 + num2 & 32767); - _int1 += num2; - return num2; - } + public int method_3(Class187 class1870, int int2) + { + int2 = Math.Min(Math.Min(int2, 32768 - _int1), class1870.method_3()); + var num = 32768 - _int0; + int num2; + if (int2 > num) + { + num2 = class1870.method_6(_byte0, _int0, num); + if (num2 == num) + { + num2 += class1870.method_6(_byte0, 0, int2 - num); + } + } + else + { + num2 = class1870.method_6(_byte0, _int0, int2); + } + _int0 = (_int0 + num2 & 32767); + _int1 += num2; + return num2; + } - public int method_4() - { - return 32768 - _int1; - } + public int method_4() + { + return 32768 - _int1; + } - public int method_5() - { - return _int1; - } + public int method_5() + { + return _int1; + } - public int method_6(byte[] byte1, int int2, int int3) - { - var num = _int0; - if (int3 > _int1) - { - int3 = _int1; - } - else - { - num = (_int0 - _int1 + int3 & 32767); - } - var num2 = int3; - var num3 = int3 - num; - if (num3 > 0) - { - Array.Copy(_byte0, 32768 - num3, byte1, int2, num3); - int2 += num3; - int3 = num; - } - Array.Copy(_byte0, num - int3, byte1, int2, int3); - _int1 -= num2; - if (_int1 < 0) - { - throw new InvalidOperationException(); - } - return num2; - } + public int method_6(byte[] byte1, int int2, int int3) + { + var num = _int0; + if (int3 > _int1) + { + int3 = _int1; + } + else + { + num = (_int0 - _int1 + int3 & 32767); + } + var num2 = int3; + var num3 = int3 - num; + if (num3 > 0) + { + Array.Copy(_byte0, 32768 - num3, byte1, int2, num3); + int2 += num3; + int3 = num; + } + Array.Copy(_byte0, num - int3, byte1, int2, int3); + _int1 -= num2; + if (_int1 < 0) + { + throw new InvalidOperationException(); + } + return num2; + } - public void method_7() - { - _int0 = 0; - _int1 = 0; - } - } -} + public void method_7() + { + _int0 = 0; + _int1 = 0; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class204.cs b/GHNamespace6/Class204.cs index b779b02..f4861b8 100644 --- a/GHNamespace6/Class204.cs +++ b/GHNamespace6/Class204.cs @@ -2,227 +2,234 @@ namespace GHNamespace6 { - public class Class204 : ICloneable - { - private static readonly DateTime DateTime0 = new DateTime(1970, 1, 1, 0, 0, 0, 0); + public class Class204 : ICloneable + { + private static readonly DateTime DateTime0 = new DateTime(1970, 1, 1, 0, 0, 0, 0); - private string _string0; + private string _string0; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private long _long0; + private long _long0; - private DateTime _dateTime1; + private DateTime _dateTime1; - private int _int3; + private int _int3; - private byte _byte0; + private byte _byte0; - private string _string1; + private string _string1; - private string _string2; + private string _string2; - private string _string3; + private string _string3; - private string _string4; + private string _string4; - private string _string5; + private string _string5; - private int _int4; + private int _int4; - private int _int5; + private int _int5; - public static string String6 = "None"; + public static string String6 = "None"; - public static int Int6; + public static int Int6; - public static int Int7; + public static int Int7; - public static string String7 = "None"; + public static string String7 = "None"; - public static string String8; + public static string String8; - public Class204() - { - method_14("ustar "); - method_16(" "); - method_1(""); - method_12(""); - method_3(Int6); - method_5(Int7); - method_18(String8); - method_20(String7); - method_7(0L); - } - - public string method_0() - { - return _string0; - } - - public void method_1(string string9) - { - if (string9 == null) - { - throw new ArgumentNullException("value"); - } - _string0 = string9; - } - - public int method_2() - { - return _int1; - } - - public void method_3(int int8) - { - _int1 = int8; - } - - public int method_4() - { - return _int2; - } - - public void method_5(int int8) - { - _int2 = int8; - } - - public long method_6() - { - return _long0; - } - - public void method_7(long long1) - { - if (long1 < 0L) - { - throw new ArgumentOutOfRangeException("value", "Cannot be less than zero"); - } - _long0 = long1; - } - - public DateTime method_8() - { - return _dateTime1; - } - - public int method_9() - { - return _int3; - } - - public byte method_10() - { - return _byte0; - } - - public string method_11() - { - return _string1; - } - - public void method_12(string string9) - { - if (string9 == null) - { - throw new ArgumentNullException("value"); - } - _string1 = string9; - } - - public string method_13() - { - return _string2; - } - - public void method_14(string string9) - { - if (string9 == null) - { - throw new ArgumentNullException("value"); - } - _string2 = string9; - } - - public string method_15() - { - return _string3; - } - - public void method_16(string string9) - { - if (string9 == null) - { - throw new ArgumentNullException("value"); - } - _string3 = string9; - } - - public string method_17() - { - return _string4; - } - - public void method_18(string string9) - { - if (string9 != null) - { - _string4 = string9.Substring(0, Math.Min(32, string9.Length)); - return; - } - var text = Environment.UserName; - if (text.Length > 32) - { - text = text.Substring(0, 32); - } - _string4 = text; - } - - public string method_19() - { - return _string5; - } - - public void method_20(string string9) - { - if (string9 == null) - { - _string5 = "None"; - return; - } - _string5 = string9; - } - - public int method_21() - { - return _int4; - } - - public int method_22() - { - return _int5; - } - - public object Clone() - { - return MemberwiseClone(); - } - - public override int GetHashCode() - { - return method_0().GetHashCode(); - } - - public override bool Equals(object obj) - { - var @class = obj as Class204; - return @class != null && (_string0 == @class._string0 && _int0 == @class._int0 && method_2() == @class.method_2() && method_4() == @class.method_4() && method_6() == @class.method_6() && method_8() == @class.method_8() && method_9() == @class.method_9() && method_10() == @class.method_10() && method_11() == @class.method_11() && method_13() == @class.method_13() && method_15() == @class.method_15() && method_17() == @class.method_17() && method_19() == @class.method_19() && method_21() == @class.method_21()) && method_22() == @class.method_22(); - } - } -} + public Class204() + { + method_14("ustar "); + method_16(" "); + method_1(""); + method_12(""); + method_3(Int6); + method_5(Int7); + method_18(String8); + method_20(String7); + method_7(0L); + } + + public string method_0() + { + return _string0; + } + + public void method_1(string string9) + { + if (string9 == null) + { + throw new ArgumentNullException("value"); + } + _string0 = string9; + } + + public int method_2() + { + return _int1; + } + + public void method_3(int int8) + { + _int1 = int8; + } + + public int method_4() + { + return _int2; + } + + public void method_5(int int8) + { + _int2 = int8; + } + + public long method_6() + { + return _long0; + } + + public void method_7(long long1) + { + if (long1 < 0L) + { + throw new ArgumentOutOfRangeException("value", "Cannot be less than zero"); + } + _long0 = long1; + } + + public DateTime method_8() + { + return _dateTime1; + } + + public int method_9() + { + return _int3; + } + + public byte method_10() + { + return _byte0; + } + + public string method_11() + { + return _string1; + } + + public void method_12(string string9) + { + if (string9 == null) + { + throw new ArgumentNullException("value"); + } + _string1 = string9; + } + + public string method_13() + { + return _string2; + } + + public void method_14(string string9) + { + if (string9 == null) + { + throw new ArgumentNullException("value"); + } + _string2 = string9; + } + + public string method_15() + { + return _string3; + } + + public void method_16(string string9) + { + if (string9 == null) + { + throw new ArgumentNullException("value"); + } + _string3 = string9; + } + + public string method_17() + { + return _string4; + } + + public void method_18(string string9) + { + if (string9 != null) + { + _string4 = string9.Substring(0, Math.Min(32, string9.Length)); + return; + } + var text = Environment.UserName; + if (text.Length > 32) + { + text = text.Substring(0, 32); + } + _string4 = text; + } + + public string method_19() + { + return _string5; + } + + public void method_20(string string9) + { + if (string9 == null) + { + _string5 = "None"; + return; + } + _string5 = string9; + } + + public int method_21() + { + return _int4; + } + + public int method_22() + { + return _int5; + } + + public object Clone() + { + return MemberwiseClone(); + } + + public override int GetHashCode() + { + return method_0().GetHashCode(); + } + + public override bool Equals(object obj) + { + var @class = obj as Class204; + return @class != null && (_string0 == @class._string0 && _int0 == @class._int0 && + method_2() == @class.method_2() && method_4() == @class.method_4() && + method_6() == @class.method_6() && method_8() == @class.method_8() && + method_9() == @class.method_9() && method_10() == @class.method_10() && + method_11() == @class.method_11() && method_13() == @class.method_13() && + method_15() == @class.method_15() && method_17() == @class.method_17() && + method_19() == @class.method_19() && method_21() == @class.method_21()) && + method_22() == @class.method_22(); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class205.cs b/GHNamespace6/Class205.cs index 4903ebd..83657ec 100644 --- a/GHNamespace6/Class205.cs +++ b/GHNamespace6/Class205.cs @@ -2,45 +2,45 @@ namespace GHNamespace6 { - public class Class205 : ICloneable - { - private string _string0; - - private Class204 _class2040; - - private Class205() - { - _class2040 = new Class204(); - } - - public object Clone() - { - var @class = new Class205(); - @class._string0 = _string0; - @class._class2040 = (Class204)_class2040.Clone(); - @class.method_1(method_0()); - return @class; - } - - public override bool Equals(object obj) - { - var @class = obj as Class205; - return @class != null && method_0().Equals(@class.method_0()); - } - - public override int GetHashCode() - { - return method_0().GetHashCode(); - } - - public string method_0() - { - return _class2040.method_0(); - } - - public void method_1(string string1) - { - _class2040.method_1(string1); - } - } -} + public class Class205 : ICloneable + { + private string _string0; + + private Class204 _class2040; + + private Class205() + { + _class2040 = new Class204(); + } + + public object Clone() + { + var @class = new Class205(); + @class._string0 = _string0; + @class._class2040 = (Class204) _class2040.Clone(); + @class.method_1(method_0()); + return @class; + } + + public override bool Equals(object obj) + { + var @class = obj as Class205; + return @class != null && method_0().Equals(@class.method_0()); + } + + public override int GetHashCode() + { + return method_0().GetHashCode(); + } + + public string method_0() + { + return _class2040.method_0(); + } + + public void method_1(string string1) + { + _class2040.method_1(string1); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class206.cs b/GHNamespace6/Class206.cs index 2e522b8..74a5e26 100644 --- a/GHNamespace6/Class206.cs +++ b/GHNamespace6/Class206.cs @@ -4,161 +4,165 @@ namespace GHNamespace6 { - public class Class206 - { - private Stream _stream0; - - private Stream _stream1; - - private byte[] _byte0; - - private int _int0; - - private int _int1; - - private readonly int _int2 = 10240; - - private readonly int _int3 = 20; - - public int method_0() - { - return _int2; - } - - public int method_1() - { - return _int3; - } - - public byte[] method_2() - { - if (_stream0 == null) - { - throw new TarException("TarBuffer.ReadBlock - no input stream defined"); - } - if (_int0 >= method_1() && !method_3()) - { - throw new TarException("Failed to read a record"); - } - var array = new byte[512]; - Array.Copy(_byte0, _int0 * 512, array, 0, 512); - _int0++; - return array; - } - - private bool method_3() - { - if (_stream0 == null) - { - throw new TarException("no input stream stream defined"); - } - _int0 = 0; - var num = 0; - long num2; - for (var i = method_0(); i > 0; i -= (int)num2) - { - num2 = _stream0.Read(_byte0, num, i); - if (num2 <= 0L) - { - break; - } - num += (int)num2; - } - _int1++; - return true; - } - - public void method_4(byte[] byte1) - { - if (byte1 == null) - { - throw new ArgumentNullException("block"); - } - if (_stream1 == null) - { - throw new TarException("TarBuffer.WriteBlock - no output stream defined"); - } - if (byte1.Length != 512) - { - var string_ = string.Format("TarBuffer.WriteBlock - block to write has length '{0}' which is not the block size of '{1}'", byte1.Length, 512); - throw new TarException(string_); - } - if (_int0 >= method_1()) - { - method_6(); - } - Array.Copy(byte1, 0, _byte0, _int0 * 512, 512); - _int0++; - } - - public void method_5(byte[] byte1, int int4) - { - if (byte1 == null) - { - throw new ArgumentNullException("buffer"); - } - if (_stream1 == null) - { - throw new TarException("TarBuffer.WriteBlock - no output stream stream defined"); - } - if (int4 < 0 || int4 >= byte1.Length) - { - throw new ArgumentOutOfRangeException("offset"); - } - if (int4 + 512 > byte1.Length) - { - var string_ = string.Format("TarBuffer.WriteBlock - record has length '{0}' with offset '{1}' which is less than the record size of '{2}'", byte1.Length, int4, _int2); - throw new TarException(string_); - } - if (_int0 >= method_1()) - { - method_6(); - } - Array.Copy(byte1, int4, _byte0, _int0 * 512, 512); - _int0++; - } - - private void method_6() - { - if (_stream1 == null) - { - throw new TarException("TarBuffer.WriteRecord no output stream defined"); - } - _stream1.Write(_byte0, 0, method_0()); - _stream1.Flush(); - _int0 = 0; - _int1++; - } - - private void method_7() - { - if (_stream1 == null) - { - throw new TarException("TarBuffer.Flush no output stream defined"); - } - if (_int0 > 0) - { - var num = _int0 * 512; - Array.Clear(_byte0, num, method_0() - num); - method_6(); - } - _stream1.Flush(); - } - - public void method_8() - { - if (_stream1 != null) - { - method_7(); - _stream1.Close(); - _stream1 = null; - return; - } - if (_stream0 != null) - { - _stream0.Close(); - _stream0 = null; - } - } - } -} + public class Class206 + { + private Stream _stream0; + + private Stream _stream1; + + private byte[] _byte0; + + private int _int0; + + private int _int1; + + private readonly int _int2 = 10240; + + private readonly int _int3 = 20; + + public int method_0() + { + return _int2; + } + + public int method_1() + { + return _int3; + } + + public byte[] method_2() + { + if (_stream0 == null) + { + throw new TarException("TarBuffer.ReadBlock - no input stream defined"); + } + if (_int0 >= method_1() && !method_3()) + { + throw new TarException("Failed to read a record"); + } + var array = new byte[512]; + Array.Copy(_byte0, _int0 * 512, array, 0, 512); + _int0++; + return array; + } + + private bool method_3() + { + if (_stream0 == null) + { + throw new TarException("no input stream stream defined"); + } + _int0 = 0; + var num = 0; + long num2; + for (var i = method_0(); i > 0; i -= (int) num2) + { + num2 = _stream0.Read(_byte0, num, i); + if (num2 <= 0L) + { + break; + } + num += (int) num2; + } + _int1++; + return true; + } + + public void method_4(byte[] byte1) + { + if (byte1 == null) + { + throw new ArgumentNullException("block"); + } + if (_stream1 == null) + { + throw new TarException("TarBuffer.WriteBlock - no output stream defined"); + } + if (byte1.Length != 512) + { + var string_ = string.Format( + "TarBuffer.WriteBlock - block to write has length '{0}' which is not the block size of '{1}'", + byte1.Length, 512); + throw new TarException(string_); + } + if (_int0 >= method_1()) + { + method_6(); + } + Array.Copy(byte1, 0, _byte0, _int0 * 512, 512); + _int0++; + } + + public void method_5(byte[] byte1, int int4) + { + if (byte1 == null) + { + throw new ArgumentNullException("buffer"); + } + if (_stream1 == null) + { + throw new TarException("TarBuffer.WriteBlock - no output stream stream defined"); + } + if (int4 < 0 || int4 >= byte1.Length) + { + throw new ArgumentOutOfRangeException("offset"); + } + if (int4 + 512 > byte1.Length) + { + var string_ = string.Format( + "TarBuffer.WriteBlock - record has length '{0}' with offset '{1}' which is less than the record size of '{2}'", + byte1.Length, int4, _int2); + throw new TarException(string_); + } + if (_int0 >= method_1()) + { + method_6(); + } + Array.Copy(byte1, int4, _byte0, _int0 * 512, 512); + _int0++; + } + + private void method_6() + { + if (_stream1 == null) + { + throw new TarException("TarBuffer.WriteRecord no output stream defined"); + } + _stream1.Write(_byte0, 0, method_0()); + _stream1.Flush(); + _int0 = 0; + _int1++; + } + + private void method_7() + { + if (_stream1 == null) + { + throw new TarException("TarBuffer.Flush no output stream defined"); + } + if (_int0 > 0) + { + var num = _int0 * 512; + Array.Clear(_byte0, num, method_0() - num); + method_6(); + } + _stream1.Flush(); + } + + public void method_8() + { + if (_stream1 != null) + { + method_7(); + _stream1.Close(); + _stream1 = null; + return; + } + if (_stream0 != null) + { + _stream0.Close(); + _stream0 = null; + } + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Class207.cs b/GHNamespace6/Class207.cs index d5a7ab4..531b5b8 100644 --- a/GHNamespace6/Class207.cs +++ b/GHNamespace6/Class207.cs @@ -3,45 +3,46 @@ namespace GHNamespace6 { - public abstract class Class207 : SymmetricAlgorithm - { - public static byte[] smethod_0(byte[] byte0) - { - if (byte0 == null) - { - throw new ArgumentNullException("seed"); - } - if (byte0.Length == 0) - { - throw new ArgumentException("Length is zero", "seed"); - } - uint[] array = { - 305419896u, - 591751049u, - 878082192u - }; - for (var i = 0; i < byte0.Length; i++) - { - array[0] = Class192.smethod_0(array[0], byte0[i]); - array[1] = array[1] + (byte)array[0]; - array[1] = array[1] * 134775813u + 1u; - array[2] = Class192.smethod_0(array[2], (byte)(array[1] >> 24)); - } - return new[] - { - (byte)(array[0] & 255u), - (byte)(array[0] >> 8 & 255u), - (byte)(array[0] >> 16 & 255u), - (byte)(array[0] >> 24 & 255u), - (byte)(array[1] & 255u), - (byte)(array[1] >> 8 & 255u), - (byte)(array[1] >> 16 & 255u), - (byte)(array[1] >> 24 & 255u), - (byte)(array[2] & 255u), - (byte)(array[2] >> 8 & 255u), - (byte)(array[2] >> 16 & 255u), - (byte)(array[2] >> 24 & 255u) - }; - } - } -} + public abstract class Class207 : SymmetricAlgorithm + { + public static byte[] smethod_0(byte[] byte0) + { + if (byte0 == null) + { + throw new ArgumentNullException("seed"); + } + if (byte0.Length == 0) + { + throw new ArgumentException("Length is zero", "seed"); + } + uint[] array = + { + 305419896u, + 591751049u, + 878082192u + }; + for (var i = 0; i < byte0.Length; i++) + { + array[0] = Class192.smethod_0(array[0], byte0[i]); + array[1] = array[1] + (byte) array[0]; + array[1] = array[1] * 134775813u + 1u; + array[2] = Class192.smethod_0(array[2], (byte) (array[1] >> 24)); + } + return new[] + { + (byte) (array[0] & 255u), + (byte) (array[0] >> 8 & 255u), + (byte) (array[0] >> 16 & 255u), + (byte) (array[0] >> 24 & 255u), + (byte) (array[1] & 255u), + (byte) (array[1] >> 8 & 255u), + (byte) (array[1] >> 16 & 255u), + (byte) (array[1] >> 24 & 255u), + (byte) (array[2] & 255u), + (byte) (array[2] >> 8 & 255u), + (byte) (array[2] >> 16 & 255u), + (byte) (array[2] >> 24 & 255u) + }; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Stream23.cs b/GHNamespace6/Stream23.cs index d45cdc4..cd2fbe2 100644 --- a/GHNamespace6/Stream23.cs +++ b/GHNamespace6/Stream23.cs @@ -6,532 +6,536 @@ namespace GHNamespace6 { - public class Stream23 : Stream22 - { - private ArrayList _arrayList0 = new ArrayList(); + public class Stream23 : Stream22 + { + private ArrayList _arrayList0 = new ArrayList(); - private readonly Class192 _class1920 = new Class192(); + private readonly Class192 _class1920 = new Class192(); - private Class193 _class1930; + private Class193 _class1930; - private int _int0 = -1; + private int _int0 = -1; - private Enum31 _enum310 = Enum31.Const1; + private Enum31 _enum310 = Enum31.Const1; - private long _long0; + private long _long0; - private long _long1; + private long _long1; - private readonly byte[] _byte1 = new byte[0]; + private readonly byte[] _byte1 = new byte[0]; - private bool _bool2; + private bool _bool2; - private long _long2 = -1L; + private long _long2 = -1L; - private long _long3 = -1L; + private long _long3 = -1L; - private readonly Enum30 _enum300 = Enum30.Const2; + private readonly Enum30 _enum300 = Enum30.Const2; - public Stream23(Stream stream1) : base(stream1, new Class194(-1, true)) - { - } + public Stream23(Stream stream1) : base(stream1, new Class194(-1, true)) + { + } - public void method_6(int int1) - { - Class1940.method_7(int1); - _int0 = int1; - } + public void method_6(int int1) + { + Class1940.method_7(int1); + _int0 = int1; + } - private void method_7(int int1) - { - Stream0.WriteByte((byte)(int1 & 255)); - Stream0.WriteByte((byte)(int1 >> 8 & 255)); - } + private void method_7(int int1) + { + Stream0.WriteByte((byte) (int1 & 255)); + Stream0.WriteByte((byte) (int1 >> 8 & 255)); + } - private void method_8(int int1) - { - method_7(int1); - method_7(int1 >> 16); - } + private void method_8(int int1) + { + method_7(int1); + method_7(int1 >> 16); + } - private void method_9(long long4) - { - method_8((int)long4); - method_8((int)(long4 >> 32)); - } + private void method_9(long long4) + { + method_8((int) long4); + method_8((int) (long4 >> 32)); + } - public void method_10(Class193 class1931) - { - if (class1931 == null) - { - throw new ArgumentNullException("entry"); - } - if (_arrayList0 == null) - { - throw new InvalidOperationException("ZipOutputStream was finished"); - } - if (_class1930 != null) - { - method_11(); - } - if (_arrayList0.Count == 2147483647) - { - throw new ZipException("Too many entries for Zip file"); - } - var @enum = class1931.method_27(); - var int_ = _int0; - class1931.method_5(class1931.method_4() & 2048); - _bool2 = false; - var flag = true; - if (@enum == Enum31.Const0) - { - class1931.method_5(class1931.method_4() & -9); - if (class1931.method_23() >= 0L) - { - if (class1931.method_21() < 0L) - { - class1931.method_22(class1931.method_23()); - } - else if (class1931.method_21() != class1931.method_23()) - { - throw new ZipException("Method STORED, but compressed size != size"); - } - } - else if (class1931.method_21() >= 0L) - { - class1931.method_24(class1931.method_21()); - } - if (class1931.method_21() < 0L || class1931.method_25() < 0L) - { - if (method_0()) - { - flag = false; - } - else - { - @enum = Enum31.Const1; - int_ = 0; - } - } - } - if (@enum == Enum31.Const1) - { - if (class1931.method_21() == 0L) - { - class1931.method_24(class1931.method_21()); - class1931.method_26(0L); - @enum = Enum31.Const0; - } - else if (class1931.method_23() < 0L || class1931.method_21() < 0L || class1931.method_25() < 0L) - { - flag = false; - } - } - if (!flag) - { - if (!method_0()) - { - class1931.method_5(class1931.method_4() | 8); - } - else - { - _bool2 = true; - } - } - if (method_1() != null) - { - class1931.method_1(true); - if (class1931.method_25() < 0L) - { - class1931.method_5(class1931.method_4() | 8); - } - } - class1931.method_7(_long1); - class1931.method_28(@enum); - _enum310 = @enum; - _long3 = -1L; - if (_enum300 == Enum30.Const1 || (class1931.method_21() < 0L && _enum300 == Enum30.Const2)) - { - class1931.method_13(); - } - method_8(67324752); - method_7(class1931.method_11()); - method_7(class1931.method_4()); - method_7((byte)@enum); - method_8((int)class1931.method_17()); - if (flag) - { - method_8((int)class1931.method_25()); - if (class1931.method_15()) - { - method_8(-1); - method_8(-1); - } - else - { - method_8(class1931.method_0() ? ((int)class1931.method_23() + 12) : ((int)class1931.method_23())); - method_8((int)class1931.method_21()); - } - } - else - { - if (_bool2) - { - _long2 = Stream0.Position; - } - method_8(0); - if (_bool2) - { - _long3 = Stream0.Position; - } - if (class1931.method_15() && _bool2) - { - method_8(-1); - method_8(-1); - } - else - { - method_8(0); - method_8(0); - } - } - var array = Class186.smethod_4(class1931.method_4(), class1931.method_20()); - if (array.Length > 65535) - { - throw new ZipException("Entry name too long."); - } - var @class = new Class202(class1931.method_29()); - if (class1931.method_15() && (flag || _bool2)) - { - @class.method_8(); - if (flag) - { - @class.method_12(class1931.method_21()); - @class.method_12(class1931.method_23()); - } - else - { - @class.method_12(-1L); - @class.method_12(-1L); - } - @class.method_9(1); - if (!@class.method_6(1)) - { - throw new ZipException("Internal error cant find extra data"); - } - if (_bool2) - { - _long3 = @class.method_4(); - } - } - else - { - @class.method_13(1); - } - var array2 = @class.method_0(); - method_7(array.Length); - method_7(array2.Length); - if (array.Length > 0) - { - Stream0.Write(array, 0, array.Length); - } - if (class1931.method_15() && _bool2) - { - _long3 += Stream0.Position; - } - if (array2.Length > 0) - { - Stream0.Write(array2, 0, array2.Length); - } - _long1 += 30 + array.Length + array2.Length; - _class1930 = class1931; - _class1920.vmethod_1(); - if (@enum == Enum31.Const1) - { - Class1940.method_0(); - Class1940.method_7(int_); - } - _long0 = 0L; - if (class1931.method_0()) - { - if (class1931.method_25() < 0L) - { - method_12(class1931.method_17() << 16); - return; - } - method_12(class1931.method_25()); - } - } + public void method_10(Class193 class1931) + { + if (class1931 == null) + { + throw new ArgumentNullException("entry"); + } + if (_arrayList0 == null) + { + throw new InvalidOperationException("ZipOutputStream was finished"); + } + if (_class1930 != null) + { + method_11(); + } + if (_arrayList0.Count == 2147483647) + { + throw new ZipException("Too many entries for Zip file"); + } + var @enum = class1931.method_27(); + var int_ = _int0; + class1931.method_5(class1931.method_4() & 2048); + _bool2 = false; + var flag = true; + if (@enum == Enum31.Const0) + { + class1931.method_5(class1931.method_4() & -9); + if (class1931.method_23() >= 0L) + { + if (class1931.method_21() < 0L) + { + class1931.method_22(class1931.method_23()); + } + else if (class1931.method_21() != class1931.method_23()) + { + throw new ZipException("Method STORED, but compressed size != size"); + } + } + else if (class1931.method_21() >= 0L) + { + class1931.method_24(class1931.method_21()); + } + if (class1931.method_21() < 0L || class1931.method_25() < 0L) + { + if (method_0()) + { + flag = false; + } + else + { + @enum = Enum31.Const1; + int_ = 0; + } + } + } + if (@enum == Enum31.Const1) + { + if (class1931.method_21() == 0L) + { + class1931.method_24(class1931.method_21()); + class1931.method_26(0L); + @enum = Enum31.Const0; + } + else if (class1931.method_23() < 0L || class1931.method_21() < 0L || class1931.method_25() < 0L) + { + flag = false; + } + } + if (!flag) + { + if (!method_0()) + { + class1931.method_5(class1931.method_4() | 8); + } + else + { + _bool2 = true; + } + } + if (method_1() != null) + { + class1931.method_1(true); + if (class1931.method_25() < 0L) + { + class1931.method_5(class1931.method_4() | 8); + } + } + class1931.method_7(_long1); + class1931.method_28(@enum); + _enum310 = @enum; + _long3 = -1L; + if (_enum300 == Enum30.Const1 || (class1931.method_21() < 0L && _enum300 == Enum30.Const2)) + { + class1931.method_13(); + } + method_8(67324752); + method_7(class1931.method_11()); + method_7(class1931.method_4()); + method_7((byte) @enum); + method_8((int) class1931.method_17()); + if (flag) + { + method_8((int) class1931.method_25()); + if (class1931.method_15()) + { + method_8(-1); + method_8(-1); + } + else + { + method_8(class1931.method_0() ? ((int) class1931.method_23() + 12) : ((int) class1931.method_23())); + method_8((int) class1931.method_21()); + } + } + else + { + if (_bool2) + { + _long2 = Stream0.Position; + } + method_8(0); + if (_bool2) + { + _long3 = Stream0.Position; + } + if (class1931.method_15() && _bool2) + { + method_8(-1); + method_8(-1); + } + else + { + method_8(0); + method_8(0); + } + } + var array = Class186.smethod_4(class1931.method_4(), class1931.method_20()); + if (array.Length > 65535) + { + throw new ZipException("Entry name too long."); + } + var @class = new Class202(class1931.method_29()); + if (class1931.method_15() && (flag || _bool2)) + { + @class.method_8(); + if (flag) + { + @class.method_12(class1931.method_21()); + @class.method_12(class1931.method_23()); + } + else + { + @class.method_12(-1L); + @class.method_12(-1L); + } + @class.method_9(1); + if (!@class.method_6(1)) + { + throw new ZipException("Internal error cant find extra data"); + } + if (_bool2) + { + _long3 = @class.method_4(); + } + } + else + { + @class.method_13(1); + } + var array2 = @class.method_0(); + method_7(array.Length); + method_7(array2.Length); + if (array.Length > 0) + { + Stream0.Write(array, 0, array.Length); + } + if (class1931.method_15() && _bool2) + { + _long3 += Stream0.Position; + } + if (array2.Length > 0) + { + Stream0.Write(array2, 0, array2.Length); + } + _long1 += 30 + array.Length + array2.Length; + _class1930 = class1931; + _class1920.vmethod_1(); + if (@enum == Enum31.Const1) + { + Class1940.method_0(); + Class1940.method_7(int_); + } + _long0 = 0L; + if (class1931.method_0()) + { + if (class1931.method_25() < 0L) + { + method_12(class1931.method_17() << 16); + return; + } + method_12(class1931.method_25()); + } + } - public void method_11() - { - if (_class1930 == null) - { - throw new InvalidOperationException("No open entry"); - } - if (_enum310 == Enum31.Const1) - { - base.vmethod_0(); - } - var num = (_enum310 == Enum31.Const1) ? Class1940.method_1() : _long0; - if (_class1930.method_21() < 0L) - { - _class1930.method_22(_long0); - } - else if (_class1930.method_21() != _long0) - { - throw new ZipException(string.Concat("size was ", _long0, ", but I expected ", _class1930.method_21())); - } - if (_class1930.method_23() < 0L) - { - _class1930.method_24(num); - } - else if (_class1930.method_23() != num) - { - throw new ZipException(string.Concat("compressed size was ", num, ", but I expected ", _class1930.method_23())); - } - if (_class1930.method_25() < 0L) - { - _class1930.method_26(_class1920.vmethod_0()); - } - else if (_class1930.method_25() != _class1920.vmethod_0()) - { - throw new ZipException(string.Concat("crc was ", _class1920.vmethod_0(), ", but I expected ", _class1930.method_25())); - } - _long1 += num; - if (_class1930.method_0()) - { - var expr_1E6 = _class1930; - expr_1E6.method_24(expr_1E6.method_23() + 12L); - } - if (_bool2) - { - _bool2 = false; - var position = Stream0.Position; - Stream0.Seek(_long2, SeekOrigin.Begin); - method_8((int)_class1930.method_25()); - if (_class1930.method_15()) - { - if (_long3 == -1L) - { - throw new ZipException("Entry requires zip64 but this has been turned off"); - } - Stream0.Seek(_long3, SeekOrigin.Begin); - method_9(_class1930.method_21()); - method_9(_class1930.method_23()); - } - else - { - method_8((int)_class1930.method_23()); - method_8((int)_class1930.method_21()); - } - Stream0.Seek(position, SeekOrigin.Begin); - } - if ((_class1930.method_4() & 8) != 0) - { - method_8(134695760); - method_8((int)_class1930.method_25()); - if (_class1930.method_15()) - { - method_9(_class1930.method_23()); - method_9(_class1930.method_21()); - _long1 += 24L; - } - else - { - method_8((int)_class1930.method_23()); - method_8((int)_class1930.method_21()); - _long1 += 16L; - } - } - _arrayList0.Add(_class1930); - _class1930 = null; - } + public void method_11() + { + if (_class1930 == null) + { + throw new InvalidOperationException("No open entry"); + } + if (_enum310 == Enum31.Const1) + { + base.vmethod_0(); + } + var num = (_enum310 == Enum31.Const1) ? Class1940.method_1() : _long0; + if (_class1930.method_21() < 0L) + { + _class1930.method_22(_long0); + } + else if (_class1930.method_21() != _long0) + { + throw new ZipException(string.Concat("size was ", _long0, ", but I expected ", _class1930.method_21())); + } + if (_class1930.method_23() < 0L) + { + _class1930.method_24(num); + } + else if (_class1930.method_23() != num) + { + throw new ZipException(string.Concat("compressed size was ", num, ", but I expected ", + _class1930.method_23())); + } + if (_class1930.method_25() < 0L) + { + _class1930.method_26(_class1920.vmethod_0()); + } + else if (_class1930.method_25() != _class1920.vmethod_0()) + { + throw new ZipException(string.Concat("crc was ", _class1920.vmethod_0(), ", but I expected ", + _class1930.method_25())); + } + _long1 += num; + if (_class1930.method_0()) + { + var expr_1E6 = _class1930; + expr_1E6.method_24(expr_1E6.method_23() + 12L); + } + if (_bool2) + { + _bool2 = false; + var position = Stream0.Position; + Stream0.Seek(_long2, SeekOrigin.Begin); + method_8((int) _class1930.method_25()); + if (_class1930.method_15()) + { + if (_long3 == -1L) + { + throw new ZipException("Entry requires zip64 but this has been turned off"); + } + Stream0.Seek(_long3, SeekOrigin.Begin); + method_9(_class1930.method_21()); + method_9(_class1930.method_23()); + } + else + { + method_8((int) _class1930.method_23()); + method_8((int) _class1930.method_21()); + } + Stream0.Seek(position, SeekOrigin.Begin); + } + if ((_class1930.method_4() & 8) != 0) + { + method_8(134695760); + method_8((int) _class1930.method_25()); + if (_class1930.method_15()) + { + method_9(_class1930.method_23()); + method_9(_class1930.method_21()); + _long1 += 24L; + } + else + { + method_8((int) _class1930.method_23()); + method_8((int) _class1930.method_21()); + _long1 += 16L; + } + } + _arrayList0.Add(_class1930); + _class1930 = null; + } - private void method_12(long long4) - { - _long1 += 12L; - method_4(method_1()); - var array = new byte[12]; - var random = new Random(); - random.NextBytes(array); - array[11] = (byte)(long4 >> 24); - method_3(array, 0, array.Length); - Stream0.Write(array, 0, array.Length); - } + private void method_12(long long4) + { + _long1 += 12L; + method_4(method_1()); + var array = new byte[12]; + var random = new Random(); + random.NextBytes(array); + array[11] = (byte) (long4 >> 24); + method_3(array, 0, array.Length); + Stream0.Write(array, 0, array.Length); + } - public override void Write(byte[] buffer, int offset, int count) - { - if (_class1930 == null) - { - throw new InvalidOperationException("No open entry."); - } - if (buffer == null) - { - throw new ArgumentNullException("buffer"); - } - if (offset < 0) - { - throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); - } - if (count < 0) - { - throw new ArgumentOutOfRangeException("count", "Cannot be negative"); - } - if (buffer.Length - offset < count) - { - throw new ArgumentException("Invalid offset/count combination"); - } - _class1920.vmethod_3(buffer, offset, count); - _long0 += count; - var @enum = _enum310; - if (@enum != Enum31.Const0) - { - if (@enum != Enum31.Const1) - { - return; - } - base.Write(buffer, offset, count); - } - else - { - if (method_1() != null) - { - method_13(buffer, offset, count); - return; - } - Stream0.Write(buffer, offset, count); - } - } + public override void Write(byte[] buffer, int offset, int count) + { + if (_class1930 == null) + { + throw new InvalidOperationException("No open entry."); + } + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0) + { + throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); + } + if (count < 0) + { + throw new ArgumentOutOfRangeException("count", "Cannot be negative"); + } + if (buffer.Length - offset < count) + { + throw new ArgumentException("Invalid offset/count combination"); + } + _class1920.vmethod_3(buffer, offset, count); + _long0 += count; + var @enum = _enum310; + if (@enum != Enum31.Const0) + { + if (@enum != Enum31.Const1) + { + return; + } + base.Write(buffer, offset, count); + } + else + { + if (method_1() != null) + { + method_13(buffer, offset, count); + return; + } + Stream0.Write(buffer, offset, count); + } + } - private void method_13(byte[] byte2, int int1, int int2) - { - var array = new byte[4096]; - while (int2 > 0) - { - var num = (int2 < 4096) ? int2 : 4096; - Array.Copy(byte2, int1, array, 0, num); - method_3(array, 0, num); - Stream0.Write(array, 0, num); - int2 -= num; - int1 += num; - } - } + private void method_13(byte[] byte2, int int1, int int2) + { + var array = new byte[4096]; + while (int2 > 0) + { + var num = (int2 < 4096) ? int2 : 4096; + Array.Copy(byte2, int1, array, 0, num); + method_3(array, 0, num); + Stream0.Write(array, 0, num); + int2 -= num; + int1 += num; + } + } - public override void vmethod_0() - { - if (_arrayList0 == null) - { - return; - } - if (_class1930 != null) - { - method_11(); - } - long num = _arrayList0.Count; - var num2 = 0L; - foreach (Class193 @class in _arrayList0) - { - method_8(33639248); - method_7(45); - method_7(@class.method_11()); - method_7(@class.method_4()); - method_7((short)@class.method_27()); - method_8((int)@class.method_17()); - method_8((int)@class.method_25()); - if (!@class.method_14() && @class.method_23() < 4294967295L) - { - method_8((int)@class.method_23()); - } - else - { - method_8(-1); - } - if (!@class.method_14() && @class.method_21() < 4294967295L) - { - method_8((int)@class.method_21()); - } - else - { - method_8(-1); - } - var array = Class186.smethod_4(@class.method_4(), @class.method_20()); - if (array.Length > 65535) - { - throw new ZipException("Name too long."); - } - var class2 = new Class202(@class.method_29()); - if (@class.method_16()) - { - class2.method_8(); - if (@class.method_14() || @class.method_21() >= 4294967295L) - { - class2.method_12(@class.method_21()); - } - if (@class.method_14() || @class.method_23() >= 4294967295L) - { - class2.method_12(@class.method_23()); - } - if (@class.method_6() >= 4294967295L) - { - class2.method_12(@class.method_6()); - } - class2.method_9(1); - } - else - { - class2.method_13(1); - } - var array2 = class2.method_0(); - var array3 = (@class.method_32() != null) ? Class186.smethod_4(@class.method_4(), @class.method_32()) : new byte[0]; - if (array3.Length > 65535) - { - throw new ZipException("Comment too long."); - } - method_7(array.Length); - method_7(array2.Length); - method_7(array3.Length); - method_7(0); - method_7(0); - if (@class.method_8() != -1) - { - method_8(@class.method_8()); - } - else if (@class.method_33()) - { - method_8(16); - } - else - { - method_8(0); - } - if (@class.method_6() >= 4294967295L) - { - method_8(-1); - } - else - { - method_8((int)@class.method_6()); - } - if (array.Length > 0) - { - Stream0.Write(array, 0, array.Length); - } - if (array2.Length > 0) - { - Stream0.Write(array2, 0, array2.Length); - } - if (array3.Length > 0) - { - Stream0.Write(array3, 0, array3.Length); - } - num2 += 46 + array.Length + array2.Length + array3.Length; - } - using (var stream = new Stream25(Stream0)) - { - stream.method_1(num, num2, _long1, _byte1); - } - _arrayList0 = null; - } - } -} + public override void vmethod_0() + { + if (_arrayList0 == null) + { + return; + } + if (_class1930 != null) + { + method_11(); + } + long num = _arrayList0.Count; + var num2 = 0L; + foreach (Class193 @class in _arrayList0) + { + method_8(33639248); + method_7(45); + method_7(@class.method_11()); + method_7(@class.method_4()); + method_7((short) @class.method_27()); + method_8((int) @class.method_17()); + method_8((int) @class.method_25()); + if (!@class.method_14() && @class.method_23() < 4294967295L) + { + method_8((int) @class.method_23()); + } + else + { + method_8(-1); + } + if (!@class.method_14() && @class.method_21() < 4294967295L) + { + method_8((int) @class.method_21()); + } + else + { + method_8(-1); + } + var array = Class186.smethod_4(@class.method_4(), @class.method_20()); + if (array.Length > 65535) + { + throw new ZipException("Name too long."); + } + var class2 = new Class202(@class.method_29()); + if (@class.method_16()) + { + class2.method_8(); + if (@class.method_14() || @class.method_21() >= 4294967295L) + { + class2.method_12(@class.method_21()); + } + if (@class.method_14() || @class.method_23() >= 4294967295L) + { + class2.method_12(@class.method_23()); + } + if (@class.method_6() >= 4294967295L) + { + class2.method_12(@class.method_6()); + } + class2.method_9(1); + } + else + { + class2.method_13(1); + } + var array2 = class2.method_0(); + var array3 = (@class.method_32() != null) + ? Class186.smethod_4(@class.method_4(), @class.method_32()) + : new byte[0]; + if (array3.Length > 65535) + { + throw new ZipException("Comment too long."); + } + method_7(array.Length); + method_7(array2.Length); + method_7(array3.Length); + method_7(0); + method_7(0); + if (@class.method_8() != -1) + { + method_8(@class.method_8()); + } + else if (@class.method_33()) + { + method_8(16); + } + else + { + method_8(0); + } + if (@class.method_6() >= 4294967295L) + { + method_8(-1); + } + else + { + method_8((int) @class.method_6()); + } + if (array.Length > 0) + { + Stream0.Write(array, 0, array.Length); + } + if (array2.Length > 0) + { + Stream0.Write(array2, 0, array2.Length); + } + if (array3.Length > 0) + { + Stream0.Write(array3, 0, array3.Length); + } + num2 += 46 + array.Length + array2.Length + array3.Length; + } + using (var stream = new Stream25(Stream0)) + { + stream.method_1(num, num2, _long1, _byte1); + } + _arrayList0 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Stream24.cs b/GHNamespace6/Stream24.cs index 9ff4128..9aa734c 100644 --- a/GHNamespace6/Stream24.cs +++ b/GHNamespace6/Stream24.cs @@ -4,175 +4,177 @@ namespace GHNamespace6 { - public class Stream24 : Stream - { - private long _long0; - - private int _int0; - - private bool _bool0; - - public long Long1; - - public byte[] Byte0; - - public byte[] Byte1; - - public Class206 Class2060; - - public Stream Stream0; - - public override bool CanRead => Stream0.CanRead; - - public override bool CanSeek => Stream0.CanSeek; - - public override bool CanWrite => Stream0.CanWrite; - - public override long Length => Stream0.Length; - - public override long Position - { - get => Stream0.Position; - set => Stream0.Position = value; - } - - public override long Seek(long offset, SeekOrigin origin) - { - return Stream0.Seek(offset, origin); - } - - public override void SetLength(long value) - { - Stream0.SetLength(value); - } - - public override int ReadByte() - { - return Stream0.ReadByte(); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return Stream0.Read(buffer, offset, count); - } - - public override void Flush() - { - Stream0.Flush(); - } - - public void method_0() - { - if (method_1()) - { - method_2(); - } - method_3(); - } - - public override void Close() - { - if (!_bool0) - { - _bool0 = true; - method_0(); - Class2060.method_8(); - } - } - - private bool method_1() - { - return _long0 < Long1; - } - - public void method_2() - { - if (_int0 > 0) - { - Array.Clear(Byte1, _int0, Byte1.Length - _int0); - Class2060.method_4(Byte1); - _long0 += _int0; - _int0 = 0; - } - if (_long0 < Long1) - { - var string_ = string.Format("Entry closed at '{0}' before the '{1}' bytes specified in the header were written", _long0, Long1); - throw new TarException(string_); - } - } - - public override void WriteByte(byte value) - { - Write(new[] - { - value - }, 0, 1); - } - - public override void Write(byte[] buffer, int offset, int count) - { - if (buffer == null) - { - throw new ArgumentNullException("buffer"); - } - if (offset < 0) - { - throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); - } - if (buffer.Length - offset < count) - { - throw new ArgumentException("offset and count combination is invalid"); - } - if (count < 0) - { - throw new ArgumentOutOfRangeException("count", "Cannot be negative"); - } - if (_long0 + count > Long1) - { - var message = string.Format("request to write '{0}' bytes exceeds size in header of '{1}' bytes", count, Long1); - throw new ArgumentOutOfRangeException("count", message); - } - if (_int0 > 0) - { - if (_int0 + count >= Byte0.Length) - { - var num = Byte0.Length - _int0; - Array.Copy(Byte1, 0, Byte0, 0, _int0); - Array.Copy(buffer, offset, Byte0, _int0, num); - Class2060.method_4(Byte0); - _long0 += Byte0.Length; - offset += num; - count -= num; - _int0 = 0; - } - else - { - Array.Copy(buffer, offset, Byte1, _int0, count); - offset += count; - _int0 += count; - count -= count; - } - } - while (count > 0) - { - if (count < Byte0.Length) - { - Array.Copy(buffer, offset, Byte1, _int0, count); - _int0 += count; - return; - } - Class2060.method_5(buffer, offset); - var num2 = Byte0.Length; - _long0 += num2; - count -= num2; - offset += num2; - } - } - - private void method_3() - { - Array.Clear(Byte0, 0, Byte0.Length); - Class2060.method_4(Byte0); - } - } -} + public class Stream24 : Stream + { + private long _long0; + + private int _int0; + + private bool _bool0; + + public long Long1; + + public byte[] Byte0; + + public byte[] Byte1; + + public Class206 Class2060; + + public Stream Stream0; + + public override bool CanRead => Stream0.CanRead; + + public override bool CanSeek => Stream0.CanSeek; + + public override bool CanWrite => Stream0.CanWrite; + + public override long Length => Stream0.Length; + + public override long Position + { + get => Stream0.Position; + set => Stream0.Position = value; + } + + public override long Seek(long offset, SeekOrigin origin) + { + return Stream0.Seek(offset, origin); + } + + public override void SetLength(long value) + { + Stream0.SetLength(value); + } + + public override int ReadByte() + { + return Stream0.ReadByte(); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return Stream0.Read(buffer, offset, count); + } + + public override void Flush() + { + Stream0.Flush(); + } + + public void method_0() + { + if (method_1()) + { + method_2(); + } + method_3(); + } + + public override void Close() + { + if (!_bool0) + { + _bool0 = true; + method_0(); + Class2060.method_8(); + } + } + + private bool method_1() + { + return _long0 < Long1; + } + + public void method_2() + { + if (_int0 > 0) + { + Array.Clear(Byte1, _int0, Byte1.Length - _int0); + Class2060.method_4(Byte1); + _long0 += _int0; + _int0 = 0; + } + if (_long0 < Long1) + { + var string_ = string.Format( + "Entry closed at '{0}' before the '{1}' bytes specified in the header were written", _long0, Long1); + throw new TarException(string_); + } + } + + public override void WriteByte(byte value) + { + Write(new[] + { + value + }, 0, 1); + } + + public override void Write(byte[] buffer, int offset, int count) + { + if (buffer == null) + { + throw new ArgumentNullException("buffer"); + } + if (offset < 0) + { + throw new ArgumentOutOfRangeException("offset", "Cannot be negative"); + } + if (buffer.Length - offset < count) + { + throw new ArgumentException("offset and count combination is invalid"); + } + if (count < 0) + { + throw new ArgumentOutOfRangeException("count", "Cannot be negative"); + } + if (_long0 + count > Long1) + { + var message = string.Format("request to write '{0}' bytes exceeds size in header of '{1}' bytes", count, + Long1); + throw new ArgumentOutOfRangeException("count", message); + } + if (_int0 > 0) + { + if (_int0 + count >= Byte0.Length) + { + var num = Byte0.Length - _int0; + Array.Copy(Byte1, 0, Byte0, 0, _int0); + Array.Copy(buffer, offset, Byte0, _int0, num); + Class2060.method_4(Byte0); + _long0 += Byte0.Length; + offset += num; + count -= num; + _int0 = 0; + } + else + { + Array.Copy(buffer, offset, Byte1, _int0, count); + offset += count; + _int0 += count; + count -= count; + } + } + while (count > 0) + { + if (count < Byte0.Length) + { + Array.Copy(buffer, offset, Byte1, _int0, count); + _int0 += count; + return; + } + Class2060.method_5(buffer, offset); + var num2 = Byte0.Length; + _long0 += num2; + count -= num2; + offset += num2; + } + } + + private void method_3() + { + Array.Clear(Byte0, 0, Byte0.Length); + Class2060.method_4(Byte0); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/Stream25.cs b/GHNamespace6/Stream25.cs index 682d1ca..6a1bead 100644 --- a/GHNamespace6/Stream25.cs +++ b/GHNamespace6/Stream25.cs @@ -3,163 +3,163 @@ namespace GHNamespace6 { - public class Stream25 : Stream - { - private bool _bool0; - - private Stream _stream0; - - public override bool CanRead => _stream0.CanRead; - - public override bool CanSeek => _stream0.CanSeek; - - public override bool CanTimeout => _stream0.CanTimeout; - - public override bool CanWrite => _stream0.CanWrite; - - public override long Length => _stream0.Length; - - public override long Position - { - get => _stream0.Position; - set => _stream0.Position = value; - } - - public Stream25(Stream stream1) - { - _stream0 = stream1; - } - - public override void Flush() - { - _stream0.Flush(); - } - - public override long Seek(long offset, SeekOrigin origin) - { - return _stream0.Seek(offset, origin); - } - - public override void SetLength(long value) - { - _stream0.SetLength(value); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return _stream0.Read(buffer, offset, count); - } - - public override void Write(byte[] buffer, int offset, int count) - { - _stream0.Write(buffer, offset, count); - } - - public override void Close() - { - var stream = _stream0; - _stream0 = null; - if (_bool0 && stream != null) - { - _bool0 = false; - stream.Close(); - } - } - - public void method_0(long long0, long long1, long long2) - { - var position = _stream0.Position; - method_4(101075792); - method_6(44L); - method_2(45); - method_2(45); - method_4(0); - method_4(0); - method_6(long0); - method_6(long0); - method_6(long1); - method_6(long2); - method_4(117853008); - method_4(0); - method_6(position); - method_4(1); - } - - public void method_1(long long0, long long1, long long2, byte[] byte0) - { - if (long0 >= 65535L || long2 >= 4294967295L || long1 >= 4294967295L) - { - method_0(long0, long1, long2); - } - method_4(101010256); - method_2(0); - method_2(0); - if (long0 >= 65535L) - { - method_3(65535); - method_3(65535); - } - else - { - method_2((short)long0); - method_2((short)long0); - } - if (long1 >= 4294967295L) - { - method_5(4294967295u); - } - else - { - method_4((int)long1); - } - if (long2 >= 4294967295L) - { - method_5(4294967295u); - } - else - { - method_4((int)long2); - } - var num = (byte0 != null) ? byte0.Length : 0; - if (num > 65535) - { - throw new ZipException(string.Format("Comment length({0}) is too long can only be 64K", num)); - } - method_2(num); - if (num > 0) - { - Write(byte0, 0, byte0.Length); - } - } - - public void method_2(int int0) - { - _stream0.WriteByte((byte)(int0 & 255)); - _stream0.WriteByte((byte)(int0 >> 8 & 255)); - } - - public void method_3(ushort ushort0) - { - _stream0.WriteByte((byte)(ushort0 & 255)); - _stream0.WriteByte((byte)(ushort0 >> 8)); - } - - public void method_4(int int0) - { - method_2(int0); - method_2(int0 >> 16); - } - - public void method_5(uint uint0) - { - method_3((ushort)(uint0 & 65535u)); - method_3((ushort)(uint0 >> 16)); - } - - public void method_6(long long0) - { - method_4((int)long0); - method_4((int)(long0 >> 32)); - } - } -} + public class Stream25 : Stream + { + private bool _bool0; + + private Stream _stream0; + + public override bool CanRead => _stream0.CanRead; + + public override bool CanSeek => _stream0.CanSeek; + + public override bool CanTimeout => _stream0.CanTimeout; + + public override bool CanWrite => _stream0.CanWrite; + + public override long Length => _stream0.Length; + + public override long Position + { + get => _stream0.Position; + set => _stream0.Position = value; + } + + public Stream25(Stream stream1) + { + _stream0 = stream1; + } + + public override void Flush() + { + _stream0.Flush(); + } + + public override long Seek(long offset, SeekOrigin origin) + { + return _stream0.Seek(offset, origin); + } + + public override void SetLength(long value) + { + _stream0.SetLength(value); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return _stream0.Read(buffer, offset, count); + } + + public override void Write(byte[] buffer, int offset, int count) + { + _stream0.Write(buffer, offset, count); + } + + public override void Close() + { + var stream = _stream0; + _stream0 = null; + if (_bool0 && stream != null) + { + _bool0 = false; + stream.Close(); + } + } + + public void method_0(long long0, long long1, long long2) + { + var position = _stream0.Position; + method_4(101075792); + method_6(44L); + method_2(45); + method_2(45); + method_4(0); + method_4(0); + method_6(long0); + method_6(long0); + method_6(long1); + method_6(long2); + method_4(117853008); + method_4(0); + method_6(position); + method_4(1); + } + + public void method_1(long long0, long long1, long long2, byte[] byte0) + { + if (long0 >= 65535L || long2 >= 4294967295L || long1 >= 4294967295L) + { + method_0(long0, long1, long2); + } + method_4(101010256); + method_2(0); + method_2(0); + if (long0 >= 65535L) + { + method_3(65535); + method_3(65535); + } + else + { + method_2((short) long0); + method_2((short) long0); + } + if (long1 >= 4294967295L) + { + method_5(4294967295u); + } + else + { + method_4((int) long1); + } + if (long2 >= 4294967295L) + { + method_5(4294967295u); + } + else + { + method_4((int) long2); + } + var num = (byte0 != null) ? byte0.Length : 0; + if (num > 65535) + { + throw new ZipException(string.Format("Comment length({0}) is too long can only be 64K", num)); + } + method_2(num); + if (num > 0) + { + Write(byte0, 0, byte0.Length); + } + } + + public void method_2(int int0) + { + _stream0.WriteByte((byte) (int0 & 255)); + _stream0.WriteByte((byte) (int0 >> 8 & 255)); + } + + public void method_3(ushort ushort0) + { + _stream0.WriteByte((byte) (ushort0 & 255)); + _stream0.WriteByte((byte) (ushort0 >> 8)); + } + + public void method_4(int int0) + { + method_2(int0); + method_2(int0 >> 16); + } + + public void method_5(uint uint0) + { + method_3((ushort) (uint0 & 65535u)); + method_3((ushort) (uint0 >> 16)); + } + + public void method_6(long long0) + { + method_4((int) long0); + method_4((int) (long0 >> 32)); + } + } +} \ No newline at end of file diff --git a/GHNamespace6/ZIPManager.cs b/GHNamespace6/ZIPManager.cs index 0ab0623..27496cf 100644 --- a/GHNamespace6/ZIPManager.cs +++ b/GHNamespace6/ZIPManager.cs @@ -5,174 +5,175 @@ namespace GHNamespace6 { - public static class ZipManager - { - public static void smethod_0(IEnumerable fileNameList, string saveLocation, string password, Stream[] fileStreamList) - { - CheckFileDirectory(fileNameList, saveLocation, 9, password, fileStreamList); - } + public static class ZipManager + { + public static void smethod_0(IEnumerable fileNameList, string saveLocation, string password, + Stream[] fileStreamList) + { + CheckFileDirectory(fileNameList, saveLocation, 9, password, fileStreamList); + } - public static void CheckFileDirectory(IEnumerable fileNameList, string saveLocation, int nine, string password, Stream[] fileStreamList) - { - if (!Directory.Exists(new FileInfo(saveLocation).Directory.ToString())) - { - throw new ArgumentException("The Path does not exist."); - } - ProcessFile(fileNameList, File.Create(saveLocation), nine, password, fileStreamList); - } + public static void CheckFileDirectory(IEnumerable fileNameList, string saveLocation, int nine, + string password, Stream[] fileStreamList) + { + if (!Directory.Exists(new FileInfo(saveLocation).Directory.ToString())) + { + throw new ArgumentException("The Path does not exist."); + } + ProcessFile(fileNameList, File.Create(saveLocation), nine, password, fileStreamList); + } - public static void ProcessFile(IEnumerable fileNameList, Stream zipFile, int compressionAmount, string password, Stream[] fileStreamList) - { - if (compressionAmount >= 0 && compressionAmount <= 9) - { - var @class = new Class192(); - var stream = new Stream23(zipFile); - stream.method_6(compressionAmount); - if (password != null) - { - stream.method_2(password); - } - var num = 0; - using (var enumerator = fileNameList.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - var current = enumerator.Current; - var class2 = new Class193(current); - class2.method_19(DateTime.Now); - var stream2 = fileStreamList[num++]; - byte[] array; - if (stream2 is MemoryStream) - { - array = (stream2 as MemoryStream).ToArray(); - } - else - { - array = new byte[stream2.Length]; - var num2 = stream2.Read(array, 0, array.Length); - if (num2 < array.Length) - { - Array.Resize(ref array, num2); - } - } - class2.method_22(array.Length); - @class.vmethod_1(); - @class.vmethod_2(array); - class2.method_26(@class.vmethod_0()); - stream.method_10(class2); - stream.Write(array, 0, array.Length); - } - goto IL_10D; - } - goto IL_102; - IL_10D: - stream.vmethod_0(); - stream.Close(); - return; - } - IL_102: - throw new ArgumentException("Invalid compression rate."); - } + public static void ProcessFile(IEnumerable fileNameList, Stream zipFile, int compressionAmount, + string password, Stream[] fileStreamList) + { + if (compressionAmount >= 0 && compressionAmount <= 9) + { + var @class = new Class192(); + var stream = new Stream23(zipFile); + stream.method_6(compressionAmount); + if (password != null) + { + stream.method_2(password); + } + var num = 0; + using (var enumerator = fileNameList.GetEnumerator()) + { + while (enumerator.MoveNext()) + { + var current = enumerator.Current; + var class2 = new Class193(current); + class2.method_19(DateTime.Now); + var stream2 = fileStreamList[num++]; + byte[] array; + if (stream2 is MemoryStream) + { + array = (stream2 as MemoryStream).ToArray(); + } + else + { + array = new byte[stream2.Length]; + var num2 = stream2.Read(array, 0, array.Length); + if (num2 < array.Length) + { + Array.Resize(ref array, num2); + } + } + class2.method_22(array.Length); + @class.vmethod_1(); + @class.vmethod_2(array); + class2.method_26(@class.vmethod_0()); + stream.method_10(class2); + stream.Write(array, 0, array.Length); + } + goto IL_10D; + } + goto IL_102; + IL_10D: + stream.vmethod_0(); + stream.Close(); + return; + } + IL_102: + throw new ArgumentException("Invalid compression rate."); + } - public static void ExtractBytesFrom(string zipFilePath, out byte[] bytes, string fileName, string password) - { - ExtractBytes(File.OpenRead(zipFilePath), out bytes, fileName, password); - } + public static void ExtractBytesFrom(string zipFilePath, out byte[] bytes, string fileName, string password) + { + ExtractBytes(File.OpenRead(zipFilePath), out bytes, fileName, password); + } - public static void smethod_4(string string0, string string1, string string2) - { - smethod_9(File.OpenRead(string0), File.Create(string1), string2); - } + public static void smethod_4(string string0, string string1, string string2) + { + smethod_9(File.OpenRead(string0), File.Create(string1), string2); + } - public static byte[] smethod_5(byte[] byte0, string string0) - { - return smethod_6(new MemoryStream(byte0), string0); - } + public static byte[] smethod_5(byte[] byte0, string string0) + { + return smethod_6(new MemoryStream(byte0), string0); + } - public static byte[] smethod_6(Stream stream0, string string0) - { - var memoryStream = new MemoryStream(); - smethod_9(stream0, memoryStream, string0); - return memoryStream.ToArray(); - } + public static byte[] smethod_6(Stream stream0, string string0) + { + var memoryStream = new MemoryStream(); + smethod_9(stream0, memoryStream, string0); + return memoryStream.ToArray(); + } - public static void ExtractBytes(Stream streamIn, out byte[] bytes, string fileName, string password) - { - var memoryStream = new MemoryStream(); - smethod_10(streamIn, memoryStream, fileName, password); - bytes = memoryStream.ToArray(); - } + public static void ExtractBytes(Stream streamIn, out byte[] bytes, string fileName, string password) + { + var memoryStream = new MemoryStream(); + smethod_10(streamIn, memoryStream, fileName, password); + bytes = memoryStream.ToArray(); + } - public static void smethod_8(Stream stream0, string string0, string string1) - { - smethod_10(stream0, File.Create(string0), string1, null); - } + public static void smethod_8(Stream stream0, string string0, string string1) + { + smethod_10(stream0, File.Create(string0), string1, null); + } - public static void smethod_9(Stream stream0, Stream stream1, string string0) - { - smethod_10(stream0, stream1, string0, null); - } + public static void smethod_9(Stream stream0, Stream stream1, string string0) + { + smethod_10(stream0, stream1, string0, null); + } - public static void smethod_10(Stream zipFile, Stream memoryStream, string fileName, string password) - { + public static void smethod_10(Stream zipFile, Stream memoryStream, string fileName, string password) + { var zipManager = new ZipCompressor(zipFile); - if (password != null) - { - zipManager.method_3(password); - } - var buffer = new byte[2048]; - Class193 @class; - while ((@class = zipManager.method_5()) != null) - { - if (@class.method_20() == fileName) - { - int num; - do - { - num = zipManager.Read(buffer, 0, buffer.Length); - memoryStream.Write(buffer, 0, num); - } - while (num > 0); - zipManager.Close(); - memoryStream.Close(); - zipFile.Close(); - return; - } - } - } + if (password != null) + { + zipManager.method_3(password); + } + var buffer = new byte[2048]; + Class193 @class; + while ((@class = zipManager.method_5()) != null) + { + if (@class.method_20() == fileName) + { + int num; + do + { + num = zipManager.Read(buffer, 0, buffer.Length); + memoryStream.Write(buffer, 0, num); + } while (num > 0); + zipManager.Close(); + memoryStream.Close(); + zipFile.Close(); + return; + } + } + } - public static void smethod_11(string string0, List list0, List list1, string string1) - { - Stream stream = File.OpenRead(string0); + public static void smethod_11(string string0, List list0, List list1, string string1) + { + Stream stream = File.OpenRead(string0); var stream2 = new ZipCompressor(stream); - if (string1 != null) - { - stream2.method_3(string1); - } - var array = new byte[2048]; - Class193 @class; - while ((@class = stream2.method_5()) != null) - { - if (list1.Contains(@class.method_20())) - { - var index = list1.IndexOf(@class.method_20()); - using (Stream stream3 = File.Create(list0[index])) - { - if (stream3.CanWrite) - { - int num; - do - { - num = stream2.Read(array, 0, array.Length); - stream3.Write(array, 0, num); - } - while (num > 0); - } - } - } - } - stream2.Close(); - stream.Close(); - } - } -} + if (string1 != null) + { + stream2.method_3(string1); + } + var array = new byte[2048]; + Class193 @class; + while ((@class = stream2.method_5()) != null) + { + if (list1.Contains(@class.method_20())) + { + var index = list1.IndexOf(@class.method_20()); + using (Stream stream3 = File.Create(list0[index])) + { + if (stream3.CanWrite) + { + int num; + do + { + num = stream2.Read(array, 0, array.Length); + stream3.Write(array, 0, num); + } while (num > 0); + } + } + } + } + stream2.Close(); + stream.Close(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/ActionList.cs b/GHNamespace7/ActionList.cs index f671eb0..28fc803 100644 --- a/GHNamespace7/ActionList.cs +++ b/GHNamespace7/ActionList.cs @@ -5,57 +5,56 @@ namespace GHNamespace7 { - public class ActionList - { - public delegate void Delegate6(object sender, EventArgs0 e); + public class ActionList + { + public delegate void Delegate6(object sender, EventArgs0 e); - private Delegate6 _delegate60; + private Delegate6 _delegate60; - private readonly List _actionList; + private readonly List _actionList; - public void method_0(Delegate6 delegate61) - { - var @delegate = _delegate60; - Delegate6 delegate2; - do - { - delegate2 = @delegate; - var value = (Delegate6)Delegate.Combine(delegate2, delegate61); - @delegate = Interlocked.CompareExchange(ref _delegate60, value, delegate2); - } - while (@delegate != delegate2); - } + public void method_0(Delegate6 delegate61) + { + var @delegate = _delegate60; + Delegate6 delegate2; + do + { + delegate2 = @delegate; + var value = (Delegate6) Delegate.Combine(delegate2, delegate61); + @delegate = Interlocked.CompareExchange(ref _delegate60, value, delegate2); + } while (@delegate != delegate2); + } - public ActionList(List actionList) - { - _actionList = actionList; - } + public ActionList(List actionList) + { + _actionList = actionList; + } - public void method_1() - { - EventArgs0 e; + public void method_1() + { + EventArgs0 e; foreach (var current in _actionList) - { - var int_ = 100 * _actionList.IndexOf(current) / _actionList.Count; - e = new EventArgs0(current + " Processing...", int_); - _delegate60(this, e); + { + var int_ = 100 * _actionList.IndexOf(current) / _actionList.Count; + e = new EventArgs0(current + " Processing...", int_); + _delegate60(this, e); string finalStatus; using (new Class217(current.ToString())) - { - if (current.method_0()) - { - finalStatus = "DONE!\n"; - } - else - { - finalStatus = "FAILED!\n"; - } - } - e = new EventArgs0(finalStatus, int_); - _delegate60(this, e); - } - e = new EventArgs0("", 100); + { + if (current.method_0()) + { + finalStatus = "DONE!\n"; + } + else + { + finalStatus = "FAILED!\n"; + } + } + e = new EventArgs0(finalStatus, int_); + _delegate60(this, e); + } + e = new EventArgs0("", 100); _delegate60(this, e); } - } -} + } +} \ No newline at end of file diff --git a/GHNamespace7/Class208.cs b/GHNamespace7/Class208.cs index 21594ba..1437bef 100644 --- a/GHNamespace7/Class208.cs +++ b/GHNamespace7/Class208.cs @@ -4,80 +4,77 @@ namespace GHNamespace7 { - public class Class208 : Class207 - { - private byte[] _byte0; + public class Class208 : Class207 + { + private byte[] _byte0; - public override int BlockSize - { - get - { - return 8; - } - set - { - if (value != 8) - { - throw new CryptographicException("Block size is invalid"); - } - } - } + public override int BlockSize + { + get { return 8; } + set + { + if (value != 8) + { + throw new CryptographicException("Block size is invalid"); + } + } + } - public override byte[] Key - { - get - { - if (_byte0 == null) - { - GenerateKey(); - } - return (byte[])_byte0.Clone(); - } - set - { - if (value == null) - { - throw new ArgumentNullException("value"); - } - if (value.Length != 12) - { - throw new CryptographicException("Key size is illegal"); - } - _byte0 = (byte[])value.Clone(); - } - } + public override byte[] Key + { + get + { + if (_byte0 == null) + { + GenerateKey(); + } + return (byte[]) _byte0.Clone(); + } + set + { + if (value == null) + { + throw new ArgumentNullException("value"); + } + if (value.Length != 12) + { + throw new CryptographicException("Key size is illegal"); + } + _byte0 = (byte[]) value.Clone(); + } + } - public override KeySizes[] LegalBlockSizes => new[] - { - new KeySizes(8, 8, 0) - }; + public override KeySizes[] LegalBlockSizes => new[] + { + new KeySizes(8, 8, 0) + }; - public override KeySizes[] LegalKeySizes => new[] - { - new KeySizes(96, 96, 0) - }; + public override KeySizes[] LegalKeySizes => new[] + { + new KeySizes(96, 96, 0) + }; - public override void GenerateIV() - { - } + public override void GenerateIV() + { + } - public override void GenerateKey() - { - _byte0 = new byte[12]; - var random = new Random(); - random.NextBytes(_byte0); - } + public override void GenerateKey() + { + _byte0 = new byte[12]; + var random = new Random(); + random.NextBytes(_byte0); + } - public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIv) - { - _byte0 = rgbKey; - return new Class210(Key); - } + public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIv) + { + _byte0 = rgbKey; + return new Class210(Key); + } - public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIv) - { - _byte0 = rgbKey; - return new Class211(Key); - } - } -} + public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIv) + { + _byte0 = rgbKey; + return new Class211(Key); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class209.cs b/GHNamespace7/Class209.cs index 18ed425..0a78d6e 100644 --- a/GHNamespace7/Class209.cs +++ b/GHNamespace7/Class209.cs @@ -3,45 +3,45 @@ namespace GHNamespace7 { - public class Class209 - { - private uint[] _uint0; + public class Class209 + { + private uint[] _uint0; - public byte method_0() - { - var num = (_uint0[2] & 65535u) | 2u; - return (byte)(num * (num ^ 1u) >> 8); - } + public byte method_0() + { + var num = (_uint0[2] & 65535u) | 2u; + return (byte) (num * (num ^ 1u) >> 8); + } - public void method_1(byte[] byte0) - { - if (byte0 == null) - { - throw new ArgumentNullException("keyData"); - } - if (byte0.Length != 12) - { - throw new InvalidOperationException("Key length is not valid"); - } - _uint0 = new uint[3]; - _uint0[0] = (uint)(byte0[3] << 24 | byte0[2] << 16 | byte0[1] << 8 | byte0[0]); - _uint0[1] = (uint)(byte0[7] << 24 | byte0[6] << 16 | byte0[5] << 8 | byte0[4]); - _uint0[2] = (uint)(byte0[11] << 24 | byte0[10] << 16 | byte0[9] << 8 | byte0[8]); - } + public void method_1(byte[] byte0) + { + if (byte0 == null) + { + throw new ArgumentNullException("keyData"); + } + if (byte0.Length != 12) + { + throw new InvalidOperationException("Key length is not valid"); + } + _uint0 = new uint[3]; + _uint0[0] = (uint) (byte0[3] << 24 | byte0[2] << 16 | byte0[1] << 8 | byte0[0]); + _uint0[1] = (uint) (byte0[7] << 24 | byte0[6] << 16 | byte0[5] << 8 | byte0[4]); + _uint0[2] = (uint) (byte0[11] << 24 | byte0[10] << 16 | byte0[9] << 8 | byte0[8]); + } - public void method_2(byte byte0) - { - _uint0[0] = Class192.smethod_0(_uint0[0], byte0); - _uint0[1] = _uint0[1] + (byte)_uint0[0]; - _uint0[1] = _uint0[1] * 134775813u + 1u; - _uint0[2] = Class192.smethod_0(_uint0[2], (byte)(_uint0[1] >> 24)); - } + public void method_2(byte byte0) + { + _uint0[0] = Class192.smethod_0(_uint0[0], byte0); + _uint0[1] = _uint0[1] + (byte) _uint0[0]; + _uint0[1] = _uint0[1] * 134775813u + 1u; + _uint0[2] = Class192.smethod_0(_uint0[2], (byte) (_uint0[1] >> 24)); + } - public void method_3() - { - _uint0[0] = 0u; - _uint0[1] = 0u; - _uint0[2] = 0u; - } - } -} + public void method_3() + { + _uint0[0] = 0u; + _uint0[1] = 0u; + _uint0[2] = 0u; + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class210.cs b/GHNamespace7/Class210.cs index d188cf2..3fe629c 100644 --- a/GHNamespace7/Class210.cs +++ b/GHNamespace7/Class210.cs @@ -3,42 +3,43 @@ namespace GHNamespace7 { - public class Class210 : Class209, IDisposable, ICryptoTransform - { - public int InputBlockSize => 1; - - public int OutputBlockSize => 1; - - public bool CanTransformMultipleBlocks => true; - - public bool CanReuseTransform => true; - - public Class210(byte[] byte0) - { - method_1(byte0); - } - - public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) - { - var array = new byte[inputCount]; - TransformBlock(inputBuffer, inputOffset, inputCount, array, 0); - return array; - } - - public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) - { - for (var i = inputOffset; i < inputOffset + inputCount; i++) - { - var byte_ = inputBuffer[i]; - outputBuffer[outputOffset++] = (byte)(inputBuffer[i] ^ method_0()); - method_2(byte_); - } - return inputCount; - } - - public void Dispose() - { - method_3(); - } - } -} + public class Class210 : Class209, IDisposable, ICryptoTransform + { + public int InputBlockSize => 1; + + public int OutputBlockSize => 1; + + public bool CanTransformMultipleBlocks => true; + + public bool CanReuseTransform => true; + + public Class210(byte[] byte0) + { + method_1(byte0); + } + + public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) + { + var array = new byte[inputCount]; + TransformBlock(inputBuffer, inputOffset, inputCount, array, 0); + return array; + } + + public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, + int outputOffset) + { + for (var i = inputOffset; i < inputOffset + inputCount; i++) + { + var byte_ = inputBuffer[i]; + outputBuffer[outputOffset++] = (byte) (inputBuffer[i] ^ method_0()); + method_2(byte_); + } + return inputCount; + } + + public void Dispose() + { + method_3(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class211.cs b/GHNamespace7/Class211.cs index c2a9324..9078c79 100644 --- a/GHNamespace7/Class211.cs +++ b/GHNamespace7/Class211.cs @@ -3,42 +3,43 @@ namespace GHNamespace7 { - public class Class211 : Class209, IDisposable, ICryptoTransform - { - public int InputBlockSize => 1; - - public int OutputBlockSize => 1; - - public bool CanTransformMultipleBlocks => true; - - public bool CanReuseTransform => true; - - public Class211(byte[] byte0) - { - method_1(byte0); - } - - public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) - { - var array = new byte[inputCount]; - TransformBlock(inputBuffer, inputOffset, inputCount, array, 0); - return array; - } - - public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) - { - for (var i = inputOffset; i < inputOffset + inputCount; i++) - { - var b = (byte)(inputBuffer[i] ^ method_0()); - outputBuffer[outputOffset++] = b; - method_2(b); - } - return inputCount; - } - - public void Dispose() - { - method_3(); - } - } -} + public class Class211 : Class209, IDisposable, ICryptoTransform + { + public int InputBlockSize => 1; + + public int OutputBlockSize => 1; + + public bool CanTransformMultipleBlocks => true; + + public bool CanReuseTransform => true; + + public Class211(byte[] byte0) + { + method_1(byte0); + } + + public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) + { + var array = new byte[inputCount]; + TransformBlock(inputBuffer, inputOffset, inputCount, array, 0); + return array; + } + + public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, + int outputOffset) + { + for (var i = inputOffset; i < inputOffset + inputCount; i++) + { + var b = (byte) (inputBuffer[i] ^ method_0()); + outputBuffer[outputOffset++] = b; + method_2(b); + } + return inputCount; + } + + public void Dispose() + { + method_3(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class212.cs b/GHNamespace7/Class212.cs index b0a8c1a..361b7cf 100644 --- a/GHNamespace7/Class212.cs +++ b/GHNamespace7/Class212.cs @@ -3,17 +3,17 @@ namespace GHNamespace7 { - public class Class212 : INterface9 - { - private INterface8 _interface80; + public class Class212 : INterface9 + { + private INterface8 _interface80; - private DateTime _dateTime0 = DateTime.Now; + private DateTime _dateTime0 = DateTime.Now; - private int _int0 = -1; + private int _int0 = -1; - public Class212() - { - _interface80 = new Class185(); - } - } -} + public Class212() + { + _interface80 = new Class185(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class215.cs b/GHNamespace7/Class215.cs index c7935d5..a45d564 100644 --- a/GHNamespace7/Class215.cs +++ b/GHNamespace7/Class215.cs @@ -4,39 +4,39 @@ namespace GHNamespace7 { - public class Class215 : IEnumerator>, IEnumerator, IDisposable - { - private List _list0; - - private List _list1; - - private int _int0 = -1; - - public KeyValuePair Current => new KeyValuePair(_list0[_int0], _list1[_int0]); - - object IEnumerator.Current => Current; - - public Class215(List list2, List list3) - { - _list0 = list2; - _list1 = list3; - } - - public void Dispose() - { - _list0 = null; - _list1 = null; - } - - public bool MoveNext() - { - _int0++; - return _int0 < _list0.Count; - } - - public void Reset() - { - _int0 = -1; - } - } -} + public class Class215 : IEnumerator>, IEnumerator, IDisposable + { + private List _list0; + + private List _list1; + + private int _int0 = -1; + + public KeyValuePair Current => new KeyValuePair(_list0[_int0], _list1[_int0]); + + object IEnumerator.Current => Current; + + public Class215(List list2, List list3) + { + _list0 = list2; + _list1 = list3; + } + + public void Dispose() + { + _list0 = null; + _list1 = null; + } + + public bool MoveNext() + { + _int0++; + return _int0 < _list0.Count; + } + + public void Reset() + { + _int0 = -1; + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class216.cs b/GHNamespace7/Class216.cs index 8a37321..7c8181b 100644 --- a/GHNamespace7/Class216.cs +++ b/GHNamespace7/Class216.cs @@ -4,46 +4,46 @@ namespace GHNamespace7 { - public static class Class216 - { - public static SortedDictionary SortedDictionary0 = new SortedDictionary(); + public static class Class216 + { + public static SortedDictionary SortedDictionary0 = new SortedDictionary(); - private static readonly string String0 = "MM/dd/yyyy hh:mm:ss tt"; + private static readonly string String0 = "MM/dd/yyyy hh:mm:ss tt"; - private static readonly string String1 = "MM_dd_yy hh_mm_ss tt"; + private static readonly string String1 = "MM_dd_yy hh_mm_ss tt"; - private static readonly bool Bool0 = true; + private static readonly bool Bool0 = true; - public static void smethod_0(string string2) - { - if (SortedDictionary0.Count != 0) - { - using (var streamWriter = File.CreateText(string2 + DateTime.Now.ToString(String1) + ".log")) - { - foreach (var current in SortedDictionary0.Keys) - { - streamWriter.WriteLine("[" + current + "]"); - streamWriter.WriteLine("{"); - streamWriter.WriteLine(SortedDictionary0[current]); - streamWriter.WriteLine("}"); - } - } - } - } + public static void smethod_0(string string2) + { + if (SortedDictionary0.Count != 0) + { + using (var streamWriter = File.CreateText(string2 + DateTime.Now.ToString(String1) + ".log")) + { + foreach (var current in SortedDictionary0.Keys) + { + streamWriter.WriteLine("[" + current + "]"); + streamWriter.WriteLine("{"); + streamWriter.WriteLine(SortedDictionary0[current]); + streamWriter.WriteLine("}"); + } + } + } + } - public static void smethod_1(string string2, string string3) - { - SortedDictionary0.Add(DateTime.Now.ToString(String0) + " :: " + string2, string3 ?? ""); - if (Bool0) - { - Console.WriteLine(string.Concat("\n", DateTime.Now.ToString(String0), "\n-=- ", string2, " -=-\n")); - Console.WriteLine(string3 + "\n-=- ENTRY LOG END -=-\n"); - } - } + public static void smethod_1(string string2, string string3) + { + SortedDictionary0.Add(DateTime.Now.ToString(String0) + " :: " + string2, string3 ?? ""); + if (Bool0) + { + Console.WriteLine(string.Concat("\n", DateTime.Now.ToString(String0), "\n-=- ", string2, " -=-\n")); + Console.WriteLine(string3 + "\n-=- ENTRY LOG END -=-\n"); + } + } - public static void smethod_2() - { - SortedDictionary0.Clear(); - } - } -} + public static void smethod_2() + { + SortedDictionary0.Clear(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class217.cs b/GHNamespace7/Class217.cs index 729f1e5..b2b3ac0 100644 --- a/GHNamespace7/Class217.cs +++ b/GHNamespace7/Class217.cs @@ -3,27 +3,27 @@ namespace GHNamespace7 { - public class Class217 : IDisposable - { - private readonly StringWriter _stringWriter0; + public class Class217 : IDisposable + { + private readonly StringWriter _stringWriter0; - private readonly TextWriter _textWriter0; + private readonly TextWriter _textWriter0; - private readonly string _string0; + private readonly string _string0; - public Class217(string string1) - { - _string0 = string1; - _textWriter0 = Console.Out; - _stringWriter0 = new StringWriter(); - Console.SetOut(_stringWriter0); - } + public Class217(string string1) + { + _string0 = string1; + _textWriter0 = Console.Out; + _stringWriter0 = new StringWriter(); + Console.SetOut(_stringWriter0); + } - public void Dispose() - { - Console.SetOut(_textWriter0); - Class216.smethod_1(_string0, _stringWriter0.GetStringBuilder().ToString()); - _stringWriter0.Close(); - } - } -} + public void Dispose() + { + Console.SetOut(_textWriter0); + Class216.smethod_1(_string0, _stringWriter0.GetStringBuilder().ToString()); + _stringWriter0.Close(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class219.cs b/GHNamespace7/Class219.cs index a5e8a13..698ed4f 100644 --- a/GHNamespace7/Class219.cs +++ b/GHNamespace7/Class219.cs @@ -5,114 +5,117 @@ namespace GHNamespace7 { - public class ImageRelatedClass - { - private byte[] _byte0; - - private BitmapData _bitmapData0; - - private IntPtr _intptr0; - - private bool _bool0; - - private readonly bool _bool1; - - private Bitmap _bitmap0; - - private readonly int _int0; - - private readonly int _int1; - - public int method_0() - { - return _int0; - } - - public int method_1() - { - return _int1; - } - - public bool method_2() - { - return _bool1; - } - - public Bitmap method_3() - { - return _bitmap0; - } - - public ImageRelatedClass(Bitmap bitmap1) - { - if (bitmap1.PixelFormat == (bitmap1.PixelFormat | PixelFormat.Indexed)) - { - throw new Exception("Cannot lock an Indexed image."); - } - _bitmap0 = bitmap1; - _bool1 = (method_3().PixelFormat == (method_3().PixelFormat | PixelFormat.Alpha)); - _int0 = bitmap1.Width; - _int1 = bitmap1.Height; - } - - public void method_4() - { - if (_bool0) - { - return; - } - var rect = new Rectangle(0, 0, method_0(), method_1()); - _bitmapData0 = method_3().LockBits(rect, ImageLockMode.ReadWrite, method_3().PixelFormat); - _intptr0 = _bitmapData0.Scan0; - _byte0 = new byte[method_0() * method_1() * (method_2() ? 4 : 3)]; - Marshal.Copy(_intptr0, _byte0, 0, _byte0.Length); - _bool0 = true; - } - - public void method_5(bool bool2) - { - if (!_bool0) - { - return; - } - if (_bitmap0 == null) - { - _bitmap0 = new Bitmap(method_0(), method_1(), _bool1 ? PixelFormat.Format32bppArgb : PixelFormat.Format24bppRgb); - _bitmapData0 = method_3().LockBits(new Rectangle(0, 0, method_0(), method_1()), ImageLockMode.ReadWrite, method_3().PixelFormat); - _intptr0 = _bitmapData0.Scan0; - } - if (bool2) - { - Marshal.Copy(_byte0, 0, _intptr0, _byte0.Length); - } - method_3().UnlockBits(_bitmapData0); - _bool0 = false; - } - - public void method_6(Point point0, Color color0) - { - method_7(point0.X, point0.Y, color0); - } - - public void method_7(int int2, int int3, Color color0) - { - if (!_bool0) - { - throw new Exception("Bitmap not locked."); - } - if (method_2()) - { - var num = (int3 * method_0() + int2) * 4; - _byte0[num] = color0.B; - _byte0[num + 1] = color0.G; - _byte0[num + 2] = color0.R; - _byte0[num + 3] = color0.A; - return; - } - var num2 = (int3 * method_0() + int2) * 3; - _byte0[num2] = color0.B; - _byte0[num2 + 1] = color0.G; - _byte0[num2 + 2] = color0.R; - } - } -} + public class ImageRelatedClass + { + private byte[] _byte0; + + private BitmapData _bitmapData0; + + private IntPtr _intptr0; + + private bool _bool0; + + private readonly bool _bool1; + + private Bitmap _bitmap0; + + private readonly int _int0; + + private readonly int _int1; + + public int method_0() + { + return _int0; + } + + public int method_1() + { + return _int1; + } + + public bool method_2() + { + return _bool1; + } + + public Bitmap method_3() + { + return _bitmap0; + } + + public ImageRelatedClass(Bitmap bitmap1) + { + if (bitmap1.PixelFormat == (bitmap1.PixelFormat | PixelFormat.Indexed)) + { + throw new Exception("Cannot lock an Indexed image."); + } + _bitmap0 = bitmap1; + _bool1 = (method_3().PixelFormat == (method_3().PixelFormat | PixelFormat.Alpha)); + _int0 = bitmap1.Width; + _int1 = bitmap1.Height; + } + + public void method_4() + { + if (_bool0) + { + return; + } + var rect = new Rectangle(0, 0, method_0(), method_1()); + _bitmapData0 = method_3().LockBits(rect, ImageLockMode.ReadWrite, method_3().PixelFormat); + _intptr0 = _bitmapData0.Scan0; + _byte0 = new byte[method_0() * method_1() * (method_2() ? 4 : 3)]; + Marshal.Copy(_intptr0, _byte0, 0, _byte0.Length); + _bool0 = true; + } + + public void method_5(bool bool2) + { + if (!_bool0) + { + return; + } + if (_bitmap0 == null) + { + _bitmap0 = new Bitmap(method_0(), method_1(), + _bool1 ? PixelFormat.Format32bppArgb : PixelFormat.Format24bppRgb); + _bitmapData0 = method_3() + .LockBits(new Rectangle(0, 0, method_0(), method_1()), ImageLockMode.ReadWrite, + method_3().PixelFormat); + _intptr0 = _bitmapData0.Scan0; + } + if (bool2) + { + Marshal.Copy(_byte0, 0, _intptr0, _byte0.Length); + } + method_3().UnlockBits(_bitmapData0); + _bool0 = false; + } + + public void method_6(Point point0, Color color0) + { + method_7(point0.X, point0.Y, color0); + } + + public void method_7(int int2, int int3, Color color0) + { + if (!_bool0) + { + throw new Exception("Bitmap not locked."); + } + if (method_2()) + { + var num = (int3 * method_0() + int2) * 4; + _byte0[num] = color0.B; + _byte0[num + 1] = color0.G; + _byte0[num + 2] = color0.R; + _byte0[num + 3] = color0.A; + return; + } + var num2 = (int3 * method_0() + int2) * 3; + _byte0[num2] = color0.B; + _byte0[num2 + 1] = color0.G; + _byte0[num2 + 2] = color0.R; + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class220.cs b/GHNamespace7/Class220.cs index 66c0b8f..48a7223 100644 --- a/GHNamespace7/Class220.cs +++ b/GHNamespace7/Class220.cs @@ -3,43 +3,43 @@ namespace GHNamespace7 { - public abstract class Class220 : IEnumerator - { - public Array Array0; - - public int[] Int0; - - public Array Array1; - - public bool Bool0; - - public object Current => method_0(); - - public bool MoveNext() - { - var array = vmethod_0(false); - return array.Length > 0; - } - - public void Reset() - { - Bool0 = false; - } - - public abstract int[] vmethod_0(bool bool1); - - public Array method_0() - { - if (!Bool0) - { - throw new InvalidOperationException("CombinatorialBase collection must be Reset() before usage"); - } - for (var i = 0; i < Int0.Length; i++) - { - var index = Int0[i]; - Array1.SetValue(Array0.GetValue(index), i); - } - return Array1; - } - } -} + public abstract class Class220 : IEnumerator + { + public Array Array0; + + public int[] Int0; + + public Array Array1; + + public bool Bool0; + + public object Current => method_0(); + + public bool MoveNext() + { + var array = vmethod_0(false); + return array.Length > 0; + } + + public void Reset() + { + Bool0 = false; + } + + public abstract int[] vmethod_0(bool bool1); + + public Array method_0() + { + if (!Bool0) + { + throw new InvalidOperationException("CombinatorialBase collection must be Reset() before usage"); + } + for (var i = 0; i < Int0.Length; i++) + { + var index = Int0[i]; + Array1.SetValue(Array0.GetValue(index), i); + } + return Array1; + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class221.cs b/GHNamespace7/Class221.cs index 054d302..d5eb547 100644 --- a/GHNamespace7/Class221.cs +++ b/GHNamespace7/Class221.cs @@ -2,41 +2,41 @@ namespace GHNamespace7 { - public class Class221 : List - { - public Class221() - { - } + public class Class221 : List + { + public Class221() + { + } - public Class221(IEnumerable ienumerable0) : base(ienumerable0) - { - } + public Class221(IEnumerable ienumerable0) : base(ienumerable0) + { + } - public Class221(int int0) : base(int0) - { - } + public Class221(int int0) : base(int0) + { + } - public virtual bool vmethod_0(T gparam0) - { - if (Contains(gparam0)) - { - return false; - } - Add(gparam0); - return true; - } + public virtual bool vmethod_0(T gparam0) + { + if (Contains(gparam0)) + { + return false; + } + Add(gparam0); + return true; + } - public virtual bool vmethod_1(ICollection icollection0) - { - var result = false; - if (icollection0 != null) - { - foreach (var current in icollection0) - { - result = vmethod_0(current); - } - } - return result; - } - } -} + public virtual bool vmethod_1(ICollection icollection0) + { + var result = false; + if (icollection0 != null) + { + foreach (var current in icollection0) + { + result = vmethod_0(current); + } + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class222.cs b/GHNamespace7/Class222.cs index b9d23cc..b4cd047 100644 --- a/GHNamespace7/Class222.cs +++ b/GHNamespace7/Class222.cs @@ -5,301 +5,301 @@ namespace GHNamespace7 { - public class Class222 : IEnumerable, ICollection, IEnumerable, ICollection - { - public struct Struct76 : IEnumerator, IEnumerator, IDisposable - { - private Class225.Struct77 _struct770; - - private readonly IComparer _icomparer0; - - private T _gparam0; - - private readonly T _gparam1; - - public T Current => _gparam0; - - object IEnumerator.Current - { - get - { - _struct770.method_1(); - return ((Class227)_struct770.Current).Gparam0; - } - } - - public Struct76(Class222 class2220) - { - this = default(Struct76); - _struct770 = class2220._class2250.method_14(); - } - - public Struct76(Class222 class2220, T gparam2, T gparam3) - { - this = default(Struct76); - _struct770 = class2220._class2250.method_15(gparam2); - _icomparer0 = class2220.method_1(); - _gparam1 = gparam3; - } - - public bool MoveNext() - { - if (!_struct770.MoveNext()) - { - return false; - } - _gparam0 = ((Class227)_struct770.Current).Gparam0; - return _icomparer0 == null || _icomparer0.Compare(_gparam1, _gparam0) >= 0; - } - - public void Dispose() - { - _struct770.Dispose(); - } - - void IEnumerator.Reset() - { - _struct770.Reset(); - } - } - - private class Class227 : Class225.Class226 - { - public T Gparam0; - - public Class227(T gparam1) - { - Gparam0 = gparam1; - } - - public override void vmethod_0(Class225.Class226 class2262) - { - var @class = (Class227)class2262; - var t = Gparam0; - Gparam0 = @class.Gparam0; - @class.Gparam0 = t; - } - } - - private class Class223 : Class225.INterface10 - { - private static readonly Class223 Class2230 = new Class223(Comparer.Default); - - public readonly IComparer Icomparer0; - - public int imethod_0(T gparam0, Class225.Class226 class2260) - { - return Icomparer0.Compare(gparam0, ((Class227)class2260).Gparam0); - } - - public Class225.Class226 imethod_1(T gparam0) - { - return new Class227(gparam0); - } - - private Class223(IComparer icomparer1) - { - Icomparer0 = icomparer1; - } - - public static Class223 smethod_0(IComparer icomparer1) - { - if (icomparer1 != null) - { - if (icomparer1 != Comparer.Default) - { - return new Class223(icomparer1); - } - } - return Class2230; - } - } - - private object _object0; - - private readonly Class225 _class2250; - - private readonly Class223 _class2230; - - public int Count => vmethod_0(); - - bool ICollection.IsReadOnly => false; - - bool ICollection.IsSynchronized => false; - - object ICollection.SyncRoot - { - get - { - if (_object0 == null) - { - Interlocked.CompareExchange(ref _object0, new object(), null); - } - return _object0; - } - } - - public Class222() : this(Comparer.Default) - { - } - - public Class222(IEnumerable ienumerable0) : this(ienumerable0, Comparer.Default) - { - } - - public Class222(IEnumerable ienumerable0, IComparer icomparer0) : this(icomparer0) - { - if (ienumerable0 == null) - { - throw new ArgumentNullException("collection"); - } - foreach (var current in ienumerable0) - { - vmethod_1(current); - } - } - - public Class222(IComparer icomparer0) - { - _class2230 = Class223.smethod_0(icomparer0); - _class2250 = new Class225(_class2230); - } - - public virtual int vmethod_0() - { - return _class2250.method_4(); - } - - private T method_0(int int0) - { - return ((Class227)_class2250[int0]).Gparam0; - } - - public virtual void Clear() - { - _class2250.method_0(); - } - - void ICollection.Add(T item) - { - vmethod_1(item); - } - - public bool vmethod_1(T gparam0) - { - return vmethod_2(gparam0); - } - - public virtual bool vmethod_2(T gparam0) - { - var @class = new Class227(gparam0); - return _class2250.method_1(gparam0, @class) == @class; - } - - public virtual bool Contains(T item) - { - return _class2250.method_3(item) != null; - } - - public bool Remove(T item) - { - return vmethod_3(item); - } - - public virtual bool vmethod_3(T gparam0) - { - return _class2250.method_2(gparam0) != null; - } - - public IComparer method_1() - { - return _class2230.Icomparer0; - } - - public void method_2(T[] gparam0, int int0, int int1) - { - if (gparam0 == null) - { - throw new ArgumentNullException("array"); - } - if (int0 < 0) - { - throw new ArgumentOutOfRangeException("index"); - } - if (int0 > gparam0.Length) - { - throw new ArgumentException("index larger than largest valid index of array"); - } - if (gparam0.Length - int0 < int1) - { - throw new ArgumentException("destination array cannot hold the requested elements"); - } - using (var @struct = _class2250.method_14()) - { - while (@struct.MoveNext()) - { - var @class = (Class227)@struct.Current; - if (int1-- == 0) - { - break; - } - gparam0[int0++] = @class.Gparam0; - } - } - } - - void ICollection.CopyTo(T[] array, int arrayIndex) - { - method_2(array, arrayIndex, Count); - } - - void ICollection.CopyTo(Array array, int index) - { - if (Count == 0) - { - return; - } - if (array == null) - { - throw new ArgumentNullException("array"); - } - if (index >= 0 && array.Length > index) - { - if (array.Length - index < Count) - { - throw new ArgumentException(); - } - using (var @struct = _class2250.method_14()) - { - while (@struct.MoveNext()) - { - var @class = (Class227)@struct.Current; - array.SetValue(@class.Gparam0, index++); - } - return; - } - } - throw new ArgumentOutOfRangeException("index"); - } - - public Struct76 method_3() - { - return vmethod_4(); - } - - public virtual Struct76 vmethod_4() - { - return new Struct76(this); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return method_3(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return method_3(); - } - } -} + public class Class222 : IEnumerable, ICollection, IEnumerable, ICollection + { + public struct Struct76 : IEnumerator, IEnumerator, IDisposable + { + private Class225.Struct77 _struct770; + + private readonly IComparer _icomparer0; + + private T _gparam0; + + private readonly T _gparam1; + + public T Current => _gparam0; + + object IEnumerator.Current + { + get + { + _struct770.method_1(); + return ((Class227) _struct770.Current).Gparam0; + } + } + + public Struct76(Class222 class2220) + { + this = default(Struct76); + _struct770 = class2220._class2250.method_14(); + } + + public Struct76(Class222 class2220, T gparam2, T gparam3) + { + this = default(Struct76); + _struct770 = class2220._class2250.method_15(gparam2); + _icomparer0 = class2220.method_1(); + _gparam1 = gparam3; + } + + public bool MoveNext() + { + if (!_struct770.MoveNext()) + { + return false; + } + _gparam0 = ((Class227) _struct770.Current).Gparam0; + return _icomparer0 == null || _icomparer0.Compare(_gparam1, _gparam0) >= 0; + } + + public void Dispose() + { + _struct770.Dispose(); + } + + void IEnumerator.Reset() + { + _struct770.Reset(); + } + } + + private class Class227 : Class225.Class226 + { + public T Gparam0; + + public Class227(T gparam1) + { + Gparam0 = gparam1; + } + + public override void vmethod_0(Class225.Class226 class2262) + { + var @class = (Class227) class2262; + var t = Gparam0; + Gparam0 = @class.Gparam0; + @class.Gparam0 = t; + } + } + + private class Class223 : Class225.INterface10 + { + private static readonly Class223 Class2230 = new Class223(Comparer.Default); + + public readonly IComparer Icomparer0; + + public int imethod_0(T gparam0, Class225.Class226 class2260) + { + return Icomparer0.Compare(gparam0, ((Class227) class2260).Gparam0); + } + + public Class225.Class226 imethod_1(T gparam0) + { + return new Class227(gparam0); + } + + private Class223(IComparer icomparer1) + { + Icomparer0 = icomparer1; + } + + public static Class223 smethod_0(IComparer icomparer1) + { + if (icomparer1 != null) + { + if (icomparer1 != Comparer.Default) + { + return new Class223(icomparer1); + } + } + return Class2230; + } + } + + private object _object0; + + private readonly Class225 _class2250; + + private readonly Class223 _class2230; + + public int Count => vmethod_0(); + + bool ICollection.IsReadOnly => false; + + bool ICollection.IsSynchronized => false; + + object ICollection.SyncRoot + { + get + { + if (_object0 == null) + { + Interlocked.CompareExchange(ref _object0, new object(), null); + } + return _object0; + } + } + + public Class222() : this(Comparer.Default) + { + } + + public Class222(IEnumerable ienumerable0) : this(ienumerable0, Comparer.Default) + { + } + + public Class222(IEnumerable ienumerable0, IComparer icomparer0) : this(icomparer0) + { + if (ienumerable0 == null) + { + throw new ArgumentNullException("collection"); + } + foreach (var current in ienumerable0) + { + vmethod_1(current); + } + } + + public Class222(IComparer icomparer0) + { + _class2230 = Class223.smethod_0(icomparer0); + _class2250 = new Class225(_class2230); + } + + public virtual int vmethod_0() + { + return _class2250.method_4(); + } + + private T method_0(int int0) + { + return ((Class227) _class2250[int0]).Gparam0; + } + + public virtual void Clear() + { + _class2250.method_0(); + } + + void ICollection.Add(T item) + { + vmethod_1(item); + } + + public bool vmethod_1(T gparam0) + { + return vmethod_2(gparam0); + } + + public virtual bool vmethod_2(T gparam0) + { + var @class = new Class227(gparam0); + return _class2250.method_1(gparam0, @class) == @class; + } + + public virtual bool Contains(T item) + { + return _class2250.method_3(item) != null; + } + + public bool Remove(T item) + { + return vmethod_3(item); + } + + public virtual bool vmethod_3(T gparam0) + { + return _class2250.method_2(gparam0) != null; + } + + public IComparer method_1() + { + return _class2230.Icomparer0; + } + + public void method_2(T[] gparam0, int int0, int int1) + { + if (gparam0 == null) + { + throw new ArgumentNullException("array"); + } + if (int0 < 0) + { + throw new ArgumentOutOfRangeException("index"); + } + if (int0 > gparam0.Length) + { + throw new ArgumentException("index larger than largest valid index of array"); + } + if (gparam0.Length - int0 < int1) + { + throw new ArgumentException("destination array cannot hold the requested elements"); + } + using (var @struct = _class2250.method_14()) + { + while (@struct.MoveNext()) + { + var @class = (Class227) @struct.Current; + if (int1-- == 0) + { + break; + } + gparam0[int0++] = @class.Gparam0; + } + } + } + + void ICollection.CopyTo(T[] array, int arrayIndex) + { + method_2(array, arrayIndex, Count); + } + + void ICollection.CopyTo(Array array, int index) + { + if (Count == 0) + { + return; + } + if (array == null) + { + throw new ArgumentNullException("array"); + } + if (index >= 0 && array.Length > index) + { + if (array.Length - index < Count) + { + throw new ArgumentException(); + } + using (var @struct = _class2250.method_14()) + { + while (@struct.MoveNext()) + { + var @class = (Class227) @struct.Current; + array.SetValue(@class.Gparam0, index++); + } + return; + } + } + throw new ArgumentOutOfRangeException("index"); + } + + public Struct76 method_3() + { + return vmethod_4(); + } + + public virtual Struct76 vmethod_4() + { + return new Struct76(this); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return method_3(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return method_3(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/Class225.cs b/GHNamespace7/Class225.cs index 7d3b77f..eae82a6 100644 --- a/GHNamespace7/Class225.cs +++ b/GHNamespace7/Class225.cs @@ -4,671 +4,671 @@ namespace GHNamespace7 { - public class Class225 : IEnumerable, IEnumerable - { - public struct Struct77 : IEnumerator, IDisposable, IEnumerator - { - private Class225 _class2250; - - private readonly uint _uint0; - - private Stack _stack0; - - private Stack _stack1; - - public Class226 Current => _stack0.Peek(); - - object IEnumerator.Current - { - get - { - method_1(); - return Current; - } - } - - public Struct77(Class225 class2251) - { - this = default(Struct77); - _class2250 = class2251; - _uint0 = class2251._uint0; - } - - public Struct77(Class225 class2251, Stack stack2) - { - this = new Struct77(class2251); - _stack1 = stack2; - } - - public void Reset() - { - method_0(); - _stack0 = null; - } - - public bool MoveNext() - { - method_0(); - Class226 @class; - if (_stack0 == null) - { - if (_class2250._class2260 == null) - { - return false; - } - if (_stack1 != null) - { - _stack0 = _stack1; - _stack1 = null; - return _stack0.Count != 0; - } - _stack0 = new Stack(); - @class = _class2250._class2260; - } - else - { - if (_stack0.Count == 0) - { - return false; - } - var class2 = _stack0.Pop(); - @class = class2.Class2261; - } - while (@class != null) - { - _stack0.Push(@class); - @class = @class.Class2260; - } - return _stack0.Count != 0; - } - - public void Dispose() - { - _class2250 = null; - _stack0 = null; - } - - private void method_0() - { - if (_class2250 == null) - { - throw new ObjectDisposedException("enumerator"); - } - if (_uint0 != _class2250._uint0) - { - throw new InvalidOperationException("tree modified"); - } - } - - public void method_1() - { - method_0(); - if (_stack0 == null) - { - throw new InvalidOperationException("state invalid before the first MoveNext()"); - } - } - } - - public interface INterface10 - { - int imethod_0(T gparam0, Class226 class2260); - - Class226 imethod_1(T gparam0); - } - - public abstract class Class226 - { - public Class226 Class2260; - - public Class226 Class2261; - - private uint _uint0; - - public bool method_0() - { - return (_uint0 & 1u) == 1u; - } - - public void method_1(bool bool0) - { - _uint0 = (bool0 ? (_uint0 | 1u) : (_uint0 & 4294967294u)); - } - - public uint method_2() - { - return _uint0 >> 1; - } - - public void method_3(uint uint1) - { - _uint0 = (uint1 << 1 | (_uint0 & 1u)); - } - - public uint method_4() - { - method_3(1u); - if (Class2260 != null) - { - method_3(method_2() + Class2260.method_2()); - } - if (Class2261 != null) - { - method_3(method_2() + Class2261.method_2()); - } - return method_2(); - } - - public Class226() - { - _uint0 = 2u; - } - - public abstract void vmethod_0(Class226 class2262); - } - - private Class226 _class2260; - - private readonly object _object0; - - private uint _uint0; - - public Class226 this[int int0] - { - get - { - if (int0 >= 0 && int0 < method_4()) - { - var class226 = _class2260; - while (class226 != null) - { - var num = (int)((class226.Class2260 == null) ? 0u : class226.Class2260.method_2()); - if (int0 == num) - { - return class226; - } - if (int0 < num) - { - class226 = class226.Class2260; - } - else - { - int0 -= num + 1; - class226 = class226.Class2261; - } - } - throw new SystemException("Internal Error: index calculation"); - } - throw new IndexOutOfRangeException("index"); - } - } - - private static List smethod_0() - { - return new List(); - } - - private static void smethod_1(List list0) - { - } - - public Class225(object object1) - { - _object0 = object1; - } - - public void method_0() - { - _class2260 = null; - _uint0 += 1u; - } - - public Class226 method_1(T gparam0, Class226 class2261) - { - if (_class2260 == null) - { - if (class2261 == null) - { - class2261 = ((INterface10)_object0).imethod_1(gparam0); - } - _class2260 = class2261; - _class2260.method_1(true); - _uint0 += 1u; - return _class2260; - } - var list = smethod_0(); - var int_ = method_5(gparam0, list); - var @class = list[list.Count - 1]; - if (@class == null) - { - if (class2261 == null) - { - class2261 = ((INterface10)_object0).imethod_1(gparam0); - } - @class = method_6(int_, class2261, list); - } - smethod_1(list); - return @class; - } - - public Class226 method_2(T gparam0) - { - if (_class2260 == null) - { - return null; - } - var list = smethod_0(); - var num = method_5(gparam0, list); - Class226 result = null; - if (num == 0) - { - result = method_7(list); - } - smethod_1(list); - return result; - } - - public Class226 method_3(T gparam0) - { - var @interface = (INterface10)_object0; - Class226 @class; - int num; - for (@class = _class2260; @class != null; @class = ((num < 0) ? @class.Class2260 : @class.Class2261)) - { - num = @interface.imethod_0(gparam0, @class); - if (num == 0) - { - break; - } - } - return @class; - } - - public int method_4() - { - if (_class2260 != null) - { - return (int)_class2260.method_2(); - } - return 0; - } - - private int method_5(T gparam0, List list0) - { - var @interface = (INterface10)_object0; - var num = 0; - var class226 = _class2260; - if (list0 != null) - { - list0.Add(_class2260); - } - while (class226 != null) - { - num = @interface.imethod_0(gparam0, class226); - if (num == 0) - { - return num; - } - Class226 class2262; - if (num < 0) - { - class2262 = class226.Class2261; - class226 = class226.Class2260; - } - else - { - class2262 = class226.Class2260; - class226 = class226.Class2261; - } - if (list0 != null) - { - list0.Add(class2262); - list0.Add(class226); - } - } - return num; - } - - private Class226 method_6(int int0, Class226 class2261, List list0) - { - list0[list0.Count - 1] = class2261; - var @class = list0[list0.Count - 3]; - if (int0 < 0) - { - @class.Class2260 = class2261; - } - else - { - @class.Class2261 = class2261; - } - for (var i = 0; i < list0.Count - 2; i += 2) - { - var expr_3D = list0[i]; - expr_3D.method_3(expr_3D.method_2() + 1u); - } - if (!@class.method_0()) - { - method_8(list0); - } - if (!_class2260.method_0()) - { - throw new SystemException("Internal error: root is not black"); - } - _uint0 += 1u; - return class2261; - } - - private Class226 method_7(List list0) - { - var num = list0.Count - 1; - var @class = list0[num]; - if (@class.Class2260 != null) - { - var class2 = smethod_2(@class.Class2260, @class.Class2261, list0); - @class.vmethod_0(class2); - if (class2.Class2260 != null) - { - var class3 = class2.Class2260; - list0.Add(null); - list0.Add(class3); - class2.vmethod_0(class3); - } - } - else if (@class.Class2261 != null) - { - var class226 = @class.Class2261; - list0.Add(null); - list0.Add(class226); - @class.vmethod_0(class226); - } - num = list0.Count - 1; - @class = list0[num]; - if (@class.method_2() != 1u) - { - throw new SystemException("Internal Error: red-black violation somewhere"); - } - list0[num] = null; - method_13((num == 0) ? null : list0[num - 2], @class, 0u, null); - for (var i = 0; i < list0.Count - 2; i += 2) - { - var exprD2 = list0[i]; - exprD2.method_3(exprD2.method_2() - 1u); - } - if (@class.method_0()) - { - @class.method_1(false); - if (num != 0) - { - method_9(list0); - } - } - if (_class2260 != null && !_class2260.method_0()) - { - throw new SystemException("Internal Error: root is not black"); - } - _uint0 += 1u; - return @class; - } - - private void method_8(List list0) - { - var num = list0.Count - 1; - while (list0[num - 3] != null && !list0[num - 3].method_0()) - { - var arg340 = list0[num - 2]; - list0[num - 3].method_1(true); - arg340.method_1(true); - num -= 4; - if (num == 0) - { - return; - } - list0[num].method_1(false); - if (list0[num - 2].method_0()) - { - return; - } - } - method_10(num, list0); - } - - private void method_9(List list0) - { - var num = list0.Count - 1; - do - { - var @class = list0[num - 1]; - if (!@class.method_0()) - { - num = method_12(num, list0); - @class = list0[num - 1]; - } - if ((@class.Class2260 != null && !@class.Class2260.method_0()) || (@class.Class2261 != null && !@class.Class2261.method_0())) - { - goto IL_7C; - } - @class.method_1(false); - num -= 2; - if (num == 0) - { - return; - } - } - while (list0[num].method_0()); - list0[num].method_1(true); - return; - IL_7C: - method_11(num, list0); - } - - private void method_10(int int0, List list0) - { - var @class = list0[int0]; - var class2 = list0[int0 - 2]; - var class3 = list0[int0 - 4]; - var uint_ = class3.method_2(); - var flag = class2 == class3.Class2260; - var flag2 = @class == class2.Class2260; - Class226 class4; - if (flag && flag2) - { - class3.Class2260 = class2.Class2261; - class2.Class2261 = class3; - class4 = class2; - } - else if (flag && !flag2) - { - class3.Class2260 = @class.Class2261; - @class.Class2261 = class3; - class2.Class2261 = @class.Class2260; - @class.Class2260 = class2; - class4 = @class; - } - else if (!flag && flag2) - { - class3.Class2261 = @class.Class2260; - @class.Class2260 = class3; - class2.Class2260 = @class.Class2261; - @class.Class2261 = class2; - class4 = @class; - } - else - { - class3.Class2261 = class2.Class2260; - class2.Class2260 = class3; - class4 = class2; - } - class3.method_4(); - class3.method_1(false); - if (class4 != class2) - { - class2.method_4(); - } - class4.method_1(true); - method_13((int0 == 4) ? null : list0[int0 - 6], class3, uint_, class4); - } - - private void method_11(int int0, List list0) - { - var @class = list0[int0 - 1]; - var class2 = list0[int0 - 2]; - var uint_ = class2.method_2(); - var bool_ = class2.method_0(); - Class226 class3; - if (class2.Class2261 == @class) - { - if (@class.Class2261 != null && !@class.Class2261.method_0()) - { - class2.Class2261 = @class.Class2260; - @class.Class2260 = class2; - @class.Class2261.method_1(true); - class3 = @class; - } - else - { - var class4 = @class.Class2260; - class2.Class2261 = class4.Class2260; - class4.Class2260 = class2; - @class.Class2260 = class4.Class2261; - class4.Class2261 = @class; - class3 = class4; - } - } - else if (@class.Class2260 != null && !@class.Class2260.method_0()) - { - class2.Class2260 = @class.Class2261; - @class.Class2261 = class2; - @class.Class2260.method_1(true); - class3 = @class; - } - else - { - var class226 = @class.Class2261; - class2.Class2260 = class226.Class2261; - class226.Class2261 = class2; - @class.Class2261 = class226.Class2260; - class226.Class2260 = @class; - class3 = class226; - } - class2.method_4(); - class2.method_1(true); - if (class3 != @class) - { - @class.method_4(); - } - class3.method_1(bool_); - method_13((int0 == 2) ? null : list0[int0 - 4], class2, uint_, class3); - } - - private int method_12(int int0, List list0) - { - var value = list0[int0]; - var @class = list0[int0 - 1]; - var class2 = list0[int0 - 2]; - var uint_ = class2.method_2(); - bool flag; - if (class2.Class2261 == @class) - { - class2.Class2261 = @class.Class2260; - @class.Class2260 = class2; - flag = true; - } - else - { - class2.Class2260 = @class.Class2261; - @class.Class2261 = class2; - flag = false; - } - class2.method_4(); - class2.method_1(false); - @class.method_1(true); - method_13((int0 == 2) ? null : list0[int0 - 4], class2, uint_, @class); - if (int0 + 1 == list0.Count) - { - list0.Add(null); - list0.Add(null); - } - list0[int0 - 2] = @class; - list0[int0 - 1] = (flag ? @class.Class2261 : @class.Class2260); - list0[int0] = class2; - list0[int0 + 1] = (flag ? class2.Class2261 : class2.Class2260); - list0[int0 + 2] = value; - return int0 + 2; - } - - private void method_13(Class226 class2261, Class226 class2262, uint uint1, Class226 class2263) - { - if (class2263 != null && class2263.method_4() != uint1) - { - throw new SystemException("Internal error: rotation"); - } - if (class2262 == _class2260) - { - _class2260 = class2263; - return; - } - if (class2262 == class2261.Class2260) - { - class2261.Class2260 = class2263; - return; - } - if (class2262 == class2261.Class2261) - { - class2261.Class2261 = class2263; - return; - } - throw new SystemException("Internal error: path error"); - } - - private static Class226 smethod_2(Class226 class2261, Class226 class2262, List list0) - { - while (true) - { - list0.Add(class2262); - list0.Add(class2261); - if (class2261.Class2261 == null) - { - break; - } - class2262 = class2261.Class2260; - class2261 = class2261.Class2261; - } - return class2261; - } - - public Struct77 method_14() - { - return new Struct77(this); - } - - public Struct77 method_15(T gparam0) - { - var stack = new Stack(); - var @interface = (INterface10)_object0; - int num; - for (var @class = _class2260; @class != null; @class = ((num < 0) ? @class.Class2260 : @class.Class2261)) - { - num = @interface.imethod_0(gparam0, @class); - if (num <= 0) - { - stack.Push(@class); - } - if (num == 0) - { - break; - } - } - return new Struct77(this, stack); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return method_14(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return method_14(); - } - } -} + public class Class225 : IEnumerable, IEnumerable + { + public struct Struct77 : IEnumerator, IDisposable, IEnumerator + { + private Class225 _class2250; + + private readonly uint _uint0; + + private Stack _stack0; + + private Stack _stack1; + + public Class226 Current => _stack0.Peek(); + + object IEnumerator.Current + { + get + { + method_1(); + return Current; + } + } + + public Struct77(Class225 class2251) + { + this = default(Struct77); + _class2250 = class2251; + _uint0 = class2251._uint0; + } + + public Struct77(Class225 class2251, Stack stack2) + { + this = new Struct77(class2251); + _stack1 = stack2; + } + + public void Reset() + { + method_0(); + _stack0 = null; + } + + public bool MoveNext() + { + method_0(); + Class226 @class; + if (_stack0 == null) + { + if (_class2250._class2260 == null) + { + return false; + } + if (_stack1 != null) + { + _stack0 = _stack1; + _stack1 = null; + return _stack0.Count != 0; + } + _stack0 = new Stack(); + @class = _class2250._class2260; + } + else + { + if (_stack0.Count == 0) + { + return false; + } + var class2 = _stack0.Pop(); + @class = class2.Class2261; + } + while (@class != null) + { + _stack0.Push(@class); + @class = @class.Class2260; + } + return _stack0.Count != 0; + } + + public void Dispose() + { + _class2250 = null; + _stack0 = null; + } + + private void method_0() + { + if (_class2250 == null) + { + throw new ObjectDisposedException("enumerator"); + } + if (_uint0 != _class2250._uint0) + { + throw new InvalidOperationException("tree modified"); + } + } + + public void method_1() + { + method_0(); + if (_stack0 == null) + { + throw new InvalidOperationException("state invalid before the first MoveNext()"); + } + } + } + + public interface INterface10 + { + int imethod_0(T gparam0, Class226 class2260); + + Class226 imethod_1(T gparam0); + } + + public abstract class Class226 + { + public Class226 Class2260; + + public Class226 Class2261; + + private uint _uint0; + + public bool method_0() + { + return (_uint0 & 1u) == 1u; + } + + public void method_1(bool bool0) + { + _uint0 = (bool0 ? (_uint0 | 1u) : (_uint0 & 4294967294u)); + } + + public uint method_2() + { + return _uint0 >> 1; + } + + public void method_3(uint uint1) + { + _uint0 = (uint1 << 1 | (_uint0 & 1u)); + } + + public uint method_4() + { + method_3(1u); + if (Class2260 != null) + { + method_3(method_2() + Class2260.method_2()); + } + if (Class2261 != null) + { + method_3(method_2() + Class2261.method_2()); + } + return method_2(); + } + + public Class226() + { + _uint0 = 2u; + } + + public abstract void vmethod_0(Class226 class2262); + } + + private Class226 _class2260; + + private readonly object _object0; + + private uint _uint0; + + public Class226 this[int int0] + { + get + { + if (int0 >= 0 && int0 < method_4()) + { + var class226 = _class2260; + while (class226 != null) + { + var num = (int) ((class226.Class2260 == null) ? 0u : class226.Class2260.method_2()); + if (int0 == num) + { + return class226; + } + if (int0 < num) + { + class226 = class226.Class2260; + } + else + { + int0 -= num + 1; + class226 = class226.Class2261; + } + } + throw new SystemException("Internal Error: index calculation"); + } + throw new IndexOutOfRangeException("index"); + } + } + + private static List smethod_0() + { + return new List(); + } + + private static void smethod_1(List list0) + { + } + + public Class225(object object1) + { + _object0 = object1; + } + + public void method_0() + { + _class2260 = null; + _uint0 += 1u; + } + + public Class226 method_1(T gparam0, Class226 class2261) + { + if (_class2260 == null) + { + if (class2261 == null) + { + class2261 = ((INterface10) _object0).imethod_1(gparam0); + } + _class2260 = class2261; + _class2260.method_1(true); + _uint0 += 1u; + return _class2260; + } + var list = smethod_0(); + var int_ = method_5(gparam0, list); + var @class = list[list.Count - 1]; + if (@class == null) + { + if (class2261 == null) + { + class2261 = ((INterface10) _object0).imethod_1(gparam0); + } + @class = method_6(int_, class2261, list); + } + smethod_1(list); + return @class; + } + + public Class226 method_2(T gparam0) + { + if (_class2260 == null) + { + return null; + } + var list = smethod_0(); + var num = method_5(gparam0, list); + Class226 result = null; + if (num == 0) + { + result = method_7(list); + } + smethod_1(list); + return result; + } + + public Class226 method_3(T gparam0) + { + var @interface = (INterface10) _object0; + Class226 @class; + int num; + for (@class = _class2260; @class != null; @class = ((num < 0) ? @class.Class2260 : @class.Class2261)) + { + num = @interface.imethod_0(gparam0, @class); + if (num == 0) + { + break; + } + } + return @class; + } + + public int method_4() + { + if (_class2260 != null) + { + return (int) _class2260.method_2(); + } + return 0; + } + + private int method_5(T gparam0, List list0) + { + var @interface = (INterface10) _object0; + var num = 0; + var class226 = _class2260; + if (list0 != null) + { + list0.Add(_class2260); + } + while (class226 != null) + { + num = @interface.imethod_0(gparam0, class226); + if (num == 0) + { + return num; + } + Class226 class2262; + if (num < 0) + { + class2262 = class226.Class2261; + class226 = class226.Class2260; + } + else + { + class2262 = class226.Class2260; + class226 = class226.Class2261; + } + if (list0 != null) + { + list0.Add(class2262); + list0.Add(class226); + } + } + return num; + } + + private Class226 method_6(int int0, Class226 class2261, List list0) + { + list0[list0.Count - 1] = class2261; + var @class = list0[list0.Count - 3]; + if (int0 < 0) + { + @class.Class2260 = class2261; + } + else + { + @class.Class2261 = class2261; + } + for (var i = 0; i < list0.Count - 2; i += 2) + { + var expr_3D = list0[i]; + expr_3D.method_3(expr_3D.method_2() + 1u); + } + if (!@class.method_0()) + { + method_8(list0); + } + if (!_class2260.method_0()) + { + throw new SystemException("Internal error: root is not black"); + } + _uint0 += 1u; + return class2261; + } + + private Class226 method_7(List list0) + { + var num = list0.Count - 1; + var @class = list0[num]; + if (@class.Class2260 != null) + { + var class2 = smethod_2(@class.Class2260, @class.Class2261, list0); + @class.vmethod_0(class2); + if (class2.Class2260 != null) + { + var class3 = class2.Class2260; + list0.Add(null); + list0.Add(class3); + class2.vmethod_0(class3); + } + } + else if (@class.Class2261 != null) + { + var class226 = @class.Class2261; + list0.Add(null); + list0.Add(class226); + @class.vmethod_0(class226); + } + num = list0.Count - 1; + @class = list0[num]; + if (@class.method_2() != 1u) + { + throw new SystemException("Internal Error: red-black violation somewhere"); + } + list0[num] = null; + method_13((num == 0) ? null : list0[num - 2], @class, 0u, null); + for (var i = 0; i < list0.Count - 2; i += 2) + { + var exprD2 = list0[i]; + exprD2.method_3(exprD2.method_2() - 1u); + } + if (@class.method_0()) + { + @class.method_1(false); + if (num != 0) + { + method_9(list0); + } + } + if (_class2260 != null && !_class2260.method_0()) + { + throw new SystemException("Internal Error: root is not black"); + } + _uint0 += 1u; + return @class; + } + + private void method_8(List list0) + { + var num = list0.Count - 1; + while (list0[num - 3] != null && !list0[num - 3].method_0()) + { + var arg340 = list0[num - 2]; + list0[num - 3].method_1(true); + arg340.method_1(true); + num -= 4; + if (num == 0) + { + return; + } + list0[num].method_1(false); + if (list0[num - 2].method_0()) + { + return; + } + } + method_10(num, list0); + } + + private void method_9(List list0) + { + var num = list0.Count - 1; + do + { + var @class = list0[num - 1]; + if (!@class.method_0()) + { + num = method_12(num, list0); + @class = list0[num - 1]; + } + if ((@class.Class2260 != null && !@class.Class2260.method_0()) || + (@class.Class2261 != null && !@class.Class2261.method_0())) + { + goto IL_7C; + } + @class.method_1(false); + num -= 2; + if (num == 0) + { + return; + } + } while (list0[num].method_0()); + list0[num].method_1(true); + return; + IL_7C: + method_11(num, list0); + } + + private void method_10(int int0, List list0) + { + var @class = list0[int0]; + var class2 = list0[int0 - 2]; + var class3 = list0[int0 - 4]; + var uint_ = class3.method_2(); + var flag = class2 == class3.Class2260; + var flag2 = @class == class2.Class2260; + Class226 class4; + if (flag && flag2) + { + class3.Class2260 = class2.Class2261; + class2.Class2261 = class3; + class4 = class2; + } + else if (flag && !flag2) + { + class3.Class2260 = @class.Class2261; + @class.Class2261 = class3; + class2.Class2261 = @class.Class2260; + @class.Class2260 = class2; + class4 = @class; + } + else if (!flag && flag2) + { + class3.Class2261 = @class.Class2260; + @class.Class2260 = class3; + class2.Class2260 = @class.Class2261; + @class.Class2261 = class2; + class4 = @class; + } + else + { + class3.Class2261 = class2.Class2260; + class2.Class2260 = class3; + class4 = class2; + } + class3.method_4(); + class3.method_1(false); + if (class4 != class2) + { + class2.method_4(); + } + class4.method_1(true); + method_13((int0 == 4) ? null : list0[int0 - 6], class3, uint_, class4); + } + + private void method_11(int int0, List list0) + { + var @class = list0[int0 - 1]; + var class2 = list0[int0 - 2]; + var uint_ = class2.method_2(); + var bool_ = class2.method_0(); + Class226 class3; + if (class2.Class2261 == @class) + { + if (@class.Class2261 != null && !@class.Class2261.method_0()) + { + class2.Class2261 = @class.Class2260; + @class.Class2260 = class2; + @class.Class2261.method_1(true); + class3 = @class; + } + else + { + var class4 = @class.Class2260; + class2.Class2261 = class4.Class2260; + class4.Class2260 = class2; + @class.Class2260 = class4.Class2261; + class4.Class2261 = @class; + class3 = class4; + } + } + else if (@class.Class2260 != null && !@class.Class2260.method_0()) + { + class2.Class2260 = @class.Class2261; + @class.Class2261 = class2; + @class.Class2260.method_1(true); + class3 = @class; + } + else + { + var class226 = @class.Class2261; + class2.Class2260 = class226.Class2261; + class226.Class2261 = class2; + @class.Class2261 = class226.Class2260; + class226.Class2260 = @class; + class3 = class226; + } + class2.method_4(); + class2.method_1(true); + if (class3 != @class) + { + @class.method_4(); + } + class3.method_1(bool_); + method_13((int0 == 2) ? null : list0[int0 - 4], class2, uint_, class3); + } + + private int method_12(int int0, List list0) + { + var value = list0[int0]; + var @class = list0[int0 - 1]; + var class2 = list0[int0 - 2]; + var uint_ = class2.method_2(); + bool flag; + if (class2.Class2261 == @class) + { + class2.Class2261 = @class.Class2260; + @class.Class2260 = class2; + flag = true; + } + else + { + class2.Class2260 = @class.Class2261; + @class.Class2261 = class2; + flag = false; + } + class2.method_4(); + class2.method_1(false); + @class.method_1(true); + method_13((int0 == 2) ? null : list0[int0 - 4], class2, uint_, @class); + if (int0 + 1 == list0.Count) + { + list0.Add(null); + list0.Add(null); + } + list0[int0 - 2] = @class; + list0[int0 - 1] = (flag ? @class.Class2261 : @class.Class2260); + list0[int0] = class2; + list0[int0 + 1] = (flag ? class2.Class2261 : class2.Class2260); + list0[int0 + 2] = value; + return int0 + 2; + } + + private void method_13(Class226 class2261, Class226 class2262, uint uint1, Class226 class2263) + { + if (class2263 != null && class2263.method_4() != uint1) + { + throw new SystemException("Internal error: rotation"); + } + if (class2262 == _class2260) + { + _class2260 = class2263; + return; + } + if (class2262 == class2261.Class2260) + { + class2261.Class2260 = class2263; + return; + } + if (class2262 == class2261.Class2261) + { + class2261.Class2261 = class2263; + return; + } + throw new SystemException("Internal error: path error"); + } + + private static Class226 smethod_2(Class226 class2261, Class226 class2262, List list0) + { + while (true) + { + list0.Add(class2262); + list0.Add(class2261); + if (class2261.Class2261 == null) + { + break; + } + class2262 = class2261.Class2260; + class2261 = class2261.Class2261; + } + return class2261; + } + + public Struct77 method_14() + { + return new Struct77(this); + } + + public Struct77 method_15(T gparam0) + { + var stack = new Stack(); + var @interface = (INterface10) _object0; + int num; + for (var @class = _class2260; @class != null; @class = ((num < 0) ? @class.Class2260 : @class.Class2261)) + { + num = @interface.imethod_0(gparam0, @class); + if (num <= 0) + { + stack.Push(@class); + } + if (num == 0) + { + break; + } + } + return new Struct77(this, stack); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return method_14(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return method_14(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/CompilerClass213.cs b/GHNamespace7/CompilerClass213.cs index 3b81c60..58572c3 100644 --- a/GHNamespace7/CompilerClass213.cs +++ b/GHNamespace7/CompilerClass213.cs @@ -5,74 +5,74 @@ namespace GHNamespace7 { // Can probably be deleted - [CompilerGenerated] - public class CompilerClass213 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 40)] - public struct Struct69 - { - } + [CompilerGenerated] + public class CompilerClass213 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 40)] + public struct Struct69 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] - public struct Struct70 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] + public struct Struct70 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] - public struct Struct71 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] + public struct Struct71 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] - public struct Struct72 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] + public struct Struct72 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] - public struct Struct73 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] + public struct Struct73 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] - public struct Struct74 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 116)] + public struct Struct74 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)] - public struct Struct75 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 12)] + public struct Struct75 + { + } - public static Struct69 Struct690; + public static Struct69 Struct690; - public static Struct69 Struct691; + public static Struct69 Struct691; - public static Struct69 Struct692; + public static Struct69 Struct692; - public static Struct69 Struct693; + public static Struct69 Struct693; - public static Struct69 Struct694; + public static Struct69 Struct694; - public static Struct72 Struct720; + public static Struct72 Struct720; - public static Struct73 Struct730; + public static Struct73 Struct730; - public static Struct70 Struct700; + public static Struct70 Struct700; - public static Struct74 Struct740; + public static Struct74 Struct740; - public static Struct74 Struct741; + public static Struct74 Struct741; - public static Struct71 Struct710; + public static Struct71 Struct710; - public static Struct71 Struct711; + public static Struct71 Struct711; - public static Struct75 Struct750; + public static Struct75 Struct750; - public static Struct75 Struct751; + public static Struct75 Struct751; - public static Struct72 Struct721; + public static Struct72 Struct721; - public static Struct75 Struct752; - } -} + public static Struct75 Struct752; + } +} \ No newline at end of file diff --git a/GHNamespace7/Track.cs b/GHNamespace7/Track.cs index 42efa3d..3ef5e23 100644 --- a/GHNamespace7/Track.cs +++ b/GHNamespace7/Track.cs @@ -3,60 +3,60 @@ namespace GHNamespace7 { - public class Track : SortedList where TKey : IComparable - { - public new TValue this[TKey gparam0] - { - get - { + public class Track : SortedList where TKey : IComparable + { + public new TValue this[TKey gparam0] + { + get + { if (!ContainsKey(gparam0)) - { - return base[Keys[method_1(gparam0)]]; - } - return base[gparam0]; - } - set - { - if (ContainsKey(gparam0)) - { - base[gparam0] = value; - return; - } - Add(gparam0, value); - } - } + { + return base[Keys[method_1(gparam0)]]; + } + return base[gparam0]; + } + set + { + if (ContainsKey(gparam0)) + { + base[gparam0] = value; + return; + } + Add(gparam0, value); + } + } private bool method_0(ref int int0, ref int int1, ref int int2, TKey offset) - { + { while (int0 <= int1) - { - int2 = (int0 + int1) / 2; + { + int2 = (int0 + int1) / 2; var tKey = Keys[int2]; if (tKey.CompareTo(offset) < 0) - { + { int0 = int2 + 1; } - else - { + else + { var tKey2 = Keys[int2]; if (tKey2.CompareTo(offset) <= 0) - { + { return true; - } - int1 = int2 - 1; - } - } + } + int1 = int2 - 1; + } + } return false; - } + } //Always takes a number //Not the problem - public int method_1(TKey offset) - { + public int method_1(TKey offset) + { var num = 0; - var num2 = Count - 1; - var num3 = 0; - if(method_0(ref num, ref num2, ref num3, offset)) + var num2 = Count - 1; + var num3 = 0; + if (method_0(ref num, ref num2, ref num3, offset)) { } else @@ -65,41 +65,41 @@ public int method_1(TKey offset) } //num3 = (this.method_0(ref num, ref num2, ref num3, offset) ? num3 : num2); if (num3 >= 0) - { + { return num3; - } + } return 0; - } + } - public int method_2(TKey offset) - { - var num = 0; - var num2 = Count - 1; - var num3 = 0; - num3 = (method_0(ref num, ref num2, ref num3, offset) ? num3 : num); - if (num3 < Count) - { - return num3; - } - return Count - 1; - } + public int method_2(TKey offset) + { + var num = 0; + var num2 = Count - 1; + var num3 = 0; + num3 = (method_0(ref num, ref num2, ref num3, offset) ? num3 : num); + if (num3 < Count) + { + return num3; + } + return Count - 1; + } - public int method_3(TKey gparam0, TKey gparam1) - { - var num = 0; - var num2 = Count - 1; - var num3 = 0; - var num4 = method_0(ref num, ref num2, ref num3, gparam0) ? num3 : num; - num = num4; - num2 = Count - 1; - num3 = 0; - var num5 = method_0(ref num, ref num2, ref num3, gparam1) ? (num3 + 1) : num; - return num5 - num4; - } + public int method_3(TKey gparam0, TKey gparam1) + { + var num = 0; + var num2 = Count - 1; + var num3 = 0; + var num4 = method_0(ref num, ref num2, ref num3, gparam0) ? num3 : num; + num = num4; + num2 = Count - 1; + num3 = 0; + var num5 = method_0(ref num, ref num2, ref num3, gparam1) ? (num3 + 1) : num; + return num5 - num4; + } - public bool method_4(TKey gparam0) - { - return ContainsKey(gparam0); - } - } -} + public bool method_4(TKey gparam0) + { + return ContainsKey(gparam0); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/UnusedClass218.cs b/GHNamespace7/UnusedClass218.cs index a0198d1..5e2473c 100644 --- a/GHNamespace7/UnusedClass218.cs +++ b/GHNamespace7/UnusedClass218.cs @@ -4,118 +4,118 @@ namespace GHNamespace7 { // Can probably be deleted - public class UnusedClass218 : IComparable, IConvertible, IFormattable - { - private object _object0; - - public int CompareTo(object target) - { - return ((IComparable)_object0).CompareTo(target); - } - - public string ToString(string format, IFormatProvider provider) - { - return ((IFormattable)_object0).ToString(format, provider); - } - - public ulong ToUInt64(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt64(provider); - } - - public sbyte ToSByte(IFormatProvider provider) - { - return ((IConvertible)_object0).ToSByte(provider); - } - - public double ToDouble(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDouble(provider); - } - - public DateTime ToDateTime(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDateTime(provider); - } - - public float ToSingle(IFormatProvider provider) - { - return ((IConvertible)_object0).ToSingle(provider); - } - - public bool ToBoolean(IFormatProvider provider) - { - return ((IConvertible)_object0).ToBoolean(provider); - } - - public int ToInt32(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt32(provider); - } - - public ushort ToUInt16(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt16(provider); - } - - public short ToInt16(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt16(provider); - } - - string IConvertible.ToString(IFormatProvider provider) - { - return ((IConvertible)_object0).ToString(provider); - } - - public byte ToByte(IFormatProvider provider) - { - return ((IConvertible)_object0).ToByte(provider); - } - - public char ToChar(IFormatProvider provider) - { - return ((IConvertible)_object0).ToChar(provider); - } - - public long ToInt64(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt64(provider); - } - - public TypeCode GetTypeCode() - { - return ((IConvertible)_object0).GetTypeCode(); - } - - public decimal ToDecimal(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDecimal(provider); - } - - public object ToType(Type conversionType, IFormatProvider provider) - { - return ((IConvertible)_object0).ToType(conversionType, provider); - } - - public uint ToUInt32(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt32(provider); - } - - public override bool Equals(object obj) - { - return (obj is IComparable || obj is IConvertible) && ((IComparable)obj).CompareTo(_object0) == 0; - } - - public override int GetHashCode() - { - return _object0.GetHashCode(); - } - - public override string ToString() - { - return _object0.ToString(); - } - } -} + public class UnusedClass218 : IComparable, IConvertible, IFormattable + { + private object _object0; + + public int CompareTo(object target) + { + return ((IComparable) _object0).CompareTo(target); + } + + public string ToString(string format, IFormatProvider provider) + { + return ((IFormattable) _object0).ToString(format, provider); + } + + public ulong ToUInt64(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt64(provider); + } + + public sbyte ToSByte(IFormatProvider provider) + { + return ((IConvertible) _object0).ToSByte(provider); + } + + public double ToDouble(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDouble(provider); + } + + public DateTime ToDateTime(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDateTime(provider); + } + + public float ToSingle(IFormatProvider provider) + { + return ((IConvertible) _object0).ToSingle(provider); + } + + public bool ToBoolean(IFormatProvider provider) + { + return ((IConvertible) _object0).ToBoolean(provider); + } + + public int ToInt32(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt32(provider); + } + + public ushort ToUInt16(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt16(provider); + } + + public short ToInt16(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt16(provider); + } + + string IConvertible.ToString(IFormatProvider provider) + { + return ((IConvertible) _object0).ToString(provider); + } + + public byte ToByte(IFormatProvider provider) + { + return ((IConvertible) _object0).ToByte(provider); + } + + public char ToChar(IFormatProvider provider) + { + return ((IConvertible) _object0).ToChar(provider); + } + + public long ToInt64(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt64(provider); + } + + public TypeCode GetTypeCode() + { + return ((IConvertible) _object0).GetTypeCode(); + } + + public decimal ToDecimal(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDecimal(provider); + } + + public object ToType(Type conversionType, IFormatProvider provider) + { + return ((IConvertible) _object0).ToType(conversionType, provider); + } + + public uint ToUInt32(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt32(provider); + } + + public override bool Equals(object obj) + { + return (obj is IComparable || obj is IConvertible) && ((IComparable) obj).CompareTo(_object0) == 0; + } + + public override int GetHashCode() + { + return _object0.GetHashCode(); + } + + public override string ToString() + { + return _object0.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/ViewLog.cs b/GHNamespace7/ViewLog.cs index 04a616e..f29deff 100644 --- a/GHNamespace7/ViewLog.cs +++ b/GHNamespace7/ViewLog.cs @@ -5,81 +5,81 @@ namespace GHNamespace7 { - public class ViewLog : Form - { - private IContainer icontainer_0; + public class ViewLog : Form + { + private IContainer icontainer_0; - private SplitContainer _splitContainer1; + private SplitContainer _splitContainer1; - private ListBox _logListBox; + private ListBox _logListBox; - private RichTextBox _logTextBox; + private RichTextBox _logTextBox; - public ViewLog() - { - InitializeComponent(); - foreach (var current in Class216.SortedDictionary0.Keys) - { - _logListBox.Items.Add(current); - } - _logListBox.SelectedIndex = _logListBox.Items.Count - 1; - } + public ViewLog() + { + InitializeComponent(); + foreach (var current in Class216.SortedDictionary0.Keys) + { + _logListBox.Items.Add(current); + } + _logListBox.SelectedIndex = _logListBox.Items.Count - 1; + } - private void LogListBox_SelectedIndexChanged(object sender, EventArgs e) - { - _logTextBox.Text = Class216.SortedDictionary0[(string)_logListBox.SelectedItem]; - } + private void LogListBox_SelectedIndexChanged(object sender, EventArgs e) + { + _logTextBox.Text = Class216.SortedDictionary0[(string) _logListBox.SelectedItem]; + } protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } - private void InitializeComponent() - { - _splitContainer1 = new SplitContainer(); - _logListBox = new ListBox(); - _logTextBox = new RichTextBox(); - _splitContainer1.Panel1.SuspendLayout(); - _splitContainer1.Panel2.SuspendLayout(); - _splitContainer1.SuspendLayout(); - SuspendLayout(); - _splitContainer1.Dock = DockStyle.Fill; - _splitContainer1.Location = new Point(0, 0); - _splitContainer1.Name = "_splitContainer1"; - _splitContainer1.Panel1.Controls.Add(_logListBox); - _splitContainer1.Panel2.Controls.Add(_logTextBox); - _splitContainer1.Size = new Size(476, 188); - _splitContainer1.SplitterDistance = 158; - _splitContainer1.TabIndex = 0; - _logListBox.Dock = DockStyle.Fill; - _logListBox.FormattingEnabled = true; - _logListBox.Location = new Point(0, 0); - _logListBox.Name = "_logListBox"; - _logListBox.Size = new Size(158, 186); - _logListBox.TabIndex = 0; - _logListBox.SelectedIndexChanged += LogListBox_SelectedIndexChanged; - _logTextBox.Dock = DockStyle.Fill; - _logTextBox.Location = new Point(0, 0); - _logTextBox.Name = "_logTextBox"; - _logTextBox.ReadOnly = true; - _logTextBox.Size = new Size(314, 188); - _logTextBox.TabIndex = 0; - _logTextBox.Text = ""; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(476, 188); - Controls.Add(_splitContainer1); - Name = "ViewLog"; - Text = "ViewLog"; - _splitContainer1.Panel1.ResumeLayout(false); - _splitContainer1.Panel2.ResumeLayout(false); - _splitContainer1.ResumeLayout(false); - ResumeLayout(false); - } - } -} + private void InitializeComponent() + { + _splitContainer1 = new SplitContainer(); + _logListBox = new ListBox(); + _logTextBox = new RichTextBox(); + _splitContainer1.Panel1.SuspendLayout(); + _splitContainer1.Panel2.SuspendLayout(); + _splitContainer1.SuspendLayout(); + SuspendLayout(); + _splitContainer1.Dock = DockStyle.Fill; + _splitContainer1.Location = new Point(0, 0); + _splitContainer1.Name = "_splitContainer1"; + _splitContainer1.Panel1.Controls.Add(_logListBox); + _splitContainer1.Panel2.Controls.Add(_logTextBox); + _splitContainer1.Size = new Size(476, 188); + _splitContainer1.SplitterDistance = 158; + _splitContainer1.TabIndex = 0; + _logListBox.Dock = DockStyle.Fill; + _logListBox.FormattingEnabled = true; + _logListBox.Location = new Point(0, 0); + _logListBox.Name = "_logListBox"; + _logListBox.Size = new Size(158, 186); + _logListBox.TabIndex = 0; + _logListBox.SelectedIndexChanged += LogListBox_SelectedIndexChanged; + _logTextBox.Dock = DockStyle.Fill; + _logTextBox.Location = new Point(0, 0); + _logTextBox.Name = "_logTextBox"; + _logTextBox.ReadOnly = true; + _logTextBox.Size = new Size(314, 188); + _logTextBox.TabIndex = 0; + _logTextBox.Text = ""; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(476, 188); + Controls.Add(_splitContainer1); + Name = "ViewLog"; + Text = "ViewLog"; + _splitContainer1.Panel1.ResumeLayout(false); + _splitContainer1.Panel2.ResumeLayout(false); + _splitContainer1.ResumeLayout(false); + ResumeLayout(false); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/zzCollection214.cs b/GHNamespace7/zzCollection214.cs index fb3e2cc..f64e63c 100644 --- a/GHNamespace7/zzCollection214.cs +++ b/GHNamespace7/zzCollection214.cs @@ -3,179 +3,180 @@ namespace GHNamespace7 { - public class ZzCollection214 : IEnumerable>, ICollection>, IDictionary, IEnumerable - { - private readonly Dictionary _dictionary0 = new Dictionary(); - - private readonly List _list0 = new List(); - - private readonly List _list1 = new List(); - - public TValue this[TKey key] - { - get - { - if (_dictionary0.ContainsKey(key)) - { - return _dictionary0[key]; - } - return default(TValue); - } - set - { - if (_dictionary0.ContainsKey(key)) - { - var arg300 = _list1; - var arg301 = _list0.IndexOf(key); - _dictionary0[key] = value; - arg300[arg301] = value; - return; - } - Add(key, value); - } - } - - public TValue this[int int0] - { - get - { - if (_dictionary0.Count > int0) - { - return _list1[int0]; - } - return default(TValue); - } - set - { - if (_dictionary0.Count > int0) - { - var arg300 = _dictionary0; - var arg301 = _list0[int0]; - _list1[int0] = value; - arg300[arg301] = value; - } - } - } - - public TKey this[TValue gparam0] - { - get => method_0(gparam0); - set - { - if (_dictionary0.ContainsKey(value)) - { - var arg300 = _list1; - var arg301 = _list0.IndexOf(value); - _dictionary0[value] = gparam0; - arg300[arg301] = gparam0; - return; - } - Add(value, gparam0); - } - } - - public int Count => _dictionary0.Count; - - public bool IsReadOnly => false; - - public ICollection Keys => _list0; - - public ICollection Values => _list1; - - public bool ContainsKey(TKey key) - { - return _dictionary0.ContainsKey(key); - } - - public void Add(TKey key, TValue value) - { - _dictionary0.Add(key, value); - _list0.Add(key); - _list1.Add(value); - } - - public bool Remove(TKey key) - { - if (!_dictionary0.ContainsKey(key)) - { - return false; - } - _list0.Remove(key); - _list1.Remove(_dictionary0[key]); - return _dictionary0.Remove(key); - } - - public bool TryGetValue(TKey key, out TValue value) - { - if (!_dictionary0.ContainsKey(key)) - { - value = default(TValue); - return false; - } - value = _dictionary0[key]; - return true; - } - - public TKey method_0(TValue gparam0) - { - if (_list1.Contains(gparam0)) - { - return _list0[_list1.IndexOf(gparam0)]; - } - return default(TKey); - } - - public IEnumerator GetEnumerator() - { - return new Class215(_list0, _list1); - } - - public void Add(KeyValuePair item) - { - Add(item.Key, item.Value); - } - - public void Add(ICollection> icollection0) - { - foreach (var current in icollection0) - { - Add(current); - } - } - - public void Clear() - { - _dictionary0.Clear(); - _list0.Clear(); - _list1.Clear(); - } - - public bool Contains(KeyValuePair item) - { - if (_dictionary0.ContainsKey(item.Key)) - { - var tValue = _dictionary0[item.Key]; - return tValue.Equals(item.Value); - } - return false; - } - - public void CopyTo(KeyValuePair[] array, int index) - { - for (var i = 0; i < _dictionary0.Count; i++) - { - array[index + i] = new KeyValuePair(_list0[i], _list1[i]); - } - } - - public bool Remove(KeyValuePair item) - { - return Contains(item) && Remove(item.Key); - } - - IEnumerator> IEnumerable>.GetEnumerator() - { - return new Class215(_list0, _list1); - } - } -} + public class ZzCollection214 : IEnumerable>, + ICollection>, IDictionary, IEnumerable + { + private readonly Dictionary _dictionary0 = new Dictionary(); + + private readonly List _list0 = new List(); + + private readonly List _list1 = new List(); + + public TValue this[TKey key] + { + get + { + if (_dictionary0.ContainsKey(key)) + { + return _dictionary0[key]; + } + return default(TValue); + } + set + { + if (_dictionary0.ContainsKey(key)) + { + var arg300 = _list1; + var arg301 = _list0.IndexOf(key); + _dictionary0[key] = value; + arg300[arg301] = value; + return; + } + Add(key, value); + } + } + + public TValue this[int int0] + { + get + { + if (_dictionary0.Count > int0) + { + return _list1[int0]; + } + return default(TValue); + } + set + { + if (_dictionary0.Count > int0) + { + var arg300 = _dictionary0; + var arg301 = _list0[int0]; + _list1[int0] = value; + arg300[arg301] = value; + } + } + } + + public TKey this[TValue gparam0] + { + get => method_0(gparam0); + set + { + if (_dictionary0.ContainsKey(value)) + { + var arg300 = _list1; + var arg301 = _list0.IndexOf(value); + _dictionary0[value] = gparam0; + arg300[arg301] = gparam0; + return; + } + Add(value, gparam0); + } + } + + public int Count => _dictionary0.Count; + + public bool IsReadOnly => false; + + public ICollection Keys => _list0; + + public ICollection Values => _list1; + + public bool ContainsKey(TKey key) + { + return _dictionary0.ContainsKey(key); + } + + public void Add(TKey key, TValue value) + { + _dictionary0.Add(key, value); + _list0.Add(key); + _list1.Add(value); + } + + public bool Remove(TKey key) + { + if (!_dictionary0.ContainsKey(key)) + { + return false; + } + _list0.Remove(key); + _list1.Remove(_dictionary0[key]); + return _dictionary0.Remove(key); + } + + public bool TryGetValue(TKey key, out TValue value) + { + if (!_dictionary0.ContainsKey(key)) + { + value = default(TValue); + return false; + } + value = _dictionary0[key]; + return true; + } + + public TKey method_0(TValue gparam0) + { + if (_list1.Contains(gparam0)) + { + return _list0[_list1.IndexOf(gparam0)]; + } + return default(TKey); + } + + public IEnumerator GetEnumerator() + { + return new Class215(_list0, _list1); + } + + public void Add(KeyValuePair item) + { + Add(item.Key, item.Value); + } + + public void Add(ICollection> icollection0) + { + foreach (var current in icollection0) + { + Add(current); + } + } + + public void Clear() + { + _dictionary0.Clear(); + _list0.Clear(); + _list1.Clear(); + } + + public bool Contains(KeyValuePair item) + { + if (_dictionary0.ContainsKey(item.Key)) + { + var tValue = _dictionary0[item.Key]; + return tValue.Equals(item.Value); + } + return false; + } + + public void CopyTo(KeyValuePair[] array, int index) + { + for (var i = 0; i < _dictionary0.Count; i++) + { + array[index + i] = new KeyValuePair(_list0[i], _list1[i]); + } + } + + public bool Remove(KeyValuePair item) + { + return Contains(item) && Remove(item.Key); + } + + IEnumerator> IEnumerable>.GetEnumerator() + { + return new Class215(_list0, _list1); + } + } +} \ No newline at end of file diff --git a/GHNamespace7/zzDrawingClass230.cs b/GHNamespace7/zzDrawingClass230.cs index cdc9642..bc5e183 100644 --- a/GHNamespace7/zzDrawingClass230.cs +++ b/GHNamespace7/zzDrawingClass230.cs @@ -5,99 +5,99 @@ namespace GHNamespace7 { - public class ZzDrawingClass230 - { - public static class Gdi - { - [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] - public static extern int SetROP2(IntPtr intptr0, int int0); + public class ZzDrawingClass230 + { + public static class Gdi + { + [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] + public static extern int SetROP2(IntPtr intptr0, int int0); - [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] - public static extern IntPtr GetDC(IntPtr intptr0); + [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] + public static extern IntPtr GetDC(IntPtr intptr0); - [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] - public static extern IntPtr ReleaseDC(IntPtr intptr0, IntPtr intptr1); + [DllImport("user32.dll", CallingConvention = CallingConvention.StdCall)] + public static extern IntPtr ReleaseDC(IntPtr intptr0, IntPtr intptr1); - [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] - public static extern bool MoveToEx(IntPtr intptr0, int int0, int int1, IntPtr intptr1); + [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] + public static extern bool MoveToEx(IntPtr intptr0, int int0, int int1, IntPtr intptr1); - [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] - public static extern bool LineTo(IntPtr intptr0, int int0, int int1); - } + [DllImport("gdi32.dll", CallingConvention = CallingConvention.StdCall)] + public static extern bool LineTo(IntPtr intptr0, int int0, int int1); + } - private readonly ListBox _listBox0; + private readonly ListBox _listBox0; - private int _int0 = -1; + private int _int0 = -1; - public ZzDrawingClass230(ListBox listBox1) - { - _listBox0 = listBox1; - } + public ZzDrawingClass230(ListBox listBox1) + { + _listBox0 = listBox1; + } - public int method_0() - { - return _int0; - } + public int method_0() + { + return _int0; + } - public void method_1() - { - if (_int0 != -1) - { - method_2(_int0); - _int0 = -1; - } - } + public void method_1() + { + if (_int0 != -1) + { + method_2(_int0); + _int0 = -1; + } + } - public void method_2(int int1) - { - Point point; - Point point2; - Point point3; - Point point4; - if (_listBox0.Sorted) - { - var r = _listBox0.ClientRectangle; - r = _listBox0.RectangleToScreen(r); - point = new Point(r.Left, r.Top); - point2 = new Point(r.Left, r.Bottom); - point3 = new Point(r.Left + 1, r.Top); - point4 = new Point(r.Left + 1, r.Bottom); - } - else - { - Rectangle r; - if (_listBox0.Items.Count == 0) - { - r = _listBox0.ClientRectangle; - } - else if (int1 < _listBox0.Items.Count) - { - r = _listBox0.GetItemRectangle(int1); - } - else - { - r = _listBox0.GetItemRectangle(_listBox0.Items.Count - 1); - r.Y += r.Height; - } - r.Y--; - if (r.Y < _listBox0.ClientRectangle.Y) - { - r.Y = _listBox0.ClientRectangle.Y; - } - r = _listBox0.RectangleToScreen(r); - point = new Point(r.Left, r.Top); - point2 = new Point(r.Right, r.Top); - point3 = new Point(r.Left, r.Top + 1); - point4 = new Point(r.Right, r.Top + 1); - } - var dC = Gdi.GetDC(IntPtr.Zero); - Gdi.SetROP2(dC, 6); - Gdi.MoveToEx(dC, point.X, point.Y, IntPtr.Zero); - Gdi.LineTo(dC, point2.X, point2.Y); - Gdi.MoveToEx(dC, point3.X, point3.Y, IntPtr.Zero); - Gdi.LineTo(dC, point4.X, point4.Y); - Gdi.ReleaseDC(IntPtr.Zero, dC); - _int0 = int1; - } - } -} + public void method_2(int int1) + { + Point point; + Point point2; + Point point3; + Point point4; + if (_listBox0.Sorted) + { + var r = _listBox0.ClientRectangle; + r = _listBox0.RectangleToScreen(r); + point = new Point(r.Left, r.Top); + point2 = new Point(r.Left, r.Bottom); + point3 = new Point(r.Left + 1, r.Top); + point4 = new Point(r.Left + 1, r.Bottom); + } + else + { + Rectangle r; + if (_listBox0.Items.Count == 0) + { + r = _listBox0.ClientRectangle; + } + else if (int1 < _listBox0.Items.Count) + { + r = _listBox0.GetItemRectangle(int1); + } + else + { + r = _listBox0.GetItemRectangle(_listBox0.Items.Count - 1); + r.Y += r.Height; + } + r.Y--; + if (r.Y < _listBox0.ClientRectangle.Y) + { + r.Y = _listBox0.ClientRectangle.Y; + } + r = _listBox0.RectangleToScreen(r); + point = new Point(r.Left, r.Top); + point2 = new Point(r.Right, r.Top); + point3 = new Point(r.Left, r.Top + 1); + point4 = new Point(r.Right, r.Top + 1); + } + var dC = Gdi.GetDC(IntPtr.Zero); + Gdi.SetROP2(dC, 6); + Gdi.MoveToEx(dC, point.X, point.Y, IntPtr.Zero); + Gdi.LineTo(dC, point2.X, point2.Y); + Gdi.MoveToEx(dC, point3.X, point3.Y, IntPtr.Zero); + Gdi.LineTo(dC, point4.X, point4.Y); + Gdi.ReleaseDC(IntPtr.Zero, dC); + _int0 = int1; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/BPMInterpreter.cs b/GHNamespace8/BPMInterpreter.cs index b6a9ad0..ad9bcc0 100644 --- a/GHNamespace8/BPMInterpreter.cs +++ b/GHNamespace8/BPMInterpreter.cs @@ -3,49 +3,49 @@ namespace GHNamespace8 { - public class BpmInterpreter - { - public Track TsList = new Track(); + public class BpmInterpreter + { + public Track TsList = new Track(); - public Track BpmList = new Track(); + public Track BpmList = new Track(); - public BpmInterpreter() - { - } + public BpmInterpreter() + { + } - public BpmInterpreter(string[] string0) - { - for (var i = 0; i < string0.Length; i++) - { - var text = string0[i]; - var array = text.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - var num = ChartParser.GetNoteFromResolution(array[0]); - var num2 = Convert.ToInt32(array[2]); - string a; - if ((a = array[1]) != null) - { - if (!(a == "TS")) - { - if (a == "B" && (BpmList.Count == 0 || BpmList[num] != num2)) - { - BpmList.Add(num, num2); - } - } - else if (TsList.Count == 0 || TsList[num] != num2) - { - TsList.Add(num, num2); - } - } - } - if (!TsList.ContainsKey(0)) - { - TsList.Add(0, 4); - } - } - } -} + public BpmInterpreter(string[] string0) + { + for (var i = 0; i < string0.Length; i++) + { + var text = string0[i]; + var array = text.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + var num = ChartParser.GetNoteFromResolution(array[0]); + var num2 = Convert.ToInt32(array[2]); + string a; + if ((a = array[1]) != null) + { + if (!(a == "TS")) + { + if (a == "B" && (BpmList.Count == 0 || BpmList[num] != num2)) + { + BpmList.Add(num, num2); + } + } + else if (TsList.Count == 0 || TsList[num] != num2) + { + TsList.Add(num, num2); + } + } + } + if (!TsList.ContainsKey(0)) + { + TsList.Add(0, 4); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace8/ChartParser.cs b/GHNamespace8/ChartParser.cs index 0fdf210..bc08ad5 100644 --- a/GHNamespace8/ChartParser.cs +++ b/GHNamespace8/ChartParser.cs @@ -8,34 +8,35 @@ namespace GHNamespace8 { - public class ChartParser - { - public Dictionary DifficultyWithNotes = new Dictionary(); + public class ChartParser + { + public Dictionary DifficultyWithNotes = + new Dictionary(); - public Dictionary InstrumentList = new Dictionary(); + public Dictionary InstrumentList = new Dictionary(); - public BpmInterpreter BpmInterpreter; + public BpmInterpreter BpmInterpreter; - public SectionInterpreter SectionInterpreter; + public SectionInterpreter SectionInterpreter; - public int Constant480 = 480; + public int Constant480 = 480; - public Gh3Song Gh3SongInfo = new Gh3Song(); + public Gh3Song Gh3SongInfo = new Gh3Song(); - private static double _resolution; + private static double _resolution; - private Track _bpmMsTracker; + private Track _bpmMsTracker; - public ChartParser() - { - BpmInterpreter = new BpmInterpreter(); - SectionInterpreter = new SectionInterpreter(); - } + public ChartParser() + { + BpmInterpreter = new BpmInterpreter(); + SectionInterpreter = new SectionInterpreter(); + } - public ChartParser(Gh3Song gh3Song1) : this() - { - Gh3SongInfo = gh3Song1; - } + public ChartParser(Gh3Song gh3Song1) : this() + { + Gh3SongInfo = gh3Song1; + } public ChartParser(string string0, bool nothing) { @@ -109,7 +110,9 @@ public ChartParser(string string0, bool nothing) } break; case "offset": - Gh3SongInfo.InputOffset = (Gh3SongInfo.GemOffset = Convert.ToInt32(Convert.ToDouble(text4) * -1000.0)); + Gh3SongInfo.InputOffset = + (Gh3SongInfo.GemOffset = + Convert.ToInt32(Convert.ToDouble(text4) * -1000.0)); break; case "singer": Gh3SongInfo.Singer = text4; @@ -160,10 +163,10 @@ public ChartParser(string string0, bool nothing) { BpmInterpreter = new BpmInterpreter(list.ToArray()); } - IL_4D5: + IL_4D5: list.Clear(); continue; - IL_477: + IL_477: Console.WriteLine(bracketItems + ", " + bracketItemsWithBrackets); if (DifficultyWithNotes.ContainsKey(bracketItems)) { @@ -188,203 +191,207 @@ public ChartParser(string string0, bool nothing) } public ChartParser(string string0) - { + { var list = new List(); - var streamReader = File.OpenText(string0); - string bracketItems = null; - string bracketItemsWithBrackets; - while ((bracketItemsWithBrackets = streamReader.ReadLine()) != null) - { - if (bracketItemsWithBrackets.StartsWith("[")) - { - bracketItems = bracketItemsWithBrackets.Split(new[] - { - '[', - ']' - }, StringSplitOptions.RemoveEmptyEntries)[0]; + var streamReader = File.OpenText(string0); + string bracketItems = null; + string bracketItemsWithBrackets; + while ((bracketItemsWithBrackets = streamReader.ReadLine()) != null) + { + if (bracketItemsWithBrackets.StartsWith("[")) + { + bracketItems = bracketItemsWithBrackets.Split(new[] + { + '[', + ']' + }, StringSplitOptions.RemoveEmptyEntries)[0]; } - else if (!bracketItemsWithBrackets.Equals("{")) - { - if (bracketItemsWithBrackets.Equals("}")) - { + else if (!bracketItemsWithBrackets.Equals("{")) + { + if (bracketItemsWithBrackets.Equals("}")) + { string a; - if ((a = bracketItems) == null) - { - goto IL_477; - } - if (a == "Song") - { - Gh3SongInfo.Editable = true; - using (var enumerator = list.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - var current = enumerator.Current; - var array = current.Split(new[] - { - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - if (array.Length > 1) - { - var text3 = array[0].Trim().ToLower(); - var text4 = array[1].Trim().Replace("\"", ""); - string key; - switch (key = text3) - { - case "name": - Gh3SongInfo.Title = text4; - break; - case "artist": - Gh3SongInfo.Artist = text4; - break; - case "year": - Gh3SongInfo.Year = text4; - break; - case "player2": - Gh3SongInfo.NotBass = !text4.ToLower().Equals("bass"); - break; - case "artisttext": - if (text4.Equals("by")) - { - Gh3SongInfo.ArtistText = true; - } - else if (text4.Equals("as made famous by")) - { - Gh3SongInfo.ArtistText = false; - } - else - { - Gh3SongInfo.ArtistText = text4; - } - break; - case "offset": - Gh3SongInfo.InputOffset = (Gh3SongInfo.GemOffset = Convert.ToInt32(Convert.ToDouble(text4) * -1000.0)); - break; - case "singer": - Gh3SongInfo.Singer = text4; - break; - case "bassist": - Gh3SongInfo.Bassist = text4; - break; - case "boss": - Gh3SongInfo.Boss = text4; - break; - case "countoff": - Gh3SongInfo.Countoff = text4; - break; - case "guitarvol": - Gh3SongInfo.GuitarVol = Convert.ToSingle(text4); - break; - case "bandvol": - Gh3SongInfo.BandVol = Convert.ToSingle(text4); - break; - case "hopo": - Gh3SongInfo.HammerOn = Convert.ToSingle(text4); - break; - case "originalartist": - Gh3SongInfo.OriginalArtist = text4.Equals("true"); - break; - case "resolution": - _resolution = 480.0 / Convert.ToDouble(text4); - break; - } - } - } - goto IL_4D5; - } - goto IL_477; - } - if (!(a == "SyncTrack")) - { - if (!(a == "Events")) - { - goto IL_477; - } - if (SectionInterpreter == null) - { - SectionInterpreter = new SectionInterpreter(list.ToArray()); - } - } - else if (BpmInterpreter == null) - { - BpmInterpreter = new BpmInterpreter(list.ToArray()); - } - IL_4D5: - list.Clear(); - continue; - IL_477: + if ((a = bracketItems) == null) + { + goto IL_477; + } + if (a == "Song") + { + Gh3SongInfo.Editable = true; + using (var enumerator = list.GetEnumerator()) + { + while (enumerator.MoveNext()) + { + var current = enumerator.Current; + var array = current.Split(new[] + { + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + if (array.Length > 1) + { + var text3 = array[0].Trim().ToLower(); + var text4 = array[1].Trim().Replace("\"", ""); + string key; + switch (key = text3) + { + case "name": + Gh3SongInfo.Title = text4; + break; + case "artist": + Gh3SongInfo.Artist = text4; + break; + case "year": + Gh3SongInfo.Year = text4; + break; + case "player2": + Gh3SongInfo.NotBass = !text4.ToLower().Equals("bass"); + break; + case "artisttext": + if (text4.Equals("by")) + { + Gh3SongInfo.ArtistText = true; + } + else if (text4.Equals("as made famous by")) + { + Gh3SongInfo.ArtistText = false; + } + else + { + Gh3SongInfo.ArtistText = text4; + } + break; + case "offset": + Gh3SongInfo.InputOffset = + (Gh3SongInfo.GemOffset = + Convert.ToInt32(Convert.ToDouble(text4) * -1000.0)); + break; + case "singer": + Gh3SongInfo.Singer = text4; + break; + case "bassist": + Gh3SongInfo.Bassist = text4; + break; + case "boss": + Gh3SongInfo.Boss = text4; + break; + case "countoff": + Gh3SongInfo.Countoff = text4; + break; + case "guitarvol": + Gh3SongInfo.GuitarVol = Convert.ToSingle(text4); + break; + case "bandvol": + Gh3SongInfo.BandVol = Convert.ToSingle(text4); + break; + case "hopo": + Gh3SongInfo.HammerOn = Convert.ToSingle(text4); + break; + case "originalartist": + Gh3SongInfo.OriginalArtist = text4.Equals("true"); + break; + case "resolution": + _resolution = 480.0 / Convert.ToDouble(text4); + break; + } + } + } + goto IL_4D5; + } + goto IL_477; + } + if (!(a == "SyncTrack")) + { + if (!(a == "Events")) + { + goto IL_477; + } + if (SectionInterpreter == null) + { + SectionInterpreter = new SectionInterpreter(list.ToArray()); + } + } + else if (BpmInterpreter == null) + { + BpmInterpreter = new BpmInterpreter(list.ToArray()); + } + IL_4D5: + list.Clear(); + continue; + IL_477: Console.WriteLine(bracketItems + ", " + bracketItemsWithBrackets); if (DifficultyWithNotes.ContainsKey(bracketItems)) - { + { goto IL_4D5; - } + } if (!bracketItems.Contains("Single") && !bracketItems.Contains("Double")) - { - InstrumentList.Add(bracketItems, new InstrumentType(list.ToArray())); - goto IL_4D5; - } - DifficultyWithNotes.Add(bracketItems, new NoteEventInterpreter(list.ToArray(), Constant480)); + { + InstrumentList.Add(bracketItems, new InstrumentType(list.ToArray())); + goto IL_4D5; + } + DifficultyWithNotes.Add(bracketItems, new NoteEventInterpreter(list.ToArray(), Constant480)); goto IL_4D5; - } - if (!bracketItemsWithBrackets.Equals("")) - { - list.Add(bracketItemsWithBrackets); - } - } - } - streamReader.Close(); + } + if (!bracketItemsWithBrackets.Equals("")) + { + list.Add(bracketItemsWithBrackets); + } + } + } + streamReader.Close(); RemoveEmptyParts(); } - public static int GetNoteFromResolution(string offset) - { - return Convert.ToInt32(Convert.ToInt32(offset) * _resolution); - } + public static int GetNoteFromResolution(string offset) + { + return Convert.ToInt32(Convert.ToInt32(offset) * _resolution); + } - public void RemoveEmptyParts() - { - string[] array = { - "Easy", - "Medium", - "Hard", - "Expert" - }; - for (var i = 0; i < array.Length; i++) - { - var str = array[i]; - if (DifficultyWithNotes.ContainsKey(str + "Single")) - { - DifficultyWithNotes.Add(str + "SingleGuitar", DifficultyWithNotes[str + "Single"]); - DifficultyWithNotes.Remove(str + "Single"); - } - if (DifficultyWithNotes.ContainsKey(str + "DoubleBass")) - { - if (DifficultyWithNotes.ContainsKey(str + "DoubleGuitar") && !DifficultyWithNotes[str + "DoubleGuitar"].AlwaysTrue) - { - DifficultyWithNotes.Add(str + "DoubleRhythm", DifficultyWithNotes[str + "DoubleBass"]); - } - else - { - DifficultyWithNotes.Add(str + "SingleRhythm", DifficultyWithNotes[str + "DoubleBass"]); - } - DifficultyWithNotes.Remove(str + "DoubleBass"); - } - } + public void RemoveEmptyParts() + { + string[] array = + { + "Easy", + "Medium", + "Hard", + "Expert" + }; + for (var i = 0; i < array.Length; i++) + { + var str = array[i]; + if (DifficultyWithNotes.ContainsKey(str + "Single")) + { + DifficultyWithNotes.Add(str + "SingleGuitar", DifficultyWithNotes[str + "Single"]); + DifficultyWithNotes.Remove(str + "Single"); + } + if (DifficultyWithNotes.ContainsKey(str + "DoubleBass")) + { + if (DifficultyWithNotes.ContainsKey(str + "DoubleGuitar") && + !DifficultyWithNotes[str + "DoubleGuitar"].AlwaysTrue) + { + DifficultyWithNotes.Add(str + "DoubleRhythm", DifficultyWithNotes[str + "DoubleBass"]); + } + else + { + DifficultyWithNotes.Add(str + "SingleRhythm", DifficultyWithNotes[str + "DoubleBass"]); + } + DifficultyWithNotes.Remove(str + "DoubleBass"); + } + } var list = new List(DifficultyWithNotes.Keys); - foreach (var current in list) - { - if (DifficultyWithNotes[current].NoteList.Count == 0) - { - DifficultyWithNotes.Remove(current); - } - } + foreach (var current in list) + { + if (DifficultyWithNotes[current].NoteList.Count == 0) + { + DifficultyWithNotes.Remove(current); + } + } if (SectionInterpreter == null) - { - SectionInterpreter = new SectionInterpreter(); - } - if (BpmInterpreter.TsList.Count == 0) - { + { + SectionInterpreter = new SectionInterpreter(); + } + if (BpmInterpreter.TsList.Count == 0) + { BpmInterpreter.TsList.Add(0, 4); } } @@ -399,7 +406,9 @@ public void ChartCreator(string fileLocation, Gh3Song song) streamWriter.WriteLine("\tArtist = \"" + Gh3SongInfo.Artist + "\""); streamWriter.WriteLine("\tYear = \"" + Gh3SongInfo.Year + "\""); streamWriter.WriteLine("\tPlayer2 = " + (Gh3SongInfo.NotBass ? "Rhythm" : "Bass")); - streamWriter.WriteLine("\tArtistText = \"" + ((Gh3SongInfo.ArtistText is bool) ? (((bool)Gh3SongInfo.ArtistText) ? "by" : "as made famous by") : ((string)Gh3SongInfo.ArtistText)) + "\""); + streamWriter.WriteLine("\tArtistText = \"" + ((Gh3SongInfo.ArtistText is bool) + ? (((bool) Gh3SongInfo.ArtistText) ? "by" : "as made famous by") + : ((string) Gh3SongInfo.ArtistText)) + "\""); streamWriter.WriteLine("\tOffset = " + Gh3SongInfo.InputOffset / -1000.0); if (!Gh3SongInfo.Singer.Equals("")) { @@ -458,7 +467,8 @@ public void ChartCreator(string fileLocation, Gh3Song song) { if (SectionInterpreter.SectionList.ContainsKey(current4)) { - streamWriter.WriteLine(string.Concat("\t", current4, " = E \"section ", SectionInterpreter.SectionList[current4].Replace(" ", "_").ToLower(), "\"")); + streamWriter.WriteLine(string.Concat("\t", current4, " = E \"section ", + SectionInterpreter.SectionList[current4].Replace(" ", "_").ToLower(), "\"")); } if (SectionInterpreter.OtherList.ContainsKey(current4)) { @@ -471,7 +481,8 @@ public void ChartCreator(string fileLocation, Gh3Song song) } streamWriter.WriteLine("}"); new ArrayList(DifficultyWithNotes.Keys); - string[] difficulties = { + string[] difficulties = + { "Easy", "Medium", "Hard", @@ -480,14 +491,16 @@ public void ChartCreator(string fileLocation, Gh3Song song) for (var i = 0; i < difficulties.Length; i++) { var str = difficulties[i]; - string[] array2 = { + string[] array2 = + { "Single", "Double" }; for (var j = 0; j < array2.Length; j++) { var str2 = array2[j]; - string[] array3 = { + string[] array3 = + { "Guitar", "Rhythm" }; @@ -569,33 +582,40 @@ public void ChartCreator(string fileLocation, Gh3Song song) { if (class2.NoteValues[l]) { - streamWriter.WriteLine(string.Concat("\t", current13, " = N ", l, " ", class2.SustainLength)); + streamWriter.WriteLine(string.Concat("\t", current13, " = N ", l, " ", + class2.SustainLength)); } } } if (@class.Class2282.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 0 ", @class.Class2282[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 0 ", @class.Class2282[current13])); } if (@class.Class2283.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 1 ", @class.Class2283[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 1 ", @class.Class2283[current13])); } if (@class.Class2281.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 2 ", @class.Class2281[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 2 ", @class.Class2281[current13])); } if (@class.Class2284.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 3 ", @class.Class2284[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 3 ", @class.Class2284[current13])); } if (@class.Class2285.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 4 ", @class.Class2285[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 4 ", @class.Class2285[current13])); } if (@class.Class2286.ContainsKey(current13)) { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 5 ", @class.Class2286[current13])); + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 5 ", @class.Class2286[current13])); } } streamWriter.WriteLine("}"); @@ -634,14 +654,20 @@ public void ChartCreator(string fileLocation, Gh3Song song) private String ConvertDbcName(String name) { - String[] dbcTypes = {"[EasySingleGuitar]", "[MediumSingleGuitar]", "[HardSingleGuitar]", "[ExpertSingleGuitar]", + String[] dbcTypes = + { + "[EasySingleGuitar]", "[MediumSingleGuitar]", "[HardSingleGuitar]", "[ExpertSingleGuitar]", "[EasyDoubleGuitar]", "[MediumDoubleGuitar]", "[HardDoubleGuitar]", "[ExpertDoubleGuitar]", - "[EasySingleRhythm]", "[MediumSingleRhythm]", "[HardSingleRhythm]", "[ExpertSingleRhythm]", - "[EasyDoubleRhythm]", "[MediumDoubleRhythm]", "[HardDoubleRhythm]", "[ExpertDoubleRhythm]"}; - String[] chartTypes = {"[EasySingle]", "[MediumSingle]", "[HardSingle]", "[ExpertSingle]", + "[EasySingleRhythm]", "[MediumSingleRhythm]", "[HardSingleRhythm]", "[ExpertSingleRhythm]", + "[EasyDoubleRhythm]", "[MediumDoubleRhythm]", "[HardDoubleRhythm]", "[ExpertDoubleRhythm]" + }; + String[] chartTypes = + { + "[EasySingle]", "[MediumSingle]", "[HardSingle]", "[ExpertSingle]", "[EasyDoubleGuitar]", "[MediumDoubleGuitar]", "[HardDoubleGuitar]", "[ExpertDoubleGuitar]", "[EasySingleBass]", "[MediumSingleBass]", "[HardSingleBass]", "[ExpertSingleBass]", - "[EasyDoubleBass]", "[MediumDoubleBass]", "[HardDoubleBass]", "[ExpertDoubleBass]"}; + "[EasyDoubleBass]", "[MediumDoubleBass]", "[HardDoubleBass]", "[ExpertDoubleBass]" + }; for (var i = 0; i < dbcTypes.Length; i++) { if (name.Equals(dbcTypes[i])) @@ -653,392 +679,421 @@ private String ConvertDbcName(String name) } public void DbcCreator(string fileLocation, Gh3Song gh3Song) - { + { Gh3SongInfo = gh3Song; - var streamWriter = new StreamWriter(fileLocation); - streamWriter.WriteLine("[Song]"); - streamWriter.WriteLine("{"); - streamWriter.WriteLine("\tName = \"" + Gh3SongInfo.Title + "\""); - streamWriter.WriteLine("\tArtist = \"" + Gh3SongInfo.Artist + "\""); - streamWriter.WriteLine("\tYear = \"" + Gh3SongInfo.Year + "\""); - streamWriter.WriteLine("\tPlayer2 = " + (Gh3SongInfo.NotBass ? "Rhythm" : "Bass")); - streamWriter.WriteLine("\tArtistText = \"" + ((Gh3SongInfo.ArtistText is bool) ? (((bool)Gh3SongInfo.ArtistText) ? "by" : "as made famous by") : ((string)Gh3SongInfo.ArtistText)) + "\""); - streamWriter.WriteLine("\tOffset = " + Gh3SongInfo.InputOffset / -1000.0); - if (!Gh3SongInfo.Singer.Equals("")) - { - streamWriter.WriteLine("\tSinger = \"" + Gh3SongInfo.Singer + "\""); - } - if (!Gh3SongInfo.Bassist.Equals("Generic Bassist")) - { - streamWriter.WriteLine("\tBassist = \"" + Gh3SongInfo.Bassist + "\""); - } - if (!Gh3SongInfo.Boss.Equals("")) - { - streamWriter.WriteLine("\tBoss = \"" + Gh3SongInfo.Boss + "\""); - } - streamWriter.WriteLine("\tCountOff = \"" + Gh3SongInfo.Countoff + "\""); - streamWriter.WriteLine("\tGuitarVol = " + Gh3SongInfo.GuitarVol); - streamWriter.WriteLine("\tBandVol = " + Gh3SongInfo.BandVol); - streamWriter.WriteLine("\tHoPo = " + Gh3SongInfo.HammerOn); - streamWriter.WriteLine("\tOriginalArtist = " + (Gh3SongInfo.OriginalArtist ? "true" : "false")); - streamWriter.WriteLine("\tResolution = " + Constant480); - streamWriter.WriteLine("}"); - streamWriter.WriteLine("[SyncTrack]"); - streamWriter.WriteLine("{"); - var list = new List(BpmInterpreter.TsList.Keys); - foreach (var current in BpmInterpreter.BpmList.Keys) - { - if (!list.Contains(current)) - { - list.Add(current); - } - } - list.Sort(); - foreach (var current2 in list) - { - if (BpmInterpreter.BpmList.ContainsKey(current2)) - { - streamWriter.WriteLine(string.Concat("\t", current2, " = B ", BpmInterpreter.BpmList[current2])); - } - if (BpmInterpreter.TsList.ContainsKey(current2)) - { - streamWriter.WriteLine(string.Concat("\t", current2, " = TS ", BpmInterpreter.TsList[current2])); - } - } - streamWriter.WriteLine("}"); - streamWriter.WriteLine("[Events]"); - streamWriter.WriteLine("{"); - list = new List(SectionInterpreter.SectionList.Keys); - foreach (var current3 in SectionInterpreter.OtherList.Keys) - { - if (!list.Contains(current3)) - { - list.Add(current3); - } - } - list.Sort(); - foreach (var current4 in list) - { - if (SectionInterpreter.SectionList.ContainsKey(current4)) - { - streamWriter.WriteLine(string.Concat("\t", current4, " = E \"section ", SectionInterpreter.SectionList[current4].Replace(" ", "_").ToLower(), "\"")); - } - if (SectionInterpreter.OtherList.ContainsKey(current4)) - { - var list2 = SectionInterpreter.OtherList[current4]; - foreach (var current5 in list2) - { - streamWriter.WriteLine(string.Concat("\t", current4, " = E \"", current5, "\"")); - } - } - } - streamWriter.WriteLine("}"); - new ArrayList(DifficultyWithNotes.Keys); - string[] array = { - "Easy", - "Medium", - "Hard", - "Expert" - }; - for (var i = 0; i < array.Length; i++) - { - var str = array[i]; - string[] array2 = { - "Single", - "Double" - }; - for (var j = 0; j < array2.Length; j++) - { - var str2 = array2[j]; - string[] array3 = { - "Guitar", - "Rhythm" - }; - for (var k = 0; k < array3.Length; k++) - { - var str3 = array3[k]; - if (DifficultyWithNotes.ContainsKey(str + str2 + str3)) - { - var text = str + str2 + str3; - var @class = DifficultyWithNotes[text]; - streamWriter.WriteLine("[" + text + "]"); - streamWriter.WriteLine("{"); - list = new List(@class.NoteList.Keys); - foreach (var current6 in @class.Class2282.Keys) - { - if (!list.Contains(current6)) - { - list.Add(current6); - } - } - foreach (var current7 in @class.Class2283.Keys) - { - if (!list.Contains(current7)) - { - list.Add(current7); - } - } - foreach (var current8 in @class.Class2281.Keys) - { - if (!list.Contains(current8)) - { - list.Add(current8); - } - } - foreach (var current9 in @class.Class2284.Keys) - { - if (!list.Contains(current9)) - { - list.Add(current9); - } - } - foreach (var current10 in @class.Class2285.Keys) - { - if (!list.Contains(current10)) - { - list.Add(current10); - } - } - foreach (var current11 in @class.Class2286.Keys) - { - if (!list.Contains(current11)) - { - list.Add(current11); - } - } - foreach (var current12 in @class.EventList.Keys) - { - if (!list.Contains(current12)) - { - list.Add(current12); - } - } - list.Sort(); - foreach (var current13 in list) - { - if (@class.EventList.ContainsKey(current13)) - { - var list2 = @class.EventList[current13]; - foreach (var current14 in list2) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = E ", current14)); - } - } - if (@class.NoteList.ContainsKey(current13)) - { - var class2 = @class.NoteList[current13]; - for (var l = 0; l < class2.NoteValues.Length; l++) - { - if (class2.NoteValues[l]) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = N ", l, " ", class2.SustainLength)); - } - } - } - if (@class.Class2282.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 0 ", @class.Class2282[current13])); - } - if (@class.Class2283.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 1 ", @class.Class2283[current13])); - } - if (@class.Class2281.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 2 ", @class.Class2281[current13])); - } - if (@class.Class2284.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 3 ", @class.Class2284[current13])); - } - if (@class.Class2285.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 4 ", @class.Class2285[current13])); - } - if (@class.Class2286.ContainsKey(current13)) - { - streamWriter.WriteLine(string.Concat("\t", current13, " = S 5 ", @class.Class2286[current13])); - } - } - streamWriter.WriteLine("}"); - } - } - } - array2 = new[] - { - "Drums", - "Keyboard" - }; - for (var j = 0; j < array2.Length; j++) - { - var str4 = array2[j]; - if (InstrumentList.ContainsKey(str + str4)) - { - var text2 = str + str4; - var class3 = InstrumentList[text2]; - streamWriter.WriteLine("[" + text2 + "]"); - streamWriter.WriteLine("{"); - list = new List(class3.Keys); - list.Sort(); - foreach (var current15 in list) - { - foreach (var current16 in class3[current15]) - { - streamWriter.WriteLine(string.Concat("\t", current15, " = E ", current16)); - } - } - streamWriter.WriteLine("}"); - } - } - } - streamWriter.Close(); - } + var streamWriter = new StreamWriter(fileLocation); + streamWriter.WriteLine("[Song]"); + streamWriter.WriteLine("{"); + streamWriter.WriteLine("\tName = \"" + Gh3SongInfo.Title + "\""); + streamWriter.WriteLine("\tArtist = \"" + Gh3SongInfo.Artist + "\""); + streamWriter.WriteLine("\tYear = \"" + Gh3SongInfo.Year + "\""); + streamWriter.WriteLine("\tPlayer2 = " + (Gh3SongInfo.NotBass ? "Rhythm" : "Bass")); + streamWriter.WriteLine("\tArtistText = \"" + ((Gh3SongInfo.ArtistText is bool) + ? (((bool) Gh3SongInfo.ArtistText) ? "by" : "as made famous by") + : ((string) Gh3SongInfo.ArtistText)) + "\""); + streamWriter.WriteLine("\tOffset = " + Gh3SongInfo.InputOffset / -1000.0); + if (!Gh3SongInfo.Singer.Equals("")) + { + streamWriter.WriteLine("\tSinger = \"" + Gh3SongInfo.Singer + "\""); + } + if (!Gh3SongInfo.Bassist.Equals("Generic Bassist")) + { + streamWriter.WriteLine("\tBassist = \"" + Gh3SongInfo.Bassist + "\""); + } + if (!Gh3SongInfo.Boss.Equals("")) + { + streamWriter.WriteLine("\tBoss = \"" + Gh3SongInfo.Boss + "\""); + } + streamWriter.WriteLine("\tCountOff = \"" + Gh3SongInfo.Countoff + "\""); + streamWriter.WriteLine("\tGuitarVol = " + Gh3SongInfo.GuitarVol); + streamWriter.WriteLine("\tBandVol = " + Gh3SongInfo.BandVol); + streamWriter.WriteLine("\tHoPo = " + Gh3SongInfo.HammerOn); + streamWriter.WriteLine("\tOriginalArtist = " + (Gh3SongInfo.OriginalArtist ? "true" : "false")); + streamWriter.WriteLine("\tResolution = " + Constant480); + streamWriter.WriteLine("}"); + streamWriter.WriteLine("[SyncTrack]"); + streamWriter.WriteLine("{"); + var list = new List(BpmInterpreter.TsList.Keys); + foreach (var current in BpmInterpreter.BpmList.Keys) + { + if (!list.Contains(current)) + { + list.Add(current); + } + } + list.Sort(); + foreach (var current2 in list) + { + if (BpmInterpreter.BpmList.ContainsKey(current2)) + { + streamWriter.WriteLine(string.Concat("\t", current2, " = B ", BpmInterpreter.BpmList[current2])); + } + if (BpmInterpreter.TsList.ContainsKey(current2)) + { + streamWriter.WriteLine(string.Concat("\t", current2, " = TS ", BpmInterpreter.TsList[current2])); + } + } + streamWriter.WriteLine("}"); + streamWriter.WriteLine("[Events]"); + streamWriter.WriteLine("{"); + list = new List(SectionInterpreter.SectionList.Keys); + foreach (var current3 in SectionInterpreter.OtherList.Keys) + { + if (!list.Contains(current3)) + { + list.Add(current3); + } + } + list.Sort(); + foreach (var current4 in list) + { + if (SectionInterpreter.SectionList.ContainsKey(current4)) + { + streamWriter.WriteLine(string.Concat("\t", current4, " = E \"section ", + SectionInterpreter.SectionList[current4].Replace(" ", "_").ToLower(), "\"")); + } + if (SectionInterpreter.OtherList.ContainsKey(current4)) + { + var list2 = SectionInterpreter.OtherList[current4]; + foreach (var current5 in list2) + { + streamWriter.WriteLine(string.Concat("\t", current4, " = E \"", current5, "\"")); + } + } + } + streamWriter.WriteLine("}"); + new ArrayList(DifficultyWithNotes.Keys); + string[] array = + { + "Easy", + "Medium", + "Hard", + "Expert" + }; + for (var i = 0; i < array.Length; i++) + { + var str = array[i]; + string[] array2 = + { + "Single", + "Double" + }; + for (var j = 0; j < array2.Length; j++) + { + var str2 = array2[j]; + string[] array3 = + { + "Guitar", + "Rhythm" + }; + for (var k = 0; k < array3.Length; k++) + { + var str3 = array3[k]; + if (DifficultyWithNotes.ContainsKey(str + str2 + str3)) + { + var text = str + str2 + str3; + var @class = DifficultyWithNotes[text]; + streamWriter.WriteLine("[" + text + "]"); + streamWriter.WriteLine("{"); + list = new List(@class.NoteList.Keys); + foreach (var current6 in @class.Class2282.Keys) + { + if (!list.Contains(current6)) + { + list.Add(current6); + } + } + foreach (var current7 in @class.Class2283.Keys) + { + if (!list.Contains(current7)) + { + list.Add(current7); + } + } + foreach (var current8 in @class.Class2281.Keys) + { + if (!list.Contains(current8)) + { + list.Add(current8); + } + } + foreach (var current9 in @class.Class2284.Keys) + { + if (!list.Contains(current9)) + { + list.Add(current9); + } + } + foreach (var current10 in @class.Class2285.Keys) + { + if (!list.Contains(current10)) + { + list.Add(current10); + } + } + foreach (var current11 in @class.Class2286.Keys) + { + if (!list.Contains(current11)) + { + list.Add(current11); + } + } + foreach (var current12 in @class.EventList.Keys) + { + if (!list.Contains(current12)) + { + list.Add(current12); + } + } + list.Sort(); + foreach (var current13 in list) + { + if (@class.EventList.ContainsKey(current13)) + { + var list2 = @class.EventList[current13]; + foreach (var current14 in list2) + { + streamWriter.WriteLine(string.Concat("\t", current13, " = E ", current14)); + } + } + if (@class.NoteList.ContainsKey(current13)) + { + var class2 = @class.NoteList[current13]; + for (var l = 0; l < class2.NoteValues.Length; l++) + { + if (class2.NoteValues[l]) + { + streamWriter.WriteLine(string.Concat("\t", current13, " = N ", l, " ", + class2.SustainLength)); + } + } + } + if (@class.Class2282.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 0 ", @class.Class2282[current13])); + } + if (@class.Class2283.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 1 ", @class.Class2283[current13])); + } + if (@class.Class2281.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 2 ", @class.Class2281[current13])); + } + if (@class.Class2284.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 3 ", @class.Class2284[current13])); + } + if (@class.Class2285.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 4 ", @class.Class2285[current13])); + } + if (@class.Class2286.ContainsKey(current13)) + { + streamWriter.WriteLine( + string.Concat("\t", current13, " = S 5 ", @class.Class2286[current13])); + } + } + streamWriter.WriteLine("}"); + } + } + } + array2 = new[] + { + "Drums", + "Keyboard" + }; + for (var j = 0; j < array2.Length; j++) + { + var str4 = array2[j]; + if (InstrumentList.ContainsKey(str + str4)) + { + var text2 = str + str4; + var class3 = InstrumentList[text2]; + streamWriter.WriteLine("[" + text2 + "]"); + streamWriter.WriteLine("{"); + list = new List(class3.Keys); + list.Sort(); + foreach (var current15 in list) + { + foreach (var current16 in class3[current15]) + { + streamWriter.WriteLine(string.Concat("\t", current15, " = E ", current16)); + } + } + streamWriter.WriteLine("}"); + } + } + } + streamWriter.Close(); + } - private int CalculateOffset(int offsetInMs) - { - var bpmIndex = BpmInterpreter.BpmList.method_1(offsetInMs); - var test = Convert.ToInt32(125000m * (_bpmMsTracker[bpmIndex] + (offsetInMs - (decimal)BpmInterpreter.BpmList.Keys[bpmIndex]) / BpmInterpreter.BpmList.Values[bpmIndex])); + private int CalculateOffset(int offsetInMs) + { + var bpmIndex = BpmInterpreter.BpmList.method_1(offsetInMs); + var test = Convert.ToInt32(125000m * (_bpmMsTracker[bpmIndex] + + (offsetInMs - (decimal) BpmInterpreter.BpmList.Keys[bpmIndex]) / + BpmInterpreter.BpmList.Values[bpmIndex])); return test; } - public QbcParser ConvertToQbc() - { + public QbcParser ConvertToQbc() + { var @class = new QbcParser(Gh3SongInfo); - Track track = null; - Track class3 = null; - var largestOffset = 0; + Track track = null; + Track class3 = null; + var largestOffset = 0; //Checks if there are any difficulties if (DifficultyWithNotes.Count == 0) - { - throw new Exception("Chart file is empty and cannot be parsed to QB."); - } + { + throw new Exception("Chart file is empty and cannot be parsed to QB."); + } //Finds the largest offset foreach (var notes in DifficultyWithNotes.Values) - { - largestOffset = Math.Max(largestOffset, notes.NoteList.Keys[notes.NoteList.Count - 1] + notes.NoteList.Values[notes.NoteList.Count - 1].SustainLength); - } - largestOffset = ((SectionInterpreter.OtherList.Count == 0) ? largestOffset : Math.Max(largestOffset, SectionInterpreter.OtherList.Keys[SectionInterpreter.OtherList.Count - 1])); - _bpmMsTracker = new Track(); - _bpmMsTracker.Add(0, 0m); + { + largestOffset = Math.Max(largestOffset, + notes.NoteList.Keys[notes.NoteList.Count - 1] + + notes.NoteList.Values[notes.NoteList.Count - 1].SustainLength); + } + largestOffset = ((SectionInterpreter.OtherList.Count == 0) + ? largestOffset + : Math.Max(largestOffset, SectionInterpreter.OtherList.Keys[SectionInterpreter.OtherList.Count - 1])); + _bpmMsTracker = new Track(); + _bpmMsTracker.Add(0, 0m); //Adds BPMS to local list - for (var i = 1; i < BpmInterpreter.BpmList.Count; i++) - { - _bpmMsTracker.Add(i, _bpmMsTracker[i - 1] + (BpmInterpreter.BpmList.Keys[i] - BpmInterpreter.BpmList.Keys[i - 1]) / (decimal)BpmInterpreter.BpmList.Values[i - 1]); + for (var i = 1; i < BpmInterpreter.BpmList.Count; i++) + { + _bpmMsTracker.Add(i, + _bpmMsTracker[i - 1] + (BpmInterpreter.BpmList.Keys[i] - BpmInterpreter.BpmList.Keys[i - 1]) / + (decimal) BpmInterpreter.BpmList.Values[i - 1]); } - string[] array = { - "Single", - "Double" - }; + string[] array = + { + "Single", + "Double" + }; for (var j = 0; j < array.Length; j++) - { - var text = array[j]; - string[] array2 = { - "Guitar", - "Rhythm" - }; - for (var k = 0; k < array2.Length; k++) - { - var text2 = array2[k]; - string[] array3 = { - "Easy", - "Medium", - "Hard", - "Expert" - }; + { + var text = array[j]; + string[] array2 = + { + "Guitar", + "Rhythm" + }; + for (var k = 0; k < array2.Length; k++) + { + var text2 = array2[k]; + string[] array3 = + { + "Easy", + "Medium", + "Hard", + "Expert" + }; for (var l = 0; l < array3.Length; l++) - { - var text3 = array3[l]; - var difficulty = (text2.ToLower() + ((text == "Double") ? "coop" : "") + "_" + text3.ToLower()).Replace("guitar_", ""); - if (DifficultyWithNotes.ContainsKey(text3 + text + text2)) - { - var noteEventInterpreter = DifficultyWithNotes[text3 + text + text2]; + { + var text3 = array3[l]; + var difficulty = (text2.ToLower() + ((text == "Double") ? "coop" : "") + "_" + text3.ToLower()) + .Replace("guitar_", ""); + if (DifficultyWithNotes.ContainsKey(text3 + text + text2)) + { + var noteEventInterpreter = DifficultyWithNotes[text3 + text + text2]; if (noteEventInterpreter.NoteList.Count != 0) - { + { @class.NoteList.Add(difficulty, new Track()); method_4(@class.NoteList[difficulty], noteEventInterpreter.NoteList); } if (noteEventInterpreter.Class2281.Count != 0) - { + { @class.SpList.Add(difficulty, new Track()); - method_5(@class.SpList[difficulty], noteEventInterpreter.Class2281, noteEventInterpreter.NoteList); + method_5(@class.SpList[difficulty], noteEventInterpreter.Class2281, + noteEventInterpreter.NoteList); } if (noteEventInterpreter.Class2284.Count != 0) - { - @class.BattleNoteList.Add(difficulty, new Track()); - method_5(@class.BattleNoteList[difficulty], noteEventInterpreter.Class2284, noteEventInterpreter.NoteList); - } + { + @class.BattleNoteList.Add(difficulty, new Track()); + method_5(@class.BattleNoteList[difficulty], noteEventInterpreter.Class2284, + noteEventInterpreter.NoteList); + } if (track == null || track.Count < noteEventInterpreter.Class2282.Count) - { - track = noteEventInterpreter.Class2282; - } + { + track = noteEventInterpreter.Class2282; + } if (class3 == null || class3.Count < noteEventInterpreter.Class2283.Count) - { - class3 = noteEventInterpreter.Class2283; - } + { + class3 = noteEventInterpreter.Class2283; + } } } - } - } + } + } method_6(@class.Class2282, track); - method_6(@class.Class2283, class3); + method_6(@class.Class2283, class3); foreach (var current2 in BpmInterpreter.TsList.Keys) - { - @class.TsList.Add(CalculateOffset(current2), new[] - { - BpmInterpreter.TsList[current2], - 4 - }); - } - var num2 = (int)Math.Ceiling(largestOffset / (double)Constant480); + { + @class.TsList.Add(CalculateOffset(current2), new[] + { + BpmInterpreter.TsList[current2], + 4 + }); + } + var num2 = (int) Math.Ceiling(largestOffset / (double) Constant480); for (var m = 0; m <= num2; m++) - { - @class.FretbarList.method_1(CalculateOffset(m * Constant480)); - } + { + @class.FretbarList.method_1(CalculateOffset(m * Constant480)); + } @class.FretbarList[0] = @class.FretbarList[1] - 4; - @class.Int0 = 1; + @class.Int0 = 1; foreach (var current3 in SectionInterpreter.SectionList.Keys) - { - @class.Class2281.Add(CalculateOffset(current3), SectionInterpreter.SectionList[current3]); - } + { + @class.Class2281.Add(CalculateOffset(current3), SectionInterpreter.SectionList[current3]); + } _bpmMsTracker.Clear(); - _bpmMsTracker = null; - GC.Collect(); + _bpmMsTracker = null; + GC.Collect(); return @class; - } + } - private void method_4(Track class2281, Track class2282) - { - foreach (var current in class2282.Keys) - { - var num = CalculateOffset(current); - var int_ = (class2282[current].SustainLength == 0) ? 1 : (CalculateOffset(current + class2282[current].SustainLength) - num); - if (class2281.ContainsKey(num)) - { - for (var i = 0; i < 32; i++) - { - if (class2282[current].NoteValues[i]) - { - class2281[num].NoteValues[i] = true; - } - } - } - else - { - class2281.Add(num, new NotesAtOffset(class2282[current].NoteValues, int_)); - } - } - } + private void method_4(Track class2281, Track class2282) + { + foreach (var current in class2282.Keys) + { + var num = CalculateOffset(current); + var int_ = (class2282[current].SustainLength == 0) + ? 1 + : (CalculateOffset(current + class2282[current].SustainLength) - num); + if (class2281.ContainsKey(num)) + { + for (var i = 0; i < 32; i++) + { + if (class2282[current].NoteValues[i]) + { + class2281[num].NoteValues[i] = true; + } + } + } + else + { + class2281.Add(num, new NotesAtOffset(class2282[current].NoteValues, int_)); + } + } + } - private void method_5(Track difficulty, Track sp, Track notes) - { - foreach (var current in sp.Keys) - { + private void method_5(Track difficulty, Track sp, Track notes) + { + foreach (var current in sp.Keys) + { var num = CalculateOffset(current); var num2 = 0; if (sp[current] == 0) { num2 = 1; - } + } else { var num4 = 0; @@ -1056,25 +1111,25 @@ private void method_5(Track difficulty, Track sp, Track current) ? notes.Keys[notes.method_1(sp.Keys[sp.method_1(current + sp[current])] - 1)] : (current + sp[current])) - num); difficulty.Add(num, new[] - { - num2, - notes.method_3(current, current + sp[current]) - }); + { + num2, + notes.method_3(current, current + sp[current]) + }); } - } + } - private void method_6(Track class2281, Track class2282) - { - if (class2282 == null) - { - return; - } - foreach (var current in class2282.Keys) - { - var num = CalculateOffset(current); - var value = (class2282[current] == 0) ? 1 : (CalculateOffset(current + class2282[current]) - num); - class2281.Add(num, value); - } - } - } -} + private void method_6(Track class2281, Track class2282) + { + if (class2282 == null) + { + return; + } + foreach (var current in class2282.Keys) + { + var num = CalculateOffset(current); + var value = (class2282[current] == 0) ? 1 : (CalculateOffset(current + class2282[current]) - num); + class2281.Add(num, value); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class246.cs b/GHNamespace8/Class246.cs index 6fc00a3..04cb7bc 100644 --- a/GHNamespace8/Class246.cs +++ b/GHNamespace8/Class246.cs @@ -6,72 +6,73 @@ namespace GHNamespace8 { - public class Class246 : QbEditor - { - private readonly Gh3Songlist _gh3Songlist0; + public class Class246 : QbEditor + { + private readonly Gh3Songlist _gh3Songlist0; - private readonly ZzPakNode2 _class3180; + private readonly ZzPakNode2 _class3180; - private readonly string _string0; + private readonly string _string0; - private readonly int _int0; + private readonly int _int0; - private readonly bool _bool0; + private readonly bool _bool0; - public Class246(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) - { - _string0 = gh3Songlist1.Class2140.method_0(int1); - _int0 = int1; - _class3180 = class3181; - _gh3Songlist0 = gh3Songlist1; - _bool0 = bool1; - } + public Class246(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) + { + _string0 = gh3Songlist1.Class2140.method_0(int1); + _int0 = int1; + _class3180 = class3181; + _gh3Songlist0 = gh3Songlist1; + _bool0 = bool1; + } - public override void vmethod_0() - { - string text; - ZzGenericNode1 @class; - if (!_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb")) - { - _class3180.method_0(text, new ZzGenericNode1()); - @class = _class3180.ZzGetNode1(text); - @class.method_3(new IntegerRootNode("custom_setlist_bitmask", text, 0)); - } - else - { - @class = _class3180.ZzGetNode1(text); - } - if (_bool0) - { - @class.method_3(new StructurePointerRootNode(_int0, text, _gh3Songlist0.Dictionary1[_int0].method_1())); - @class.method_3(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0), text, _gh3Songlist0.method_11(_int0).method_6())); - } - else - { - try - { - @class.method_5(new StructurePointerRootNode(_int0)).Remove(); - @class.method_5(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0))).Remove(); - } - catch - { - } - _gh3Songlist0.CustomBitMask &= ~_gh3Songlist0.method_11(_int0).CustomBit; - _gh3Songlist0.Gh3SetlistList.Remove(_gh3Songlist0.method_10(_int0)); - _gh3Songlist0.Dictionary1.Remove(_int0); - _gh3Songlist0.Class2140.Remove(_gh3Songlist0.Class2140.method_0(_int0)); - } - @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_8(_gh3Songlist0.CustomBitMask); - } + public override void vmethod_0() + { + string text; + ZzGenericNode1 @class; + if (!_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb")) + { + _class3180.method_0(text, new ZzGenericNode1()); + @class = _class3180.ZzGetNode1(text); + @class.method_3(new IntegerRootNode("custom_setlist_bitmask", text, 0)); + } + else + { + @class = _class3180.ZzGetNode1(text); + } + if (_bool0) + { + @class.method_3(new StructurePointerRootNode(_int0, text, _gh3Songlist0.Dictionary1[_int0].method_1())); + @class.method_3(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0), text, + _gh3Songlist0.method_11(_int0).method_6())); + } + else + { + try + { + @class.method_5(new StructurePointerRootNode(_int0)).Remove(); + @class.method_5(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0))).Remove(); + } + catch + { + } + _gh3Songlist0.CustomBitMask &= ~_gh3Songlist0.method_11(_int0).CustomBit; + _gh3Songlist0.Gh3SetlistList.Remove(_gh3Songlist0.method_10(_int0)); + _gh3Songlist0.Dictionary1.Remove(_int0); + _gh3Songlist0.Class2140.Remove(_gh3Songlist0.Class2140.method_0(_int0)); + } + @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_8(_gh3Songlist0.CustomBitMask); + } - public override string ToString() - { - return (_bool0 ? "Create" : "Delete") + " Setlist: " + _string0; - } + public override string ToString() + { + return (_bool0 ? "Create" : "Delete") + " Setlist: " + _string0; + } - public override bool Equals(QbEditor other) - { - return other is Class246 && (other as Class246)._int0 == _int0; - } - } -} + public override bool Equals(QbEditor other) + { + return other is Class246 && (other as Class246)._int0 == _int0; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class247.cs b/GHNamespace8/Class247.cs index 66732c9..3d3b18b 100644 --- a/GHNamespace8/Class247.cs +++ b/GHNamespace8/Class247.cs @@ -5,32 +5,32 @@ namespace GHNamespace8 { - public class Class247 : QbEditor - { - private readonly Gh3Songlist _gh3Songlist0; + public class Class247 : QbEditor + { + private readonly Gh3Songlist _gh3Songlist0; - private readonly ZzPakNode2 _class3180; + private readonly ZzPakNode2 _class3180; - public Class247(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) - { - _class3180 = class3181; - _gh3Songlist0 = gh3Songlist1; - } + public Class247(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) + { + _class3180 = class3181; + _gh3Songlist0 = gh3Songlist1; + } - public override void vmethod_0() - { - ZzGenericNode1 class308 = _class3180.ZzGetNode1("scripts\\guitar\\songlist.qb"); - _gh3Songlist0.method_13(class308); - } + public override void vmethod_0() + { + ZzGenericNode1 class308 = _class3180.ZzGetNode1("scripts\\guitar\\songlist.qb"); + _gh3Songlist0.method_13(class308); + } - public override string ToString() - { - return "Update Songlist"; - } + public override string ToString() + { + return "Update Songlist"; + } - public override bool Equals(QbEditor other) - { - return other is Class247; - } - } -} + public override bool Equals(QbEditor other) + { + return other is Class247; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class248.cs b/GHNamespace8/Class248.cs index ac7b5b9..14ce8d4 100644 --- a/GHNamespace8/Class248.cs +++ b/GHNamespace8/Class248.cs @@ -12,193 +12,197 @@ namespace GHNamespace8 { - public class Class248 : QbEditor - { - private readonly ZzQbSongObject _class3230; - - public bool Bool0; - - public bool Bool1; - - private readonly string[] _string0; - - private readonly TimeSpan _timeSpan0; - - private readonly TimeSpan _timeSpan1; - - public string String1; - - private readonly string _string2; - - private readonly string _string3; - - public static bool Bool2; - - public static bool Bool3; - - public Class248(ZzQbSongObject class3231, string string4, string string5) - { - _class3230 = class3231; - String1 = _class3230.FileName; - _string3 = string4; - _string2 = string5; - var array = _class3230.String1; - for (var i = 0; i < array.Length; i++) - { - var text = array[i]; - if (text.Equals(_class3230.FileName + "_rhythm")) - { - Bool0 = true; - } - else if (text.Contains(_class3230.FileName + "_coop_")) - { - Bool1 = true; - } - } - } - - public Class248(string string4, string[] string5, TimeSpan timeSpan2, TimeSpan timeSpan3, string string6) - { - String1 = string4; - _string0 = string5; - _timeSpan0 = timeSpan2; - _timeSpan1 = timeSpan3; - _string2 = string6; - Bool0 = (_string0.Length > 2 && !_string0[2].Equals("")); - Bool1 = (_string0.Length == 6); - } - - public override void vmethod_0() - { - if (_class3230 != null) - { - KeyGenerator.WriteAllBytes(_string2 + "music\\" + String1 + ".dat.xen", _class3230.Data); - KeyGenerator.smethod_19(_string3, _string2 + "music\\" + String1 + ".fsb.xen", true); - } - else - { - var list = new List(); - var list2 = new List(); - GenericAudioStream stream3; - if (_string0.Length == 1) - { - Stream stream; - if (!Bool3 && AudioManager.smethod_1(_string0[0]) == AudioTypeEnum.Const1) - { - stream = File.OpenRead(_string0[0]); - } - else - { - stream = new Stream27(); - Stream16.smethod_0(AudioManager.GetAudioStream(_string0[0]), stream, 44100, 128); - } - stream.Position = 0L; - list.Add(String1 + "_song"); - list2.Add(stream); - list.Add(String1 + "_guitar"); - if (Bool2) - { - Stream stream2 = new Stream27(); - Stream16.smethod_1(stream2, AudioManager.smethod_2(_string0[0]), 128); - list2.Add(stream2); - } - else - { - list2.Add(stream); - } - stream3 = AudioManager.smethod_5(stream); - } - else - { - var list3 = new List(); - string[] array = { - "_song", - "_guitar", - "_rhythm", - "_coop_song", - "_coop_guitar", - "_coop_rhythm" - }; - for (var i = 0; i < _string0.Length; i++) - { - if (_string0[i] != null && !_string0[i].Equals("") && File.Exists(_string0[i])) - { - Stream stream4; - if (!Bool3 && AudioManager.smethod_1(_string0[i]) == AudioTypeEnum.Const1) - { - stream4 = File.OpenRead(_string0[i]); - } - else - { - stream4 = new Stream27(); - Stream16.smethod_0(AudioManager.GetAudioStream(_string0[i]), stream4, 44100, 128); - } - stream4.Position = 0L; - list.Add(String1 + array[i]); - list2.Add(stream4); - if ((_string0.Length == 6) ? (i >= 3) : (i < 3)) - { - list3.Add(AudioManager.smethod_5(stream4)); - } - } - } - stream3 = new Stream2(list3.ToArray()); - var num = 0f; - var stream5 = new Stream3(stream3, _timeSpan0, _timeSpan1); - var array2 = stream5.vmethod_5(100); - while (array2 != null && array2.Length > 0) - { - var array3 = array2; - for (var j = 0; j < array3.Length; j++) - { - var array4 = array3[j]; - var array5 = array4; - for (var k = 0; k < array5.Length; k++) - { - var value = array5[k]; - var num2 = Math.Abs(value); - if (num2 > num) - { - num = num2; - } - } - } - array2 = stream5.vmethod_5(100); - } - (stream3 as Stream2).method_0(new INterface5[] - { - new Class174(3, 1f / num) - }); - } - var waveFormat = stream3.vmethod_0(); - var t = new TimeSpan(0, 0, 1); - Stream stream6 = new Stream27(); - Stream16.smethod_0(new Stream2(new Stream3(stream3, _timeSpan0, _timeSpan1), new INterface5[] - { - new Class173(Class173.Enum26.Const0, new[] - { - new Struct11(0, waveFormat.method_1(t)) - }), - new Class173(Class173.Enum26.Const1, new[] - { - new Struct11(waveFormat.method_1(_timeSpan1 - _timeSpan0 - t), waveFormat.method_1(_timeSpan1 - _timeSpan0)) - }) - }), stream6, 44100, 128); - list.Add(String1 + "_preview"); - list2.Add(stream6); - new ZzQbSongObject((int)FsbClass3.smethod_0(_string2 + "music\\" + String1 + ".fsb.xen", list2.ToArray()), list.ToArray()).method_2(_string2 + "music\\" + String1 + ".dat.xen"); - } - GC.Collect(); - } - - public override string ToString() - { - return "Create Music Track: " + String1; - } - - public override bool Equals(QbEditor other) - { - return other is Class248 && (other as Class248).String1 == String1; - } - } -} + public class Class248 : QbEditor + { + private readonly ZzQbSongObject _class3230; + + public bool Bool0; + + public bool Bool1; + + private readonly string[] _string0; + + private readonly TimeSpan _timeSpan0; + + private readonly TimeSpan _timeSpan1; + + public string String1; + + private readonly string _string2; + + private readonly string _string3; + + public static bool Bool2; + + public static bool Bool3; + + public Class248(ZzQbSongObject class3231, string string4, string string5) + { + _class3230 = class3231; + String1 = _class3230.FileName; + _string3 = string4; + _string2 = string5; + var array = _class3230.String1; + for (var i = 0; i < array.Length; i++) + { + var text = array[i]; + if (text.Equals(_class3230.FileName + "_rhythm")) + { + Bool0 = true; + } + else if (text.Contains(_class3230.FileName + "_coop_")) + { + Bool1 = true; + } + } + } + + public Class248(string string4, string[] string5, TimeSpan timeSpan2, TimeSpan timeSpan3, string string6) + { + String1 = string4; + _string0 = string5; + _timeSpan0 = timeSpan2; + _timeSpan1 = timeSpan3; + _string2 = string6; + Bool0 = (_string0.Length > 2 && !_string0[2].Equals("")); + Bool1 = (_string0.Length == 6); + } + + public override void vmethod_0() + { + if (_class3230 != null) + { + KeyGenerator.WriteAllBytes(_string2 + "music\\" + String1 + ".dat.xen", _class3230.Data); + KeyGenerator.smethod_19(_string3, _string2 + "music\\" + String1 + ".fsb.xen", true); + } + else + { + var list = new List(); + var list2 = new List(); + GenericAudioStream stream3; + if (_string0.Length == 1) + { + Stream stream; + if (!Bool3 && AudioManager.smethod_1(_string0[0]) == AudioTypeEnum.Const1) + { + stream = File.OpenRead(_string0[0]); + } + else + { + stream = new Stream27(); + Stream16.smethod_0(AudioManager.GetAudioStream(_string0[0]), stream, 44100, 128); + } + stream.Position = 0L; + list.Add(String1 + "_song"); + list2.Add(stream); + list.Add(String1 + "_guitar"); + if (Bool2) + { + Stream stream2 = new Stream27(); + Stream16.smethod_1(stream2, AudioManager.smethod_2(_string0[0]), 128); + list2.Add(stream2); + } + else + { + list2.Add(stream); + } + stream3 = AudioManager.smethod_5(stream); + } + else + { + var list3 = new List(); + string[] array = + { + "_song", + "_guitar", + "_rhythm", + "_coop_song", + "_coop_guitar", + "_coop_rhythm" + }; + for (var i = 0; i < _string0.Length; i++) + { + if (_string0[i] != null && !_string0[i].Equals("") && File.Exists(_string0[i])) + { + Stream stream4; + if (!Bool3 && AudioManager.smethod_1(_string0[i]) == AudioTypeEnum.Const1) + { + stream4 = File.OpenRead(_string0[i]); + } + else + { + stream4 = new Stream27(); + Stream16.smethod_0(AudioManager.GetAudioStream(_string0[i]), stream4, 44100, 128); + } + stream4.Position = 0L; + list.Add(String1 + array[i]); + list2.Add(stream4); + if ((_string0.Length == 6) ? (i >= 3) : (i < 3)) + { + list3.Add(AudioManager.smethod_5(stream4)); + } + } + } + stream3 = new Stream2(list3.ToArray()); + var num = 0f; + var stream5 = new Stream3(stream3, _timeSpan0, _timeSpan1); + var array2 = stream5.vmethod_5(100); + while (array2 != null && array2.Length > 0) + { + var array3 = array2; + for (var j = 0; j < array3.Length; j++) + { + var array4 = array3[j]; + var array5 = array4; + for (var k = 0; k < array5.Length; k++) + { + var value = array5[k]; + var num2 = Math.Abs(value); + if (num2 > num) + { + num = num2; + } + } + } + array2 = stream5.vmethod_5(100); + } + (stream3 as Stream2).method_0(new INterface5[] + { + new Class174(3, 1f / num) + }); + } + var waveFormat = stream3.vmethod_0(); + var t = new TimeSpan(0, 0, 1); + Stream stream6 = new Stream27(); + Stream16.smethod_0(new Stream2(new Stream3(stream3, _timeSpan0, _timeSpan1), new INterface5[] + { + new Class173(Class173.Enum26.Const0, new[] + { + new Struct11(0, waveFormat.method_1(t)) + }), + new Class173(Class173.Enum26.Const1, new[] + { + new Struct11(waveFormat.method_1(_timeSpan1 - _timeSpan0 - t), + waveFormat.method_1(_timeSpan1 - _timeSpan0)) + }) + }), stream6, 44100, 128); + list.Add(String1 + "_preview"); + list2.Add(stream6); + new ZzQbSongObject( + (int) FsbClass3.smethod_0(_string2 + "music\\" + String1 + ".fsb.xen", list2.ToArray()), + list.ToArray()).method_2(_string2 + "music\\" + String1 + ".dat.xen"); + } + GC.Collect(); + } + + public override string ToString() + { + return "Create Music Track: " + String1; + } + + public override bool Equals(QbEditor other) + { + return other is Class248 && (other as Class248).String1 == String1; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class249.cs b/GHNamespace8/Class249.cs index 4e1ccae..6e824ca 100644 --- a/GHNamespace8/Class249.cs +++ b/GHNamespace8/Class249.cs @@ -7,47 +7,49 @@ namespace GHNamespace8 { - public class Class249 : QbEditor - { - private readonly ZzPakNode2 _class3180; + public class Class249 : QbEditor + { + private readonly ZzPakNode2 _class3180; - private bool _bool0; + private bool _bool0; - public Class249(ZzPakNode2 class3181) - { - _class3180 = class3181; - } + public Class249(ZzPakNode2 class3181) + { + _class3180 = class3181; + } - public override void vmethod_0() - { - Console.WriteLine("-=- " + ToString() + " -=-"); - ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_cheats.qb"); - foreach (var current in @class.method_5(new ArrayPointerRootNode("guitar_hero_cheats")).method_7().method_8()) - { - var flag = current.method_5(new TagStructureNode("name", "unlockall")) != null; - var flag2 = current.method_5(new TagStructureNode("name", "unlockalleverything")) != null; - var class2 = current.method_5(new ArrayPointerNode("unlock_pattern")).method_8() as IntegerArrayNode; - if (class2.Nodes.Count == 1) - { - _bool0 = true; - Console.WriteLine("QB Database is already edited."); - break; - } - class2.method_12(new[] - { - flag ? 4096 : (flag2 ? 256 : 65536) - }); - } - } + public override void vmethod_0() + { + Console.WriteLine("-=- " + ToString() + " -=-"); + ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_cheats.qb"); + foreach (var current in @class.method_5(new ArrayPointerRootNode("guitar_hero_cheats")) + .method_7() + .method_8()) + { + var flag = current.method_5(new TagStructureNode("name", "unlockall")) != null; + var flag2 = current.method_5(new TagStructureNode("name", "unlockalleverything")) != null; + var class2 = current.method_5(new ArrayPointerNode("unlock_pattern")).method_8() as IntegerArrayNode; + if (class2.Nodes.Count == 1) + { + _bool0 = true; + Console.WriteLine("QB Database is already edited."); + break; + } + class2.method_12(new[] + { + flag ? 4096 : (flag2 ? 256 : 65536) + }); + } + } - public override string ToString() - { - return "Modify Cheats"; - } + public override string ToString() + { + return "Modify Cheats"; + } - public override bool Equals(QbEditor other) - { - return other is Class249; - } - } -} + public override bool Equals(QbEditor other) + { + return other is Class249; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class250.cs b/GHNamespace8/Class250.cs index 77ce175..def9c09 100644 --- a/GHNamespace8/Class250.cs +++ b/GHNamespace8/Class250.cs @@ -4,41 +4,41 @@ namespace GHNamespace8 { - public class Class250 : QbEditor - { - public QbcParser Class3620; - - private ZzPakNode2 _class3180; - - private readonly string _string0; - - private readonly string _string1; - - public Class250(string string2, QbcParser class3621, ZzPakNode2 class3181, string string3) - { - _string0 = string2; - _class3180 = class3181; - Class3620 = class3621; - _string1 = string3; - } - - public override void vmethod_0() - { - using (var @class = new ZzPakNode2()) - { - @class.method_0("songs\\" + _string0 + ".mid.qb", Class3620.method_4(_string0)); - @class.method_16(_string1 + "songs\\" + _string0 + "_song.pak.xen"); - } - } - - public override string ToString() - { - return "Create Game Track: " + _string0; - } - - public override bool Equals(QbEditor other) - { - return other is Class250 && (other as Class250)._string0 == _string0; - } - } -} + public class Class250 : QbEditor + { + public QbcParser Class3620; + + private ZzPakNode2 _class3180; + + private readonly string _string0; + + private readonly string _string1; + + public Class250(string string2, QbcParser class3621, ZzPakNode2 class3181, string string3) + { + _string0 = string2; + _class3180 = class3181; + Class3620 = class3621; + _string1 = string3; + } + + public override void vmethod_0() + { + using (var @class = new ZzPakNode2()) + { + @class.method_0("songs\\" + _string0 + ".mid.qb", Class3620.method_4(_string0)); + @class.method_16(_string1 + "songs\\" + _string0 + "_song.pak.xen"); + } + } + + public override string ToString() + { + return "Create Game Track: " + _string0; + } + + public override bool Equals(QbEditor other) + { + return other is Class250 && (other as Class250)._string0 == _string0; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Class369.cs b/GHNamespace8/Class369.cs index 51bc1c5..ad03ffe 100644 --- a/GHNamespace8/Class369.cs +++ b/GHNamespace8/Class369.cs @@ -4,45 +4,45 @@ namespace GHNamespace8 { - [CompilerGenerated] - public class Class369 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] - public struct Struct94 - { - } + [CompilerGenerated] + public class Class369 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] + public struct Struct94 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 10)] - public struct Struct95 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 10)] + public struct Struct95 + { + } - public static Dictionary Dictionary0; + public static Dictionary Dictionary0; - public static Dictionary Dictionary1; + public static Dictionary Dictionary1; - public static Struct94 Struct940; + public static Struct94 Struct940; - public static Struct94 Struct941; + public static Struct94 Struct941; - public static Struct94 Struct942; + public static Struct94 Struct942; - public static Struct94 Struct943; + public static Struct94 Struct943; - public static Struct94 Struct944; + public static Struct94 Struct944; - public static Struct94 Struct945; + public static Struct94 Struct945; - public static Struct94 Struct946; + public static Struct94 Struct946; - public static Struct94 Struct947; + public static Struct94 Struct947; - public static Struct95 Struct950; + public static Struct95 Struct950; - public static Struct94 Struct948; + public static Struct94 Struct948; - public static Dictionary Dictionary2; + public static Dictionary Dictionary2; - public static Struct94 Struct949; - } -} + public static Struct94 Struct949; + } +} \ No newline at end of file diff --git a/GHNamespace8/Disclaimer.cs b/GHNamespace8/Disclaimer.cs index 8ee110b..838f802 100644 --- a/GHNamespace8/Disclaimer.cs +++ b/GHNamespace8/Disclaimer.cs @@ -5,131 +5,131 @@ namespace GHNamespace8 { - public class Disclaimer : Form - { - private IContainer icontainer_0; + public class Disclaimer : Form + { + private IContainer icontainer_0; - private RichTextBox _richTextBox1; + private RichTextBox _richTextBox1; - private Button _acceptBtn; + private Button _acceptBtn; - private TableLayoutPanel _tableLayoutPanel1; + private TableLayoutPanel _tableLayoutPanel1; - private TableLayoutPanel _btnLayoutPanel; + private TableLayoutPanel _btnLayoutPanel; - private Button _cancelBtn; + private Button _cancelBtn; - private Timer _timer0; + private Timer _timer0; - private int _int0 = 3; + private int _int0 = 3; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } - private void InitializeComponent() - { - icontainer_0 = new Container(); - var componentResourceManager = new ComponentResourceManager(typeof(Disclaimer)); - _richTextBox1 = new RichTextBox(); - _acceptBtn = new Button(); - _tableLayoutPanel1 = new TableLayoutPanel(); - _btnLayoutPanel = new TableLayoutPanel(); - _cancelBtn = new Button(); - _timer0 = new Timer(icontainer_0); - _tableLayoutPanel1.SuspendLayout(); - _btnLayoutPanel.SuspendLayout(); - SuspendLayout(); - _richTextBox1.Dock = DockStyle.Fill; - _richTextBox1.Location = new Point(3, 3); - _richTextBox1.Name = "_richTextBox1"; - _richTextBox1.ReadOnly = true; - _richTextBox1.Size = new Size(402, 267); - _richTextBox1.TabIndex = 0; - _richTextBox1.Text = componentResourceManager.GetString("richTextBox1.Text"); - _acceptBtn.DialogResult = DialogResult.OK; - _acceptBtn.Dock = DockStyle.Fill; - _acceptBtn.Location = new Point(3, 3); - _acceptBtn.Name = "_acceptBtn"; - _acceptBtn.Size = new Size(198, 25); - _acceptBtn.TabIndex = 1; - _acceptBtn.Text = "I ACCEPT"; + private void InitializeComponent() + { + icontainer_0 = new Container(); + var componentResourceManager = new ComponentResourceManager(typeof(Disclaimer)); + _richTextBox1 = new RichTextBox(); + _acceptBtn = new Button(); + _tableLayoutPanel1 = new TableLayoutPanel(); + _btnLayoutPanel = new TableLayoutPanel(); + _cancelBtn = new Button(); + _timer0 = new Timer(icontainer_0); + _tableLayoutPanel1.SuspendLayout(); + _btnLayoutPanel.SuspendLayout(); + SuspendLayout(); + _richTextBox1.Dock = DockStyle.Fill; + _richTextBox1.Location = new Point(3, 3); + _richTextBox1.Name = "_richTextBox1"; + _richTextBox1.ReadOnly = true; + _richTextBox1.Size = new Size(402, 267); + _richTextBox1.TabIndex = 0; + _richTextBox1.Text = componentResourceManager.GetString("richTextBox1.Text"); + _acceptBtn.DialogResult = DialogResult.OK; + _acceptBtn.Dock = DockStyle.Fill; + _acceptBtn.Location = new Point(3, 3); + _acceptBtn.Name = "_acceptBtn"; + _acceptBtn.Size = new Size(198, 25); + _acceptBtn.TabIndex = 1; + _acceptBtn.Text = "I ACCEPT"; _acceptBtn.Enabled = true; - _acceptBtn.UseVisualStyleBackColor = true; - _tableLayoutPanel1.ColumnCount = 1; - _tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); - _tableLayoutPanel1.Controls.Add(_btnLayoutPanel, 0, 1); - _tableLayoutPanel1.Controls.Add(_richTextBox1, 0, 0); - _tableLayoutPanel1.Dock = DockStyle.Fill; - _tableLayoutPanel1.Location = new Point(0, 0); - _tableLayoutPanel1.Margin = new Padding(0); - _tableLayoutPanel1.Name = "_tableLayoutPanel1"; - _tableLayoutPanel1.RowCount = 2; - _tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 89.83402f)); - _tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.16598f)); - _tableLayoutPanel1.Size = new Size(408, 304); - _tableLayoutPanel1.TabIndex = 2; - _btnLayoutPanel.ColumnCount = 2; - _btnLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); - _btnLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); - _btnLayoutPanel.Controls.Add(_cancelBtn, 1, 0); - _btnLayoutPanel.Controls.Add(_acceptBtn, 0, 0); - _btnLayoutPanel.Dock = DockStyle.Fill; - _btnLayoutPanel.Location = new Point(0, 273); - _btnLayoutPanel.Margin = new Padding(0); - _btnLayoutPanel.Name = "_btnLayoutPanel"; - _btnLayoutPanel.RowCount = 1; - _btnLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f)); - _btnLayoutPanel.Size = new Size(408, 31); - _btnLayoutPanel.TabIndex = 0; - _cancelBtn.DialogResult = DialogResult.Cancel; - _cancelBtn.Dock = DockStyle.Fill; - _cancelBtn.Location = new Point(207, 3); - _cancelBtn.Name = "_cancelBtn"; - _cancelBtn.Size = new Size(198, 25); - _cancelBtn.TabIndex = 2; - _cancelBtn.Text = "I DONT ACCEPT"; - _cancelBtn.UseVisualStyleBackColor = true; - _timer0.Interval = 1000; - _timer0.Tick += timer_0_Tick; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(408, 304); - Controls.Add(_tableLayoutPanel1); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - Name = "Disclaimer"; - Text = "User Agreement & Disclaimer"; - TopMost = true; - _tableLayoutPanel1.ResumeLayout(false); - _btnLayoutPanel.ResumeLayout(false); - ResumeLayout(false); - } + _acceptBtn.UseVisualStyleBackColor = true; + _tableLayoutPanel1.ColumnCount = 1; + _tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); + _tableLayoutPanel1.Controls.Add(_btnLayoutPanel, 0, 1); + _tableLayoutPanel1.Controls.Add(_richTextBox1, 0, 0); + _tableLayoutPanel1.Dock = DockStyle.Fill; + _tableLayoutPanel1.Location = new Point(0, 0); + _tableLayoutPanel1.Margin = new Padding(0); + _tableLayoutPanel1.Name = "_tableLayoutPanel1"; + _tableLayoutPanel1.RowCount = 2; + _tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 89.83402f)); + _tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 10.16598f)); + _tableLayoutPanel1.Size = new Size(408, 304); + _tableLayoutPanel1.TabIndex = 2; + _btnLayoutPanel.ColumnCount = 2; + _btnLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); + _btnLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f)); + _btnLayoutPanel.Controls.Add(_cancelBtn, 1, 0); + _btnLayoutPanel.Controls.Add(_acceptBtn, 0, 0); + _btnLayoutPanel.Dock = DockStyle.Fill; + _btnLayoutPanel.Location = new Point(0, 273); + _btnLayoutPanel.Margin = new Padding(0); + _btnLayoutPanel.Name = "_btnLayoutPanel"; + _btnLayoutPanel.RowCount = 1; + _btnLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f)); + _btnLayoutPanel.Size = new Size(408, 31); + _btnLayoutPanel.TabIndex = 0; + _cancelBtn.DialogResult = DialogResult.Cancel; + _cancelBtn.Dock = DockStyle.Fill; + _cancelBtn.Location = new Point(207, 3); + _cancelBtn.Name = "_cancelBtn"; + _cancelBtn.Size = new Size(198, 25); + _cancelBtn.TabIndex = 2; + _cancelBtn.Text = "I DONT ACCEPT"; + _cancelBtn.UseVisualStyleBackColor = true; + _timer0.Interval = 1000; + _timer0.Tick += timer_0_Tick; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(408, 304); + Controls.Add(_tableLayoutPanel1); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + Name = "Disclaimer"; + Text = "User Agreement & Disclaimer"; + TopMost = true; + _tableLayoutPanel1.ResumeLayout(false); + _btnLayoutPanel.ResumeLayout(false); + ResumeLayout(false); + } - public Disclaimer() - { - InitializeComponent(); - _acceptBtn.Enabled = true; - _acceptBtn.Text = "I ACCEPT"; - //this.timer_0.Enabled = true; - //this.timer_0.Start(); - } + public Disclaimer() + { + InitializeComponent(); + _acceptBtn.Enabled = true; + _acceptBtn.Text = "I ACCEPT"; + //this.timer_0.Enabled = true; + //this.timer_0.Start(); + } - private void timer_0_Tick(object sender, EventArgs e) - { - if (--_int0 > 0) - { - _acceptBtn.Text = "Read Agreement First! (" + _int0 + ")"; - return; - } - _timer0.Stop(); - _timer0.Enabled = false; - _acceptBtn.Enabled = true; - _acceptBtn.Text = "I ACCEPT"; - } - } -} + private void timer_0_Tick(object sender, EventArgs e) + { + if (--_int0 > 0) + { + _acceptBtn.Text = "Read Agreement First! (" + _int0 + ")"; + return; + } + _timer0.Stop(); + _timer0.Enabled = false; + _acceptBtn.Enabled = true; + _acceptBtn.Text = "I ACCEPT"; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/InstrumentType.cs b/GHNamespace8/InstrumentType.cs index f011c33..7787ca4 100644 --- a/GHNamespace8/InstrumentType.cs +++ b/GHNamespace8/InstrumentType.cs @@ -4,43 +4,43 @@ namespace GHNamespace8 { - public class InstrumentType : Track> - { - public InstrumentType() - { - } + public class InstrumentType : Track> + { + public InstrumentType() + { + } - public InstrumentType(string[] string0) : this() - { - if (string0.Length != 0) - { - for (var i = 0; i < string0.Length; i++) - { - var text = string0[i]; - var array = text.Split(new[] - { - ' ', - '\t', - '=', - '"', - 'E' - }, StringSplitOptions.RemoveEmptyEntries); + public InstrumentType(string[] string0) : this() + { + if (string0.Length != 0) + { + for (var i = 0; i < string0.Length; i++) + { + var text = string0[i]; + var array = text.Split(new[] + { + ' ', + '\t', + '=', + '"', + 'E' + }, StringSplitOptions.RemoveEmptyEntries); method_5(ChartParser.GetNoteFromResolution(array[0]), array[1]); - } - } - } + } + } + } - public void method_5(int int0, string string0) - { - if (ContainsKey(int0)) - { - base[int0].Add(string0); - return; - } - Add(int0, new List(new[] - { - string0 - })); - } - } -} + public void method_5(int int0, string string0) + { + if (ContainsKey(int0)) + { + base[int0].Add(string0); + return; + } + Add(int0, new List(new[] + { + string0 + })); + } + } +} \ No newline at end of file diff --git a/GHNamespace8/Interface16.cs b/GHNamespace8/Interface16.cs index 6aca617..4d9db5c 100644 --- a/GHNamespace8/Interface16.cs +++ b/GHNamespace8/Interface16.cs @@ -1,6 +1,6 @@ namespace GHNamespace8 { - public interface INterface16 - { - } -} + public interface INterface16 + { + } +} \ No newline at end of file diff --git a/GHNamespace8/LoadGameSettings.cs b/GHNamespace8/LoadGameSettings.cs index e50b16f..124f346 100644 --- a/GHNamespace8/LoadGameSettings.cs +++ b/GHNamespace8/LoadGameSettings.cs @@ -5,134 +5,134 @@ namespace GHNamespace8 { - public class LoadGameSettings : Form - { - private IContainer icontainer_0; + public class LoadGameSettings : Form + { + private IContainer icontainer_0; - private ListBox _listQb; + private ListBox _listQb; - private Button _okBtn; + private Button _okBtn; - private Button _cancelBtn; + private Button _cancelBtn; - private TextBox _editBox; + private TextBox _editBox; - private int _int0 = -1; + private int _int0 = -1; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - _listQb = new ListBox(); - _okBtn = new Button(); - _cancelBtn = new Button(); - _editBox = new TextBox(); - SuspendLayout(); - _listQb.FormattingEnabled = true; - _listQb.Location = new Point(12, 12); - _listQb.Name = "_listQb"; - _listQb.Size = new Size(204, 82); - _listQb.TabIndex = 0; - _listQb.SelectedIndexChanged += listQB_SelectedIndexChanged; - _listQb.DoubleClick += listQB_DoubleClick; - _okBtn.DialogResult = DialogResult.OK; - _okBtn.Enabled = false; - _okBtn.Location = new Point(12, 100); - _okBtn.Name = "_okBtn"; - _okBtn.Size = new Size(75, 23); - _okBtn.TabIndex = 1; - _okBtn.Text = "OK"; - _okBtn.UseVisualStyleBackColor = true; - _cancelBtn.DialogResult = DialogResult.Cancel; - _cancelBtn.Location = new Point(141, 100); - _cancelBtn.Name = "_cancelBtn"; - _cancelBtn.Size = new Size(75, 23); - _cancelBtn.TabIndex = 2; - _cancelBtn.Text = "Cancel"; - _cancelBtn.UseVisualStyleBackColor = true; - _editBox.BorderStyle = BorderStyle.FixedSingle; - _editBox.Location = new Point(28, 12); - _editBox.Name = "_editBox"; - _editBox.Size = new Size(168, 20); - _editBox.TabIndex = 3; - _editBox.Visible = false; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(228, 133); - Controls.Add(_editBox); - Controls.Add(_cancelBtn); - Controls.Add(_okBtn); - Controls.Add(_listQb); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - MaximizeBox = false; - MinimizeBox = false; - Name = "LoadGameSettings"; - Text = "Choose which game settings to load."; - ResumeLayout(false); - PerformLayout(); - } - - public LoadGameSettings(string[] string0) - { - InitializeComponent(); - method_1(string0); - } - - private void listQB_DoubleClick(object sender, EventArgs e) - { - method_0(); - } - - private void method_0() - { - _int0 = _listQb.SelectedIndex; - if (_int0 < 0) - { - return; - } - var itemRectangle = _listQb.GetItemRectangle(_int0); - var text = (string)_listQb.Items[_int0]; - _editBox.Location = new Point(itemRectangle.X + 30, itemRectangle.Y + 10); - _editBox.Show(); - _editBox.Text = text; - _editBox.Focus(); - _editBox.SelectAll(); - _editBox.LostFocus += editBox_LostFocus; - } - - private void editBox_LostFocus(object sender, EventArgs e) - { - _listQb.Items[_int0] = _editBox.Text; - _editBox.Hide(); - } - - public void method_1(string[] string0) - { - _listQb.Items.AddRange(string0); - } - - public string[] method_2() - { - var array = new string[_listQb.Items.Count]; - _listQb.Items.CopyTo(array, 0); - return array; - } - - public int method_3() - { - return _listQb.SelectedIndex; - } - - private void listQB_SelectedIndexChanged(object sender, EventArgs e) - { - _okBtn.Enabled = (_listQb.SelectedIndex > -1); - } - } -} + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + _listQb = new ListBox(); + _okBtn = new Button(); + _cancelBtn = new Button(); + _editBox = new TextBox(); + SuspendLayout(); + _listQb.FormattingEnabled = true; + _listQb.Location = new Point(12, 12); + _listQb.Name = "_listQb"; + _listQb.Size = new Size(204, 82); + _listQb.TabIndex = 0; + _listQb.SelectedIndexChanged += listQB_SelectedIndexChanged; + _listQb.DoubleClick += listQB_DoubleClick; + _okBtn.DialogResult = DialogResult.OK; + _okBtn.Enabled = false; + _okBtn.Location = new Point(12, 100); + _okBtn.Name = "_okBtn"; + _okBtn.Size = new Size(75, 23); + _okBtn.TabIndex = 1; + _okBtn.Text = "OK"; + _okBtn.UseVisualStyleBackColor = true; + _cancelBtn.DialogResult = DialogResult.Cancel; + _cancelBtn.Location = new Point(141, 100); + _cancelBtn.Name = "_cancelBtn"; + _cancelBtn.Size = new Size(75, 23); + _cancelBtn.TabIndex = 2; + _cancelBtn.Text = "Cancel"; + _cancelBtn.UseVisualStyleBackColor = true; + _editBox.BorderStyle = BorderStyle.FixedSingle; + _editBox.Location = new Point(28, 12); + _editBox.Name = "_editBox"; + _editBox.Size = new Size(168, 20); + _editBox.TabIndex = 3; + _editBox.Visible = false; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(228, 133); + Controls.Add(_editBox); + Controls.Add(_cancelBtn); + Controls.Add(_okBtn); + Controls.Add(_listQb); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + MaximizeBox = false; + MinimizeBox = false; + Name = "LoadGameSettings"; + Text = "Choose which game settings to load."; + ResumeLayout(false); + PerformLayout(); + } + + public LoadGameSettings(string[] string0) + { + InitializeComponent(); + method_1(string0); + } + + private void listQB_DoubleClick(object sender, EventArgs e) + { + method_0(); + } + + private void method_0() + { + _int0 = _listQb.SelectedIndex; + if (_int0 < 0) + { + return; + } + var itemRectangle = _listQb.GetItemRectangle(_int0); + var text = (string) _listQb.Items[_int0]; + _editBox.Location = new Point(itemRectangle.X + 30, itemRectangle.Y + 10); + _editBox.Show(); + _editBox.Text = text; + _editBox.Focus(); + _editBox.SelectAll(); + _editBox.LostFocus += editBox_LostFocus; + } + + private void editBox_LostFocus(object sender, EventArgs e) + { + _listQb.Items[_int0] = _editBox.Text; + _editBox.Hide(); + } + + public void method_1(string[] string0) + { + _listQb.Items.AddRange(string0); + } + + public string[] method_2() + { + var array = new string[_listQb.Items.Count]; + _listQb.Items.CopyTo(array, 0); + return array; + } + + public int method_3() + { + return _listQb.SelectedIndex; + } + + private void listQB_SelectedIndexChanged(object sender, EventArgs e) + { + _okBtn.Enabled = (_listQb.SelectedIndex > -1); + } + } +} \ No newline at end of file diff --git a/GHNamespace8/MIDIParser.cs b/GHNamespace8/MIDIParser.cs index fe1389c..0042062 100644 --- a/GHNamespace8/MIDIParser.cs +++ b/GHNamespace8/MIDIParser.cs @@ -6,520 +6,521 @@ namespace GHNamespace8 { - public class MidiParser - { - private readonly string _fileLocation; + public class MidiParser + { + private readonly string _fileLocation; - private readonly NoteEventInterpreter _expertSingle = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _expertSingle = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _hardSingle = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _hardSingle = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _mediumSingle = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _mediumSingle = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _easySingle = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _easySingle = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _expertDoubleGuitar = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _expertDoubleGuitar = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _hardDoubleGuitar = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _hardDoubleGuitar = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _mediumDoubleGuitar = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _mediumDoubleGuitar = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _easyDoubleGuitar = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _easyDoubleGuitar = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _expertDoubleBass = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _expertDoubleBass = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _hardDoubleBass = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _hardDoubleBass = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _mediumDoubleBass = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _mediumDoubleBass = new NoteEventInterpreter(); - private readonly NoteEventInterpreter _easyDoubleBass = new NoteEventInterpreter(); + private readonly NoteEventInterpreter _easyDoubleBass = new NoteEventInterpreter(); - private readonly InstrumentType _expertDrums = new InstrumentType(); + private readonly InstrumentType _expertDrums = new InstrumentType(); - private readonly InstrumentType _hardDrums = new InstrumentType(); - - private readonly InstrumentType _mediumDrums = new InstrumentType(); - - private readonly InstrumentType _easyDrums = new InstrumentType(); - - private readonly InstrumentType _expertKeyboard = new InstrumentType(); - - private readonly InstrumentType _hardKeyboard = new InstrumentType(); - - private readonly InstrumentType _mediumKeyboard = new InstrumentType(); - - private readonly InstrumentType _easyKeyboard = new InstrumentType(); - - private BpmInterpreter _bpmInterpreter; - - private SectionInterpreter _sectionInterpreter; - - private string _songTitle = ""; - - private double _resolution; - - private bool _isPartGuitar; - - private bool _isEvents; - - private bool _notBass; - - private bool _bool3; - - private MidiReader _midiReader; - - private readonly List _uselessEvents = new List(); - - public MidiParser(string fileLocation) - { - _fileLocation = fileLocation; - } - - public ChartParser LoadMidi() - { - var name = ""; - name = name + new FileInfo(_fileLocation).Name + ":\n"; - try - { - _midiReader = MidiReader.smethod_0(_fileLocation); - } - catch (Exception) - { - throw new IOException(name + "Unknown Error: Could not parse MIDI sequence."); - } - foreach (var current in _midiReader.GetMidiLineList()) - { - if (current.method_2().Equals("PART GUITAR")) - { - _isPartGuitar = true; - } - else if (current.method_2().Equals("EVENTS")) - { - _isEvents = true; - } - } - if (_midiReader.GetMidiLineList().Count == 1 && !_isPartGuitar) - { - _midiReader.GetMidiLineList()[0].method_3("PART GUITAR"); - _isPartGuitar = true; - } - if (!_isPartGuitar) - { - throw new IOException(name + "PART GUITAR not found. No chart created."); - } - var chartParser = new ChartParser(); - _bpmInterpreter = chartParser.BpmInterpreter; - _sectionInterpreter = chartParser.SectionInterpreter; - chartParser.DifficultyWithNotes.Add("EasySingle", _easySingle); - chartParser.DifficultyWithNotes.Add("MediumSingle", _mediumSingle); - chartParser.DifficultyWithNotes.Add("HardSingle", _hardSingle); - chartParser.DifficultyWithNotes.Add("ExpertSingle", _expertSingle); - chartParser.DifficultyWithNotes.Add("EasyDoubleGuitar", _easyDoubleGuitar); - chartParser.DifficultyWithNotes.Add("MediumDoubleGuitar", _mediumDoubleGuitar); - chartParser.DifficultyWithNotes.Add("HardDoubleGuitar", _hardDoubleGuitar); - chartParser.DifficultyWithNotes.Add("ExpertDoubleGuitar", _expertDoubleGuitar); - chartParser.DifficultyWithNotes.Add("EasyDoubleBass", _easyDoubleBass); - chartParser.DifficultyWithNotes.Add("MediumDoubleBass", _mediumDoubleBass); - chartParser.DifficultyWithNotes.Add("HardDoubleBass", _hardDoubleBass); - chartParser.DifficultyWithNotes.Add("ExpertDoubleBass", _expertDoubleBass); - chartParser.InstrumentList.Add("EasyDrums", _easyDrums); - chartParser.InstrumentList.Add("MediumDrums", _mediumDrums); - chartParser.InstrumentList.Add("HardDrums", _hardDrums); - chartParser.InstrumentList.Add("ExpertDrums", _expertDrums); - chartParser.InstrumentList.Add("EasyKeyboard", _easyKeyboard); - chartParser.InstrumentList.Add("MediumKeyboard", _mediumKeyboard); - chartParser.InstrumentList.Add("HardKeyboard", _hardKeyboard); - chartParser.InstrumentList.Add("ExpertKeyboard", _expertKeyboard); - chartParser.Constant480 = 480; - _resolution = 480.0 / _midiReader.method_0(); - object obj = name; - name = string.Concat(obj, "NumTracks = ", _midiReader.GetMidiLineList().Count, "\n"); - method_1(_midiReader.GetMidiLineList()[0]); - foreach (var midiLine in _midiReader.GetMidiLineList()) - { - if (midiLine.method_2().Equals("PART GUITAR")) - { - GetNotes(midiLine, 0); - } - else if (midiLine.method_2().Equals("T1 GEMS")) - { - GetNotes(midiLine, 0); - } - else if (midiLine.method_2().Equals("PART GUITAR COOP")) - { - GetNotes(midiLine, 1); - } - else if (midiLine.method_2().Equals("PART RHYTHM")) - { - _notBass = true; - GetNotes(midiLine, 3); - } - else if (midiLine.method_2().Equals("PART BASS")) - { - GetNotes(midiLine, 3); - } - else if (midiLine.method_2().Equals("EVENTS")) - { - GetNotes(midiLine, 4); - } - else if (midiLine.method_2().Equals("BAND DRUMS")) - { - GetNotes(midiLine, 5); - } - else if (midiLine.method_2().Equals("BAND KEYS")) - { - GetNotes(midiLine, 7); - } - else - { - name = name + "Track (" + midiLine.method_2() + ") ignored.\n"; - } - } - chartParser.Gh3SongInfo.Title = _songTitle; - chartParser.Gh3SongInfo.NotBass = _notBass; - name += "Conversion Complete!"; - Console.WriteLine(name); - chartParser.RemoveEmptyParts(); - return chartParser; - } - - private void method_1(MidiLine class3530) - { - _songTitle = class3530.method_2(); - foreach (var current in class3530.method_0()) - { - var num = Convert.ToInt32(current.method_0() * _resolution); - if (current is ZzNote1) - { - var @class = (ZzNote1)current; - if (!_isEvents && @class.method_2() == ZzNote1.Enum37.Const0) - { - method_4(4, num, "section " + @class.method_1()); - } - } - else if (current is BpmNote1) - { - var num2 = ((BpmNote1)current).method_1(); - _bpmInterpreter.BpmList.Add(num, Convert.ToInt32(Math.Floor(60000000.0 / num2 * 1000.0))); - } - else if (current is ZzNote338) - { - _bpmInterpreter.TsList.Add(num, ((ZzNote338)current).method_1()); - } - } - } - - private void GetNotes(MidiLine midiLine, int difficulty) - { - var array = new bool[midiLine.method_0().Count]; - var list = midiLine.method_0(); - for (var i = 0; i < list.Count; i++) - { - if (!array[i]) - { - var num = Convert.ToInt32(list[i].method_0() * _resolution); - if (list[i] is MidiNote) - { - var midiNote = (MidiNote)list[i]; - if (midiNote.method_5()) - { - var j = -1; - var num2 = i + 1; - while (j < 0) - { - if (num2 == midiLine.method_0().Count) - { - break; - } - if (list[num2] is MidiNote && ((MidiNote)list[num2]).method_4() == midiNote.method_4()) - { - if (((MidiNote)list[num2]).method_5()) - { - j = Convert.ToInt32(list[num2].method_0() * _resolution); - array[num2] = true; - } - else - { - j = Convert.ToInt32(list[num2].method_0() * _resolution); - } - } - num2++; - } - var num3 = Convert.ToInt32(j - num); - if (num3 <= 160) - { - num3 = 0; - } - method_3(difficulty, num, midiNote, num3); - } - } - else if (list[i] is ZzNote1) - { - var class2 = (ZzNote1)list[i]; - var list2 = method_5(difficulty - 4); - var text = class2.method_1(); - if (text.StartsWith("[")) - { - text = text.Substring(1, text.Length - 2); - } - if (list2.Contains(text) || text.Contains("section ")) - { - method_4(difficulty, num, text); - } - } - } - } - } - - private void method_3(int instrumentType, int int1, MidiNote midiNote, int int2) - { - NoteEventInterpreter noteEvenInterpreter = null; - switch (midiNote.GetDifficulty()) - { - case Difficulty.Easy: - switch (instrumentType) - { - case 0: - noteEvenInterpreter = _easySingle; - break; - case 1: - noteEvenInterpreter = _easyDoubleGuitar; - break; - case 3: - noteEvenInterpreter = _easyDoubleBass; - break; - } - break; - case Difficulty.Medium: - switch (instrumentType) - { - case 0: - noteEvenInterpreter = _mediumSingle; - break; - case 1: - noteEvenInterpreter = _mediumDoubleGuitar; - break; - case 3: - noteEvenInterpreter = _mediumDoubleBass; - break; - } - break; - case Difficulty.Hard: - switch (instrumentType) - { - case 0: - noteEvenInterpreter = _hardSingle; - break; - case 1: - noteEvenInterpreter = _hardDoubleGuitar; - break; - case 3: - noteEvenInterpreter = _hardDoubleBass; - break; - } - break; - case Difficulty.Expert: - switch (instrumentType) - { - case 0: - noteEvenInterpreter = _expertSingle; - break; - case 1: - noteEvenInterpreter = _expertDoubleGuitar; - break; - case 3: - noteEvenInterpreter = _expertDoubleBass; - break; - } - break; - default: - if (!_bool3 && midiNote.method_2() == MidiNoteMask.StarPower) - { - _bool3 = true; - _expertSingle.Class2281.Clear(); - _hardSingle.Class2281.Clear(); - _mediumSingle.Class2281.Clear(); - _easySingle.Class2281.Clear(); - } - else if (!_bool3) - { - return; - } - break; - } - if (midiNote.method_3() != Fret.Invalid) - { - if (noteEvenInterpreter.NoteList.method_4(int1)) - { - noteEvenInterpreter.NoteList[int1].NoteValues[(int)midiNote.method_3()] = true; - return; - } - var array = new bool[32]; - array[(int)midiNote.method_3()] = true; - noteEvenInterpreter.NoteList.Add(int1, new NotesAtOffset(array, int2)); - } - else - { - if (midiNote.method_2() == MidiNoteMask.StarPower && !_expertSingle.Class2281.ContainsKey(int1)) - { - _expertSingle.Class2281.Add(int1, int2); - _hardSingle.Class2281.Add(int1, int2); - _mediumSingle.Class2281.Add(int1, int2); - _easySingle.Class2281.Add(int1, int2); - return; - } - if (midiNote.method_2() == MidiNoteMask.Unk7 && !noteEvenInterpreter.Class2281.ContainsKey(int1) && !_bool3) - { - noteEvenInterpreter.Class2281.Add(int1, int2); - return; - } - if (midiNote.method_2() == MidiNoteMask.Unk9 && !noteEvenInterpreter.Class2282.ContainsKey(int1)) - { - noteEvenInterpreter.Class2282.Add(int1, int2); - return; - } - if (midiNote.method_2() == MidiNoteMask.Unk10 && !noteEvenInterpreter.Class2283.ContainsKey(int1)) - { - noteEvenInterpreter.Class2283.Add(int1, int2); - } - } - } - - private void method_4(int int0, int int1, string string2) - { - if (int0 == 4) - { - if (string2.Contains("section ")) - { - _sectionInterpreter.SectionList.Add(int1, string2); - return; - } - if (_sectionInterpreter.OtherList.method_4(int1)) - { - _sectionInterpreter.OtherList[int1].Add(string2); - return; - } - _sectionInterpreter.OtherList.Add(int1, new List(new[] - { - string2 - })); - } - else - { - NoteEventInterpreter @class = null; - NoteEventInterpreter class2 = null; - NoteEventInterpreter class3 = null; - NoteEventInterpreter class4 = null; - switch (int0) - { - case 0: - @class = _expertSingle; - class2 = _hardSingle; - class3 = _mediumSingle; - class4 = _easySingle; - break; - case 1: - @class = _expertDoubleGuitar; - class2 = _hardDoubleGuitar; - class3 = _mediumDoubleGuitar; - class4 = _easyDoubleGuitar; - break; - case 3: - @class = _expertDoubleBass; - class2 = _hardDoubleBass; - class3 = _mediumDoubleBass; - class4 = _easyDoubleBass; - break; - case 5: - _expertDrums.method_5(int1, string2); - _hardDrums.method_5(int1, string2); - _mediumDrums.method_5(int1, string2); - _easyDrums.method_5(int1, string2); - return; - case 7: - _expertKeyboard.method_5(int1, string2); - _hardKeyboard.method_5(int1, string2); - _mediumKeyboard.method_5(int1, string2); - _easyKeyboard.method_5(int1, string2); - return; - } - if (@class != null && @class.EventList.method_4(int1)) - { - @class.EventList[int1].Add(string2); - class2.EventList[int1].Add(string2); - class3.EventList[int1].Add(string2); - class4.EventList[int1].Add(string2); - return; - } - @class.EventList.Add(int1, new List(new[] - { - string2 - })); - class2.EventList.Add(int1, new List(new[] - { - string2 - })); - class3.EventList.Add(int1, new List(new[] - { - string2 - })); - class4.EventList.Add(int1, new List(new[] - { - string2 - })); - } - } - - private List method_5(int int0) - { - if (_uselessEvents.Count == 0) - { - _uselessEvents.Add("lighting (chase)"); - _uselessEvents.Add("lighting (strobe)"); - _uselessEvents.Add("lighting (color1)"); - _uselessEvents.Add("lighting (color2)"); - _uselessEvents.Add("lighting (sweep)"); - _uselessEvents.Add("crowd_lighters_fast"); - _uselessEvents.Add("crowd_lighters_off"); - _uselessEvents.Add("crowd_lighters_slow"); - _uselessEvents.Add("crowd_half_tempo"); - _uselessEvents.Add("crowd_normal_tempo"); - _uselessEvents.Add("crowd_double_tempo"); - _uselessEvents.Add("band_jump"); - _uselessEvents.Add("sync_head_bang"); - _uselessEvents.Add("sync_wag"); - _uselessEvents.Add("lighting ()"); - _uselessEvents.Add("lighting (flare)"); - _uselessEvents.Add("lighting (blackout)"); - _uselessEvents.Add("music_start"); - _uselessEvents.Add("verse"); - _uselessEvents.Add("chorus"); - _uselessEvents.Add("solo"); - _uselessEvents.Add("end"); - _uselessEvents.Add("idle"); - _uselessEvents.Add("play"); - _uselessEvents.Add("solo_on"); - _uselessEvents.Add("solo_off"); - _uselessEvents.Add("wail_on"); - _uselessEvents.Add("wail_off"); - _uselessEvents.Add("drum_on"); - _uselessEvents.Add("drum_off"); - _uselessEvents.Add("sing_on"); - _uselessEvents.Add("sing_off"); - _uselessEvents.Add("bass_on"); - _uselessEvents.Add("bass_off"); - _uselessEvents.Add("gtr_on"); - _uselessEvents.Add("gtr_off"); - _uselessEvents.Add("ow_face_on"); - _uselessEvents.Add("ow_face_off"); - _uselessEvents.Add("half_tempo"); - _uselessEvents.Add("normal_tempo"); - _uselessEvents.Add("half_time"); - _uselessEvents.Add("double_time"); - _uselessEvents.Add("allbeat"); - _uselessEvents.Add("nobeat"); - } - return _uselessEvents; - } - } -} + private readonly InstrumentType _hardDrums = new InstrumentType(); + + private readonly InstrumentType _mediumDrums = new InstrumentType(); + + private readonly InstrumentType _easyDrums = new InstrumentType(); + + private readonly InstrumentType _expertKeyboard = new InstrumentType(); + + private readonly InstrumentType _hardKeyboard = new InstrumentType(); + + private readonly InstrumentType _mediumKeyboard = new InstrumentType(); + + private readonly InstrumentType _easyKeyboard = new InstrumentType(); + + private BpmInterpreter _bpmInterpreter; + + private SectionInterpreter _sectionInterpreter; + + private string _songTitle = ""; + + private double _resolution; + + private bool _isPartGuitar; + + private bool _isEvents; + + private bool _notBass; + + private bool _bool3; + + private MidiReader _midiReader; + + private readonly List _uselessEvents = new List(); + + public MidiParser(string fileLocation) + { + _fileLocation = fileLocation; + } + + public ChartParser LoadMidi() + { + var name = ""; + name = name + new FileInfo(_fileLocation).Name + ":\n"; + try + { + _midiReader = MidiReader.smethod_0(_fileLocation); + } + catch (Exception) + { + throw new IOException(name + "Unknown Error: Could not parse MIDI sequence."); + } + foreach (var current in _midiReader.GetMidiLineList()) + { + if (current.method_2().Equals("PART GUITAR")) + { + _isPartGuitar = true; + } + else if (current.method_2().Equals("EVENTS")) + { + _isEvents = true; + } + } + if (_midiReader.GetMidiLineList().Count == 1 && !_isPartGuitar) + { + _midiReader.GetMidiLineList()[0].method_3("PART GUITAR"); + _isPartGuitar = true; + } + if (!_isPartGuitar) + { + throw new IOException(name + "PART GUITAR not found. No chart created."); + } + var chartParser = new ChartParser(); + _bpmInterpreter = chartParser.BpmInterpreter; + _sectionInterpreter = chartParser.SectionInterpreter; + chartParser.DifficultyWithNotes.Add("EasySingle", _easySingle); + chartParser.DifficultyWithNotes.Add("MediumSingle", _mediumSingle); + chartParser.DifficultyWithNotes.Add("HardSingle", _hardSingle); + chartParser.DifficultyWithNotes.Add("ExpertSingle", _expertSingle); + chartParser.DifficultyWithNotes.Add("EasyDoubleGuitar", _easyDoubleGuitar); + chartParser.DifficultyWithNotes.Add("MediumDoubleGuitar", _mediumDoubleGuitar); + chartParser.DifficultyWithNotes.Add("HardDoubleGuitar", _hardDoubleGuitar); + chartParser.DifficultyWithNotes.Add("ExpertDoubleGuitar", _expertDoubleGuitar); + chartParser.DifficultyWithNotes.Add("EasyDoubleBass", _easyDoubleBass); + chartParser.DifficultyWithNotes.Add("MediumDoubleBass", _mediumDoubleBass); + chartParser.DifficultyWithNotes.Add("HardDoubleBass", _hardDoubleBass); + chartParser.DifficultyWithNotes.Add("ExpertDoubleBass", _expertDoubleBass); + chartParser.InstrumentList.Add("EasyDrums", _easyDrums); + chartParser.InstrumentList.Add("MediumDrums", _mediumDrums); + chartParser.InstrumentList.Add("HardDrums", _hardDrums); + chartParser.InstrumentList.Add("ExpertDrums", _expertDrums); + chartParser.InstrumentList.Add("EasyKeyboard", _easyKeyboard); + chartParser.InstrumentList.Add("MediumKeyboard", _mediumKeyboard); + chartParser.InstrumentList.Add("HardKeyboard", _hardKeyboard); + chartParser.InstrumentList.Add("ExpertKeyboard", _expertKeyboard); + chartParser.Constant480 = 480; + _resolution = 480.0 / _midiReader.method_0(); + object obj = name; + name = string.Concat(obj, "NumTracks = ", _midiReader.GetMidiLineList().Count, "\n"); + method_1(_midiReader.GetMidiLineList()[0]); + foreach (var midiLine in _midiReader.GetMidiLineList()) + { + if (midiLine.method_2().Equals("PART GUITAR")) + { + GetNotes(midiLine, 0); + } + else if (midiLine.method_2().Equals("T1 GEMS")) + { + GetNotes(midiLine, 0); + } + else if (midiLine.method_2().Equals("PART GUITAR COOP")) + { + GetNotes(midiLine, 1); + } + else if (midiLine.method_2().Equals("PART RHYTHM")) + { + _notBass = true; + GetNotes(midiLine, 3); + } + else if (midiLine.method_2().Equals("PART BASS")) + { + GetNotes(midiLine, 3); + } + else if (midiLine.method_2().Equals("EVENTS")) + { + GetNotes(midiLine, 4); + } + else if (midiLine.method_2().Equals("BAND DRUMS")) + { + GetNotes(midiLine, 5); + } + else if (midiLine.method_2().Equals("BAND KEYS")) + { + GetNotes(midiLine, 7); + } + else + { + name = name + "Track (" + midiLine.method_2() + ") ignored.\n"; + } + } + chartParser.Gh3SongInfo.Title = _songTitle; + chartParser.Gh3SongInfo.NotBass = _notBass; + name += "Conversion Complete!"; + Console.WriteLine(name); + chartParser.RemoveEmptyParts(); + return chartParser; + } + + private void method_1(MidiLine class3530) + { + _songTitle = class3530.method_2(); + foreach (var current in class3530.method_0()) + { + var num = Convert.ToInt32(current.method_0() * _resolution); + if (current is ZzNote1) + { + var @class = (ZzNote1) current; + if (!_isEvents && @class.method_2() == ZzNote1.Enum37.Const0) + { + method_4(4, num, "section " + @class.method_1()); + } + } + else if (current is BpmNote1) + { + var num2 = ((BpmNote1) current).method_1(); + _bpmInterpreter.BpmList.Add(num, Convert.ToInt32(Math.Floor(60000000.0 / num2 * 1000.0))); + } + else if (current is ZzNote338) + { + _bpmInterpreter.TsList.Add(num, ((ZzNote338) current).method_1()); + } + } + } + + private void GetNotes(MidiLine midiLine, int difficulty) + { + var array = new bool[midiLine.method_0().Count]; + var list = midiLine.method_0(); + for (var i = 0; i < list.Count; i++) + { + if (!array[i]) + { + var num = Convert.ToInt32(list[i].method_0() * _resolution); + if (list[i] is MidiNote) + { + var midiNote = (MidiNote) list[i]; + if (midiNote.method_5()) + { + var j = -1; + var num2 = i + 1; + while (j < 0) + { + if (num2 == midiLine.method_0().Count) + { + break; + } + if (list[num2] is MidiNote && ((MidiNote) list[num2]).method_4() == midiNote.method_4()) + { + if (((MidiNote) list[num2]).method_5()) + { + j = Convert.ToInt32(list[num2].method_0() * _resolution); + array[num2] = true; + } + else + { + j = Convert.ToInt32(list[num2].method_0() * _resolution); + } + } + num2++; + } + var num3 = Convert.ToInt32(j - num); + if (num3 <= 160) + { + num3 = 0; + } + method_3(difficulty, num, midiNote, num3); + } + } + else if (list[i] is ZzNote1) + { + var class2 = (ZzNote1) list[i]; + var list2 = method_5(difficulty - 4); + var text = class2.method_1(); + if (text.StartsWith("[")) + { + text = text.Substring(1, text.Length - 2); + } + if (list2.Contains(text) || text.Contains("section ")) + { + method_4(difficulty, num, text); + } + } + } + } + } + + private void method_3(int instrumentType, int int1, MidiNote midiNote, int int2) + { + NoteEventInterpreter noteEvenInterpreter = null; + switch (midiNote.GetDifficulty()) + { + case Difficulty.Easy: + switch (instrumentType) + { + case 0: + noteEvenInterpreter = _easySingle; + break; + case 1: + noteEvenInterpreter = _easyDoubleGuitar; + break; + case 3: + noteEvenInterpreter = _easyDoubleBass; + break; + } + break; + case Difficulty.Medium: + switch (instrumentType) + { + case 0: + noteEvenInterpreter = _mediumSingle; + break; + case 1: + noteEvenInterpreter = _mediumDoubleGuitar; + break; + case 3: + noteEvenInterpreter = _mediumDoubleBass; + break; + } + break; + case Difficulty.Hard: + switch (instrumentType) + { + case 0: + noteEvenInterpreter = _hardSingle; + break; + case 1: + noteEvenInterpreter = _hardDoubleGuitar; + break; + case 3: + noteEvenInterpreter = _hardDoubleBass; + break; + } + break; + case Difficulty.Expert: + switch (instrumentType) + { + case 0: + noteEvenInterpreter = _expertSingle; + break; + case 1: + noteEvenInterpreter = _expertDoubleGuitar; + break; + case 3: + noteEvenInterpreter = _expertDoubleBass; + break; + } + break; + default: + if (!_bool3 && midiNote.method_2() == MidiNoteMask.StarPower) + { + _bool3 = true; + _expertSingle.Class2281.Clear(); + _hardSingle.Class2281.Clear(); + _mediumSingle.Class2281.Clear(); + _easySingle.Class2281.Clear(); + } + else if (!_bool3) + { + return; + } + break; + } + if (midiNote.method_3() != Fret.Invalid) + { + if (noteEvenInterpreter.NoteList.method_4(int1)) + { + noteEvenInterpreter.NoteList[int1].NoteValues[(int) midiNote.method_3()] = true; + return; + } + var array = new bool[32]; + array[(int) midiNote.method_3()] = true; + noteEvenInterpreter.NoteList.Add(int1, new NotesAtOffset(array, int2)); + } + else + { + if (midiNote.method_2() == MidiNoteMask.StarPower && !_expertSingle.Class2281.ContainsKey(int1)) + { + _expertSingle.Class2281.Add(int1, int2); + _hardSingle.Class2281.Add(int1, int2); + _mediumSingle.Class2281.Add(int1, int2); + _easySingle.Class2281.Add(int1, int2); + return; + } + if (midiNote.method_2() == MidiNoteMask.Unk7 && !noteEvenInterpreter.Class2281.ContainsKey(int1) && + !_bool3) + { + noteEvenInterpreter.Class2281.Add(int1, int2); + return; + } + if (midiNote.method_2() == MidiNoteMask.Unk9 && !noteEvenInterpreter.Class2282.ContainsKey(int1)) + { + noteEvenInterpreter.Class2282.Add(int1, int2); + return; + } + if (midiNote.method_2() == MidiNoteMask.Unk10 && !noteEvenInterpreter.Class2283.ContainsKey(int1)) + { + noteEvenInterpreter.Class2283.Add(int1, int2); + } + } + } + + private void method_4(int int0, int int1, string string2) + { + if (int0 == 4) + { + if (string2.Contains("section ")) + { + _sectionInterpreter.SectionList.Add(int1, string2); + return; + } + if (_sectionInterpreter.OtherList.method_4(int1)) + { + _sectionInterpreter.OtherList[int1].Add(string2); + return; + } + _sectionInterpreter.OtherList.Add(int1, new List(new[] + { + string2 + })); + } + else + { + NoteEventInterpreter @class = null; + NoteEventInterpreter class2 = null; + NoteEventInterpreter class3 = null; + NoteEventInterpreter class4 = null; + switch (int0) + { + case 0: + @class = _expertSingle; + class2 = _hardSingle; + class3 = _mediumSingle; + class4 = _easySingle; + break; + case 1: + @class = _expertDoubleGuitar; + class2 = _hardDoubleGuitar; + class3 = _mediumDoubleGuitar; + class4 = _easyDoubleGuitar; + break; + case 3: + @class = _expertDoubleBass; + class2 = _hardDoubleBass; + class3 = _mediumDoubleBass; + class4 = _easyDoubleBass; + break; + case 5: + _expertDrums.method_5(int1, string2); + _hardDrums.method_5(int1, string2); + _mediumDrums.method_5(int1, string2); + _easyDrums.method_5(int1, string2); + return; + case 7: + _expertKeyboard.method_5(int1, string2); + _hardKeyboard.method_5(int1, string2); + _mediumKeyboard.method_5(int1, string2); + _easyKeyboard.method_5(int1, string2); + return; + } + if (@class != null && @class.EventList.method_4(int1)) + { + @class.EventList[int1].Add(string2); + class2.EventList[int1].Add(string2); + class3.EventList[int1].Add(string2); + class4.EventList[int1].Add(string2); + return; + } + @class.EventList.Add(int1, new List(new[] + { + string2 + })); + class2.EventList.Add(int1, new List(new[] + { + string2 + })); + class3.EventList.Add(int1, new List(new[] + { + string2 + })); + class4.EventList.Add(int1, new List(new[] + { + string2 + })); + } + } + + private List method_5(int int0) + { + if (_uselessEvents.Count == 0) + { + _uselessEvents.Add("lighting (chase)"); + _uselessEvents.Add("lighting (strobe)"); + _uselessEvents.Add("lighting (color1)"); + _uselessEvents.Add("lighting (color2)"); + _uselessEvents.Add("lighting (sweep)"); + _uselessEvents.Add("crowd_lighters_fast"); + _uselessEvents.Add("crowd_lighters_off"); + _uselessEvents.Add("crowd_lighters_slow"); + _uselessEvents.Add("crowd_half_tempo"); + _uselessEvents.Add("crowd_normal_tempo"); + _uselessEvents.Add("crowd_double_tempo"); + _uselessEvents.Add("band_jump"); + _uselessEvents.Add("sync_head_bang"); + _uselessEvents.Add("sync_wag"); + _uselessEvents.Add("lighting ()"); + _uselessEvents.Add("lighting (flare)"); + _uselessEvents.Add("lighting (blackout)"); + _uselessEvents.Add("music_start"); + _uselessEvents.Add("verse"); + _uselessEvents.Add("chorus"); + _uselessEvents.Add("solo"); + _uselessEvents.Add("end"); + _uselessEvents.Add("idle"); + _uselessEvents.Add("play"); + _uselessEvents.Add("solo_on"); + _uselessEvents.Add("solo_off"); + _uselessEvents.Add("wail_on"); + _uselessEvents.Add("wail_off"); + _uselessEvents.Add("drum_on"); + _uselessEvents.Add("drum_off"); + _uselessEvents.Add("sing_on"); + _uselessEvents.Add("sing_off"); + _uselessEvents.Add("bass_on"); + _uselessEvents.Add("bass_off"); + _uselessEvents.Add("gtr_on"); + _uselessEvents.Add("gtr_off"); + _uselessEvents.Add("ow_face_on"); + _uselessEvents.Add("ow_face_off"); + _uselessEvents.Add("half_tempo"); + _uselessEvents.Add("normal_tempo"); + _uselessEvents.Add("half_time"); + _uselessEvents.Add("double_time"); + _uselessEvents.Add("allbeat"); + _uselessEvents.Add("nobeat"); + } + return _uselessEvents; + } + } +} \ No newline at end of file diff --git a/GHNamespace8/MainMenu.cs b/GHNamespace8/MainMenu.cs index 7cac437..03a0b29 100644 --- a/GHNamespace8/MainMenu.cs +++ b/GHNamespace8/MainMenu.cs @@ -27,185 +27,185 @@ namespace GHNamespace8 { - public class MainMenu : Form - { - private readonly string _appDirectory; + public class MainMenu : Form + { + private readonly string _appDirectory; - private readonly string _gameRegistry; + private readonly string _gameRegistry; - private readonly string _ghtcpRegistry; + private readonly string _ghtcpRegistry; - private readonly string _backupName; + private readonly string _backupName; - private string _dataFolder; + private string _dataFolder; - private string _priority; + private string _priority; - private string[] _languageList; + private string[] _languageList; - private Gh3Songlist _gh3Songlist; + private Gh3Songlist _gh3Songlist; - private int _selectedSetlist; + private int _selectedSetlist; - private readonly bool _isAerosmith; + private readonly bool _isAerosmith; - public ZzPabNode Class3190; + public ZzPabNode Class3190; - private ActionsWindow _actionsWindow0; + private ActionsWindow _actionsWindow0; - private IContainer icontainer_0; + private IContainer icontainer_0; - private ContextMenuStrip _rightClickMenu; + private ContextMenuStrip _rightClickMenu; - private MenuStrip _topMenuStrip; + private MenuStrip _topMenuStrip; - private ToolStripMenuItem _fileMenuItem; + private ToolStripMenuItem _fileMenuItem; - private ToolStripMenuItem _openGameSettingsMenuItem; + private ToolStripMenuItem _openGameSettingsMenuItem; - private ToolStripMenuItem _executeActionsMenuItem; + private ToolStripMenuItem _executeActionsMenuItem; - private ToolStripMenuItem _exitMenuItem; + private ToolStripMenuItem _exitMenuItem; - private ToolStripMenuItem _addMenuItem; + private ToolStripMenuItem _addMenuItem; - private ToolStripMenuItem _manageGameMenuItem; + private ToolStripMenuItem _manageGameMenuItem; - private ListBox _actionRequestsListBox; + private ListBox _actionRequestsListBox; - private Label _label1; + private Label _label1; - private ToolStripSeparator _toolStripSeparator1; + private ToolStripSeparator _toolStripSeparator1; - private ToolStripMenuItem _newSongMenuItem; + private ToolStripMenuItem _newSongMenuItem; - private ToolStripMenuItem _tierMenuItem; + private ToolStripMenuItem _tierMenuItem; - private ToolStripMenuItem _manageTiersMenuItem; + private ToolStripMenuItem _manageTiersMenuItem; - private Label _label3; + private Label _label3; - private ToolStripMenuItem _helpMenuItem; + private ToolStripMenuItem _helpMenuItem; - private ToolStripMenuItem _guideMenuItem; + private ToolStripMenuItem _guideMenuItem; - private ToolStripSeparator _toolStripSeparator3; + private ToolStripSeparator _toolStripSeparator3; - private ToolStripMenuItem _aboutMenuItem; + private ToolStripMenuItem _aboutMenuItem; - private ToolStripMenuItem _scoreHeroMenuItem; + private ToolStripMenuItem _scoreHeroMenuItem; - private TableLayoutPanel _sidePanel; + private TableLayoutPanel _sidePanel; - private ToolStripMenuItem _newTierMenuItem; + private ToolStripMenuItem _newTierMenuItem; - private ToolStripMenuItem _legacyImporterMenuItem; + private ToolStripMenuItem _legacyImporterMenuItem; - private ToolStripMenuItem _tghImportMenuItem; + private ToolStripMenuItem _tghImportMenuItem; - private ToolStripMenuItem _sghSwitchMenuItem; + private ToolStripMenuItem _sghSwitchMenuItem; - private ToolStripSeparator _toolStripSeparator4; + private ToolStripSeparator _toolStripSeparator4; - private ToolStripMenuItem _tghSwitchMenuItem; + private ToolStripMenuItem _tghSwitchMenuItem; - private ToolStripMenuItem _texExplorerMenuItem; + private ToolStripMenuItem _texExplorerMenuItem; - private ToolStripSeparator _toolStripSeparator6; + private ToolStripSeparator _toolStripSeparator6; - private ToolStripMenuItem _manageSongsMenuItem; + private ToolStripMenuItem _manageSongsMenuItem; - private ToolStripMenuItem _songPropsMenuItem; + private ToolStripMenuItem _songPropsMenuItem; - private ToolStripSeparator _toolStripSeparator7; + private ToolStripSeparator _toolStripSeparator7; - private ToolStripMenuItem _saveTghMenuItem; + private ToolStripMenuItem _saveTghMenuItem; - private ToolStripMenuItem _saveSghMenuItem; + private ToolStripMenuItem _saveSghMenuItem; - private ToolStripMenuItem _massImporterMenuItem; + private ToolStripMenuItem _massImporterMenuItem; - private ToolStripMenuItem _clearActionsMenuItem; + private ToolStripMenuItem _clearActionsMenuItem; - private ToolStripMenuItem _disclaimerMenuItem; + private ToolStripMenuItem _disclaimerMenuItem; - private ToolStripMenuItem _sysExitMenuItem; + private ToolStripMenuItem _sysExitMenuItem; - private NotifyIcon _notifyIcon0; + private NotifyIcon _notifyIcon0; - private FontDialog _fontDialog0; + private FontDialog _fontDialog0; - private ToolStripMenuItem _sysEnglishMenuItem; + private ToolStripMenuItem _sysEnglishMenuItem; - private ToolStripMenuItem _sysFrenchMenuItem; + private ToolStripMenuItem _sysFrenchMenuItem; - private ToolStripMenuItem _sysItalianMenuItem; + private ToolStripMenuItem _sysItalianMenuItem; - private ToolStripMenuItem _sysSpanishMenuItem; + private ToolStripMenuItem _sysSpanishMenuItem; - private ToolStripMenuItem _sysGermanMenuItem; + private ToolStripMenuItem _sysGermanMenuItem; - private ContextMenuStrip _leftClickMenu; + private ContextMenuStrip _leftClickMenu; - private ToolStripMenuItem _sysHighMenuItem; + private ToolStripMenuItem _sysHighMenuItem; - private ToolStripMenuItem _sysAboveMenuItem; + private ToolStripMenuItem _sysAboveMenuItem; - private ToolStripMenuItem _sysNormalMenuItem; + private ToolStripMenuItem _sysNormalMenuItem; - private ToolStripMenuItem _sysBelowMenuItem; + private ToolStripMenuItem _sysBelowMenuItem; - private ToolStripSeparator _toolStripSeparator8; + private ToolStripSeparator _toolStripSeparator8; - private ToolStripContainer _mainContainer; + private ToolStripContainer _mainContainer; - private StatusStrip _statusStrip; + private StatusStrip _statusStrip; - private ToolStripStatusLabel _toolStripStatusLbl; + private ToolStripStatusLabel _toolStripStatusLbl; - private ToolStripMenuItem _rebuildSongMenuItem; + private ToolStripMenuItem _rebuildSongMenuItem; - private ToolStripSeparator _removeSongToolStripMenuItem; + private ToolStripSeparator _removeSongToolStripMenuItem; - private ToolStripMenuItem _hideUsedMenuItem; + private ToolStripMenuItem _hideUsedMenuItem; - private ToolStripMenuItem _byTitleMenuItem; + private ToolStripMenuItem _byTitleMenuItem; - private ToolStripMenuItem _clearGameSettingsMenuItem; + private ToolStripMenuItem _clearGameSettingsMenuItem; - private ToolStripMenuItem _deleteSongMenuItem; + private ToolStripMenuItem _deleteSongMenuItem; - private ToolStripMenuItem _saveChartMenuItem; + private ToolStripMenuItem _saveChartMenuItem; - private ToolStripMenuItem _hideUnEditMenuItem; + private ToolStripMenuItem _hideUnEditMenuItem; - private ToolStripMenuItem _gameSettingsSwitchMenuItem; + private ToolStripMenuItem _gameSettingsSwitchMenuItem; - private ToolStripMenuItem _restoreLastMenuItem; + private ToolStripMenuItem _restoreLastMenuItem; - private ToolStripSeparator _toolStripSeparator11; + private ToolStripSeparator _toolStripSeparator11; - private ToolStripMenuItem _restoreOriginalMenuItem; + private ToolStripMenuItem _restoreOriginalMenuItem; - private ToolStripMenuItem _saveFileControlMenuItem; + private ToolStripMenuItem _saveFileControlMenuItem; - private ToolStripMenuItem _sysKoreanMenuItem; + private ToolStripMenuItem _sysKoreanMenuItem; - private ToolStripMenuItem _recoverGameSettingsMenuItem; + private ToolStripMenuItem _recoverGameSettingsMenuItem; - private ToolStripMenuItem _gh3FolderMenuItem; + private ToolStripMenuItem _gh3FolderMenuItem; - private ZzListBox238 _songListBox; + private ZzListBox238 _songListBox; - private ToolStripMenuItem _silentGuitarMenuItem; + private ToolStripMenuItem _silentGuitarMenuItem; - private ToolStripMenuItem _recoverSonglistMenuItem; + private ToolStripMenuItem _recoverSonglistMenuItem; - private ToolStripMenuItem _minToTrayMenuItem; + private ToolStripMenuItem _minToTrayMenuItem; - private ToolStripMenuItem _fxSpeedBoostMenuItem; + private ToolStripMenuItem _fxSpeedBoostMenuItem; - private ToolStripMenuItem _forceMp3ConversionMenuItem; + private ToolStripMenuItem _forceMp3ConversionMenuItem; private ToolStripMenuItem _exportSetlistAsChartsToolStripMenuItem; @@ -213,131 +213,133 @@ public class MainMenu : Form private readonly List _list0 = new List(new[] - { - "", - "_f", - "_i", - "_s", - "_g", - "_k" - }); - - private readonly int[][] _int1 = { - new[] - { - 829593536, - 697043826, - -1837107027, - 1318637149, - -539680678, - 1171873709, - 1653292043, - 459358182, - 556340579, - -1642812599, - -742193873, - 175271819, - 1331363290, - 570416556, - 29153329, - 1819319387 - }, - new[] - { - 1836059490, - 1771483454, - -673998631, - 641462861, - 1900654009, - 1709986031, - 33390903, - 304427717, - 1304990069, - -1785474702, - -1337258443, - 324473326, - 1965474355, - 916367820, - 1499003735, - 1352803218 - }, - new[] - { - 1269522022, - -131210374, - 1629838035, - 202858366, - 1666554359, - 636669508, - 714264300, - -404205300, - 1876358717, - -1515833711, - -209857640, - -1024635964, - 1825789822, - 1897957965, - -1290348488, - 1190923125 - }, - new[] - { - -887973262, - 1466517696, - 1012345538, - 1334047578, - 1479192262, - 777644331, - 55893077, - -645061064, - 1149500538, - -893692966, - 1279451696, - 1784565148, - -585817907, - -796356986, - -850594579, - 978230305 - }, - new[] - { - 2116291983, - 1856446224, - 1972458884, - -348513475, - -1540514032, - -1152881742, - -1084710889, - -927384332, - 1257846839, - -1329362414, - 1892002220, - -1156746513, - 996577931, - 1529160761, - 470653622, - -1505612085 - }, - new[] - { - -1021830939, - 1913508896, - 125205333, - 379146835, - 1188636734, - 1617165582, - -722858410, - 849002028, - -1131773601, - 1209604138, - -338256082, - -1855979794, - -221145881, - -1691900572, - 1804265874, - 50178858 - } - }; + { + "", + "_f", + "_i", + "_s", + "_g", + "_k" + }); + + private readonly int[][] _int1 = + { + new[] + { + 829593536, + 697043826, + -1837107027, + 1318637149, + -539680678, + 1171873709, + 1653292043, + 459358182, + 556340579, + -1642812599, + -742193873, + 175271819, + 1331363290, + 570416556, + 29153329, + 1819319387 + }, + new[] + { + 1836059490, + 1771483454, + -673998631, + 641462861, + 1900654009, + 1709986031, + 33390903, + 304427717, + 1304990069, + -1785474702, + -1337258443, + 324473326, + 1965474355, + 916367820, + 1499003735, + 1352803218 + }, + new[] + { + 1269522022, + -131210374, + 1629838035, + 202858366, + 1666554359, + 636669508, + 714264300, + -404205300, + 1876358717, + -1515833711, + -209857640, + -1024635964, + 1825789822, + 1897957965, + -1290348488, + 1190923125 + }, + new[] + { + -887973262, + 1466517696, + 1012345538, + 1334047578, + 1479192262, + 777644331, + 55893077, + -645061064, + 1149500538, + -893692966, + 1279451696, + 1784565148, + -585817907, + -796356986, + -850594579, + 978230305 + }, + new[] + { + 2116291983, + 1856446224, + 1972458884, + -348513475, + -1540514032, + -1152881742, + -1084710889, + -927384332, + 1257846839, + -1329362414, + 1892002220, + -1156746513, + 996577931, + 1529160761, + 470653622, + -1505612085 + }, + new[] + { + -1021830939, + 1913508896, + 125205333, + 379146835, + 1188636734, + 1617165582, + -722858410, + 849002028, + -1131773601, + 1209604138, + -338256082, + -1855979794, + -221145881, + -1691900572, + 1804265874, + 50178858 + } + }; + private IContainer components; private TabControl _tabControl; private TabPage _setlistTab; @@ -409,1522 +411,1620 @@ public class MainMenu : Form private ToolStripButton _playPauseEditorBtn; private ToolStripButton _stopEditorBtn; private ToolStripLabel _playTimeEditorLbl; - private readonly int[][] _int2 = { - new[] - { - 1437566472, - -1061079748, - -1111592754, - -1966717168, - -1428950520, - 1212724879, - 740255143, - 715944313, - 2111189242, - -1451656433, - -15320960, - -763814429, - -1818972422, - 682353600, - 996166890, - 2016473740 - }, - new[] - { - 305200924, - -1196737699, - -1987906763, - 1679742203, - 1982146584, - 759844203, - 1351130681, - 757831823, - -363786259, - 2087242606, - -118476920, - 1285472074, - 1638750453, - 458284014, - 1046153972, - 2026010499 - }, - new[] - { - 934530828, - -980895192, - -362462945, - -1205732614, - 1435566503, - 723105985, - 1914552563, - 703888743, - -2112510328, - 130444503, - -11435175, - 1470528751, - 1564837879, - -271089057, - -1789758487, - -1075631989 - }, - new[] - { - -1709924020, - -643193285, - -309917039, - -289393289, - 444317537, - 480082408, - 1513307172, - 609246245, - -160900291, - 750978047, - -1163119017, - -1840466690, - 446893618, - -1892840172, - -444827469, - -713549917 - }, - new[] - { - -352783955, - 980938386, - 1545708568, - -1993984026, - 1402693583, - -1214301264, - -1414365273, - -945991889, - -274266520, - 1601334973, - -1624586832, - -227904233, - -2024051484, - -1955644985, - -1038381726, - 1539206104 - }, - new[] - { - -1888660237, - 1331936703, - 463303036, - 806620738, - 1028153509, - 774209744, - -511465646, - 1872831595, - -127158240, - 1527098556, - -621058351, - -2069209528, - -2108293886, - -45253186, - 1502196519, - 687435827 - } - }; - - private void SongListBox_MouseDown(object sender, MouseEventArgs e) - { - var num = _songListBox.IndexFromPoint(e.X, e.Y); - if (num >= 0 && num < _songListBox.Items.Count) - { - if (e.Clicks == 2 && e.Button == MouseButtons.Left) - { - SongProperties songProperties; - if ((songProperties = new SongProperties((Gh3Song)_songListBox.Items[num])).ShowDialog() == DialogResult.OK) - { - songProperties.GetSongWithChanges(); - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - else if (e.Clicks == 2 && e.Button == MouseButtons.Right) - { - var gH3Song = (Gh3Song)_songListBox.Items[num]; - if (gH3Song.Editable && DialogResult.Yes == MessageBox.Show(gH3Song.Name.ToUpper() + " will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", MessageBoxButtons.YesNo)) - { - _songListBox.Items.Remove(gH3Song); - foreach (var current in _gh3Songlist.method_1(gH3Song)) - { - method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); - } - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - } - } - - private void HideUnEdit_MenuItem_Click(object sender, EventArgs e) - { - var arg_1D0 = _gh3Songlist; - var expr_0C = _hideUnEditMenuItem; - arg_1D0.HideUnEditable = (expr_0C.Checked = !expr_0C.Checked); - RefreshSongListBox(); - } - - private void HideUsed_MenuItem_Click(object sender, EventArgs e) - { - var arg_1D0 = _gh3Songlist; - var expr_0C = _hideUsedMenuItem; - arg_1D0.HideUsed = (expr_0C.Checked = !expr_0C.Checked); - RefreshSongListBox(); - } - - private void ByTitle_MenuItem_Click(object sender, EventArgs e) - { - var expr06 = _byTitleMenuItem; - Gh3Song.Bool0 = (expr06.Checked = !expr06.Checked); - RefreshSongListBox(); - } - - private void SongListBox_SelectedIndexChanged(object sender, EventArgs e) - { - if (_songListBox.SelectedItems.Count != 0) - { - var enabled = false; - foreach (Gh3Song song in _songListBox.SelectedItems) - { - if (song.Editable) - { - enabled = true; - } - } + + private readonly int[][] _int2 = + { + new[] + { + 1437566472, + -1061079748, + -1111592754, + -1966717168, + -1428950520, + 1212724879, + 740255143, + 715944313, + 2111189242, + -1451656433, + -15320960, + -763814429, + -1818972422, + 682353600, + 996166890, + 2016473740 + }, + new[] + { + 305200924, + -1196737699, + -1987906763, + 1679742203, + 1982146584, + 759844203, + 1351130681, + 757831823, + -363786259, + 2087242606, + -118476920, + 1285472074, + 1638750453, + 458284014, + 1046153972, + 2026010499 + }, + new[] + { + 934530828, + -980895192, + -362462945, + -1205732614, + 1435566503, + 723105985, + 1914552563, + 703888743, + -2112510328, + 130444503, + -11435175, + 1470528751, + 1564837879, + -271089057, + -1789758487, + -1075631989 + }, + new[] + { + -1709924020, + -643193285, + -309917039, + -289393289, + 444317537, + 480082408, + 1513307172, + 609246245, + -160900291, + 750978047, + -1163119017, + -1840466690, + 446893618, + -1892840172, + -444827469, + -713549917 + }, + new[] + { + -352783955, + 980938386, + 1545708568, + -1993984026, + 1402693583, + -1214301264, + -1414365273, + -945991889, + -274266520, + 1601334973, + -1624586832, + -227904233, + -2024051484, + -1955644985, + -1038381726, + 1539206104 + }, + new[] + { + -1888660237, + 1331936703, + 463303036, + 806620738, + 1028153509, + 774209744, + -511465646, + 1872831595, + -127158240, + 1527098556, + -621058351, + -2069209528, + -2108293886, + -45253186, + 1502196519, + 687435827 + } + }; + + private void SongListBox_MouseDown(object sender, MouseEventArgs e) + { + var num = _songListBox.IndexFromPoint(e.X, e.Y); + if (num >= 0 && num < _songListBox.Items.Count) + { + if (e.Clicks == 2 && e.Button == MouseButtons.Left) + { + SongProperties songProperties; + if ((songProperties = new SongProperties((Gh3Song) _songListBox.Items[num])).ShowDialog() == + DialogResult.OK) + { + songProperties.GetSongWithChanges(); + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + else if (e.Clicks == 2 && e.Button == MouseButtons.Right) + { + var gH3Song = (Gh3Song) _songListBox.Items[num]; + if (gH3Song.Editable && DialogResult.Yes == + MessageBox.Show( + gH3Song.Name.ToUpper() + + " will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", + MessageBoxButtons.YesNo)) + { + _songListBox.Items.Remove(gH3Song); + foreach (var current in _gh3Songlist.method_1(gH3Song)) + { + method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); + } + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + } + } + + private void HideUnEdit_MenuItem_Click(object sender, EventArgs e) + { + var arg_1D0 = _gh3Songlist; + var expr_0C = _hideUnEditMenuItem; + arg_1D0.HideUnEditable = (expr_0C.Checked = !expr_0C.Checked); + RefreshSongListBox(); + } + + private void HideUsed_MenuItem_Click(object sender, EventArgs e) + { + var arg_1D0 = _gh3Songlist; + var expr_0C = _hideUsedMenuItem; + arg_1D0.HideUsed = (expr_0C.Checked = !expr_0C.Checked); + RefreshSongListBox(); + } + + private void ByTitle_MenuItem_Click(object sender, EventArgs e) + { + var expr06 = _byTitleMenuItem; + Gh3Song.Bool0 = (expr06.Checked = !expr06.Checked); + RefreshSongListBox(); + } + + private void SongListBox_SelectedIndexChanged(object sender, EventArgs e) + { + if (_songListBox.SelectedItems.Count != 0) + { + var enabled = false; + foreach (Gh3Song song in _songListBox.SelectedItems) + { + if (song.Editable) + { + enabled = true; + } + } _saveChartMenuItem.Enabled = (_rebuildSongMenuItem.Enabled = true); _deleteSongMenuItem.Enabled = enabled; - } - } + } + } public static DialogResult MsgBoxEditDefaultSongs() { - return MessageBox.Show("Do you really wish to edit a default song? Editing default songs is dangerous and should only be done if you understand the consequences of doing so.", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); + return MessageBox.Show( + "Do you really wish to edit a default song? Editing default songs is dangerous and should only be done if you understand the consequences of doing so.", + "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); } - private void SongProps_MenuItem_Click(object sender, EventArgs e) - { - SongProperties songProperties; - if (!((Gh3Song)_songListBox.Items[_songListBox.SelectedIndex]).IsEditable()) + private void SongProps_MenuItem_Click(object sender, EventArgs e) + { + SongProperties songProperties; + if (!((Gh3Song) _songListBox.Items[_songListBox.SelectedIndex]).IsEditable()) { if (MsgBoxEditDefaultSongs() != DialogResult.Yes) return; } - if (_songListBox.SelectedIndex >= 0 && (songProperties = new SongProperties((Gh3Song)_songListBox.Items[_songListBox.SelectedIndex])).ShowDialog() == DialogResult.OK) - { - songProperties.GetSongWithChanges(); - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - - private void RebuildSong_MenuItem_Click(object sender, EventArgs e) - { - var song = (Gh3Song)_songListBox.Items[_songListBox.SelectedIndex]; + if (_songListBox.SelectedIndex >= 0 && (songProperties = + new SongProperties((Gh3Song) _songListBox.Items[_songListBox.SelectedIndex])).ShowDialog() == + DialogResult.OK) + { + songProperties.GetSongWithChanges(); + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + + private void RebuildSong_MenuItem_Click(object sender, EventArgs e) + { + var song = (Gh3Song) _songListBox.Items[_songListBox.SelectedIndex]; SongData songData; if (!song.IsEditable()) { if (MsgBoxEditDefaultSongs() != DialogResult.Yes) return; } - if (_songListBox.SelectedIndex >= 0 && (songData = new SongData(song.Name, false, false)).ShowDialog() == DialogResult.OK) - { - if (songData.Bool1) - { - var @class = songData.method_1(Class3190, _dataFolder); - method_4(@class); - if (DialogResult.Yes == MessageBox.Show("Do you wish to get the song properties from the game track? (Current properties will be overwritten | Mid files have no properties!)", "Tier Exporting", MessageBoxButtons.YesNo)) - { - var noRhythmTrack = song.NoRhythmTrack; - var useCoopNotetracks = song.UseCoopNotetracks; - song.vmethod_0(@class.Class3620.Gh3Song0); - song.NoRhythmTrack = noRhythmTrack; - song.UseCoopNotetracks = useCoopNotetracks; - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - if (songData.Bool0) - { - var class2 = songData.method_0(_dataFolder); - method_4(class2); - song.NoRhythmTrack = !class2.Bool0; - song.UseCoopNotetracks = class2.Bool1; - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - } - - private void SongListBox_KeyDown(object sender, KeyEventArgs e) - { - if (e.Shift && e.KeyCode == Keys.Delete && _songListBox.SelectedItems.Count != 0 && DialogResult.Yes == MessageBox.Show("The selected songs will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", MessageBoxButtons.YesNo)) - { - var array = _songListBox.imethod_3(); - for (var i = 0; i < array.Length; i++) - { - var gh3Song = (Gh3Song)array[i]; - if (gh3Song.Editable) - { - _songListBox.Items.Remove(gh3Song); - foreach (var current in _gh3Songlist.method_1(gh3Song)) - { - method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); - } - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - } - } - - private void DeleteSong_MenuItem_Click(object sender, EventArgs e) - { - var array = _songListBox.imethod_3(); - for (var i = 0; i < array.Length; i++) - { - var gH3Song = (Gh3Song)array[i]; - if (gH3Song.Editable && DialogResult.Yes == MessageBox.Show(gH3Song.Name.ToUpper() + " will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", MessageBoxButtons.YesNo)) - { - _songListBox.Items.Remove(gH3Song); - foreach (var current in _gh3Songlist.method_1(gH3Song)) - { - method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); - } - method_4(new Class247(Class3190, _gh3Songlist)); - } - } - } - - private void NewSong_MenuItem_Click(object sender, EventArgs e) - { - var songData = new SongData(_gh3Songlist, _forceRb3MidConversionToolStripMenuItem.Checked); - if (songData.ShowDialog() == DialogResult.OK) - { - var gH3Song = _isAerosmith ? new GhaSong() : new Gh3Song(); - if (songData.Bool1) - { - var @class = songData.method_1(Class3190, _dataFolder); - method_4(@class); - gH3Song.vmethod_0(@class.Class3620.Gh3Song0); - } - if (songData.Bool0) - { - var class2 = songData.method_0(_dataFolder); - method_4(class2); - gH3Song.Name = class2.String1; - gH3Song.NoRhythmTrack = !class2.Bool0; - gH3Song.UseCoopNotetracks = class2.Bool1; - gH3Song.Version = 3; - gH3Song.Leaderboard = true; - gH3Song.Editable = true; - } - var songProperties = new SongProperties(gH3Song); - if (songProperties.ShowDialog() == DialogResult.OK) - { - songProperties.GetSongWithChanges(); - } - _gh3Songlist.Add(gH3Song.Name, gH3Song); - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - } - } - - private void RecoverSonglist_MenuItem_Click(object sender, EventArgs e) - { - var flag = false; - var files = Directory.GetFiles(_dataFolder + "music\\", "*.dat.xen", SearchOption.AllDirectories); - for (var i = 0; i < files.Length; i++) - { - var text = files[i]; - var text2 = KeyGenerator.GetFileNameNoExt(text); - if (File.Exists(_dataFolder + "music\\" + text2 + ".fsb.xen") && File.Exists(_dataFolder + "songs\\" + text2 + "_song.pak.xen") && !_gh3Songlist.method_3(text2) && !QbSongClass1.smethod_4(text2) && !Gh3Songlist.IgnoreSongs.Contains(QbSongClass1.AddKeyToDictionary(text2))) - { - try - { - var gH3Song = _isAerosmith ? new GhaSong(text2) : new Gh3Song(text2); - var list = new List(new ZzQbSongObject(text).String1); - gH3Song.NoRhythmTrack = !list.Contains(text2 + "_rhythm"); - gH3Song.UseCoopNotetracks = list.Contains(text2 + "_coop_song"); - _gh3Songlist.Add(text2, gH3Song); - flag = true; - } - catch - { - } - } - } - if (flag) - { - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - } - } - - private void RefreshSongListBox() - { - _songListBox.Items.Clear(); - _songListBox.Items.AddRange(_gh3Songlist.GetSongs()); - } - - private void LoadChart_EditorBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", true)).Equals("")) - { - QbcParser qbcParser; - try - { - if (fileName.EndsWith("_song.pak.xen")) - { - var str = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); - using (var @class = new ZzPakNode2(fileName, false)) - { - if (!@class.method_6("songs\\" + str + ".mid.qb")) - { - throw new Exception("MID.QB song file not found."); - } - qbcParser = new QbcParser(str, @class.ZzGetNode1("songs\\" + str + ".mid.qb")); - goto IL_DA; - } - } - if (fileName.EndsWith(".qbc")) - { - qbcParser = new QbcParser(fileName); - } - else if (fileName.EndsWith(".mid")) - { + if (_songListBox.SelectedIndex >= 0 && (songData = new SongData(song.Name, false, false)).ShowDialog() == + DialogResult.OK) + { + if (songData.Bool1) + { + var @class = songData.method_1(Class3190, _dataFolder); + method_4(@class); + if (DialogResult.Yes == MessageBox.Show( + "Do you wish to get the song properties from the game track? (Current properties will be overwritten | Mid files have no properties!)", + "Tier Exporting", MessageBoxButtons.YesNo)) + { + var noRhythmTrack = song.NoRhythmTrack; + var useCoopNotetracks = song.UseCoopNotetracks; + song.vmethod_0(@class.Class3620.Gh3Song0); + song.NoRhythmTrack = noRhythmTrack; + song.UseCoopNotetracks = useCoopNotetracks; + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + if (songData.Bool0) + { + var class2 = songData.method_0(_dataFolder); + method_4(class2); + song.NoRhythmTrack = !class2.Bool0; + song.UseCoopNotetracks = class2.Bool1; + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + } + + private void SongListBox_KeyDown(object sender, KeyEventArgs e) + { + if (e.Shift && e.KeyCode == Keys.Delete && _songListBox.SelectedItems.Count != 0 && DialogResult.Yes == + MessageBox.Show( + "The selected songs will be deleted from the Songlist!\nAre you sure you wish to continue?", + "Warning!", MessageBoxButtons.YesNo)) + { + var array = _songListBox.imethod_3(); + for (var i = 0; i < array.Length; i++) + { + var gh3Song = (Gh3Song) array[i]; + if (gh3Song.Editable) + { + _songListBox.Items.Remove(gh3Song); + foreach (var current in _gh3Songlist.method_1(gh3Song)) + { + method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); + } + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + } + } + + private void DeleteSong_MenuItem_Click(object sender, EventArgs e) + { + var array = _songListBox.imethod_3(); + for (var i = 0; i < array.Length; i++) + { + var gH3Song = (Gh3Song) array[i]; + if (gH3Song.Editable && DialogResult.Yes == + MessageBox.Show( + gH3Song.Name.ToUpper() + + " will be deleted from the Songlist!\nAre you sure you wish to continue?", "Warning!", + MessageBoxButtons.YesNo)) + { + _songListBox.Items.Remove(gH3Song); + foreach (var current in _gh3Songlist.method_1(gH3Song)) + { + method_4(new ZzSetListUpdater(current, Class3190, _gh3Songlist)); + } + method_4(new Class247(Class3190, _gh3Songlist)); + } + } + } + + private void NewSong_MenuItem_Click(object sender, EventArgs e) + { + var songData = new SongData(_gh3Songlist, _forceRb3MidConversionToolStripMenuItem.Checked); + if (songData.ShowDialog() == DialogResult.OK) + { + var gH3Song = _isAerosmith ? new GhaSong() : new Gh3Song(); + if (songData.Bool1) + { + var @class = songData.method_1(Class3190, _dataFolder); + method_4(@class); + gH3Song.vmethod_0(@class.Class3620.Gh3Song0); + } + if (songData.Bool0) + { + var class2 = songData.method_0(_dataFolder); + method_4(class2); + gH3Song.Name = class2.String1; + gH3Song.NoRhythmTrack = !class2.Bool0; + gH3Song.UseCoopNotetracks = class2.Bool1; + gH3Song.Version = 3; + gH3Song.Leaderboard = true; + gH3Song.Editable = true; + } + var songProperties = new SongProperties(gH3Song); + if (songProperties.ShowDialog() == DialogResult.OK) + { + songProperties.GetSongWithChanges(); + } + _gh3Songlist.Add(gH3Song.Name, gH3Song); + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + } + } + + private void RecoverSonglist_MenuItem_Click(object sender, EventArgs e) + { + var flag = false; + var files = Directory.GetFiles(_dataFolder + "music\\", "*.dat.xen", SearchOption.AllDirectories); + for (var i = 0; i < files.Length; i++) + { + var text = files[i]; + var text2 = KeyGenerator.GetFileNameNoExt(text); + if (File.Exists(_dataFolder + "music\\" + text2 + ".fsb.xen") && + File.Exists(_dataFolder + "songs\\" + text2 + "_song.pak.xen") && !_gh3Songlist.method_3(text2) && + !QbSongClass1.smethod_4(text2) && + !Gh3Songlist.IgnoreSongs.Contains(QbSongClass1.AddKeyToDictionary(text2))) + { + try + { + var gH3Song = _isAerosmith ? new GhaSong(text2) : new Gh3Song(text2); + var list = new List(new ZzQbSongObject(text).String1); + gH3Song.NoRhythmTrack = !list.Contains(text2 + "_rhythm"); + gH3Song.UseCoopNotetracks = list.Contains(text2 + "_coop_song"); + _gh3Songlist.Add(text2, gH3Song); + flag = true; + } + catch + { + } + } + } + if (flag) + { + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + } + } + + private void RefreshSongListBox() + { + _songListBox.Items.Clear(); + _songListBox.Items.AddRange(_gh3Songlist.GetSongs()); + } + + private void LoadChart_EditorBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", + "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", + true)).Equals("")) + { + QbcParser qbcParser; + try + { + if (fileName.EndsWith("_song.pak.xen")) + { + var str = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); + using (var @class = new ZzPakNode2(fileName, false)) + { + if (!@class.method_6("songs\\" + str + ".mid.qb")) + { + throw new Exception("MID.QB song file not found."); + } + qbcParser = new QbcParser(str, @class.ZzGetNode1("songs\\" + str + ".mid.qb")); + goto IL_DA; + } + } + if (fileName.EndsWith(".qbc")) + { + qbcParser = new QbcParser(fileName); + } + else if (fileName.EndsWith(".mid")) + { qbcParser = Midi2Chart.LoadMidiSong(fileName, _forceRb3MidConversionToolStripMenuItem.Checked); - } - else - { - qbcParser = new ChartParser(fileName).ConvertToQbc(); } - IL_DA:; - } - catch (Exception ex) - { - MessageBox.Show("Error loading game track file!\n" + ex.Message); - return; - } - _songNameEditorLbl.Text = qbcParser.Gh3Song0.Title; - _selectedTrackEditorBox.Items.Clear(); - foreach (var current in qbcParser.NoteList.Keys) - { - _selectedTrackEditorBox.Items.Add(current); - } + else + { + qbcParser = new ChartParser(fileName).ConvertToQbc(); + } + IL_DA: + ; + } + catch (Exception ex) + { + MessageBox.Show("Error loading game track file!\n" + ex.Message); + return; + } + _songNameEditorLbl.Text = qbcParser.Gh3Song0.Title; + _selectedTrackEditorBox.Items.Clear(); + foreach (var current in qbcParser.NoteList.Keys) + { + _selectedTrackEditorBox.Items.Add(current); + } _songEditorControl.LoadChart(qbcParser); _selectedTrackEditorBox.SelectedIndex = 0; - _offsetEditorTxtBox.Text = string.Concat(qbcParser.Gh3Song0.GemOffset); - } - } - - private void BeatSize_EditorTxtBox_TextChanged(object sender, EventArgs e) - { - int num; - try - { - num = Convert.ToInt32(_beatSizeEditorTxtBox.Text); - } - catch - { - return; - } - if (num != 0) - { - _songEditorControl.SetBeatSize(num); - } - } - - private void Offset_EditorTxtBox_TextChanged(object sender, EventArgs e) - { - int int_; - try - { - int_ = Convert.ToInt32(_offsetEditorTxtBox.Text); - } - catch - { - return; - } - _songEditorControl.SetOffset(int_); - } - - private void PlayPause_EditorBtn_Click(object sender, EventArgs e) - { - if (_songEditorControl.AudioLoaded()) - { - if (_songEditorControl.GetAudioStatus() != AudioStatus.ShouldStartAudio) - { - _songEditorControl.DifferentStartPlaying(); - return; - } - _songEditorControl.StartPlaying(); - } - } - - private void Stop_EditorBtn_Click(object sender, EventArgs e) - { - if (_songEditorControl.AudioLoaded()) - { - _songEditorControl.StopAudio(); - } - } - - private void LoadAudio_EditorBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio File|*.mp3|Waveform Audio File|*.wav|Ogg Vorbis Audio File|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { - _songEditorControl.LoadAudio(fileName); + _offsetEditorTxtBox.Text = string.Concat(qbcParser.Gh3Song0.GemOffset); + } + } + + private void BeatSize_EditorTxtBox_TextChanged(object sender, EventArgs e) + { + int num; + try + { + num = Convert.ToInt32(_beatSizeEditorTxtBox.Text); + } + catch + { + return; + } + if (num != 0) + { + _songEditorControl.SetBeatSize(num); + } + } + + private void Offset_EditorTxtBox_TextChanged(object sender, EventArgs e) + { + int int_; + try + { + int_ = Convert.ToInt32(_offsetEditorTxtBox.Text); + } + catch + { + return; + } + _songEditorControl.SetOffset(int_); + } + + private void PlayPause_EditorBtn_Click(object sender, EventArgs e) + { + if (_songEditorControl.AudioLoaded()) + { + if (_songEditorControl.GetAudioStatus() != AudioStatus.ShouldStartAudio) + { + _songEditorControl.DifferentStartPlaying(); + return; + } + _songEditorControl.StartPlaying(); + } + } + + private void Stop_EditorBtn_Click(object sender, EventArgs e) + { + if (_songEditorControl.AudioLoaded()) + { + _songEditorControl.StopAudio(); + } + } + + private void LoadAudio_EditorBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio File|*.mp3|Waveform Audio File|*.wav|Ogg Vorbis Audio File|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { + _songEditorControl.LoadAudio(fileName); + } + } + + private void SelectedTrack_EditorBox_SelectedIndexChanged(object sender, EventArgs e) + { + _songEditorControl.Difficulty = (string) _selectedTrackEditorBox.SelectedItem; + } + + private void method_1(object sender, EventArgs e) + { + _playTimeEditorLbl.Text = string.Concat((int) sender / 1000f); + } + + private void GameMode_EditorBtn_Click(object sender, EventArgs e) + { + _songEditorControl.SetGamemodeView(_gameModeEditorBtn.Checked); + } + + private void ToggleElements_EditorSplitBtn_ButtonClick(object sender, EventArgs e) + { + var arg_1D0 = _songEditorControl; + var expr_0C = _starViewEditorBtn; + arg_1D0.LoadStarpowerTextures = (expr_0C.Checked = !expr_0C.Checked); + var arg_3F0 = _songEditorControl; + var expr_2E = _hopoViewEditorBtn; + arg_3F0.LoadHopoTextures = (expr_2E.Checked = !expr_2E.Checked); + var arg610 = _songEditorControl; + var expr50 = _audioViewEditorBtn; + arg610.ShowAudioOnFretboard = (expr50.Checked = !expr50.Checked); + } + + private void StarView_EditorBtn_Click(object sender, EventArgs e) + { + _songEditorControl.LoadStarpowerTextures = _starViewEditorBtn.Checked; + } + + private void HopoView_EditorBtn_Click(object sender, EventArgs e) + { + _songEditorControl.LoadHopoTextures = _hopoViewEditorBtn.Checked; + } + + private void AudioView_EditorBtn_Click(object sender, EventArgs e) + { + _songEditorControl.ShowAudioOnFretboard = _audioViewEditorBtn.Checked; + } + + private void method_2(object sender, EventArgs e) + { + _songEditorControl.SetFretboardAngle(_fretAngleEditorBar.method_4()); + } + + private void method_3(object sender, EventArgs e) + { + if (_hyperSpeedEditorBar.method_4() == 0) + { + _songEditorControl.SetHyperspeed(1.0); + return; + } + if (_hyperSpeedEditorBar.method_4() < 0) + { + _songEditorControl.SetHyperspeed(1.0 - _hyperSpeedEditorBar.method_4() / + (double) (_hyperSpeedEditorBar.method_1() * 2)); + return; + } + if (_hyperSpeedEditorBar.method_4() > 0) + { + _songEditorControl.SetHyperspeed(1.0 + _hyperSpeedEditorBar.method_4() * + _hyperSpeedEditorBar.method_4() / 10.0); } - } - - private void SelectedTrack_EditorBox_SelectedIndexChanged(object sender, EventArgs e) - { - _songEditorControl.Difficulty = (string)_selectedTrackEditorBox.SelectedItem; - } - - private void method_1(object sender, EventArgs e) - { - _playTimeEditorLbl.Text = string.Concat((int)sender / 1000f); - } - - private void GameMode_EditorBtn_Click(object sender, EventArgs e) - { - _songEditorControl.SetGamemodeView(_gameModeEditorBtn.Checked); - } - - private void ToggleElements_EditorSplitBtn_ButtonClick(object sender, EventArgs e) - { - var arg_1D0 = _songEditorControl; - var expr_0C = _starViewEditorBtn; - arg_1D0.LoadStarpowerTextures = (expr_0C.Checked = !expr_0C.Checked); - var arg_3F0 = _songEditorControl; - var expr_2E = _hopoViewEditorBtn; - arg_3F0.LoadHopoTextures = (expr_2E.Checked = !expr_2E.Checked); - var arg610 = _songEditorControl; - var expr50 = _audioViewEditorBtn; - arg610.ShowAudioOnFretboard = (expr50.Checked = !expr50.Checked); - } - - private void StarView_EditorBtn_Click(object sender, EventArgs e) - { - _songEditorControl.LoadStarpowerTextures = _starViewEditorBtn.Checked; - } - - private void HopoView_EditorBtn_Click(object sender, EventArgs e) - { - _songEditorControl.LoadHopoTextures = _hopoViewEditorBtn.Checked; - } - - private void AudioView_EditorBtn_Click(object sender, EventArgs e) - { - _songEditorControl.ShowAudioOnFretboard = _audioViewEditorBtn.Checked; - } - - private void method_2(object sender, EventArgs e) - { - _songEditorControl.SetFretboardAngle(_fretAngleEditorBar.method_4()); - } - - private void method_3(object sender, EventArgs e) - { - if (_hyperSpeedEditorBar.method_4() == 0) - { - _songEditorControl.SetHyperspeed(1.0); - return; - } - if (_hyperSpeedEditorBar.method_4() < 0) - { - _songEditorControl.SetHyperspeed(1.0 - _hyperSpeedEditorBar.method_4() / (double)(_hyperSpeedEditorBar.method_1() * 2)); - return; - } - if (_hyperSpeedEditorBar.method_4() > 0) - { - _songEditorControl.SetHyperspeed(1.0 + _hyperSpeedEditorBar.method_4() * _hyperSpeedEditorBar.method_4() / 10.0); - } - } - - private void SaveChart_MenuItem_Click(object sender, EventArgs e) - { - if (_songListBox.SelectedIndex >= 0) - { - var gh3Song = (Gh3Song)_songListBox.SelectedItem; - var fileLocation = KeyGenerator.OpenOrSaveFile("Select where to save the song chart.", "GH3 Chart File|*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc", false); - if (!fileLocation.Equals("") && File.Exists(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen")) - { - using (var @class = new ZzPakNode2(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen", false)) - { - if (fileLocation.EndsWith(".qbc")) - { - new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")).QbcCreator(fileLocation, gh3Song); - } + } + + private void SaveChart_MenuItem_Click(object sender, EventArgs e) + { + if (_songListBox.SelectedIndex >= 0) + { + var gh3Song = (Gh3Song) _songListBox.SelectedItem; + var fileLocation = KeyGenerator.OpenOrSaveFile("Select where to save the song chart.", + "GH3 Chart File|*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc", false); + if (!fileLocation.Equals("") && File.Exists(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen")) + { + using (var @class = new ZzPakNode2(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen", false)) + { + if (fileLocation.EndsWith(".qbc")) + { + new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")) + .QbcCreator(fileLocation, gh3Song); + } else if (fileLocation.EndsWith(".chart")) { - new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")).method_1().ChartCreator(fileLocation, gh3Song); + new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")) + .method_1() + .ChartCreator(fileLocation, gh3Song); } else - { - new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")).method_1().DbcCreator(fileLocation, gh3Song); - } - } - } - } - } - - private void SaveTGH_MenuItem_Click(object sender, EventArgs e) - { - if (_tierBox.SelectedIndex >= 0) - { - var text = KeyGenerator.OpenOrSaveFile("Select where to save the tier.", "GH3CP Tier File|*.tgh", false, _tierTitleTxtBox.Text); - if (text.Equals("")) - { - return; - } - TghManager @class; - if (DialogResult.Yes == MessageBox.Show("Do you wish to include all used song data (Music & Game Tracks)?", "Tier Exporting", MessageBoxButtons.YesNo)) - { - @class = new TghManager(_gh3Songlist, (Gh3Tier)_tierBox.SelectedItem, text, _dataFolder); - } - else - { - @class = new TghManager(_gh3Songlist, (Gh3Tier)_tierBox.SelectedItem, text); - } - @class.method_1(); - } - } + { + new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")) + .method_1() + .DbcCreator(fileLocation, gh3Song); + } + } + } + } + } - private void exportSetlistAsChartsToolStripMenuItem_Click(object sender, EventArgs e) + private void SaveTGH_MenuItem_Click(object sender, EventArgs e) { + if (_tierBox.SelectedIndex >= 0) + { + var text = KeyGenerator.OpenOrSaveFile("Select where to save the tier.", "GH3CP Tier File|*.tgh", false, + _tierTitleTxtBox.Text); + if (text.Equals("")) + { + return; + } + TghManager @class; + if (DialogResult.Yes == MessageBox.Show( + "Do you wish to include all used song data (Music & Game Tracks)?", "Tier Exporting", + MessageBoxButtons.YesNo)) + { + @class = new TghManager(_gh3Songlist, (Gh3Tier) _tierBox.SelectedItem, text, _dataFolder); + } + else + { + @class = new TghManager(_gh3Songlist, (Gh3Tier) _tierBox.SelectedItem, text); + } + @class.method_1(); + } + } + private void exportSetlistAsChartsToolStripMenuItem_Click(object sender, EventArgs e) + { } private void TGHSwitch_MenuItem_Click(object sender, EventArgs e) - { - if (_tierBox.SelectedIndex >= 0) - { - var text = KeyGenerator.OpenFile("Select the tier to switch too.", "GH3CP Tier File|*.tgh"); - if (text.Equals("")) - { - return; - } - var gH3Tier = new Gh3Tier(); - try - { - TghManager tghManager; - if (DialogResult.Yes == MessageBox.Show("Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", "Tier Switching", MessageBoxButtons.YesNo)) - { - tghManager = new TghManager(_gh3Songlist, gH3Tier, text, _dataFolder); - } - else - { - tghManager = new TghManager(_gh3Songlist, gH3Tier, text); - } - tghManager.method_0(); - _tierBox.Items[_tierBox.SelectedIndex] = gH3Tier; - _tierBox.SelectedIndex = _tierBox.SelectedIndex; - _setlistApplyBtn.Enabled = true; - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - } - catch - { - MessageBox.Show("File not compatible! Tier Switch failed.", "Tier Switching"); - } - } - } - - private void TGHImport_MenuItem_Click(object sender, EventArgs e) - { - if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) - { - var text = KeyGenerator.OpenFile("Select the tier to import.", "GH3CP Tier File|*.tgh"); - if (text.Equals("")) - { - return; - } - var gH3Tier = new Gh3Tier(); - try - { - TghManager @class; - if (DialogResult.Yes == MessageBox.Show("Do you wish to import all contained song data (Music & Game Tracks) and properties? Data will be overwritten!", "Tier Importing", MessageBoxButtons.YesNo)) - { - @class = new TghManager(_gh3Songlist, gH3Tier, text, _dataFolder); - } - else - { - @class = new TghManager(_gh3Songlist, gH3Tier, text); - } - @class.method_0(); - _tierBox.Items.Add(gH3Tier); - _tierBox.SelectedIndex = _tierBox.Items.Count - 1; - _setlistApplyBtn.Enabled = true; - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - } - catch - { - MessageBox.Show("File not compatible! Tier Import failed.", "Tier Importing"); - } - } - } - - private void SaveSGH_MenuItem_Click(object sender, EventArgs e) - { - if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) - { - var saveLocation = KeyGenerator.OpenOrSaveFile("Select where to save the setlist.", "GH3CP Setlist File|*.sgh", false, _setlistTitleTxtBox.Text); - if (saveLocation.Equals("")) - { - return; - } - SghManager sghManager; - if (DialogResult.Yes == MessageBox.Show("Do you wish to include all used song data (Music & Game Tracks)?", "Setlist Exporting", MessageBoxButtons.YesNo)) - { - sghManager = new SghManager(_gh3Songlist, _gh3Songlist.Gh3SetlistList[_selectedSetlist], saveLocation, _dataFolder); - } - else - { - sghManager = new SghManager(_gh3Songlist, _gh3Songlist.Gh3SetlistList[_selectedSetlist], saveLocation); - } - sghManager.method_1(); - } - } + { + if (_tierBox.SelectedIndex >= 0) + { + var text = KeyGenerator.OpenFile("Select the tier to switch too.", "GH3CP Tier File|*.tgh"); + if (text.Equals("")) + { + return; + } + var gH3Tier = new Gh3Tier(); + try + { + TghManager tghManager; + if (DialogResult.Yes == MessageBox.Show( + "Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", + "Tier Switching", MessageBoxButtons.YesNo)) + { + tghManager = new TghManager(_gh3Songlist, gH3Tier, text, _dataFolder); + } + else + { + tghManager = new TghManager(_gh3Songlist, gH3Tier, text); + } + tghManager.method_0(); + _tierBox.Items[_tierBox.SelectedIndex] = gH3Tier; + _tierBox.SelectedIndex = _tierBox.SelectedIndex; + _setlistApplyBtn.Enabled = true; + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + } + catch + { + MessageBox.Show("File not compatible! Tier Switch failed.", "Tier Switching"); + } + } + } + + private void TGHImport_MenuItem_Click(object sender, EventArgs e) + { + if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) + { + var text = KeyGenerator.OpenFile("Select the tier to import.", "GH3CP Tier File|*.tgh"); + if (text.Equals("")) + { + return; + } + var gH3Tier = new Gh3Tier(); + try + { + TghManager @class; + if (DialogResult.Yes == MessageBox.Show( + "Do you wish to import all contained song data (Music & Game Tracks) and properties? Data will be overwritten!", + "Tier Importing", MessageBoxButtons.YesNo)) + { + @class = new TghManager(_gh3Songlist, gH3Tier, text, _dataFolder); + } + else + { + @class = new TghManager(_gh3Songlist, gH3Tier, text); + } + @class.method_0(); + _tierBox.Items.Add(gH3Tier); + _tierBox.SelectedIndex = _tierBox.Items.Count - 1; + _setlistApplyBtn.Enabled = true; + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + } + catch + { + MessageBox.Show("File not compatible! Tier Import failed.", "Tier Importing"); + } + } + } + + private void SaveSGH_MenuItem_Click(object sender, EventArgs e) + { + if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) + { + var saveLocation = KeyGenerator.OpenOrSaveFile("Select where to save the setlist.", + "GH3CP Setlist File|*.sgh", false, _setlistTitleTxtBox.Text); + if (saveLocation.Equals("")) + { + return; + } + SghManager sghManager; + if (DialogResult.Yes == MessageBox.Show( + "Do you wish to include all used song data (Music & Game Tracks)?", "Setlist Exporting", + MessageBoxButtons.YesNo)) + { + sghManager = new SghManager(_gh3Songlist, _gh3Songlist.Gh3SetlistList[_selectedSetlist], + saveLocation, _dataFolder); + } + else + { + sghManager = new SghManager(_gh3Songlist, _gh3Songlist.Gh3SetlistList[_selectedSetlist], + saveLocation); + } + sghManager.method_1(); + } + } + + private void exportSetlistAsChartsToolStripMenuItem_Click_1(object sender, EventArgs e) + { + if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) + { + var folderBrowserDialog = new FolderBrowserDialog(); + folderBrowserDialog.ShowNewFolderButton = false; + folderBrowserDialog.Description = "Please select where you would like to save the charts."; + folderBrowserDialog.RootFolder = Environment.SpecialFolder.DesktopDirectory; + if (folderBrowserDialog.ShowDialog() != DialogResult.OK) + { + return; + } + var saveLocation = folderBrowserDialog.SelectedPath; + if (saveLocation.Equals("")) + { + return; + } + foreach (var tier in _gh3Songlist.Gh3SetlistList[_selectedSetlist].Tiers) + { + foreach (var gh3Song in tier.Songs) + { + var fileLocation = saveLocation + "\\" + gh3Song.Name + ".chart"; + using (var @class = new ZzPakNode2(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen", + false)) + { + new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")) + .method_1() + .ChartCreator(fileLocation, gh3Song); + } + } + } + } + } + + private void SGHSwitch_MenuItem_Click(object sender, EventArgs e) + { + if (!_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) return; + var text = KeyGenerator.OpenFile("Select the setlist to switch to.", "GH3CP Setlist File|*.sgh"); + if (text.Equals("")) + { + return; + } + Console.WriteLine("Found file: " + text); + var gH3Setlist = new Gh3Setlist(); + try + { + var sghManager = DialogResult.Yes == + MessageBox.Show( + "Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", + "Setlist Switching", MessageBoxButtons.YesNo) + ? new SghManager(_gh3Songlist, gH3Setlist, text, _dataFolder) + : new SghManager(_gh3Songlist, gH3Setlist, text); + sghManager.ImportSGH(); + _tierBox.Items.Clear(); + _tierBox.Items.AddRange(gH3Setlist.Tiers.ToArray()); + if (_tierBox.Items.Count != 0) + { + _tierBox.SelectedIndex = 0; + } + else + { + method_23(); + } + _setlistTitleTxtBox.Text = KeyGenerator.GetFileName(text, 1); + _setlistApplyBtn.Enabled = true; + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + } + catch (Exception exception) + { + MessageBox.Show("File not compatible! Setlist Switch failed.\n" + exception, "Setlist Switching"); + } + } + + private static void LegacyImporter_MenuItem_Click(object sender, EventArgs e) + { + } + + private void MassImporter_MenuItem_Click(object sender, EventArgs e) + { + var folderBrowserDialog = new FolderBrowserDialog + { + ShowNewFolderButton = false, + Description = "Please select a folder that contains the folder structure for mass song importing.", + RootFolder = Environment.SpecialFolder.DesktopDirectory + }; + if (folderBrowserDialog.ShowDialog() != DialogResult.OK) + { + return; + } + var directories = Directory.GetDirectories(folderBrowserDialog.SelectedPath, "*", + SearchOption.TopDirectoryOnly); + var list = new List(directories); + var array = directories; + foreach (var file in array) + { + try + { + var list2 = KeyGenerator.CheckFile(file, "*.mid;*.chart;*.qbc;*.dbc", true); + var list3 = KeyGenerator.CheckFile(file, "*.wav;*.mp3;*.ogg", true); + var files = Directory.GetFiles(file, "*.dat", SearchOption.TopDirectoryOnly); + if (list2.Count == 0 || (list3.Count == 0 && files.Length == 0)) continue; + var gH3Song = _isAerosmith ? new GhaSong() : new Gh3Song(); + gH3Song.Name = KeyGenerator.GetFileName(file).ToLower().Replace(" ", "").Replace('.', '_'); + if (gH3Song.Name.Length > 30) + { + gH3Song.Name = gH3Song.Name.Remove(30); + } + if (QbSongClass1.smethod_4(gH3Song.Name) || _gh3Songlist.method_3(gH3Song.Name)) + { + var num = 2; + while (QbSongClass1.smethod_4(gH3Song.Name + num) || _gh3Songlist.method_3(gH3Song.Name + num)) + { + num++; + } + var expr176 = gH3Song; + expr176.Name += num; + } + QbcParser qbcParser = null; + foreach (var current in list2) + { + try + { + if (current.EndsWith(".qbc")) + { + qbcParser = new QbcParser(current); + } + else if (current.EndsWith(".mid")) + { + qbcParser = + Midi2Chart.LoadMidiSong(current, _forceRb3MidConversionToolStripMenuItem.Checked); + } + else + { + qbcParser = new ChartParser(current).ConvertToQbc(); + } + break; + } + catch + { + } + } + if (qbcParser == null) continue; + ZzQbSongObject class2 = null; + if (files.Length != 0) + { + var array2 = files; + foreach (var text2 in array2) + { + try + { + if (!File.Exists(text2.Replace(".dat.xen", ".fsb.xen"))) continue; + class2 = new ZzQbSongObject(text2); + if ((int) new FileInfo(text2.Replace(".dat.xen", ".fsb.xen")).Length == class2.Int0) + { + break; + } + } + catch + { + } + } + } + if (class2 == null && list3.Count == 0) continue; + var songData = new SongData(gH3Song.Name, qbcParser, class2, list3.ToArray()); + var class3 = songData.method_1(Class3190, _dataFolder); + var class4 = songData.method_0(_dataFolder); + gH3Song.vmethod_0(class3.Class3620.Gh3Song0); + if (File.Exists(file + "\\song.ini")) + { + var array3 = File.ReadAllLines(file + "\\song.ini"); + foreach (var text3 in array3) + { + if (text3.StartsWith("name")) + { + gH3Song.Title = text3.Remove(0, text3.IndexOf('=') + 1).Trim(); + } + else if (text3.StartsWith("artist")) + { + gH3Song.Artist = text3.Remove(0, text3.IndexOf('=') + 1).Trim(); + } + } + } + gH3Song.NoRhythmTrack = !class4.Bool0; + gH3Song.UseCoopNotetracks = class4.Bool1; + gH3Song.Version = 3; + gH3Song.Leaderboard = true; + gH3Song.Editable = true; + method_4(class3); + method_4(class4); + _gh3Songlist.Add(gH3Song.Name, gH3Song); + list.Remove(file); + } + catch + { + } + } + method_4(new Class247(Class3190, _gh3Songlist)); + RefreshSongListBox(); + if (list.Count == 0) return; + var text4 = list.Aggregate("The follwing songs (by folder name) failed:", + (current, current2) => current + "\n" + KeyGenerator.GetFileName(current2)); + MessageBox.Show(text4, "Error!"); + } + + public MainMenu() + { + //Creates GUI + InitializeComponent(); + LoadMore(); + AbstractBaseTreeNode1.Bool0 = false; + try + { + string text = null; + string text2 = null; + using (var streamReader = new StreamReader( + new WebClient().OpenRead("http://sites.google.com/site/sigmaincproduction/ghtcp_latest.txt"))) + { + string text3; + while ((text3 = streamReader.ReadLine()) != null) + { + if (text3.StartsWith("version: ")) + { + text = text3.Replace("version: ", ""); + } + else if (text3.StartsWith("link: ")) + { + text2 = text3.Replace("link: ", ""); + } + } + } + if (text != null && text2 != null && + Assembly.GetExecutingAssembly().GetName().Version.CompareTo(new Version(text)) < 0 && + DialogResult.Yes == MessageBox.Show("Would you like to download the latest version?", + "GHTCP: Version " + text + " is available!", MessageBoxButtons.YesNo)) + { + Process.Start(text2); + } + } + catch + { + // ignored + } + if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero III\\") != null) + { + _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero III\\"; + if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\") != null && + MessageBox.Show("Do you wish to load GH3 Aerosmith?", "GH3 Aerosmith found!", + MessageBoxButtons.YesNo) == DialogResult.Yes) + { + _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\"; + _isAerosmith = true; + } + } + else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero III\\") != null) + { + _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero III\\"; + if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\") != null && + MessageBox.Show("Do you wish to load GH3 Aerosmith?", "GH3 Aerosmith found!", + MessageBoxButtons.YesNo) == DialogResult.Yes) + { + _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\"; + _isAerosmith = true; + } + } + else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\") != null) + { + _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\"; + _isAerosmith = true; + } + else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\") != null) + { + _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\"; + _isAerosmith = true; + } + else + { + MessageBox.Show("Guitar Hero III is not installed properly! Please re/install and run again."); + formClosing(); + } + _ghtcpRegistry = (_isAerosmith ? "SOFTWARE\\SigmaInc\\GHTCPAero\\" : "SOFTWARE\\SigmaInc\\GHTCP\\"); + _backupName = (_isAerosmith ? "backupAero\\" : "backup\\"); + ZzQbScriptZipperClass.GameName = (_isAerosmith ? "GHA" : "GH3"); + if (_isAerosmith) + { + Text += " - Aerosmith"; + _tierIconDropBox.Items.AddRange(new[] + { + "setlist_icon_01", + "setlist_icon_02", + "setlist_icon_03", + "setlist_icon_04", + "setlist_icon_05", + "setlist_icon_06" + }); + _tierStageDropBox.Items.AddRange(new[] + { + "load_z_hof", + "load_z_nine_lives", + "load_z_jpplay", + "load_z_nipmuc", + "load_z_maxskc", + "load_z_fenway", + "viewer", + "load_z_credits", + "load_z_viewer" + }); + _tierEncorep2CheckBox.Text = "P1 Aerosmith Encore"; + } + else + { + Text += " - Legends of Rock"; + _tierIconDropBox.Items.AddRange(new[] + { + "setlist_icon_backyard", + "setlist_icon_bar", + "setlist_icon_videoshoot", + "setlist_icon_odeon", + "setlist_icon_prison", + "setlist_icon_desert", + "setlist_icon_megadome", + "setlist_icon_hell" + }); + _tierStageDropBox.Items.AddRange(new[] + { + "load_z_artdeco", + "load_z_budokan", + "load_z_dive", + "load_z_hell", + "load_z_party", + "load_z_prison", + "load_z_video", + "load_z_wikker", + "load_z_soundcheck", + "viewer", + "load_z_credits", + "load_z_viewer" + }); + } + if (method_9() == null) + { + throw new Exception("GH3 Language setting missing from registry!"); + } + QbSongClass1.smethod_0(); + _appDirectory = Directory.GetCurrentDirectory() + "\\"; + method_12(false); + var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); + method_10((string) registryKey.GetValue("Priority")); + if (!new List(new[] + { + "high", + "above", + "normal", + "below" + }).Contains(_priority)) + { + method_10("normal"); + } + var list = new List(new[] + { + (string) registryKey.GetValue("English"), + (string) registryKey.GetValue("French"), + (string) registryKey.GetValue("Italian"), + (string) registryKey.GetValue("Spanish"), + (string) registryKey.GetValue("German"), + (string) registryKey.GetValue("Korean") + }); + if (list.Contains(null)) + { + _languageList = new[] + { + "Guitar Hero III (English)", + "Guitar Hero III (French)", + "Guitar Hero III (Italian)", + "Guitar Hero III (Spanish)", + "Guitar Hero III (German)", + "Guitar Hero III (Korean)" + }; + } + else + { + _languageList = list.ToArray(); + } + InitializeLanguageList(); + _silentGuitarMenuItem.Checked = (Class248.Bool2 = + ((((int?) registryKey.GetValue("SilentGuitar")) ?? 0) != 0)); + _minToTrayMenuItem.Checked = ((((int?) registryKey.GetValue("MinimizeToTray")) ?? 0) != 0); + _silentGuitarMenuItem.Checked = (Class248.Bool3 = + ((((int?) registryKey.GetValue("ForceConversion")) ?? 0) != 0)); + if (!Directory.Exists(_appDirectory + _backupName)) + { + Directory.CreateDirectory(_appDirectory + _backupName); + } + if (!Directory.Exists(_appDirectory + _backupName + "originals")) + { + Directory.CreateDirectory(_appDirectory + _backupName + "originals"); + } + if (!Directory.Exists(_appDirectory + _backupName + "lastedited")) + { + Directory.CreateDirectory(_appDirectory + _backupName + "lastedited"); + } + if (!File.Exists(_appDirectory + "lame_enc.dll")) + { + try + { + ZipManager.smethod_8( + new WebClient().OpenRead("http://spaghetticode.org/lame/libmp3lame-win-3.97.zip"), + _appDirectory + "lame_enc.dll", "libmp3lame-3.97/lame_enc.dll"); + } + catch + { + Process.Start("http://lame.buanzo.com.ar/"); + MessageBox.Show( + "Please download the file under \"ZIP OPTION:\" and select it: libmp3lame-win-#.#.zip", + "MP3 Encoding Library Missing!"); + try + { + var text4 = + KeyGenerator.OpenOrSaveFile("Locate MP3 Encoding Library (file will be deleted after!)", + "MP3 Lame Zip|*.zip", true); + var text5 = KeyGenerator.GetFileNameNoExt(text4); + ZipManager.smethod_4(text4, _appDirectory + "lame_enc.dll", + "libmp3lame" + text5.Substring(text5.LastIndexOf('-')) + "/lame_enc.dll"); + try + { + KeyGenerator.smethod_20(text4); + } + catch + { + } + } + catch + { + MessageBox.Show( + "MP3 Encoding Library could not be extracted, Audio conversion will fail without it!", + "MP3 Encoding Library Missing!"); + } + } + } + } + + private void TexExplorer_MenuItem_Click(object sender, EventArgs e) + { + new TexExplorer(_dataFolder).ShowDialog(); + } + + private void SaveFileControl_MenuItem_Click(object sender, EventArgs e) + { + var a = KeyGenerator.OpenOrSaveFile("Select Save File to Import. Current Save File will be Overwritten!", + "GH3 Save File|s000.d", true); + if (a != "") + { + var @class = new Class324(a); + @class.method_0(new Class324(872398018)).List0[0].Int0[1] = -1; + var text = "Progress" + (new[] + { + "A", + "B", + "C", + "D", + "E" + })[_list0.IndexOf(KeyGenerator.GetFileNameNoExt(Class3190.String0).Remove(0, 2))]; + text = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Personal), + "\\Aspyr\\Guitar Hero III\\Save\\", text, "}{", text); + if (!Directory.Exists(text)) + { + Directory.CreateDirectory(text); + } + @class.method_1(text); + } + } + + private void method_4(QbEditor class2450) + { + foreach (QbEditor @class in _actionRequestsListBox.Items) + { + if (@class.Equals(class2450)) + { + _actionRequestsListBox.Items.Remove(@class); + break; + } + } + _actionRequestsListBox.Items.Add(class2450); + } + + private void ClearActions_MenuItem_Click(object sender, EventArgs e) + { + if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes == + MessageBox.Show("Are You sure you want to delete all Actions?", "Warning!", MessageBoxButtons.YesNo)) + { + _actionRequestsListBox.Items.Clear(); + GC.Collect(); + } + } + + private void ExecuteActions_MenuItem_Click(object sender, EventArgs e) + { + if (_actionRequestsListBox.Items.Count != 0) + { + if (DialogResult.Yes == MessageBox.Show("Are You sure you want to Execute Actions?", "Warning!", + MessageBoxButtons.YesNo)) + { + var list = new List(); + foreach (QbEditor item in _actionRequestsListBox.Items) + { + list.Add(item); + } + _actionsWindow0 = new ActionsWindow(list); + _actionsWindow0.method_0(method_5); + _actionsWindow0.Show(); + _actionsWindow0.method_1(); + } + } + } + + private void method_5(object sender, EventArgs e) + { + if ((!_actionsWindow0.Bool0 || DialogResult.Yes == + MessageBox.Show("Some of the action requests failed!\nDo you still wish to rebuild the game settings?", + "Warning!", MessageBoxButtons.YesNo)) && method_18()) + { + _actionsWindow0 = null; + _actionRequestsListBox.Items.Clear(); + GC.Collect(); + } + } + + private void MainMenu_FormClosing(object sender, FormClosingEventArgs e) + { + if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes != + MessageBox.Show("Any actions that are not executed will be erased! Are you sure you wish to quit?", + "Warning!", MessageBoxButtons.YesNo)) + { + e.Cancel = true; + return; + } + formClosing(); + } + + public void MainMenu_SizeChanged(object sender, EventArgs e) + { + Console.WriteLine(WindowState); + if (WindowState == FormWindowState.Minimized && _minToTrayMenuItem.Checked) + { + Hide(); + return; + } + if (!Visible) + { + BringToFront(); + base.Show(); + Focus(); + WindowState = FormWindowState.Normal; + } + } + + [DllImport("User32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] + public static extern bool SetForegroundWindow(HandleRef handleRef0); + + private void notifyIcon_0_MouseDown(object sender, MouseEventArgs e) + { + if (e.Clicks == 2) + { + _leftClickMenu.Hide(); + _rightClickMenu.Hide(); + if (e.Button == MouseButtons.Left) + { + BringToFront(); + base.Show(); + Focus(); + WindowState = FormWindowState.Normal; + return; + } + if (e.Button != MouseButtons.Right) + { + return; + } + try + { + var registryKey = Registry.LocalMachine.OpenSubKey(_gameRegistry); + var process = new Process(); + process.StartInfo = + new ProcessStartInfo((string) registryKey.GetValue("Path") + + (_isAerosmith ? "Guitar Hero Aerosmith.exe" : "GH3.exe")); + process.Start(); + if (_priority != "normal") + { + process.PriorityClass = ((_priority == "high") + ? ProcessPriorityClass.High + : ((_priority == "above") + ? ProcessPriorityClass.AboveNormal + : ((_priority == "below") + ? ProcessPriorityClass.BelowNormal + : ProcessPriorityClass.Normal))); + } + return; + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + return; + } + } + SetForegroundWindow(new HandleRef(this, Handle)); + if (e.Button == MouseButtons.Left) + { + _leftClickMenu.Show(this, PointToClient(Cursor.Position), ToolStripDropDownDirection.AboveLeft); + return; + } + if (e.Button == MouseButtons.Right) + { + _rightClickMenu.Show(this, PointToClient(Cursor.Position), ToolStripDropDownDirection.AboveRight); + } + } + + private void formClosing() + { + var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); + registryKey.SetValue("Priority", _priority); + registryKey.SetValue("SilentGuitar", Class248.Bool2 ? 1 : 0); + registryKey.SetValue("MinimizeToTray", _minToTrayMenuItem.Checked ? 1 : 0); + registryKey.SetValue("ForceConversion", Class248.Bool3 ? 1 : 0); + method_15(); + _songEditorControl.Dispose(); + _notifyIcon0.Visible = false; + Dispose(true); + } + + private void Exit_MenuItem_Click(object sender, EventArgs e) + { + if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes != + MessageBox.Show("Any actions that are not executed will be erased! Are you sure you wish to quit?", + "Warning!", MessageBoxButtons.YesNo)) + { + return; + } + formClosing(); + } + + private void method_7(string string7) + { + _sysEnglishMenuItem.Checked = (string7 == "en"); + _sysFrenchMenuItem.Checked = (string7 == "fr"); + _sysItalianMenuItem.Checked = (string7 == "it"); + _sysSpanishMenuItem.Checked = (string7 == "es"); + _sysGermanMenuItem.Checked = (string7 == "de"); + _sysKoreanMenuItem.Checked = (string7 == "ko"); + } + + private void method_8(string string7) + { + var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); + registryKey.SetValue("Language", string7); + method_7(string7); + } + + private string method_9() + { + var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); + var text = (string) registryKey.GetValue("Language"); + method_7(text); + return text; + } + + private void SysKorean_MenuItem_Click(object sender, EventArgs e) + { + method_8((string) ((ToolStripMenuItem) sender).Tag); + } + + private void method_10(string string7) + { + _priority = string7; + _sysHighMenuItem.Checked = (_priority == "high"); + _sysAboveMenuItem.Checked = (_priority == "above"); + _sysNormalMenuItem.Checked = (_priority == "normal"); + _sysBelowMenuItem.Checked = (_priority == "below"); + } + + private void SysBelow_MenuItem_Click(object sender, EventArgs e) + { + method_10((string) ((ToolStripMenuItem) sender).Tag); + } + + private void Guide_MenuItem_Click(object sender, EventArgs e) + { + Process.Start("http://www.scorehero.com/forum/viewtopic.php?t=72367"); + } + + private void ScoreHero_MenuItem_Click(object sender, EventArgs e) + { + Process.Start("http://www.scorehero.com/forum/viewtopic.php?t=69818"); + } + + private void GH3Folder_MenuItem_Click(object sender, EventArgs e) + { + Process.Start(_dataFolder); + } + + private void Disclaimer_MenuItem_Click(object sender, EventArgs e) + { + if (new Disclaimer().ShowDialog() != DialogResult.OK) + { + formClosing(); + } + } + + private void About_MenuItem_Click(object sender, EventArgs e) + { + new About().ShowDialog(); + } + + private void SilentGuitar_MenuItem_Click(object sender, EventArgs e) + { + var expr06 = _silentGuitarMenuItem; + Class248.Bool2 = (expr06.Checked = !expr06.Checked); + } + + private void FxSpeedBoost_MenuItem_Click(object sender, EventArgs e) + { + method_4(new ZzFxBoost(Class3190)); + } + + private void ForceMp3Conversion_MenuItem_Click(object sender, EventArgs e) + { + var expr06 = _forceMp3ConversionMenuItem; + Class248.Bool3 = (expr06.Checked = !expr06.Checked); + } + + //Disables Buttons + private void method_11(Gh3Setlist gh3Setlist0) + { + _setlistTitleTxtBox.Text = (string) _setlistDropBox.SelectedItem; + _setlistTitleTxtBox.Enabled = (_deleteSetlistBtn.Enabled = gh3Setlist0.method_4()); + //this.CreateSetlist_Btn.Enabled = (this.gh3Songlist_0.CustomBitMask != -1); + _setlistPrefixTxtBox.Text = gh3Setlist0.Prefix; + _setlistInitMovieTxtBox.Text = gh3Setlist0.InitialMovie; + _tierBox.Items.Clear(); + _tierBox.Items.AddRange(gh3Setlist0.Tiers.ToArray()); + if (_tierBox.Items.Count != 0) + { + _tierBox.SelectedIndex = 0; + } + else + { + method_23(); + } + _setlistApplyBtn.Enabled = false; + } + + private void Setlist_DropBox_SelectedIndexChanged(object sender, EventArgs e) + { + method_11(_gh3Songlist.Gh3SetlistList[ + _selectedSetlist = _gh3Songlist.method_9((string) _setlistDropBox.SelectedItem)]); + } + + private void CreateSetlist_Btn_Click(object sender, EventArgs e) + { + if (_gh3Songlist.CustomBitMask == -1) + { + return; + } + var gH3Setlist = new Gh3Setlist(); + gH3Setlist.method_3("scripts\\guitar\\custom_menu\\guitar_custom_progression.qb"); + gH3Setlist.InitialMovie = ""; + gH3Setlist.Tiers.Add(new Gh3Tier()); + for (var i = 0;;) + { + //num = 2^numOfSetlists + var num = 1 << i; + if ((_gh3Songlist.CustomBitMask & num) != 0) + { + goto SKIPIT; + } + //2^numOfSetlists - 1 + + _gh3Songlist.CustomBitMask |= (gH3Setlist.CustomBit = num); + + IL_7E: + gH3Setlist.Prefix = "custom" + (i + 1); + int num2; + _gh3Songlist.Gh3SetlistList.Add( + num2 = QbSongClass1.AddKeyToDictionary("gh3_custom" + (i + 1) + "_songs"), gH3Setlist); + int value; + _gh3Songlist.Dictionary1.Add( + value = QbSongClass1.AddKeyToDictionary("custom" + (i + 1) + "_progression"), new GhLink(num2)); + string text; + _gh3Songlist.Class2140.Add(text = "Custom Setlist " + (i + 1), value); + _setlistDropBox.Items.Add(text); + _setlistDropBox.SelectedItem = text; + method_4(new Class246(value, Class3190, _gh3Songlist, true)); + method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); + return; + SKIPIT: + i++; + if (i >= 32) + { + goto IL_7E; + } + } + } + + private void DeleteSetlist_Btn_Click(object sender, EventArgs e) + { + if (!_gh3Songlist.Gh3SetlistList[_selectedSetlist].method_4()) + { + return; + } + var text = (string) _setlistDropBox.SelectedItem; + _setlistDropBox.SelectedIndex--; + _setlistDropBox.Items.Remove(text); + method_4(new Class246(_gh3Songlist.Class2140[text], Class3190, _gh3Songlist, false)); + method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); + } + + private void SetlistTitle_TxtBox_TextChanged(object sender, EventArgs e) + { + _setlistApplyBtn.Enabled = true; + } + + private void SetlistApply_Btn_Click(object sender, EventArgs e) + { + var gH3Setlist = _gh3Songlist.Gh3SetlistList[_selectedSetlist]; + gH3Setlist.InitialMovie = _setlistInitMovieTxtBox.Text; + gH3Setlist.Tiers.Clear(); + foreach (Gh3Tier item in _tierBox.Items) + { + gH3Setlist.Tiers.Add(item); + } + if (_setlistTitleTxtBox.Text != (string) _setlistDropBox.SelectedItem) + { + _gh3Songlist.Class2140.Add(_setlistTitleTxtBox.Text, + _gh3Songlist.Class2140[(string) _setlistDropBox.SelectedItem]); + _gh3Songlist.Class2140.Remove((string) _setlistDropBox.SelectedItem); + method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); + _setlistDropBox.Items[_setlistDropBox.SelectedIndex] = _setlistTitleTxtBox.Text; + } + _setlistApplyBtn.Enabled = false; + method_4(new ZzSetListUpdater(_selectedSetlist, Class3190, _gh3Songlist)); + } + + private void NewTier_MenuItem_Click(object sender, EventArgs e) + { + if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) + { + _tierBox.Items.Add(new Gh3Tier()); + _tierBox.SelectedIndex = _tierBox.Items.Count - 1; + _setlistApplyBtn.Enabled = true; + } + } - private void exportSetlistAsChartsToolStripMenuItem_Click_1(object sender, EventArgs e) + private void ManageTiers_MenuItem_Click(object sender, EventArgs e) { - if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) + if (_tierBox.SelectedIndex >= 0) { - var folderBrowserDialog = new FolderBrowserDialog(); - folderBrowserDialog.ShowNewFolderButton = false; - folderBrowserDialog.Description = "Please select where you would like to save the charts."; - folderBrowserDialog.RootFolder = Environment.SpecialFolder.DesktopDirectory; - if (folderBrowserDialog.ShowDialog() != DialogResult.OK) - { - return; - } - var saveLocation = folderBrowserDialog.SelectedPath; - if (saveLocation.Equals("")) + var list = new List(); + foreach (Gh3Tier item in _tierBox.Items) { - return; + list.Add(item); } - foreach(var tier in _gh3Songlist.Gh3SetlistList[_selectedSetlist].Tiers) + var tierManagement = new TierManagement((string) _setlistDropBox.SelectedItem, list.ToArray()); + if (tierManagement.ShowDialog() == DialogResult.OK) { - foreach (var gh3Song in tier.Songs) + _tierBox.Items.Clear(); + _tierBox.Items.AddRange(tierManagement.method_0()); + if (_tierBox.Items.Count != 0) { - var fileLocation = saveLocation + "\\" + gh3Song.Name + ".chart"; - using (var @class = new ZzPakNode2(_dataFolder + "songs\\" + gh3Song.Name + "_song.pak.xen", false)) - { - new QbcParser(gh3Song.Name, @class.ZzGetNode1("songs\\" + gh3Song.Name + ".mid.qb")).method_1().ChartCreator(fileLocation, gh3Song); - } + _tierBox.SelectedIndex = 0; + } + else + { + method_23(); } + _setlistApplyBtn.Enabled = true; } } } - private void SGHSwitch_MenuItem_Click(object sender, EventArgs e) - { - if (!_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) return; - var text = KeyGenerator.OpenFile("Select the setlist to switch to.", "GH3CP Setlist File|*.sgh"); - if (text.Equals("")) - { - return; - } - Console.WriteLine("Found file: " + text); - var gH3Setlist = new Gh3Setlist(); - try - { - var sghManager = DialogResult.Yes == MessageBox.Show("Do you wish to import all contained song data (Music & Game Tracks)? Data and properties will be overwritten!", "Setlist Switching", MessageBoxButtons.YesNo) - ? new SghManager(_gh3Songlist, gH3Setlist, text, _dataFolder) - : new SghManager(_gh3Songlist, gH3Setlist, text); - sghManager.ImportSGH(); - _tierBox.Items.Clear(); - _tierBox.Items.AddRange(gH3Setlist.Tiers.ToArray()); - if (_tierBox.Items.Count != 0) - { - _tierBox.SelectedIndex = 0; - } - else - { - method_23(); - } - _setlistTitleTxtBox.Text = KeyGenerator.GetFileName(text, 1); - _setlistApplyBtn.Enabled = true; - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - } - catch (Exception exception) - { - MessageBox.Show("File not compatible! Setlist Switch failed.\n" + exception, "Setlist Switching"); - } - } - - private static void LegacyImporter_MenuItem_Click(object sender, EventArgs e) - { - } - - private void MassImporter_MenuItem_Click(object sender, EventArgs e) - { - var folderBrowserDialog = new FolderBrowserDialog - { - ShowNewFolderButton = false, - Description = "Please select a folder that contains the folder structure for mass song importing.", - RootFolder = Environment.SpecialFolder.DesktopDirectory - }; - if (folderBrowserDialog.ShowDialog() != DialogResult.OK) - { - return; - } - var directories = Directory.GetDirectories(folderBrowserDialog.SelectedPath, "*", SearchOption.TopDirectoryOnly); - var list = new List(directories); - var array = directories; - foreach (var file in array) - { - try - { - var list2 = KeyGenerator.CheckFile(file, "*.mid;*.chart;*.qbc;*.dbc", true); - var list3 = KeyGenerator.CheckFile(file, "*.wav;*.mp3;*.ogg", true); - var files = Directory.GetFiles(file, "*.dat", SearchOption.TopDirectoryOnly); - if (list2.Count == 0 || (list3.Count == 0 && files.Length == 0)) continue; - var gH3Song = _isAerosmith ? new GhaSong() : new Gh3Song(); - gH3Song.Name = KeyGenerator.GetFileName(file).ToLower().Replace(" ", "").Replace('.', '_'); - if (gH3Song.Name.Length > 30) - { - gH3Song.Name = gH3Song.Name.Remove(30); - } - if (QbSongClass1.smethod_4(gH3Song.Name) || _gh3Songlist.method_3(gH3Song.Name)) - { - var num = 2; - while (QbSongClass1.smethod_4(gH3Song.Name + num) || _gh3Songlist.method_3(gH3Song.Name + num)) - { - num++; - } - var expr176 = gH3Song; - expr176.Name += num; - } - QbcParser qbcParser = null; - foreach (var current in list2) - { - try - { - if (current.EndsWith(".qbc")) - { - qbcParser = new QbcParser(current); - } - else if (current.EndsWith(".mid")) - { - qbcParser = Midi2Chart.LoadMidiSong(current, _forceRb3MidConversionToolStripMenuItem.Checked); - } - else - { - qbcParser = new ChartParser(current).ConvertToQbc(); - } - break; - } - catch - { - } - } - if (qbcParser == null) continue; - ZzQbSongObject class2 = null; - if (files.Length != 0) - { - var array2 = files; - foreach (var text2 in array2) - { - try - { - if (!File.Exists(text2.Replace(".dat.xen", ".fsb.xen"))) continue; - class2 = new ZzQbSongObject(text2); - if ((int)new FileInfo(text2.Replace(".dat.xen", ".fsb.xen")).Length == class2.Int0) - { - break; - } - } - catch - { - } - } - } - if (class2 == null && list3.Count == 0) continue; - var songData = new SongData(gH3Song.Name, qbcParser, class2, list3.ToArray()); - var class3 = songData.method_1(Class3190, _dataFolder); - var class4 = songData.method_0(_dataFolder); - gH3Song.vmethod_0(class3.Class3620.Gh3Song0); - if (File.Exists(file + "\\song.ini")) - { - var array3 = File.ReadAllLines(file + "\\song.ini"); - foreach (var text3 in array3) - { - if (text3.StartsWith("name")) - { - gH3Song.Title = text3.Remove(0, text3.IndexOf('=') + 1).Trim(); - } - else if (text3.StartsWith("artist")) - { - gH3Song.Artist = text3.Remove(0, text3.IndexOf('=') + 1).Trim(); - } - } - } - gH3Song.NoRhythmTrack = !class4.Bool0; - gH3Song.UseCoopNotetracks = class4.Bool1; - gH3Song.Version = 3; - gH3Song.Leaderboard = true; - gH3Song.Editable = true; - method_4(class3); - method_4(class4); - _gh3Songlist.Add(gH3Song.Name, gH3Song); - list.Remove(file); - } - catch - { - } - } - method_4(new Class247(Class3190, _gh3Songlist)); - RefreshSongListBox(); - if (list.Count == 0) return; - var text4 = list.Aggregate("The follwing songs (by folder name) failed:", (current, current2) => current + "\n" + KeyGenerator.GetFileName(current2)); - MessageBox.Show(text4, "Error!"); - } - - public MainMenu() - { - //Creates GUI - InitializeComponent(); - LoadMore(); - AbstractBaseTreeNode1.Bool0 = false; - try - { - string text = null; - string text2 = null; - using (var streamReader = new StreamReader(new WebClient().OpenRead("http://sites.google.com/site/sigmaincproduction/ghtcp_latest.txt"))) - { - string text3; - while ((text3 = streamReader.ReadLine()) != null) - { - if (text3.StartsWith("version: ")) - { - text = text3.Replace("version: ", ""); - } - else if (text3.StartsWith("link: ")) - { - text2 = text3.Replace("link: ", ""); - } - } - } - if (text != null && text2 != null && Assembly.GetExecutingAssembly().GetName().Version.CompareTo(new Version(text)) < 0 && DialogResult.Yes == MessageBox.Show("Would you like to download the latest version?", "GHTCP: Version " + text + " is available!", MessageBoxButtons.YesNo)) - { - Process.Start(text2); - } - } - catch - { - // ignored - } - if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero III\\") != null) - { - _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero III\\"; - if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\") != null && MessageBox.Show("Do you wish to load GH3 Aerosmith?", "GH3 Aerosmith found!", MessageBoxButtons.YesNo) == DialogResult.Yes) - { - _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\"; - _isAerosmith = true; - } - } - else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero III\\") != null) - { - _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero III\\"; - if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\") != null && MessageBox.Show("Do you wish to load GH3 Aerosmith?", "GH3 Aerosmith found!", MessageBoxButtons.YesNo) == DialogResult.Yes) - { - _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\"; - _isAerosmith = true; - } - } - else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\") != null) - { - _gameRegistry = "SOFTWARE\\Wow6432Node\\Aspyr\\Guitar Hero Aerosmith\\"; - _isAerosmith = true; - } - else if (Registry.LocalMachine.OpenSubKey("SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\") != null) - { - _gameRegistry = "SOFTWARE\\Aspyr\\Guitar Hero Aerosmith\\"; - _isAerosmith = true; - } - else - { - MessageBox.Show("Guitar Hero III is not installed properly! Please re/install and run again."); - formClosing(); - } - _ghtcpRegistry = (_isAerosmith ? "SOFTWARE\\SigmaInc\\GHTCPAero\\" : "SOFTWARE\\SigmaInc\\GHTCP\\"); - _backupName = (_isAerosmith ? "backupAero\\" : "backup\\"); - ZzQbScriptZipperClass.GameName = (_isAerosmith ? "GHA" : "GH3"); - if (_isAerosmith) - { - Text += " - Aerosmith"; - _tierIconDropBox.Items.AddRange(new[] - { - "setlist_icon_01", - "setlist_icon_02", - "setlist_icon_03", - "setlist_icon_04", - "setlist_icon_05", - "setlist_icon_06" - }); - _tierStageDropBox.Items.AddRange(new[] - { - "load_z_hof", - "load_z_nine_lives", - "load_z_jpplay", - "load_z_nipmuc", - "load_z_maxskc", - "load_z_fenway", - "viewer", - "load_z_credits", - "load_z_viewer" - }); - _tierEncorep2CheckBox.Text = "P1 Aerosmith Encore"; - } - else - { - Text += " - Legends of Rock"; - _tierIconDropBox.Items.AddRange(new[] - { - "setlist_icon_backyard", - "setlist_icon_bar", - "setlist_icon_videoshoot", - "setlist_icon_odeon", - "setlist_icon_prison", - "setlist_icon_desert", - "setlist_icon_megadome", - "setlist_icon_hell" - }); - _tierStageDropBox.Items.AddRange(new[] - { - "load_z_artdeco", - "load_z_budokan", - "load_z_dive", - "load_z_hell", - "load_z_party", - "load_z_prison", - "load_z_video", - "load_z_wikker", - "load_z_soundcheck", - "viewer", - "load_z_credits", - "load_z_viewer" - }); - } - if (method_9() == null) - { - throw new Exception("GH3 Language setting missing from registry!"); - } - QbSongClass1.smethod_0(); - _appDirectory = Directory.GetCurrentDirectory() + "\\"; - method_12(false); - var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); - method_10((string)registryKey.GetValue("Priority")); - if (!new List(new[] - { - "high", - "above", - "normal", - "below" - }).Contains(_priority)) - { - method_10("normal"); - } - var list = new List(new[] - { - (string)registryKey.GetValue("English"), - (string)registryKey.GetValue("French"), - (string)registryKey.GetValue("Italian"), - (string)registryKey.GetValue("Spanish"), - (string)registryKey.GetValue("German"), - (string)registryKey.GetValue("Korean") - }); - if (list.Contains(null)) - { - _languageList = new[] - { - "Guitar Hero III (English)", - "Guitar Hero III (French)", - "Guitar Hero III (Italian)", - "Guitar Hero III (Spanish)", - "Guitar Hero III (German)", - "Guitar Hero III (Korean)" - }; - } - else - { - _languageList = list.ToArray(); - } - InitializeLanguageList(); - _silentGuitarMenuItem.Checked = (Class248.Bool2 = ((((int?)registryKey.GetValue("SilentGuitar")) ?? 0) != 0)); - _minToTrayMenuItem.Checked = ((((int?)registryKey.GetValue("MinimizeToTray")) ?? 0) != 0); - _silentGuitarMenuItem.Checked = (Class248.Bool3 = ((((int?)registryKey.GetValue("ForceConversion")) ?? 0) != 0)); - if (!Directory.Exists(_appDirectory + _backupName)) - { - Directory.CreateDirectory(_appDirectory + _backupName); - } - if (!Directory.Exists(_appDirectory + _backupName + "originals")) - { - Directory.CreateDirectory(_appDirectory + _backupName + "originals"); - } - if (!Directory.Exists(_appDirectory + _backupName + "lastedited")) - { - Directory.CreateDirectory(_appDirectory + _backupName + "lastedited"); - } - if (!File.Exists(_appDirectory + "lame_enc.dll")) - { - try - { - ZipManager.smethod_8(new WebClient().OpenRead("http://spaghetticode.org/lame/libmp3lame-win-3.97.zip"), _appDirectory + "lame_enc.dll", "libmp3lame-3.97/lame_enc.dll"); - } - catch - { - Process.Start("http://lame.buanzo.com.ar/"); - MessageBox.Show("Please download the file under \"ZIP OPTION:\" and select it: libmp3lame-win-#.#.zip", "MP3 Encoding Library Missing!"); - try - { - var text4 = KeyGenerator.OpenOrSaveFile("Locate MP3 Encoding Library (file will be deleted after!)", "MP3 Lame Zip|*.zip", true); - var text5 = KeyGenerator.GetFileNameNoExt(text4); - ZipManager.smethod_4(text4, _appDirectory + "lame_enc.dll", "libmp3lame" + text5.Substring(text5.LastIndexOf('-')) + "/lame_enc.dll"); - try - { - KeyGenerator.smethod_20(text4); - } - catch - { - } - } - catch - { - MessageBox.Show("MP3 Encoding Library could not be extracted, Audio conversion will fail without it!", "MP3 Encoding Library Missing!"); - } - } - } - } - - private void TexExplorer_MenuItem_Click(object sender, EventArgs e) - { - new TexExplorer(_dataFolder).ShowDialog(); - } - - private void SaveFileControl_MenuItem_Click(object sender, EventArgs e) - { - var a = KeyGenerator.OpenOrSaveFile("Select Save File to Import. Current Save File will be Overwritten!", "GH3 Save File|s000.d", true); - if (a != "") - { - var @class = new Class324(a); - @class.method_0(new Class324(872398018)).List0[0].Int0[1] = -1; - var text = "Progress" + (new[] - { - "A", - "B", - "C", - "D", - "E" - })[_list0.IndexOf(KeyGenerator.GetFileNameNoExt(Class3190.String0).Remove(0, 2))]; - text = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "\\Aspyr\\Guitar Hero III\\Save\\", text, "}{", text); - if (!Directory.Exists(text)) - { - Directory.CreateDirectory(text); - } - @class.method_1(text); - } - } - - private void method_4(QbEditor class2450) - { - foreach (QbEditor @class in _actionRequestsListBox.Items) - { - if (@class.Equals(class2450)) - { - _actionRequestsListBox.Items.Remove(@class); - break; - } - } - _actionRequestsListBox.Items.Add(class2450); - } - - private void ClearActions_MenuItem_Click(object sender, EventArgs e) - { - if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes == MessageBox.Show("Are You sure you want to delete all Actions?", "Warning!", MessageBoxButtons.YesNo)) - { - _actionRequestsListBox.Items.Clear(); - GC.Collect(); - } - } - - private void ExecuteActions_MenuItem_Click(object sender, EventArgs e) - { - if (_actionRequestsListBox.Items.Count != 0) - { - if (DialogResult.Yes == MessageBox.Show("Are You sure you want to Execute Actions?", "Warning!", MessageBoxButtons.YesNo)) - { - var list = new List(); - foreach (QbEditor item in _actionRequestsListBox.Items) - { - list.Add(item); - } - _actionsWindow0 = new ActionsWindow(list); - _actionsWindow0.method_0(method_5); - _actionsWindow0.Show(); - _actionsWindow0.method_1(); - } - } - } - - private void method_5(object sender, EventArgs e) - { - if ((!_actionsWindow0.Bool0 || DialogResult.Yes == MessageBox.Show("Some of the action requests failed!\nDo you still wish to rebuild the game settings?", "Warning!", MessageBoxButtons.YesNo)) && method_18()) - { - _actionsWindow0 = null; - _actionRequestsListBox.Items.Clear(); - GC.Collect(); - } - } - - private void MainMenu_FormClosing(object sender, FormClosingEventArgs e) - { - if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes != MessageBox.Show("Any actions that are not executed will be erased! Are you sure you wish to quit?", "Warning!", MessageBoxButtons.YesNo)) - { - e.Cancel = true; - return; - } - formClosing(); - } - - public void MainMenu_SizeChanged(object sender, EventArgs e) - { - Console.WriteLine(WindowState); - if (WindowState == FormWindowState.Minimized && _minToTrayMenuItem.Checked) - { - Hide(); - return; - } - if (!Visible) - { - BringToFront(); - base.Show(); - Focus(); - WindowState = FormWindowState.Normal; - } - } - - [DllImport("User32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] - public static extern bool SetForegroundWindow(HandleRef handleRef0); - - private void notifyIcon_0_MouseDown(object sender, MouseEventArgs e) - { - if (e.Clicks == 2) - { - _leftClickMenu.Hide(); - _rightClickMenu.Hide(); - if (e.Button == MouseButtons.Left) - { - BringToFront(); - base.Show(); - Focus(); - WindowState = FormWindowState.Normal; - return; - } - if (e.Button != MouseButtons.Right) - { - return; - } - try - { - var registryKey = Registry.LocalMachine.OpenSubKey(_gameRegistry); - var process = new Process(); - process.StartInfo = new ProcessStartInfo((string)registryKey.GetValue("Path") + (_isAerosmith ? "Guitar Hero Aerosmith.exe" : "GH3.exe")); - process.Start(); - if (_priority != "normal") - { - process.PriorityClass = ((_priority == "high") ? ProcessPriorityClass.High : ((_priority == "above") ? ProcessPriorityClass.AboveNormal : ((_priority == "below") ? ProcessPriorityClass.BelowNormal : ProcessPriorityClass.Normal))); - } - return; - } - catch (Exception ex) - { - MessageBox.Show(ex.Message); - return; - } - } - SetForegroundWindow(new HandleRef(this, Handle)); - if (e.Button == MouseButtons.Left) - { - _leftClickMenu.Show(this, PointToClient(Cursor.Position), ToolStripDropDownDirection.AboveLeft); - return; - } - if (e.Button == MouseButtons.Right) - { - _rightClickMenu.Show(this, PointToClient(Cursor.Position), ToolStripDropDownDirection.AboveRight); - } - } - - private void formClosing() - { - var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); - registryKey.SetValue("Priority", _priority); - registryKey.SetValue("SilentGuitar", Class248.Bool2 ? 1 : 0); - registryKey.SetValue("MinimizeToTray", _minToTrayMenuItem.Checked ? 1 : 0); - registryKey.SetValue("ForceConversion", Class248.Bool3 ? 1 : 0); - method_15(); - _songEditorControl.Dispose(); - _notifyIcon0.Visible = false; - Dispose(true); + protected override void Dispose(bool disposing) + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); } - private void Exit_MenuItem_Click(object sender, EventArgs e) - { - if (_actionRequestsListBox.Items.Count != 0 && DialogResult.Yes != MessageBox.Show("Any actions that are not executed will be erased! Are you sure you wish to quit?", "Warning!", MessageBoxButtons.YesNo)) - { - return; - } - formClosing(); - } - - private void method_7(string string7) - { - _sysEnglishMenuItem.Checked = (string7 == "en"); - _sysFrenchMenuItem.Checked = (string7 == "fr"); - _sysItalianMenuItem.Checked = (string7 == "it"); - _sysSpanishMenuItem.Checked = (string7 == "es"); - _sysGermanMenuItem.Checked = (string7 == "de"); - _sysKoreanMenuItem.Checked = (string7 == "ko"); - } - - private void method_8(string string7) - { - var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); - registryKey.SetValue("Language", string7); - method_7(string7); - } - - private string method_9() - { - var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); - var text = (string)registryKey.GetValue("Language"); - method_7(text); - return text; - } - - private void SysKorean_MenuItem_Click(object sender, EventArgs e) - { - method_8((string)((ToolStripMenuItem)sender).Tag); - } - - private void method_10(string string7) - { - _priority = string7; - _sysHighMenuItem.Checked = (_priority == "high"); - _sysAboveMenuItem.Checked = (_priority == "above"); - _sysNormalMenuItem.Checked = (_priority == "normal"); - _sysBelowMenuItem.Checked = (_priority == "below"); - } - - private void SysBelow_MenuItem_Click(object sender, EventArgs e) - { - method_10((string)((ToolStripMenuItem)sender).Tag); - } - - private void Guide_MenuItem_Click(object sender, EventArgs e) - { - Process.Start("http://www.scorehero.com/forum/viewtopic.php?t=72367"); - } - - private void ScoreHero_MenuItem_Click(object sender, EventArgs e) - { - Process.Start("http://www.scorehero.com/forum/viewtopic.php?t=69818"); - } - - private void GH3Folder_MenuItem_Click(object sender, EventArgs e) - { - Process.Start(_dataFolder); - } - - private void Disclaimer_MenuItem_Click(object sender, EventArgs e) - { - if (new Disclaimer().ShowDialog() != DialogResult.OK) - { - formClosing(); - } - } - - private void About_MenuItem_Click(object sender, EventArgs e) - { - new About().ShowDialog(); - } - - private void SilentGuitar_MenuItem_Click(object sender, EventArgs e) - { - var expr06 = _silentGuitarMenuItem; - Class248.Bool2 = (expr06.Checked = !expr06.Checked); - } - - private void FxSpeedBoost_MenuItem_Click(object sender, EventArgs e) - { - method_4(new ZzFxBoost(Class3190)); - } - - private void ForceMp3Conversion_MenuItem_Click(object sender, EventArgs e) - { - var expr06 = _forceMp3ConversionMenuItem; - Class248.Bool3 = (expr06.Checked = !expr06.Checked); - } - - //Disables Buttons - private void method_11(Gh3Setlist gh3Setlist0) - { - _setlistTitleTxtBox.Text = (string)_setlistDropBox.SelectedItem; - _setlistTitleTxtBox.Enabled = (_deleteSetlistBtn.Enabled = gh3Setlist0.method_4()); - //this.CreateSetlist_Btn.Enabled = (this.gh3Songlist_0.CustomBitMask != -1); - _setlistPrefixTxtBox.Text = gh3Setlist0.Prefix; - _setlistInitMovieTxtBox.Text = gh3Setlist0.InitialMovie; - _tierBox.Items.Clear(); - _tierBox.Items.AddRange(gh3Setlist0.Tiers.ToArray()); - if (_tierBox.Items.Count != 0) - { - _tierBox.SelectedIndex = 0; - } - else - { - method_23(); - } - _setlistApplyBtn.Enabled = false; - } - - private void Setlist_DropBox_SelectedIndexChanged(object sender, EventArgs e) - { - method_11(_gh3Songlist.Gh3SetlistList[_selectedSetlist = _gh3Songlist.method_9((string)_setlistDropBox.SelectedItem)]); - } - - private void CreateSetlist_Btn_Click(object sender, EventArgs e) - { - if (_gh3Songlist.CustomBitMask == -1) - { - return; - } - var gH3Setlist = new Gh3Setlist(); - gH3Setlist.method_3("scripts\\guitar\\custom_menu\\guitar_custom_progression.qb"); - gH3Setlist.InitialMovie = ""; - gH3Setlist.Tiers.Add(new Gh3Tier()); - for (var i = 0; ; ) - { - //num = 2^numOfSetlists - var num = 1 << i; - if ((_gh3Songlist.CustomBitMask & num) != 0) { - goto SKIPIT; - } - //2^numOfSetlists - 1 - - _gh3Songlist.CustomBitMask |= (gH3Setlist.CustomBit = num); - - IL_7E: - gH3Setlist.Prefix = "custom" + (i + 1); - int num2; - _gh3Songlist.Gh3SetlistList.Add(num2 = QbSongClass1.AddKeyToDictionary("gh3_custom" + (i + 1) + "_songs"), gH3Setlist); - int value; - _gh3Songlist.Dictionary1.Add(value = QbSongClass1.AddKeyToDictionary("custom" + (i + 1) + "_progression"), new GhLink(num2)); - string text; - _gh3Songlist.Class2140.Add(text = "Custom Setlist " + (i + 1), value); - _setlistDropBox.Items.Add(text); - _setlistDropBox.SelectedItem = text; - method_4(new Class246(value, Class3190, _gh3Songlist, true)); - method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); - return; - SKIPIT: - i++; - if (i >= 32) - { - goto IL_7E; - } - } - - } - - private void DeleteSetlist_Btn_Click(object sender, EventArgs e) - { - if (!_gh3Songlist.Gh3SetlistList[_selectedSetlist].method_4()) - { - return; - } - var text = (string)_setlistDropBox.SelectedItem; - _setlistDropBox.SelectedIndex--; - _setlistDropBox.Items.Remove(text); - method_4(new Class246(_gh3Songlist.Class2140[text], Class3190, _gh3Songlist, false)); - method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); - } - - private void SetlistTitle_TxtBox_TextChanged(object sender, EventArgs e) - { - _setlistApplyBtn.Enabled = true; - } - - private void SetlistApply_Btn_Click(object sender, EventArgs e) - { - var gH3Setlist = _gh3Songlist.Gh3SetlistList[_selectedSetlist]; - gH3Setlist.InitialMovie = _setlistInitMovieTxtBox.Text; - gH3Setlist.Tiers.Clear(); - foreach (Gh3Tier item in _tierBox.Items) - { - gH3Setlist.Tiers.Add(item); - } - if (_setlistTitleTxtBox.Text != (string)_setlistDropBox.SelectedItem) - { - _gh3Songlist.Class2140.Add(_setlistTitleTxtBox.Text, _gh3Songlist.Class2140[(string)_setlistDropBox.SelectedItem]); - _gh3Songlist.Class2140.Remove((string)_setlistDropBox.SelectedItem); - method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); - _setlistDropBox.Items[_setlistDropBox.SelectedIndex] = _setlistTitleTxtBox.Text; - } - _setlistApplyBtn.Enabled = false; - method_4(new ZzSetListUpdater(_selectedSetlist, Class3190, _gh3Songlist)); - } - - private void NewTier_MenuItem_Click(object sender, EventArgs e) - { - if (_gh3Songlist.Gh3SetlistList.ContainsKey(_selectedSetlist)) - { - _tierBox.Items.Add(new Gh3Tier()); - _tierBox.SelectedIndex = _tierBox.Items.Count - 1; - _setlistApplyBtn.Enabled = true; - } - } - - private void ManageTiers_MenuItem_Click(object sender, EventArgs e) - { - if (_tierBox.SelectedIndex >= 0) - { - var list = new List(); - foreach (Gh3Tier item in _tierBox.Items) - { - list.Add(item); - } - var tierManagement = new TierManagement((string)_setlistDropBox.SelectedItem, list.ToArray()); - if (tierManagement.ShowDialog() == DialogResult.OK) - { - _tierBox.Items.Clear(); - _tierBox.Items.AddRange(tierManagement.method_0()); - if (_tierBox.Items.Count != 0) - { - _tierBox.SelectedIndex = 0; - } - else - { - method_23(); - } - _setlistApplyBtn.Enabled = true; - } - } - } - - protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { + private void InitializeComponent() + { components = new Container(); var resources = new ComponentResourceManager(typeof(MainMenu)); _rightClickMenu = new ContextMenuStrip(components); @@ -2093,7 +2193,7 @@ private void InitializeComponent() _setlistTLPanel.SuspendLayout(); _tierTLPanel.SuspendLayout(); _tierPropsPanel.SuspendLayout(); - ((ISupportInitialize)(_tierUnlockedNumBox)).BeginInit(); + ((ISupportInitialize) (_tierUnlockedNumBox)).BeginInit(); _tierSongsPanel.SuspendLayout(); _setlistStrip.SuspendLayout(); _songEditorTab.SuspendLayout(); @@ -2107,14 +2207,16 @@ private void InitializeComponent() // // rightClickMenu // - _rightClickMenu.Items.AddRange(new ToolStripItem[] { - _sysHighMenuItem, - _sysAboveMenuItem, - _sysNormalMenuItem, - _sysBelowMenuItem, - _toolStripSeparator8, - _minToTrayMenuItem, - _sysExitMenuItem}); + _rightClickMenu.Items.AddRange(new ToolStripItem[] + { + _sysHighMenuItem, + _sysAboveMenuItem, + _sysNormalMenuItem, + _sysBelowMenuItem, + _toolStripSeparator8, + _minToTrayMenuItem, + _sysExitMenuItem + }); _rightClickMenu.Name = "_rightClickMenu"; _rightClickMenu.Size = new Size(167, 142); // @@ -2177,12 +2279,14 @@ private void InitializeComponent() // TopMenuStrip // _topMenuStrip.Dock = DockStyle.None; - _topMenuStrip.Items.AddRange(new ToolStripItem[] { - _fileMenuItem, - _addMenuItem, - _manageGameMenuItem, - _manageSongsMenuItem, - _helpMenuItem}); + _topMenuStrip.Items.AddRange(new ToolStripItem[] + { + _fileMenuItem, + _addMenuItem, + _manageGameMenuItem, + _manageSongsMenuItem, + _helpMenuItem + }); _topMenuStrip.Location = new Point(0, 0); _topMenuStrip.Name = "_topMenuStrip"; _topMenuStrip.Size = new Size(784, 24); @@ -2191,19 +2295,21 @@ private void InitializeComponent() // // File_MenuItem // - _fileMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _openGameSettingsMenuItem, - _recoverGameSettingsMenuItem, - _clearGameSettingsMenuItem, - _executeActionsMenuItem, - _clearActionsMenuItem, - _toolStripSeparator1, - _saveTghMenuItem, - _saveSghMenuItem, - _saveChartMenuItem, - _exportSetlistAsChartsToolStripMenuItem, - _toolStripSeparator6, - _exitMenuItem}); + _fileMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _openGameSettingsMenuItem, + _recoverGameSettingsMenuItem, + _clearGameSettingsMenuItem, + _executeActionsMenuItem, + _clearActionsMenuItem, + _toolStripSeparator1, + _saveTghMenuItem, + _saveSghMenuItem, + _saveChartMenuItem, + _exportSetlistAsChartsToolStripMenuItem, + _toolStripSeparator6, + _exitMenuItem + }); _fileMenuItem.Name = "_fileMenuItem"; _fileMenuItem.Size = new Size(37, 20); _fileMenuItem.Text = "File"; @@ -2283,7 +2389,7 @@ private void InitializeComponent() // _exportSetlistAsChartsToolStripMenuItem.Name = "_exportSetlistAsChartsToolStripMenuItem"; _exportSetlistAsChartsToolStripMenuItem.ShortcutKeys = (Keys.Control | Keys.Shift) - | Keys.S; + | Keys.S; _exportSetlistAsChartsToolStripMenuItem.Size = new Size(264, 22); _exportSetlistAsChartsToolStripMenuItem.Text = "Export Setlist as Charts"; _exportSetlistAsChartsToolStripMenuItem.Click += exportSetlistAsChartsToolStripMenuItem_Click_1; @@ -2302,12 +2408,14 @@ private void InitializeComponent() // // Add_MenuItem // - _addMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _newSongMenuItem, - _tierMenuItem, - _massImporterMenuItem, - _legacyImporterMenuItem, - _recoverSonglistMenuItem}); + _addMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _newSongMenuItem, + _tierMenuItem, + _massImporterMenuItem, + _legacyImporterMenuItem, + _recoverSonglistMenuItem + }); _addMenuItem.Name = "_addMenuItem"; _addMenuItem.Size = new Size(41, 20); _addMenuItem.Text = "Add"; @@ -2322,9 +2430,11 @@ private void InitializeComponent() // // Tier_MenuItem // - _tierMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _newTierMenuItem, - _tghImportMenuItem}); + _tierMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _newTierMenuItem, + _tghImportMenuItem + }); _tierMenuItem.Name = "_tierMenuItem"; _tierMenuItem.Size = new Size(167, 22); _tierMenuItem.Text = "Tier"; @@ -2368,19 +2478,21 @@ private void InitializeComponent() // // ManageGame_MenuItem // - _manageGameMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _manageTiersMenuItem, - _toolStripSeparator4, - _tghSwitchMenuItem, - _sghSwitchMenuItem, - _toolStripSeparator11, - _gameSettingsSwitchMenuItem, - _restoreLastMenuItem, - _restoreOriginalMenuItem, - _toolStripSeparator7, - _saveFileControlMenuItem, - _texExplorerMenuItem, - _fxSpeedBoostMenuItem}); + _manageGameMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _manageTiersMenuItem, + _toolStripSeparator4, + _tghSwitchMenuItem, + _sghSwitchMenuItem, + _toolStripSeparator11, + _gameSettingsSwitchMenuItem, + _restoreLastMenuItem, + _restoreOriginalMenuItem, + _toolStripSeparator7, + _saveFileControlMenuItem, + _texExplorerMenuItem, + _fxSpeedBoostMenuItem + }); _manageGameMenuItem.Name = "_manageGameMenuItem"; _manageGameMenuItem.Size = new Size(124, 20); _manageGameMenuItem.Text = "Game Management"; @@ -2468,17 +2580,19 @@ private void InitializeComponent() // // ManageSongs_MenuItem // - _manageSongsMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _songPropsMenuItem, - _rebuildSongMenuItem, - _silentGuitarMenuItem, - _forceMp3ConversionMenuItem, - _forceRb3MidConversionToolStripMenuItem, - _deleteSongMenuItem, - _removeSongToolStripMenuItem, - _hideUnEditMenuItem, - _hideUsedMenuItem, - _byTitleMenuItem}); + _manageSongsMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _songPropsMenuItem, + _rebuildSongMenuItem, + _silentGuitarMenuItem, + _forceMp3ConversionMenuItem, + _forceRb3MidConversionToolStripMenuItem, + _deleteSongMenuItem, + _removeSongToolStripMenuItem, + _hideUnEditMenuItem, + _hideUsedMenuItem, + _byTitleMenuItem + }); _manageSongsMenuItem.Name = "_manageSongsMenuItem"; _manageSongsMenuItem.Size = new Size(135, 20); _manageSongsMenuItem.Text = "Songlist Management"; @@ -2559,13 +2673,15 @@ private void InitializeComponent() // // Help_MenuItem // - _helpMenuItem.DropDownItems.AddRange(new ToolStripItem[] { - _guideMenuItem, - _scoreHeroMenuItem, - _gh3FolderMenuItem, - _toolStripSeparator3, - _disclaimerMenuItem, - _aboutMenuItem}); + _helpMenuItem.DropDownItems.AddRange(new ToolStripItem[] + { + _guideMenuItem, + _scoreHeroMenuItem, + _gh3FolderMenuItem, + _toolStripSeparator3, + _disclaimerMenuItem, + _aboutMenuItem + }); _helpMenuItem.Name = "_helpMenuItem"; _helpMenuItem.Size = new Size(44, 20); _helpMenuItem.Text = "Help"; @@ -2676,7 +2792,7 @@ private void InitializeComponent() // // notifyIcon_0 // - _notifyIcon0.Icon = ((Icon)(resources.GetObject("notifyIcon_0.Icon"))); + _notifyIcon0.Icon = ((Icon) (resources.GetObject("notifyIcon_0.Icon"))); _notifyIcon0.Text = "Guitar Hero Three Control Panel+"; _notifyIcon0.Visible = true; _notifyIcon0.MouseDown += notifyIcon_0_MouseDown; @@ -2689,13 +2805,15 @@ private void InitializeComponent() // // leftClickMenu // - _leftClickMenu.Items.AddRange(new ToolStripItem[] { - _sysEnglishMenuItem, - _sysFrenchMenuItem, - _sysItalianMenuItem, - _sysSpanishMenuItem, - _sysGermanMenuItem, - _sysKoreanMenuItem}); + _leftClickMenu.Items.AddRange(new ToolStripItem[] + { + _sysEnglishMenuItem, + _sysFrenchMenuItem, + _sysItalianMenuItem, + _sysSpanishMenuItem, + _sysGermanMenuItem, + _sysKoreanMenuItem + }); _leftClickMenu.Name = "_leftClickMenu"; _leftClickMenu.Size = new Size(118, 136); // @@ -2781,8 +2899,10 @@ private void InitializeComponent() // StatusStrip // _statusStrip.Dock = DockStyle.None; - _statusStrip.Items.AddRange(new ToolStripItem[] { - _toolStripStatusLbl}); + _statusStrip.Items.AddRange(new ToolStripItem[] + { + _toolStripStatusLbl + }); _statusStrip.Location = new Point(0, 0); _statusStrip.Name = "StatusStrip"; _statusStrip.Size = new Size(784, 22); @@ -3096,11 +3216,13 @@ private void InitializeComponent() // TierUnlocked_NumBox // _tierUnlockedNumBox.Location = new Point(193, 55); - _tierUnlockedNumBox.Maximum = new decimal(new[] { - 65536, - 0, - 0, - 0}); + _tierUnlockedNumBox.Maximum = new decimal(new[] + { + 65536, + 0, + 0, + 0 + }); _tierUnlockedNumBox.Name = "_tierUnlockedNumBox"; _tierUnlockedNumBox.Size = new Size(43, 20); _tierUnlockedNumBox.TabIndex = 9; @@ -3118,8 +3240,10 @@ private void InitializeComponent() // _tierIconDropBox.DropDownStyle = ComboBoxStyle.DropDownList; _tierIconDropBox.FormattingEnabled = true; - _tierIconDropBox.Items.AddRange(new object[] { - "No Icon"}); + _tierIconDropBox.Items.AddRange(new object[] + { + "No Icon" + }); _tierIconDropBox.Location = new Point(93, 112); _tierIconDropBox.Name = "_tierIconDropBox"; _tierIconDropBox.Size = new Size(182, 21); @@ -3130,8 +3254,10 @@ private void InitializeComponent() // _tierStageDropBox.DropDownStyle = ComboBoxStyle.DropDownList; _tierStageDropBox.FormattingEnabled = true; - _tierStageDropBox.Items.AddRange(new object[] { - "No Preset Stage"}); + _tierStageDropBox.Items.AddRange(new object[] + { + "No Preset Stage" + }); _tierStageDropBox.Location = new Point(70, 141); _tierStageDropBox.Name = "_tierStageDropBox"; _tierStageDropBox.Size = new Size(205, 21); @@ -3260,11 +3386,13 @@ private void InitializeComponent() // _setlistStrip.Dock = DockStyle.None; _setlistStrip.GripStyle = ToolStripGripStyle.Hidden; - _setlistStrip.Items.AddRange(new ToolStripItem[] { - _setlistLbl, - _setlistDropBox, - _createSetlistBtn, - _deleteSetlistBtn}); + _setlistStrip.Items.AddRange(new ToolStripItem[] + { + _setlistLbl, + _setlistDropBox, + _createSetlistBtn, + _deleteSetlistBtn + }); _setlistStrip.Location = new Point(0, 0); _setlistStrip.Name = "_setlistStrip"; _setlistStrip.Size = new Size(590, 25); @@ -3342,16 +3470,18 @@ private void InitializeComponent() // _songEditorBottomToolStrip.Dock = DockStyle.None; _songEditorBottomToolStrip.GripStyle = ToolStripGripStyle.Hidden; - _songEditorBottomToolStrip.Items.AddRange(new ToolStripItem[] { - _toggleElementsEditorSplitBtn, - _toolStripSeparator10, - _toolStripLabel1, - _beatSizeEditorTxtBox, - _hyperSpeedEditorBar, - _fretAngleEditorBar, - _toolStripSeparator12, - _toolStripLabel2, - _offsetEditorTxtBox}); + _songEditorBottomToolStrip.Items.AddRange(new ToolStripItem[] + { + _toggleElementsEditorSplitBtn, + _toolStripSeparator10, + _toolStripLabel1, + _beatSizeEditorTxtBox, + _hyperSpeedEditorBar, + _fretAngleEditorBar, + _toolStripSeparator12, + _toolStripLabel2, + _offsetEditorTxtBox + }); _songEditorBottomToolStrip.Location = new Point(0, 0); _songEditorBottomToolStrip.Name = "_songEditorBottomToolStrip"; _songEditorBottomToolStrip.Size = new Size(590, 25); @@ -3361,10 +3491,12 @@ private void InitializeComponent() // ToggleElements_EditorSplitBtn // _toggleElementsEditorSplitBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; - _toggleElementsEditorSplitBtn.DropDownItems.AddRange(new ToolStripItem[] { - _starViewEditorBtn, - _hopoViewEditorBtn, - _audioViewEditorBtn}); + _toggleElementsEditorSplitBtn.DropDownItems.AddRange(new ToolStripItem[] + { + _starViewEditorBtn, + _hopoViewEditorBtn, + _audioViewEditorBtn + }); _toggleElementsEditorSplitBtn.ImageTransparentColor = Color.Magenta; _toggleElementsEditorSplitBtn.Name = "_toggleElementsEditorSplitBtn"; _toggleElementsEditorSplitBtn.Size = new Size(111, 22); @@ -3443,17 +3575,19 @@ private void InitializeComponent() // _songEditorTopToolStrip.Dock = DockStyle.None; _songEditorTopToolStrip.GripStyle = ToolStripGripStyle.Hidden; - _songEditorTopToolStrip.Items.AddRange(new ToolStripItem[] { - _gameModeEditorBtn, - _toolStripSeparator5, - _loadChartEditorBtn, - _selectedTrackEditorBox, - _songNameEditorLbl, - _toolStripSeparator2, - _loadAudioEditorBtn, - _playPauseEditorBtn, - _stopEditorBtn, - _playTimeEditorLbl}); + _songEditorTopToolStrip.Items.AddRange(new ToolStripItem[] + { + _gameModeEditorBtn, + _toolStripSeparator5, + _loadChartEditorBtn, + _selectedTrackEditorBox, + _songNameEditorLbl, + _toolStripSeparator2, + _loadAudioEditorBtn, + _playPauseEditorBtn, + _stopEditorBtn, + _playTimeEditorLbl + }); _songEditorTopToolStrip.Location = new Point(0, 0); _songEditorTopToolStrip.Name = "_songEditorTopToolStrip"; _songEditorTopToolStrip.Size = new Size(590, 25); @@ -3601,7 +3735,7 @@ private void InitializeComponent() ClientSize = new Size(784, 565); Controls.Add(_mainContainer); DoubleBuffered = true; - Icon = ((Icon)(resources.GetObject("$this.Icon"))); + Icon = ((Icon) (resources.GetObject("$this.Icon"))); MainMenuStrip = _topMenuStrip; MinimumSize = new Size(800, 600); Name = "MainMenu"; @@ -3636,7 +3770,7 @@ private void InitializeComponent() _tierTLPanel.ResumeLayout(false); _tierPropsPanel.ResumeLayout(false); _tierPropsPanel.PerformLayout(); - ((ISupportInitialize)(_tierUnlockedNumBox)).EndInit(); + ((ISupportInitialize) (_tierUnlockedNumBox)).EndInit(); _tierSongsPanel.ResumeLayout(false); _tierSongsPanel.PerformLayout(); _setlistStrip.ResumeLayout(false); @@ -3654,8 +3788,7 @@ private void InitializeComponent() _songEditorTopToolStrip.ResumeLayout(false); _songEditorTopToolStrip.PerformLayout(); ResumeLayout(false); - - } + } private void LoadMore() { @@ -3674,570 +3807,634 @@ private void LoadMore() _songEditorControl.method_29(method_1); } - private void method_12(bool bool1) - { - ToolStripItem arg_1F0 = _saveChartMenuItem; - ToolStripItem arg190 = _rebuildSongMenuItem; - _deleteSongMenuItem.Enabled = false; - arg190.Enabled = false; - arg_1F0.Enabled = false; - ToolStripItem argB30 = _addMenuItem; - ToolStripItem argAc0 = _manageGameMenuItem; - ToolStripItem argA20 = _manageSongsMenuItem; - ToolStripItem arg980 = _executeActionsMenuItem; - ToolStripItem arg_8E0 = _clearActionsMenuItem; - ToolStripItem arg840 = _saveSghMenuItem; + private void method_12(bool bool1) + { + ToolStripItem arg_1F0 = _saveChartMenuItem; + ToolStripItem arg190 = _rebuildSongMenuItem; + _deleteSongMenuItem.Enabled = false; + arg190.Enabled = false; + arg_1F0.Enabled = false; + ToolStripItem argB30 = _addMenuItem; + ToolStripItem argAc0 = _manageGameMenuItem; + ToolStripItem argA20 = _manageSongsMenuItem; + ToolStripItem arg980 = _executeActionsMenuItem; + ToolStripItem arg_8E0 = _clearActionsMenuItem; + ToolStripItem arg840 = _saveSghMenuItem; ToolStripItem export = _exportSetlistAsChartsToolStripMenuItem; ToolStripItem arg_7B0 = _saveTghMenuItem; - Control arg730 = _setlistStrip; - Control arg_6B0 = _setlistConfTLPanel; - _gh3FolderMenuItem.Enabled = bool1; - arg_6B0.Enabled = bool1; - arg730.Enabled = bool1; - arg_7B0.Enabled = bool1; - arg840.Enabled = bool1; - arg_8E0.Enabled = bool1; - arg980.Enabled = bool1; - argA20.Enabled = bool1; - argAc0.Enabled = bool1; - argB30.Enabled = bool1; + Control arg730 = _setlistStrip; + Control arg_6B0 = _setlistConfTLPanel; + _gh3FolderMenuItem.Enabled = bool1; + arg_6B0.Enabled = bool1; + arg730.Enabled = bool1; + arg_7B0.Enabled = bool1; + arg840.Enabled = bool1; + arg_8E0.Enabled = bool1; + arg980.Enabled = bool1; + argA20.Enabled = bool1; + argAc0.Enabled = bool1; + argB30.Enabled = bool1; export.Enabled = bool1; - } - - public void InitializeLanguageList() - { - var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); - string[] array = { - "English", - "French", - "Italian", - "Spanish", - "German", - "Korean" - }; - for (var i = 0; i < array.Length; i++) - { - registryKey.SetValue(array[i], _languageList[i]); - } - _sysEnglishMenuItem.Text = _languageList[0]; - _sysFrenchMenuItem.Text = _languageList[1]; - _sysItalianMenuItem.Text = _languageList[2]; - _sysSpanishMenuItem.Text = _languageList[3]; - _sysGermanMenuItem.Text = _languageList[4]; - _sysKoreanMenuItem.Text = _languageList[5]; - } - - private void OpenGameSettings_MenuItem_Click(object sender, EventArgs e) - { - LoadCurrentGameSettings(false); - } - - private void RecoverGameSettings_MenuItem_Click(object sender, EventArgs e) - { - LoadCurrentGameSettings(true); - } - - private void LoadCurrentGameSettings(bool bool1) - { - var loadGameSettings = new LoadGameSettings(_languageList); - if (loadGameSettings.ShowDialog() != DialogResult.OK) - { - return; - } - method_15(); - _languageList = loadGameSettings.method_2(); - InitializeLanguageList(); - try - { - var registryKey = Registry.LocalMachine.OpenSubKey(_gameRegistry); - _dataFolder = (string)registryKey.GetValue("Path") + "\\DATA\\"; - if (!Directory.Exists(_dataFolder)) - { - throw new Exception(); - } - } - catch - { - var text = KeyGenerator.OpenOrSaveFile("Find Guitar Hero " + (_isAerosmith ? "Aerosmith" : "3"), _isAerosmith ? "Guitar Hero Aerosmith Executable|Guitar Hero Aerosmith.exe" : "Guitar Hero 3 Executable|GH3.exe", true); - if (string.IsNullOrEmpty(text)) - { - return; - } - try - { - _dataFolder = new FileInfo(text).Directory.FullName; - var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); - registryKey.SetValue("Path", _dataFolder); - _dataFolder += "\\DATA\\"; - } - catch - { - MessageBox.Show("Guitar Hero " + (_isAerosmith ? "Aerosmith" : "3") + " is not installed properly on this computer.", "Error!"); - return; - } - } - var text2 = _list0[loadGameSettings.method_3()]; - var int_ = loadGameSettings.method_3(); - using (new Class217("QB Parse Operations")) - { - try - { - if (!method_16(int_) && DialogResult.Yes == MessageBox.Show("A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && !method_17(int_)) - { - return; - } - var class2 = new ZzPabNode(string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), false); - Gh3Songlist gH3Songlist = null; - using (Class3190 = new ZzPabNode(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", _dataFolder + "PAK\\qb" + text2 + ".pab.xen", false)) - { - if (method_19(int_).GameSettingsAreValid()) - { - if (!bool1) - { - goto IL_478; - } - } - try - { - gH3Songlist = new Gh3Songlist(Class3190.ZzGetNode1("scripts\\guitar\\songlist.qb"), new Gh3Songlist(class2.ZzGetNode1("scripts\\guitar\\songlist.qb"), null)); - new ZzSetListParser(Class3190, gH3Songlist, _isAerosmith).method_0(); - } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - } - Class3190.Dispose(); - Class3190 = null; - if (gH3Songlist != null) - { - var dialogResult = MessageBox.Show("Game Settings files are not compatible, but something can be recovered. Do you wish to recover when starting from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNoCancel); - if (dialogResult == DialogResult.Cancel) - { - return; - } - if (dialogResult == DialogResult.No) - { - gH3Songlist = null; - } - } - else if (DialogResult.No == MessageBox.Show("Game Settings files are not compatible, and nothing can be recovered. Do you wish to start from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo)) - { - return; - } - if (!method_16(int_)) - { - return; - } - KeyGenerator.smethod_19(_dataFolder + "PAK\\qb" + text2 + ".pab.xen", string.Concat(_appDirectory, _backupName, "lastedited\\qb", text2, ".pab.xen"), true); - KeyGenerator.smethod_19(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", string.Concat(_appDirectory, _backupName, "lastedited\\qb", text2, ".pak.xen"), true); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), _dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), _dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); - IL_478:; - } - Class3190 = new ZzPabNode(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", _dataFolder + "PAK\\qb" + text2 + ".pab.xen", false); - method_20(int_); - _gh3Songlist = new Gh3Songlist(Class3190.ZzGetNode1("scripts\\guitar\\songlist.qb"), new Gh3Songlist(class2.ZzGetNode1("scripts\\guitar\\songlist.qb"), null)); - class2.Dispose(); - var flag = false; - if (gH3Songlist != null) - { - foreach (var current in gH3Songlist.Keys) - { - if (!_gh3Songlist.method_3(current)) - { - _gh3Songlist.Add(gH3Songlist[current]); - flag = true; - } - } - } - if (flag) - { - method_4(new Class247(Class3190, _gh3Songlist)); - } - new CustomMenuCreator(Class3190, _isAerosmith).method_0(); - new ZzSetListParser(Class3190, _gh3Songlist, _isAerosmith).method_0(); - if (flag && gH3Songlist.Gh3SetlistList.Count != 0) - { - var flag2 = false; - using (var enumerator2 = gH3Songlist.Gh3SetlistList.Keys.GetEnumerator()) - { - IL_78C: - while (enumerator2.MoveNext()) - { - var current2 = enumerator2.Current; - var gH3Setlist = gH3Songlist.Gh3SetlistList[current2]; - if (gH3Setlist.method_4()) - { - try - { - /*if (this.gh3Songlist_0.CustomBitMask == -1) - { - break; - }*/ - for (var i = 0; ; ) - { - var num = 1 << i; - if (!((_gh3Songlist.CustomBitMask & num) == 0)) - goto SKIPIT; + } + + public void InitializeLanguageList() + { + var registryKey = Registry.LocalMachine.CreateSubKey(_ghtcpRegistry); + string[] array = + { + "English", + "French", + "Italian", + "Spanish", + "German", + "Korean" + }; + for (var i = 0; i < array.Length; i++) + { + registryKey.SetValue(array[i], _languageList[i]); + } + _sysEnglishMenuItem.Text = _languageList[0]; + _sysFrenchMenuItem.Text = _languageList[1]; + _sysItalianMenuItem.Text = _languageList[2]; + _sysSpanishMenuItem.Text = _languageList[3]; + _sysGermanMenuItem.Text = _languageList[4]; + _sysKoreanMenuItem.Text = _languageList[5]; + } + + private void OpenGameSettings_MenuItem_Click(object sender, EventArgs e) + { + LoadCurrentGameSettings(false); + } - _gh3Songlist.CustomBitMask |= (gH3Setlist.CustomBit = num); - IL_666: - gH3Setlist.Prefix = "custom" + (i + 1); - int num2; - _gh3Songlist.Gh3SetlistList.Add(num2 = QbSongClass1.AddKeyToDictionary("gh3_custom" + (i + 1) + "_songs"), gH3Setlist); - int value; - _gh3Songlist.Dictionary1.Add(value = QbSongClass1.AddKeyToDictionary("custom" + (i + 1) + "_progression"), new GhLink(num2)); - _gh3Songlist.Class2140.Add("Custom Setlist " + (i + 1), value); - method_4(new Class246(value, Class3190, _gh3Songlist, true)); - flag2 = true; - goto IL_78C; + private void RecoverGameSettings_MenuItem_Click(object sender, EventArgs e) + { + LoadCurrentGameSettings(true); + } + private void LoadCurrentGameSettings(bool bool1) + { + var loadGameSettings = new LoadGameSettings(_languageList); + if (loadGameSettings.ShowDialog() != DialogResult.OK) + { + return; + } + method_15(); + _languageList = loadGameSettings.method_2(); + InitializeLanguageList(); + try + { + var registryKey = Registry.LocalMachine.OpenSubKey(_gameRegistry); + _dataFolder = (string) registryKey.GetValue("Path") + "\\DATA\\"; + if (!Directory.Exists(_dataFolder)) + { + throw new Exception(); + } + } + catch + { + var text = KeyGenerator.OpenOrSaveFile("Find Guitar Hero " + (_isAerosmith ? "Aerosmith" : "3"), + _isAerosmith + ? "Guitar Hero Aerosmith Executable|Guitar Hero Aerosmith.exe" + : "Guitar Hero 3 Executable|GH3.exe", true); + if (string.IsNullOrEmpty(text)) + { + return; + } + try + { + _dataFolder = new FileInfo(text).Directory.FullName; + var registryKey = Registry.LocalMachine.CreateSubKey(_gameRegistry); + registryKey.SetValue("Path", _dataFolder); + _dataFolder += "\\DATA\\"; + } + catch + { + MessageBox.Show( + "Guitar Hero " + (_isAerosmith ? "Aerosmith" : "3") + + " is not installed properly on this computer.", "Error!"); + return; + } + } + var text2 = _list0[loadGameSettings.method_3()]; + var int_ = loadGameSettings.method_3(); + using (new Class217("QB Parse Operations")) + { + try + { + if (!method_16(int_) && DialogResult.Yes == + MessageBox.Show( + "A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", + "Loading Game Settings", MessageBoxButtons.YesNo) && !method_17(int_)) + { + return; + } + var class2 = new ZzPabNode( + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), false); + Gh3Songlist gH3Songlist = null; + using (Class3190 = new ZzPabNode(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", + _dataFolder + "PAK\\qb" + text2 + ".pab.xen", false)) + { + if (method_19(int_).GameSettingsAreValid()) + { + if (!bool1) + { + goto IL_478; + } + } + try + { + gH3Songlist = new Gh3Songlist(Class3190.ZzGetNode1("scripts\\guitar\\songlist.qb"), + new Gh3Songlist(class2.ZzGetNode1("scripts\\guitar\\songlist.qb"), null)); + new ZzSetListParser(Class3190, gH3Songlist, _isAerosmith).method_0(); + } + catch (Exception ex) + { + Console.WriteLine(ex.ToString()); + } + Class3190.Dispose(); + Class3190 = null; + if (gH3Songlist != null) + { + var dialogResult = + MessageBox.Show( + "Game Settings files are not compatible, but something can be recovered. Do you wish to recover when starting from backup? (Overwriting!)", + "Loading Game Settings", MessageBoxButtons.YesNoCancel); + if (dialogResult == DialogResult.Cancel) + { + return; + } + if (dialogResult == DialogResult.No) + { + gH3Songlist = null; + } + } + else if (DialogResult.No == + MessageBox.Show( + "Game Settings files are not compatible, and nothing can be recovered. Do you wish to start from backup? (Overwriting!)", + "Loading Game Settings", MessageBoxButtons.YesNo)) + { + return; + } + if (!method_16(int_)) + { + return; + } + KeyGenerator.smethod_19(_dataFolder + "PAK\\qb" + text2 + ".pab.xen", + string.Concat(_appDirectory, _backupName, "lastedited\\qb", text2, ".pab.xen"), true); + KeyGenerator.smethod_19(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", + string.Concat(_appDirectory, _backupName, "lastedited\\qb", text2, ".pak.xen"), true); + KeyGenerator.smethod_19( + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), + _dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); + KeyGenerator.smethod_19( + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), + _dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); + IL_478: + ; + } + Class3190 = new ZzPabNode(_dataFolder + "PAK\\qb" + text2 + ".pak.xen", + _dataFolder + "PAK\\qb" + text2 + ".pab.xen", false); + method_20(int_); + _gh3Songlist = new Gh3Songlist(Class3190.ZzGetNode1("scripts\\guitar\\songlist.qb"), + new Gh3Songlist(class2.ZzGetNode1("scripts\\guitar\\songlist.qb"), null)); + class2.Dispose(); + var flag = false; + if (gH3Songlist != null) + { + foreach (var current in gH3Songlist.Keys) + { + if (!_gh3Songlist.method_3(current)) + { + _gh3Songlist.Add(gH3Songlist[current]); + flag = true; + } + } + } + if (flag) + { + method_4(new Class247(Class3190, _gh3Songlist)); + } + new CustomMenuCreator(Class3190, _isAerosmith).method_0(); + new ZzSetListParser(Class3190, _gh3Songlist, _isAerosmith).method_0(); + if (flag && gH3Songlist.Gh3SetlistList.Count != 0) + { + var flag2 = false; + using (var enumerator2 = gH3Songlist.Gh3SetlistList.Keys.GetEnumerator()) + { + IL_78C: + while (enumerator2.MoveNext()) + { + var current2 = enumerator2.Current; + var gH3Setlist = gH3Songlist.Gh3SetlistList[current2]; + if (gH3Setlist.method_4()) + { + try + { + /*if (this.gh3Songlist_0.CustomBitMask == -1) + { + break; + }*/ + for (var i = 0;;) + { + var num = 1 << i; + if (!((_gh3Songlist.CustomBitMask & num) == 0)) + goto SKIPIT; - SKIPIT: + _gh3Songlist.CustomBitMask |= (gH3Setlist.CustomBit = num); + IL_666: + gH3Setlist.Prefix = "custom" + (i + 1); + int num2; + _gh3Songlist.Gh3SetlistList.Add( + num2 = + QbSongClass1.AddKeyToDictionary("gh3_custom" + (i + 1) + "_songs"), + gH3Setlist); + int value; + _gh3Songlist.Dictionary1.Add( + value = + QbSongClass1.AddKeyToDictionary( + "custom" + (i + 1) + "_progression"), new GhLink(num2)); + _gh3Songlist.Class2140.Add("Custom Setlist " + (i + 1), value); + method_4(new Class246(value, Class3190, _gh3Songlist, true)); + flag2 = true; + goto IL_78C; + + + SKIPIT: i++; if (i >= 32) goto IL_666; - } - - } - catch (Exception ex2) - { - Console.WriteLine(ex2.ToString()); - continue; - } - } - if (gH3Setlist.method_2() == "scripts\\guitar\\guitar_download.qb") - { - _gh3Songlist.Gh3SetlistList[current2].method_0().AddRange(gH3Setlist.method_0()); - method_4(new ZzSetListUpdater(current2, Class3190, _gh3Songlist)); - } - } - } - if (flag2) - { - method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); - } - } - new Class249(Class3190).method_0(); - new QbDatabaseInitialModifier(Class3190, _isAerosmith).method_0(); - RefreshSongListBox(); - } - catch (Exception ex3) - { - if (Class3190 != null) - { - Class3190.Dispose(); - Class3190 = null; - } - Console.WriteLine(ex3.Message); - if (DialogResult.Yes == MessageBox.Show("Game Settings files are corrupt. Do you wish to start from backup? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && method_16(int_)) - { - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), _dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), _dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); - } - return; - } - } - foreach (var current3 in _gh3Songlist.Class2140.Keys) - { - _setlistDropBox.Items.Add(current3); - } - method_12(true); - if (_setlistDropBox.Items.Count != 0) - { - _setlistDropBox.SelectedIndex = 0; - } - _tabControl.SelectedIndex = 1; - } - - private void ClearGameSettings_MenuItem_Click(object sender, EventArgs e) - { - if (DialogResult.Yes == MessageBox.Show("Are You sure you want to Clear All Game Settings?", "Warning!", MessageBoxButtons.YesNo)) - { - method_15(); - } - } - - private void method_15() - { - method_12(false); - if (_gh3Songlist != null) - { - _gh3Songlist.Clear(); - _gh3Songlist.Gh3SetlistList.Clear(); - } - _gh3Songlist = null; - _songListBox.Items.Clear(); - _setlistDropBox.Items.Clear(); - _actionRequestsListBox.Items.Clear(); + } + } + catch (Exception ex2) + { + Console.WriteLine(ex2.ToString()); + continue; + } + } + if (gH3Setlist.method_2() == "scripts\\guitar\\guitar_download.qb") + { + _gh3Songlist.Gh3SetlistList[current2].method_0().AddRange(gH3Setlist.method_0()); + method_4(new ZzSetListUpdater(current2, Class3190, _gh3Songlist)); + } + } + } + if (flag2) + { + method_4(new UpdateSetlistSwitcher(Class3190, _gh3Songlist, _isAerosmith)); + } + } + new Class249(Class3190).method_0(); + new QbDatabaseInitialModifier(Class3190, _isAerosmith).method_0(); + RefreshSongListBox(); + } + catch (Exception ex3) + { + if (Class3190 != null) + { + Class3190.Dispose(); + Class3190 = null; + } + Console.WriteLine(ex3.Message); + if (DialogResult.Yes == MessageBox.Show( + "Game Settings files are corrupt. Do you wish to start from backup? (Overwriting!)", + "Loading Game Settings", MessageBoxButtons.YesNo) && method_16(int_)) + { + KeyGenerator.smethod_19( + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pab.xen"), + _dataFolder + "PAK\\qb" + text2 + ".pab.xen", true); + KeyGenerator.smethod_19( + string.Concat(_appDirectory, _backupName, "originals\\qb", text2, ".pak.xen"), + _dataFolder + "PAK\\qb" + text2 + ".pak.xen", true); + } + return; + } + } + foreach (var current3 in _gh3Songlist.Class2140.Keys) + { + _setlistDropBox.Items.Add(current3); + } + method_12(true); + if (_setlistDropBox.Items.Count != 0) + { + _setlistDropBox.SelectedIndex = 0; + } + _tabControl.SelectedIndex = 1; + } + + private void ClearGameSettings_MenuItem_Click(object sender, EventArgs e) + { + if (DialogResult.Yes == MessageBox.Show("Are You sure you want to Clear All Game Settings?", "Warning!", + MessageBoxButtons.YesNo)) + { + method_15(); + } + } + + private void method_15() + { + method_12(false); + if (_gh3Songlist != null) + { + _gh3Songlist.Clear(); + _gh3Songlist.Gh3SetlistList.Clear(); + } + _gh3Songlist = null; + _songListBox.Items.Clear(); + _setlistDropBox.Items.Clear(); + _actionRequestsListBox.Items.Clear(); //this.notifyIcon_0.Visible = false; - method_23(); - if (!Directory.Exists(_appDirectory + "log")) - { - Directory.CreateDirectory(_appDirectory + "log"); - } - Class216.smethod_0(_appDirectory + "log\\"); - Class216.smethod_2(); - if (Class3190 != null) - { - Class3190.Dispose(); - } - Class3190 = null; - GC.Collect(); - } - - private bool method_16(int int3) - { - var text = string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pab.xen"); - var icollection = _isAerosmith ? _int2[int3] : _int1[int3]; - return File.Exists(text) && File.Exists(text.Replace(".pab.xen", ".pak.xen")) && KeyGenerator.smethod_53(KeyGenerator.smethod_21(KeyGenerator.HashStream(text)), icollection); - } - - private bool method_17(int int3) - { - var text = _dataFolder + "PAK\\qb" + _list0[int3] + ".pab.xen"; - var icollection = _isAerosmith ? _int2[int3] : _int1[int3]; - while (!File.Exists(text) || !File.Exists(text.Replace(".pab.xen", ".pak.xen")) || !KeyGenerator.smethod_53(KeyGenerator.smethod_21(KeyGenerator.HashStream(text)), icollection)) - { - if ((text = KeyGenerator.OpenOrSaveFile("Find The Original V1.3 Game Settings.", "Original V1.3 Game Settings|qb" + _list0[int3] + ".pab.xen", true)).Equals("")) - { - return false; - } - } - KeyGenerator.smethod_19(text, string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pab.xen"), true); - KeyGenerator.smethod_19(text.Replace(".pab.xen", ".pak.xen"), string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pak.xen"), true); - return true; - } - - private bool method_18() - { - bool result; - try - { - GameSettingsChecker.SignHash(Class3190); - Class3190.vmethod_1(); - GC.Collect(); - result = true; - } - catch (Exception ex) - { - MessageBox.Show(ex.Message); - result = false; - } - return result; - } - - private GameSettingsChecker method_19(int int3) - { - if (File.Exists(Class3190.String0) && File.Exists(Class3190.String2) && KeyGenerator.smethod_53(KeyGenerator.smethod_21(KeyGenerator.HashStream(Class3190.String2)), _isAerosmith ? _int2[int3] : _int1[int3])) - { - return new GameSettingsChecker(true); - } - GameSettingsChecker result; - try - { - result = new GameSettingsChecker(Class3190); - } - catch - { - result = new GameSettingsChecker(false); - } - return result; - } - - private void method_20(int int3) - { - } - - private void RestoreOriginal_MenuItem_Click(object sender, EventArgs e) - { - if (DialogResult.Yes != MessageBox.Show("Do you wish to continue with Original Game Settings Restoration? Current Game Settings will be overwritten!", "Original Game Settings Restoration", MessageBoxButtons.YesNo)) - { - return; - } - var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); - var int_ = new List(_list0).IndexOf(text.Replace("qb", "")); - if (method_16(int_)) - { - method_15(); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\", text, ".pak.xen"), _dataFolder + "PAK\\" + text + ".pak.xen", true); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\", text, ".pab.xen"), _dataFolder + "PAK\\" + text + ".pab.xen", true); - return; - } - method_17(int_); - } - - private void RestoreLast_MenuItem_Click(object sender, EventArgs e) - { - if (DialogResult.Yes != MessageBox.Show("Do you wish to continue with Last Game Settings Restoration? Current Game Settings will be overwritten!", "Last Game Settings Restoration", MessageBoxButtons.YesNo)) - { - return; - } - var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); - if (File.Exists(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pak.xen")) && File.Exists(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pab.xen"))) - { - method_15(); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pak.xen"), _dataFolder + "PAK\\" + text + ".pak.xen", true); - KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pab.xen"), _dataFolder + "PAK\\" + text + ".pab.xen", true); - return; - } - MessageBox.Show("Last Game Settings were never backuped.", "Error!"); - } - - private void GameSettingsSwitch_MenuItem_Click(object sender, EventArgs e) - { - if (DialogResult.Yes != MessageBox.Show("Do you wish to switch Game Settings to a different language? Current Game Settings will be overwritten and you will start from a backup!", "Game Settings Switch", MessageBoxButtons.YesNo)) - { - return; - } - var loadGameSettings = new LoadGameSettings(new[] - { - "English", - "French", - "Italian", - "Spanish", - "German", - "Korean" - }); - if (loadGameSettings.ShowDialog() != DialogResult.OK) - { - return; - } - var num = loadGameSettings.method_3(); - var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); - if (!method_16(num) && DialogResult.Yes == MessageBox.Show("A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && !method_17(num)) - { - return; - } - new List(_list0).IndexOf(text.Replace("qb", "")); - method_15(); - using (var @class = new ZzPabNode(string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[num], ".pak.xen"), string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[num], ".pab.xen"), false)) - { - GameSettingsChecker.SignHash(@class); - @class.method_20(_dataFolder + "PAK\\" + text + ".pak.xen", _dataFolder + "PAK\\" + text + ".pab.xen"); - } - GC.Collect(); - } - - private void method_21(object sender, EventArgs2 e) - { - _tierApplyBtn.Enabled = true; - } - - private void TierSongs_ListBox_DragDrop(object sender, DragEventArgs e) { + method_23(); + if (!Directory.Exists(_appDirectory + "log")) + { + Directory.CreateDirectory(_appDirectory + "log"); + } + Class216.smethod_0(_appDirectory + "log\\"); + Class216.smethod_2(); + if (Class3190 != null) + { + Class3190.Dispose(); + } + Class3190 = null; + GC.Collect(); + } + + private bool method_16(int int3) + { + var text = string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pab.xen"); + var icollection = _isAerosmith ? _int2[int3] : _int1[int3]; + return File.Exists(text) && File.Exists(text.Replace(".pab.xen", ".pak.xen")) && KeyGenerator.smethod_53( + KeyGenerator.smethod_21(KeyGenerator.HashStream(text)), icollection); + } + + private bool method_17(int int3) + { + var text = _dataFolder + "PAK\\qb" + _list0[int3] + ".pab.xen"; + var icollection = _isAerosmith ? _int2[int3] : _int1[int3]; + while (!File.Exists(text) || !File.Exists(text.Replace(".pab.xen", ".pak.xen")) || !KeyGenerator.smethod_53( + KeyGenerator.smethod_21(KeyGenerator.HashStream(text)), icollection)) + { + if ((text = KeyGenerator.OpenOrSaveFile("Find The Original V1.3 Game Settings.", + "Original V1.3 Game Settings|qb" + _list0[int3] + ".pab.xen", true)).Equals("")) + { + return false; + } + } + KeyGenerator.smethod_19(text, + string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pab.xen"), true); + KeyGenerator.smethod_19(text.Replace(".pab.xen", ".pak.xen"), + string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[int3], ".pak.xen"), true); + return true; + } + + private bool method_18() + { + bool result; + try + { + GameSettingsChecker.SignHash(Class3190); + Class3190.vmethod_1(); + GC.Collect(); + result = true; + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + result = false; + } + return result; + } + + private GameSettingsChecker method_19(int int3) + { + if (File.Exists(Class3190.String0) && File.Exists(Class3190.String2) && KeyGenerator.smethod_53( + KeyGenerator.smethod_21(KeyGenerator.HashStream(Class3190.String2)), + _isAerosmith ? _int2[int3] : _int1[int3])) + { + return new GameSettingsChecker(true); + } + GameSettingsChecker result; + try + { + result = new GameSettingsChecker(Class3190); + } + catch + { + result = new GameSettingsChecker(false); + } + return result; + } + + private void method_20(int int3) + { + } + + private void RestoreOriginal_MenuItem_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != MessageBox.Show( + "Do you wish to continue with Original Game Settings Restoration? Current Game Settings will be overwritten!", + "Original Game Settings Restoration", MessageBoxButtons.YesNo)) + { + return; + } + var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); + var int_ = new List(_list0).IndexOf(text.Replace("qb", "")); + if (method_16(int_)) + { + method_15(); + KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\", text, ".pak.xen"), + _dataFolder + "PAK\\" + text + ".pak.xen", true); + KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "originals\\", text, ".pab.xen"), + _dataFolder + "PAK\\" + text + ".pab.xen", true); + return; + } + method_17(int_); + } + + private void RestoreLast_MenuItem_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != MessageBox.Show( + "Do you wish to continue with Last Game Settings Restoration? Current Game Settings will be overwritten!", + "Last Game Settings Restoration", MessageBoxButtons.YesNo)) + { + return; + } + var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); + if (File.Exists(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pak.xen")) && File.Exists( + string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pab.xen"))) + { + method_15(); + KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pak.xen"), + _dataFolder + "PAK\\" + text + ".pak.xen", true); + KeyGenerator.smethod_19(string.Concat(_appDirectory, _backupName, "lastedited\\", text, ".pab.xen"), + _dataFolder + "PAK\\" + text + ".pab.xen", true); + return; + } + MessageBox.Show("Last Game Settings were never backuped.", "Error!"); + } + + private void GameSettingsSwitch_MenuItem_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != MessageBox.Show( + "Do you wish to switch Game Settings to a different language? Current Game Settings will be overwritten and you will start from a backup!", + "Game Settings Switch", MessageBoxButtons.YesNo)) + { + return; + } + var loadGameSettings = new LoadGameSettings(new[] + { + "English", + "French", + "Italian", + "Spanish", + "German", + "Korean" + }); + if (loadGameSettings.ShowDialog() != DialogResult.OK) + { + return; + } + var num = loadGameSettings.method_3(); + var text = KeyGenerator.GetFileNameNoExt(Class3190.String0); + if (!method_16(num) && DialogResult.Yes == + MessageBox.Show("A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", + "Loading Game Settings", MessageBoxButtons.YesNo) && !method_17(num)) + { + return; + } + new List(_list0).IndexOf(text.Replace("qb", "")); + method_15(); + using (var @class = new ZzPabNode( + string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[num], ".pak.xen"), + string.Concat(_appDirectory, _backupName, "originals\\qb", _list0[num], ".pab.xen"), false)) + { + GameSettingsChecker.SignHash(@class); + @class.method_20(_dataFolder + "PAK\\" + text + ".pak.xen", _dataFolder + "PAK\\" + text + ".pab.xen"); + } + GC.Collect(); + } + + private void method_21(object sender, EventArgs2 e) + { + _tierApplyBtn.Enabled = true; + } + + private void TierSongs_ListBox_DragDrop(object sender, DragEventArgs e) + { _tierApplyBtn.Enabled = true; } private void TierSongs_ListBox_MouseDown(object sender, MouseEventArgs e) - { + { var num = _tierSongsListBox.IndexFromPoint(e.Location); - if (num >= 0 && num < _tierSongsListBox.Items.Count && e.Clicks == 2 && e.Button == MouseButtons.Right) - { - _tierSongsListBox.Items.RemoveAt(num); - _tierApplyBtn.Enabled = true; - } - } - - private void TierSongs_ListBox_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Delete && _songListBox.SelectedItems.Count != 0 && DialogResult.Yes == MessageBox.Show("The selected songs will be deleted from the Tier!\nAre you sure you wish to continue?", "Warning!", MessageBoxButtons.YesNo)) - { - _tierSongsListBox.method_3(); - _tierApplyBtn.Enabled = true; - } - } - - private void method_22(Gh3Tier gh3Tier0) - { - _tierTLPanel.Enabled = true; - _tierTitleTxtBox.Text = gh3Tier0.Title; - _tierUnlockedNumBox.Value = gh3Tier0.Defaultunlocked; - _tierCompMovieTxtBox.Text = gh3Tier0.CompletionMovie; - _tierIconDropBox.SelectedItem = gh3Tier0.SetlistIcon; - _tierStageDropBox.SelectedItem = gh3Tier0.Level; - _tierEncorep1CheckBox.Checked = gh3Tier0.Encorep1; - _tierEncorep2CheckBox.Checked = (gh3Tier0.Encorep2 || gh3Tier0.AerosmithEncoreP1); - _tierBossCheckBox.Checked = gh3Tier0.Boss; - _noCashCheckBox.Checked = gh3Tier0.Nocash; - _unlockAllCheckBox.Checked = gh3Tier0.Unlockall; - _tierSongsListBox.Items.Clear(); - _tierSongsListBox.Items.AddRange(gh3Tier0.Songs.ToArray()); - _tierApplyBtn.Enabled = false; - } - - private void method_23() - { - _tierBox.SelectedIndex = -1; - _tierTLPanel.Enabled = false; - _tierTitleTxtBox.Text = ""; - _tierUnlockedNumBox.Value = 0m; - _tierCompMovieTxtBox.Text = ""; - _tierIconDropBox.SelectedIndex = -1; - _tierStageDropBox.SelectedIndex = -1; - _tierEncorep1CheckBox.Checked = false; - _tierEncorep2CheckBox.Checked = false; - _tierBossCheckBox.Checked = false; - _noCashCheckBox.Checked = false; - _unlockAllCheckBox.Checked = false; - _tierSongsListBox.Items.Clear(); - _tierApplyBtn.Enabled = false; - } - - private void TierBox_SelectedIndexChanged(object sender, EventArgs e) - { - if (_tierBox.SelectedIndex >= 0) - { - method_22((Gh3Tier)_tierBox.Items[_tierBox.SelectedIndex]); - } - } - - private void TierEncorep1_CheckBox_CheckedChanged(object sender, EventArgs e) - { - _tierApplyBtn.Enabled = true; - } - - private void TierUnlockedSet_Btn_Click(object sender, EventArgs e) - { - _tierUnlockedNumBox.Value = _tierSongsListBox.Items.Count; - } - - private void TierApply_Btn_Click(object sender, EventArgs e) - { - var gH3Tier = (Gh3Tier)_tierBox.Items[_tierBox.SelectedIndex]; - gH3Tier.Title = _tierTitleTxtBox.Text; - gH3Tier.Defaultunlocked = Convert.ToInt32(_tierUnlockedNumBox.Value); - gH3Tier.CompletionMovie = _tierCompMovieTxtBox.Text; - gH3Tier.SetlistIcon = (string)_tierIconDropBox.SelectedItem; - gH3Tier.Level = (string)_tierStageDropBox.SelectedItem; - gH3Tier.Boss = _tierBossCheckBox.Checked; - gH3Tier.Nocash = _noCashCheckBox.Checked; - gH3Tier.Unlockall = _unlockAllCheckBox.Checked; - gH3Tier.Encorep1 = _tierEncorep1CheckBox.Checked; - if (_isAerosmith) - { - gH3Tier.AerosmithEncoreP1 = _tierEncorep2CheckBox.Checked; - } - else - { - gH3Tier.Encorep2 = _tierEncorep2CheckBox.Checked; - } - gH3Tier.Songs.Clear(); - foreach (Gh3Song item in _tierSongsListBox.Items) - { - gH3Tier.Songs.Add(item); - } - _tierApplyBtn.Enabled = false; - method_4(new ZzSetListUpdater(_selectedSetlist, Class3190, _gh3Songlist)); - if (_hideUsedMenuItem.Checked) - { - _gh3Songlist.HideUsed = true; - RefreshSongListBox(); - } - } + if (num >= 0 && num < _tierSongsListBox.Items.Count && e.Clicks == 2 && e.Button == MouseButtons.Right) + { + _tierSongsListBox.Items.RemoveAt(num); + _tierApplyBtn.Enabled = true; + } + } - private void forceRB3MidConversionToolStripMenuItem_Click(object sender, EventArgs e) + private void TierSongs_ListBox_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Delete && _songListBox.SelectedItems.Count != 0 && DialogResult.Yes == + MessageBox.Show("The selected songs will be deleted from the Tier!\nAre you sure you wish to continue?", + "Warning!", MessageBoxButtons.YesNo)) + { + _tierSongsListBox.method_3(); + _tierApplyBtn.Enabled = true; + } + } + + private void method_22(Gh3Tier gh3Tier0) + { + _tierTLPanel.Enabled = true; + _tierTitleTxtBox.Text = gh3Tier0.Title; + _tierUnlockedNumBox.Value = gh3Tier0.Defaultunlocked; + _tierCompMovieTxtBox.Text = gh3Tier0.CompletionMovie; + _tierIconDropBox.SelectedItem = gh3Tier0.SetlistIcon; + _tierStageDropBox.SelectedItem = gh3Tier0.Level; + _tierEncorep1CheckBox.Checked = gh3Tier0.Encorep1; + _tierEncorep2CheckBox.Checked = (gh3Tier0.Encorep2 || gh3Tier0.AerosmithEncoreP1); + _tierBossCheckBox.Checked = gh3Tier0.Boss; + _noCashCheckBox.Checked = gh3Tier0.Nocash; + _unlockAllCheckBox.Checked = gh3Tier0.Unlockall; + _tierSongsListBox.Items.Clear(); + _tierSongsListBox.Items.AddRange(gh3Tier0.Songs.ToArray()); + _tierApplyBtn.Enabled = false; + } + + private void method_23() + { + _tierBox.SelectedIndex = -1; + _tierTLPanel.Enabled = false; + _tierTitleTxtBox.Text = ""; + _tierUnlockedNumBox.Value = 0m; + _tierCompMovieTxtBox.Text = ""; + _tierIconDropBox.SelectedIndex = -1; + _tierStageDropBox.SelectedIndex = -1; + _tierEncorep1CheckBox.Checked = false; + _tierEncorep2CheckBox.Checked = false; + _tierBossCheckBox.Checked = false; + _noCashCheckBox.Checked = false; + _unlockAllCheckBox.Checked = false; + _tierSongsListBox.Items.Clear(); + _tierApplyBtn.Enabled = false; + } + + private void TierBox_SelectedIndexChanged(object sender, EventArgs e) + { + if (_tierBox.SelectedIndex >= 0) + { + method_22((Gh3Tier) _tierBox.Items[_tierBox.SelectedIndex]); + } + } + + private void TierEncorep1_CheckBox_CheckedChanged(object sender, EventArgs e) + { + _tierApplyBtn.Enabled = true; + } + + private void TierUnlockedSet_Btn_Click(object sender, EventArgs e) + { + _tierUnlockedNumBox.Value = _tierSongsListBox.Items.Count; + } + + private void TierApply_Btn_Click(object sender, EventArgs e) { + var gH3Tier = (Gh3Tier) _tierBox.Items[_tierBox.SelectedIndex]; + gH3Tier.Title = _tierTitleTxtBox.Text; + gH3Tier.Defaultunlocked = Convert.ToInt32(_tierUnlockedNumBox.Value); + gH3Tier.CompletionMovie = _tierCompMovieTxtBox.Text; + gH3Tier.SetlistIcon = (string) _tierIconDropBox.SelectedItem; + gH3Tier.Level = (string) _tierStageDropBox.SelectedItem; + gH3Tier.Boss = _tierBossCheckBox.Checked; + gH3Tier.Nocash = _noCashCheckBox.Checked; + gH3Tier.Unlockall = _unlockAllCheckBox.Checked; + gH3Tier.Encorep1 = _tierEncorep1CheckBox.Checked; + if (_isAerosmith) + { + gH3Tier.AerosmithEncoreP1 = _tierEncorep2CheckBox.Checked; + } + else + { + gH3Tier.Encorep2 = _tierEncorep2CheckBox.Checked; + } + gH3Tier.Songs.Clear(); + foreach (Gh3Song item in _tierSongsListBox.Items) + { + gH3Tier.Songs.Add(item); + } + _tierApplyBtn.Enabled = false; + method_4(new ZzSetListUpdater(_selectedSetlist, Class3190, _gh3Songlist)); + if (_hideUsedMenuItem.Checked) + { + _gh3Songlist.HideUsed = true; + RefreshSongListBox(); + } + } + private void forceRB3MidConversionToolStripMenuItem_Click(object sender, EventArgs e) + { } } -} +} \ No newline at end of file diff --git a/GHNamespace8/NoteEventInterpreter.cs b/GHNamespace8/NoteEventInterpreter.cs index b7a562c..5ab226f 100644 --- a/GHNamespace8/NoteEventInterpreter.cs +++ b/GHNamespace8/NoteEventInterpreter.cs @@ -4,12 +4,12 @@ namespace GHNamespace8 { - public class NoteEventInterpreter - { - public Track NoteList = new Track(); + public class NoteEventInterpreter + { + public Track NoteList = new Track(); //SP - public Track Class2281 = new Track(); + public Track Class2281 = new Track(); //SP public Track Class2282 = new Track(); @@ -29,22 +29,22 @@ public class NoteEventInterpreter //Events public Track> EventList = new Track>(); - public bool AlwaysTrue = true; + public bool AlwaysTrue = true; - private readonly string _currentEventLine; + private readonly string _currentEventLine; - public NoteEventInterpreter() - { - } + public NoteEventInterpreter() + { + } - public NoteEventInterpreter(string[] stringImported, int constant480) - { - if (!(AlwaysTrue = (stringImported.Length == 0)))//If string is empty - { + public NoteEventInterpreter(string[] stringImported, int constant480) + { + if (!(AlwaysTrue = (stringImported.Length == 0))) //If string is empty + { //Cycles through the string array imported (All notes/SP) - for (var i = 0; i < stringImported.Length; i++) - { - var currentString = stringImported[i]; + for (var i = 0; i < stringImported.Length; i++) + { + var currentString = stringImported[i]; /* Indexes: 0=Offset @@ -52,88 +52,94 @@ public NoteEventInterpreter(string[] stringImported, int constant480) 2=Note Value 3=Sustain Length */ - var notesEventsArray = currentString.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - var offset = ChartParser.GetNoteFromResolution(notesEventsArray[0]); - string eventType; - if ((eventType = notesEventsArray[1]) != null) - { - if (!(eventType == "N")) - { - if (!(eventType == "S")) - { - if (eventType == "E") - { + var notesEventsArray = currentString.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + var offset = ChartParser.GetNoteFromResolution(notesEventsArray[0]); + string eventType; + if ((eventType = notesEventsArray[1]) != null) + { + if (!(eventType == "N")) + { + if (!(eventType == "S")) + { + if (eventType == "E") + { //Interprets Events - if (EventList.ContainsKey(offset)) - { - _currentEventLine = notesEventsArray[2]; + if (EventList.ContainsKey(offset)) + { + _currentEventLine = notesEventsArray[2]; for (var j = 3; j < notesEventsArray.Length; j++) - { - _currentEventLine = _currentEventLine + " " + notesEventsArray[j]; - } + { + _currentEventLine = _currentEventLine + " " + notesEventsArray[j]; + } EventList[offset].Add(_currentEventLine); - } - else - { - _currentEventLine = notesEventsArray[2]; - for (var k = 3; k < notesEventsArray.Length; k++) - { - _currentEventLine = _currentEventLine + " " + notesEventsArray[k]; - } - EventList.Add(offset, new List()); - EventList[offset].Add(_currentEventLine); - } - } - } + } + else + { + _currentEventLine = notesEventsArray[2]; + for (var k = 3; k < notesEventsArray.Length; k++) + { + _currentEventLine = _currentEventLine + " " + notesEventsArray[k]; + } + EventList.Add(offset, new List()); + EventList[offset].Add(_currentEventLine); + } + } + } //Interprets Starpower else { - switch (Convert.ToInt32(notesEventsArray[2])) - { - case 0: - if (!Class2282.ContainsKey(offset)) - { - Class2282.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - case 1: - if (!Class2283.ContainsKey(offset)) - { - Class2283.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - case 2: - if (!Class2281.ContainsKey(offset)) - { - Class2281.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - case 3: - if (!Class2284.ContainsKey(offset)) - { - Class2284.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - case 4: - if (!Class2285.ContainsKey(offset)) - { - Class2285.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - case 5: - if (!Class2286.ContainsKey(offset)) - { - Class2286.Add(offset, ChartParser.GetNoteFromResolution(notesEventsArray[3])); - } - break; - } - } - } + switch (Convert.ToInt32(notesEventsArray[2])) + { + case 0: + if (!Class2282.ContainsKey(offset)) + { + Class2282.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + case 1: + if (!Class2283.ContainsKey(offset)) + { + Class2283.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + case 2: + if (!Class2281.ContainsKey(offset)) + { + Class2281.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + case 3: + if (!Class2284.ContainsKey(offset)) + { + Class2284.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + case 4: + if (!Class2285.ContainsKey(offset)) + { + Class2285.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + case 5: + if (!Class2286.ContainsKey(offset)) + { + Class2286.Add(offset, + ChartParser.GetNoteFromResolution(notesEventsArray[3])); + } + break; + } + } + } //Interprets Notes /* Indexes: @@ -142,33 +148,33 @@ public NoteEventInterpreter(string[] stringImported, int constant480) 2=Note Value 3=Sustain Length */ - else + else { var notes = new bool[32]; - var sustainLength = ChartParser.GetNoteFromResolution(notesEventsArray[3]); + var sustainLength = ChartParser.GetNoteFromResolution(notesEventsArray[3]); if (sustainLength <= constant480 / 4) - { - sustainLength = 0; - } - if (!NoteList.ContainsKey(offset)) - { - NoteList.Add(offset, new NotesAtOffset(notes, sustainLength)); - } - else - { - var currentSustainLength = NoteList[offset].SustainLength; + { + sustainLength = 0; + } + if (!NoteList.ContainsKey(offset)) + { + NoteList.Add(offset, new NotesAtOffset(notes, sustainLength)); + } + else + { + var currentSustainLength = NoteList[offset].SustainLength; //Updates sustain length - if (currentSustainLength < sustainLength) - { - NoteList[offset].SustainLength = sustainLength; - } - } + if (currentSustainLength < sustainLength) + { + NoteList[offset].SustainLength = sustainLength; + } + } var note = Convert.ToInt32(notesEventsArray[2]); - NoteList[offset].NoteValues[note] = true; + NoteList[offset].NoteValues[note] = true; } - } - } - } - } - } -} + } + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespace8/NotesAtOffset.cs b/GHNamespace8/NotesAtOffset.cs index 4325b4d..2a5eef8 100644 --- a/GHNamespace8/NotesAtOffset.cs +++ b/GHNamespace8/NotesAtOffset.cs @@ -1,46 +1,46 @@ namespace GHNamespace8 { - public class NotesAtOffset - { - public bool[] NoteValues; + public class NotesAtOffset + { + public bool[] NoteValues; - public int SustainLength; + public int SustainLength; - public NotesAtOffset(bool[] bool1, int sL) - { - NoteValues = bool1; - SustainLength = sL; - } + public NotesAtOffset(bool[] bool1, int sL) + { + NoteValues = bool1; + SustainLength = sL; + } - public NotesAtOffset(int int1, int int2) - { - SetNote(int1); - SustainLength = int2; - } + public NotesAtOffset(int int1, int int2) + { + SetNote(int1); + SustainLength = int2; + } - public int method_0() - { - var num = 0u;//0 - for (var i = 0; i < NoteValues.Length; i++) - { - if (NoteValues[i]) - { - num |= 1u << i; - } - } - return (int)num; - } + public int method_0() + { + var num = 0u; //0 + for (var i = 0; i < NoteValues.Length; i++) + { + if (NoteValues[i]) + { + num |= 1u << i; + } + } + return (int) num; + } - public void SetNote(int int1) - { + public void SetNote(int int1) + { NoteValues = new bool[32]; - for (var i = 0; i < 32; i++) - { - if ((int1 >> i & 1) != 0) - { - NoteValues[i] = true; - } - } - } - } -} + for (var i = 0; i < 32; i++) + { + if ((int1 >> i & 1) != 0) + { + NoteValues[i] = true; + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespace8/SGHManager.cs b/GHNamespace8/SGHManager.cs index d2d6f6c..92ef733 100644 --- a/GHNamespace8/SGHManager.cs +++ b/GHNamespace8/SGHManager.cs @@ -9,92 +9,99 @@ namespace GHNamespace8 { - public class SghManager - { - private readonly Gh3Songlist _gh3SongList; + public class SghManager + { + private readonly Gh3Songlist _gh3SongList; - public Gh3Setlist SetlistToExport; + public Gh3Setlist SetlistToExport; - private readonly string _string0; + private readonly string _string0; - private readonly string _saveLocation; + private readonly string _saveLocation; - public SghManager(Gh3Songlist gh3Songlist1, Gh3Setlist gh3Setlist1, string string2) : this(gh3Songlist1, gh3Setlist1, string2, null) - { - } + public SghManager(Gh3Songlist gh3Songlist1, Gh3Setlist gh3Setlist1, string string2) : this(gh3Songlist1, + gh3Setlist1, string2, null) + { + } - public SghManager(Gh3Songlist gh3Songlist1, Gh3Setlist gh3Setlist1, string saveLocation, string string3) - { - _gh3SongList = gh3Songlist1; - SetlistToExport = gh3Setlist1; - _string0 = string3; - _saveLocation = saveLocation; - } + public SghManager(Gh3Songlist gh3Songlist1, Gh3Setlist gh3Setlist1, string saveLocation, string string3) + { + _gh3SongList = gh3Songlist1; + SetlistToExport = gh3Setlist1; + _string0 = string3; + _saveLocation = saveLocation; + } - public void ImportSGH() - { - byte[] byte_; - ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "songs.info", "SGH9ZIP2PASS4MXKR"); - var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); - foreach (StructurePointerNode class302 in @class.Nodes) - { - var gH3Song = new Gh3Song(class302) {Editable = true}; - _gh3SongList.method_0(gH3Song, _string0 != null); - } - ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "setlist.info", "SGH9ZIP2PASS4MXKR"); - SetlistToExport.method_1(new Gh3Setlist((StructureHeaderNode)new ZzGenericNode1("setlist", KeyGenerator.smethod_8(byte_, "SET4AES4KEY9MXKR")).Nodes[0], _gh3SongList)); - if (_string0 == null) return; - var list = new List(); - var list2 = new List(); - foreach (var current in SetlistToExport.Tiers) - { - foreach (var current2 in current.Songs) - { - if (!current2.Editable) continue; - list.Add(current2.Name + "_song.pak.xen"); - list2.Add(_string0 + "songs\\" + current2.Name + "_song.pak.xen"); - list.Add(current2.Name + ".dat.xen"); - list2.Add(_string0 + "music\\" + current2.Name + ".dat.xen"); - list.Add(current2.Name + ".fsb.xen"); - list2.Add(_string0 + "music\\" + current2.Name + ".fsb.xen"); - } - } - ZipManager.smethod_11(_saveLocation, list2, list, "SGH9ZIP2PASS4MXKR"); - } + public void ImportSGH() + { + byte[] byte_; + ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "songs.info", "SGH9ZIP2PASS4MXKR"); + var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); + foreach (StructurePointerNode class302 in @class.Nodes) + { + var gH3Song = new Gh3Song(class302) {Editable = true}; + _gh3SongList.method_0(gH3Song, _string0 != null); + } + ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "setlist.info", "SGH9ZIP2PASS4MXKR"); + SetlistToExport.method_1(new Gh3Setlist( + (StructureHeaderNode) new ZzGenericNode1("setlist", KeyGenerator.smethod_8(byte_, "SET4AES4KEY9MXKR")) + .Nodes[0], _gh3SongList)); + if (_string0 == null) return; + var list = new List(); + var list2 = new List(); + foreach (var current in SetlistToExport.Tiers) + { + foreach (var current2 in current.Songs) + { + if (!current2.Editable) continue; + list.Add(current2.Name + "_song.pak.xen"); + list2.Add(_string0 + "songs\\" + current2.Name + "_song.pak.xen"); + list.Add(current2.Name + ".dat.xen"); + list2.Add(_string0 + "music\\" + current2.Name + ".dat.xen"); + list.Add(current2.Name + ".fsb.xen"); + list2.Add(_string0 + "music\\" + current2.Name + ".fsb.xen"); + } + } + ZipManager.smethod_11(_saveLocation, list2, list, "SGH9ZIP2PASS4MXKR"); + } - public void method_1() - { - var fileStreamList = new List(); - Stream stream = new MemoryStream(); - KeyGenerator.smethod_1(new ZzGenericNode1("setlist", SetlistToExport.method_6()).method_8(), stream, "SET4AES4KEY9MXKR"); - var fileNameList = new List(); - var list3 = new List(); - foreach (var current in SetlistToExport.Tiers) - { - foreach (var current2 in current.Songs) - { - if (current2.Editable) - { - list3.Add(current2.vmethod_5()); - if (_string0 != null && File.Exists(_string0 + "songs\\" + current2.Name + "_song.pak.xen") && File.Exists(_string0 + "music\\" + current2.Name + ".dat.xen") && File.Exists(_string0 + "music\\" + current2.Name + ".fsb.xen")) - { - fileNameList.Add(current2.Name + "_song.pak.xen"); - fileStreamList.Add(File.OpenRead(_string0 + "songs\\" + current2.Name + "_song.pak.xen")); - fileNameList.Add(current2.Name + ".dat.xen"); - fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".dat.xen")); - fileNameList.Add(current2.Name + ".fsb.xen"); - fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".fsb.xen")); - } - } - } - } - Stream stream2 = new MemoryStream(); - KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2, "SNG4AES4KEY9MXKR"); - fileNameList.Add("setlist.info"); - fileStreamList.Add(stream); - fileNameList.Add("songs.info"); - fileStreamList.Add(stream2); - ZipManager.smethod_0(fileNameList, _saveLocation, "SGH9ZIP2PASS4MXKR", fileStreamList.ToArray()); - } - } -} + public void method_1() + { + var fileStreamList = new List(); + Stream stream = new MemoryStream(); + KeyGenerator.smethod_1(new ZzGenericNode1("setlist", SetlistToExport.method_6()).method_8(), stream, + "SET4AES4KEY9MXKR"); + var fileNameList = new List(); + var list3 = new List(); + foreach (var current in SetlistToExport.Tiers) + { + foreach (var current2 in current.Songs) + { + if (current2.Editable) + { + list3.Add(current2.vmethod_5()); + if (_string0 != null && File.Exists(_string0 + "songs\\" + current2.Name + "_song.pak.xen") && + File.Exists(_string0 + "music\\" + current2.Name + ".dat.xen") && + File.Exists(_string0 + "music\\" + current2.Name + ".fsb.xen")) + { + fileNameList.Add(current2.Name + "_song.pak.xen"); + fileStreamList.Add(File.OpenRead(_string0 + "songs\\" + current2.Name + "_song.pak.xen")); + fileNameList.Add(current2.Name + ".dat.xen"); + fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".dat.xen")); + fileNameList.Add(current2.Name + ".fsb.xen"); + fileStreamList.Add(File.OpenRead(_string0 + "music\\" + current2.Name + ".fsb.xen")); + } + } + } + } + Stream stream2 = new MemoryStream(); + KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2, + "SNG4AES4KEY9MXKR"); + fileNameList.Add("setlist.info"); + fileStreamList.Add(stream); + fileNameList.Add("songs.info"); + fileStreamList.Add(stream2); + ZipManager.smethod_0(fileNameList, _saveLocation, "SGH9ZIP2PASS4MXKR", fileStreamList.ToArray()); + } + } +} \ No newline at end of file diff --git a/GHNamespace8/SectionInterpreter.cs b/GHNamespace8/SectionInterpreter.cs index 9605442..867fcc8 100644 --- a/GHNamespace8/SectionInterpreter.cs +++ b/GHNamespace8/SectionInterpreter.cs @@ -5,49 +5,52 @@ namespace GHNamespace8 { - public class SectionInterpreter - { - public Track> OtherList = new Track>(); + public class SectionInterpreter + { + public Track> OtherList = new Track>(); - public Track SectionList = new Track(); + public Track SectionList = new Track(); - public SectionInterpreter() - { - } + public SectionInterpreter() + { + } - public SectionInterpreter(string[] string0) - { - for (var i = 0; i < string0.Length; i++) - { - var text = string0[i]; - var array = text.Split(new[] - { - '=', - '"' - }, 3, StringSplitOptions.RemoveEmptyEntries); - if (array.Length == 3 && !(array[1].Trim() != "E")) - { - array[2] = array[2].TrimEnd(' ', '\t'); - if (array[2].EndsWith("\"")) - { - array[2] = array[2].Substring(0, array[2].Length - 1); - } - var num = ChartParser.GetNoteFromResolution(array[0].Trim()); - if (array[2].StartsWith("section ")) - { - SectionList.Add(num, CultureInfo.CurrentCulture.TextInfo.ToTitleCase(array[2].Substring("section ".Length).Replace('_', ' '))); - } - else if (OtherList.ContainsKey(num)) - { - OtherList[num].Add(array[2]); - } - else - { - OtherList.Add(num, new List()); - OtherList[num].Add(array[2]); - } - } - } - } - } -} + public SectionInterpreter(string[] string0) + { + for (var i = 0; i < string0.Length; i++) + { + var text = string0[i]; + var array = text.Split(new[] + { + '=', + '"' + }, 3, StringSplitOptions.RemoveEmptyEntries); + if (array.Length == 3 && !(array[1].Trim() != "E")) + { + array[2] = array[2].TrimEnd(' ', '\t'); + if (array[2].EndsWith("\"")) + { + array[2] = array[2].Substring(0, array[2].Length - 1); + } + var num = ChartParser.GetNoteFromResolution(array[0].Trim()); + if (array[2].StartsWith("section ")) + { + SectionList.Add(num, + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(array[2] + .Substring("section ".Length) + .Replace('_', ' '))); + } + else if (OtherList.ContainsKey(num)) + { + OtherList[num].Add(array[2]); + } + else + { + OtherList.Add(num, new List()); + OtherList[num].Add(array[2]); + } + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespace8/SongProperties.cs b/GHNamespace8/SongProperties.cs index 76cc336..2b211f5 100644 --- a/GHNamespace8/SongProperties.cs +++ b/GHNamespace8/SongProperties.cs @@ -6,939 +6,939 @@ namespace GHNamespace8 { - public class SongProperties : Form - { - private readonly Gh3Song _song; + public class SongProperties : Form + { + private readonly Gh3Song _song; - private IContainer icontainer_0; + private IContainer icontainer_0; - private TextBox _yearTxt; + private TextBox _yearTxt; - private NumericUpDown _offsetBox; + private NumericUpDown _offsetBox; - private TextBox _titleTxt; + private TextBox _titleTxt; - private ComboBox _singerBox; + private ComboBox _singerBox; - private ComboBox _countOffBox; + private ComboBox _countOffBox; - private Label _label10; + private Label _label10; - private Label _label9; + private Label _label9; - private Label _label8; + private Label _label8; - private Label _label6; + private Label _label6; - private Label _label7; + private Label _label7; - private TextBox _artistTxt; + private TextBox _artistTxt; - private Label _label1; + private Label _label1; - private ComboBox _bassistBox; + private ComboBox _bassistBox; - private Label _label2; + private Label _label2; - private NumericUpDown _bandVolBox; + private NumericUpDown _bandVolBox; - private Label _label3; + private Label _label3; - private Label _label4; + private Label _label4; - private NumericUpDown _hammerOnBox; + private NumericUpDown _hammerOnBox; - private Label _label5; + private Label _label5; - private RadioButton _byBtn; + private RadioButton _byBtn; - private RadioButton _famousByBtn; + private RadioButton _famousByBtn; - private RadioButton _customTxtBtn; + private RadioButton _customTxtBtn; - private TextBox _artistTextBox; + private TextBox _artistTextBox; - private Label _label11; + private Label _label11; - private CheckBox _chkOriginal; + private CheckBox _chkOriginal; - private CheckBox _chkRhythm; + private CheckBox _chkRhythm; - private CheckBox _chkCoop; + private CheckBox _chkCoop; - private Button _btnApply; + private Button _btnApply; - private Button _btnCancel; + private Button _btnCancel; - private CheckBox _chkKeyboard; + private CheckBox _chkKeyboard; - private RadioButton _rBtnBass; + private RadioButton _rBtnBass; - private RadioButton _rBtnRhythm; + private RadioButton _rBtnRhythm; - private ComboBox _bossBox; + private ComboBox _bossBox; - private Label _label12; + private Label _label12; - private Panel _panel1; + private Panel _panel1; - private Panel _panel2; + private Panel _panel2; - private NumericUpDown _guitarVolBox; + private NumericUpDown _guitarVolBox; - private GroupBox _aeroGroupBox; + private GroupBox _aeroGroupBox; - private NumericUpDown _bpm8NoteBox; + private NumericUpDown _bpm8NoteBox; - private Label _label13; + private Label _label13; - private TextBox _coveredTxt; + private TextBox _coveredTxt; - private Label _label15; + private Label _label15; - private ComboBox _bandBox; + private ComboBox _bandBox; - private Label _label16; + private Label _label16; - private CheckBox _aeroGuitaristBox; + private CheckBox _aeroGuitaristBox; - private CheckBox _perryMicBox; + private CheckBox _perryMicBox; - private TextBox _singAnimPakTxt; + private TextBox _singAnimPakTxt; - private Label _label14; + private Label _label14; - public SongProperties(string songName) - { - InitializeComponent(); - _song = new Gh3Song(); - Text = Text + " (" + songName + ")"; - _singerBox.SelectedIndex = 0; - _countOffBox.SelectedIndex = 0; - _bassistBox.SelectedIndex = 0; - _bossBox.SelectedIndex = 0; - } + public SongProperties(string songName) + { + InitializeComponent(); + _song = new Gh3Song(); + Text = Text + " (" + songName + ")"; + _singerBox.SelectedIndex = 0; + _countOffBox.SelectedIndex = 0; + _bassistBox.SelectedIndex = 0; + _bossBox.SelectedIndex = 0; + } - public SongProperties(Gh3Song song) : this(song.Name) - { - _song = song; - if (_song is GhaSong) - { - _bassistBox.Enabled = false; - _bossBox.Items.Add("Joe Perry Props"); - _bossBox.Items.Add("Tom Morello Props"); - } - else - { - _aeroGroupBox.Enabled = false; - _singerBox.Items.Add("Bret Michaels"); - _bossBox.Items.Add("Tom Morello Props"); - _bossBox.Items.Add("Slash Props"); - _bossBox.Items.Add("Lou Props"); - } + public SongProperties(Gh3Song song) : this(song.Name) + { + _song = song; + if (_song is GhaSong) + { + _bassistBox.Enabled = false; + _bossBox.Items.Add("Joe Perry Props"); + _bossBox.Items.Add("Tom Morello Props"); + } + else + { + _aeroGroupBox.Enabled = false; + _singerBox.Items.Add("Bret Michaels"); + _bossBox.Items.Add("Tom Morello Props"); + _bossBox.Items.Add("Slash Props"); + _bossBox.Items.Add("Lou Props"); + } _btnApply.Enabled = true; // this.gh3Song_0.editable; - _titleTxt.Text = _song.Title; - _artistTxt.Text = _song.Artist; - _yearTxt.Text = _song.Year; - _chkOriginal.Checked = _song.OriginalArtist; - _chkRhythm.Checked = !_song.NoRhythmTrack; - _chkKeyboard.Checked = _song.Keyboard; - _chkCoop.Checked = _song.UseCoopNotetracks; - _rBtnBass.Checked = !(_rBtnRhythm.Checked = _song.NotBass); - if (_song.ArtistText is bool) - { - _famousByBtn.Checked = !(_byBtn.Checked = (bool)_song.ArtistText); - } - else - { - _artistTextBox.Text = (string)_song.ArtistText; - _customTxtBtn.Checked = true; - } - _guitarVolBox.Value = (decimal)_song.GuitarVol; - _bandVolBox.Value = (decimal)_song.BandVol; - _hammerOnBox.Value = (decimal)_song.HammerOn; - _offsetBox.Value = _song.GemOffset; - if (_song.Singer.Equals("")) - { - _singerBox.SelectedIndex = 0; - } - else if (_song.Singer.Equals("male")) - { - _singerBox.SelectedIndex = 1; - } - else if (_song.Singer.Equals("female")) - { - _singerBox.SelectedIndex = 2; - } - else if (_song.Singer.Equals("bret")) - { - _singerBox.SelectedItem = "Bret Michaels"; - } - _countOffBox.SelectedItem = _song.Countoff.ToLower(); - _bassistBox.SelectedItem = _song.Bassist; - if (_song.Boss.Equals("")) - { - _bossBox.SelectedIndex = 0; - } - else if (_song.Boss.Equals("boss_tommorello_props")) - { - _bossBox.SelectedItem = "Tom Morello Props"; - } - else if (_song.Boss.Equals("boss_slash_props")) - { - _bossBox.SelectedItem = "Slash Props"; - } - else if (_song.Boss.Equals("boss_devil_props")) - { - _bossBox.SelectedItem = "Lou Props"; - } - else if (_song.Boss.Equals("boss_joe_props")) - { - _bossBox.SelectedItem = "Joe Perry Props"; - } - if (_aeroGroupBox.Enabled) - { - var gHaSong = (GhaSong)_song; - _coveredTxt.Text = gHaSong.CoveredBy; - _singAnimPakTxt.Text = gHaSong.SingerAnimPak; - _bandBox.SelectedItem = gHaSong.Band; - _bpm8NoteBox.Value = gHaSong.ThinFretbar_8NoteParamsHighBpm; - _aeroGuitaristBox.Checked = gHaSong.GuitaristChecksum; - _perryMicBox.Checked = gHaSong.PerryMicStand; - } - } + _titleTxt.Text = _song.Title; + _artistTxt.Text = _song.Artist; + _yearTxt.Text = _song.Year; + _chkOriginal.Checked = _song.OriginalArtist; + _chkRhythm.Checked = !_song.NoRhythmTrack; + _chkKeyboard.Checked = _song.Keyboard; + _chkCoop.Checked = _song.UseCoopNotetracks; + _rBtnBass.Checked = !(_rBtnRhythm.Checked = _song.NotBass); + if (_song.ArtistText is bool) + { + _famousByBtn.Checked = !(_byBtn.Checked = (bool) _song.ArtistText); + } + else + { + _artistTextBox.Text = (string) _song.ArtistText; + _customTxtBtn.Checked = true; + } + _guitarVolBox.Value = (decimal) _song.GuitarVol; + _bandVolBox.Value = (decimal) _song.BandVol; + _hammerOnBox.Value = (decimal) _song.HammerOn; + _offsetBox.Value = _song.GemOffset; + if (_song.Singer.Equals("")) + { + _singerBox.SelectedIndex = 0; + } + else if (_song.Singer.Equals("male")) + { + _singerBox.SelectedIndex = 1; + } + else if (_song.Singer.Equals("female")) + { + _singerBox.SelectedIndex = 2; + } + else if (_song.Singer.Equals("bret")) + { + _singerBox.SelectedItem = "Bret Michaels"; + } + _countOffBox.SelectedItem = _song.Countoff.ToLower(); + _bassistBox.SelectedItem = _song.Bassist; + if (_song.Boss.Equals("")) + { + _bossBox.SelectedIndex = 0; + } + else if (_song.Boss.Equals("boss_tommorello_props")) + { + _bossBox.SelectedItem = "Tom Morello Props"; + } + else if (_song.Boss.Equals("boss_slash_props")) + { + _bossBox.SelectedItem = "Slash Props"; + } + else if (_song.Boss.Equals("boss_devil_props")) + { + _bossBox.SelectedItem = "Lou Props"; + } + else if (_song.Boss.Equals("boss_joe_props")) + { + _bossBox.SelectedItem = "Joe Perry Props"; + } + if (_aeroGroupBox.Enabled) + { + var gHaSong = (GhaSong) _song; + _coveredTxt.Text = gHaSong.CoveredBy; + _singAnimPakTxt.Text = gHaSong.SingerAnimPak; + _bandBox.SelectedItem = gHaSong.Band; + _bpm8NoteBox.Value = gHaSong.ThinFretbar_8NoteParamsHighBpm; + _aeroGuitaristBox.Checked = gHaSong.GuitaristChecksum; + _perryMicBox.Checked = gHaSong.PerryMicStand; + } + } void btnApply_Click(Object sender, EventArgs e) { - if ( !_song.IsEditable() && (MainMenu.MsgBoxEditDefaultSongs() != DialogResult.Yes) ) + if (!_song.IsEditable() && (MainMenu.MsgBoxEditDefaultSongs() != DialogResult.Yes)) { DialogResult = DialogResult.None; } } - public Gh3Song GetSongWithChanges() - { - _song.Title = _titleTxt.Text; - _song.Artist = _artistTxt.Text; - _song.Year = _yearTxt.Text; - _song.OriginalArtist = _chkOriginal.Checked; - _song.NoRhythmTrack = !_chkRhythm.Checked; - _song.Keyboard = _chkKeyboard.Checked; - _song.UseCoopNotetracks = _chkCoop.Checked; - _song.NotBass = _rBtnRhythm.Checked; - if (_customTxtBtn.Checked) - { - _song.ArtistText = _artistTextBox.Text; - } - else - { - _song.ArtistText = _byBtn.Checked; - } - _song.GuitarVol = (float)_guitarVolBox.Value; - _song.BandVol = (float)_bandVolBox.Value; - _song.HammerOn = (float)_hammerOnBox.Value; - _song.InputOffset = (_song.GemOffset = (int)_offsetBox.Value); - _song.Singer = (new[] - { - "", - "male", - "female", - "bret" - })[_singerBox.SelectedIndex]; - _song.Countoff = (string)_countOffBox.SelectedItem; - _song.Bassist = (string)_bassistBox.SelectedItem; - string a; - if ((a = (string)_bossBox.SelectedItem) != null) - { - if (!(a == "Tom Morello Props")) - { - if (!(a == "Slash Props")) - { - if (!(a == "Lou Props")) - { - if (a == "Joe Perry Props") - { - _song.Boss = "boss_joe_props"; - } - } - else - { - _song.Boss = "boss_devil_props"; - } - } - else - { - _song.Boss = "boss_slash_props"; - } - } - else - { - _song.Boss = "boss_tommorello_props"; - } - } - if (_song is GhaSong) - { - var song = (GhaSong)_song; - song.CoveredBy = _coveredTxt.Text; - song.SingerAnimPak = _singAnimPakTxt.Text; - song.Band = (string)_bandBox.SelectedItem; - _bpm8NoteBox.Value = song.ThinFretbar_8NoteParamsHighBpm; - _aeroGuitaristBox.Checked = song.GuitaristChecksum; - _perryMicBox.Checked = song.PerryMicStand; - } - return _song; - } - - private void ByBtn_CheckedChanged(object sender, EventArgs e) - { - _artistTextBox.Enabled = false; - } - - private void FamousByBtn_CheckedChanged(object sender, EventArgs e) - { - _artistTextBox.Enabled = false; - } - - private void CustomTxtBtn_CheckedChanged(object sender, EventArgs e) - { - _artistTextBox.Enabled = true; - } + public Gh3Song GetSongWithChanges() + { + _song.Title = _titleTxt.Text; + _song.Artist = _artistTxt.Text; + _song.Year = _yearTxt.Text; + _song.OriginalArtist = _chkOriginal.Checked; + _song.NoRhythmTrack = !_chkRhythm.Checked; + _song.Keyboard = _chkKeyboard.Checked; + _song.UseCoopNotetracks = _chkCoop.Checked; + _song.NotBass = _rBtnRhythm.Checked; + if (_customTxtBtn.Checked) + { + _song.ArtistText = _artistTextBox.Text; + } + else + { + _song.ArtistText = _byBtn.Checked; + } + _song.GuitarVol = (float) _guitarVolBox.Value; + _song.BandVol = (float) _bandVolBox.Value; + _song.HammerOn = (float) _hammerOnBox.Value; + _song.InputOffset = (_song.GemOffset = (int) _offsetBox.Value); + _song.Singer = (new[] + { + "", + "male", + "female", + "bret" + })[_singerBox.SelectedIndex]; + _song.Countoff = (string) _countOffBox.SelectedItem; + _song.Bassist = (string) _bassistBox.SelectedItem; + string a; + if ((a = (string) _bossBox.SelectedItem) != null) + { + if (!(a == "Tom Morello Props")) + { + if (!(a == "Slash Props")) + { + if (!(a == "Lou Props")) + { + if (a == "Joe Perry Props") + { + _song.Boss = "boss_joe_props"; + } + } + else + { + _song.Boss = "boss_devil_props"; + } + } + else + { + _song.Boss = "boss_slash_props"; + } + } + else + { + _song.Boss = "boss_tommorello_props"; + } + } + if (_song is GhaSong) + { + var song = (GhaSong) _song; + song.CoveredBy = _coveredTxt.Text; + song.SingerAnimPak = _singAnimPakTxt.Text; + song.Band = (string) _bandBox.SelectedItem; + _bpm8NoteBox.Value = song.ThinFretbar_8NoteParamsHighBpm; + _aeroGuitaristBox.Checked = song.GuitaristChecksum; + _perryMicBox.Checked = song.PerryMicStand; + } + return _song; + } + + private void ByBtn_CheckedChanged(object sender, EventArgs e) + { + _artistTextBox.Enabled = false; + } + + private void FamousByBtn_CheckedChanged(object sender, EventArgs e) + { + _artistTextBox.Enabled = false; + } + + private void CustomTxtBtn_CheckedChanged(object sender, EventArgs e) + { + _artistTextBox.Enabled = true; + } protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - _yearTxt = new TextBox(); - _offsetBox = new NumericUpDown(); - _titleTxt = new TextBox(); - _singerBox = new ComboBox(); - _countOffBox = new ComboBox(); - _label10 = new Label(); - _label9 = new Label(); - _label8 = new Label(); - _label6 = new Label(); - _label7 = new Label(); - _artistTxt = new TextBox(); - _label1 = new Label(); - _bassistBox = new ComboBox(); - _label2 = new Label(); - _bandVolBox = new NumericUpDown(); - _label3 = new Label(); - _guitarVolBox = new NumericUpDown(); - _label4 = new Label(); - _hammerOnBox = new NumericUpDown(); - _label5 = new Label(); - _byBtn = new RadioButton(); - _famousByBtn = new RadioButton(); - _customTxtBtn = new RadioButton(); - _artistTextBox = new TextBox(); - _label11 = new Label(); - _chkOriginal = new CheckBox(); - _chkRhythm = new CheckBox(); - _chkCoop = new CheckBox(); - _btnApply = new Button(); - _btnCancel = new Button(); - _chkKeyboard = new CheckBox(); - _rBtnBass = new RadioButton(); - _rBtnRhythm = new RadioButton(); - _bossBox = new ComboBox(); - _label12 = new Label(); - _panel1 = new Panel(); - _panel2 = new Panel(); - _aeroGroupBox = new GroupBox(); - _singAnimPakTxt = new TextBox(); - _label14 = new Label(); - _perryMicBox = new CheckBox(); - _aeroGuitaristBox = new CheckBox(); - _bandBox = new ComboBox(); - _label16 = new Label(); - _coveredTxt = new TextBox(); - _label15 = new Label(); - _bpm8NoteBox = new NumericUpDown(); - _label13 = new Label(); - ((ISupportInitialize)_offsetBox).BeginInit(); - ((ISupportInitialize)_bandVolBox).BeginInit(); - ((ISupportInitialize)_guitarVolBox).BeginInit(); - ((ISupportInitialize)_hammerOnBox).BeginInit(); - _panel1.SuspendLayout(); - _panel2.SuspendLayout(); - _aeroGroupBox.SuspendLayout(); - ((ISupportInitialize)_bpm8NoteBox).BeginInit(); - SuspendLayout(); - _yearTxt.Location = new Point(64, 66); - _yearTxt.Name = "_yearTxt"; - _yearTxt.Size = new Size(156, 20); - _yearTxt.TabIndex = 2; - _offsetBox.Location = new Point(130, 175); - var arg_2Ea0 = _offsetBox; - var array = new int[4]; - array[0] = 30000; - arg_2Ea0.Maximum = new decimal(array); - _offsetBox.Minimum = new decimal(new[] - { - 30000, - 0, - 0, - -2147483648 - }); - _offsetBox.Name = "_offsetBox"; - _offsetBox.Size = new Size(50, 20); - _offsetBox.TabIndex = 9; - _titleTxt.Location = new Point(63, 10); - _titleTxt.Name = "_titleTxt"; - _titleTxt.Size = new Size(157, 20); - _titleTxt.TabIndex = 0; - _singerBox.DropDownStyle = ComboBoxStyle.DropDownList; - _singerBox.FormattingEnabled = true; - _singerBox.Items.AddRange(new object[] - { - "No Singer", - "Male", - "Female" - }); - _singerBox.Location = new Point(309, 10); - _singerBox.Name = "_singerBox"; - _singerBox.Size = new Size(143, 21); - _singerBox.TabIndex = 3; - _countOffBox.DropDownStyle = ComboBoxStyle.DropDownList; - _countOffBox.FormattingEnabled = true; - _countOffBox.Items.AddRange(new object[] - { - "sticks_tiny", - "sticks_normal", - "sticks_huge", - "hihat01", - "hihat02", - "hihat03", - "shaker" - }); - _countOffBox.Location = new Point(332, 38); - _countOffBox.Name = "_countOffBox"; - _countOffBox.Size = new Size(120, 21); - _countOffBox.TabIndex = 4; - _label10.AutoSize = true; - _label10.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label10.Location = new Point(246, 37); - _label10.Name = "_label10"; - _label10.Size = new Size(80, 19); - _label10.TabIndex = 27; - _label10.Text = "Count Off:"; - _label10.TextAlign = ContentAlignment.MiddleCenter; - _label9.AutoSize = true; - _label9.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label9.Location = new Point(246, 9); - _label9.Name = "_label9"; - _label9.Size = new Size(57, 19); - _label9.TabIndex = 26; - _label9.Text = "Singer:"; - _label9.TextAlign = ContentAlignment.MiddleCenter; - _label8.AutoSize = true; - _label8.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label8.Location = new Point(12, 65); - _label8.Name = "_label8"; - _label8.Size = new Size(46, 19); - _label8.TabIndex = 25; - _label8.Text = "Year:"; - _label8.TextAlign = ContentAlignment.MiddleCenter; - _label6.AutoSize = true; - _label6.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label6.Location = new Point(12, 9); - _label6.Name = "_label6"; - _label6.Size = new Size(45, 19); - _label6.TabIndex = 23; - _label6.Text = "Title:"; - _label6.TextAlign = ContentAlignment.MiddleCenter; - _label7.AutoSize = true; - _label7.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label7.Location = new Point(68, 176); - _label7.Name = "_label7"; - _label7.Size = new Size(56, 19); - _label7.TabIndex = 32; - _label7.Text = "Offset:"; - _label7.TextAlign = ContentAlignment.MiddleCenter; - _artistTxt.Location = new Point(70, 38); - _artistTxt.Name = "_artistTxt"; - _artistTxt.Size = new Size(150, 20); - _artistTxt.TabIndex = 1; - _label1.AutoSize = true; - _label1.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label1.Location = new Point(12, 37); - _label1.Name = "_label1"; - _label1.Size = new Size(52, 19); - _label1.TabIndex = 24; - _label1.Text = "Artist:"; - _label1.TextAlign = ContentAlignment.MiddleCenter; - _bassistBox.DropDownStyle = ComboBoxStyle.DropDownList; - _bassistBox.FormattingEnabled = true; - _bassistBox.Items.AddRange(new object[] - { - "Generic Bassist", - "Axel", - "Casey", - "Izzy", - "Judy", - "Johnny", - "Lars", - "Midori", - "Xavier", - "Slash", - "Morello", - "Satan", - "RockGod", - "Ripper" - }); - _bassistBox.Location = new Point(315, 66); - _bassistBox.Name = "_bassistBox"; - _bassistBox.Size = new Size(137, 21); - _bassistBox.TabIndex = 5; - _label2.AutoSize = true; - _label2.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label2.Location = new Point(246, 65); - _label2.Name = "_label2"; - _label2.Size = new Size(63, 19); - _label2.TabIndex = 28; - _label2.Text = "Bassist:"; - _label2.TextAlign = ContentAlignment.MiddleCenter; - _bandVolBox.DecimalPlaces = 2; - _bandVolBox.Increment = new decimal(new[] - { - 25, - 0, - 0, - 131072 - }); - _bandVolBox.Location = new Point(130, 124); - var argA560 = _bandVolBox; - var array2 = new int[4]; - array2[0] = 5; - argA560.Maximum = new decimal(array2); - _bandVolBox.Minimum = new decimal(new[] - { - 5, - 0, - 0, - -2147483648 - }); - _bandVolBox.Name = "_bandVolBox"; - _bandVolBox.ReadOnly = true; - _bandVolBox.Size = new Size(49, 20); - _bandVolBox.TabIndex = 7; - _label3.AutoSize = true; - _label3.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label3.Location = new Point(20, 125); - _label3.Name = "_label3"; - _label3.Size = new Size(104, 19); - _label3.TabIndex = 30; - _label3.Text = "Band Volume:"; - _label3.TextAlign = ContentAlignment.MiddleCenter; - _guitarVolBox.DecimalPlaces = 2; - _guitarVolBox.Increment = new decimal(new[] - { - 25, - 0, - 0, - 131072 - }); - _guitarVolBox.Location = new Point(130, 99); - var argBb00 = _guitarVolBox; - var array3 = new int[4]; - array3[0] = 5; - argBb00.Maximum = new decimal(array3); - _guitarVolBox.Minimum = new decimal(new[] - { - 5, - 0, - 0, - -2147483648 - }); - _guitarVolBox.Name = "_guitarVolBox"; - _guitarVolBox.ReadOnly = true; - _guitarVolBox.Size = new Size(49, 20); - _guitarVolBox.TabIndex = 6; - _label4.AutoSize = true; - _label4.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label4.Location = new Point(12, 100); - _label4.Name = "_label4"; - _label4.Size = new Size(112, 19); - _label4.TabIndex = 29; - _label4.Text = "Guitar Volume:"; - _label4.TextAlign = ContentAlignment.MiddleCenter; - _hammerOnBox.DecimalPlaces = 2; - _hammerOnBox.Increment = new decimal(new[] - { - 5, - 0, - 0, - 131072 - }); - _hammerOnBox.Location = new Point(130, 150); - var argD0C0 = _hammerOnBox; - var array4 = new int[4]; - array4[0] = 5; - argD0C0.Maximum = new decimal(array4); - _hammerOnBox.Minimum = new decimal(new[] - { - 5, - 0, - 0, - -2147483648 - }); - _hammerOnBox.Name = "_hammerOnBox"; - _hammerOnBox.ReadOnly = true; - _hammerOnBox.Size = new Size(49, 20); - _hammerOnBox.TabIndex = 8; - _label5.AutoSize = true; - _label5.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label5.Location = new Point(28, 151); - _label5.Name = "_label5"; - _label5.Size = new Size(96, 19); - _label5.TabIndex = 31; - _label5.Text = "Hammer On:"; - _label5.TextAlign = ContentAlignment.MiddleCenter; - _byBtn.AutoSize = true; - _byBtn.Checked = true; - _byBtn.Location = new Point(89, 14); - _byBtn.Name = "_byBtn"; - _byBtn.Size = new Size(46, 17); - _byBtn.TabIndex = 11; - _byBtn.TabStop = true; - _byBtn.Text = "\"by\""; - _byBtn.UseVisualStyleBackColor = true; - _byBtn.CheckedChanged += ByBtn_CheckedChanged; - _famousByBtn.AutoSize = true; - _famousByBtn.Location = new Point(141, 14); - _famousByBtn.Name = "_famousByBtn"; - _famousByBtn.Size = new Size(126, 17); - _famousByBtn.TabIndex = 12; - _famousByBtn.TabStop = true; - _famousByBtn.Text = "\"as made famous by\""; - _famousByBtn.UseVisualStyleBackColor = true; - _famousByBtn.CheckedChanged += FamousByBtn_CheckedChanged; - _customTxtBtn.AutoSize = true; - _customTxtBtn.Location = new Point(89, 43); - _customTxtBtn.Name = "_customTxtBtn"; - _customTxtBtn.Size = new Size(60, 17); - _customTxtBtn.TabIndex = 13; - _customTxtBtn.TabStop = true; - _customTxtBtn.Text = "Custom"; - _customTxtBtn.UseVisualStyleBackColor = true; - _customTxtBtn.CheckedChanged += CustomTxtBtn_CheckedChanged; - _artistTextBox.Enabled = false; - _artistTextBox.Location = new Point(155, 41); - _artistTextBox.Name = "_artistTextBox"; - _artistTextBox.Size = new Size(104, 20); - _artistTextBox.TabIndex = 14; - _label11.AutoSize = true; - _label11.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label11.Location = new Point(-4, 24); - _label11.Name = "_label11"; - _label11.Size = new Size(87, 19); - _label11.TabIndex = 34; - _label11.Text = "Artist Text:"; - _label11.TextAlign = ContentAlignment.MiddleCenter; - _chkOriginal.AutoSize = true; - _chkOriginal.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _chkOriginal.Location = new Point(16, 302); - _chkOriginal.Name = "Original_CheckBox"; - _chkOriginal.Size = new Size(124, 23); - _chkOriginal.TabIndex = 15; - _chkOriginal.Text = "Original Artist"; - _chkOriginal.UseVisualStyleBackColor = true; - - _chkRhythm.AutoSize = true; - _chkRhythm.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _chkRhythm.Location = new Point(16, 331); - _chkRhythm.Name = "Rhythm_CheckBox"; - _chkRhythm.Size = new Size(125, 23); - _chkRhythm.TabIndex = 18; - _chkRhythm.Text = "Rhythm Track"; - _chkRhythm.UseVisualStyleBackColor = true; - - _chkCoop.AutoSize = true; - _chkCoop.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _chkCoop.Location = new Point(246, 302); - _chkCoop.Name = "Coop_CheckBox"; - _chkCoop.Size = new Size(63, 23); - _chkCoop.TabIndex = 17; - _chkCoop.Text = "Coop"; - _chkCoop.UseVisualStyleBackColor = true; + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + _yearTxt = new TextBox(); + _offsetBox = new NumericUpDown(); + _titleTxt = new TextBox(); + _singerBox = new ComboBox(); + _countOffBox = new ComboBox(); + _label10 = new Label(); + _label9 = new Label(); + _label8 = new Label(); + _label6 = new Label(); + _label7 = new Label(); + _artistTxt = new TextBox(); + _label1 = new Label(); + _bassistBox = new ComboBox(); + _label2 = new Label(); + _bandVolBox = new NumericUpDown(); + _label3 = new Label(); + _guitarVolBox = new NumericUpDown(); + _label4 = new Label(); + _hammerOnBox = new NumericUpDown(); + _label5 = new Label(); + _byBtn = new RadioButton(); + _famousByBtn = new RadioButton(); + _customTxtBtn = new RadioButton(); + _artistTextBox = new TextBox(); + _label11 = new Label(); + _chkOriginal = new CheckBox(); + _chkRhythm = new CheckBox(); + _chkCoop = new CheckBox(); + _btnApply = new Button(); + _btnCancel = new Button(); + _chkKeyboard = new CheckBox(); + _rBtnBass = new RadioButton(); + _rBtnRhythm = new RadioButton(); + _bossBox = new ComboBox(); + _label12 = new Label(); + _panel1 = new Panel(); + _panel2 = new Panel(); + _aeroGroupBox = new GroupBox(); + _singAnimPakTxt = new TextBox(); + _label14 = new Label(); + _perryMicBox = new CheckBox(); + _aeroGuitaristBox = new CheckBox(); + _bandBox = new ComboBox(); + _label16 = new Label(); + _coveredTxt = new TextBox(); + _label15 = new Label(); + _bpm8NoteBox = new NumericUpDown(); + _label13 = new Label(); + ((ISupportInitialize) _offsetBox).BeginInit(); + ((ISupportInitialize) _bandVolBox).BeginInit(); + ((ISupportInitialize) _guitarVolBox).BeginInit(); + ((ISupportInitialize) _hammerOnBox).BeginInit(); + _panel1.SuspendLayout(); + _panel2.SuspendLayout(); + _aeroGroupBox.SuspendLayout(); + ((ISupportInitialize) _bpm8NoteBox).BeginInit(); + SuspendLayout(); + _yearTxt.Location = new Point(64, 66); + _yearTxt.Name = "_yearTxt"; + _yearTxt.Size = new Size(156, 20); + _yearTxt.TabIndex = 2; + _offsetBox.Location = new Point(130, 175); + var arg_2Ea0 = _offsetBox; + var array = new int[4]; + array[0] = 30000; + arg_2Ea0.Maximum = new decimal(array); + _offsetBox.Minimum = new decimal(new[] + { + 30000, + 0, + 0, + -2147483648 + }); + _offsetBox.Name = "_offsetBox"; + _offsetBox.Size = new Size(50, 20); + _offsetBox.TabIndex = 9; + _titleTxt.Location = new Point(63, 10); + _titleTxt.Name = "_titleTxt"; + _titleTxt.Size = new Size(157, 20); + _titleTxt.TabIndex = 0; + _singerBox.DropDownStyle = ComboBoxStyle.DropDownList; + _singerBox.FormattingEnabled = true; + _singerBox.Items.AddRange(new object[] + { + "No Singer", + "Male", + "Female" + }); + _singerBox.Location = new Point(309, 10); + _singerBox.Name = "_singerBox"; + _singerBox.Size = new Size(143, 21); + _singerBox.TabIndex = 3; + _countOffBox.DropDownStyle = ComboBoxStyle.DropDownList; + _countOffBox.FormattingEnabled = true; + _countOffBox.Items.AddRange(new object[] + { + "sticks_tiny", + "sticks_normal", + "sticks_huge", + "hihat01", + "hihat02", + "hihat03", + "shaker" + }); + _countOffBox.Location = new Point(332, 38); + _countOffBox.Name = "_countOffBox"; + _countOffBox.Size = new Size(120, 21); + _countOffBox.TabIndex = 4; + _label10.AutoSize = true; + _label10.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label10.Location = new Point(246, 37); + _label10.Name = "_label10"; + _label10.Size = new Size(80, 19); + _label10.TabIndex = 27; + _label10.Text = "Count Off:"; + _label10.TextAlign = ContentAlignment.MiddleCenter; + _label9.AutoSize = true; + _label9.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label9.Location = new Point(246, 9); + _label9.Name = "_label9"; + _label9.Size = new Size(57, 19); + _label9.TabIndex = 26; + _label9.Text = "Singer:"; + _label9.TextAlign = ContentAlignment.MiddleCenter; + _label8.AutoSize = true; + _label8.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label8.Location = new Point(12, 65); + _label8.Name = "_label8"; + _label8.Size = new Size(46, 19); + _label8.TabIndex = 25; + _label8.Text = "Year:"; + _label8.TextAlign = ContentAlignment.MiddleCenter; + _label6.AutoSize = true; + _label6.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label6.Location = new Point(12, 9); + _label6.Name = "_label6"; + _label6.Size = new Size(45, 19); + _label6.TabIndex = 23; + _label6.Text = "Title:"; + _label6.TextAlign = ContentAlignment.MiddleCenter; + _label7.AutoSize = true; + _label7.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label7.Location = new Point(68, 176); + _label7.Name = "_label7"; + _label7.Size = new Size(56, 19); + _label7.TabIndex = 32; + _label7.Text = "Offset:"; + _label7.TextAlign = ContentAlignment.MiddleCenter; + _artistTxt.Location = new Point(70, 38); + _artistTxt.Name = "_artistTxt"; + _artistTxt.Size = new Size(150, 20); + _artistTxt.TabIndex = 1; + _label1.AutoSize = true; + _label1.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label1.Location = new Point(12, 37); + _label1.Name = "_label1"; + _label1.Size = new Size(52, 19); + _label1.TabIndex = 24; + _label1.Text = "Artist:"; + _label1.TextAlign = ContentAlignment.MiddleCenter; + _bassistBox.DropDownStyle = ComboBoxStyle.DropDownList; + _bassistBox.FormattingEnabled = true; + _bassistBox.Items.AddRange(new object[] + { + "Generic Bassist", + "Axel", + "Casey", + "Izzy", + "Judy", + "Johnny", + "Lars", + "Midori", + "Xavier", + "Slash", + "Morello", + "Satan", + "RockGod", + "Ripper" + }); + _bassistBox.Location = new Point(315, 66); + _bassistBox.Name = "_bassistBox"; + _bassistBox.Size = new Size(137, 21); + _bassistBox.TabIndex = 5; + _label2.AutoSize = true; + _label2.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label2.Location = new Point(246, 65); + _label2.Name = "_label2"; + _label2.Size = new Size(63, 19); + _label2.TabIndex = 28; + _label2.Text = "Bassist:"; + _label2.TextAlign = ContentAlignment.MiddleCenter; + _bandVolBox.DecimalPlaces = 2; + _bandVolBox.Increment = new decimal(new[] + { + 25, + 0, + 0, + 131072 + }); + _bandVolBox.Location = new Point(130, 124); + var argA560 = _bandVolBox; + var array2 = new int[4]; + array2[0] = 5; + argA560.Maximum = new decimal(array2); + _bandVolBox.Minimum = new decimal(new[] + { + 5, + 0, + 0, + -2147483648 + }); + _bandVolBox.Name = "_bandVolBox"; + _bandVolBox.ReadOnly = true; + _bandVolBox.Size = new Size(49, 20); + _bandVolBox.TabIndex = 7; + _label3.AutoSize = true; + _label3.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label3.Location = new Point(20, 125); + _label3.Name = "_label3"; + _label3.Size = new Size(104, 19); + _label3.TabIndex = 30; + _label3.Text = "Band Volume:"; + _label3.TextAlign = ContentAlignment.MiddleCenter; + _guitarVolBox.DecimalPlaces = 2; + _guitarVolBox.Increment = new decimal(new[] + { + 25, + 0, + 0, + 131072 + }); + _guitarVolBox.Location = new Point(130, 99); + var argBb00 = _guitarVolBox; + var array3 = new int[4]; + array3[0] = 5; + argBb00.Maximum = new decimal(array3); + _guitarVolBox.Minimum = new decimal(new[] + { + 5, + 0, + 0, + -2147483648 + }); + _guitarVolBox.Name = "_guitarVolBox"; + _guitarVolBox.ReadOnly = true; + _guitarVolBox.Size = new Size(49, 20); + _guitarVolBox.TabIndex = 6; + _label4.AutoSize = true; + _label4.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label4.Location = new Point(12, 100); + _label4.Name = "_label4"; + _label4.Size = new Size(112, 19); + _label4.TabIndex = 29; + _label4.Text = "Guitar Volume:"; + _label4.TextAlign = ContentAlignment.MiddleCenter; + _hammerOnBox.DecimalPlaces = 2; + _hammerOnBox.Increment = new decimal(new[] + { + 5, + 0, + 0, + 131072 + }); + _hammerOnBox.Location = new Point(130, 150); + var argD0C0 = _hammerOnBox; + var array4 = new int[4]; + array4[0] = 5; + argD0C0.Maximum = new decimal(array4); + _hammerOnBox.Minimum = new decimal(new[] + { + 5, + 0, + 0, + -2147483648 + }); + _hammerOnBox.Name = "_hammerOnBox"; + _hammerOnBox.ReadOnly = true; + _hammerOnBox.Size = new Size(49, 20); + _hammerOnBox.TabIndex = 8; + _label5.AutoSize = true; + _label5.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label5.Location = new Point(28, 151); + _label5.Name = "_label5"; + _label5.Size = new Size(96, 19); + _label5.TabIndex = 31; + _label5.Text = "Hammer On:"; + _label5.TextAlign = ContentAlignment.MiddleCenter; + _byBtn.AutoSize = true; + _byBtn.Checked = true; + _byBtn.Location = new Point(89, 14); + _byBtn.Name = "_byBtn"; + _byBtn.Size = new Size(46, 17); + _byBtn.TabIndex = 11; + _byBtn.TabStop = true; + _byBtn.Text = "\"by\""; + _byBtn.UseVisualStyleBackColor = true; + _byBtn.CheckedChanged += ByBtn_CheckedChanged; + _famousByBtn.AutoSize = true; + _famousByBtn.Location = new Point(141, 14); + _famousByBtn.Name = "_famousByBtn"; + _famousByBtn.Size = new Size(126, 17); + _famousByBtn.TabIndex = 12; + _famousByBtn.TabStop = true; + _famousByBtn.Text = "\"as made famous by\""; + _famousByBtn.UseVisualStyleBackColor = true; + _famousByBtn.CheckedChanged += FamousByBtn_CheckedChanged; + _customTxtBtn.AutoSize = true; + _customTxtBtn.Location = new Point(89, 43); + _customTxtBtn.Name = "_customTxtBtn"; + _customTxtBtn.Size = new Size(60, 17); + _customTxtBtn.TabIndex = 13; + _customTxtBtn.TabStop = true; + _customTxtBtn.Text = "Custom"; + _customTxtBtn.UseVisualStyleBackColor = true; + _customTxtBtn.CheckedChanged += CustomTxtBtn_CheckedChanged; + _artistTextBox.Enabled = false; + _artistTextBox.Location = new Point(155, 41); + _artistTextBox.Name = "_artistTextBox"; + _artistTextBox.Size = new Size(104, 20); + _artistTextBox.TabIndex = 14; + _label11.AutoSize = true; + _label11.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label11.Location = new Point(-4, 24); + _label11.Name = "_label11"; + _label11.Size = new Size(87, 19); + _label11.TabIndex = 34; + _label11.Text = "Artist Text:"; + _label11.TextAlign = ContentAlignment.MiddleCenter; + _chkOriginal.AutoSize = true; + _chkOriginal.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _chkOriginal.Location = new Point(16, 302); + _chkOriginal.Name = "Original_CheckBox"; + _chkOriginal.Size = new Size(124, 23); + _chkOriginal.TabIndex = 15; + _chkOriginal.Text = "Original Artist"; + _chkOriginal.UseVisualStyleBackColor = true; + + _chkRhythm.AutoSize = true; + _chkRhythm.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _chkRhythm.Location = new Point(16, 331); + _chkRhythm.Name = "Rhythm_CheckBox"; + _chkRhythm.Size = new Size(125, 23); + _chkRhythm.TabIndex = 18; + _chkRhythm.Text = "Rhythm Track"; + _chkRhythm.UseVisualStyleBackColor = true; + + _chkCoop.AutoSize = true; + _chkCoop.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _chkCoop.Location = new Point(246, 302); + _chkCoop.Name = "Coop_CheckBox"; + _chkCoop.Size = new Size(63, 23); + _chkCoop.TabIndex = 17; + _chkCoop.Text = "Coop"; + _chkCoop.UseVisualStyleBackColor = true; _btnApply.Click += btnApply_Click; - _btnApply.DialogResult = DialogResult.OK; - _btnApply.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _btnApply.Location = new Point(318, 327); - _btnApply.Name = "ApplyBtn"; - _btnApply.Size = new Size(65, 27); - _btnApply.TabIndex = 21; - _btnApply.Text = "Apply"; - _btnApply.UseVisualStyleBackColor = true; - - _btnCancel.DialogResult = DialogResult.Cancel; - _btnCancel.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _btnCancel.Location = new Point(389, 327); - _btnCancel.Name = "CancelBtn"; - _btnCancel.Size = new Size(65, 27); - _btnCancel.TabIndex = 22; - _btnCancel.Text = "Cancel"; - _btnCancel.UseVisualStyleBackColor = true; - - _chkKeyboard.AutoSize = true; - _chkKeyboard.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _chkKeyboard.Location = new Point(146, 302); - _chkKeyboard.Name = "Keyboard_CheckBox"; - _chkKeyboard.Size = new Size(94, 23); - _chkKeyboard.TabIndex = 16; - _chkKeyboard.Text = "Keyboard"; - _chkKeyboard.UseVisualStyleBackColor = true; - - _rBtnBass.AutoSize = true; - _rBtnBass.Checked = true; - _rBtnBass.Location = new Point(67, 3); - _rBtnBass.Name = "BassBtn"; - _rBtnBass.Size = new Size(48, 17); - _rBtnBass.TabIndex = 20; - _rBtnBass.TabStop = true; - _rBtnBass.Text = "Bass"; - _rBtnBass.UseVisualStyleBackColor = true; - - _rBtnRhythm.AutoSize = true; - _rBtnRhythm.Location = new Point(0, 3); - _rBtnRhythm.Name = "RhythmBtn"; - _rBtnRhythm.Size = new Size(61, 17); - _rBtnRhythm.TabIndex = 19; - _rBtnRhythm.TabStop = true; - _rBtnRhythm.Text = "Rhythm"; - _rBtnRhythm.UseVisualStyleBackColor = true; - - _bossBox.DropDownStyle = ComboBoxStyle.DropDownList; - _bossBox.FormattingEnabled = true; - _bossBox.Items.AddRange(new object[] - { - "Not a boss battle" - }); - _bossBox.Location = new Point(315, 101); - _bossBox.Name = "_bossBox"; - _bossBox.Size = new Size(137, 21); - _bossBox.TabIndex = 10; - - _label12.AutoSize = true; - _label12.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label12.Location = new Point(189, 100); - _label12.Name = "_label12"; - _label12.Size = new Size(120, 19); - _label12.TabIndex = 54; - _label12.Text = "Boss Properties:"; - _label12.TextAlign = ContentAlignment.MiddleCenter; - - _panel1.Controls.Add(_label11); - _panel1.Controls.Add(_byBtn); - _panel1.Controls.Add(_famousByBtn); - _panel1.Controls.Add(_customTxtBtn); - _panel1.Controls.Add(_artistTextBox); - _panel1.Location = new Point(193, 127); - _panel1.Name = "_panel1"; - _panel1.Size = new Size(267, 68); - _panel1.TabIndex = 33; - - _panel2.Controls.Add(_rBtnRhythm); - _panel2.Controls.Add(_rBtnBass); - _panel2.Location = new Point(146, 331); - _panel2.Name = "_panel2"; - _panel2.Size = new Size(117, 23); - _panel2.TabIndex = 35; - - _aeroGroupBox.Controls.Add(_singAnimPakTxt); - _aeroGroupBox.Controls.Add(_label14); - _aeroGroupBox.Controls.Add(_perryMicBox); - _aeroGroupBox.Controls.Add(_aeroGuitaristBox); - _aeroGroupBox.Controls.Add(_bandBox); - _aeroGroupBox.Controls.Add(_label16); - _aeroGroupBox.Controls.Add(_coveredTxt); - _aeroGroupBox.Controls.Add(_label15); - _aeroGroupBox.Controls.Add(_bpm8NoteBox); - _aeroGroupBox.Controls.Add(_label13); - _aeroGroupBox.Location = new Point(3, 198); - _aeroGroupBox.Name = "_aeroGroupBox"; - _aeroGroupBox.Size = new Size(457, 98); - _aeroGroupBox.TabIndex = 55; - _aeroGroupBox.TabStop = false; - _aeroGroupBox.Text = "Aerosmith"; - - _singAnimPakTxt.Location = new Point(174, 45); - _singAnimPakTxt.Name = "_singAnimPakTxt"; - _singAnimPakTxt.Size = new Size(275, 20); - _singAnimPakTxt.TabIndex = 41; - _label14.AutoSize = true; - _label14.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label14.Location = new Point(9, 46); - _label14.Name = "_label14"; - _label14.Size = new Size(159, 19); - _label14.TabIndex = 42; - _label14.Text = "Singer Animation Pak:"; - _label14.TextAlign = ContentAlignment.MiddleCenter; - _perryMicBox.AutoSize = true; - _perryMicBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _perryMicBox.Location = new Point(311, 71); - _perryMicBox.Name = "_perryMicBox"; - _perryMicBox.Size = new Size(138, 23); - _perryMicBox.TabIndex = 40; - _perryMicBox.Text = "Perry Mic Stand"; - _perryMicBox.UseVisualStyleBackColor = true; - _aeroGuitaristBox.AutoSize = true; - _aeroGuitaristBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _aeroGuitaristBox.Location = new Point(218, 71); - _aeroGuitaristBox.Name = "_aeroGuitaristBox"; - _aeroGuitaristBox.Size = new Size(87, 23); - _aeroGuitaristBox.TabIndex = 39; - _aeroGuitaristBox.Text = "Guitarist"; - _aeroGuitaristBox.UseVisualStyleBackColor = true; - _bandBox.DropDownStyle = ComboBoxStyle.DropDownList; - _bandBox.FormattingEnabled = true; - _bandBox.Items.AddRange(new object[] - { - "default_band", - "aerosmith_band_backinthesaddle", - "aerosmith_band_beyondbeautiful", - "aerosmith_band_brightlightfright", - "aerosmith_band_combination", - "aerosmith_band_drawtheline", - "aerosmith_band_dreamon", - "aerosmith_band_joeperrybossbattle", - "dmc_band", - "aerosmith_band_kingsandqueens", - "aerosmith_band_letthemusicdothetalkin", - "aerosmith_band_livinontheedge", - "aerosmith_band_loveinanelevator", - "aerosmith_band_makeit", - "aerosmith_band_mamakin", - "aerosmith_band_mercy", - "aerosmith_band_movinout", - "aerosmith_band_nobodysfault", - "aerosmith_band_nosurprize", - "aerosmith_band_pandorasbox", - "aerosmith_band_pink", - "aerosmith_band_ragdoll", - "aerosmith_band_ratsinthecellar", - "joeperryproject_band_shakinmycage", - "aerosmith_band_miracas", - "aerosmith_band_talktalkin", - "aerosmith_band", - "aerosmith_band_toysintheattic", - "aerosmith_band_trainkeptarollin", - "aerosmith_band_unclesalty", - "aerosmith_band_walkthisway", - "aerosmith_band_walkthiswaydmc" - }); - _bandBox.Location = new Point(298, 18); - _bandBox.Name = "_bandBox"; - _bandBox.Size = new Size(151, 21); - _bandBox.TabIndex = 37; - _label16.AutoSize = true; - _label16.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label16.Location = new Point(243, 20); - _label16.Name = "_label16"; - _label16.Size = new Size(49, 19); - _label16.TabIndex = 38; - _label16.Text = "Band:"; - _label16.TextAlign = ContentAlignment.MiddleCenter; - _coveredTxt.Location = new Point(109, 19); - _coveredTxt.Name = "_coveredTxt"; - _coveredTxt.Size = new Size(108, 20); - _coveredTxt.TabIndex = 35; - _label15.AutoSize = true; - _label15.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label15.Location = new Point(9, 20); - _label15.Name = "_label15"; - _label15.Size = new Size(94, 19); - _label15.TabIndex = 36; - _label15.Text = "Covered By:"; - _label15.TextAlign = ContentAlignment.MiddleCenter; - var arg_1D9F0 = _bpm8NoteBox; - var array5 = new int[4]; - array5[0] = 5; - arg_1D9F0.Increment = new decimal(array5); - _bpm8NoteBox.Location = new Point(127, 71); - var arg_1Dd60 = _bpm8NoteBox; - var array6 = new int[4]; - array6[0] = 500; - arg_1Dd60.Maximum = new decimal(array6); - _bpm8NoteBox.Minimum = new decimal(new[] - { - 500, - 0, - 0, - -2147483648 - }); - _bpm8NoteBox.Name = "_bpm8NoteBox"; - _bpm8NoteBox.Size = new Size(49, 20); - _bpm8NoteBox.TabIndex = 32; - _label13.AutoSize = true; - _label13.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label13.Location = new Point(22, 72); - _label13.Name = "_label13"; - _label13.Size = new Size(99, 19); - _label13.TabIndex = 33; - _label13.Text = "8 Note BPM:"; - _label13.TextAlign = ContentAlignment.MiddleCenter; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(466, 358); - Controls.Add(_chkRhythm); - Controls.Add(_aeroGroupBox); - Controls.Add(_panel2); - Controls.Add(_panel1); - Controls.Add(_bossBox); - Controls.Add(_label12); - Controls.Add(_hammerOnBox); - Controls.Add(_label5); - Controls.Add(_guitarVolBox); - Controls.Add(_label4); - Controls.Add(_bandVolBox); - Controls.Add(_label3); - Controls.Add(_bassistBox); - Controls.Add(_label2); - Controls.Add(_chkKeyboard); - Controls.Add(_artistTxt); - Controls.Add(_label1); - Controls.Add(_btnCancel); - Controls.Add(_btnApply); - Controls.Add(_yearTxt); - Controls.Add(_offsetBox); - Controls.Add(_titleTxt); - Controls.Add(_singerBox); - Controls.Add(_countOffBox); - Controls.Add(_chkCoop); - Controls.Add(_chkOriginal); - Controls.Add(_label10); - Controls.Add(_label9); - Controls.Add(_label8); - Controls.Add(_label6); - Controls.Add(_label7); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - MaximizeBox = false; - MinimizeBox = false; - Name = "SongProperties"; - Text = "Song Properties"; - ((ISupportInitialize)_offsetBox).EndInit(); - ((ISupportInitialize)_bandVolBox).EndInit(); - ((ISupportInitialize)_guitarVolBox).EndInit(); - ((ISupportInitialize)_hammerOnBox).EndInit(); - _panel1.ResumeLayout(false); - _panel1.PerformLayout(); - _panel2.ResumeLayout(false); - _panel2.PerformLayout(); - _aeroGroupBox.ResumeLayout(false); - _aeroGroupBox.PerformLayout(); - ((ISupportInitialize)_bpm8NoteBox).EndInit(); - ResumeLayout(false); - PerformLayout(); - } + _btnApply.DialogResult = DialogResult.OK; + _btnApply.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _btnApply.Location = new Point(318, 327); + _btnApply.Name = "ApplyBtn"; + _btnApply.Size = new Size(65, 27); + _btnApply.TabIndex = 21; + _btnApply.Text = "Apply"; + _btnApply.UseVisualStyleBackColor = true; + + _btnCancel.DialogResult = DialogResult.Cancel; + _btnCancel.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _btnCancel.Location = new Point(389, 327); + _btnCancel.Name = "CancelBtn"; + _btnCancel.Size = new Size(65, 27); + _btnCancel.TabIndex = 22; + _btnCancel.Text = "Cancel"; + _btnCancel.UseVisualStyleBackColor = true; + + _chkKeyboard.AutoSize = true; + _chkKeyboard.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _chkKeyboard.Location = new Point(146, 302); + _chkKeyboard.Name = "Keyboard_CheckBox"; + _chkKeyboard.Size = new Size(94, 23); + _chkKeyboard.TabIndex = 16; + _chkKeyboard.Text = "Keyboard"; + _chkKeyboard.UseVisualStyleBackColor = true; + + _rBtnBass.AutoSize = true; + _rBtnBass.Checked = true; + _rBtnBass.Location = new Point(67, 3); + _rBtnBass.Name = "BassBtn"; + _rBtnBass.Size = new Size(48, 17); + _rBtnBass.TabIndex = 20; + _rBtnBass.TabStop = true; + _rBtnBass.Text = "Bass"; + _rBtnBass.UseVisualStyleBackColor = true; + + _rBtnRhythm.AutoSize = true; + _rBtnRhythm.Location = new Point(0, 3); + _rBtnRhythm.Name = "RhythmBtn"; + _rBtnRhythm.Size = new Size(61, 17); + _rBtnRhythm.TabIndex = 19; + _rBtnRhythm.TabStop = true; + _rBtnRhythm.Text = "Rhythm"; + _rBtnRhythm.UseVisualStyleBackColor = true; + + _bossBox.DropDownStyle = ComboBoxStyle.DropDownList; + _bossBox.FormattingEnabled = true; + _bossBox.Items.AddRange(new object[] + { + "Not a boss battle" + }); + _bossBox.Location = new Point(315, 101); + _bossBox.Name = "_bossBox"; + _bossBox.Size = new Size(137, 21); + _bossBox.TabIndex = 10; + + _label12.AutoSize = true; + _label12.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label12.Location = new Point(189, 100); + _label12.Name = "_label12"; + _label12.Size = new Size(120, 19); + _label12.TabIndex = 54; + _label12.Text = "Boss Properties:"; + _label12.TextAlign = ContentAlignment.MiddleCenter; + + _panel1.Controls.Add(_label11); + _panel1.Controls.Add(_byBtn); + _panel1.Controls.Add(_famousByBtn); + _panel1.Controls.Add(_customTxtBtn); + _panel1.Controls.Add(_artistTextBox); + _panel1.Location = new Point(193, 127); + _panel1.Name = "_panel1"; + _panel1.Size = new Size(267, 68); + _panel1.TabIndex = 33; + + _panel2.Controls.Add(_rBtnRhythm); + _panel2.Controls.Add(_rBtnBass); + _panel2.Location = new Point(146, 331); + _panel2.Name = "_panel2"; + _panel2.Size = new Size(117, 23); + _panel2.TabIndex = 35; + + _aeroGroupBox.Controls.Add(_singAnimPakTxt); + _aeroGroupBox.Controls.Add(_label14); + _aeroGroupBox.Controls.Add(_perryMicBox); + _aeroGroupBox.Controls.Add(_aeroGuitaristBox); + _aeroGroupBox.Controls.Add(_bandBox); + _aeroGroupBox.Controls.Add(_label16); + _aeroGroupBox.Controls.Add(_coveredTxt); + _aeroGroupBox.Controls.Add(_label15); + _aeroGroupBox.Controls.Add(_bpm8NoteBox); + _aeroGroupBox.Controls.Add(_label13); + _aeroGroupBox.Location = new Point(3, 198); + _aeroGroupBox.Name = "_aeroGroupBox"; + _aeroGroupBox.Size = new Size(457, 98); + _aeroGroupBox.TabIndex = 55; + _aeroGroupBox.TabStop = false; + _aeroGroupBox.Text = "Aerosmith"; + + _singAnimPakTxt.Location = new Point(174, 45); + _singAnimPakTxt.Name = "_singAnimPakTxt"; + _singAnimPakTxt.Size = new Size(275, 20); + _singAnimPakTxt.TabIndex = 41; + _label14.AutoSize = true; + _label14.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label14.Location = new Point(9, 46); + _label14.Name = "_label14"; + _label14.Size = new Size(159, 19); + _label14.TabIndex = 42; + _label14.Text = "Singer Animation Pak:"; + _label14.TextAlign = ContentAlignment.MiddleCenter; + _perryMicBox.AutoSize = true; + _perryMicBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _perryMicBox.Location = new Point(311, 71); + _perryMicBox.Name = "_perryMicBox"; + _perryMicBox.Size = new Size(138, 23); + _perryMicBox.TabIndex = 40; + _perryMicBox.Text = "Perry Mic Stand"; + _perryMicBox.UseVisualStyleBackColor = true; + _aeroGuitaristBox.AutoSize = true; + _aeroGuitaristBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _aeroGuitaristBox.Location = new Point(218, 71); + _aeroGuitaristBox.Name = "_aeroGuitaristBox"; + _aeroGuitaristBox.Size = new Size(87, 23); + _aeroGuitaristBox.TabIndex = 39; + _aeroGuitaristBox.Text = "Guitarist"; + _aeroGuitaristBox.UseVisualStyleBackColor = true; + _bandBox.DropDownStyle = ComboBoxStyle.DropDownList; + _bandBox.FormattingEnabled = true; + _bandBox.Items.AddRange(new object[] + { + "default_band", + "aerosmith_band_backinthesaddle", + "aerosmith_band_beyondbeautiful", + "aerosmith_band_brightlightfright", + "aerosmith_band_combination", + "aerosmith_band_drawtheline", + "aerosmith_band_dreamon", + "aerosmith_band_joeperrybossbattle", + "dmc_band", + "aerosmith_band_kingsandqueens", + "aerosmith_band_letthemusicdothetalkin", + "aerosmith_band_livinontheedge", + "aerosmith_band_loveinanelevator", + "aerosmith_band_makeit", + "aerosmith_band_mamakin", + "aerosmith_band_mercy", + "aerosmith_band_movinout", + "aerosmith_band_nobodysfault", + "aerosmith_band_nosurprize", + "aerosmith_band_pandorasbox", + "aerosmith_band_pink", + "aerosmith_band_ragdoll", + "aerosmith_band_ratsinthecellar", + "joeperryproject_band_shakinmycage", + "aerosmith_band_miracas", + "aerosmith_band_talktalkin", + "aerosmith_band", + "aerosmith_band_toysintheattic", + "aerosmith_band_trainkeptarollin", + "aerosmith_band_unclesalty", + "aerosmith_band_walkthisway", + "aerosmith_band_walkthiswaydmc" + }); + _bandBox.Location = new Point(298, 18); + _bandBox.Name = "_bandBox"; + _bandBox.Size = new Size(151, 21); + _bandBox.TabIndex = 37; + _label16.AutoSize = true; + _label16.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label16.Location = new Point(243, 20); + _label16.Name = "_label16"; + _label16.Size = new Size(49, 19); + _label16.TabIndex = 38; + _label16.Text = "Band:"; + _label16.TextAlign = ContentAlignment.MiddleCenter; + _coveredTxt.Location = new Point(109, 19); + _coveredTxt.Name = "_coveredTxt"; + _coveredTxt.Size = new Size(108, 20); + _coveredTxt.TabIndex = 35; + _label15.AutoSize = true; + _label15.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label15.Location = new Point(9, 20); + _label15.Name = "_label15"; + _label15.Size = new Size(94, 19); + _label15.TabIndex = 36; + _label15.Text = "Covered By:"; + _label15.TextAlign = ContentAlignment.MiddleCenter; + var arg_1D9F0 = _bpm8NoteBox; + var array5 = new int[4]; + array5[0] = 5; + arg_1D9F0.Increment = new decimal(array5); + _bpm8NoteBox.Location = new Point(127, 71); + var arg_1Dd60 = _bpm8NoteBox; + var array6 = new int[4]; + array6[0] = 500; + arg_1Dd60.Maximum = new decimal(array6); + _bpm8NoteBox.Minimum = new decimal(new[] + { + 500, + 0, + 0, + -2147483648 + }); + _bpm8NoteBox.Name = "_bpm8NoteBox"; + _bpm8NoteBox.Size = new Size(49, 20); + _bpm8NoteBox.TabIndex = 32; + _label13.AutoSize = true; + _label13.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label13.Location = new Point(22, 72); + _label13.Name = "_label13"; + _label13.Size = new Size(99, 19); + _label13.TabIndex = 33; + _label13.Text = "8 Note BPM:"; + _label13.TextAlign = ContentAlignment.MiddleCenter; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(466, 358); + Controls.Add(_chkRhythm); + Controls.Add(_aeroGroupBox); + Controls.Add(_panel2); + Controls.Add(_panel1); + Controls.Add(_bossBox); + Controls.Add(_label12); + Controls.Add(_hammerOnBox); + Controls.Add(_label5); + Controls.Add(_guitarVolBox); + Controls.Add(_label4); + Controls.Add(_bandVolBox); + Controls.Add(_label3); + Controls.Add(_bassistBox); + Controls.Add(_label2); + Controls.Add(_chkKeyboard); + Controls.Add(_artistTxt); + Controls.Add(_label1); + Controls.Add(_btnCancel); + Controls.Add(_btnApply); + Controls.Add(_yearTxt); + Controls.Add(_offsetBox); + Controls.Add(_titleTxt); + Controls.Add(_singerBox); + Controls.Add(_countOffBox); + Controls.Add(_chkCoop); + Controls.Add(_chkOriginal); + Controls.Add(_label10); + Controls.Add(_label9); + Controls.Add(_label8); + Controls.Add(_label6); + Controls.Add(_label7); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + MaximizeBox = false; + MinimizeBox = false; + Name = "SongProperties"; + Text = "Song Properties"; + ((ISupportInitialize) _offsetBox).EndInit(); + ((ISupportInitialize) _bandVolBox).EndInit(); + ((ISupportInitialize) _guitarVolBox).EndInit(); + ((ISupportInitialize) _hammerOnBox).EndInit(); + _panel1.ResumeLayout(false); + _panel1.PerformLayout(); + _panel2.ResumeLayout(false); + _panel2.PerformLayout(); + _aeroGroupBox.ResumeLayout(false); + _aeroGroupBox.PerformLayout(); + ((ISupportInitialize) _bpm8NoteBox).EndInit(); + ResumeLayout(false); + PerformLayout(); + } } -} +} \ No newline at end of file diff --git a/GHNamespace8/TierManagement.cs b/GHNamespace8/TierManagement.cs index 0196a88..dfcc508 100644 --- a/GHNamespace8/TierManagement.cs +++ b/GHNamespace8/TierManagement.cs @@ -6,144 +6,144 @@ namespace GHNamespace8 { - public class TierManagement : Form - { - private IContainer icontainer_0; + public class TierManagement : Form + { + private IContainer icontainer_0; - private ListBox _tierList; + private ListBox _tierList; - private Button _cancelBtn; + private Button _cancelBtn; - private Button _btnOk; + private Button _btnOk; - private int _int0; + private int _int0; - private int _int1; + private int _int1; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } - private void InitializeComponent() - { - _tierList = new ListBox(); - _cancelBtn = new Button(); - _btnOk = new Button(); - SuspendLayout(); - _tierList.AllowDrop = true; - _tierList.FormattingEnabled = true; - _tierList.IntegralHeight = false; - _tierList.Location = new Point(9, 9); - _tierList.Margin = new Padding(0); - _tierList.Name = "_tierList"; - _tierList.ScrollAlwaysVisible = true; - _tierList.Size = new Size(234, 179); - _tierList.TabIndex = 0; - _tierList.MouseDown += TierList_MouseDown; - _tierList.DragDrop += TierList_DragDrop; - _tierList.DragEnter += TierList_DragEnter; - _tierList.DragOver += TierList_DragOver; - _cancelBtn.DialogResult = DialogResult.Cancel; - _cancelBtn.Location = new Point(168, 191); - _cancelBtn.Name = "_cancelBtn"; - _cancelBtn.Size = new Size(75, 23); - _cancelBtn.TabIndex = 4; - _cancelBtn.Text = "Cancel"; - _cancelBtn.UseVisualStyleBackColor = true; - _btnOk.DialogResult = DialogResult.OK; - _btnOk.Location = new Point(9, 191); - _btnOk.Name = "_btnOk"; - _btnOk.Size = new Size(75, 23); - _btnOk.TabIndex = 3; - _btnOk.Text = "OK"; - _btnOk.UseVisualStyleBackColor = true; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(252, 219); - Controls.Add(_cancelBtn); - Controls.Add(_btnOk); - Controls.Add(_tierList); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - MaximizeBox = false; - MinimizeBox = false; - Name = "TierManagement"; - Text = "Tier Management"; - ResumeLayout(false); - } + private void InitializeComponent() + { + _tierList = new ListBox(); + _cancelBtn = new Button(); + _btnOk = new Button(); + SuspendLayout(); + _tierList.AllowDrop = true; + _tierList.FormattingEnabled = true; + _tierList.IntegralHeight = false; + _tierList.Location = new Point(9, 9); + _tierList.Margin = new Padding(0); + _tierList.Name = "_tierList"; + _tierList.ScrollAlwaysVisible = true; + _tierList.Size = new Size(234, 179); + _tierList.TabIndex = 0; + _tierList.MouseDown += TierList_MouseDown; + _tierList.DragDrop += TierList_DragDrop; + _tierList.DragEnter += TierList_DragEnter; + _tierList.DragOver += TierList_DragOver; + _cancelBtn.DialogResult = DialogResult.Cancel; + _cancelBtn.Location = new Point(168, 191); + _cancelBtn.Name = "_cancelBtn"; + _cancelBtn.Size = new Size(75, 23); + _cancelBtn.TabIndex = 4; + _cancelBtn.Text = "Cancel"; + _cancelBtn.UseVisualStyleBackColor = true; + _btnOk.DialogResult = DialogResult.OK; + _btnOk.Location = new Point(9, 191); + _btnOk.Name = "_btnOk"; + _btnOk.Size = new Size(75, 23); + _btnOk.TabIndex = 3; + _btnOk.Text = "OK"; + _btnOk.UseVisualStyleBackColor = true; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(252, 219); + Controls.Add(_cancelBtn); + Controls.Add(_btnOk); + Controls.Add(_tierList); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + MaximizeBox = false; + MinimizeBox = false; + Name = "TierManagement"; + Text = "Tier Management"; + ResumeLayout(false); + } - public TierManagement(string string0, Gh3Tier[] gh3Tier0) - { - InitializeComponent(); - _tierList.Items.AddRange(gh3Tier0); - Text = Text + " (" + string0 + ")"; - } + public TierManagement(string string0, Gh3Tier[] gh3Tier0) + { + InitializeComponent(); + _tierList.Items.AddRange(gh3Tier0); + Text = Text + " (" + string0 + ")"; + } - private void TierList_MouseDown(object sender, MouseEventArgs e) - { - if (e.Clicks != 2 || e.Button != MouseButtons.Left) - { - if (e.Clicks == 2 && e.Button == MouseButtons.Right) - { - var num = _tierList.IndexFromPoint(e.X, e.Y); - if (num >= 0 && num < _tierList.Items.Count && 1 < _tierList.Items.Count) - { - _tierList.Items.RemoveAt(num); - } - } - return; - } - var num2 = _tierList.IndexFromPoint(e.X, e.Y); - if (num2 >= 0 && num2 < _tierList.Items.Count) - { - _tierList.DoDragDrop(_tierList.Items[_int0 = num2], DragDropEffects.Move); - return; - } - _tierList.Items.Add(new Gh3Tier()); - } + private void TierList_MouseDown(object sender, MouseEventArgs e) + { + if (e.Clicks != 2 || e.Button != MouseButtons.Left) + { + if (e.Clicks == 2 && e.Button == MouseButtons.Right) + { + var num = _tierList.IndexFromPoint(e.X, e.Y); + if (num >= 0 && num < _tierList.Items.Count && 1 < _tierList.Items.Count) + { + _tierList.Items.RemoveAt(num); + } + } + return; + } + var num2 = _tierList.IndexFromPoint(e.X, e.Y); + if (num2 >= 0 && num2 < _tierList.Items.Count) + { + _tierList.DoDragDrop(_tierList.Items[_int0 = num2], DragDropEffects.Move); + return; + } + _tierList.Items.Add(new Gh3Tier()); + } - private void TierList_DragEnter(object sender, DragEventArgs e) - { - if (e.Data.GetDataPresent(typeof(Gh3Tier))) - { - e.Effect = DragDropEffects.Move; - } - } + private void TierList_DragEnter(object sender, DragEventArgs e) + { + if (e.Data.GetDataPresent(typeof(Gh3Tier))) + { + e.Effect = DragDropEffects.Move; + } + } - private void TierList_DragDrop(object sender, DragEventArgs e) - { - if (e.Data.GetDataPresent(typeof(Gh3Tier))) - { - _tierList.Items.RemoveAt(_int0); - if (_int1 >= 0 && _int1 < _tierList.Items.Count) - { - _tierList.Items.Insert(_int1, e.Data.GetData(typeof(Gh3Tier))); - _tierList.SelectedIndex = _int1; - return; - } - _tierList.Items.Add(e.Data.GetData(typeof(Gh3Tier))); - _tierList.SelectedIndex = _tierList.Items.Count - 1; - } - } + private void TierList_DragDrop(object sender, DragEventArgs e) + { + if (e.Data.GetDataPresent(typeof(Gh3Tier))) + { + _tierList.Items.RemoveAt(_int0); + if (_int1 >= 0 && _int1 < _tierList.Items.Count) + { + _tierList.Items.Insert(_int1, e.Data.GetData(typeof(Gh3Tier))); + _tierList.SelectedIndex = _int1; + return; + } + _tierList.Items.Add(e.Data.GetData(typeof(Gh3Tier))); + _tierList.SelectedIndex = _tierList.Items.Count - 1; + } + } - private void TierList_DragOver(object sender, DragEventArgs e) - { - _int1 = _tierList.IndexFromPoint(_tierList.PointToClient(new Point(e.X, e.Y))); - _tierList.SelectedIndex = _int1; - } + private void TierList_DragOver(object sender, DragEventArgs e) + { + _int1 = _tierList.IndexFromPoint(_tierList.PointToClient(new Point(e.X, e.Y))); + _tierList.SelectedIndex = _int1; + } - public Gh3Tier[] method_0() - { - var list = new List(); - foreach (Gh3Tier item in _tierList.Items) - { - list.Add(item); - } - return list.ToArray(); - } - } -} + public Gh3Tier[] method_0() + { + var list = new List(); + foreach (Gh3Tier item in _tierList.Items) + { + list.Add(item); + } + return list.ToArray(); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/ActionsWindow.cs b/GHNamespace9/ActionsWindow.cs index 48e2ac6..00107a2 100644 --- a/GHNamespace9/ActionsWindow.cs +++ b/GHNamespace9/ActionsWindow.cs @@ -8,169 +8,168 @@ namespace GHNamespace9 { - public class ActionsWindow : Form - { - private delegate void Delegate7(object sender, EventArgs0 e); - - private readonly ActionList _actionList; - - private EventHandler _eventHandler0; - - public bool Bool0; - - private Thread _thread0; - - private IContainer icontainer_0; - - private RichTextBox _actionsTxt; - - private SplitContainer _splitContainer1; - - private Button _closeBtn; - - private Button _viewLogBtn; - - private ProgressBar _progressBar; - - public ActionsWindow(List listOfActions) - { - InitializeComponent(); - _actionList = new ActionList(listOfActions); - _actionList.method_0(method_2); - _actionsTxt.Text = ""; - } - - public void method_0(EventHandler eventHandler1) - { - var eventHandler = _eventHandler0; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - var value = (EventHandler)Delegate.Combine(eventHandler2, eventHandler1); - eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); - } - while (eventHandler != eventHandler2); - } - - public void method_1() - { - _thread0 = new Thread(_actionList.method_1); - _thread0.CurrentCulture = Thread.CurrentThread.CurrentCulture; - _thread0.CurrentUICulture = Thread.CurrentThread.CurrentUICulture; - _thread0.Start(); - } - - private void method_2(object sender, EventArgs0 e) - { - if (InvokeRequired) - { - Delegate7 method = method_2; - Invoke(method, sender, e); - return; - } - var expr34 = _actionsTxt; - expr34.Text += e.method_0(); - _actionsTxt.ScrollToCaret(); - _progressBar.Value = e.method_1(); - if (e.method_0().StartsWith("FAILED")) - { - Bool0 = true; - } - if (e.method_1() == 100) - { - Control arg_9C0 = _closeBtn; - _viewLogBtn.Enabled = true; - arg_9C0.Enabled = true; - _eventHandler0(this, EventArgs.Empty); - } - } - - private void CloseBtn_Click(object sender, EventArgs e) - { - if (_thread0 != null) - { - _thread0.Abort(); - } + public class ActionsWindow : Form + { + private delegate void Delegate7(object sender, EventArgs0 e); + + private readonly ActionList _actionList; + + private EventHandler _eventHandler0; + + public bool Bool0; + + private Thread _thread0; + + private IContainer icontainer_0; + + private RichTextBox _actionsTxt; + + private SplitContainer _splitContainer1; + + private Button _closeBtn; + + private Button _viewLogBtn; + + private ProgressBar _progressBar; + + public ActionsWindow(List listOfActions) + { + InitializeComponent(); + _actionList = new ActionList(listOfActions); + _actionList.method_0(method_2); + _actionsTxt.Text = ""; + } + + public void method_0(EventHandler eventHandler1) + { + var eventHandler = _eventHandler0; + EventHandler eventHandler2; + do + { + eventHandler2 = eventHandler; + var value = (EventHandler) Delegate.Combine(eventHandler2, eventHandler1); + eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); + } while (eventHandler != eventHandler2); + } + + public void method_1() + { + _thread0 = new Thread(_actionList.method_1); + _thread0.CurrentCulture = Thread.CurrentThread.CurrentCulture; + _thread0.CurrentUICulture = Thread.CurrentThread.CurrentUICulture; + _thread0.Start(); + } + + private void method_2(object sender, EventArgs0 e) + { + if (InvokeRequired) + { + Delegate7 method = method_2; + Invoke(method, sender, e); + return; + } + var expr34 = _actionsTxt; + expr34.Text += e.method_0(); + _actionsTxt.ScrollToCaret(); + _progressBar.Value = e.method_1(); + if (e.method_0().StartsWith("FAILED")) + { + Bool0 = true; + } + if (e.method_1() == 100) + { + Control arg_9C0 = _closeBtn; + _viewLogBtn.Enabled = true; + arg_9C0.Enabled = true; + _eventHandler0(this, EventArgs.Empty); + } + } + + private void CloseBtn_Click(object sender, EventArgs e) + { + if (_thread0 != null) + { + _thread0.Abort(); + } Close(); - base.Dispose(); - } + base.Dispose(); + } - private void ViewLogBtn_Click(object sender, EventArgs e) - { - new ViewLog().ShowDialog(); - } + private void ViewLogBtn_Click(object sender, EventArgs e) + { + new ViewLog().ShowDialog(); + } protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - _actionsTxt = new RichTextBox(); - _splitContainer1 = new SplitContainer(); - _viewLogBtn = new Button(); - _closeBtn = new Button(); - _progressBar = new ProgressBar(); - _splitContainer1.Panel1.SuspendLayout(); - _splitContainer1.Panel2.SuspendLayout(); - _splitContainer1.SuspendLayout(); - SuspendLayout(); - _actionsTxt.Dock = DockStyle.Fill; - _actionsTxt.Location = new Point(0, 0); - _actionsTxt.Name = "_actionsTxt"; - _actionsTxt.ReadOnly = true; - _actionsTxt.Size = new Size(338, 141); - _actionsTxt.TabIndex = 0; - _actionsTxt.Text = ""; - _splitContainer1.Dock = DockStyle.Fill; - _splitContainer1.IsSplitterFixed = true; - _splitContainer1.Location = new Point(0, 0); - _splitContainer1.Name = "_splitContainer1"; - _splitContainer1.Orientation = Orientation.Horizontal; - _splitContainer1.Panel1.Controls.Add(_actionsTxt); - _splitContainer1.Panel2.Controls.Add(_progressBar); - _splitContainer1.Panel2.Controls.Add(_viewLogBtn); - _splitContainer1.Panel2.Controls.Add(_closeBtn); - _splitContainer1.Size = new Size(338, 171); - _splitContainer1.SplitterDistance = 141; - _splitContainer1.TabIndex = 1; - _viewLogBtn.Enabled = false; - _viewLogBtn.Location = new Point(84, 2); - _viewLogBtn.Name = "_viewLogBtn"; - _viewLogBtn.Size = new Size(75, 23); - _viewLogBtn.TabIndex = 1; - _viewLogBtn.Text = "View Log"; - _viewLogBtn.UseVisualStyleBackColor = true; - _viewLogBtn.Click += ViewLogBtn_Click; - _closeBtn.Enabled = false; - _closeBtn.Location = new Point(3, 2); - _closeBtn.Name = "_closeBtn"; - _closeBtn.Size = new Size(75, 23); - _closeBtn.TabIndex = 0; - _closeBtn.Text = "Close"; - _closeBtn.UseVisualStyleBackColor = true; - _closeBtn.Click += CloseBtn_Click; - _progressBar.Location = new Point(165, 2); - _progressBar.Name = "_progressBar"; - _progressBar.Size = new Size(170, 23); - _progressBar.TabIndex = 2; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(338, 171); - Controls.Add(_splitContainer1); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - Name = "ActionsWindow"; - Text = "ExecuteActions"; - _splitContainer1.Panel1.ResumeLayout(false); - _splitContainer1.Panel2.ResumeLayout(false); - _splitContainer1.ResumeLayout(false); - ResumeLayout(false); - } - } -} + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + _actionsTxt = new RichTextBox(); + _splitContainer1 = new SplitContainer(); + _viewLogBtn = new Button(); + _closeBtn = new Button(); + _progressBar = new ProgressBar(); + _splitContainer1.Panel1.SuspendLayout(); + _splitContainer1.Panel2.SuspendLayout(); + _splitContainer1.SuspendLayout(); + SuspendLayout(); + _actionsTxt.Dock = DockStyle.Fill; + _actionsTxt.Location = new Point(0, 0); + _actionsTxt.Name = "_actionsTxt"; + _actionsTxt.ReadOnly = true; + _actionsTxt.Size = new Size(338, 141); + _actionsTxt.TabIndex = 0; + _actionsTxt.Text = ""; + _splitContainer1.Dock = DockStyle.Fill; + _splitContainer1.IsSplitterFixed = true; + _splitContainer1.Location = new Point(0, 0); + _splitContainer1.Name = "_splitContainer1"; + _splitContainer1.Orientation = Orientation.Horizontal; + _splitContainer1.Panel1.Controls.Add(_actionsTxt); + _splitContainer1.Panel2.Controls.Add(_progressBar); + _splitContainer1.Panel2.Controls.Add(_viewLogBtn); + _splitContainer1.Panel2.Controls.Add(_closeBtn); + _splitContainer1.Size = new Size(338, 171); + _splitContainer1.SplitterDistance = 141; + _splitContainer1.TabIndex = 1; + _viewLogBtn.Enabled = false; + _viewLogBtn.Location = new Point(84, 2); + _viewLogBtn.Name = "_viewLogBtn"; + _viewLogBtn.Size = new Size(75, 23); + _viewLogBtn.TabIndex = 1; + _viewLogBtn.Text = "View Log"; + _viewLogBtn.UseVisualStyleBackColor = true; + _viewLogBtn.Click += ViewLogBtn_Click; + _closeBtn.Enabled = false; + _closeBtn.Location = new Point(3, 2); + _closeBtn.Name = "_closeBtn"; + _closeBtn.Size = new Size(75, 23); + _closeBtn.TabIndex = 0; + _closeBtn.Text = "Close"; + _closeBtn.UseVisualStyleBackColor = true; + _closeBtn.Click += CloseBtn_Click; + _progressBar.Location = new Point(165, 2); + _progressBar.Name = "_progressBar"; + _progressBar.Size = new Size(170, 23); + _progressBar.TabIndex = 2; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(338, 171); + Controls.Add(_splitContainer1); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + Name = "ActionsWindow"; + Text = "ExecuteActions"; + _splitContainer1.Panel1.ResumeLayout(false); + _splitContainer1.Panel2.ResumeLayout(false); + _splitContainer1.ResumeLayout(false); + ResumeLayout(false); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/ByteList.cs b/GHNamespace9/ByteList.cs index c1af5e3..64965d8 100644 --- a/GHNamespace9/ByteList.cs +++ b/GHNamespace9/ByteList.cs @@ -3,11 +3,11 @@ namespace GHNamespace9 { - public class ByteList : List, IDisposable - { - public void Dispose() - { - Clear(); - } - } -} + public class ByteList : List, IDisposable + { + public void Dispose() + { + Clear(); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Enum33.cs b/GHNamespace9/Enum33.cs index f3e734d..2d9dd58 100644 --- a/GHNamespace9/Enum33.cs +++ b/GHNamespace9/Enum33.cs @@ -1,9 +1,9 @@ namespace GHNamespace9 { - public enum EndiannessEnum - { - Const0, - Const1, - Const2 - } -} + public enum EndiannessEnum + { + Const0, + Const1, + Const2 + } +} \ No newline at end of file diff --git a/GHNamespace9/EventArgs0.cs b/GHNamespace9/EventArgs0.cs index 6c861b1..535dda5 100644 --- a/GHNamespace9/EventArgs0.cs +++ b/GHNamespace9/EventArgs0.cs @@ -2,26 +2,26 @@ namespace GHNamespace9 { - public class EventArgs0 : EventArgs - { - private readonly string _string0; + public class EventArgs0 : EventArgs + { + private readonly string _string0; - private readonly int _int0; + private readonly int _int0; - public EventArgs0(string string1, int int1) - { - _string0 = string1; - _int0 = int1; - } + public EventArgs0(string string1, int int1) + { + _string0 = string1; + _int0 = int1; + } - public string method_0() - { - return _string0; - } + public string method_0() + { + return _string0; + } - public int method_1() - { - return _int0; - } - } -} + public int method_1() + { + return _int0; + } + } +} \ No newline at end of file diff --git a/GHNamespace9/EventHandlerClass1.cs b/GHNamespace9/EventHandlerClass1.cs index d6a93eb..b46ee3f 100644 --- a/GHNamespace9/EventHandlerClass1.cs +++ b/GHNamespace9/EventHandlerClass1.cs @@ -9,90 +9,89 @@ namespace GHNamespace9 { - public class EventHandlerClass1 : IDisposable - { - private class HandlerBuddy : NativeWindow, IDisposable - { - private static readonly int Int0 = 786; + public class EventHandlerClass1 : IDisposable + { + private class HandlerBuddy : NativeWindow, IDisposable + { + private static readonly int Int0 = 786; - private EventHandler _eventHandler0; + private EventHandler _eventHandler0; - public HandlerBuddy() - { - CreateHandle(new CreateParams()); - } + public HandlerBuddy() + { + CreateHandle(new CreateParams()); + } protected override void WndProc(ref Message m) - { - base.WndProc(ref m); - if (m.Msg == Int0) - { - var keys = (Keys)((int)m.LParam >> 16 & 65535); - var modKeys = (ModKeys)((int)m.LParam & 65535); - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs1(modKeys, keys)); - } - } - } + { + base.WndProc(ref m); + if (m.Msg == Int0) + { + var keys = (Keys) ((int) m.LParam >> 16 & 65535); + var modKeys = (ModKeys) ((int) m.LParam & 65535); + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs1(modKeys, keys)); + } + } + } - public void method_0(EventHandler eventHandler1) - { - var eventHandler = _eventHandler0; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - var value = (EventHandler)Delegate.Combine(eventHandler2, eventHandler1); - eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); - } - while (eventHandler != eventHandler2); - } + public void method_0(EventHandler eventHandler1) + { + var eventHandler = _eventHandler0; + EventHandler eventHandler2; + do + { + eventHandler2 = eventHandler; + var value = (EventHandler) Delegate.Combine(eventHandler2, eventHandler1); + eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); + } while (eventHandler != eventHandler2); + } - public void Dispose() - { - DestroyHandle(); - } - } + public void Dispose() + { + DestroyHandle(); + } + } - private readonly HandlerBuddy _class2340 = new HandlerBuddy(); + private readonly HandlerBuddy _class2340 = new HandlerBuddy(); - private readonly Dictionary _dictionary0 = new Dictionary(); + private readonly Dictionary _dictionary0 = new Dictionary(); - private EventHandler _eventHandler0; + private EventHandler _eventHandler0; - public EventHandlerClass1() - { - var arg320 = _class2340; - EventHandler eventHandler = method_1; - arg320.method_0(eventHandler); - } + public EventHandlerClass1() + { + var arg320 = _class2340; + EventHandler eventHandler = method_1; + arg320.method_0(eventHandler); + } - [DllImport("user32.dll")] - private static extern bool UnregisterHotKey(IntPtr intptr0, int int0); + [DllImport("user32.dll")] + private static extern bool UnregisterHotKey(IntPtr intptr0, int int0); - public void method_0() - { - foreach (var current in _dictionary0.Values) - { - UnregisterHotKey(_class2340.Handle, current); - } - _dictionary0.Clear(); - } + public void method_0() + { + foreach (var current in _dictionary0.Values) + { + UnregisterHotKey(_class2340.Handle, current); + } + _dictionary0.Clear(); + } - public void Dispose() - { - method_0(); - _class2340.Dispose(); - } + public void Dispose() + { + method_0(); + _class2340.Dispose(); + } - [CompilerGenerated] - private void method_1(object sender, EventArgs1 e) - { - if (_eventHandler0 != null) - { - _eventHandler0(this, e); - } - } - } -} + [CompilerGenerated] + private void method_1(object sender, EventArgs1 e) + { + if (_eventHandler0 != null) + { + _eventHandler0(this, e); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Fretbar.cs b/GHNamespace9/Fretbar.cs index 3041954..5d43e98 100644 --- a/GHNamespace9/Fretbar.cs +++ b/GHNamespace9/Fretbar.cs @@ -3,214 +3,211 @@ namespace GHNamespace9 { - public class Fretbar : List, ICloneable where T : IComparable - { - private bool _bool0; - - private bool _bool1; - - private bool _bool2; - - public new T this[int int0] - { - get - { - return base[int0]; - } - set - { - if (method_5(value)) - { - base[int0] = value; - if (int0 > 0) - { - var t = base[int0 - 1]; - if (t.CompareTo(value) > 0) - { - goto IL_54; - } - } - if (int0 >= Count - 1 || value.CompareTo(base[int0 + 1]) <= 0) - { - return; - } - IL_54: - Sort(); - } - } - } - - public Fretbar() - { - method_0(); - } - - public Fretbar(int int0) : base(int0) - { - method_0(); - } - - public Fretbar(IEnumerable ienumerable0) : base(ienumerable0) - { - Sort(); - method_0(); - } - - private void method_0() - { - _bool0 = true; - _bool1 = true; - _bool2 = true; - } - - public void method_1(T gparam0) - { - if (method_5(gparam0)) - { - if (_bool1) - { - var num = method_3(gparam0); - var num2 = (num >= 0) ? num : (-num - 1); - if (num2 >= Count) - { - Add(gparam0); - return; - } - Insert(num2, gparam0); - } - else - { - _bool0 = false; - Add(gparam0); - } - } - } - - public bool method_2(T gparam0) - { - if (!_bool0) - { - return Contains(gparam0); - } - return BinarySearch(gparam0) >= 0; - } - - public int method_3(T gparam0) - { - int i; - if (_bool0) - { - for (i = BinarySearch(gparam0); i > 0; i--) - { - var t = base[i - 1]; - if (!t.Equals(gparam0)) - { - break; - } - } - } - else - { - i = IndexOf(gparam0); - } - return i; - } - - public override string ToString() - { - var text = "{"; - for (var i = 0; i < Count; i++) - { - var arg370 = text; - var t = base[i]; - text = arg370 + t + ((i != Count - 1) ? "; " : "}"); - } - return text; - } - - public override bool Equals(object obj) - { - var @class = (Fretbar)obj; - if (@class.Count != Count) - { - return false; - } - for (var i = 0; i < Count; i++) - { - var t = @class[i]; - if (!t.Equals(this[i])) - { - return false; - } - } - return true; - } - - public override int GetHashCode() - { - return base.GetHashCode(); - } - - public void method_4() - { - if (_bool0) - { - return; - } - Sort(); - _bool0 = true; - } - - private bool method_5(T gparam0) - { - return _bool2 || !method_2(gparam0); - } - - public object Clone() - { - return new Fretbar(this) - { - _bool2 = _bool2, - _bool0 = _bool0, - _bool1 = _bool1 - }; - } - - private bool method_6(ref int int0, ref int int1, ref int int2, T gparam0) - { - method_4(); - while (int0 <= int1) - { - int2 = (int0 + int1) / 2; - var t = base[int2]; - if (t.CompareTo(gparam0) < 0) - { - int0 = int2 + 1; - } - else - { - var t2 = base[int2]; - if (t2.CompareTo(gparam0) <= 0) - { - return true; - } - int1 = int2 - 1; - } - } - return false; - } - - public int method_7(T gparam0) - { - var num = 0; - var num2 = Count - 1; - var num3 = 0; - num3 = (method_6(ref num, ref num2, ref num3, gparam0) ? num3 : num2); - if (num3 >= 0) - { - return num3; - } - return 0; - } - } -} + public class Fretbar : List, ICloneable where T : IComparable + { + private bool _bool0; + + private bool _bool1; + + private bool _bool2; + + public new T this[int int0] + { + get { return base[int0]; } + set + { + if (method_5(value)) + { + base[int0] = value; + if (int0 > 0) + { + var t = base[int0 - 1]; + if (t.CompareTo(value) > 0) + { + goto IL_54; + } + } + if (int0 >= Count - 1 || value.CompareTo(base[int0 + 1]) <= 0) + { + return; + } + IL_54: + Sort(); + } + } + } + + public Fretbar() + { + method_0(); + } + + public Fretbar(int int0) : base(int0) + { + method_0(); + } + + public Fretbar(IEnumerable ienumerable0) : base(ienumerable0) + { + Sort(); + method_0(); + } + + private void method_0() + { + _bool0 = true; + _bool1 = true; + _bool2 = true; + } + + public void method_1(T gparam0) + { + if (method_5(gparam0)) + { + if (_bool1) + { + var num = method_3(gparam0); + var num2 = (num >= 0) ? num : (-num - 1); + if (num2 >= Count) + { + Add(gparam0); + return; + } + Insert(num2, gparam0); + } + else + { + _bool0 = false; + Add(gparam0); + } + } + } + + public bool method_2(T gparam0) + { + if (!_bool0) + { + return Contains(gparam0); + } + return BinarySearch(gparam0) >= 0; + } + + public int method_3(T gparam0) + { + int i; + if (_bool0) + { + for (i = BinarySearch(gparam0); i > 0; i--) + { + var t = base[i - 1]; + if (!t.Equals(gparam0)) + { + break; + } + } + } + else + { + i = IndexOf(gparam0); + } + return i; + } + + public override string ToString() + { + var text = "{"; + for (var i = 0; i < Count; i++) + { + var arg370 = text; + var t = base[i]; + text = arg370 + t + ((i != Count - 1) ? "; " : "}"); + } + return text; + } + + public override bool Equals(object obj) + { + var @class = (Fretbar) obj; + if (@class.Count != Count) + { + return false; + } + for (var i = 0; i < Count; i++) + { + var t = @class[i]; + if (!t.Equals(this[i])) + { + return false; + } + } + return true; + } + + public override int GetHashCode() + { + return base.GetHashCode(); + } + + public void method_4() + { + if (_bool0) + { + return; + } + Sort(); + _bool0 = true; + } + + private bool method_5(T gparam0) + { + return _bool2 || !method_2(gparam0); + } + + public object Clone() + { + return new Fretbar(this) + { + _bool2 = _bool2, + _bool0 = _bool0, + _bool1 = _bool1 + }; + } + + private bool method_6(ref int int0, ref int int1, ref int int2, T gparam0) + { + method_4(); + while (int0 <= int1) + { + int2 = (int0 + int1) / 2; + var t = base[int2]; + if (t.CompareTo(gparam0) < 0) + { + int0 = int2 + 1; + } + else + { + var t2 = base[int2]; + if (t2.CompareTo(gparam0) <= 0) + { + return true; + } + int1 = int2 - 1; + } + } + return false; + } + + public int method_7(T gparam0) + { + var num = 0; + var num2 = Count - 1; + var num3 = 0; + num3 = (method_6(ref num, ref num2, ref num3, gparam0) ? num3 : num2); + if (num3 >= 0) + { + return num3; + } + return 0; + } + } +} \ No newline at end of file diff --git a/GHNamespace9/GhtcpToolStripControlHost.cs b/GHNamespace9/GhtcpToolStripControlHost.cs index 7a334e8..2feb680 100644 --- a/GHNamespace9/GhtcpToolStripControlHost.cs +++ b/GHNamespace9/GhtcpToolStripControlHost.cs @@ -5,94 +5,93 @@ namespace GHNamespace9 { - public class GhtcpToolStripControlHost : ToolStripControlHost - { - private EventHandler _eventHandler0; + public class GhtcpToolStripControlHost : ToolStripControlHost + { + private EventHandler _eventHandler0; protected override Size DefaultSize => new Size(200, 16); - public GhtcpToolStripControlHost() : base(smethod_0()) - { - } + public GhtcpToolStripControlHost() : base(smethod_0()) + { + } - public TrackBar method_0() - { - return Control as TrackBar; - } + public TrackBar method_0() + { + return Control as TrackBar; + } - private static Control smethod_0() - { - return new TrackBar - { - AutoSize = false, - Height = 16 - }; - } + private static Control smethod_0() + { + return new TrackBar + { + AutoSize = false, + Height = 16 + }; + } - public int method_1() - { - return method_0().Minimum; - } + public int method_1() + { + return method_0().Minimum; + } - public void method_2(int int0) - { - method_0().Minimum = int0; - } + public void method_2(int int0) + { + method_0().Minimum = int0; + } - public void method_3(int int0) - { - method_0().Maximum = int0; - } + public void method_3(int int0) + { + method_0().Maximum = int0; + } - public int method_4() - { - return method_0().Value; - } + public int method_4() + { + return method_0().Value; + } - public void method_5(int int0) - { - method_0().Value = int0; - } + public void method_5(int int0) + { + method_0().Value = int0; + } protected override void OnSubscribeControlEvents(Control control) - { - base.OnSubscribeControlEvents(control); - var trackBar = control as TrackBar; - if (trackBar != null) - { - trackBar.ValueChanged += method_6; - } - } + { + base.OnSubscribeControlEvents(control); + var trackBar = control as TrackBar; + if (trackBar != null) + { + trackBar.ValueChanged += method_6; + } + } protected override void OnUnsubscribeControlEvents(Control control) - { - base.OnUnsubscribeControlEvents(control); - var trackBar = control as TrackBar; - if (trackBar != null) - { - trackBar.ValueChanged -= method_6; - } - } + { + base.OnUnsubscribeControlEvents(control); + var trackBar = control as TrackBar; + if (trackBar != null) + { + trackBar.ValueChanged -= method_6; + } + } - private void method_6(object sender, EventArgs e) - { - if (_eventHandler0 != null) - { - _eventHandler0(sender, e); - } - } + private void method_6(object sender, EventArgs e) + { + if (_eventHandler0 != null) + { + _eventHandler0(sender, e); + } + } - public void method_7(EventHandler eventHandler1) - { - var eventHandler = _eventHandler0; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - var value = (EventHandler)Delegate.Combine(eventHandler2, eventHandler1); - eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); - } - while (eventHandler != eventHandler2); - } - } -} + public void method_7(EventHandler eventHandler1) + { + var eventHandler = _eventHandler0; + EventHandler eventHandler2; + do + { + eventHandler2 = eventHandler; + var value = (EventHandler) Delegate.Combine(eventHandler2, eventHandler1); + eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); + } while (eventHandler != eventHandler2); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Interface11.cs b/GHNamespace9/Interface11.cs index 49e133a..2cfcdb5 100644 --- a/GHNamespace9/Interface11.cs +++ b/GHNamespace9/Interface11.cs @@ -2,18 +2,18 @@ namespace GHNamespace9 { - public interface INterface11 - { - string imethod_0(); + public interface INterface11 + { + string imethod_0(); - bool imethod_1(); + bool imethod_1(); - bool imethod_2(); + bool imethod_2(); - object[] imethod_3(); + object[] imethod_3(); - void imethod_4(ref int int0); + void imethod_4(ref int int0); - void imethod_5(EventArgs2 eventArgs20); - } -} + void imethod_5(EventArgs2 eventArgs20); + } +} \ No newline at end of file diff --git a/GHNamespace9/KeyGenerator.cs b/GHNamespace9/KeyGenerator.cs index 5f5679e..21e0e9c 100644 --- a/GHNamespace9/KeyGenerator.cs +++ b/GHNamespace9/KeyGenerator.cs @@ -11,852 +11,861 @@ namespace GHNamespace9 { - public class KeyGenerator - { - public static bool Flag0 = false; + public class KeyGenerator + { + public static bool Flag0 = false; - public static bool Flag1 = false; + public static bool Flag1 = false; //Who the hell is Ivan Medvedev - private static readonly byte[] PwByteArray = { - 73, //I - 118, //v - 97, //a - 110, //n - 32, // - 77, //M - 101, //e - 100, //d - 118, //v - 101, //e - 100, //d - 101, //e - 118 //v - }; - - private static uint _key; - - private static readonly uint XorMask = 4294967295u; - - public static readonly uint[] Crc32 = { - 0u, - 1996959894u, // Magic - 3993919788u, // Do not touch - 2567524794u, - 124634137u, - 1886057615u, - 3915621685u, - 2657392035u, - 249268274u, - 2044508324u, - 3772115230u, - 2547177864u, - 162941995u, - 2125561021u, - 3887607047u, - 2428444049u, - 498536548u, - 1789927666u, - 4089016648u, - 2227061214u, - 450548861u, - 1843258603u, - 4107580753u, - 2211677639u, - 325883990u, - 1684777152u, - 4251122042u, - 2321926636u, - 335633487u, - 1661365465u, - 4195302755u, - 2366115317u, - 997073096u, - 1281953886u, - 3579855332u, - 2724688242u, - 1006888145u, - 1258607687u, - 3524101629u, - 2768942443u, - 901097722u, - 1119000684u, - 3686517206u, - 2898065728u, - 853044451u, - 1172266101u, - 3705015759u, - 2882616665u, - 651767980u, - 1373503546u, - 3369554304u, - 3218104598u, - 565507253u, - 1454621731u, - 3485111705u, - 3099436303u, - 671266974u, - 1594198024u, - 3322730930u, - 2970347812u, - 795835527u, - 1483230225u, - 3244367275u, - 3060149565u, - 1994146192u, - 31158534u, - 2563907772u, - 4023717930u, - 1907459465u, - 112637215u, - 2680153253u, - 3904427059u, - 2013776290u, - 251722036u, - 2517215374u, - 3775830040u, - 2137656763u, - 141376813u, - 2439277719u, - 3865271297u, - 1802195444u, - 476864866u, - 2238001368u, - 4066508878u, - 1812370925u, - 453092731u, - 2181625025u, - 4111451223u, - 1706088902u, - 314042704u, - 2344532202u, - 4240017532u, - 1658658271u, - 366619977u, - 2362670323u, - 4224994405u, - 1303535960u, - 984961486u, - 2747007092u, - 3569037538u, - 1256170817u, - 1037604311u, - 2765210733u, - 3554079995u, - 1131014506u, - 879679996u, - 2909243462u, - 3663771856u, - 1141124467u, - 855842277u, - 2852801631u, - 3708648649u, - 1342533948u, - 654459306u, - 3188396048u, - 3373015174u, - 1466479909u, - 544179635u, - 3110523913u, - 3462522015u, - 1591671054u, - 702138776u, - 2966460450u, - 3352799412u, - 1504918807u, - 783551873u, - 3082640443u, - 3233442989u, - 3988292384u, - 2596254646u, - 62317068u, - 1957810842u, - 3939845945u, - 2647816111u, - 81470997u, - 1943803523u, - 3814918930u, - 2489596804u, - 225274430u, - 2053790376u, - 3826175755u, - 2466906013u, - 167816743u, - 2097651377u, - 4027552580u, - 2265490386u, - 503444072u, - 1762050814u, - 4150417245u, - 2154129355u, - 426522225u, - 1852507879u, - 4275313526u, - 2312317920u, - 282753626u, - 1742555852u, - 4189708143u, - 2394877945u, - 397917763u, - 1622183637u, - 3604390888u, - 2714866558u, - 953729732u, - 1340076626u, - 3518719985u, - 2797360999u, - 1068828381u, - 1219638859u, - 3624741850u, - 2936675148u, - 906185462u, - 1090812512u, - 3747672003u, - 2825379669u, - 829329135u, - 1181335161u, - 3412177804u, - 3160834842u, - 628085408u, - 1382605366u, - 3423369109u, - 3138078467u, - 570562233u, - 1426400815u, - 3317316542u, - 2998733608u, - 733239954u, - 1555261956u, - 3268935591u, - 3050360625u, - 752459403u, - 1541320221u, - 2607071920u, - 3965973030u, - 1969922972u, - 40735498u, - 2617837225u, - 3943577151u, - 1913087877u, - 83908371u, - 2512341634u, - 3803740692u, - 2075208622u, - 213261112u, - 2463272603u, - 3855990285u, - 2094854071u, - 198958881u, - 2262029012u, - 4057260610u, - 1759359992u, - 534414190u, - 2176718541u, - 4139329115u, - 1873836001u, - 414664567u, - 2282248934u, - 4279200368u, - 1711684554u, - 285281116u, - 2405801727u, - 4167216745u, - 1634467795u, - 376229701u, - 2685067896u, - 3608007406u, - 1308918612u, - 956543938u, - 2808555105u, - 3495958263u, - 1231636301u, - 1047427035u, - 2932959818u, - 3654703836u, - 1088359270u, - 936918000u, - 2847714899u, - 3736837829u, - 1202900863u, - 817233897u, - 3183342108u, - 3401237130u, - 1404277552u, - 615818150u, - 3134207493u, - 3453421203u, - 1423857449u, - 601450431u, - 3009837614u, - 3294710456u, - 1567103746u, - 711928724u, - 3020668471u, - 3272380065u, - 1510334235u, - 755167117u - }; - - private static readonly Random Random0 = new Random(); - - public static void smethod_0(Stream stream0, Stream stream1, byte[] byte1, byte[] byte2) - { - if ((byte1.Length != 16 && byte1.Length != 24 && byte1.Length != 32) || byte2.Length != 16) - { - return; - } - var rijndael = Rijndael.Create(); - rijndael.Key = byte1; - rijndael.IV = byte2; - var cryptoStream = new CryptoStream(stream1, rijndael.CreateEncryptor(), CryptoStreamMode.Write); - var array = new byte[4096]; - int count; - while ((count = stream0.Read(array, 0, array.Length)) > 0) - { - cryptoStream.Write(array, 0, count); - } - cryptoStream.Close(); - } - - public static void smethod_1(Stream stream0, Stream stream1, string string0) - { - var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); - smethod_0(stream0, stream1, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); - } - - public static byte[] smethod_2(Stream stream0, string string0) - { - var memoryStream = new MemoryStream(); - smethod_1(stream0, memoryStream, string0); - return memoryStream.ToArray(); - } - - private static void CryptoMethod(Stream stream0, Stream stream1, byte[] byte1, byte[] byte2) - { - if ((byte1.Length != 16 && byte1.Length != 24 && byte1.Length != 32) || byte2.Length != 16) - { - return; - } - var rijndael = Rijndael.Create(); - rijndael.Key = byte1; - rijndael.IV = byte2; - var cryptoStream = new CryptoStream(stream1, rijndael.CreateDecryptor(), CryptoStreamMode.Write); - var array = new byte[4096]; - int count; - while ((count = stream0.Read(array, 0, array.Length)) > 0) - { - cryptoStream.Write(array, 0, count); - } - cryptoStream.Close(); - } - - private static void CryptoMethod(Stream stream0, Stream stream1, string string0) - { - var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); - CryptoMethod(stream0, stream1, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); - } - - public static byte[] CryptoMethod(Stream stream0, string string0) - { - var memoryStream = new MemoryStream(); - CryptoMethod(stream0, memoryStream, string0); - return memoryStream.ToArray(); - } - - public static void smethod_6(byte[] byte1, Stream stream0, byte[] key, byte[] initializationVector) - { - if ((key.Length != 16 && key.Length != 24 && key.Length != 32) || initializationVector.Length != 16) - { - return; - } - var rijndael = Rijndael.Create(); - rijndael.Key = key; - rijndael.IV = initializationVector; - var cryptoStream = new CryptoStream(stream0, rijndael.CreateDecryptor(), CryptoStreamMode.Write); - cryptoStream.Write(byte1, 0, byte1.Length); - cryptoStream.Close(); - } - - public static void smethod_7(byte[] byte1, Stream stream0, string string0) - { - var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); - smethod_6(byte1, stream0, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); - } - - public static byte[] smethod_8(byte[] byte1, string string0) - { - var memoryStream = new MemoryStream(); - smethod_7(byte1, memoryStream, string0); - return memoryStream.ToArray(); - } - - public static void WriteAllBytes(string fileName, byte[] bytes) - { - if (File.Exists(fileName) && (File.GetAttributes(fileName) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) - { - File.SetAttributes(fileName, FileAttributes.Normal); - } - File.WriteAllBytes(fileName, bytes); - } - - public static string smethod_10(string string0) - { - var length = string0.LastIndexOfAny(new[] { '\\', '/' }) + 1; - return string0.Substring(0, length); - } - - public static string GetFileName(string path, int dotsInExtension) - { - var i = path.LastIndexOfAny(new[] { '\\', '/' }) + 1; - var text = path.Substring(i); - try - { - if (dotsInExtension == -1) - { - text = text.Substring(0, text.IndexOf('.')); - } - else - { - for (i = 0; i < dotsInExtension; i++) - { - text = text.Substring(0, text.LastIndexOf('.')); - } - } - } - catch - { - } - return text; - } - - public static string GetFileNameNoExt(string path) - { - return GetFileName(path, -1); - } - - public static string GetFileName(string string0) - { - return GetFileName(string0, 0); - } - - public static string GetExtension(string string0, int int0) - { - string result; - try - { - var text = string0.Substring(string0.IndexOf('.') + 1); - if (int0 != 0) - { - var array = text.Split(new[] - { - '.' - }, StringSplitOptions.RemoveEmptyEntries); - text = array[array.Length - int0]; - } - result = text; - } - catch - { - result = ""; - } - return result; - } - - public static string OpenOrSaveFile(string title, string filter, bool isOpenDialog, string fileName = "") - { - var fileDialog = isOpenDialog ? (FileDialog) new OpenFileDialog() : new SaveFileDialog(); - fileDialog.Title = title; - fileDialog.FileName = fileName; - fileDialog.CheckPathExists = true; - if (!filter.Equals("")) - { - fileDialog.Filter = filter; - } - return fileDialog.ShowDialog() == DialogResult.OK ? fileDialog.FileName : ""; - } - - public static string OpenFile(string title, string filter) - { - return OpenOrSaveFile(title, filter, true); - } - - public static List CheckFile(string string0, string string1, bool bool2) - { - var array = string1.Split(new[] - { - ';' - }, StringSplitOptions.RemoveEmptyEntries); - var fileList = new List(); - var array2 = array; - foreach (var searchPattern in array2) - { - fileList.AddRange(Directory.GetFiles(string0, searchPattern, bool2 ? SearchOption.TopDirectoryOnly : SearchOption.AllDirectories)); - } - return fileList; - } - - public static void smethod_19(string string0, string string1, bool bool2) - { - if (string0.ToLower().Equals(string1.ToLower())) - { - return; - } - if (bool2 && File.Exists(string1) && (File.GetAttributes(string1) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) - { - File.SetAttributes(string1, FileAttributes.Normal); - } - File.Copy(string0, string1, bool2); - } - - public static void smethod_20(string string0) - { - if (File.Exists(string0)) - { - if ((File.GetAttributes(string0) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) - { - File.SetAttributes(string0, FileAttributes.Normal); - } - File.Delete(string0); - } - } - - public static int[] smethod_21(ICollection icollection0) - { - return smethod_22(new List(icollection0)); - } - - public static int[] smethod_22(List list0) - { - var array = new int[list0.Count / 4]; - for (var i = 0; i < array.Length; i++) - { - array[i] = smethod_25(list0.GetRange(i * 4, 4).ToArray()); - } - return array; - } - - public static int HexStringToInt(string hexidecimalInteger) - { - return Convert.ToInt32(hexidecimalInteger.Replace(" ", ""), 16); - } - - public static int smethod_24(byte[] byte1, bool bool2) - { - if (!(bool2 ^ BitConverter.IsLittleEndian)) - { - return BytesToInt(byte1); - } - var num = byte1.Length; - switch (num) - { - case 2: - return BitConverter.ToInt16(byte1, 0); - case 3: - break; - case 4: - return BitConverter.ToInt32(byte1, 0); - default: - if (num == 8) //i am pretty sure this should just be another switch case but I'm not going to touch it for now - { - return (int)BitConverter.ToInt64(byte1, 0); - } - break; - } - throw new Exception(); - } - - public static int smethod_25(byte[] byte1) - { - return smethod_24(byte1, Flag0); - } - - public static int ReverseEndianness(int int0) - { - return (int0 >> 24 & 255) | (int0 >> 8 & 65280) | (int0 << 8 & 16711680) | (int0 << 24 & -16777216); - } - - public static short BytesToShort(byte[] byte1) - { - short num = 0; - var num2 = Math.Min(2, byte1.Length); - for (var i = 0; i < num2; i++) - { - num |= (short)(byte1[i] << 8 - 8 * i); - } - return num; - } - - public static int BytesToInt(byte[] byte1) - { - var num = 0; - var num2 = Math.Min(4, byte1.Length); - for (var i = 0; i < num2; i++) - { - num |= byte1[i] << 24 - 8 * i; - } - return num; - } - - public static byte[] IntToBytes(int int0) - { - return new[] - { - (byte)(int0 >> 24 & 255), - (byte)(int0 >> 16 & 255), - (byte)(int0 >> 8 & 255), - (byte)(int0 & 255) - }; - } - - public static byte[] ReadBytes(string path) - { - return File.ReadAllBytes(path); - } - - public static byte[] ReadBytes(Stream stream0) - { - var binaryReader = new BinaryReader(stream0); - var result = binaryReader.ReadBytes((int)stream0.Length); - binaryReader.Close(); - return result; - } - - public static byte[] smethod_32(int int0, bool bool2) - { - if (!(bool2 ^ BitConverter.IsLittleEndian)) - { - return IntToBytes(int0); - } - return BitConverter.GetBytes(int0); - } - - public static byte[] StringToBytes(string string0) - { - return Encoding.Default.GetBytes(string0); - } - - public static string ValToHex32Bit(int int0) - { - return ValToPaddedHex(int0, 4); - } - - public static string ValToPaddedHex(int val, int halfPadding) - { - var text = val.ToString("x"); - while (text.Length < halfPadding * 2) - { - text = "0" + text; - } - return text; - } - - public static int GetQbKey(string text, bool negativeCrc = true) - { + private static readonly byte[] PwByteArray = + { + 73, //I + 118, //v + 97, //a + 110, //n + 32, // + 77, //M + 101, //e + 100, //d + 118, //v + 101, //e + 100, //d + 101, //e + 118 //v + }; + + private static uint _key; + + private static readonly uint XorMask = 4294967295u; + + public static readonly uint[] Crc32 = + { + 0u, + 1996959894u, // Magic + 3993919788u, // Do not touch + 2567524794u, + 124634137u, + 1886057615u, + 3915621685u, + 2657392035u, + 249268274u, + 2044508324u, + 3772115230u, + 2547177864u, + 162941995u, + 2125561021u, + 3887607047u, + 2428444049u, + 498536548u, + 1789927666u, + 4089016648u, + 2227061214u, + 450548861u, + 1843258603u, + 4107580753u, + 2211677639u, + 325883990u, + 1684777152u, + 4251122042u, + 2321926636u, + 335633487u, + 1661365465u, + 4195302755u, + 2366115317u, + 997073096u, + 1281953886u, + 3579855332u, + 2724688242u, + 1006888145u, + 1258607687u, + 3524101629u, + 2768942443u, + 901097722u, + 1119000684u, + 3686517206u, + 2898065728u, + 853044451u, + 1172266101u, + 3705015759u, + 2882616665u, + 651767980u, + 1373503546u, + 3369554304u, + 3218104598u, + 565507253u, + 1454621731u, + 3485111705u, + 3099436303u, + 671266974u, + 1594198024u, + 3322730930u, + 2970347812u, + 795835527u, + 1483230225u, + 3244367275u, + 3060149565u, + 1994146192u, + 31158534u, + 2563907772u, + 4023717930u, + 1907459465u, + 112637215u, + 2680153253u, + 3904427059u, + 2013776290u, + 251722036u, + 2517215374u, + 3775830040u, + 2137656763u, + 141376813u, + 2439277719u, + 3865271297u, + 1802195444u, + 476864866u, + 2238001368u, + 4066508878u, + 1812370925u, + 453092731u, + 2181625025u, + 4111451223u, + 1706088902u, + 314042704u, + 2344532202u, + 4240017532u, + 1658658271u, + 366619977u, + 2362670323u, + 4224994405u, + 1303535960u, + 984961486u, + 2747007092u, + 3569037538u, + 1256170817u, + 1037604311u, + 2765210733u, + 3554079995u, + 1131014506u, + 879679996u, + 2909243462u, + 3663771856u, + 1141124467u, + 855842277u, + 2852801631u, + 3708648649u, + 1342533948u, + 654459306u, + 3188396048u, + 3373015174u, + 1466479909u, + 544179635u, + 3110523913u, + 3462522015u, + 1591671054u, + 702138776u, + 2966460450u, + 3352799412u, + 1504918807u, + 783551873u, + 3082640443u, + 3233442989u, + 3988292384u, + 2596254646u, + 62317068u, + 1957810842u, + 3939845945u, + 2647816111u, + 81470997u, + 1943803523u, + 3814918930u, + 2489596804u, + 225274430u, + 2053790376u, + 3826175755u, + 2466906013u, + 167816743u, + 2097651377u, + 4027552580u, + 2265490386u, + 503444072u, + 1762050814u, + 4150417245u, + 2154129355u, + 426522225u, + 1852507879u, + 4275313526u, + 2312317920u, + 282753626u, + 1742555852u, + 4189708143u, + 2394877945u, + 397917763u, + 1622183637u, + 3604390888u, + 2714866558u, + 953729732u, + 1340076626u, + 3518719985u, + 2797360999u, + 1068828381u, + 1219638859u, + 3624741850u, + 2936675148u, + 906185462u, + 1090812512u, + 3747672003u, + 2825379669u, + 829329135u, + 1181335161u, + 3412177804u, + 3160834842u, + 628085408u, + 1382605366u, + 3423369109u, + 3138078467u, + 570562233u, + 1426400815u, + 3317316542u, + 2998733608u, + 733239954u, + 1555261956u, + 3268935591u, + 3050360625u, + 752459403u, + 1541320221u, + 2607071920u, + 3965973030u, + 1969922972u, + 40735498u, + 2617837225u, + 3943577151u, + 1913087877u, + 83908371u, + 2512341634u, + 3803740692u, + 2075208622u, + 213261112u, + 2463272603u, + 3855990285u, + 2094854071u, + 198958881u, + 2262029012u, + 4057260610u, + 1759359992u, + 534414190u, + 2176718541u, + 4139329115u, + 1873836001u, + 414664567u, + 2282248934u, + 4279200368u, + 1711684554u, + 285281116u, + 2405801727u, + 4167216745u, + 1634467795u, + 376229701u, + 2685067896u, + 3608007406u, + 1308918612u, + 956543938u, + 2808555105u, + 3495958263u, + 1231636301u, + 1047427035u, + 2932959818u, + 3654703836u, + 1088359270u, + 936918000u, + 2847714899u, + 3736837829u, + 1202900863u, + 817233897u, + 3183342108u, + 3401237130u, + 1404277552u, + 615818150u, + 3134207493u, + 3453421203u, + 1423857449u, + 601450431u, + 3009837614u, + 3294710456u, + 1567103746u, + 711928724u, + 3020668471u, + 3272380065u, + 1510334235u, + 755167117u + }; + + private static readonly Random Random0 = new Random(); + + public static void smethod_0(Stream stream0, Stream stream1, byte[] byte1, byte[] byte2) + { + if ((byte1.Length != 16 && byte1.Length != 24 && byte1.Length != 32) || byte2.Length != 16) + { + return; + } + var rijndael = Rijndael.Create(); + rijndael.Key = byte1; + rijndael.IV = byte2; + var cryptoStream = new CryptoStream(stream1, rijndael.CreateEncryptor(), CryptoStreamMode.Write); + var array = new byte[4096]; + int count; + while ((count = stream0.Read(array, 0, array.Length)) > 0) + { + cryptoStream.Write(array, 0, count); + } + cryptoStream.Close(); + } + + public static void smethod_1(Stream stream0, Stream stream1, string string0) + { + var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); + smethod_0(stream0, stream1, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); + } + + public static byte[] smethod_2(Stream stream0, string string0) + { + var memoryStream = new MemoryStream(); + smethod_1(stream0, memoryStream, string0); + return memoryStream.ToArray(); + } + + private static void CryptoMethod(Stream stream0, Stream stream1, byte[] byte1, byte[] byte2) + { + if ((byte1.Length != 16 && byte1.Length != 24 && byte1.Length != 32) || byte2.Length != 16) + { + return; + } + var rijndael = Rijndael.Create(); + rijndael.Key = byte1; + rijndael.IV = byte2; + var cryptoStream = new CryptoStream(stream1, rijndael.CreateDecryptor(), CryptoStreamMode.Write); + var array = new byte[4096]; + int count; + while ((count = stream0.Read(array, 0, array.Length)) > 0) + { + cryptoStream.Write(array, 0, count); + } + cryptoStream.Close(); + } + + private static void CryptoMethod(Stream stream0, Stream stream1, string string0) + { + var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); + CryptoMethod(stream0, stream1, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); + } + + public static byte[] CryptoMethod(Stream stream0, string string0) + { + var memoryStream = new MemoryStream(); + CryptoMethod(stream0, memoryStream, string0); + return memoryStream.ToArray(); + } + + public static void smethod_6(byte[] byte1, Stream stream0, byte[] key, byte[] initializationVector) + { + if ((key.Length != 16 && key.Length != 24 && key.Length != 32) || initializationVector.Length != 16) + { + return; + } + var rijndael = Rijndael.Create(); + rijndael.Key = key; + rijndael.IV = initializationVector; + var cryptoStream = new CryptoStream(stream0, rijndael.CreateDecryptor(), CryptoStreamMode.Write); + cryptoStream.Write(byte1, 0, byte1.Length); + cryptoStream.Close(); + } + + public static void smethod_7(byte[] byte1, Stream stream0, string string0) + { + var passwordDeriveBytes = new PasswordDeriveBytes(string0, PwByteArray); + smethod_6(byte1, stream0, passwordDeriveBytes.GetBytes(32), passwordDeriveBytes.GetBytes(16)); + } + + public static byte[] smethod_8(byte[] byte1, string string0) + { + var memoryStream = new MemoryStream(); + smethod_7(byte1, memoryStream, string0); + return memoryStream.ToArray(); + } + + public static void WriteAllBytes(string fileName, byte[] bytes) + { + if (File.Exists(fileName) && (File.GetAttributes(fileName) & FileAttributes.ReadOnly) == + FileAttributes.ReadOnly) + { + File.SetAttributes(fileName, FileAttributes.Normal); + } + File.WriteAllBytes(fileName, bytes); + } + + public static string smethod_10(string string0) + { + var length = string0.LastIndexOfAny(new[] {'\\', '/'}) + 1; + return string0.Substring(0, length); + } + + public static string GetFileName(string path, int dotsInExtension) + { + var i = path.LastIndexOfAny(new[] {'\\', '/'}) + 1; + var text = path.Substring(i); + try + { + if (dotsInExtension == -1) + { + text = text.Substring(0, text.IndexOf('.')); + } + else + { + for (i = 0; i < dotsInExtension; i++) + { + text = text.Substring(0, text.LastIndexOf('.')); + } + } + } + catch + { + } + return text; + } + + public static string GetFileNameNoExt(string path) + { + return GetFileName(path, -1); + } + + public static string GetFileName(string string0) + { + return GetFileName(string0, 0); + } + + public static string GetExtension(string string0, int int0) + { + string result; + try + { + var text = string0.Substring(string0.IndexOf('.') + 1); + if (int0 != 0) + { + var array = text.Split(new[] + { + '.' + }, StringSplitOptions.RemoveEmptyEntries); + text = array[array.Length - int0]; + } + result = text; + } + catch + { + result = ""; + } + return result; + } + + public static string OpenOrSaveFile(string title, string filter, bool isOpenDialog, string fileName = "") + { + var fileDialog = isOpenDialog ? (FileDialog) new OpenFileDialog() : new SaveFileDialog(); + fileDialog.Title = title; + fileDialog.FileName = fileName; + fileDialog.CheckPathExists = true; + if (!filter.Equals("")) + { + fileDialog.Filter = filter; + } + return fileDialog.ShowDialog() == DialogResult.OK ? fileDialog.FileName : ""; + } + + public static string OpenFile(string title, string filter) + { + return OpenOrSaveFile(title, filter, true); + } + + public static List CheckFile(string string0, string string1, bool bool2) + { + var array = string1.Split(new[] + { + ';' + }, StringSplitOptions.RemoveEmptyEntries); + var fileList = new List(); + var array2 = array; + foreach (var searchPattern in array2) + { + fileList.AddRange(Directory.GetFiles(string0, searchPattern, + bool2 ? SearchOption.TopDirectoryOnly : SearchOption.AllDirectories)); + } + return fileList; + } + + public static void smethod_19(string string0, string string1, bool bool2) + { + if (string0.ToLower().Equals(string1.ToLower())) + { + return; + } + if (bool2 && File.Exists(string1) && (File.GetAttributes(string1) & FileAttributes.ReadOnly) == + FileAttributes.ReadOnly) + { + File.SetAttributes(string1, FileAttributes.Normal); + } + File.Copy(string0, string1, bool2); + } + + public static void smethod_20(string string0) + { + if (File.Exists(string0)) + { + if ((File.GetAttributes(string0) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) + { + File.SetAttributes(string0, FileAttributes.Normal); + } + File.Delete(string0); + } + } + + public static int[] smethod_21(ICollection icollection0) + { + return smethod_22(new List(icollection0)); + } + + public static int[] smethod_22(List list0) + { + var array = new int[list0.Count / 4]; + for (var i = 0; i < array.Length; i++) + { + array[i] = smethod_25(list0.GetRange(i * 4, 4).ToArray()); + } + return array; + } + + public static int HexStringToInt(string hexidecimalInteger) + { + return Convert.ToInt32(hexidecimalInteger.Replace(" ", ""), 16); + } + + public static int smethod_24(byte[] byte1, bool bool2) + { + if (!(bool2 ^ BitConverter.IsLittleEndian)) + { + return BytesToInt(byte1); + } + var num = byte1.Length; + switch (num) + { + case 2: + return BitConverter.ToInt16(byte1, 0); + case 3: + break; + case 4: + return BitConverter.ToInt32(byte1, 0); + default: + if (num == 8 + ) //i am pretty sure this should just be another switch case but I'm not going to touch it for now + { + return (int) BitConverter.ToInt64(byte1, 0); + } + break; + } + throw new Exception(); + } + + public static int smethod_25(byte[] byte1) + { + return smethod_24(byte1, Flag0); + } + + public static int ReverseEndianness(int int0) + { + return (int0 >> 24 & 255) | (int0 >> 8 & 65280) | (int0 << 8 & 16711680) | (int0 << 24 & -16777216); + } + + public static short BytesToShort(byte[] byte1) + { + short num = 0; + var num2 = Math.Min(2, byte1.Length); + for (var i = 0; i < num2; i++) + { + num |= (short) (byte1[i] << 8 - 8 * i); + } + return num; + } + + public static int BytesToInt(byte[] byte1) + { + var num = 0; + var num2 = Math.Min(4, byte1.Length); + for (var i = 0; i < num2; i++) + { + num |= byte1[i] << 24 - 8 * i; + } + return num; + } + + public static byte[] IntToBytes(int int0) + { + return new[] + { + (byte) (int0 >> 24 & 255), + (byte) (int0 >> 16 & 255), + (byte) (int0 >> 8 & 255), + (byte) (int0 & 255) + }; + } + + public static byte[] ReadBytes(string path) + { + return File.ReadAllBytes(path); + } + + public static byte[] ReadBytes(Stream stream0) + { + var binaryReader = new BinaryReader(stream0); + var result = binaryReader.ReadBytes((int) stream0.Length); + binaryReader.Close(); + return result; + } + + public static byte[] smethod_32(int int0, bool bool2) + { + if (!(bool2 ^ BitConverter.IsLittleEndian)) + { + return IntToBytes(int0); + } + return BitConverter.GetBytes(int0); + } + + public static byte[] StringToBytes(string string0) + { + return Encoding.Default.GetBytes(string0); + } + + public static string ValToHex32Bit(int int0) + { + return ValToPaddedHex(int0, 4); + } + + public static string ValToPaddedHex(int val, int halfPadding) + { + var text = val.ToString("x"); + while (text.Length < halfPadding * 2) + { + text = "0" + text; + } + return text; + } + + public static int GetQbKey(string text, bool negativeCrc = true) + { //bool_0 is always false; - return GetQbKey(new MemoryStream(StringToBytes(text)), negativeCrc, Flag0); - } - - public static int GetQbKey(byte[] byte1, bool bool2) - { - return GetQbKey(new MemoryStream(byte1), bool2, Flag0); - } - - public static int GetQbKey(Stream stream, bool negateCrc, bool reverseEndianness) - { - if (stream == null) - { - throw new ArgumentNullException("stream"); - } - if (!stream.CanRead) - { - throw new ArgumentException("stream is not readable."); - } - stream.Position = 0L; - ResetKey(); - var array = new byte[4096]; - int int_; - while ((int_ = stream.Read(array, 0, array.Length)) != 0) - { - CrcVerifyMethod1(array, 0, int_); - } - stream.Position = 0L; - if (negateCrc && reverseEndianness) - { - return ReverseEndianness((int)(_key ^ 4294967295u)); - } - if (negateCrc) - { - return (int)(_key ^ 4294967295u); - } - if (reverseEndianness) - { - return ReverseEndianness((int)_key); - } - return (int)_key; - } - - public static int GetQbKey(Stream stream0, bool bool2) - { - return GetQbKey(stream0, bool2, Flag0); - } - - private static void ResetKey() - { - _key = 0u; - } - - private static void CrcVerifyMethod1(byte[] byte1, int int0, int int1) - { - if (byte1 == null) - { - throw new ArgumentNullException("Crc buffer"); - } - if (int0 >= 0 && int1 >= 0 && int0 + int1 <= byte1.Length) - { - _key ^= XorMask; - while (--int1 >= 0) - { - _key = (Crc32[(int)((UIntPtr)((_key ^ byte1[int0++]) & 255u))] ^ _key >> 8); - } - _key ^= XorMask; - return; - } - throw new ArgumentOutOfRangeException("Crc buffer"); - } - - public static byte[] HashStream(string string0) - { - return HashStream(File.OpenRead(string0)); - } - - public static byte[] HashStream(Stream stream0) - { - return HashStream(SHA512.Create(), stream0); - } - - public static byte[] HashStream(HashAlgorithm hashAlgorithm0, Stream stream0) - { - var result = hashAlgorithm0.ComputeHash(stream0); - hashAlgorithm0.Clear(); - stream0.Close(); - return result; - } - - public static FileStream smethod_45(string string0) - { - if (File.Exists(string0) && (File.GetAttributes(string0) & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) - { - File.SetAttributes(string0, FileAttributes.Normal); - } - return File.Create(string0); - } - - public static void smethod_46(Stream stream0, string string0) - { - smethod_47(stream0, smethod_45(string0)); - } - - public static void smethod_47(Stream stream0, Stream stream1) - { - var count = 256; - var buffer = new byte[256]; - if (stream0.CanSeek && stream0.Position != 0L) - { - stream0.Position = 0L; - } - for (var i = stream0.Read(buffer, 0, count); i > 0; i = stream0.Read(buffer, 0, count)) - { - stream1.Write(buffer, 0, i); - } - stream0.Close(); - stream1.Close(); - } - - public static Bitmap ScaleImageFixedRatio(Image image, Size size) - { - return ScaleImageFixedRatio(image, size.Width, size.Height); - } - - public static Bitmap ScaleImageFixedRatio(Image image, int width, int height) - { - var size = ScaleDimensions(image.Width, image.Height, width, height); - return ScaleImage(image, size.Width, size.Height); - } - - public static Bitmap ScaleImage(Image image, Size size) - { - return ScaleImage(image, size.Width, size.Height); - } - - public static Bitmap ScaleImage(Image image, int width, int height) - { - var bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); - var graphics = Graphics.FromImage(bitmap); - graphics.SmoothingMode = SmoothingMode.HighQuality; - graphics.CompositingQuality = CompositingQuality.HighQuality; - graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; - var destRect = new Rectangle(0, 0, bitmap.Width, bitmap.Height); - graphics.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel); - return bitmap; - } - - private static Size ScaleDimensions(int width1, int height1, int width2, int height2) - { - var num = ((decimal)height1) / width1; - if (height2 > width2) - { - width2 = decimal.ToInt32(height2 / num); - } - else - { - height2 = decimal.ToInt32(num * width2); - } - return new Size(width2, height2); - } - - public static bool smethod_53(ICollection icollection0, ICollection icollection1) where T : IComparable - { - return smethod_54(icollection0, icollection1, Math.Max(icollection0.Count, icollection1.Count)); - } - - public static bool smethod_54(ICollection icollection0, ICollection icollection1, int int0) where T : IComparable - { - return smethod_55(icollection0, icollection1, int0, false); - } - - public static bool smethod_55(ICollection icollection0, ICollection icollection1, int int0, bool bool2) where T : IComparable - { - if (!bool2 && (int0 > icollection0.Count || int0 > icollection1.Count)) - { - return false; - } - var enumerator = icollection0.GetEnumerator(); - var enumerator2 = icollection1.GetEnumerator(); - enumerator.Reset(); - enumerator2.Reset(); - var num = 0; - while (num < int0 && enumerator.MoveNext() && enumerator2.MoveNext()) - { - var current = enumerator.Current; - if (current.CompareTo(enumerator2.Current) != 0 ^ bool2) - { - return false; - } - num++; - } - return true; - } - - public static void smethod_56(IList ilist0) - { - var arrayList = new ArrayList(ilist0); - var num = 0; - while (arrayList.Count != 0) - { - var obj = arrayList[Random0.Next(0, arrayList.Count)]; - ilist0[num++] = obj; - arrayList.Remove(obj); - } - } - } -} + return GetQbKey(new MemoryStream(StringToBytes(text)), negativeCrc, Flag0); + } + + public static int GetQbKey(byte[] byte1, bool bool2) + { + return GetQbKey(new MemoryStream(byte1), bool2, Flag0); + } + + public static int GetQbKey(Stream stream, bool negateCrc, bool reverseEndianness) + { + if (stream == null) + { + throw new ArgumentNullException("stream"); + } + if (!stream.CanRead) + { + throw new ArgumentException("stream is not readable."); + } + stream.Position = 0L; + ResetKey(); + var array = new byte[4096]; + int int_; + while ((int_ = stream.Read(array, 0, array.Length)) != 0) + { + CrcVerifyMethod1(array, 0, int_); + } + stream.Position = 0L; + if (negateCrc && reverseEndianness) + { + return ReverseEndianness((int) (_key ^ 4294967295u)); + } + if (negateCrc) + { + return (int) (_key ^ 4294967295u); + } + if (reverseEndianness) + { + return ReverseEndianness((int) _key); + } + return (int) _key; + } + + public static int GetQbKey(Stream stream0, bool bool2) + { + return GetQbKey(stream0, bool2, Flag0); + } + + private static void ResetKey() + { + _key = 0u; + } + + private static void CrcVerifyMethod1(byte[] byte1, int int0, int int1) + { + if (byte1 == null) + { + throw new ArgumentNullException("Crc buffer"); + } + if (int0 >= 0 && int1 >= 0 && int0 + int1 <= byte1.Length) + { + _key ^= XorMask; + while (--int1 >= 0) + { + _key = (Crc32[(int) ((UIntPtr) ((_key ^ byte1[int0++]) & 255u))] ^ _key >> 8); + } + _key ^= XorMask; + return; + } + throw new ArgumentOutOfRangeException("Crc buffer"); + } + + public static byte[] HashStream(string string0) + { + return HashStream(File.OpenRead(string0)); + } + + public static byte[] HashStream(Stream stream0) + { + return HashStream(SHA512.Create(), stream0); + } + + public static byte[] HashStream(HashAlgorithm hashAlgorithm0, Stream stream0) + { + var result = hashAlgorithm0.ComputeHash(stream0); + hashAlgorithm0.Clear(); + stream0.Close(); + return result; + } + + public static FileStream smethod_45(string string0) + { + if (File.Exists(string0) && (File.GetAttributes(string0) & FileAttributes.ReadOnly) == + FileAttributes.ReadOnly) + { + File.SetAttributes(string0, FileAttributes.Normal); + } + return File.Create(string0); + } + + public static void smethod_46(Stream stream0, string string0) + { + smethod_47(stream0, smethod_45(string0)); + } + + public static void smethod_47(Stream stream0, Stream stream1) + { + var count = 256; + var buffer = new byte[256]; + if (stream0.CanSeek && stream0.Position != 0L) + { + stream0.Position = 0L; + } + for (var i = stream0.Read(buffer, 0, count); i > 0; i = stream0.Read(buffer, 0, count)) + { + stream1.Write(buffer, 0, i); + } + stream0.Close(); + stream1.Close(); + } + + public static Bitmap ScaleImageFixedRatio(Image image, Size size) + { + return ScaleImageFixedRatio(image, size.Width, size.Height); + } + + public static Bitmap ScaleImageFixedRatio(Image image, int width, int height) + { + var size = ScaleDimensions(image.Width, image.Height, width, height); + return ScaleImage(image, size.Width, size.Height); + } + + public static Bitmap ScaleImage(Image image, Size size) + { + return ScaleImage(image, size.Width, size.Height); + } + + public static Bitmap ScaleImage(Image image, int width, int height) + { + var bitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb); + var graphics = Graphics.FromImage(bitmap); + graphics.SmoothingMode = SmoothingMode.HighQuality; + graphics.CompositingQuality = CompositingQuality.HighQuality; + graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; + var destRect = new Rectangle(0, 0, bitmap.Width, bitmap.Height); + graphics.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel); + return bitmap; + } + + private static Size ScaleDimensions(int width1, int height1, int width2, int height2) + { + var num = ((decimal) height1) / width1; + if (height2 > width2) + { + width2 = decimal.ToInt32(height2 / num); + } + else + { + height2 = decimal.ToInt32(num * width2); + } + return new Size(width2, height2); + } + + public static bool smethod_53(ICollection icollection0, ICollection icollection1) where T : IComparable + { + return smethod_54(icollection0, icollection1, Math.Max(icollection0.Count, icollection1.Count)); + } + + public static bool smethod_54(ICollection icollection0, ICollection icollection1, int int0) + where T : IComparable + { + return smethod_55(icollection0, icollection1, int0, false); + } + + public static bool smethod_55(ICollection icollection0, ICollection icollection1, int int0, bool bool2) + where T : IComparable + { + if (!bool2 && (int0 > icollection0.Count || int0 > icollection1.Count)) + { + return false; + } + var enumerator = icollection0.GetEnumerator(); + var enumerator2 = icollection1.GetEnumerator(); + enumerator.Reset(); + enumerator2.Reset(); + var num = 0; + while (num < int0 && enumerator.MoveNext() && enumerator2.MoveNext()) + { + var current = enumerator.Current; + if (current.CompareTo(enumerator2.Current) != 0 ^ bool2) + { + return false; + } + num++; + } + return true; + } + + public static void smethod_56(IList ilist0) + { + var arrayList = new ArrayList(ilist0); + var num = 0; + while (arrayList.Count != 0) + { + var obj = arrayList[Random0.Next(0, arrayList.Count)]; + ilist0[num++] = obj; + arrayList.Remove(obj); + } + } + } +} \ No newline at end of file diff --git a/GHNamespace9/QbEditor.cs b/GHNamespace9/QbEditor.cs index f6acedc..53ae279 100644 --- a/GHNamespace9/QbEditor.cs +++ b/GHNamespace9/QbEditor.cs @@ -2,31 +2,30 @@ namespace GHNamespace9 { - // Base class of some other classes that appear to edit qb files - public abstract class QbEditor : IEquatable - { - public bool method_0() - { - bool result; - try - { - vmethod_0(); - return true; - } - catch (Exception ex) - { - Console.WriteLine(ex.Message); - result = false; - } - return result; - } + public abstract class QbEditor : IEquatable + { + public bool method_0() + { + bool result; + try + { + vmethod_0(); + return true; + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + result = false; + } + return result; + } - public abstract void vmethod_0(); + public abstract void vmethod_0(); - public abstract override string ToString(); + public abstract override string ToString(); - public abstract bool Equals(QbEditor other); - } -} + public abstract bool Equals(QbEditor other); + } +} \ No newline at end of file diff --git a/GHNamespace9/Stream26.cs b/GHNamespace9/Stream26.cs index 4859002..b6bd44a 100644 --- a/GHNamespace9/Stream26.cs +++ b/GHNamespace9/Stream26.cs @@ -5,477 +5,478 @@ namespace GHNamespace9 { - public class Stream26 : Stream, IDisposable - { - public Stream Stream; - - public bool ReverseEndianness; - - public bool Bool1; - - public override bool CanRead => Stream.CanRead; - - public override bool CanSeek => Stream.CanSeek; - - public override bool CanWrite => Stream.CanWrite; - - public override long Length => Stream.Length; - - public override long Position - { - get => Stream.Position; - set => Stream.Position = value; - } - - public void SetEndianness(EndiannessEnum enum330) - { - switch (enum330) - { - case EndiannessEnum.Const1: - ReverseEndianness = false; - return; - case EndiannessEnum.Const2: - ReverseEndianness = true; - return; - default: - ReverseEndianness = false; - Bool1 = true; - return; - } - } - - public Stream26() : this(EndiannessEnum.Const0) - { - } - - public Stream26(bool bool2) : this(bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) - { - } - - public Stream26(EndiannessEnum enum330) - { - Stream = new Stream27(); - Bool1 = false; - SetEndianness(enum330); - } - - public Stream26(Stream stream1) : this(stream1, EndiannessEnum.Const0) - { - } - - public Stream26(Stream stream1, bool bool2) : this(stream1, bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) - { - } - - public Stream26(Stream stream1, EndiannessEnum enum330) - { - Stream = stream1; - SetEndianness(enum330); - } - - public Stream26(byte[] byte0) : this(byte0, EndiannessEnum.Const0) - { - } - - public Stream26(byte[] byte0, bool bool2) : this(byte0, bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) - { - } - - public Stream26(byte[] byte0, EndiannessEnum enum330) - { - Stream = new Stream27(byte0); - SetEndianness(enum330); - } - - public byte[] ReadEverything() - { - if (Stream is Stream27) - { - return ((Stream27)Stream).ToArray(); - } - if (!CanRead) - { - throw new Exception("Can't read from hexstream!"); - } - return KeyGenerator.ReadBytes(Stream); - } - - public void WriteEverythingToFile(string fileName) - { - if (Stream is Stream27) - { - KeyGenerator.WriteAllBytes(fileName, ((Stream27)Stream).ToArray()); - return; - } - if (!CanRead) - { - throw new Exception("Can't read from hexstream!"); - } - KeyGenerator.smethod_46(Stream, fileName); - } - - public void WriteByte2(byte value) - { - Stream.WriteByte(value); - } - - public void WriteNBytes(byte value, int count) - { - while (count-- != 0) - { - Stream.WriteByte(value); - } - } - - public void WriteInt(int value) - { - WriteInt(value, ReverseEndianness); - } - - public void WriteInt(int value, bool reverseEndianness) - { - WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); - } - - public void WriteUInt(uint value) - { - WriteUInt(value, ReverseEndianness); - } - - public void WriteUInt(uint value, bool reverseEndianness) - { - WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); - } - - public void WriteFloat(float value) - { - WriteFloat(value, ReverseEndianness); - } - - public void WriteFloat(float value, bool reverseEndianness) - { - WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); - } - - public void WriteShort(short value) - { - WriteShort(value, ReverseEndianness); - } - - public void WriteShort(short value, bool reverseEndianness) - { - WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); - } - - public void WriteString(string value) - { - WriteByteArray(Encoding.ASCII.GetBytes(value), false); - } - - public void WriteString(string value, bool reverseEndianness) - { - if (reverseEndianness) - { - WriteByteArray(Encoding.BigEndianUnicode.GetBytes(value), false); - return; - } - WriteByteArray(Encoding.Unicode.GetBytes(value), false); - } - - public void WriteByteArray(byte[] byte0) - { - WriteByteArray(byte0, ReverseEndianness); - } - - public void WriteByteArray(byte[] array, bool writeBackwards) - { - if (writeBackwards) - { - for (var i = array.Length - 1; i >= 0; i--) - { - Stream.WriteByte(array[i]); - } - return; - } - Stream.Write(array, 0, array.Length); - } - - public void WriteEnumerableInts(IEnumerable values, bool reverseEndianness) - { - foreach (var current in values) - { - WriteInt(current, reverseEndianness); - } - } - - public byte ReadByte2() - { - return (byte)ReadByte(); - } - - public int ReadInt() - { - return ReadInt(ReverseEndianness); - } - - public int ReadInt(bool reverseEndianness) - { - var array = ReadBytes(4, false); - if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) - { - return KeyGenerator.BytesToInt(array); - } - return BitConverter.ToInt32(array, 0); - } - - public float ReadFloat() - { - return ReadFloat(ReverseEndianness); - } - - public float ReadFloat(bool reverseEndianness) - { - var array = ReadBytes(4, false); - if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) - { - var array2 = array; - array = new[] - { - array2[3], - array2[2], - array2[1], - array2[0] - }; - } - return BitConverter.ToSingle(array, 0); - } - - public short ReadShort() - { - return ReadShort(ReverseEndianness); - } - - public short ReadShort(bool reverseEndianness) - { - var array = ReadBytes(2, false); - if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) - { - return KeyGenerator.BytesToShort(array); - } - return BitConverter.ToInt16(array, 0); - } - - public ushort ReadUShort() - { - return ReadUShort(ReverseEndianness); - } - - public ushort ReadUShort(bool reverseEndianness) - { - var array = ReadBytes(2, false); - if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) - { - return (ushort)KeyGenerator.BytesToShort(array); - } - return BitConverter.ToUInt16(array, 0); - } - - public string ReadAsciiString() - { - var list = new List(); - for (var item = ReadByte2(); item != 0; item = ReadByte2()) - { - list.Add(item); - } - return Encoding.ASCII.GetString(list.ToArray()); - } - - public string ReadString(int length) - { - return Encoding.ASCII.GetString(ReadBytes(length, false)); - } - - public string ReadUnicodeString() - { - return ReadUnicodeString(ReverseEndianness); - } - - public string ReadUnicodeString(bool reverseEndianness) - { - var list = new List(); - var b = ReadByte2(); - var b2 = ReadByte2(); - while (b != 0 || b2 != 0) - { - list.Add(b); - list.Add(b2); - b = ReadByte2(); - b2 = ReadByte2(); - } - if (!reverseEndianness) - { - return Encoding.Unicode.GetString(list.ToArray()); - } - return Encoding.BigEndianUnicode.GetString(list.ToArray()); - } - - public byte[] ReadBytes(int count) - { - return ReadBytes(count, ReverseEndianness); - } - - public byte[] ReadBytes(int count, bool reverseEndianness) - { - var array = new byte[count]; - if (Stream.Read(array, 0, count) == 0) - { - throw new EndOfStreamException(); - } - if (reverseEndianness) - { - Array.Reverse(array); - } - return array; - } - - public void WriteIntAt(int int0, int int1) - { - WriteIntAt(int0, int1, ReverseEndianness); - } - - public void WriteIntAt(int int0, int int1, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - WriteInt(int1, bool2); - } - - public void WriteShortAt(int int0, short short0) - { - WriteShortAt(int0, short0, ReverseEndianness); - } - - public void WriteShortAt(int int0, short short0, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - WriteShort(short0, bool2); - } - - public void WriteByteArrayAt(int int0, byte[] byte0, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - WriteByteArray(byte0, bool2); - } - - public void WriteEnumerableIntsAt(int int0, IEnumerable ienumerable0) - { - WriteEnumerableIntsAt(int0, ienumerable0, ReverseEndianness); - } - - public void WriteEnumerableIntsAt(int int0, IEnumerable ienumerable0, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - WriteEnumerableInts(ienumerable0, bool2); - } - - public byte ReadByteAt(int int0) - { - Stream.Seek(int0, SeekOrigin.Begin); - return ReadByte2(); - } - - public int ReadIntAt(int int0) - { - return ReadIntAt(int0, ReverseEndianness); - } - - public int ReadIntAt(int int0, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - return ReadInt(bool2); - } - - public short ReadShortAt(int int0) - { - return ReadShortAt(int0, ReverseEndianness); - } - - public short ReadShortAt(int int0, bool bool2) - { - Stream.Seek(int0, SeekOrigin.Begin); - return ReadShort(bool2); - } - - public string ReadAsciiStringAt(int int0) - { - Stream.Seek(int0, SeekOrigin.Begin); - return ReadAsciiString(); - } - - public string ReadUnicodeStringAt(int int0) - { - Stream.Seek(int0, SeekOrigin.Begin); - return ReadUnicodeString(); - } - - public byte[] ReadBytesAt(int position, int count, bool reverseEndianness) - { - Stream.Seek(position, SeekOrigin.Begin); - return ReadBytes(count, reverseEndianness); - } - - public override void Flush() - { - Stream.Flush(); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return Stream.Read(buffer, offset, count); - } - - public override long Seek(long offset, SeekOrigin origin) - { - return Stream.Seek(offset, origin); - } - - public override void SetLength(long value) - { - Stream.SetLength(value); - } - - public override int ReadByte() - { - return Stream.ReadByte(); - } - - public override void WriteByte(byte value) - { - Stream.WriteByte(value); - } - - public override void Write(byte[] buffer, int offset, int count) - { - Stream.Write(buffer, offset, count); - } - - public override void Close() - { - Stream.Close(); - } + public class Stream26 : Stream, IDisposable + { + public Stream Stream; + + public bool ReverseEndianness; + + public bool Bool1; + + public override bool CanRead => Stream.CanRead; + + public override bool CanSeek => Stream.CanSeek; + + public override bool CanWrite => Stream.CanWrite; + + public override long Length => Stream.Length; + + public override long Position + { + get => Stream.Position; + set => Stream.Position = value; + } + + public void SetEndianness(EndiannessEnum enum330) + { + switch (enum330) + { + case EndiannessEnum.Const1: + ReverseEndianness = false; + return; + case EndiannessEnum.Const2: + ReverseEndianness = true; + return; + default: + ReverseEndianness = false; + Bool1 = true; + return; + } + } + + public Stream26() : this(EndiannessEnum.Const0) + { + } + + public Stream26(bool bool2) : this(bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) + { + } + + public Stream26(EndiannessEnum enum330) + { + Stream = new Stream27(); + Bool1 = false; + SetEndianness(enum330); + } + + public Stream26(Stream stream1) : this(stream1, EndiannessEnum.Const0) + { + } + + public Stream26(Stream stream1, bool bool2) : this(stream1, + bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) + { + } + + public Stream26(Stream stream1, EndiannessEnum enum330) + { + Stream = stream1; + SetEndianness(enum330); + } + + public Stream26(byte[] byte0) : this(byte0, EndiannessEnum.Const0) + { + } + + public Stream26(byte[] byte0, bool bool2) : this(byte0, bool2 ? EndiannessEnum.Const2 : EndiannessEnum.Const1) + { + } + + public Stream26(byte[] byte0, EndiannessEnum enum330) + { + Stream = new Stream27(byte0); + SetEndianness(enum330); + } + + public byte[] ReadEverything() + { + if (Stream is Stream27) + { + return ((Stream27) Stream).ToArray(); + } + if (!CanRead) + { + throw new Exception("Can't read from hexstream!"); + } + return KeyGenerator.ReadBytes(Stream); + } + + public void WriteEverythingToFile(string fileName) + { + if (Stream is Stream27) + { + KeyGenerator.WriteAllBytes(fileName, ((Stream27) Stream).ToArray()); + return; + } + if (!CanRead) + { + throw new Exception("Can't read from hexstream!"); + } + KeyGenerator.smethod_46(Stream, fileName); + } + + public void WriteByte2(byte value) + { + Stream.WriteByte(value); + } + + public void WriteNBytes(byte value, int count) + { + while (count-- != 0) + { + Stream.WriteByte(value); + } + } + + public void WriteInt(int value) + { + WriteInt(value, ReverseEndianness); + } + + public void WriteInt(int value, bool reverseEndianness) + { + WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); + } + + public void WriteUInt(uint value) + { + WriteUInt(value, ReverseEndianness); + } + + public void WriteUInt(uint value, bool reverseEndianness) + { + WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); + } + + public void WriteFloat(float value) + { + WriteFloat(value, ReverseEndianness); + } + + public void WriteFloat(float value, bool reverseEndianness) + { + WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); + } + + public void WriteShort(short value) + { + WriteShort(value, ReverseEndianness); + } + + public void WriteShort(short value, bool reverseEndianness) + { + WriteByteArray(BitConverter.GetBytes(value), !(reverseEndianness ^ BitConverter.IsLittleEndian)); + } + + public void WriteString(string value) + { + WriteByteArray(Encoding.ASCII.GetBytes(value), false); + } + + public void WriteString(string value, bool reverseEndianness) + { + if (reverseEndianness) + { + WriteByteArray(Encoding.BigEndianUnicode.GetBytes(value), false); + return; + } + WriteByteArray(Encoding.Unicode.GetBytes(value), false); + } + + public void WriteByteArray(byte[] byte0) + { + WriteByteArray(byte0, ReverseEndianness); + } + + public void WriteByteArray(byte[] array, bool writeBackwards) + { + if (writeBackwards) + { + for (var i = array.Length - 1; i >= 0; i--) + { + Stream.WriteByte(array[i]); + } + return; + } + Stream.Write(array, 0, array.Length); + } + + public void WriteEnumerableInts(IEnumerable values, bool reverseEndianness) + { + foreach (var current in values) + { + WriteInt(current, reverseEndianness); + } + } + + public byte ReadByte2() + { + return (byte) ReadByte(); + } + + public int ReadInt() + { + return ReadInt(ReverseEndianness); + } + + public int ReadInt(bool reverseEndianness) + { + var array = ReadBytes(4, false); + if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) + { + return KeyGenerator.BytesToInt(array); + } + return BitConverter.ToInt32(array, 0); + } + + public float ReadFloat() + { + return ReadFloat(ReverseEndianness); + } + + public float ReadFloat(bool reverseEndianness) + { + var array = ReadBytes(4, false); + if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) + { + var array2 = array; + array = new[] + { + array2[3], + array2[2], + array2[1], + array2[0] + }; + } + return BitConverter.ToSingle(array, 0); + } + + public short ReadShort() + { + return ReadShort(ReverseEndianness); + } + + public short ReadShort(bool reverseEndianness) + { + var array = ReadBytes(2, false); + if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) + { + return KeyGenerator.BytesToShort(array); + } + return BitConverter.ToInt16(array, 0); + } + + public ushort ReadUShort() + { + return ReadUShort(ReverseEndianness); + } + + public ushort ReadUShort(bool reverseEndianness) + { + var array = ReadBytes(2, false); + if (!(reverseEndianness ^ BitConverter.IsLittleEndian)) + { + return (ushort) KeyGenerator.BytesToShort(array); + } + return BitConverter.ToUInt16(array, 0); + } + + public string ReadAsciiString() + { + var list = new List(); + for (var item = ReadByte2(); item != 0; item = ReadByte2()) + { + list.Add(item); + } + return Encoding.ASCII.GetString(list.ToArray()); + } + + public string ReadString(int length) + { + return Encoding.ASCII.GetString(ReadBytes(length, false)); + } + + public string ReadUnicodeString() + { + return ReadUnicodeString(ReverseEndianness); + } + + public string ReadUnicodeString(bool reverseEndianness) + { + var list = new List(); + var b = ReadByte2(); + var b2 = ReadByte2(); + while (b != 0 || b2 != 0) + { + list.Add(b); + list.Add(b2); + b = ReadByte2(); + b2 = ReadByte2(); + } + if (!reverseEndianness) + { + return Encoding.Unicode.GetString(list.ToArray()); + } + return Encoding.BigEndianUnicode.GetString(list.ToArray()); + } + + public byte[] ReadBytes(int count) + { + return ReadBytes(count, ReverseEndianness); + } + + public byte[] ReadBytes(int count, bool reverseEndianness) + { + var array = new byte[count]; + if (Stream.Read(array, 0, count) == 0) + { + throw new EndOfStreamException(); + } + if (reverseEndianness) + { + Array.Reverse(array); + } + return array; + } + + public void WriteIntAt(int int0, int int1) + { + WriteIntAt(int0, int1, ReverseEndianness); + } + + public void WriteIntAt(int int0, int int1, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + WriteInt(int1, bool2); + } + + public void WriteShortAt(int int0, short short0) + { + WriteShortAt(int0, short0, ReverseEndianness); + } + + public void WriteShortAt(int int0, short short0, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + WriteShort(short0, bool2); + } + + public void WriteByteArrayAt(int int0, byte[] byte0, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + WriteByteArray(byte0, bool2); + } + + public void WriteEnumerableIntsAt(int int0, IEnumerable ienumerable0) + { + WriteEnumerableIntsAt(int0, ienumerable0, ReverseEndianness); + } + + public void WriteEnumerableIntsAt(int int0, IEnumerable ienumerable0, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + WriteEnumerableInts(ienumerable0, bool2); + } + + public byte ReadByteAt(int int0) + { + Stream.Seek(int0, SeekOrigin.Begin); + return ReadByte2(); + } + + public int ReadIntAt(int int0) + { + return ReadIntAt(int0, ReverseEndianness); + } + + public int ReadIntAt(int int0, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + return ReadInt(bool2); + } + + public short ReadShortAt(int int0) + { + return ReadShortAt(int0, ReverseEndianness); + } + + public short ReadShortAt(int int0, bool bool2) + { + Stream.Seek(int0, SeekOrigin.Begin); + return ReadShort(bool2); + } + + public string ReadAsciiStringAt(int int0) + { + Stream.Seek(int0, SeekOrigin.Begin); + return ReadAsciiString(); + } + + public string ReadUnicodeStringAt(int int0) + { + Stream.Seek(int0, SeekOrigin.Begin); + return ReadUnicodeString(); + } + + public byte[] ReadBytesAt(int position, int count, bool reverseEndianness) + { + Stream.Seek(position, SeekOrigin.Begin); + return ReadBytes(count, reverseEndianness); + } + + public override void Flush() + { + Stream.Flush(); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return Stream.Read(buffer, offset, count); + } + + public override long Seek(long offset, SeekOrigin origin) + { + return Stream.Seek(offset, origin); + } + + public override void SetLength(long value) + { + Stream.SetLength(value); + } + + public override int ReadByte() + { + return Stream.ReadByte(); + } + + public override void WriteByte(byte value) + { + Stream.WriteByte(value); + } + + public override void Write(byte[] buffer, int offset, int count) + { + Stream.Write(buffer, offset, count); + } + + public override void Close() + { + Stream.Close(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Stream.Dispose(); - } - } - - public new void Dispose() - { - Close(); - Dispose(true); - Stream = null; - } - } -} + { + if (disposing) + { + Stream.Dispose(); + } + } + + public new void Dispose() + { + Close(); + Dispose(true); + Stream = null; + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Stream27.cs b/GHNamespace9/Stream27.cs index 824351d..54809e9 100644 --- a/GHNamespace9/Stream27.cs +++ b/GHNamespace9/Stream27.cs @@ -2,18 +2,18 @@ namespace GHNamespace9 { - public class Stream27 : MemoryStream - { - public Stream27() - { - } + public class Stream27 : MemoryStream + { + public Stream27() + { + } - public Stream27(byte[] byte0) : base(byte0) - { - } + public Stream27(byte[] byte0) : base(byte0) + { + } protected override void Dispose(bool disposing) - { - } - } -} + { + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Struct78.cs b/GHNamespace9/Struct78.cs index 3462312..88abc72 100644 --- a/GHNamespace9/Struct78.cs +++ b/GHNamespace9/Struct78.cs @@ -2,78 +2,78 @@ namespace GHNamespace9 { - public struct Struct78 : IComparable, ICloneable - { - public float Float0; + public struct Struct78 : IComparable, ICloneable + { + public float Float0; - public float Float1; + public float Float1; - public Struct78(Struct78 struct780) - { - Float0 = struct780.Float0; - Float1 = struct780.Float1; - } + public Struct78(Struct78 struct780) + { + Float0 = struct780.Float0; + Float1 = struct780.Float1; + } - object ICloneable.Clone() - { - return new Struct78(this); - } + object ICloneable.Clone() + { + return new Struct78(this); + } - public float method_0() - { - var num = Float0; - var num2 = Float1; - return (float)Math.Sqrt(num * num + num2 * num2); - } + public float method_0() + { + var num = Float0; + var num2 = Float1; + return (float) Math.Sqrt(num * num + num2 * num2); + } - public static bool smethod_0(Struct78 struct780, Struct78 struct781) - { - return struct780.Float0 == struct781.Float0 && struct780.Float1 == struct781.Float1; - } + public static bool smethod_0(Struct78 struct780, Struct78 struct781) + { + return struct780.Float0 == struct781.Float0 && struct780.Float1 == struct781.Float1; + } - public override int GetHashCode() - { - return Float0.GetHashCode() ^ Float1.GetHashCode(); - } + public override int GetHashCode() + { + return Float0.GetHashCode() ^ Float1.GetHashCode(); + } - public override bool Equals(object obj) - { - if (obj is Struct78) - { - var struct78 = (Struct78)obj; - return smethod_0(this, struct78); - } - return false; - } + public override bool Equals(object obj) + { + if (obj is Struct78) + { + var struct78 = (Struct78) obj; + return smethod_0(this, struct78); + } + return false; + } - public int CompareTo(object target) - { - if (target == null) - { - return 1; - } - if (target is Struct78) - { - return method_0().CompareTo(((Struct78)target).method_0()); - } - if (target is float) - { - return method_0().CompareTo((float)target); - } - if (target is Struct79) - { - return method_0().CompareTo(((Struct79)target).method_0()); - } - if (!(target is double)) - { - throw new ArgumentException(); - } - return method_0().CompareTo((double)target); - } + public int CompareTo(object target) + { + if (target == null) + { + return 1; + } + if (target is Struct78) + { + return method_0().CompareTo(((Struct78) target).method_0()); + } + if (target is float) + { + return method_0().CompareTo((float) target); + } + if (target is Struct79) + { + return method_0().CompareTo(((Struct79) target).method_0()); + } + if (!(target is double)) + { + throw new ArgumentException(); + } + return method_0().CompareTo((double) target); + } - public override string ToString() - { - return string.Format("( {0}, {1}i )", Float0, Float1); - } - } -} + public override string ToString() + { + return string.Format("( {0}, {1}i )", Float0, Float1); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Struct79.cs b/GHNamespace9/Struct79.cs index 531df62..cd715ba 100644 --- a/GHNamespace9/Struct79.cs +++ b/GHNamespace9/Struct79.cs @@ -2,78 +2,78 @@ namespace GHNamespace9 { - public struct Struct79 : IComparable, ICloneable - { - public double Double0; + public struct Struct79 : IComparable, ICloneable + { + public double Double0; - public double Double1; + public double Double1; - public Struct79(Struct79 struct790) - { - Double0 = struct790.Double0; - Double1 = struct790.Double1; - } + public Struct79(Struct79 struct790) + { + Double0 = struct790.Double0; + Double1 = struct790.Double1; + } - object ICloneable.Clone() - { - return new Struct79(this); - } + object ICloneable.Clone() + { + return new Struct79(this); + } - public double method_0() - { - var num = Double0; - var num2 = Double1; - return Math.Sqrt(num * num + num2 * num2); - } + public double method_0() + { + var num = Double0; + var num2 = Double1; + return Math.Sqrt(num * num + num2 * num2); + } - public static bool smethod_0(Struct79 struct790, Struct79 struct791) - { - return struct790.Double0 == struct791.Double0 && struct790.Double1 == struct791.Double1; - } + public static bool smethod_0(Struct79 struct790, Struct79 struct791) + { + return struct790.Double0 == struct791.Double0 && struct790.Double1 == struct791.Double1; + } - public override int GetHashCode() - { - return Double0.GetHashCode() ^ Double1.GetHashCode(); - } + public override int GetHashCode() + { + return Double0.GetHashCode() ^ Double1.GetHashCode(); + } - public override bool Equals(object obj) - { - if (obj is Struct79) - { - var struct79 = (Struct79)obj; - return smethod_0(this, struct79); - } - return false; - } + public override bool Equals(object obj) + { + if (obj is Struct79) + { + var struct79 = (Struct79) obj; + return smethod_0(this, struct79); + } + return false; + } - public int CompareTo(object target) - { - if (target == null) - { - return 1; - } - if (target is Struct79) - { - return method_0().CompareTo(((Struct79)target).method_0()); - } - if (target is double) - { - return method_0().CompareTo((double)target); - } - if (target is Struct78) - { - return method_0().CompareTo(((Struct78)target).method_0()); - } - if (!(target is float)) - { - throw new ArgumentException(); - } - return method_0().CompareTo((float)target); - } + public int CompareTo(object target) + { + if (target == null) + { + return 1; + } + if (target is Struct79) + { + return method_0().CompareTo(((Struct79) target).method_0()); + } + if (target is double) + { + return method_0().CompareTo((double) target); + } + if (target is Struct78) + { + return method_0().CompareTo(((Struct78) target).method_0()); + } + if (!(target is float)) + { + throw new ArgumentException(); + } + return method_0().CompareTo((float) target); + } - public override string ToString() - { - return string.Format("( {0}, {1}i )", Double0, Double1); - } - } -} + public override string ToString() + { + return string.Format("( {0}, {1}i )", Double0, Double1); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/Struct80.cs b/GHNamespace9/Struct80.cs index 6781f9f..4609aea 100644 --- a/GHNamespace9/Struct80.cs +++ b/GHNamespace9/Struct80.cs @@ -2,175 +2,176 @@ namespace GHNamespace9 { - public struct Struct80 : IComparable, IEquatable, IComparable, IEquatable, IComparable, IConvertible, IFormattable - { - public const int Int0 = 8388607; - - public const int Int1 = 8388608; - - public int Int2; - - public int CompareTo(object target) - { - if (target == null) - { - return 1; - } - if (!(target is Struct80) && !(target is int)) - { - throw new ArgumentException("Value is not a SystemTools.Int24 or System.Int32"); - } - var num = (int)target; - if (Int2 == num) - { - return 0; - } - if (Int2 <= num) - { - return -1; - } - return 1; - } - - public override bool Equals(object obj) - { - return (obj is Struct80 || obj is int) && (int)obj == Int2; - } - - public override int GetHashCode() - { - return Int2; - } - - public int CompareTo(int other) - { - if (Int2 == other) - { - return 0; - } - if (Int2 <= other) - { - return -1; - } - return 1; - } - - public bool Equals(int other) - { - return other == Int2; - } - - public int CompareTo(Struct80 other) - { - if (Int2 == other.Int2) - { - return 0; - } - if (Int2 <= other.Int2) - { - return -1; - } - return 1; - } - - public bool Equals(Struct80 other) - { - return other.Int2 == Int2; - } - - public override string ToString() - { - return Int2.ToString(); - } - - public string ToString(IFormatProvider provider) - { - return Int2.ToString(provider); - } - - public string ToString(string format, IFormatProvider provider) - { - return Int2.ToString(format, provider); - } - - public TypeCode GetTypeCode() - { - return TypeCode.Int32; - } - - bool IConvertible.ToBoolean(IFormatProvider provider) - { - return Convert.ToBoolean(Int2); - } - - byte IConvertible.ToByte(IFormatProvider provider) - { - return Convert.ToByte(Int2); - } - - char IConvertible.ToChar(IFormatProvider provider) - { - return Convert.ToChar(Int2); - } - - DateTime IConvertible.ToDateTime(IFormatProvider provider) - { - return Convert.ToDateTime(Int2); - } - - decimal IConvertible.ToDecimal(IFormatProvider provider) - { - return Convert.ToDecimal(Int2); - } - - double IConvertible.ToDouble(IFormatProvider provider) - { - return Convert.ToDouble(Int2); - } - - short IConvertible.ToInt16(IFormatProvider provider) - { - return Convert.ToInt16(Int2); - } - - int IConvertible.ToInt32(IFormatProvider provider) - { - return Int2; - } - - long IConvertible.ToInt64(IFormatProvider provider) - { - return Convert.ToInt64(Int2); - } - - sbyte IConvertible.ToSByte(IFormatProvider provider) - { - return Convert.ToSByte(Int2); - } - - float IConvertible.ToSingle(IFormatProvider provider) - { - return Convert.ToSingle(Int2); - } - - object IConvertible.ToType(Type conversionType, IFormatProvider provider) - { - return Convert.ChangeType(Int2, conversionType, provider); - } - - ushort IConvertible.ToUInt16(IFormatProvider provider) - { - return Convert.ToUInt16(Int2); - } - - uint IConvertible.ToUInt32(IFormatProvider provider) - { - return Convert.ToUInt32(Int2); - } - - ulong IConvertible.ToUInt64(IFormatProvider provider) - { - return Convert.ToUInt64(Int2); - } - } -} + public struct Struct80 : IComparable, IEquatable, IComparable, IEquatable, + IComparable, IConvertible, IFormattable + { + public const int Int0 = 8388607; + + public const int Int1 = 8388608; + + public int Int2; + + public int CompareTo(object target) + { + if (target == null) + { + return 1; + } + if (!(target is Struct80) && !(target is int)) + { + throw new ArgumentException("Value is not a SystemTools.Int24 or System.Int32"); + } + var num = (int) target; + if (Int2 == num) + { + return 0; + } + if (Int2 <= num) + { + return -1; + } + return 1; + } + + public override bool Equals(object obj) + { + return (obj is Struct80 || obj is int) && (int) obj == Int2; + } + + public override int GetHashCode() + { + return Int2; + } + + public int CompareTo(int other) + { + if (Int2 == other) + { + return 0; + } + if (Int2 <= other) + { + return -1; + } + return 1; + } + + public bool Equals(int other) + { + return other == Int2; + } + + public int CompareTo(Struct80 other) + { + if (Int2 == other.Int2) + { + return 0; + } + if (Int2 <= other.Int2) + { + return -1; + } + return 1; + } + + public bool Equals(Struct80 other) + { + return other.Int2 == Int2; + } + + public override string ToString() + { + return Int2.ToString(); + } + + public string ToString(IFormatProvider provider) + { + return Int2.ToString(provider); + } + + public string ToString(string format, IFormatProvider provider) + { + return Int2.ToString(format, provider); + } + + public TypeCode GetTypeCode() + { + return TypeCode.Int32; + } + + bool IConvertible.ToBoolean(IFormatProvider provider) + { + return Convert.ToBoolean(Int2); + } + + byte IConvertible.ToByte(IFormatProvider provider) + { + return Convert.ToByte(Int2); + } + + char IConvertible.ToChar(IFormatProvider provider) + { + return Convert.ToChar(Int2); + } + + DateTime IConvertible.ToDateTime(IFormatProvider provider) + { + return Convert.ToDateTime(Int2); + } + + decimal IConvertible.ToDecimal(IFormatProvider provider) + { + return Convert.ToDecimal(Int2); + } + + double IConvertible.ToDouble(IFormatProvider provider) + { + return Convert.ToDouble(Int2); + } + + short IConvertible.ToInt16(IFormatProvider provider) + { + return Convert.ToInt16(Int2); + } + + int IConvertible.ToInt32(IFormatProvider provider) + { + return Int2; + } + + long IConvertible.ToInt64(IFormatProvider provider) + { + return Convert.ToInt64(Int2); + } + + sbyte IConvertible.ToSByte(IFormatProvider provider) + { + return Convert.ToSByte(Int2); + } + + float IConvertible.ToSingle(IFormatProvider provider) + { + return Convert.ToSingle(Int2); + } + + object IConvertible.ToType(Type conversionType, IFormatProvider provider) + { + return Convert.ChangeType(Int2, conversionType, provider); + } + + ushort IConvertible.ToUInt16(IFormatProvider provider) + { + return Convert.ToUInt16(Int2); + } + + uint IConvertible.ToUInt32(IFormatProvider provider) + { + return Convert.ToUInt32(Int2); + } + + ulong IConvertible.ToUInt64(IFormatProvider provider) + { + return Convert.ToUInt64(Int2); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/UnusedDictionaryClass.cs b/GHNamespace9/UnusedDictionaryClass.cs index 21badaf..b09f96e 100644 --- a/GHNamespace9/UnusedDictionaryClass.cs +++ b/GHNamespace9/UnusedDictionaryClass.cs @@ -3,151 +3,152 @@ namespace GHNamespace9 { - public class ZzDictionary242 : IEnumerable>, ICollection>, IDictionary, IEnumerable - { - private readonly ZzMap243 _class2430 = new ZzMap243(); - - public TValue this[TKey key] - { - get - { - if (!_class2430.Contains(key)) - { - return default(TValue); - } - return _class2430[key].Value; - } - set - { - if (_class2430.Contains(key)) - { - Remove(key); - } - Add(key, value); - } - } - - public TValue this[int int0] - { - get - { - if (_class2430.Count <= int0) - { - return default(TValue); - } - return _class2430[int0].Value; - } - set - { - if (_class2430.Count > int0) - { - _class2430[int0] = new KeyValuePair(_class2430[int0].Key, value); - } - } - } - - public int Count => _class2430.Count; - - public bool IsReadOnly => false; - - public ICollection Keys - { - get - { - ICollection collection = new List(); - foreach (var current in _class2430) - { - collection.Add(current.Key); - } - return collection; - } - } - - public ICollection Values - { - get - { - ICollection collection = new List(); - foreach (var current in _class2430) - { - collection.Add(current.Value); - } - return collection; - } - } - - public bool ContainsKey(TKey key) - { - return _class2430.Contains(key); - } - - public void Add(TKey key, TValue value) - { - _class2430.Add(new KeyValuePair(key, value)); - } - - public bool Remove(TKey key) - { - if (!_class2430.Contains(key)) - { - return false; - } - _class2430.Remove(key); - return true; - } - - public bool TryGetValue(TKey key, out TValue value) - { - if (!_class2430.Contains(key)) - { - value = default(TValue); - return false; - } - value = _class2430[key].Value; - return true; - } - - public IEnumerator GetEnumerator() - { - return _class2430.GetEnumerator(); - } - - public void Add(KeyValuePair item) - { - _class2430.Add(item); - } - - public void Add(ICollection> icollection0) - { - foreach (var current in icollection0) - { - _class2430.Add(current); - } - } - - public void Clear() - { - _class2430.Clear(); - } - - public bool Contains(KeyValuePair item) - { - return _class2430.Contains(item); - } - - public void CopyTo(KeyValuePair[] array, int index) - { - _class2430.CopyTo(array, index); - } - - public bool Remove(KeyValuePair item) - { - return _class2430.Remove(item); - } - - IEnumerator> IEnumerable>.GetEnumerator() - { - return _class2430.GetEnumerator(); - } - } -} + public class ZzDictionary242 : IEnumerable>, + ICollection>, IDictionary, IEnumerable + { + private readonly ZzMap243 _class2430 = new ZzMap243(); + + public TValue this[TKey key] + { + get + { + if (!_class2430.Contains(key)) + { + return default(TValue); + } + return _class2430[key].Value; + } + set + { + if (_class2430.Contains(key)) + { + Remove(key); + } + Add(key, value); + } + } + + public TValue this[int int0] + { + get + { + if (_class2430.Count <= int0) + { + return default(TValue); + } + return _class2430[int0].Value; + } + set + { + if (_class2430.Count > int0) + { + _class2430[int0] = new KeyValuePair(_class2430[int0].Key, value); + } + } + } + + public int Count => _class2430.Count; + + public bool IsReadOnly => false; + + public ICollection Keys + { + get + { + ICollection collection = new List(); + foreach (var current in _class2430) + { + collection.Add(current.Key); + } + return collection; + } + } + + public ICollection Values + { + get + { + ICollection collection = new List(); + foreach (var current in _class2430) + { + collection.Add(current.Value); + } + return collection; + } + } + + public bool ContainsKey(TKey key) + { + return _class2430.Contains(key); + } + + public void Add(TKey key, TValue value) + { + _class2430.Add(new KeyValuePair(key, value)); + } + + public bool Remove(TKey key) + { + if (!_class2430.Contains(key)) + { + return false; + } + _class2430.Remove(key); + return true; + } + + public bool TryGetValue(TKey key, out TValue value) + { + if (!_class2430.Contains(key)) + { + value = default(TValue); + return false; + } + value = _class2430[key].Value; + return true; + } + + public IEnumerator GetEnumerator() + { + return _class2430.GetEnumerator(); + } + + public void Add(KeyValuePair item) + { + _class2430.Add(item); + } + + public void Add(ICollection> icollection0) + { + foreach (var current in icollection0) + { + _class2430.Add(current); + } + } + + public void Clear() + { + _class2430.Clear(); + } + + public bool Contains(KeyValuePair item) + { + return _class2430.Contains(item); + } + + public void CopyTo(KeyValuePair[] array, int index) + { + _class2430.CopyTo(array, index); + } + + public bool Remove(KeyValuePair item) + { + return _class2430.Remove(item); + } + + IEnumerator> IEnumerable>.GetEnumerator() + { + return _class2430.GetEnumerator(); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/zzCollection1.cs b/GHNamespace9/zzCollection1.cs index 7c68062..4b274cb 100644 --- a/GHNamespace9/zzCollection1.cs +++ b/GHNamespace9/zzCollection1.cs @@ -5,455 +5,459 @@ namespace GHNamespace9 { - [HostProtection(SecurityAction.LinkDemand, MayLeakOnAbort = true)] - public class ZzCollection1 : IEnumerable, ICollection, IEnumerable - { - public struct Struct81 - { - public int Int0; - - public int Int1; - } - - public struct Struct82 : IEnumerator, IEnumerator, IDisposable - { - private ZzCollection1 _class2360; - - private int _int0; - - private readonly int _int1; - - private T _gparam0; - - public T Current => _gparam0; - - object IEnumerator.Current - { - get - { - method_0(); - if (_int0 <= 0) - { - throw new InvalidOperationException("Current is not valid"); - } - return _gparam0; - } - } - - public Struct82(ZzCollection1 class2361) - { - this = default(Struct82); - _class2360 = class2361; - _int1 = class2361._int5; - } - - public bool MoveNext() - { - method_0(); - if (_int0 < 0) - { - return false; - } - while (_int0 < _class2360._int1) - { - var num = _int0++; - if (_class2360.method_4(num) != 0) - { - _gparam0 = _class2360._gparam0[num]; - return true; - } - } - _int0 = -1; - return false; - } - - void IEnumerator.Reset() - { - method_0(); - _int0 = 0; - } - - public void Dispose() - { - _class2360 = null; - } - - private void method_0() - { - if (_class2360 == null) - { - throw new ObjectDisposedException(null); - } - if (_class2360._int5 != _int1) - { - throw new InvalidOperationException("HashSet have been modified while it was iterated over"); - } - } - } - - private static class Class237 - { - private static readonly int[] OddPrimeSequence = { - 11, - 19, - 37, - 73, - 109, - 163, - 251, - 367, - 557, - 823, - 1237, - 1861, - 2777, - 4177, - 6247, - 9371, - 14057, - 21089, - 31627, - 47431, - 71143, - 106721, - 160073, - 240101, - 360163, - 540217, - 810343, - 1215497, - 1823231, - 2734867, - 4102283, - 6153409, - 9230113, - 13845163 - }; - - private static bool smethod_0(int int1) - { - if ((int1 & 1) != 0) - { - var num = (int)Math.Sqrt(int1); - for (var i = 3; i < num; i += 2) - { - if (int1 % i == 0) - { - return false; - } - } - return true; - } - return int1 == 2; - } - - private static int smethod_1(int int1) - { - for (var i = (int1 & -2) - 1; i < Int32.MaxValue; i += 2) - { - if (smethod_0(i)) - { - return i; - } - } - return int1; - } - - public static int smethod_2(int int1) - { - for (var i = 0; i < OddPrimeSequence.Length; i++) - { - if (int1 <= OddPrimeSequence[i]) - { - return OddPrimeSequence[i]; - } - } - return smethod_1(int1); - } - } - - private int[] _int0; - - private Struct81[] _struct810; - - private T[] _gparam0; - - private int _int1; - - private int _int2; - - private int _int3; - - private int _int4; - - private IEqualityComparer _iequalityComparer0; - - private int _int5; - - public int Count => _int3; - - bool ICollection.IsReadOnly => false; - - public ZzCollection1() - { - method_0(10, null); - } - - public ZzCollection1(IEqualityComparer iequalityComparer1) - { - method_0(10, iequalityComparer1); - } - - public ZzCollection1(IEnumerable ienumerable0) : this(ienumerable0, null) - { - } - - public ZzCollection1(IEnumerable ienumerable0, IEqualityComparer iequalityComparer1) - { - if (ienumerable0 == null) - { - throw new ArgumentNullException("collection"); - } - var int_ = 0; - var collection = ienumerable0 as ICollection; - if (collection != null) - { - int_ = collection.Count; - } - method_0(int_, iequalityComparer1); - foreach (var current in ienumerable0) - { - vmethod_0(current); - } - } - - private void method_0(int int6, IEqualityComparer iequalityComparer1) - { - if (int6 < 0) - { - throw new ArgumentOutOfRangeException("capacity"); - } - _iequalityComparer0 = (iequalityComparer1 ?? EqualityComparer.Default); - if (int6 == 0) - { - int6 = 10; - } - int6 = (int)(int6 / 0.9f) + 1; - method_1(int6); - _int5 = 0; - } - - private void method_1(int int6) - { - _int0 = new int[int6]; - _struct810 = new Struct81[int6]; - _int2 = -1; - _gparam0 = new T[int6]; - _int1 = 0; - _int4 = (int)(_int0.Length * 0.9f); - if (_int4 == 0 && _int0.Length > 0) - { - _int4 = 1; - } - } - - public void CopyTo(T[] gparam1, int int6) - { - method_2(gparam1, int6, _int3); - } - - void ICollection.CopyTo(T[] array, int arrayIndex) - { - CopyTo(array, arrayIndex); - } - - public void method_2(T[] gparam1, int int6, int int7) - { - if (gparam1 == null) - { - throw new ArgumentNullException("array"); - } - if (int6 < 0) - { - throw new ArgumentOutOfRangeException("index"); - } - if (int6 > gparam1.Length) - { - throw new ArgumentException("index larger than largest valid index of array"); - } - if (gparam1.Length - int6 < int7) - { - throw new ArgumentException("Destination array cannot hold the requested elements!"); - } - var num = 0; - var num2 = int6 + int7; - while (num < _int1 && int6 < num2) - { - if (method_4(num) != 0) - { - gparam1[int6++] = _gparam0[num]; - } - num++; - } - } - - public void Clear() - { - _int3 = 0; - Array.Clear(_int0, 0, _int0.Length); - Array.Clear(_gparam0, 0, _gparam0.Length); - Array.Clear(_struct810, 0, _struct810.Length); - _int2 = -1; - _int1 = 0; - _int5++; - } - - private void method_3() - { - var num = Class237.smethod_2(_int0.Length << 1 | 1); - var array = new int[num]; - var array2 = new Struct81[num]; - for (var i = 0; i < _int0.Length; i++) - { - for (var num2 = _int0[i] - 1; num2 != -1; num2 = _struct810[num2].Int1) - { - var num3 = array2[num2].Int0 = method_5(_gparam0[num2]); - var num4 = (num3 & 2147483647) % num; - array2[num2].Int1 = array[num4] - 1; - array[num4] = num2 + 1; - } - } - _int0 = array; - _struct810 = array2; - var destinationArray = new T[num]; - Array.Copy(_gparam0, 0, destinationArray, 0, _int1); - _gparam0 = destinationArray; - _int4 = (int)(num * 0.9f); - } - - public int method_4(int int6) - { - return _struct810[int6].Int0 & -2147483648; - } - - public int method_5(T gparam1) - { - if (gparam1 != null) - { - return _iequalityComparer0.GetHashCode(gparam1) | -2147483648; - } - return -2147483648; - } - - void ICollection.Add(T item) - { - vmethod_0(item); - } - - public bool vmethod_0(T gparam1) - { - var num = method_5(gparam1); - var num2 = (num & 2147483647) % _int0.Length; - if (method_6(num2, num, gparam1)) - { - return false; - } - if (++_int3 > _int4) - { - method_3(); - num2 = (num & 2147483647) % _int0.Length; - } - var num3 = _int2; - if (num3 == -1) - { - num3 = _int1++; - } - else - { - _int2 = _struct810[num3].Int1; - } - _struct810[num3].Int0 = num; - _struct810[num3].Int1 = _int0[num2] - 1; - _int0[num2] = num3 + 1; - _gparam0[num3] = gparam1; - _int5++; - return true; - } - - public bool Contains(T item) - { - var num = method_5(item); - var int_ = (num & 2147483647) % _int0.Length; - return method_6(int_, num, item); - } - - private bool method_6(int int6, int int7, T gparam1) - { - Struct81 @struct; - for (var num = _int0[int6] - 1; num != -1; num = @struct.Int1) - { - @struct = _struct810[num]; - if (@struct.Int0 == int7 && ((int7 != -2147483648 || (gparam1 != null && _gparam0[num] != null)) ? _iequalityComparer0.Equals(gparam1, _gparam0[num]) : (gparam1 == null && null == _gparam0[num]))) - { - return true; - } - } - return false; - } - - public bool Remove(T item) - { - var num = method_5(item); - var num2 = (num & 2147483647) % _int0.Length; - var num3 = _int0[num2] - 1; - if (num3 == -1) - { - return false; - } - var num4 = -1; - do - { - var @struct = _struct810[num3]; - if (@struct.Int0 == num) - { - if ((num != -2147483648 || (item != null && _gparam0[num3] != null)) ? _iequalityComparer0.Equals(_gparam0[num3], item) : (item == null && null == _gparam0[num3])) - { - break; - } - } - num4 = num3; - num3 = @struct.Int1; - } - while (num3 != -1); - if (num3 == -1) - { - return false; - } - _int3--; - if (num4 == -1) - { - _int0[num2] = _struct810[num3].Int1 + 1; - } - else - { - _struct810[num4].Int1 = _struct810[num3].Int1; - } - _struct810[num3].Int1 = _int2; - _int2 = num3; - _struct810[num3].Int0 = 0; - _gparam0[num3] = default(T); - _int5++; - return true; - } - - IEnumerator IEnumerable.GetEnumerator() - { - return new Struct82(this); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return new Struct82(this); - } - } -} + [HostProtection(SecurityAction.LinkDemand, MayLeakOnAbort = true)] + public class ZzCollection1 : IEnumerable, ICollection, IEnumerable + { + public struct Struct81 + { + public int Int0; + + public int Int1; + } + + public struct Struct82 : IEnumerator, IEnumerator, IDisposable + { + private ZzCollection1 _class2360; + + private int _int0; + + private readonly int _int1; + + private T _gparam0; + + public T Current => _gparam0; + + object IEnumerator.Current + { + get + { + method_0(); + if (_int0 <= 0) + { + throw new InvalidOperationException("Current is not valid"); + } + return _gparam0; + } + } + + public Struct82(ZzCollection1 class2361) + { + this = default(Struct82); + _class2360 = class2361; + _int1 = class2361._int5; + } + + public bool MoveNext() + { + method_0(); + if (_int0 < 0) + { + return false; + } + while (_int0 < _class2360._int1) + { + var num = _int0++; + if (_class2360.method_4(num) != 0) + { + _gparam0 = _class2360._gparam0[num]; + return true; + } + } + _int0 = -1; + return false; + } + + void IEnumerator.Reset() + { + method_0(); + _int0 = 0; + } + + public void Dispose() + { + _class2360 = null; + } + + private void method_0() + { + if (_class2360 == null) + { + throw new ObjectDisposedException(null); + } + if (_class2360._int5 != _int1) + { + throw new InvalidOperationException("HashSet have been modified while it was iterated over"); + } + } + } + + private static class Class237 + { + private static readonly int[] OddPrimeSequence = + { + 11, + 19, + 37, + 73, + 109, + 163, + 251, + 367, + 557, + 823, + 1237, + 1861, + 2777, + 4177, + 6247, + 9371, + 14057, + 21089, + 31627, + 47431, + 71143, + 106721, + 160073, + 240101, + 360163, + 540217, + 810343, + 1215497, + 1823231, + 2734867, + 4102283, + 6153409, + 9230113, + 13845163 + }; + + private static bool smethod_0(int int1) + { + if ((int1 & 1) != 0) + { + var num = (int) Math.Sqrt(int1); + for (var i = 3; i < num; i += 2) + { + if (int1 % i == 0) + { + return false; + } + } + return true; + } + return int1 == 2; + } + + private static int smethod_1(int int1) + { + for (var i = (int1 & -2) - 1; i < Int32.MaxValue; i += 2) + { + if (smethod_0(i)) + { + return i; + } + } + return int1; + } + + public static int smethod_2(int int1) + { + for (var i = 0; i < OddPrimeSequence.Length; i++) + { + if (int1 <= OddPrimeSequence[i]) + { + return OddPrimeSequence[i]; + } + } + return smethod_1(int1); + } + } + + private int[] _int0; + + private Struct81[] _struct810; + + private T[] _gparam0; + + private int _int1; + + private int _int2; + + private int _int3; + + private int _int4; + + private IEqualityComparer _iequalityComparer0; + + private int _int5; + + public int Count => _int3; + + bool ICollection.IsReadOnly => false; + + public ZzCollection1() + { + method_0(10, null); + } + + public ZzCollection1(IEqualityComparer iequalityComparer1) + { + method_0(10, iequalityComparer1); + } + + public ZzCollection1(IEnumerable ienumerable0) : this(ienumerable0, null) + { + } + + public ZzCollection1(IEnumerable ienumerable0, IEqualityComparer iequalityComparer1) + { + if (ienumerable0 == null) + { + throw new ArgumentNullException("collection"); + } + var int_ = 0; + var collection = ienumerable0 as ICollection; + if (collection != null) + { + int_ = collection.Count; + } + method_0(int_, iequalityComparer1); + foreach (var current in ienumerable0) + { + vmethod_0(current); + } + } + + private void method_0(int int6, IEqualityComparer iequalityComparer1) + { + if (int6 < 0) + { + throw new ArgumentOutOfRangeException("capacity"); + } + _iequalityComparer0 = (iequalityComparer1 ?? EqualityComparer.Default); + if (int6 == 0) + { + int6 = 10; + } + int6 = (int) (int6 / 0.9f) + 1; + method_1(int6); + _int5 = 0; + } + + private void method_1(int int6) + { + _int0 = new int[int6]; + _struct810 = new Struct81[int6]; + _int2 = -1; + _gparam0 = new T[int6]; + _int1 = 0; + _int4 = (int) (_int0.Length * 0.9f); + if (_int4 == 0 && _int0.Length > 0) + { + _int4 = 1; + } + } + + public void CopyTo(T[] gparam1, int int6) + { + method_2(gparam1, int6, _int3); + } + + void ICollection.CopyTo(T[] array, int arrayIndex) + { + CopyTo(array, arrayIndex); + } + + public void method_2(T[] gparam1, int int6, int int7) + { + if (gparam1 == null) + { + throw new ArgumentNullException("array"); + } + if (int6 < 0) + { + throw new ArgumentOutOfRangeException("index"); + } + if (int6 > gparam1.Length) + { + throw new ArgumentException("index larger than largest valid index of array"); + } + if (gparam1.Length - int6 < int7) + { + throw new ArgumentException("Destination array cannot hold the requested elements!"); + } + var num = 0; + var num2 = int6 + int7; + while (num < _int1 && int6 < num2) + { + if (method_4(num) != 0) + { + gparam1[int6++] = _gparam0[num]; + } + num++; + } + } + + public void Clear() + { + _int3 = 0; + Array.Clear(_int0, 0, _int0.Length); + Array.Clear(_gparam0, 0, _gparam0.Length); + Array.Clear(_struct810, 0, _struct810.Length); + _int2 = -1; + _int1 = 0; + _int5++; + } + + private void method_3() + { + var num = Class237.smethod_2(_int0.Length << 1 | 1); + var array = new int[num]; + var array2 = new Struct81[num]; + for (var i = 0; i < _int0.Length; i++) + { + for (var num2 = _int0[i] - 1; num2 != -1; num2 = _struct810[num2].Int1) + { + var num3 = array2[num2].Int0 = method_5(_gparam0[num2]); + var num4 = (num3 & 2147483647) % num; + array2[num2].Int1 = array[num4] - 1; + array[num4] = num2 + 1; + } + } + _int0 = array; + _struct810 = array2; + var destinationArray = new T[num]; + Array.Copy(_gparam0, 0, destinationArray, 0, _int1); + _gparam0 = destinationArray; + _int4 = (int) (num * 0.9f); + } + + public int method_4(int int6) + { + return _struct810[int6].Int0 & -2147483648; + } + + public int method_5(T gparam1) + { + if (gparam1 != null) + { + return _iequalityComparer0.GetHashCode(gparam1) | -2147483648; + } + return -2147483648; + } + + void ICollection.Add(T item) + { + vmethod_0(item); + } + + public bool vmethod_0(T gparam1) + { + var num = method_5(gparam1); + var num2 = (num & 2147483647) % _int0.Length; + if (method_6(num2, num, gparam1)) + { + return false; + } + if (++_int3 > _int4) + { + method_3(); + num2 = (num & 2147483647) % _int0.Length; + } + var num3 = _int2; + if (num3 == -1) + { + num3 = _int1++; + } + else + { + _int2 = _struct810[num3].Int1; + } + _struct810[num3].Int0 = num; + _struct810[num3].Int1 = _int0[num2] - 1; + _int0[num2] = num3 + 1; + _gparam0[num3] = gparam1; + _int5++; + return true; + } + + public bool Contains(T item) + { + var num = method_5(item); + var int_ = (num & 2147483647) % _int0.Length; + return method_6(int_, num, item); + } + + private bool method_6(int int6, int int7, T gparam1) + { + Struct81 @struct; + for (var num = _int0[int6] - 1; num != -1; num = @struct.Int1) + { + @struct = _struct810[num]; + if (@struct.Int0 == int7 && ((int7 != -2147483648 || (gparam1 != null && _gparam0[num] != null)) + ? _iequalityComparer0.Equals(gparam1, _gparam0[num]) + : (gparam1 == null && null == _gparam0[num]))) + { + return true; + } + } + return false; + } + + public bool Remove(T item) + { + var num = method_5(item); + var num2 = (num & 2147483647) % _int0.Length; + var num3 = _int0[num2] - 1; + if (num3 == -1) + { + return false; + } + var num4 = -1; + do + { + var @struct = _struct810[num3]; + if (@struct.Int0 == num) + { + if ((num != -2147483648 || (item != null && _gparam0[num3] != null)) + ? _iequalityComparer0.Equals(_gparam0[num3], item) + : (item == null && null == _gparam0[num3])) + { + break; + } + } + num4 = num3; + num3 = @struct.Int1; + } while (num3 != -1); + if (num3 == -1) + { + return false; + } + _int3--; + if (num4 == -1) + { + _int0[num2] = _struct810[num3].Int1 + 1; + } + else + { + _struct810[num4].Int1 = _struct810[num3].Int1; + } + _struct810[num3].Int1 = _int2; + _int2 = num3; + _struct810[num3].Int0 = 0; + _gparam0[num3] = default(T); + _int5++; + return true; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return new Struct82(this); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return new Struct82(this); + } + } +} \ No newline at end of file diff --git a/GHNamespace9/zzKeyedCollection243.cs b/GHNamespace9/zzKeyedCollection243.cs index 51d79fe..5888743 100644 --- a/GHNamespace9/zzKeyedCollection243.cs +++ b/GHNamespace9/zzKeyedCollection243.cs @@ -3,11 +3,11 @@ namespace GHNamespace9 { - public class ZzMap243 : KeyedCollection> - { + public class ZzMap243 : KeyedCollection> + { protected override TKey GetKeyForItem(KeyValuePair item) - { - return item.Key; - } - } -} + { + return item.Key; + } + } +} \ No newline at end of file diff --git a/GHNamespace9/zzList240.cs b/GHNamespace9/zzList240.cs index 590a2cb..82dc419 100644 --- a/GHNamespace9/zzList240.cs +++ b/GHNamespace9/zzList240.cs @@ -3,254 +3,259 @@ namespace GHNamespace9 { - public class ZzList240 : IEnumerable, ICloneable, ICollection, IList - { - private class MyComparer : IComparer - { - public int Compare(object x, object y) - { - var comparable = x as IComparable; - return comparable.CompareTo(y); - } - } + public class ZzList240 : IEnumerable, ICloneable, ICollection, IList + { + private class MyComparer : IComparer + { + public int Compare(object x, object y) + { + var comparable = x as IComparable; + return comparable.CompareTo(y); + } + } - private ArrayList _arrayList0; + private ArrayList _arrayList0; - private IComparer _icomparer0; + private IComparer _icomparer0; - private bool _bool0; + private bool _bool0; - private bool _bool1; + private bool _bool1; - private bool _bool2; + private bool _bool2; - private bool _bool3; + private bool _bool3; - public object this[int index] - { - get - { - if (index >= _arrayList0.Count || index < 0) - { - throw new ArgumentOutOfRangeException("Index is less than zero or Index is greater than Count."); - } - return _arrayList0[index]; - } - set - { - if (_bool2) - { - throw new InvalidOperationException("[] operator cannot be used to set a value if KeepSorted property is set to true."); - } - if (index < _arrayList0.Count && index >= 0) - { - if (method_0(value)) - { - var obj = (index > 0) ? _arrayList0[index - 1] : null; - var obj2 = (index < Count - 1) ? _arrayList0[index + 1] : null; - if ((obj != null && _icomparer0.Compare(obj, value) > 0) || (obj2 != null && _icomparer0.Compare(value, obj2) > 0)) - { - _bool1 = false; - } - _arrayList0[index] = value; - } - return; - } - throw new ArgumentOutOfRangeException("Index is less than zero or Index is greater than Count."); - } - } + public object this[int index] + { + get + { + if (index >= _arrayList0.Count || index < 0) + { + throw new ArgumentOutOfRangeException("Index is less than zero or Index is greater than Count."); + } + return _arrayList0[index]; + } + set + { + if (_bool2) + { + throw new InvalidOperationException( + "[] operator cannot be used to set a value if KeepSorted property is set to true."); + } + if (index < _arrayList0.Count && index >= 0) + { + if (method_0(value)) + { + var obj = (index > 0) ? _arrayList0[index - 1] : null; + var obj2 = (index < Count - 1) ? _arrayList0[index + 1] : null; + if ((obj != null && _icomparer0.Compare(obj, value) > 0) || + (obj2 != null && _icomparer0.Compare(value, obj2) > 0)) + { + _bool1 = false; + } + _arrayList0[index] = value; + } + return; + } + throw new ArgumentOutOfRangeException("Index is less than zero or Index is greater than Count."); + } + } - public int Count => _arrayList0.Count; + public int Count => _arrayList0.Count; - public object SyncRoot => _arrayList0.SyncRoot; + public object SyncRoot => _arrayList0.SyncRoot; - public bool IsSynchronized => _arrayList0.IsSynchronized; + public bool IsSynchronized => _arrayList0.IsSynchronized; - public bool IsReadOnly => _arrayList0.IsReadOnly; + public bool IsReadOnly => _arrayList0.IsReadOnly; - public bool IsFixedSize => _arrayList0.IsFixedSize; + public bool IsFixedSize => _arrayList0.IsFixedSize; - public ZzList240() - { - method_1(null, 0); - } + public ZzList240() + { + method_1(null, 0); + } - public ZzList240(IComparer icomparer1, int int0) - { - method_1(icomparer1, int0); - } + public ZzList240(IComparer icomparer1, int int0) + { + method_1(icomparer1, int0); + } - public int Add(object value) - { - var result = -1; - if (method_0(value)) - { - if (_bool2) - { - var num = IndexOf(value); - var num2 = (num >= 0) ? num : (-num - 1); - if (num2 >= Count) - { - _arrayList0.Add(value); - } - else - { - _arrayList0.Insert(num2, value); - } - result = num2; - } - else - { - _bool1 = false; - result = _arrayList0.Add(value); - } - } - return result; - } + public int Add(object value) + { + var result = -1; + if (method_0(value)) + { + if (_bool2) + { + var num = IndexOf(value); + var num2 = (num >= 0) ? num : (-num - 1); + if (num2 >= Count) + { + _arrayList0.Add(value); + } + else + { + _arrayList0.Insert(num2, value); + } + result = num2; + } + else + { + _bool1 = false; + result = _arrayList0.Add(value); + } + } + return result; + } - public bool Contains(object value) - { - if (!_bool1) - { - return _arrayList0.Contains(value); - } - return _arrayList0.BinarySearch(value, _icomparer0) >= 0; - } + public bool Contains(object value) + { + if (!_bool1) + { + return _arrayList0.Contains(value); + } + return _arrayList0.BinarySearch(value, _icomparer0) >= 0; + } - public int IndexOf(object value) - { - int num; - if (_bool1) - { - num = _arrayList0.BinarySearch(value, _icomparer0); - while (num > 0 && _arrayList0[num - 1].Equals(value)) - { - num--; - } - } - else - { - num = _arrayList0.IndexOf(value); - } - return num; - } + public int IndexOf(object value) + { + int num; + if (_bool1) + { + num = _arrayList0.BinarySearch(value, _icomparer0); + while (num > 0 && _arrayList0[num - 1].Equals(value)) + { + num--; + } + } + else + { + num = _arrayList0.IndexOf(value); + } + return num; + } - public void Insert(int index, object value) - { - if (_bool2) - { - throw new InvalidOperationException("Insert method cannot be called if KeepSorted property is set to true."); - } - if (index < _arrayList0.Count && index >= 0) - { - if (method_0(value)) - { - var obj = _arrayList0[index]; - var obj2 = (index > 0) ? _arrayList0[index - 1] : null; - if ((obj2 != null && _icomparer0.Compare(obj2, value) > 0) || (obj != null && _icomparer0.Compare(value, obj) > 0)) - { - _bool1 = false; - } - _arrayList0.Insert(index, value); - } - return; - } - throw new ArgumentOutOfRangeException("index is less than zero or index is greater than Count."); - } + public void Insert(int index, object value) + { + if (_bool2) + { + throw new InvalidOperationException( + "Insert method cannot be called if KeepSorted property is set to true."); + } + if (index < _arrayList0.Count && index >= 0) + { + if (method_0(value)) + { + var obj = _arrayList0[index]; + var obj2 = (index > 0) ? _arrayList0[index - 1] : null; + if ((obj2 != null && _icomparer0.Compare(obj2, value) > 0) || + (obj != null && _icomparer0.Compare(value, obj) > 0)) + { + _bool1 = false; + } + _arrayList0.Insert(index, value); + } + return; + } + throw new ArgumentOutOfRangeException("index is less than zero or index is greater than Count."); + } - public void Remove(object value) - { - _arrayList0.Remove(value); - } + public void Remove(object value) + { + _arrayList0.Remove(value); + } - public void RemoveAt(int index) - { - _arrayList0.RemoveAt(index); - } + public void RemoveAt(int index) + { + _arrayList0.RemoveAt(index); + } - public void CopyTo(Array array, int index) - { - _arrayList0.CopyTo(array, index); - } + public void CopyTo(Array array, int index) + { + _arrayList0.CopyTo(array, index); + } - public IEnumerator GetEnumerator() - { - return _arrayList0.GetEnumerator(); - } + public IEnumerator GetEnumerator() + { + return _arrayList0.GetEnumerator(); + } - public void Clear() - { - _arrayList0.Clear(); - } + public void Clear() + { + _arrayList0.Clear(); + } - public object Clone() - { - return new ZzList240(_icomparer0, _arrayList0.Capacity) - { - _arrayList0 = (ArrayList)_arrayList0.Clone(), - _bool3 = _bool3, - _bool1 = _bool1, - _bool2 = _bool2 - }; - } + public object Clone() + { + return new ZzList240(_icomparer0, _arrayList0.Capacity) + { + _arrayList0 = (ArrayList) _arrayList0.Clone(), + _bool3 = _bool3, + _bool1 = _bool1, + _bool2 = _bool2 + }; + } - public override string ToString() - { - var text = "{"; - for (var i = 0; i < _arrayList0.Count; i++) - { - text = text + _arrayList0[i] + ((i != _arrayList0.Count - 1) ? "; " : "}"); - } - return text; - } + public override string ToString() + { + var text = "{"; + for (var i = 0; i < _arrayList0.Count; i++) + { + text = text + _arrayList0[i] + ((i != _arrayList0.Count - 1) ? "; " : "}"); + } + return text; + } - public override bool Equals(object obj) - { - var @class = (ZzList240)obj; - if (@class.Count != Count) - { - return false; - } - for (var i = 0; i < Count; i++) - { - if (!@class[i].Equals(this[i])) - { - return false; - } - } - return true; - } + public override bool Equals(object obj) + { + var @class = (ZzList240) obj; + if (@class.Count != Count) + { + return false; + } + for (var i = 0; i < Count; i++) + { + if (!@class[i].Equals(this[i])) + { + return false; + } + } + return true; + } - public override int GetHashCode() - { - return _arrayList0.GetHashCode(); - } + public override int GetHashCode() + { + return _arrayList0.GetHashCode(); + } - private bool method_0(object object0) - { - if (_bool0 && !(object0 is IComparable)) - { - throw new ArgumentException("The SortableArrayList is set to use the IComparable interface of objects, and the object to add does not implement the IComparable interface."); - } - return _bool3 || !Contains(object0); - } + private bool method_0(object object0) + { + if (_bool0 && !(object0 is IComparable)) + { + throw new ArgumentException( + "The SortableArrayList is set to use the IComparable interface of objects, and the object to add does not implement the IComparable interface."); + } + return _bool3 || !Contains(object0); + } - private void method_1(IComparer icomparer1, int int0) - { - if (icomparer1 != null) - { - _icomparer0 = icomparer1; - _bool0 = false; - } - else - { - _icomparer0 = new MyComparer(); - _bool0 = true; - } - _arrayList0 = ((int0 > 0) ? new ArrayList(int0) : new ArrayList()); - _bool1 = true; - _bool2 = true; - _bool3 = true; - } - } -} + private void method_1(IComparer icomparer1, int int0) + { + if (icomparer1 != null) + { + _icomparer0 = icomparer1; + _bool0 = false; + } + else + { + _icomparer0 = new MyComparer(); + _bool0 = true; + } + _arrayList0 = ((int0 > 0) ? new ArrayList(int0) : new ArrayList()); + _bool1 = true; + _bool2 = true; + _bool3 = true; + } + } +} \ No newline at end of file diff --git a/GHNamespace9/zzListBox238.cs b/GHNamespace9/zzListBox238.cs index 061dae4..3e62b18 100644 --- a/GHNamespace9/zzListBox238.cs +++ b/GHNamespace9/zzListBox238.cs @@ -7,347 +7,348 @@ namespace GHNamespace9 { - public class ZzListBox238 : ListBox, INterface11 - { - private Rectangle _rectangle0 = Rectangle.Empty; - - private readonly ZzDrawingClass230 _class2300; - - private int[] _int0 = new int[0]; - - private bool _bool0; - - private string _string0 = ""; - - private bool _bool1 = true; - - private bool _bool2 = true; - - private bool _bool3 = true; - - private bool _bool4 = true; - - private EventHandler _eventHandler0; - - public ZzListBox238() - { - AllowDrop = true; - _class2300 = new ZzDrawingClass230(this); - } - - public string imethod_0() - { - return _string0; - } - - public void method_0(string string1) - { - _string0 = string1; - } - - public bool imethod_1() - { - return _bool1; - } - - public void method_1(bool bool5) - { - _bool1 = bool5; - } - - public bool imethod_2() - { - return _bool2; - } - - public void method_2(bool bool5) - { - _bool2 = bool5; - } - - public object[] imethod_3() - { - var array = new object[SelectedItems.Count]; - SelectedItems.CopyTo(array, 0); - return array; - } - - public void method_3() - { - for (var i = SelectedIndices.Count - 1; i >= 0; i--) - { - var index = SelectedIndices[i]; - Items.RemoveAt(index); - } - } - - public void imethod_4(ref int int1) - { - for (var i = SelectedIndices.Count - 1; i >= 0; i--) - { - var num = SelectedIndices[i]; - Items.RemoveAt(num); - if (num < int1) - { - int1--; - } - } - } - - public void imethod_5(EventArgs2 eventArgs20) - { - var eventHandler = _eventHandler0; - if (eventHandler != null) - { - eventHandler(this, eventArgs20); - } - } - - public void method_4(bool bool5) - { - _bool3 = bool5; - AllowDrop = (_bool4 || _bool3); - } - - public void method_5(bool bool5) - { - _bool4 = bool5; - AllowDrop = (_bool4 || _bool3); - } - - public void method_6(EventHandler eventHandler1) - { - var eventHandler = _eventHandler0; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - var value = (EventHandler)Delegate.Combine(eventHandler2, eventHandler1); - eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); - } - while (eventHandler != eventHandler2); - } + public class ZzListBox238 : ListBox, INterface11 + { + private Rectangle _rectangle0 = Rectangle.Empty; + + private readonly ZzDrawingClass230 _class2300; + + private int[] _int0 = new int[0]; + + private bool _bool0; + + private string _string0 = ""; + + private bool _bool1 = true; + + private bool _bool2 = true; + + private bool _bool3 = true; + + private bool _bool4 = true; + + private EventHandler _eventHandler0; + + public ZzListBox238() + { + AllowDrop = true; + _class2300 = new ZzDrawingClass230(this); + } + + public string imethod_0() + { + return _string0; + } + + public void method_0(string string1) + { + _string0 = string1; + } + + public bool imethod_1() + { + return _bool1; + } + + public void method_1(bool bool5) + { + _bool1 = bool5; + } + + public bool imethod_2() + { + return _bool2; + } + + public void method_2(bool bool5) + { + _bool2 = bool5; + } + + public object[] imethod_3() + { + var array = new object[SelectedItems.Count]; + SelectedItems.CopyTo(array, 0); + return array; + } + + public void method_3() + { + for (var i = SelectedIndices.Count - 1; i >= 0; i--) + { + var index = SelectedIndices[i]; + Items.RemoveAt(index); + } + } + + public void imethod_4(ref int int1) + { + for (var i = SelectedIndices.Count - 1; i >= 0; i--) + { + var num = SelectedIndices[i]; + Items.RemoveAt(num); + if (num < int1) + { + int1--; + } + } + } + + public void imethod_5(EventArgs2 eventArgs20) + { + var eventHandler = _eventHandler0; + if (eventHandler != null) + { + eventHandler(this, eventArgs20); + } + } + + public void method_4(bool bool5) + { + _bool3 = bool5; + AllowDrop = (_bool4 || _bool3); + } + + public void method_5(bool bool5) + { + _bool4 = bool5; + AllowDrop = (_bool4 || _bool3); + } + + public void method_6(EventHandler eventHandler1) + { + var eventHandler = _eventHandler0; + EventHandler eventHandler2; + do + { + eventHandler2 = eventHandler; + var value = (EventHandler) Delegate.Combine(eventHandler2, eventHandler1); + eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); + } while (eventHandler != eventHandler2); + } protected override void OnDragDrop(DragEventArgs drgevent) - { - base.OnDragDrop(drgevent); - _class2300.method_1(); - var @interface = drgevent.Data.GetData("IDragDropSource") as INterface11; - var array = @interface.imethod_3(); - var sorted = Sorted; - Sorted = false; - var num = method_9(drgevent.Y); - var num2 = num; - if (num >= Items.Count) - { - Items.AddRange(array); - } - else - { - var array2 = array; - for (var i = 0; i < array2.Length; i++) - { - var item = array2[i]; - Items.Insert(num++, item); - } - } - Enum34 @enum; - if (drgevent.Effect == DragDropEffects.Move) - { - var num3 = num2; - @interface.imethod_4(ref num3); - if (@interface == this) - { - num2 = num3; - @enum = Enum34.Const0; - } - else - { - @enum = Enum34.Const1; - } - } - else - { - @enum = Enum34.Const2; - } - ClearSelected(); - if (SelectionMode == SelectionMode.One) - { - SelectedIndex = num2; - } - else if (SelectionMode != SelectionMode.None) - { - for (var j = num2; j < num2 + array.Length; j++) - { - SetSelected(j, true); - } - } - Sorted = sorted; - imethod_5(new EventArgs2 - { - Enum340 = @enum, - Interface110 = @interface, - Interface111 = this, - Object0 = array - }); - if (@enum != Enum34.Const0) - { - @interface.imethod_5(new EventArgs2 - { - Enum340 = (@enum == Enum34.Const1) ? Enum34.Const3 : Enum34.Const4, - Interface110 = @interface, - Interface111 = this, - Object0 = array - }); - } - } + { + base.OnDragDrop(drgevent); + _class2300.method_1(); + var @interface = drgevent.Data.GetData("IDragDropSource") as INterface11; + var array = @interface.imethod_3(); + var sorted = Sorted; + Sorted = false; + var num = method_9(drgevent.Y); + var num2 = num; + if (num >= Items.Count) + { + Items.AddRange(array); + } + else + { + var array2 = array; + for (var i = 0; i < array2.Length; i++) + { + var item = array2[i]; + Items.Insert(num++, item); + } + } + Enum34 @enum; + if (drgevent.Effect == DragDropEffects.Move) + { + var num3 = num2; + @interface.imethod_4(ref num3); + if (@interface == this) + { + num2 = num3; + @enum = Enum34.Const0; + } + else + { + @enum = Enum34.Const1; + } + } + else + { + @enum = Enum34.Const2; + } + ClearSelected(); + if (SelectionMode == SelectionMode.One) + { + SelectedIndex = num2; + } + else if (SelectionMode != SelectionMode.None) + { + for (var j = num2; j < num2 + array.Length; j++) + { + SetSelected(j, true); + } + } + Sorted = sorted; + imethod_5(new EventArgs2 + { + Enum340 = @enum, + Interface110 = @interface, + Interface111 = this, + Object0 = array + }); + if (@enum != Enum34.Const0) + { + @interface.imethod_5(new EventArgs2 + { + Enum340 = (@enum == Enum34.Const1) ? Enum34.Const3 : Enum34.Const4, + Interface110 = @interface, + Interface111 = this, + Object0 = array + }); + } + } protected override void OnDragOver(DragEventArgs drgevent) - { - base.OnDragOver(drgevent); - drgevent.Effect = method_10(drgevent); - if (drgevent.Effect == DragDropEffects.None) - { - return; - } - var num = method_9(drgevent.Y); - if (num != _class2300.method_0()) - { - _class2300.method_1(); - _class2300.method_2(num); - } - } + { + base.OnDragOver(drgevent); + drgevent.Effect = method_10(drgevent); + if (drgevent.Effect == DragDropEffects.None) + { + return; + } + var num = method_9(drgevent.Y); + if (num != _class2300.method_0()) + { + _class2300.method_1(); + _class2300.method_2(num); + } + } protected override void OnDragEnter(DragEventArgs drgevent) - { - base.OnDragEnter(drgevent); - drgevent.Effect = method_10(drgevent); - } + { + base.OnDragEnter(drgevent); + drgevent.Effect = method_10(drgevent); + } protected override void OnDragLeave(EventArgs e) - { - base.OnDragLeave(e); - _class2300.method_1(); - } + { + base.OnDragLeave(e); + _class2300.method_1(); + } protected override void OnMouseDown(MouseEventArgs e) - { - base.OnMouseDown(e); - var num = IndexFromPoint(e.Location); - if (num >= 0 && MouseButtons == MouseButtons.Left && (_bool1 || _bool2 || _bool3) && (GetSelected(num) || ModifierKeys == Keys.Shift)) - { - method_7(num); - var dragSize = SystemInformation.DragSize; - _rectangle0 = new Rectangle(new Point(e.X - dragSize.Width / 2, e.Y - dragSize.Height / 2), dragSize); - } - } + { + base.OnMouseDown(e); + var num = IndexFromPoint(e.Location); + if (num >= 0 && MouseButtons == MouseButtons.Left && (_bool1 || _bool2 || _bool3) && + (GetSelected(num) || ModifierKeys == Keys.Shift)) + { + method_7(num); + var dragSize = SystemInformation.DragSize; + _rectangle0 = new Rectangle(new Point(e.X - dragSize.Width / 2, e.Y - dragSize.Height / 2), dragSize); + } + } protected override void OnMouseUp(MouseEventArgs e) - { - base.OnMouseUp(e); - _rectangle0 = Rectangle.Empty; - } + { + base.OnMouseUp(e); + _rectangle0 = Rectangle.Empty; + } protected override void OnMouseMove(MouseEventArgs e) - { - base.OnMouseMove(e); - if (_rectangle0 != Rectangle.Empty && !_rectangle0.Contains(e.X, e.Y)) - { - DoDragDrop(new DataObject("IDragDropSource", this), DragDropEffects.All); - _rectangle0 = Rectangle.Empty; - } - } + { + base.OnMouseMove(e); + if (_rectangle0 != Rectangle.Empty && !_rectangle0.Contains(e.X, e.Y)) + { + DoDragDrop(new DataObject("IDragDropSource", this), DragDropEffects.All); + _rectangle0 = Rectangle.Empty; + } + } protected override void OnSelectedIndexChanged(EventArgs e) - { - base.OnSelectedIndexChanged(e); - method_8(); - } - - private void method_7(int int1) - { - if (SelectionMode == SelectionMode.MultiExtended && ModifierKeys == Keys.None && Array.IndexOf(_int0, int1) >= 0) - { - _bool0 = true; - var array = _int0; - for (var i = 0; i < array.Length; i++) - { - var index = array[i]; - SetSelected(index, true); - } - SetSelected(int1, true); - _bool0 = false; - } - } - - private void method_8() - { - if (!_bool0 && SelectionMode == SelectionMode.MultiExtended) - { - var selectedIndices = SelectedIndices; - if (_int0.Length != selectedIndices.Count) - { - _int0 = new int[selectedIndices.Count]; - } - SelectedIndices.CopyTo(_int0, 0); - } - } - - private int method_9(int int1) - { - var num = PointToClient(new Point(0, int1)).Y; - if (num < 0) - { - num = 0; - } - else if (num > ClientRectangle.Bottom - 1) - { - num = ClientRectangle.Bottom - 1; - } - var num2 = IndexFromPoint(0, num); - if (num2 == -1) - { - return Items.Count; - } - var itemRectangle = GetItemRectangle(num2); - if (num > itemRectangle.Top + itemRectangle.Height / 2) - { - num2++; - } - var num3 = TopIndex + ClientRectangle.Height / ItemHeight; - if (num2 > num3) - { - return num3; - } - return num2; - } - - private DragDropEffects method_10(DragEventArgs dragEventArgs0) - { - var result = DragDropEffects.None; - var @interface = dragEventArgs0.Data.GetData("IDragDropSource") as INterface11; - if (@interface != null && _string0 == @interface.imethod_0()) - { - if (@interface == this) - { - if (_bool3 && !Sorted) - { - result = DragDropEffects.Move; - } - } - else if (_bool4) - { - if (@interface.imethod_1() && (!@interface.imethod_2() || dragEventArgs0.KeyState == 9)) - { - result = DragDropEffects.Copy; - } - else if (@interface.imethod_2()) - { - result = DragDropEffects.Move; - } - } - } - return result; - } - } -} + { + base.OnSelectedIndexChanged(e); + method_8(); + } + + private void method_7(int int1) + { + if (SelectionMode == SelectionMode.MultiExtended && ModifierKeys == Keys.None && + Array.IndexOf(_int0, int1) >= 0) + { + _bool0 = true; + var array = _int0; + for (var i = 0; i < array.Length; i++) + { + var index = array[i]; + SetSelected(index, true); + } + SetSelected(int1, true); + _bool0 = false; + } + } + + private void method_8() + { + if (!_bool0 && SelectionMode == SelectionMode.MultiExtended) + { + var selectedIndices = SelectedIndices; + if (_int0.Length != selectedIndices.Count) + { + _int0 = new int[selectedIndices.Count]; + } + SelectedIndices.CopyTo(_int0, 0); + } + } + + private int method_9(int int1) + { + var num = PointToClient(new Point(0, int1)).Y; + if (num < 0) + { + num = 0; + } + else if (num > ClientRectangle.Bottom - 1) + { + num = ClientRectangle.Bottom - 1; + } + var num2 = IndexFromPoint(0, num); + if (num2 == -1) + { + return Items.Count; + } + var itemRectangle = GetItemRectangle(num2); + if (num > itemRectangle.Top + itemRectangle.Height / 2) + { + num2++; + } + var num3 = TopIndex + ClientRectangle.Height / ItemHeight; + if (num2 > num3) + { + return num3; + } + return num2; + } + + private DragDropEffects method_10(DragEventArgs dragEventArgs0) + { + var result = DragDropEffects.None; + var @interface = dragEventArgs0.Data.GetData("IDragDropSource") as INterface11; + if (@interface != null && _string0 == @interface.imethod_0()) + { + if (@interface == this) + { + if (_bool3 && !Sorted) + { + result = DragDropEffects.Move; + } + } + else if (_bool4) + { + if (@interface.imethod_1() && (!@interface.imethod_2() || dragEventArgs0.KeyState == 9)) + { + result = DragDropEffects.Copy; + } + else if (@interface.imethod_2()) + { + result = DragDropEffects.Move; + } + } + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/About.cs b/GHNamespaceA/About.cs index a881f69..10f284e 100644 --- a/GHNamespaceA/About.cs +++ b/GHNamespaceA/About.cs @@ -6,210 +6,214 @@ namespace GHNamespaceA { - public class About : Form - { - private IContainer icontainer_0; - - private TableLayoutPanel _tableLayoutPanel; - - private PictureBox _logoPictureBox; - - private Label _labelProductName; - - private Label _labelVersion; - - private Label _labelCopyright; - - private Label _labelCompanyName; - - private TextBox _textBoxDescription; - - private Button _okButton; - - public About() - { - InitializeComponent(); - Text = string.Format("About {0}", method_0()); - _labelProductName.Text = method_2(); - _labelVersion.Text = string.Format("Version {0}", method_1()); - _labelCopyright.Text = method_3(); - _labelCompanyName.Text = method_4(); - } - - public string method_0() - { - var customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); - if (customAttributes.Length > 0) - { - var assemblyTitleAttribute = (AssemblyTitleAttribute)customAttributes[0]; - if (assemblyTitleAttribute.Title != "") - { - return assemblyTitleAttribute.Title; - } - } - return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); - } - - public string method_1() - { - return Assembly.GetExecutingAssembly().GetName().Version.ToString(); - } - - public string method_2() - { - var customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); - if (customAttributes.Length == 0) - { - return ""; - } - return ((AssemblyProductAttribute)customAttributes[0]).Product; - } - - public string method_3() - { - var customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); - if (customAttributes.Length == 0) - { - return ""; - } - return ((AssemblyCopyrightAttribute)customAttributes[0]).Copyright; - } - - public string method_4() - { - var customAttributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); - if (customAttributes.Length == 0) - { - return ""; - } - return ((AssemblyCompanyAttribute)customAttributes[0]).Company; - } + public class About : Form + { + private IContainer icontainer_0; + + private TableLayoutPanel _tableLayoutPanel; + + private PictureBox _logoPictureBox; + + private Label _labelProductName; + + private Label _labelVersion; + + private Label _labelCopyright; + + private Label _labelCompanyName; + + private TextBox _textBoxDescription; + + private Button _okButton; + + public About() + { + InitializeComponent(); + Text = string.Format("About {0}", method_0()); + _labelProductName.Text = method_2(); + _labelVersion.Text = string.Format("Version {0}", method_1()); + _labelCopyright.Text = method_3(); + _labelCompanyName.Text = method_4(); + } + + public string method_0() + { + var customAttributes = Assembly.GetExecutingAssembly() + .GetCustomAttributes(typeof(AssemblyTitleAttribute), false); + if (customAttributes.Length > 0) + { + var assemblyTitleAttribute = (AssemblyTitleAttribute) customAttributes[0]; + if (assemblyTitleAttribute.Title != "") + { + return assemblyTitleAttribute.Title; + } + } + return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); + } + + public string method_1() + { + return Assembly.GetExecutingAssembly().GetName().Version.ToString(); + } + + public string method_2() + { + var customAttributes = Assembly.GetExecutingAssembly() + .GetCustomAttributes(typeof(AssemblyProductAttribute), false); + if (customAttributes.Length == 0) + { + return ""; + } + return ((AssemblyProductAttribute) customAttributes[0]).Product; + } + + public string method_3() + { + var customAttributes = Assembly.GetExecutingAssembly() + .GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + if (customAttributes.Length == 0) + { + return ""; + } + return ((AssemblyCopyrightAttribute) customAttributes[0]).Copyright; + } + + public string method_4() + { + var customAttributes = Assembly.GetExecutingAssembly() + .GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); + if (customAttributes.Length == 0) + { + return ""; + } + return ((AssemblyCompanyAttribute) customAttributes[0]).Company; + } protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - var componentResourceManager = new ComponentResourceManager(typeof(About)); - _tableLayoutPanel = new TableLayoutPanel(); - _logoPictureBox = new PictureBox(); - _labelProductName = new Label(); - _labelVersion = new Label(); - _labelCopyright = new Label(); - _labelCompanyName = new Label(); - _textBoxDescription = new TextBox(); - _okButton = new Button(); - _tableLayoutPanel.SuspendLayout(); - ((ISupportInitialize)_logoPictureBox).BeginInit(); - SuspendLayout(); - _tableLayoutPanel.ColumnCount = 2; - _tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f)); - _tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67f)); - _tableLayoutPanel.Controls.Add(_logoPictureBox, 0, 0); - _tableLayoutPanel.Controls.Add(_labelProductName, 1, 0); - _tableLayoutPanel.Controls.Add(_labelVersion, 1, 1); - _tableLayoutPanel.Controls.Add(_labelCopyright, 1, 2); - _tableLayoutPanel.Controls.Add(_labelCompanyName, 1, 3); - _tableLayoutPanel.Controls.Add(_textBoxDescription, 1, 4); - _tableLayoutPanel.Controls.Add(_okButton, 1, 5); - _tableLayoutPanel.Dock = DockStyle.Fill; - _tableLayoutPanel.Location = new Point(9, 9); - _tableLayoutPanel.Name = "_tableLayoutPanel"; - _tableLayoutPanel.RowCount = 6; - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f)); - _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); - _tableLayoutPanel.Size = new Size(487, 265); - _tableLayoutPanel.TabIndex = 0; - _logoPictureBox.Dock = DockStyle.Fill; - _logoPictureBox.Image = (Image)componentResourceManager.GetObject("logoPictureBox.Image"); - _logoPictureBox.Location = new Point(3, 3); - _logoPictureBox.Name = "_logoPictureBox"; - _tableLayoutPanel.SetRowSpan(_logoPictureBox, 6); - _logoPictureBox.Size = new Size(131, 259); - _logoPictureBox.SizeMode = PictureBoxSizeMode.StretchImage; - _logoPictureBox.TabIndex = 12; - _logoPictureBox.TabStop = false; - _labelProductName.Dock = DockStyle.Fill; - _labelProductName.Location = new Point(143, 0); - _labelProductName.Margin = new Padding(6, 0, 3, 0); - _labelProductName.MaximumSize = new Size(0, 17); - _labelProductName.Name = "_labelProductName"; - _labelProductName.Size = new Size(271, 17); - _labelProductName.TabIndex = 19; - _labelProductName.Text = "Product Name"; - _labelProductName.TextAlign = ContentAlignment.MiddleLeft; - _labelVersion.Dock = DockStyle.Fill; - _labelVersion.Location = new Point(143, 26); - _labelVersion.Margin = new Padding(6, 0, 3, 0); - _labelVersion.MaximumSize = new Size(0, 17); - _labelVersion.Name = "_labelVersion"; - _labelVersion.Size = new Size(271, 17); - _labelVersion.TabIndex = 0; - _labelVersion.Text = "Version"; - _labelVersion.TextAlign = ContentAlignment.MiddleLeft; - _labelCopyright.Dock = DockStyle.Fill; - _labelCopyright.Location = new Point(143, 52); - _labelCopyright.Margin = new Padding(6, 0, 3, 0); - _labelCopyright.MaximumSize = new Size(0, 17); - _labelCopyright.Name = "_labelCopyright"; - _labelCopyright.Size = new Size(271, 17); - _labelCopyright.TabIndex = 21; - _labelCopyright.Text = "Copyright"; - _labelCopyright.TextAlign = ContentAlignment.MiddleLeft; - _labelCompanyName.Dock = DockStyle.Fill; - _labelCompanyName.Location = new Point(143, 78); - _labelCompanyName.Margin = new Padding(6, 0, 3, 0); - _labelCompanyName.MaximumSize = new Size(0, 17); - _labelCompanyName.Name = "_labelCompanyName"; - _labelCompanyName.Size = new Size(271, 17); - _labelCompanyName.TabIndex = 22; - _labelCompanyName.Text = "Company Name"; - _labelCompanyName.TextAlign = ContentAlignment.MiddleLeft; - _textBoxDescription.Dock = DockStyle.Fill; - _textBoxDescription.Location = new Point(143, 107); - _textBoxDescription.Margin = new Padding(6, 3, 3, 3); - _textBoxDescription.Multiline = true; - _textBoxDescription.Name = "_textBoxDescription"; - _textBoxDescription.ReadOnly = true; - _textBoxDescription.ScrollBars = ScrollBars.Both; - _textBoxDescription.Size = new Size(271, 126); - _textBoxDescription.TabIndex = 23; - _textBoxDescription.Text = componentResourceManager.GetString("textBoxDescription.Text"); - _okButton.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); - _okButton.DialogResult = DialogResult.Cancel; - _okButton.Location = new Point(339, 239); - _okButton.Name = "_okButton"; - _okButton.Size = new Size(75, 23); - _okButton.TabIndex = 24; - _okButton.Text = "&OK"; - AcceptButton = _okButton; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(435, 283); - Controls.Add(_tableLayoutPanel); - FormBorderStyle = FormBorderStyle.FixedDialog; - MaximizeBox = false; - MinimizeBox = false; - Name = "About"; - Padding = new Padding(9); - ShowIcon = false; - ShowInTaskbar = false; - StartPosition = FormStartPosition.CenterParent; - Text = "About"; - _tableLayoutPanel.ResumeLayout(false); - _tableLayoutPanel.PerformLayout(); - ((ISupportInitialize)_logoPictureBox).EndInit(); - ResumeLayout(false); - } - } -} + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + var componentResourceManager = new ComponentResourceManager(typeof(About)); + _tableLayoutPanel = new TableLayoutPanel(); + _logoPictureBox = new PictureBox(); + _labelProductName = new Label(); + _labelVersion = new Label(); + _labelCopyright = new Label(); + _labelCompanyName = new Label(); + _textBoxDescription = new TextBox(); + _okButton = new Button(); + _tableLayoutPanel.SuspendLayout(); + ((ISupportInitialize) _logoPictureBox).BeginInit(); + SuspendLayout(); + _tableLayoutPanel.ColumnCount = 2; + _tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f)); + _tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67f)); + _tableLayoutPanel.Controls.Add(_logoPictureBox, 0, 0); + _tableLayoutPanel.Controls.Add(_labelProductName, 1, 0); + _tableLayoutPanel.Controls.Add(_labelVersion, 1, 1); + _tableLayoutPanel.Controls.Add(_labelCopyright, 1, 2); + _tableLayoutPanel.Controls.Add(_labelCompanyName, 1, 3); + _tableLayoutPanel.Controls.Add(_textBoxDescription, 1, 4); + _tableLayoutPanel.Controls.Add(_okButton, 1, 5); + _tableLayoutPanel.Dock = DockStyle.Fill; + _tableLayoutPanel.Location = new Point(9, 9); + _tableLayoutPanel.Name = "_tableLayoutPanel"; + _tableLayoutPanel.RowCount = 6; + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50f)); + _tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10f)); + _tableLayoutPanel.Size = new Size(487, 265); + _tableLayoutPanel.TabIndex = 0; + _logoPictureBox.Dock = DockStyle.Fill; + _logoPictureBox.Image = (Image) componentResourceManager.GetObject("logoPictureBox.Image"); + _logoPictureBox.Location = new Point(3, 3); + _logoPictureBox.Name = "_logoPictureBox"; + _tableLayoutPanel.SetRowSpan(_logoPictureBox, 6); + _logoPictureBox.Size = new Size(131, 259); + _logoPictureBox.SizeMode = PictureBoxSizeMode.StretchImage; + _logoPictureBox.TabIndex = 12; + _logoPictureBox.TabStop = false; + _labelProductName.Dock = DockStyle.Fill; + _labelProductName.Location = new Point(143, 0); + _labelProductName.Margin = new Padding(6, 0, 3, 0); + _labelProductName.MaximumSize = new Size(0, 17); + _labelProductName.Name = "_labelProductName"; + _labelProductName.Size = new Size(271, 17); + _labelProductName.TabIndex = 19; + _labelProductName.Text = "Product Name"; + _labelProductName.TextAlign = ContentAlignment.MiddleLeft; + _labelVersion.Dock = DockStyle.Fill; + _labelVersion.Location = new Point(143, 26); + _labelVersion.Margin = new Padding(6, 0, 3, 0); + _labelVersion.MaximumSize = new Size(0, 17); + _labelVersion.Name = "_labelVersion"; + _labelVersion.Size = new Size(271, 17); + _labelVersion.TabIndex = 0; + _labelVersion.Text = "Version"; + _labelVersion.TextAlign = ContentAlignment.MiddleLeft; + _labelCopyright.Dock = DockStyle.Fill; + _labelCopyright.Location = new Point(143, 52); + _labelCopyright.Margin = new Padding(6, 0, 3, 0); + _labelCopyright.MaximumSize = new Size(0, 17); + _labelCopyright.Name = "_labelCopyright"; + _labelCopyright.Size = new Size(271, 17); + _labelCopyright.TabIndex = 21; + _labelCopyright.Text = "Copyright"; + _labelCopyright.TextAlign = ContentAlignment.MiddleLeft; + _labelCompanyName.Dock = DockStyle.Fill; + _labelCompanyName.Location = new Point(143, 78); + _labelCompanyName.Margin = new Padding(6, 0, 3, 0); + _labelCompanyName.MaximumSize = new Size(0, 17); + _labelCompanyName.Name = "_labelCompanyName"; + _labelCompanyName.Size = new Size(271, 17); + _labelCompanyName.TabIndex = 22; + _labelCompanyName.Text = "Company Name"; + _labelCompanyName.TextAlign = ContentAlignment.MiddleLeft; + _textBoxDescription.Dock = DockStyle.Fill; + _textBoxDescription.Location = new Point(143, 107); + _textBoxDescription.Margin = new Padding(6, 3, 3, 3); + _textBoxDescription.Multiline = true; + _textBoxDescription.Name = "_textBoxDescription"; + _textBoxDescription.ReadOnly = true; + _textBoxDescription.ScrollBars = ScrollBars.Both; + _textBoxDescription.Size = new Size(271, 126); + _textBoxDescription.TabIndex = 23; + _textBoxDescription.Text = componentResourceManager.GetString("textBoxDescription.Text"); + _okButton.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); + _okButton.DialogResult = DialogResult.Cancel; + _okButton.Location = new Point(339, 239); + _okButton.Name = "_okButton"; + _okButton.Size = new Size(75, 23); + _okButton.TabIndex = 24; + _okButton.Text = "&OK"; + AcceptButton = _okButton; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(435, 283); + Controls.Add(_tableLayoutPanel); + FormBorderStyle = FormBorderStyle.FixedDialog; + MaximizeBox = false; + MinimizeBox = false; + Name = "About"; + Padding = new Padding(9); + ShowIcon = false; + ShowInTaskbar = false; + StartPosition = FormStartPosition.CenterParent; + Text = "About"; + _tableLayoutPanel.ResumeLayout(false); + _tableLayoutPanel.PerformLayout(); + ((ISupportInitialize) _logoPictureBox).EndInit(); + ResumeLayout(false); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/CompilerClass376.cs b/GHNamespaceA/CompilerClass376.cs index 088634d..d5eb5cd 100644 --- a/GHNamespaceA/CompilerClass376.cs +++ b/GHNamespaceA/CompilerClass376.cs @@ -5,36 +5,36 @@ namespace GHNamespaceA { //Can probably be deleted - [CompilerGenerated] - public class CompilerClass376 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] - public struct Struct96 - { - } + [CompilerGenerated] + public class CompilerClass376 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] + public struct Struct96 + { + } - public static Struct96 Struct960; + public static Struct96 Struct960; - public static Struct96 Struct961; + public static Struct96 Struct961; - public static Struct96 Struct962; + public static Struct96 Struct962; - public static Struct96 Struct963; + public static Struct96 Struct963; - public static Struct96 Struct964; + public static Struct96 Struct964; - public static Struct96 Struct965; + public static Struct96 Struct965; - public static Struct96 Struct966; + public static Struct96 Struct966; - public static Struct96 Struct967; + public static Struct96 Struct967; - public static Struct96 Struct968; + public static Struct96 Struct968; - public static Struct96 Struct969; + public static Struct96 Struct969; - public static Struct96 Struct9610; + public static Struct96 Struct9610; - public static Struct96 Struct9611; - } -} + public static Struct96 Struct9611; + } +} \ No newline at end of file diff --git a/GHNamespaceA/CustomMenuCreator.cs b/GHNamespaceA/CustomMenuCreator.cs index c1ada96..c8e56f7 100644 --- a/GHNamespaceA/CustomMenuCreator.cs +++ b/GHNamespaceA/CustomMenuCreator.cs @@ -7,81 +7,94 @@ namespace GHNamespaceA { - public class CustomMenuCreator : QbEditor - { - private readonly ZzPakNode2 _class3180; + public class CustomMenuCreator : QbEditor + { + private readonly ZzPakNode2 _class3180; - private bool _bool0; + private bool _bool0; - private readonly bool _bool1; + private readonly bool _bool1; - public CustomMenuCreator(ZzPakNode2 class3181, bool bool2) - { - _class3180 = class3181; - _bool1 = bool2; - } + public CustomMenuCreator(ZzPakNode2 class3181, bool bool2) + { + _class3180 = class3181; + _bool1 = bool2; + } - public override void vmethod_0() - { - Console.WriteLine("-=- " + ToString() + " -=-"); - if (!_bool0) - { - _bool0 = _class3180.method_6("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb"); - } - if (!_bool0) - { - Console.WriteLine("Creating Custom Menu."); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_menu")); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_gem_scale.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_gem_scale")); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_credits.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_credits")); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_cutoff_viewer")); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_gfx_options.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_gfx_options")); - _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb", ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_setlist_switcher")); - ZzGenericNode1 @class = _class3180.ZzGetNode1(_bool1 ? "scripts\\guitar\\menu\\menu_main.qb" : "scripts\\guitar\\guitar_menu.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("create_main_menu"))); - @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_progression.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("get_progression_globals"))); - @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_gems.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("load_venue"))); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_gem_scroller"))); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("kill_gem_scroller"))); - @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("guitarevent_songwon_spawned"))); - @class = _class3180.ZzGetNode1("scripts\\game\\net\\guitar_net.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("net_write_single_player_stats"))); - @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_globaltags"))); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_songtags"))); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("push_bandtags"))); - @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_credits.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("scrolling_list_add_item"))); - if (!_bool1) - { - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_team_photos"))); - } - if (_bool1) - { - @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb"); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_paper"))); - ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_poster"))); - } - @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\main_menu_flow.qb"); - var class2 = new StructureHeaderNode(); - class2.method_3(new TagStructureNode("action", "select_custom_menu")); - class2.method_3(new TagStructureNode("flow_state", "custom_menu_fs")); - class2.method_3(new TagStructureNode(0, "transition_right")); - @class.method_5(new StructurePointerRootNode("main_menu_fs")).method_5(new ArrayPointerNode("actions")).method_8().method_3(class2); - } - } + public override void vmethod_0() + { + Console.WriteLine("-=- " + ToString() + " -=-"); + if (!_bool0) + { + _bool0 = _class3180.method_6("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb"); + } + if (!_bool0) + { + Console.WriteLine("Creating Custom Menu."); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_menu")); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_gem_scale.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_gem_scale")); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_credits.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_credits")); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_cutoff_viewer")); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_gfx_options.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_gfx_options")); + _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb", + ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_setlist_switcher")); + ZzGenericNode1 @class = _class3180.ZzGetNode1(_bool1 + ? "scripts\\guitar\\menu\\menu_main.qb" + : "scripts\\guitar\\guitar_menu.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("create_main_menu"))); + @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_progression.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("get_progression_globals"))); + @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_gems.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("load_venue"))); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_gem_scroller"))); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("kill_gem_scroller"))); + @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("guitarevent_songwon_spawned"))); + @class = _class3180.ZzGetNode1("scripts\\game\\net\\guitar_net.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("net_write_single_player_stats"))); + @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_globaltags"))); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_songtags"))); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("push_bandtags"))); + @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_credits.qb"); + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("scrolling_list_add_item"))); + if (!_bool1) + { + ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_team_photos"))); + } + if (_bool1) + { + @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb"); + ZzQbScriptZipperClass.smethod_1( + @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_paper"))); + ZzQbScriptZipperClass.smethod_1( + @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_poster"))); + } + @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\main_menu_flow.qb"); + var class2 = new StructureHeaderNode(); + class2.method_3(new TagStructureNode("action", "select_custom_menu")); + class2.method_3(new TagStructureNode("flow_state", "custom_menu_fs")); + class2.method_3(new TagStructureNode(0, "transition_right")); + @class.method_5(new StructurePointerRootNode("main_menu_fs")) + .method_5(new ArrayPointerNode("actions")) + .method_8() + .method_3(class2); + } + } - public override string ToString() - { - return "Create Custom Menu"; - } + public override string ToString() + { + return "Create Custom Menu"; + } - public override bool Equals(QbEditor other) - { - return other is CustomMenuCreator; - } - } -} + public override bool Equals(QbEditor other) + { + return other is CustomMenuCreator; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/GameSettingsChecker.cs b/GHNamespaceA/GameSettingsChecker.cs index bcf4796..1c582d7 100644 --- a/GHNamespaceA/GameSettingsChecker.cs +++ b/GHNamespaceA/GameSettingsChecker.cs @@ -9,89 +9,93 @@ namespace GHNamespaceA { - public class GameSettingsChecker - { - public readonly DateTime Date; + public class GameSettingsChecker + { + public readonly DateTime Date; - public readonly Version Version; + public readonly Version Version; - public readonly int[] UnkBuffer; + public readonly int[] UnkBuffer; - public readonly bool GameSettingsUntampered; + public readonly bool GameSettingsUntampered; - public readonly bool AssemblyVersionMatches; + public readonly bool AssemblyVersionMatches; - public readonly bool LoadedSuccessfully; + public readonly bool LoadedSuccessfully; - private static readonly string HashPath = "script\\ghtcp\\ghtcp.hash"; + private static readonly string HashPath = "script\\ghtcp\\ghtcp.hash"; - public bool GameSettingsAreValid() - { - return LoadedSuccessfully && AssemblyVersionMatches && GameSettingsUntampered; - } + public bool GameSettingsAreValid() + { + return LoadedSuccessfully && AssemblyVersionMatches && GameSettingsUntampered; + } - public GameSettingsChecker(bool alreadyLoaded) - { - LoadedSuccessfully = alreadyLoaded; - AssemblyVersionMatches = alreadyLoaded; - GameSettingsUntampered = alreadyLoaded; - } + public GameSettingsChecker(bool alreadyLoaded) + { + LoadedSuccessfully = alreadyLoaded; + AssemblyVersionMatches = alreadyLoaded; + GameSettingsUntampered = alreadyLoaded; + } - public GameSettingsChecker(ZzPakNode2 class3180) - { - if (!class3180.method_6(HashPath)) - { - return; - } - var @class = new ZzGenericNode1(HashPath, KeyGenerator.smethod_8(class3180.method_12(HashPath), "MaC39SubInfo1245")); - Version = new Version(@class.method_5(new UnicodeRootNode("version")).method_7()); - var array = @class.method_5(new ArrayPointerRootNode("date")).method_7().method_7(); - Date = new DateTime((int)array[0], (int)array[1], (int)array[2]); - UnkBuffer = @class.method_5(new ArrayPointerRootNode("hash")).method_7().method_7(); - class3180.method_7(HashPath); - using (var stream = class3180.method_17()) - { - stream.Position = 0L; + public GameSettingsChecker(ZzPakNode2 class3180) + { + if (!class3180.method_6(HashPath)) + { + return; + } + var @class = new ZzGenericNode1(HashPath, + KeyGenerator.smethod_8(class3180.method_12(HashPath), "MaC39SubInfo1245")); + Version = new Version(@class.method_5(new UnicodeRootNode("version")).method_7()); + var array = @class.method_5(new ArrayPointerRootNode("date")).method_7().method_7(); + Date = new DateTime((int) array[0], (int) array[1], (int) array[2]); + UnkBuffer = @class.method_5(new ArrayPointerRootNode("hash")).method_7().method_7(); + class3180.method_7(HashPath); + using (var stream = class3180.method_17()) + { + stream.Position = 0L; // Ignore checks for external tools modifying game settings because we're not children who will dictate how people can play their game // Possibly turn this on later softly for warning the player of possible data integrity issues // this._GameSettingsUntampered = Class244.smethod_53(Class244.smethod_21(Class244.smethod_43(stream.stream_0)), this.int_0); GameSettingsUntampered = true; - } - GC.Collect(); - AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(Version) == 0); - LoadedSuccessfully = true; - if (!AssemblyVersionMatches) - { - MessageBox.Show("The game settings were created under a different version."); - } - if (!GameSettingsUntampered) - { - MessageBox.Show("The game settings were modified by an external tool!"); - } - } + } + GC.Collect(); + AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(Version) == 0); + LoadedSuccessfully = true; + if (!AssemblyVersionMatches) + { + MessageBox.Show("The game settings were created under a different version."); + } + if (!GameSettingsUntampered) + { + MessageBox.Show("The game settings were modified by an external tool!"); + } + } - public static void SignHash(ZzPakNode2 pakNode) - { - if (pakNode.method_6(HashPath)) - { - pakNode.method_7(HashPath); - } - var @class = new ZzGenericNode1(); - @class.method_3(new UnicodeRootNode("version", HashPath, Assembly.GetExecutingAssembly().GetName().Version.ToString())); - using (var stream = pakNode.method_17()) - { - stream.Position = 0L; - @class.method_3(new ArrayPointerRootNode("hash", HashPath, new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream.Stream))))); - } - GC.Collect(); - var now = DateTime.Now; - @class.method_3(new ArrayPointerRootNode("date", HashPath, new FloatArrayNode(new[] - { - now.Year, - now.Month, - (float)now.Day - }))); - pakNode.method_1(HashPath, new ZzCocoaNode12(HashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245"))); - } - } -} + public static void SignHash(ZzPakNode2 pakNode) + { + if (pakNode.method_6(HashPath)) + { + pakNode.method_7(HashPath); + } + var @class = new ZzGenericNode1(); + @class.method_3(new UnicodeRootNode("version", HashPath, + Assembly.GetExecutingAssembly().GetName().Version.ToString())); + using (var stream = pakNode.method_17()) + { + stream.Position = 0L; + @class.method_3(new ArrayPointerRootNode("hash", HashPath, + new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream.Stream))))); + } + GC.Collect(); + var now = DateTime.Now; + @class.method_3(new ArrayPointerRootNode("date", HashPath, new FloatArrayNode(new[] + { + now.Year, + now.Month, + (float) now.Day + }))); + pakNode.method_1(HashPath, + new ZzCocoaNode12(HashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245"))); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/Main.cs b/GHNamespaceA/Main.cs index c7b08a8..02f4994 100644 --- a/GHNamespaceA/Main.cs +++ b/GHNamespaceA/Main.cs @@ -6,23 +6,23 @@ namespace GHNamespaceA { - public static class Start - { - [STAThread] - private static void Main(string[] args) - { - bool flag; - var obj = new Mutex(true, "GHTCP", out flag); - if (!flag) - { - MessageBox.Show("GH3 Control Panel+ is already running."); - return; - } - Thread.CurrentThread.CurrentUICulture = (Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US")); - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); + public static class Start + { + [STAThread] + private static void Main(string[] args) + { + bool flag; + var obj = new Mutex(true, "GHTCP", out flag); + if (!flag) + { + MessageBox.Show("GH3 Control Panel+ is already running."); + return; + } + Thread.CurrentThread.CurrentUICulture = (Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US")); + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainMenu()); - GC.KeepAlive(obj); - } - } -} + GC.KeepAlive(obj); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/QbDatabaseInitialModifier.cs b/GHNamespaceA/QbDatabaseInitialModifier.cs index 525f3f4..41ae031 100644 --- a/GHNamespaceA/QbDatabaseInitialModifier.cs +++ b/GHNamespaceA/QbDatabaseInitialModifier.cs @@ -9,113 +9,125 @@ namespace GHNamespaceA { //Changes default high score names + a few other things like mem card limit - public class QbDatabaseInitialModifier : QbEditor - { - private readonly ZzPakNode2 _pakNode; + public class QbDatabaseInitialModifier : QbEditor + { + private readonly ZzPakNode2 _pakNode; - private bool _qbDatabaseAlreadyEdited; + private bool _qbDatabaseAlreadyEdited; - private readonly bool _bool1; + private readonly bool _bool1; - public QbDatabaseInitialModifier(ZzPakNode2 class3181, bool bool2) - { - _pakNode = class3181; - _bool1 = bool2; - } + public QbDatabaseInitialModifier(ZzPakNode2 class3181, bool bool2) + { + _pakNode = class3181; + _bool1 = bool2; + } - public override void vmethod_0() - { - Console.WriteLine("-=- " + ToString() + " -=-"); - ZzGenericNode1 @class = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb"); - string[] array = { - "Invo", - "tma", - "TomPudding", - "MaXKilleR", - "GameZelda" - }; - string[] array2 = { - "D. Stowater", - "Ginkel", - "Bunny", - "BMarvs", - "CVance" - }; - string[] array3 = { - "C. Ward", - "Riggs", - "davidicus", - "B. Wiuff", - "Pam D." - }; - KeyGenerator.smethod_56(array); - Console.WriteLine("Randomized Names:"); - var num = 0; - while (num < 5 && !_qbDatabaseAlreadyEdited) - { - Console.WriteLine(array[num]); - var class2 = @class.method_5(new UnicodeStructureNode("name" + (num + 1))); - if (class2.method_8().Equals(_bool1 ? array3[num] : array2[num])) - { - class2.method_9(array[num]); - } - else - { - _qbDatabaseAlreadyEdited = true; - Console.WriteLine("QB Database is already edited."); - } - num++; - } - if (!_qbDatabaseAlreadyEdited) - { - ZzGenericNode1 class3 = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_memcard.qb"); - Console.WriteLine("Changing Save File Size to 5MB."); - class3.method_5(new IntegerStructureNode("fixed_size")).method_9(5242880); - Console.WriteLine("Changing Save Folder Name."); - class3.method_5(new UnicodeRootNode("memcard_content_name")).method_8(string.Format("Progress{0}", (new[] - { - "A", - "B", - "C", - "D", - "E", - "F" - })[new List(new[] - { - "qb", - "qb_f", - "qb_i", - "qb_s", - "qb_g", - "qb_k" - }).IndexOf(KeyGenerator.GetFileNameNoExt(_pakNode.String0))])); - } - if (!_qbDatabaseAlreadyEdited) - { - ZzGenericNode1 class4 = _pakNode.ZzGetNode1("scripts\\guitar\\menu\\menu_setlist.qb"); - Console.WriteLine("Changing Setlist Scroller."); - ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("setlist_scroll"))); - Console.WriteLine("Changing Tier Name Display."); - ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("create_sl_assets"))); - } - if (!_qbDatabaseAlreadyEdited) - { - ZzGenericNode1 node = _pakNode.ZzGetNode1("scripts\\guitar\\guitar.qb"); - node.method_5(new StructurePointerNode("load_z_soundcheck")).method_5(new UnicodeStructureNode("title")).method_9("Sound Check"); - node.method_5(new StructurePointerNode("load_z_credits")).method_5(new UnicodeStructureNode("title")).method_9("Guitar Hero Tower"); - node.method_5(new StructurePointerNode("viewer")).method_5(new UnicodeStructureNode("title")).method_9("Black Background"); - node.method_5(new StructurePointerNode("load_z_viewer")).method_5(new UnicodeStructureNode("title")).method_9("Black Background"); - } - } + public override void vmethod_0() + { + Console.WriteLine("-=- " + ToString() + " -=-"); + ZzGenericNode1 @class = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb"); + string[] array = + { + "Invo", + "tma", + "TomPudding", + "MaXKilleR", + "GameZelda" + }; + string[] array2 = + { + "D. Stowater", + "Ginkel", + "Bunny", + "BMarvs", + "CVance" + }; + string[] array3 = + { + "C. Ward", + "Riggs", + "davidicus", + "B. Wiuff", + "Pam D." + }; + KeyGenerator.smethod_56(array); + Console.WriteLine("Randomized Names:"); + var num = 0; + while (num < 5 && !_qbDatabaseAlreadyEdited) + { + Console.WriteLine(array[num]); + var class2 = @class.method_5(new UnicodeStructureNode("name" + (num + 1))); + if (class2.method_8().Equals(_bool1 ? array3[num] : array2[num])) + { + class2.method_9(array[num]); + } + else + { + _qbDatabaseAlreadyEdited = true; + Console.WriteLine("QB Database is already edited."); + } + num++; + } + if (!_qbDatabaseAlreadyEdited) + { + ZzGenericNode1 class3 = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_memcard.qb"); + Console.WriteLine("Changing Save File Size to 5MB."); + class3.method_5(new IntegerStructureNode("fixed_size")).method_9(5242880); + Console.WriteLine("Changing Save Folder Name."); + class3.method_5(new UnicodeRootNode("memcard_content_name")) + .method_8(string.Format("Progress{0}", (new[] + { + "A", + "B", + "C", + "D", + "E", + "F" + })[new List(new[] + { + "qb", + "qb_f", + "qb_i", + "qb_s", + "qb_g", + "qb_k" + }).IndexOf(KeyGenerator.GetFileNameNoExt(_pakNode.String0))])); + } + if (!_qbDatabaseAlreadyEdited) + { + ZzGenericNode1 class4 = _pakNode.ZzGetNode1("scripts\\guitar\\menu\\menu_setlist.qb"); + Console.WriteLine("Changing Setlist Scroller."); + ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("setlist_scroll"))); + Console.WriteLine("Changing Tier Name Display."); + ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("create_sl_assets"))); + } + if (!_qbDatabaseAlreadyEdited) + { + ZzGenericNode1 node = _pakNode.ZzGetNode1("scripts\\guitar\\guitar.qb"); + node.method_5(new StructurePointerNode("load_z_soundcheck")) + .method_5(new UnicodeStructureNode("title")) + .method_9("Sound Check"); + node.method_5(new StructurePointerNode("load_z_credits")) + .method_5(new UnicodeStructureNode("title")) + .method_9("Guitar Hero Tower"); + node.method_5(new StructurePointerNode("viewer")) + .method_5(new UnicodeStructureNode("title")) + .method_9("Black Background"); + node.method_5(new StructurePointerNode("load_z_viewer")) + .method_5(new UnicodeStructureNode("title")) + .method_9("Black Background"); + } + } - public override string ToString() - { - return "Modify Default Data"; - } + public override string ToString() + { + return "Modify Default Data"; + } - public override bool Equals(QbEditor other) - { - return other is QbDatabaseInitialModifier; - } - } -} + public override bool Equals(QbEditor other) + { + return other is QbDatabaseInitialModifier; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/SongData.cs b/GHNamespaceA/SongData.cs index e70cfec..ded782d 100644 --- a/GHNamespaceA/SongData.cs +++ b/GHNamespaceA/SongData.cs @@ -18,937 +18,937 @@ namespace GHNamespaceA { - public class SongData : Form - { - private IContainer icontainer_0; + public class SongData : Form + { + private IContainer icontainer_0; - private TextBox _guitarAudioTxt; + private TextBox _guitarAudioTxt; - private Label _label6; + private Label _label6; - private GroupBox _audioGroupBox; + private GroupBox _audioGroupBox; - private Label _label3; + private Label _label3; - private TextBox _bandAudioTxt; + private TextBox _bandAudioTxt; - private Label _label2; + private Label _label2; - private TextBox _rhythmAudioTxt; + private TextBox _rhythmAudioTxt; - private Button _guitarAudioBtn; + private Button _guitarAudioBtn; - private Label _label1; + private Label _label1; - private RadioButton _multiAudioBtn; + private RadioButton _multiAudioBtn; - private RadioButton _singleAudioBtn; + private RadioButton _singleAudioBtn; - private Button _bandAudioBtn; + private Button _bandAudioBtn; - private Button _rhythmAudioBtn; + private Button _rhythmAudioBtn; - private GroupBox _chartGroupBox; + private GroupBox _chartGroupBox; - private Label _label9; + private Label _label9; - private Label _label8; + private Label _label8; - private Label _label7; + private Label _label7; - private Label _label5; + private Label _label5; - private Button _chartFileBtn; + private Button _chartFileBtn; - private Label _label4; + private Label _label4; - private TextBox _chartFileTxt; + private TextBox _chartFileTxt; - private GroupBox _groupBox3; + private GroupBox _groupBox3; - private ComboBox _expertGuitarBox; + private ComboBox _expertGuitarBox; - private ComboBox _hardGuitarBox; + private ComboBox _hardGuitarBox; - private ComboBox _mediumGuitarBox; + private ComboBox _mediumGuitarBox; - private ComboBox _easyGuitarBox; + private ComboBox _easyGuitarBox; - private GroupBox _groupBox5; + private GroupBox _groupBox5; - private ComboBox _expertCoop2Box; + private ComboBox _expertCoop2Box; - private ComboBox _hardCoop2Box; + private ComboBox _hardCoop2Box; - private ComboBox _mediumCoop2Box; + private ComboBox _mediumCoop2Box; - private ComboBox _easyCoop2Box; + private ComboBox _easyCoop2Box; - private GroupBox _groupBox4; + private GroupBox _groupBox4; - private ComboBox _expertRhythmBox; + private ComboBox _expertRhythmBox; - private ComboBox _hardRhythmBox; + private ComboBox _hardRhythmBox; - private ComboBox _mediumRhythmBox; + private ComboBox _mediumRhythmBox; - private ComboBox _easyRhythmBox; + private ComboBox _easyRhythmBox; - private GroupBox _groupBox6; + private GroupBox _groupBox6; - private ComboBox _expertCoopBox; + private ComboBox _expertCoopBox; - private ComboBox _hardCoopBox; + private ComboBox _hardCoopBox; - private ComboBox _mediumCoopBox; + private ComboBox _mediumCoopBox; - private ComboBox _easyCoopBox; + private ComboBox _easyCoopBox; - private Button _autoConfigBtn; + private Button _autoConfigBtn; - private Button _resetBtn; + private Button _resetBtn; - private Label _label10; + private Label _label10; - private TextBox _songNameTxt; + private TextBox _songNameTxt; - private GroupBox _mainGroupBox; + private GroupBox _mainGroupBox; - private CheckBox _chartCheckBox; + private CheckBox _chartCheckBox; - private CheckBox _audioCheckBox; + private CheckBox _audioCheckBox; - private Button _cancelBtn; + private Button _cancelBtn; - private Button _applyBtn; + private Button _applyBtn; - private Label _label11; + private Label _label11; - private Control1 _previewSlider; + private Control1 _previewSlider; - private Label _label12; + private Label _label12; - private Button _bandCoopBtn; + private Button _bandCoopBtn; - private Button _rhythmCoopBtn; + private Button _rhythmCoopBtn; - private Button _guitarCoopBtn; + private Button _guitarCoopBtn; - private TextBox _bandCoopTxt; + private TextBox _bandCoopTxt; - private TextBox _rhythmCoopTxt; + private TextBox _rhythmCoopTxt; - private TextBox _guitarCoopTxt; + private TextBox _guitarCoopTxt; - private RadioButton _coopAudioBtn; + private RadioButton _coopAudioBtn; - private RadioButton _dualAudioBtn; + private RadioButton _dualAudioBtn; - private GroupBox _groupBox1; + private GroupBox _groupBox1; - private ComboBox _faceOffP1Box; + private ComboBox _faceOffP1Box; - private Label _label13; + private Label _label13; - private GroupBox _groupBox7; + private GroupBox _groupBox7; - private ComboBox _bossBattleP2Box; + private ComboBox _bossBattleP2Box; - private GroupBox _groupBox2; + private GroupBox _groupBox2; - private ComboBox _faceOffP2Box; + private ComboBox _faceOffP2Box; - private GroupBox _groupBox8; + private GroupBox _groupBox8; - private ComboBox _bossBattleP1Box; + private ComboBox _bossBattleP1Box; - private Button _stopBtn; + private Button _stopBtn; - private Button _pauseBtn; + private Button _pauseBtn; - private Button _playBtn; + private Button _playBtn; - private Control1 _volumeSlider; + private Control1 _volumeSlider; - public bool Bool0; + public bool Bool0; - public bool Bool1; + public bool Bool1; - private ZzQbSongObject _class3230; + private ZzQbSongObject _class3230; - private QbcParser _qbcParser; + private QbcParser _qbcParser; - private readonly Gh3Songlist _gh3Songlist0; + private readonly Gh3Songlist _gh3Songlist0; - private bool _bool2; + private bool _bool2; - private bool _bool3; + private bool _bool3; - private bool _bool4; + private bool _bool4; - private IPlayableAudio _audio; + private IPlayableAudio _audio; - private readonly Timer _timer0; + private readonly Timer _timer0; - private bool _bool5 = true; + private bool _bool5 = true; private readonly bool _forceRb3; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - _guitarAudioTxt = new TextBox(); - _label6 = new Label(); - _audioGroupBox = new GroupBox(); - _stopBtn = new Button(); - _pauseBtn = new Button(); - _playBtn = new Button(); - _dualAudioBtn = new RadioButton(); - _coopAudioBtn = new RadioButton(); - _bandCoopBtn = new Button(); - _rhythmCoopBtn = new Button(); - _guitarCoopBtn = new Button(); - _bandCoopTxt = new TextBox(); - _rhythmCoopTxt = new TextBox(); - _guitarCoopTxt = new TextBox(); - _label11 = new Label(); - _bandAudioBtn = new Button(); - _rhythmAudioBtn = new Button(); - _guitarAudioBtn = new Button(); - _label1 = new Label(); - _multiAudioBtn = new RadioButton(); - _singleAudioBtn = new RadioButton(); - _label3 = new Label(); - _bandAudioTxt = new TextBox(); - _label2 = new Label(); - _rhythmAudioTxt = new TextBox(); - _chartGroupBox = new GroupBox(); - _groupBox7 = new GroupBox(); - _bossBattleP2Box = new ComboBox(); - _groupBox2 = new GroupBox(); - _faceOffP2Box = new ComboBox(); - _groupBox8 = new GroupBox(); - _bossBattleP1Box = new ComboBox(); - _groupBox1 = new GroupBox(); - _faceOffP1Box = new ComboBox(); - _label13 = new Label(); - _resetBtn = new Button(); - _autoConfigBtn = new Button(); - _groupBox5 = new GroupBox(); - _expertCoop2Box = new ComboBox(); - _hardCoop2Box = new ComboBox(); - _mediumCoop2Box = new ComboBox(); - _easyCoop2Box = new ComboBox(); - _groupBox4 = new GroupBox(); - _expertRhythmBox = new ComboBox(); - _hardRhythmBox = new ComboBox(); - _mediumRhythmBox = new ComboBox(); - _easyRhythmBox = new ComboBox(); - _groupBox6 = new GroupBox(); - _expertCoopBox = new ComboBox(); - _hardCoopBox = new ComboBox(); - _mediumCoopBox = new ComboBox(); - _easyCoopBox = new ComboBox(); - _groupBox3 = new GroupBox(); - _expertGuitarBox = new ComboBox(); - _hardGuitarBox = new ComboBox(); - _mediumGuitarBox = new ComboBox(); - _easyGuitarBox = new ComboBox(); - _label9 = new Label(); - _label8 = new Label(); - _label7 = new Label(); - _label5 = new Label(); - _chartFileBtn = new Button(); - _label4 = new Label(); - _chartFileTxt = new TextBox(); - _label10 = new Label(); - _songNameTxt = new TextBox(); - _mainGroupBox = new GroupBox(); - _label12 = new Label(); - _cancelBtn = new Button(); - _applyBtn = new Button(); - _chartCheckBox = new CheckBox(); - _audioCheckBox = new CheckBox(); - _volumeSlider = new Control1(); - _previewSlider = new Control1(); - _audioGroupBox.SuspendLayout(); - _chartGroupBox.SuspendLayout(); - _groupBox7.SuspendLayout(); - _groupBox2.SuspendLayout(); - _groupBox8.SuspendLayout(); - _groupBox1.SuspendLayout(); - _groupBox5.SuspendLayout(); - _groupBox4.SuspendLayout(); - _groupBox6.SuspendLayout(); - _groupBox3.SuspendLayout(); - _mainGroupBox.SuspendLayout(); - SuspendLayout(); - _guitarAudioTxt.Location = new Point(113, 39); - _guitarAudioTxt.Name = "_guitarAudioTxt"; - _guitarAudioTxt.ReadOnly = true; - _guitarAudioTxt.Size = new Size(180, 20); - _guitarAudioTxt.TabIndex = 39; - _label6.AutoSize = true; - _label6.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label6.Location = new Point(6, 38); - _label6.Name = "_label6"; - _label6.Size = new Size(101, 19); - _label6.TabIndex = 39; - _label6.Text = "Guitar Track:"; - _label6.TextAlign = ContentAlignment.MiddleCenter; - _audioGroupBox.Controls.Add(_volumeSlider); - _audioGroupBox.Controls.Add(_stopBtn); - _audioGroupBox.Controls.Add(_pauseBtn); - _audioGroupBox.Controls.Add(_playBtn); - _audioGroupBox.Controls.Add(_dualAudioBtn); - _audioGroupBox.Controls.Add(_coopAudioBtn); - _audioGroupBox.Controls.Add(_bandCoopBtn); - _audioGroupBox.Controls.Add(_rhythmCoopBtn); - _audioGroupBox.Controls.Add(_guitarCoopBtn); - _audioGroupBox.Controls.Add(_bandCoopTxt); - _audioGroupBox.Controls.Add(_rhythmCoopTxt); - _audioGroupBox.Controls.Add(_guitarCoopTxt); - _audioGroupBox.Controls.Add(_previewSlider); - _audioGroupBox.Controls.Add(_label11); - _audioGroupBox.Controls.Add(_bandAudioBtn); - _audioGroupBox.Controls.Add(_rhythmAudioBtn); - _audioGroupBox.Controls.Add(_guitarAudioBtn); - _audioGroupBox.Controls.Add(_label1); - _audioGroupBox.Controls.Add(_multiAudioBtn); - _audioGroupBox.Controls.Add(_singleAudioBtn); - _audioGroupBox.Controls.Add(_label3); - _audioGroupBox.Controls.Add(_bandAudioTxt); - _audioGroupBox.Controls.Add(_label2); - _audioGroupBox.Controls.Add(_rhythmAudioTxt); - _audioGroupBox.Controls.Add(_label6); - _audioGroupBox.Controls.Add(_guitarAudioTxt); - _audioGroupBox.Location = new Point(12, 96); - _audioGroupBox.Name = "_audioGroupBox"; - _audioGroupBox.Size = new Size(566, 168); - _audioGroupBox.TabIndex = 36; - _audioGroupBox.TabStop = false; - _audioGroupBox.Text = "Audio Track"; - _stopBtn.FlatStyle = FlatStyle.Popup; - _stopBtn.Location = new Point(205, 137); - _stopBtn.Name = "_stopBtn"; - _stopBtn.Size = new Size(37, 20); - _stopBtn.TabIndex = 50; - _stopBtn.Text = "Stop"; - _stopBtn.UseVisualStyleBackColor = true; - _stopBtn.Click += Stop_Btn_Click; - _pauseBtn.FlatStyle = FlatStyle.Popup; - _pauseBtn.Location = new Point(160, 137); - _pauseBtn.Name = "_pauseBtn"; - _pauseBtn.Size = new Size(45, 20); - _pauseBtn.TabIndex = 49; - _pauseBtn.Text = "Pause"; - _pauseBtn.UseVisualStyleBackColor = true; - _pauseBtn.Click += Pause_Btn_Click; - _playBtn.FlatStyle = FlatStyle.Popup; - _playBtn.Location = new Point(123, 137); - _playBtn.Name = "_playBtn"; - _playBtn.Size = new Size(37, 20); - _playBtn.TabIndex = 48; - _playBtn.Text = "Play"; - _playBtn.UseVisualStyleBackColor = true; - _playBtn.Click += Play_Btn_Click; - _dualAudioBtn.AutoSize = true; - _dualAudioBtn.Location = new Point(194, 18); - _dualAudioBtn.Name = "_dualAudioBtn"; - _dualAudioBtn.Size = new Size(84, 17); - _dualAudioBtn.TabIndex = 5; - _dualAudioBtn.Text = "Guitar Track"; - _dualAudioBtn.UseVisualStyleBackColor = true; - _dualAudioBtn.CheckedChanged += DualAudioBtn_CheckedChanged; - _coopAudioBtn.AutoSize = true; - _coopAudioBtn.Location = new Point(382, 18); - _coopAudioBtn.Name = "_coopAudioBtn"; - _coopAudioBtn.Size = new Size(86, 17); - _coopAudioBtn.TabIndex = 7; - _coopAudioBtn.Text = "Coop Tracks"; - _coopAudioBtn.UseVisualStyleBackColor = true; - _coopAudioBtn.CheckedChanged += CoopAudioBtn_CheckedChanged; - _bandCoopBtn.Enabled = false; - _bandCoopBtn.Location = new Point(539, 91); - _bandCoopBtn.Name = "_bandCoopBtn"; - _bandCoopBtn.Size = new Size(24, 21); - _bandCoopBtn.TabIndex = 13; - _bandCoopBtn.Text = "..."; - _bandCoopBtn.UseVisualStyleBackColor = true; - _bandCoopBtn.Click += BandCoopBtn_Click; - _rhythmCoopBtn.Enabled = false; - _rhythmCoopBtn.Location = new Point(539, 65); - _rhythmCoopBtn.Name = "_rhythmCoopBtn"; - _rhythmCoopBtn.Size = new Size(24, 21); - _rhythmCoopBtn.TabIndex = 12; - _rhythmCoopBtn.Text = "..."; - _rhythmCoopBtn.UseVisualStyleBackColor = true; - _rhythmCoopBtn.Click += RhythmCoopBtn_Click; - _guitarCoopBtn.Enabled = false; - _guitarCoopBtn.Location = new Point(539, 38); - _guitarCoopBtn.Name = "_guitarCoopBtn"; - _guitarCoopBtn.Size = new Size(24, 21); - _guitarCoopBtn.TabIndex = 11; - _guitarCoopBtn.Text = "..."; - _guitarCoopBtn.UseVisualStyleBackColor = true; - _guitarCoopBtn.Click += GuitarCoopBtn_Click; - _bandCoopTxt.Enabled = false; - _bandCoopTxt.Location = new Point(329, 92); - _bandCoopTxt.Name = "_bandCoopTxt"; - _bandCoopTxt.ReadOnly = true; - _bandCoopTxt.Size = new Size(204, 20); - _bandCoopTxt.TabIndex = 46; - _rhythmCoopTxt.Enabled = false; - _rhythmCoopTxt.Location = new Point(329, 66); - _rhythmCoopTxt.Name = "_rhythmCoopTxt"; - _rhythmCoopTxt.ReadOnly = true; - _rhythmCoopTxt.Size = new Size(204, 20); - _rhythmCoopTxt.TabIndex = 45; - _guitarCoopTxt.Enabled = false; - _guitarCoopTxt.Location = new Point(329, 39); - _guitarCoopTxt.Name = "_guitarCoopTxt"; - _guitarCoopTxt.ReadOnly = true; - _guitarCoopTxt.Size = new Size(204, 20); - _guitarCoopTxt.TabIndex = 44; - _label11.AutoSize = true; - _label11.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label11.Location = new Point(6, 129); - _label11.Name = "_label11"; - _label11.Size = new Size(111, 19); - _label11.TabIndex = 47; - _label11.Text = "Preview Track:"; - _label11.TextAlign = ContentAlignment.MiddleCenter; - _bandAudioBtn.Enabled = false; - _bandAudioBtn.Location = new Point(299, 91); - _bandAudioBtn.Name = "_bandAudioBtn"; - _bandAudioBtn.Size = new Size(24, 21); - _bandAudioBtn.TabIndex = 10; - _bandAudioBtn.Text = "..."; - _bandAudioBtn.UseVisualStyleBackColor = true; - _bandAudioBtn.Click += BandAudioBtn_Click; - _rhythmAudioBtn.Enabled = false; - _rhythmAudioBtn.Location = new Point(299, 65); - _rhythmAudioBtn.Name = "_rhythmAudioBtn"; - _rhythmAudioBtn.Size = new Size(24, 21); - _rhythmAudioBtn.TabIndex = 9; - _rhythmAudioBtn.Text = "..."; - _rhythmAudioBtn.UseVisualStyleBackColor = true; - _rhythmAudioBtn.Click += RhythmAudioBtn_Click; - _guitarAudioBtn.Location = new Point(299, 38); - _guitarAudioBtn.Name = "_guitarAudioBtn"; - _guitarAudioBtn.Size = new Size(24, 21); - _guitarAudioBtn.TabIndex = 8; - _guitarAudioBtn.Text = "..."; - _guitarAudioBtn.UseVisualStyleBackColor = true; - _guitarAudioBtn.Click += GuitarAudioBtn_Click; - _label1.AutoSize = true; - _label1.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label1.Location = new Point(6, 16); - _label1.Name = "_label1"; - _label1.Size = new Size(91, 19); - _label1.TabIndex = 38; - _label1.Text = "Audio Type:"; - _label1.TextAlign = ContentAlignment.MiddleCenter; - _multiAudioBtn.AutoSize = true; - _multiAudioBtn.Location = new Point(284, 18); - _multiAudioBtn.Name = "_multiAudioBtn"; - _multiAudioBtn.Size = new Size(92, 17); - _multiAudioBtn.TabIndex = 6; - _multiAudioBtn.Text = "Rhythm Track"; - _multiAudioBtn.UseVisualStyleBackColor = true; - _multiAudioBtn.CheckedChanged += MultiAudioBtn_CheckedChanged; - _singleAudioBtn.AutoSize = true; - _singleAudioBtn.Checked = true; - _singleAudioBtn.Location = new Point(103, 18); - _singleAudioBtn.Name = "_singleAudioBtn"; - _singleAudioBtn.Size = new Size(85, 17); - _singleAudioBtn.TabIndex = 4; - _singleAudioBtn.TabStop = true; - _singleAudioBtn.Text = "Single Track"; - _singleAudioBtn.UseVisualStyleBackColor = true; - _singleAudioBtn.CheckedChanged += SingleAudioBtn_CheckedChanged; - _label3.AutoSize = true; - _label3.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label3.Location = new Point(6, 91); - _label3.Name = "_label3"; - _label3.Size = new Size(93, 19); - _label3.TabIndex = 42; - _label3.Text = "Band Track:"; - _label3.TextAlign = ContentAlignment.MiddleCenter; - _bandAudioTxt.Enabled = false; - _bandAudioTxt.Location = new Point(105, 92); - _bandAudioTxt.Name = "_bandAudioTxt"; - _bandAudioTxt.ReadOnly = true; - _bandAudioTxt.Size = new Size(188, 20); - _bandAudioTxt.TabIndex = 43; - _label2.AutoSize = true; - _label2.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label2.Location = new Point(6, 65); - _label2.Name = "_label2"; - _label2.Size = new Size(111, 19); - _label2.TabIndex = 40; - _label2.Text = "Rhythm Track:"; - _label2.TextAlign = ContentAlignment.MiddleCenter; - _rhythmAudioTxt.Enabled = false; - _rhythmAudioTxt.Location = new Point(123, 66); - _rhythmAudioTxt.Name = "_rhythmAudioTxt"; - _rhythmAudioTxt.ReadOnly = true; - _rhythmAudioTxt.Size = new Size(170, 20); - _rhythmAudioTxt.TabIndex = 41; - _chartGroupBox.Controls.Add(_groupBox7); - _chartGroupBox.Controls.Add(_groupBox2); - _chartGroupBox.Controls.Add(_groupBox8); - _chartGroupBox.Controls.Add(_groupBox1); - _chartGroupBox.Controls.Add(_label13); - _chartGroupBox.Controls.Add(_resetBtn); - _chartGroupBox.Controls.Add(_autoConfigBtn); - _chartGroupBox.Controls.Add(_groupBox5); - _chartGroupBox.Controls.Add(_groupBox4); - _chartGroupBox.Controls.Add(_groupBox6); - _chartGroupBox.Controls.Add(_groupBox3); - _chartGroupBox.Controls.Add(_label9); - _chartGroupBox.Controls.Add(_label8); - _chartGroupBox.Controls.Add(_label7); - _chartGroupBox.Controls.Add(_label5); - _chartGroupBox.Controls.Add(_chartFileBtn); - _chartGroupBox.Controls.Add(_label4); - _chartGroupBox.Controls.Add(_chartFileTxt); - _chartGroupBox.Location = new Point(12, 270); - _chartGroupBox.Name = "_chartGroupBox"; - _chartGroupBox.Size = new Size(566, 239); - _chartGroupBox.TabIndex = 37; - _chartGroupBox.TabStop = false; - _chartGroupBox.Text = "Game Track"; - _groupBox7.Controls.Add(_bossBattleP2Box); - _groupBox7.Location = new Point(445, 180); - _groupBox7.Name = "_groupBox7"; - _groupBox7.Size = new Size(110, 48); - _groupBox7.TabIndex = 58; - _groupBox7.TabStop = false; - _groupBox7.Text = "Boss Battle P2"; - _bossBattleP2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _bossBattleP2Box.FormattingEnabled = true; - _bossBattleP2Box.Location = new Point(6, 19); - _bossBattleP2Box.Name = "_bossBattleP2Box"; - _bossBattleP2Box.Size = new Size(98, 21); - _bossBattleP2Box.TabIndex = 18; - _groupBox2.Controls.Add(_faceOffP2Box); - _groupBox2.Location = new Point(213, 180); - _groupBox2.Name = "_groupBox2"; - _groupBox2.Size = new Size(110, 48); - _groupBox2.TabIndex = 56; - _groupBox2.TabStop = false; - _groupBox2.Text = "Face Off P2"; - _faceOffP2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _faceOffP2Box.FormattingEnabled = true; - _faceOffP2Box.Location = new Point(6, 19); - _faceOffP2Box.Name = "_faceOffP2Box"; - _faceOffP2Box.Size = new Size(98, 21); - _faceOffP2Box.TabIndex = 18; - _groupBox8.Controls.Add(_bossBattleP1Box); - _groupBox8.Location = new Point(329, 180); - _groupBox8.Name = "_groupBox8"; - _groupBox8.Size = new Size(110, 48); - _groupBox8.TabIndex = 57; - _groupBox8.TabStop = false; - _groupBox8.Text = "Boss Battle P1"; - _bossBattleP1Box.DropDownStyle = ComboBoxStyle.DropDownList; - _bossBattleP1Box.FormattingEnabled = true; - _bossBattleP1Box.Location = new Point(6, 19); - _bossBattleP1Box.Name = "_bossBattleP1Box"; - _bossBattleP1Box.Size = new Size(98, 21); - _bossBattleP1Box.TabIndex = 18; - _groupBox1.Controls.Add(_faceOffP1Box); - _groupBox1.Location = new Point(97, 180); - _groupBox1.Name = "_groupBox1"; - _groupBox1.Size = new Size(110, 48); - _groupBox1.TabIndex = 55; - _groupBox1.TabStop = false; - _groupBox1.Text = "Face Off P1"; - _faceOffP1Box.DropDownStyle = ComboBoxStyle.DropDownList; - _faceOffP1Box.FormattingEnabled = true; - _faceOffP1Box.Location = new Point(6, 19); - _faceOffP1Box.Name = "_faceOffP1Box"; - _faceOffP1Box.Size = new Size(98, 21); - _faceOffP1Box.TabIndex = 18; - _label13.AutoSize = true; - _label13.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label13.Location = new Point(-2, 201); - _label13.Name = "_label13"; - _label13.Size = new Size(93, 19); - _label13.TabIndex = 58; - _label13.Text = "SECTIONS:"; - _label13.TextAlign = ContentAlignment.MiddleCenter; - _resetBtn.Enabled = false; - _resetBtn.Location = new Point(512, 15); - _resetBtn.Name = "_resetBtn"; - _resetBtn.Size = new Size(43, 23); - _resetBtn.TabIndex = 17; - _resetBtn.Text = "Reset"; - _resetBtn.UseVisualStyleBackColor = true; - _resetBtn.Click += ResetBtn_Click; - _autoConfigBtn.Enabled = false; - _autoConfigBtn.Location = new Point(404, 15); - _autoConfigBtn.Name = "_autoConfigBtn"; - _autoConfigBtn.Size = new Size(102, 23); - _autoConfigBtn.TabIndex = 16; - _autoConfigBtn.Text = "Auto Configuration"; - _autoConfigBtn.UseVisualStyleBackColor = true; - _autoConfigBtn.Click += AutoConfigBtn_Click; - _groupBox5.Controls.Add(_expertCoop2Box); - _groupBox5.Controls.Add(_hardCoop2Box); - _groupBox5.Controls.Add(_mediumCoop2Box); - _groupBox5.Controls.Add(_easyCoop2Box); - _groupBox5.Location = new Point(445, 43); - _groupBox5.Name = "_groupBox5"; - _groupBox5.Size = new Size(110, 131); - _groupBox5.TabIndex = 57; - _groupBox5.TabStop = false; - _groupBox5.Text = "Coop Rhythm"; - _expertCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _expertCoop2Box.FormattingEnabled = true; - _expertCoop2Box.Location = new Point(6, 100); - _expertCoop2Box.Name = "_expertCoop2Box"; - _expertCoop2Box.Size = new Size(98, 21); - _expertCoop2Box.TabIndex = 33; - _hardCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _hardCoop2Box.FormattingEnabled = true; - _hardCoop2Box.Location = new Point(6, 73); - _hardCoop2Box.Name = "_hardCoop2Box"; - _hardCoop2Box.Size = new Size(98, 21); - _hardCoop2Box.TabIndex = 32; - _mediumCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _mediumCoop2Box.FormattingEnabled = true; - _mediumCoop2Box.Location = new Point(6, 46); - _mediumCoop2Box.Name = "_mediumCoop2Box"; - _mediumCoop2Box.Size = new Size(98, 21); - _mediumCoop2Box.TabIndex = 31; - _easyCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; - _easyCoop2Box.FormattingEnabled = true; - _easyCoop2Box.Location = new Point(6, 19); - _easyCoop2Box.Name = "_easyCoop2Box"; - _easyCoop2Box.Size = new Size(98, 21); - _easyCoop2Box.TabIndex = 30; - _groupBox4.Controls.Add(_expertRhythmBox); - _groupBox4.Controls.Add(_hardRhythmBox); - _groupBox4.Controls.Add(_mediumRhythmBox); - _groupBox4.Controls.Add(_easyRhythmBox); - _groupBox4.Location = new Point(213, 43); - _groupBox4.Name = "_groupBox4"; - _groupBox4.Size = new Size(110, 131); - _groupBox4.TabIndex = 55; - _groupBox4.TabStop = false; - _groupBox4.Text = "Single Rhythm"; - _expertRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; - _expertRhythmBox.FormattingEnabled = true; - _expertRhythmBox.Location = new Point(6, 100); - _expertRhythmBox.Name = "_expertRhythmBox"; - _expertRhythmBox.Size = new Size(98, 21); - _expertRhythmBox.TabIndex = 25; - _hardRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; - _hardRhythmBox.FormattingEnabled = true; - _hardRhythmBox.Location = new Point(6, 73); - _hardRhythmBox.Name = "_hardRhythmBox"; - _hardRhythmBox.Size = new Size(98, 21); - _hardRhythmBox.TabIndex = 24; - _mediumRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; - _mediumRhythmBox.FormattingEnabled = true; - _mediumRhythmBox.Location = new Point(6, 46); - _mediumRhythmBox.Name = "_mediumRhythmBox"; - _mediumRhythmBox.Size = new Size(98, 21); - _mediumRhythmBox.TabIndex = 23; - _easyRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; - _easyRhythmBox.FormattingEnabled = true; - _easyRhythmBox.Location = new Point(6, 19); - _easyRhythmBox.Name = "_easyRhythmBox"; - _easyRhythmBox.Size = new Size(98, 21); - _easyRhythmBox.TabIndex = 22; - _groupBox6.Controls.Add(_expertCoopBox); - _groupBox6.Controls.Add(_hardCoopBox); - _groupBox6.Controls.Add(_mediumCoopBox); - _groupBox6.Controls.Add(_easyCoopBox); - _groupBox6.Location = new Point(329, 43); - _groupBox6.Name = "_groupBox6"; - _groupBox6.Size = new Size(110, 131); - _groupBox6.TabIndex = 56; - _groupBox6.TabStop = false; - _groupBox6.Text = "Coop Guitar"; - _expertCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; - _expertCoopBox.FormattingEnabled = true; - _expertCoopBox.Location = new Point(6, 100); - _expertCoopBox.Name = "_expertCoopBox"; - _expertCoopBox.Size = new Size(98, 21); - _expertCoopBox.TabIndex = 29; - _hardCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; - _hardCoopBox.FormattingEnabled = true; - _hardCoopBox.Location = new Point(6, 73); - _hardCoopBox.Name = "_hardCoopBox"; - _hardCoopBox.Size = new Size(98, 21); - _hardCoopBox.TabIndex = 28; - _mediumCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; - _mediumCoopBox.FormattingEnabled = true; - _mediumCoopBox.Location = new Point(6, 46); - _mediumCoopBox.Name = "_mediumCoopBox"; - _mediumCoopBox.Size = new Size(98, 21); - _mediumCoopBox.TabIndex = 27; - _easyCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; - _easyCoopBox.FormattingEnabled = true; - _easyCoopBox.Location = new Point(6, 19); - _easyCoopBox.Name = "_easyCoopBox"; - _easyCoopBox.Size = new Size(98, 21); - _easyCoopBox.TabIndex = 26; - _groupBox3.Controls.Add(_expertGuitarBox); - _groupBox3.Controls.Add(_hardGuitarBox); - _groupBox3.Controls.Add(_mediumGuitarBox); - _groupBox3.Controls.Add(_easyGuitarBox); - _groupBox3.Location = new Point(97, 43); - _groupBox3.Name = "_groupBox3"; - _groupBox3.Size = new Size(110, 131); - _groupBox3.TabIndex = 54; - _groupBox3.TabStop = false; - _groupBox3.Text = "Single Guitar"; - _expertGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; - _expertGuitarBox.FormattingEnabled = true; - _expertGuitarBox.Location = new Point(6, 100); - _expertGuitarBox.Name = "_expertGuitarBox"; - _expertGuitarBox.Size = new Size(98, 21); - _expertGuitarBox.TabIndex = 21; - _hardGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; - _hardGuitarBox.FormattingEnabled = true; - _hardGuitarBox.Location = new Point(6, 73); - _hardGuitarBox.Name = "_hardGuitarBox"; - _hardGuitarBox.Size = new Size(98, 21); - _hardGuitarBox.TabIndex = 20; - _mediumGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; - _mediumGuitarBox.FormattingEnabled = true; - _mediumGuitarBox.Location = new Point(6, 46); - _mediumGuitarBox.Name = "_mediumGuitarBox"; - _mediumGuitarBox.Size = new Size(98, 21); - _mediumGuitarBox.TabIndex = 19; - _easyGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; - _easyGuitarBox.FormattingEnabled = true; - _easyGuitarBox.Location = new Point(6, 19); - _easyGuitarBox.Name = "_easyGuitarBox"; - _easyGuitarBox.Size = new Size(98, 21); - _easyGuitarBox.TabIndex = 18; - _label9.AutoSize = true; - _label9.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label9.Location = new Point(15, 145); - _label9.Name = "_label9"; - _label9.Size = new Size(76, 19); - _label9.TabIndex = 53; - _label9.Text = "EXPERT:"; - _label9.TextAlign = ContentAlignment.MiddleCenter; - _label8.AutoSize = true; - _label8.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label8.Location = new Point(30, 118); - _label8.Name = "_label8"; - _label8.Size = new Size(61, 19); - _label8.TabIndex = 52; - _label8.Text = "HARD:"; - _label8.TextAlign = ContentAlignment.MiddleCenter; - _label7.AutoSize = true; - _label7.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label7.Location = new Point(6, 91); - _label7.Name = "_label7"; - _label7.Size = new Size(85, 19); - _label7.TabIndex = 51; - _label7.Text = "MEDIUM:"; - _label7.TextAlign = ContentAlignment.MiddleCenter; - _label5.AutoSize = true; - _label5.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label5.Location = new Point(37, 64); - _label5.Name = "_label5"; - _label5.Size = new Size(54, 19); - _label5.TabIndex = 50; - _label5.Text = "EASY:"; - _label5.TextAlign = ContentAlignment.MiddleCenter; - _chartFileBtn.Location = new Point(374, 16); - _chartFileBtn.Name = "_chartFileBtn"; - _chartFileBtn.Size = new Size(24, 21); - _chartFileBtn.TabIndex = 15; - _chartFileBtn.Text = "..."; - _chartFileBtn.UseVisualStyleBackColor = true; - _chartFileBtn.Click += ChartFileBtn_Click; - _label4.AutoSize = true; - _label4.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label4.Location = new Point(10, 16); - _label4.Name = "_label4"; - _label4.Size = new Size(81, 19); - _label4.TabIndex = 48; - _label4.Text = "Chart File:"; - _label4.TextAlign = ContentAlignment.MiddleCenter; - _chartFileTxt.Location = new Point(97, 17); - _chartFileTxt.Name = "_chartFileTxt"; - _chartFileTxt.ReadOnly = true; - _chartFileTxt.Size = new Size(271, 20); - _chartFileTxt.TabIndex = 49; - _label10.AutoSize = true; - _label10.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label10.Location = new Point(6, 28); - _label10.Name = "_label10"; - _label10.Size = new Size(91, 19); - _label10.TabIndex = 36; - _label10.Text = "Song Name:"; - _label10.TextAlign = ContentAlignment.MiddleCenter; - _songNameTxt.CharacterCasing = CharacterCasing.Lower; - _songNameTxt.Location = new Point(103, 29); - _songNameTxt.MaxLength = 30; - _songNameTxt.Name = "_songNameTxt"; - _songNameTxt.Size = new Size(140, 20); - _songNameTxt.TabIndex = 1; - _songNameTxt.TextChanged += SongNameTxt_TextChanged; - _songNameTxt.KeyPress += SongNameTxt_KeyPress; - _mainGroupBox.Controls.Add(_label12); - _mainGroupBox.Controls.Add(_cancelBtn); - _mainGroupBox.Controls.Add(_applyBtn); - _mainGroupBox.Controls.Add(_chartCheckBox); - _mainGroupBox.Controls.Add(_audioCheckBox); - _mainGroupBox.Controls.Add(_label10); - _mainGroupBox.Controls.Add(_songNameTxt); - _mainGroupBox.Location = new Point(12, 12); - _mainGroupBox.Name = "_mainGroupBox"; - _mainGroupBox.Size = new Size(566, 78); - _mainGroupBox.TabIndex = 0; - _mainGroupBox.TabStop = false; - _mainGroupBox.Text = "Main Settings"; - _label12.AutoSize = true; - _label12.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _label12.Location = new Point(249, 28); - _label12.Name = "_label12"; - _label12.Size = new Size(131, 19); - _label12.TabIndex = 43; - _label12.Text = "Data to Generate:"; - _label12.TextAlign = ContentAlignment.MiddleCenter; - _cancelBtn.DialogResult = DialogResult.Cancel; - _cancelBtn.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _cancelBtn.Location = new Point(495, 44); - _cancelBtn.Name = "_cancelBtn"; - _cancelBtn.Size = new Size(65, 27); - _cancelBtn.TabIndex = 35; - _cancelBtn.Text = "Cancel"; - _cancelBtn.UseVisualStyleBackColor = true; - _applyBtn.DialogResult = DialogResult.OK; - _applyBtn.Enabled = false; - _applyBtn.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _applyBtn.Location = new Point(495, 11); - _applyBtn.Name = "_applyBtn"; - _applyBtn.Size = new Size(65, 27); - _applyBtn.TabIndex = 34; - _applyBtn.Text = "Apply"; - _applyBtn.UseVisualStyleBackColor = true; - _chartCheckBox.AutoSize = true; - _chartCheckBox.Checked = true; - _chartCheckBox.CheckState = CheckState.Checked; - _chartCheckBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _chartCheckBox.Location = new Point(380, 44); - _chartCheckBox.Name = "_chartCheckBox"; - _chartCheckBox.Size = new Size(112, 23); - _chartCheckBox.TabIndex = 3; - _chartCheckBox.Text = "Game Track"; - _chartCheckBox.UseVisualStyleBackColor = true; - _chartCheckBox.CheckedChanged += Chart_CheckBox_CheckedChanged; - _audioCheckBox.AutoSize = true; - _audioCheckBox.Checked = true; - _audioCheckBox.CheckState = CheckState.Checked; - _audioCheckBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); - _audioCheckBox.Location = new Point(380, 15); - _audioCheckBox.Name = "_audioCheckBox"; - _audioCheckBox.Size = new Size(111, 23); - _audioCheckBox.TabIndex = 2; - _audioCheckBox.Text = "Audio Track"; - _audioCheckBox.UseVisualStyleBackColor = true; - _audioCheckBox.CheckedChanged += Audio_CheckBox_CheckedChanged; - _volumeSlider.BackColor = Color.Transparent; - _volumeSlider.method_7(50f); - _volumeSlider.method_8(70f); - _volumeSlider.method_20(5u); - _volumeSlider.Location = new Point(465, 137); - _volumeSlider.method_4(20); - _volumeSlider.Name = "_volumeSlider"; - _volumeSlider.Size = new Size(95, 10); - _volumeSlider.method_19(1u); - _volumeSlider.TabIndex = 51; - _volumeSlider.Text = "TimeSlideBar"; - _volumeSlider.method_6(new SizeF(50f, 25f)); - _volumeSlider.method_5(20); - _volumeSlider.method_1("{0}%"); - _volumeSlider.method_14(100); - _volumeSlider.method_0(method_10); - _previewSlider.BackColor = Color.Transparent; - _previewSlider.method_10(Color.Crimson); - _previewSlider.method_9(Color.Red); - _previewSlider.method_7(50f); - _previewSlider.method_8(60f); - _previewSlider.method_21(Control1.Enum40.Const3); - _previewSlider.method_12(Color.Violet); - _previewSlider.method_11(Color.DarkViolet); - _previewSlider.Enabled = false; - _previewSlider.method_20(5u); - _previewSlider.Location = new Point(123, 116); - _previewSlider.method_4(20); - _previewSlider.Name = "_previewSlider"; - _previewSlider.Size = new Size(437, 15); - _previewSlider.method_19(1u); - _previewSlider.TabIndex = 14; - _previewSlider.Text = "PreviewSlider"; - _previewSlider.method_6(new SizeF(20f, 50f)); - _previewSlider.method_5(35); - _previewSlider.method_1("{0:mm:ss}"); - _previewSlider.method_2(true); - _previewSlider.MouseDown += PreviewSlider_MouseDown; - _previewSlider.MouseUp += PreviewSlider_MouseUp; - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(590, 520); - Controls.Add(_mainGroupBox); - Controls.Add(_chartGroupBox); - Controls.Add(_audioGroupBox); - FormBorderStyle = FormBorderStyle.FixedToolWindow; - MaximizeBox = false; - MinimizeBox = false; - Name = "SongData"; - Text = "Generate Song Data"; - _audioGroupBox.ResumeLayout(false); - _audioGroupBox.PerformLayout(); - _chartGroupBox.ResumeLayout(false); - _chartGroupBox.PerformLayout(); - _groupBox7.ResumeLayout(false); - _groupBox2.ResumeLayout(false); - _groupBox8.ResumeLayout(false); - _groupBox1.ResumeLayout(false); - _groupBox5.ResumeLayout(false); - _groupBox4.ResumeLayout(false); - _groupBox6.ResumeLayout(false); - _groupBox3.ResumeLayout(false); - _mainGroupBox.ResumeLayout(false); - _mainGroupBox.PerformLayout(); - ResumeLayout(false); - FormClosing += SongData_FormClosing; - } - - public SongData(Gh3Songlist gh3Songlist1) - { - InitializeComponent(); - Control arg260 = _audioCheckBox; - _chartCheckBox.Enabled = false; - arg260.Enabled = false; - Bool1 = true; - Bool0 = true; - EnableAudioButtons(); - _gh3Songlist0 = gh3Songlist1; - _timer0 = new Timer(); - _timer0.Interval = 30; - _timer0.Tick += timer_0_Tick; - } + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + _guitarAudioTxt = new TextBox(); + _label6 = new Label(); + _audioGroupBox = new GroupBox(); + _stopBtn = new Button(); + _pauseBtn = new Button(); + _playBtn = new Button(); + _dualAudioBtn = new RadioButton(); + _coopAudioBtn = new RadioButton(); + _bandCoopBtn = new Button(); + _rhythmCoopBtn = new Button(); + _guitarCoopBtn = new Button(); + _bandCoopTxt = new TextBox(); + _rhythmCoopTxt = new TextBox(); + _guitarCoopTxt = new TextBox(); + _label11 = new Label(); + _bandAudioBtn = new Button(); + _rhythmAudioBtn = new Button(); + _guitarAudioBtn = new Button(); + _label1 = new Label(); + _multiAudioBtn = new RadioButton(); + _singleAudioBtn = new RadioButton(); + _label3 = new Label(); + _bandAudioTxt = new TextBox(); + _label2 = new Label(); + _rhythmAudioTxt = new TextBox(); + _chartGroupBox = new GroupBox(); + _groupBox7 = new GroupBox(); + _bossBattleP2Box = new ComboBox(); + _groupBox2 = new GroupBox(); + _faceOffP2Box = new ComboBox(); + _groupBox8 = new GroupBox(); + _bossBattleP1Box = new ComboBox(); + _groupBox1 = new GroupBox(); + _faceOffP1Box = new ComboBox(); + _label13 = new Label(); + _resetBtn = new Button(); + _autoConfigBtn = new Button(); + _groupBox5 = new GroupBox(); + _expertCoop2Box = new ComboBox(); + _hardCoop2Box = new ComboBox(); + _mediumCoop2Box = new ComboBox(); + _easyCoop2Box = new ComboBox(); + _groupBox4 = new GroupBox(); + _expertRhythmBox = new ComboBox(); + _hardRhythmBox = new ComboBox(); + _mediumRhythmBox = new ComboBox(); + _easyRhythmBox = new ComboBox(); + _groupBox6 = new GroupBox(); + _expertCoopBox = new ComboBox(); + _hardCoopBox = new ComboBox(); + _mediumCoopBox = new ComboBox(); + _easyCoopBox = new ComboBox(); + _groupBox3 = new GroupBox(); + _expertGuitarBox = new ComboBox(); + _hardGuitarBox = new ComboBox(); + _mediumGuitarBox = new ComboBox(); + _easyGuitarBox = new ComboBox(); + _label9 = new Label(); + _label8 = new Label(); + _label7 = new Label(); + _label5 = new Label(); + _chartFileBtn = new Button(); + _label4 = new Label(); + _chartFileTxt = new TextBox(); + _label10 = new Label(); + _songNameTxt = new TextBox(); + _mainGroupBox = new GroupBox(); + _label12 = new Label(); + _cancelBtn = new Button(); + _applyBtn = new Button(); + _chartCheckBox = new CheckBox(); + _audioCheckBox = new CheckBox(); + _volumeSlider = new Control1(); + _previewSlider = new Control1(); + _audioGroupBox.SuspendLayout(); + _chartGroupBox.SuspendLayout(); + _groupBox7.SuspendLayout(); + _groupBox2.SuspendLayout(); + _groupBox8.SuspendLayout(); + _groupBox1.SuspendLayout(); + _groupBox5.SuspendLayout(); + _groupBox4.SuspendLayout(); + _groupBox6.SuspendLayout(); + _groupBox3.SuspendLayout(); + _mainGroupBox.SuspendLayout(); + SuspendLayout(); + _guitarAudioTxt.Location = new Point(113, 39); + _guitarAudioTxt.Name = "_guitarAudioTxt"; + _guitarAudioTxt.ReadOnly = true; + _guitarAudioTxt.Size = new Size(180, 20); + _guitarAudioTxt.TabIndex = 39; + _label6.AutoSize = true; + _label6.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label6.Location = new Point(6, 38); + _label6.Name = "_label6"; + _label6.Size = new Size(101, 19); + _label6.TabIndex = 39; + _label6.Text = "Guitar Track:"; + _label6.TextAlign = ContentAlignment.MiddleCenter; + _audioGroupBox.Controls.Add(_volumeSlider); + _audioGroupBox.Controls.Add(_stopBtn); + _audioGroupBox.Controls.Add(_pauseBtn); + _audioGroupBox.Controls.Add(_playBtn); + _audioGroupBox.Controls.Add(_dualAudioBtn); + _audioGroupBox.Controls.Add(_coopAudioBtn); + _audioGroupBox.Controls.Add(_bandCoopBtn); + _audioGroupBox.Controls.Add(_rhythmCoopBtn); + _audioGroupBox.Controls.Add(_guitarCoopBtn); + _audioGroupBox.Controls.Add(_bandCoopTxt); + _audioGroupBox.Controls.Add(_rhythmCoopTxt); + _audioGroupBox.Controls.Add(_guitarCoopTxt); + _audioGroupBox.Controls.Add(_previewSlider); + _audioGroupBox.Controls.Add(_label11); + _audioGroupBox.Controls.Add(_bandAudioBtn); + _audioGroupBox.Controls.Add(_rhythmAudioBtn); + _audioGroupBox.Controls.Add(_guitarAudioBtn); + _audioGroupBox.Controls.Add(_label1); + _audioGroupBox.Controls.Add(_multiAudioBtn); + _audioGroupBox.Controls.Add(_singleAudioBtn); + _audioGroupBox.Controls.Add(_label3); + _audioGroupBox.Controls.Add(_bandAudioTxt); + _audioGroupBox.Controls.Add(_label2); + _audioGroupBox.Controls.Add(_rhythmAudioTxt); + _audioGroupBox.Controls.Add(_label6); + _audioGroupBox.Controls.Add(_guitarAudioTxt); + _audioGroupBox.Location = new Point(12, 96); + _audioGroupBox.Name = "_audioGroupBox"; + _audioGroupBox.Size = new Size(566, 168); + _audioGroupBox.TabIndex = 36; + _audioGroupBox.TabStop = false; + _audioGroupBox.Text = "Audio Track"; + _stopBtn.FlatStyle = FlatStyle.Popup; + _stopBtn.Location = new Point(205, 137); + _stopBtn.Name = "_stopBtn"; + _stopBtn.Size = new Size(37, 20); + _stopBtn.TabIndex = 50; + _stopBtn.Text = "Stop"; + _stopBtn.UseVisualStyleBackColor = true; + _stopBtn.Click += Stop_Btn_Click; + _pauseBtn.FlatStyle = FlatStyle.Popup; + _pauseBtn.Location = new Point(160, 137); + _pauseBtn.Name = "_pauseBtn"; + _pauseBtn.Size = new Size(45, 20); + _pauseBtn.TabIndex = 49; + _pauseBtn.Text = "Pause"; + _pauseBtn.UseVisualStyleBackColor = true; + _pauseBtn.Click += Pause_Btn_Click; + _playBtn.FlatStyle = FlatStyle.Popup; + _playBtn.Location = new Point(123, 137); + _playBtn.Name = "_playBtn"; + _playBtn.Size = new Size(37, 20); + _playBtn.TabIndex = 48; + _playBtn.Text = "Play"; + _playBtn.UseVisualStyleBackColor = true; + _playBtn.Click += Play_Btn_Click; + _dualAudioBtn.AutoSize = true; + _dualAudioBtn.Location = new Point(194, 18); + _dualAudioBtn.Name = "_dualAudioBtn"; + _dualAudioBtn.Size = new Size(84, 17); + _dualAudioBtn.TabIndex = 5; + _dualAudioBtn.Text = "Guitar Track"; + _dualAudioBtn.UseVisualStyleBackColor = true; + _dualAudioBtn.CheckedChanged += DualAudioBtn_CheckedChanged; + _coopAudioBtn.AutoSize = true; + _coopAudioBtn.Location = new Point(382, 18); + _coopAudioBtn.Name = "_coopAudioBtn"; + _coopAudioBtn.Size = new Size(86, 17); + _coopAudioBtn.TabIndex = 7; + _coopAudioBtn.Text = "Coop Tracks"; + _coopAudioBtn.UseVisualStyleBackColor = true; + _coopAudioBtn.CheckedChanged += CoopAudioBtn_CheckedChanged; + _bandCoopBtn.Enabled = false; + _bandCoopBtn.Location = new Point(539, 91); + _bandCoopBtn.Name = "_bandCoopBtn"; + _bandCoopBtn.Size = new Size(24, 21); + _bandCoopBtn.TabIndex = 13; + _bandCoopBtn.Text = "..."; + _bandCoopBtn.UseVisualStyleBackColor = true; + _bandCoopBtn.Click += BandCoopBtn_Click; + _rhythmCoopBtn.Enabled = false; + _rhythmCoopBtn.Location = new Point(539, 65); + _rhythmCoopBtn.Name = "_rhythmCoopBtn"; + _rhythmCoopBtn.Size = new Size(24, 21); + _rhythmCoopBtn.TabIndex = 12; + _rhythmCoopBtn.Text = "..."; + _rhythmCoopBtn.UseVisualStyleBackColor = true; + _rhythmCoopBtn.Click += RhythmCoopBtn_Click; + _guitarCoopBtn.Enabled = false; + _guitarCoopBtn.Location = new Point(539, 38); + _guitarCoopBtn.Name = "_guitarCoopBtn"; + _guitarCoopBtn.Size = new Size(24, 21); + _guitarCoopBtn.TabIndex = 11; + _guitarCoopBtn.Text = "..."; + _guitarCoopBtn.UseVisualStyleBackColor = true; + _guitarCoopBtn.Click += GuitarCoopBtn_Click; + _bandCoopTxt.Enabled = false; + _bandCoopTxt.Location = new Point(329, 92); + _bandCoopTxt.Name = "_bandCoopTxt"; + _bandCoopTxt.ReadOnly = true; + _bandCoopTxt.Size = new Size(204, 20); + _bandCoopTxt.TabIndex = 46; + _rhythmCoopTxt.Enabled = false; + _rhythmCoopTxt.Location = new Point(329, 66); + _rhythmCoopTxt.Name = "_rhythmCoopTxt"; + _rhythmCoopTxt.ReadOnly = true; + _rhythmCoopTxt.Size = new Size(204, 20); + _rhythmCoopTxt.TabIndex = 45; + _guitarCoopTxt.Enabled = false; + _guitarCoopTxt.Location = new Point(329, 39); + _guitarCoopTxt.Name = "_guitarCoopTxt"; + _guitarCoopTxt.ReadOnly = true; + _guitarCoopTxt.Size = new Size(204, 20); + _guitarCoopTxt.TabIndex = 44; + _label11.AutoSize = true; + _label11.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label11.Location = new Point(6, 129); + _label11.Name = "_label11"; + _label11.Size = new Size(111, 19); + _label11.TabIndex = 47; + _label11.Text = "Preview Track:"; + _label11.TextAlign = ContentAlignment.MiddleCenter; + _bandAudioBtn.Enabled = false; + _bandAudioBtn.Location = new Point(299, 91); + _bandAudioBtn.Name = "_bandAudioBtn"; + _bandAudioBtn.Size = new Size(24, 21); + _bandAudioBtn.TabIndex = 10; + _bandAudioBtn.Text = "..."; + _bandAudioBtn.UseVisualStyleBackColor = true; + _bandAudioBtn.Click += BandAudioBtn_Click; + _rhythmAudioBtn.Enabled = false; + _rhythmAudioBtn.Location = new Point(299, 65); + _rhythmAudioBtn.Name = "_rhythmAudioBtn"; + _rhythmAudioBtn.Size = new Size(24, 21); + _rhythmAudioBtn.TabIndex = 9; + _rhythmAudioBtn.Text = "..."; + _rhythmAudioBtn.UseVisualStyleBackColor = true; + _rhythmAudioBtn.Click += RhythmAudioBtn_Click; + _guitarAudioBtn.Location = new Point(299, 38); + _guitarAudioBtn.Name = "_guitarAudioBtn"; + _guitarAudioBtn.Size = new Size(24, 21); + _guitarAudioBtn.TabIndex = 8; + _guitarAudioBtn.Text = "..."; + _guitarAudioBtn.UseVisualStyleBackColor = true; + _guitarAudioBtn.Click += GuitarAudioBtn_Click; + _label1.AutoSize = true; + _label1.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label1.Location = new Point(6, 16); + _label1.Name = "_label1"; + _label1.Size = new Size(91, 19); + _label1.TabIndex = 38; + _label1.Text = "Audio Type:"; + _label1.TextAlign = ContentAlignment.MiddleCenter; + _multiAudioBtn.AutoSize = true; + _multiAudioBtn.Location = new Point(284, 18); + _multiAudioBtn.Name = "_multiAudioBtn"; + _multiAudioBtn.Size = new Size(92, 17); + _multiAudioBtn.TabIndex = 6; + _multiAudioBtn.Text = "Rhythm Track"; + _multiAudioBtn.UseVisualStyleBackColor = true; + _multiAudioBtn.CheckedChanged += MultiAudioBtn_CheckedChanged; + _singleAudioBtn.AutoSize = true; + _singleAudioBtn.Checked = true; + _singleAudioBtn.Location = new Point(103, 18); + _singleAudioBtn.Name = "_singleAudioBtn"; + _singleAudioBtn.Size = new Size(85, 17); + _singleAudioBtn.TabIndex = 4; + _singleAudioBtn.TabStop = true; + _singleAudioBtn.Text = "Single Track"; + _singleAudioBtn.UseVisualStyleBackColor = true; + _singleAudioBtn.CheckedChanged += SingleAudioBtn_CheckedChanged; + _label3.AutoSize = true; + _label3.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label3.Location = new Point(6, 91); + _label3.Name = "_label3"; + _label3.Size = new Size(93, 19); + _label3.TabIndex = 42; + _label3.Text = "Band Track:"; + _label3.TextAlign = ContentAlignment.MiddleCenter; + _bandAudioTxt.Enabled = false; + _bandAudioTxt.Location = new Point(105, 92); + _bandAudioTxt.Name = "_bandAudioTxt"; + _bandAudioTxt.ReadOnly = true; + _bandAudioTxt.Size = new Size(188, 20); + _bandAudioTxt.TabIndex = 43; + _label2.AutoSize = true; + _label2.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label2.Location = new Point(6, 65); + _label2.Name = "_label2"; + _label2.Size = new Size(111, 19); + _label2.TabIndex = 40; + _label2.Text = "Rhythm Track:"; + _label2.TextAlign = ContentAlignment.MiddleCenter; + _rhythmAudioTxt.Enabled = false; + _rhythmAudioTxt.Location = new Point(123, 66); + _rhythmAudioTxt.Name = "_rhythmAudioTxt"; + _rhythmAudioTxt.ReadOnly = true; + _rhythmAudioTxt.Size = new Size(170, 20); + _rhythmAudioTxt.TabIndex = 41; + _chartGroupBox.Controls.Add(_groupBox7); + _chartGroupBox.Controls.Add(_groupBox2); + _chartGroupBox.Controls.Add(_groupBox8); + _chartGroupBox.Controls.Add(_groupBox1); + _chartGroupBox.Controls.Add(_label13); + _chartGroupBox.Controls.Add(_resetBtn); + _chartGroupBox.Controls.Add(_autoConfigBtn); + _chartGroupBox.Controls.Add(_groupBox5); + _chartGroupBox.Controls.Add(_groupBox4); + _chartGroupBox.Controls.Add(_groupBox6); + _chartGroupBox.Controls.Add(_groupBox3); + _chartGroupBox.Controls.Add(_label9); + _chartGroupBox.Controls.Add(_label8); + _chartGroupBox.Controls.Add(_label7); + _chartGroupBox.Controls.Add(_label5); + _chartGroupBox.Controls.Add(_chartFileBtn); + _chartGroupBox.Controls.Add(_label4); + _chartGroupBox.Controls.Add(_chartFileTxt); + _chartGroupBox.Location = new Point(12, 270); + _chartGroupBox.Name = "_chartGroupBox"; + _chartGroupBox.Size = new Size(566, 239); + _chartGroupBox.TabIndex = 37; + _chartGroupBox.TabStop = false; + _chartGroupBox.Text = "Game Track"; + _groupBox7.Controls.Add(_bossBattleP2Box); + _groupBox7.Location = new Point(445, 180); + _groupBox7.Name = "_groupBox7"; + _groupBox7.Size = new Size(110, 48); + _groupBox7.TabIndex = 58; + _groupBox7.TabStop = false; + _groupBox7.Text = "Boss Battle P2"; + _bossBattleP2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _bossBattleP2Box.FormattingEnabled = true; + _bossBattleP2Box.Location = new Point(6, 19); + _bossBattleP2Box.Name = "_bossBattleP2Box"; + _bossBattleP2Box.Size = new Size(98, 21); + _bossBattleP2Box.TabIndex = 18; + _groupBox2.Controls.Add(_faceOffP2Box); + _groupBox2.Location = new Point(213, 180); + _groupBox2.Name = "_groupBox2"; + _groupBox2.Size = new Size(110, 48); + _groupBox2.TabIndex = 56; + _groupBox2.TabStop = false; + _groupBox2.Text = "Face Off P2"; + _faceOffP2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _faceOffP2Box.FormattingEnabled = true; + _faceOffP2Box.Location = new Point(6, 19); + _faceOffP2Box.Name = "_faceOffP2Box"; + _faceOffP2Box.Size = new Size(98, 21); + _faceOffP2Box.TabIndex = 18; + _groupBox8.Controls.Add(_bossBattleP1Box); + _groupBox8.Location = new Point(329, 180); + _groupBox8.Name = "_groupBox8"; + _groupBox8.Size = new Size(110, 48); + _groupBox8.TabIndex = 57; + _groupBox8.TabStop = false; + _groupBox8.Text = "Boss Battle P1"; + _bossBattleP1Box.DropDownStyle = ComboBoxStyle.DropDownList; + _bossBattleP1Box.FormattingEnabled = true; + _bossBattleP1Box.Location = new Point(6, 19); + _bossBattleP1Box.Name = "_bossBattleP1Box"; + _bossBattleP1Box.Size = new Size(98, 21); + _bossBattleP1Box.TabIndex = 18; + _groupBox1.Controls.Add(_faceOffP1Box); + _groupBox1.Location = new Point(97, 180); + _groupBox1.Name = "_groupBox1"; + _groupBox1.Size = new Size(110, 48); + _groupBox1.TabIndex = 55; + _groupBox1.TabStop = false; + _groupBox1.Text = "Face Off P1"; + _faceOffP1Box.DropDownStyle = ComboBoxStyle.DropDownList; + _faceOffP1Box.FormattingEnabled = true; + _faceOffP1Box.Location = new Point(6, 19); + _faceOffP1Box.Name = "_faceOffP1Box"; + _faceOffP1Box.Size = new Size(98, 21); + _faceOffP1Box.TabIndex = 18; + _label13.AutoSize = true; + _label13.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label13.Location = new Point(-2, 201); + _label13.Name = "_label13"; + _label13.Size = new Size(93, 19); + _label13.TabIndex = 58; + _label13.Text = "SECTIONS:"; + _label13.TextAlign = ContentAlignment.MiddleCenter; + _resetBtn.Enabled = false; + _resetBtn.Location = new Point(512, 15); + _resetBtn.Name = "_resetBtn"; + _resetBtn.Size = new Size(43, 23); + _resetBtn.TabIndex = 17; + _resetBtn.Text = "Reset"; + _resetBtn.UseVisualStyleBackColor = true; + _resetBtn.Click += ResetBtn_Click; + _autoConfigBtn.Enabled = false; + _autoConfigBtn.Location = new Point(404, 15); + _autoConfigBtn.Name = "_autoConfigBtn"; + _autoConfigBtn.Size = new Size(102, 23); + _autoConfigBtn.TabIndex = 16; + _autoConfigBtn.Text = "Auto Configuration"; + _autoConfigBtn.UseVisualStyleBackColor = true; + _autoConfigBtn.Click += AutoConfigBtn_Click; + _groupBox5.Controls.Add(_expertCoop2Box); + _groupBox5.Controls.Add(_hardCoop2Box); + _groupBox5.Controls.Add(_mediumCoop2Box); + _groupBox5.Controls.Add(_easyCoop2Box); + _groupBox5.Location = new Point(445, 43); + _groupBox5.Name = "_groupBox5"; + _groupBox5.Size = new Size(110, 131); + _groupBox5.TabIndex = 57; + _groupBox5.TabStop = false; + _groupBox5.Text = "Coop Rhythm"; + _expertCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _expertCoop2Box.FormattingEnabled = true; + _expertCoop2Box.Location = new Point(6, 100); + _expertCoop2Box.Name = "_expertCoop2Box"; + _expertCoop2Box.Size = new Size(98, 21); + _expertCoop2Box.TabIndex = 33; + _hardCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _hardCoop2Box.FormattingEnabled = true; + _hardCoop2Box.Location = new Point(6, 73); + _hardCoop2Box.Name = "_hardCoop2Box"; + _hardCoop2Box.Size = new Size(98, 21); + _hardCoop2Box.TabIndex = 32; + _mediumCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _mediumCoop2Box.FormattingEnabled = true; + _mediumCoop2Box.Location = new Point(6, 46); + _mediumCoop2Box.Name = "_mediumCoop2Box"; + _mediumCoop2Box.Size = new Size(98, 21); + _mediumCoop2Box.TabIndex = 31; + _easyCoop2Box.DropDownStyle = ComboBoxStyle.DropDownList; + _easyCoop2Box.FormattingEnabled = true; + _easyCoop2Box.Location = new Point(6, 19); + _easyCoop2Box.Name = "_easyCoop2Box"; + _easyCoop2Box.Size = new Size(98, 21); + _easyCoop2Box.TabIndex = 30; + _groupBox4.Controls.Add(_expertRhythmBox); + _groupBox4.Controls.Add(_hardRhythmBox); + _groupBox4.Controls.Add(_mediumRhythmBox); + _groupBox4.Controls.Add(_easyRhythmBox); + _groupBox4.Location = new Point(213, 43); + _groupBox4.Name = "_groupBox4"; + _groupBox4.Size = new Size(110, 131); + _groupBox4.TabIndex = 55; + _groupBox4.TabStop = false; + _groupBox4.Text = "Single Rhythm"; + _expertRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; + _expertRhythmBox.FormattingEnabled = true; + _expertRhythmBox.Location = new Point(6, 100); + _expertRhythmBox.Name = "_expertRhythmBox"; + _expertRhythmBox.Size = new Size(98, 21); + _expertRhythmBox.TabIndex = 25; + _hardRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; + _hardRhythmBox.FormattingEnabled = true; + _hardRhythmBox.Location = new Point(6, 73); + _hardRhythmBox.Name = "_hardRhythmBox"; + _hardRhythmBox.Size = new Size(98, 21); + _hardRhythmBox.TabIndex = 24; + _mediumRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; + _mediumRhythmBox.FormattingEnabled = true; + _mediumRhythmBox.Location = new Point(6, 46); + _mediumRhythmBox.Name = "_mediumRhythmBox"; + _mediumRhythmBox.Size = new Size(98, 21); + _mediumRhythmBox.TabIndex = 23; + _easyRhythmBox.DropDownStyle = ComboBoxStyle.DropDownList; + _easyRhythmBox.FormattingEnabled = true; + _easyRhythmBox.Location = new Point(6, 19); + _easyRhythmBox.Name = "_easyRhythmBox"; + _easyRhythmBox.Size = new Size(98, 21); + _easyRhythmBox.TabIndex = 22; + _groupBox6.Controls.Add(_expertCoopBox); + _groupBox6.Controls.Add(_hardCoopBox); + _groupBox6.Controls.Add(_mediumCoopBox); + _groupBox6.Controls.Add(_easyCoopBox); + _groupBox6.Location = new Point(329, 43); + _groupBox6.Name = "_groupBox6"; + _groupBox6.Size = new Size(110, 131); + _groupBox6.TabIndex = 56; + _groupBox6.TabStop = false; + _groupBox6.Text = "Coop Guitar"; + _expertCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; + _expertCoopBox.FormattingEnabled = true; + _expertCoopBox.Location = new Point(6, 100); + _expertCoopBox.Name = "_expertCoopBox"; + _expertCoopBox.Size = new Size(98, 21); + _expertCoopBox.TabIndex = 29; + _hardCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; + _hardCoopBox.FormattingEnabled = true; + _hardCoopBox.Location = new Point(6, 73); + _hardCoopBox.Name = "_hardCoopBox"; + _hardCoopBox.Size = new Size(98, 21); + _hardCoopBox.TabIndex = 28; + _mediumCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; + _mediumCoopBox.FormattingEnabled = true; + _mediumCoopBox.Location = new Point(6, 46); + _mediumCoopBox.Name = "_mediumCoopBox"; + _mediumCoopBox.Size = new Size(98, 21); + _mediumCoopBox.TabIndex = 27; + _easyCoopBox.DropDownStyle = ComboBoxStyle.DropDownList; + _easyCoopBox.FormattingEnabled = true; + _easyCoopBox.Location = new Point(6, 19); + _easyCoopBox.Name = "_easyCoopBox"; + _easyCoopBox.Size = new Size(98, 21); + _easyCoopBox.TabIndex = 26; + _groupBox3.Controls.Add(_expertGuitarBox); + _groupBox3.Controls.Add(_hardGuitarBox); + _groupBox3.Controls.Add(_mediumGuitarBox); + _groupBox3.Controls.Add(_easyGuitarBox); + _groupBox3.Location = new Point(97, 43); + _groupBox3.Name = "_groupBox3"; + _groupBox3.Size = new Size(110, 131); + _groupBox3.TabIndex = 54; + _groupBox3.TabStop = false; + _groupBox3.Text = "Single Guitar"; + _expertGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; + _expertGuitarBox.FormattingEnabled = true; + _expertGuitarBox.Location = new Point(6, 100); + _expertGuitarBox.Name = "_expertGuitarBox"; + _expertGuitarBox.Size = new Size(98, 21); + _expertGuitarBox.TabIndex = 21; + _hardGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; + _hardGuitarBox.FormattingEnabled = true; + _hardGuitarBox.Location = new Point(6, 73); + _hardGuitarBox.Name = "_hardGuitarBox"; + _hardGuitarBox.Size = new Size(98, 21); + _hardGuitarBox.TabIndex = 20; + _mediumGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; + _mediumGuitarBox.FormattingEnabled = true; + _mediumGuitarBox.Location = new Point(6, 46); + _mediumGuitarBox.Name = "_mediumGuitarBox"; + _mediumGuitarBox.Size = new Size(98, 21); + _mediumGuitarBox.TabIndex = 19; + _easyGuitarBox.DropDownStyle = ComboBoxStyle.DropDownList; + _easyGuitarBox.FormattingEnabled = true; + _easyGuitarBox.Location = new Point(6, 19); + _easyGuitarBox.Name = "_easyGuitarBox"; + _easyGuitarBox.Size = new Size(98, 21); + _easyGuitarBox.TabIndex = 18; + _label9.AutoSize = true; + _label9.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label9.Location = new Point(15, 145); + _label9.Name = "_label9"; + _label9.Size = new Size(76, 19); + _label9.TabIndex = 53; + _label9.Text = "EXPERT:"; + _label9.TextAlign = ContentAlignment.MiddleCenter; + _label8.AutoSize = true; + _label8.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label8.Location = new Point(30, 118); + _label8.Name = "_label8"; + _label8.Size = new Size(61, 19); + _label8.TabIndex = 52; + _label8.Text = "HARD:"; + _label8.TextAlign = ContentAlignment.MiddleCenter; + _label7.AutoSize = true; + _label7.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label7.Location = new Point(6, 91); + _label7.Name = "_label7"; + _label7.Size = new Size(85, 19); + _label7.TabIndex = 51; + _label7.Text = "MEDIUM:"; + _label7.TextAlign = ContentAlignment.MiddleCenter; + _label5.AutoSize = true; + _label5.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label5.Location = new Point(37, 64); + _label5.Name = "_label5"; + _label5.Size = new Size(54, 19); + _label5.TabIndex = 50; + _label5.Text = "EASY:"; + _label5.TextAlign = ContentAlignment.MiddleCenter; + _chartFileBtn.Location = new Point(374, 16); + _chartFileBtn.Name = "_chartFileBtn"; + _chartFileBtn.Size = new Size(24, 21); + _chartFileBtn.TabIndex = 15; + _chartFileBtn.Text = "..."; + _chartFileBtn.UseVisualStyleBackColor = true; + _chartFileBtn.Click += ChartFileBtn_Click; + _label4.AutoSize = true; + _label4.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label4.Location = new Point(10, 16); + _label4.Name = "_label4"; + _label4.Size = new Size(81, 19); + _label4.TabIndex = 48; + _label4.Text = "Chart File:"; + _label4.TextAlign = ContentAlignment.MiddleCenter; + _chartFileTxt.Location = new Point(97, 17); + _chartFileTxt.Name = "_chartFileTxt"; + _chartFileTxt.ReadOnly = true; + _chartFileTxt.Size = new Size(271, 20); + _chartFileTxt.TabIndex = 49; + _label10.AutoSize = true; + _label10.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label10.Location = new Point(6, 28); + _label10.Name = "_label10"; + _label10.Size = new Size(91, 19); + _label10.TabIndex = 36; + _label10.Text = "Song Name:"; + _label10.TextAlign = ContentAlignment.MiddleCenter; + _songNameTxt.CharacterCasing = CharacterCasing.Lower; + _songNameTxt.Location = new Point(103, 29); + _songNameTxt.MaxLength = 30; + _songNameTxt.Name = "_songNameTxt"; + _songNameTxt.Size = new Size(140, 20); + _songNameTxt.TabIndex = 1; + _songNameTxt.TextChanged += SongNameTxt_TextChanged; + _songNameTxt.KeyPress += SongNameTxt_KeyPress; + _mainGroupBox.Controls.Add(_label12); + _mainGroupBox.Controls.Add(_cancelBtn); + _mainGroupBox.Controls.Add(_applyBtn); + _mainGroupBox.Controls.Add(_chartCheckBox); + _mainGroupBox.Controls.Add(_audioCheckBox); + _mainGroupBox.Controls.Add(_label10); + _mainGroupBox.Controls.Add(_songNameTxt); + _mainGroupBox.Location = new Point(12, 12); + _mainGroupBox.Name = "_mainGroupBox"; + _mainGroupBox.Size = new Size(566, 78); + _mainGroupBox.TabIndex = 0; + _mainGroupBox.TabStop = false; + _mainGroupBox.Text = "Main Settings"; + _label12.AutoSize = true; + _label12.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _label12.Location = new Point(249, 28); + _label12.Name = "_label12"; + _label12.Size = new Size(131, 19); + _label12.TabIndex = 43; + _label12.Text = "Data to Generate:"; + _label12.TextAlign = ContentAlignment.MiddleCenter; + _cancelBtn.DialogResult = DialogResult.Cancel; + _cancelBtn.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _cancelBtn.Location = new Point(495, 44); + _cancelBtn.Name = "_cancelBtn"; + _cancelBtn.Size = new Size(65, 27); + _cancelBtn.TabIndex = 35; + _cancelBtn.Text = "Cancel"; + _cancelBtn.UseVisualStyleBackColor = true; + _applyBtn.DialogResult = DialogResult.OK; + _applyBtn.Enabled = false; + _applyBtn.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _applyBtn.Location = new Point(495, 11); + _applyBtn.Name = "_applyBtn"; + _applyBtn.Size = new Size(65, 27); + _applyBtn.TabIndex = 34; + _applyBtn.Text = "Apply"; + _applyBtn.UseVisualStyleBackColor = true; + _chartCheckBox.AutoSize = true; + _chartCheckBox.Checked = true; + _chartCheckBox.CheckState = CheckState.Checked; + _chartCheckBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _chartCheckBox.Location = new Point(380, 44); + _chartCheckBox.Name = "_chartCheckBox"; + _chartCheckBox.Size = new Size(112, 23); + _chartCheckBox.TabIndex = 3; + _chartCheckBox.Text = "Game Track"; + _chartCheckBox.UseVisualStyleBackColor = true; + _chartCheckBox.CheckedChanged += Chart_CheckBox_CheckedChanged; + _audioCheckBox.AutoSize = true; + _audioCheckBox.Checked = true; + _audioCheckBox.CheckState = CheckState.Checked; + _audioCheckBox.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0); + _audioCheckBox.Location = new Point(380, 15); + _audioCheckBox.Name = "_audioCheckBox"; + _audioCheckBox.Size = new Size(111, 23); + _audioCheckBox.TabIndex = 2; + _audioCheckBox.Text = "Audio Track"; + _audioCheckBox.UseVisualStyleBackColor = true; + _audioCheckBox.CheckedChanged += Audio_CheckBox_CheckedChanged; + _volumeSlider.BackColor = Color.Transparent; + _volumeSlider.method_7(50f); + _volumeSlider.method_8(70f); + _volumeSlider.method_20(5u); + _volumeSlider.Location = new Point(465, 137); + _volumeSlider.method_4(20); + _volumeSlider.Name = "_volumeSlider"; + _volumeSlider.Size = new Size(95, 10); + _volumeSlider.method_19(1u); + _volumeSlider.TabIndex = 51; + _volumeSlider.Text = "TimeSlideBar"; + _volumeSlider.method_6(new SizeF(50f, 25f)); + _volumeSlider.method_5(20); + _volumeSlider.method_1("{0}%"); + _volumeSlider.method_14(100); + _volumeSlider.method_0(method_10); + _previewSlider.BackColor = Color.Transparent; + _previewSlider.method_10(Color.Crimson); + _previewSlider.method_9(Color.Red); + _previewSlider.method_7(50f); + _previewSlider.method_8(60f); + _previewSlider.method_21(Control1.Enum40.Const3); + _previewSlider.method_12(Color.Violet); + _previewSlider.method_11(Color.DarkViolet); + _previewSlider.Enabled = false; + _previewSlider.method_20(5u); + _previewSlider.Location = new Point(123, 116); + _previewSlider.method_4(20); + _previewSlider.Name = "_previewSlider"; + _previewSlider.Size = new Size(437, 15); + _previewSlider.method_19(1u); + _previewSlider.TabIndex = 14; + _previewSlider.Text = "PreviewSlider"; + _previewSlider.method_6(new SizeF(20f, 50f)); + _previewSlider.method_5(35); + _previewSlider.method_1("{0:mm:ss}"); + _previewSlider.method_2(true); + _previewSlider.MouseDown += PreviewSlider_MouseDown; + _previewSlider.MouseUp += PreviewSlider_MouseUp; + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(590, 520); + Controls.Add(_mainGroupBox); + Controls.Add(_chartGroupBox); + Controls.Add(_audioGroupBox); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + MaximizeBox = false; + MinimizeBox = false; + Name = "SongData"; + Text = "Generate Song Data"; + _audioGroupBox.ResumeLayout(false); + _audioGroupBox.PerformLayout(); + _chartGroupBox.ResumeLayout(false); + _chartGroupBox.PerformLayout(); + _groupBox7.ResumeLayout(false); + _groupBox2.ResumeLayout(false); + _groupBox8.ResumeLayout(false); + _groupBox1.ResumeLayout(false); + _groupBox5.ResumeLayout(false); + _groupBox4.ResumeLayout(false); + _groupBox6.ResumeLayout(false); + _groupBox3.ResumeLayout(false); + _mainGroupBox.ResumeLayout(false); + _mainGroupBox.PerformLayout(); + ResumeLayout(false); + FormClosing += SongData_FormClosing; + } + + public SongData(Gh3Songlist gh3Songlist1) + { + InitializeComponent(); + Control arg260 = _audioCheckBox; + _chartCheckBox.Enabled = false; + arg260.Enabled = false; + Bool1 = true; + Bool0 = true; + EnableAudioButtons(); + _gh3Songlist0 = gh3Songlist1; + _timer0 = new Timer(); + _timer0.Interval = 30; + _timer0.Tick += timer_0_Tick; + } public SongData(Gh3Songlist gh3Songlist1, bool forceRb3) { @@ -967,894 +967,944 @@ public SongData(Gh3Songlist gh3Songlist1, bool forceRb3) } public SongData(string string0, bool bool6, bool bool7) - { - InitializeComponent(); - _songNameTxt.Text = string0; - _bool2 = true; - _songNameTxt.Enabled = false; - _timer0 = new Timer(); - _timer0.Interval = 30; - _timer0.Tick += timer_0_Tick; - var arg710 = _audioCheckBox; - Bool0 = bool6; - arg710.Checked = bool6; - var arg860 = _chartCheckBox; - Bool1 = bool7; - arg860.Checked = bool7; - EnableAudioButtons(); - } - - public SongData(string string0, QbcParser class3621, ZzQbSongObject class3231, string[] string1) - { - InitializeComponent(); - _songNameTxt.Text = string0; - _bool2 = true; - _qbcParser = class3621; - method_6(); - method_4("No Track"); - method_5("No Track"); - method_8(0); - foreach (var current in _qbcParser.NoteList.Keys) - { - method_4(current); - } - if (_qbcParser.Class2282.Count != 0) - { - method_5("faceoffp1"); - } - if (_qbcParser.Class2283.Count != 0) - { - method_5("faceoffp2"); - } - if (_qbcParser.BpmList.Count != 0) - { - method_5("bossbattlep1"); - } - if (_qbcParser.Class2285.Count != 0) - { - method_5("bossbattlep2"); - } - method_7(); - if (class3231 != null) - { - _class3230 = class3231; - return; - } - if (string1.Length == 1) - { - _singleAudioBtn.Checked = true; - _guitarAudioTxt.Text = string1[0]; - } - else - { - string text = null; - string text2 = null; - string text3 = null; - string text4 = null; - string text5 = null; - string text6 = null; - for (var i = 0; i < string1.Length; i++) - { - var text7 = string1[i]; - var text8 = KeyGenerator.GetFileName(text7).ToLower(); - if (string1.Length > 4 && text8.Contains("coop")) - { - if (text5 == null && (text8.Contains("rhythm") || text8.Contains("bass"))) - { - text5 = text7; - } - else if (text4 == null && text8.Contains("guitar")) - { - text4 = text7; - } - else if (text6 == null) - { - text6 = text7; - } - } - else if (text2 == null && (text8.Contains("rhythm") || text8.Contains("bass"))) - { - text2 = text7; - } - else if (text == null && text8.Contains("guitar")) - { - text = text7; - } - else if (text3 == null) - { - text3 = text7; - } - } - if (text == null) - { - throw new Exception("File names did not follow format!"); - } - if (text3 != null) - { - if (text2 != null) - { - if (text4 != null && text5 != null && text6 != null) - { - _coopAudioBtn.Checked = true; - _guitarCoopTxt.Text = text4; - _rhythmCoopTxt.Text = text5; - _bandCoopTxt.Text = text6; - } - else - { - _multiAudioBtn.Checked = true; - } - _rhythmAudioTxt.Text = text2; - } - else - { - _dualAudioBtn.Checked = true; - } - _bandAudioTxt.Text = text3; - } - else - { - _singleAudioBtn.Checked = true; - } - _guitarAudioTxt.Text = text; - } - _previewSlider.method_18(Convert.ToInt32(AudioManager.GetAudioStream(_guitarAudioTxt.Text).vmethod_1().TimeSpan0.TotalSeconds)); - _previewSlider.method_14(_previewSlider.method_17() / 2); - if (_guitarAudioTxt.Text == "" || (!_singleAudioBtn.Checked && (_bandAudioTxt.Text == "" || !_dualAudioBtn.Checked) && (_rhythmAudioTxt.Text == "" || !_multiAudioBtn.Checked) && (_guitarCoopTxt.Text == "" || _rhythmCoopTxt.Text == "" || _bandCoopTxt.Text == "" || !_coopAudioBtn.Checked))) - { - throw new Exception("File names did not follow format!"); - } - } - - public Class248 method_0(string string0) - { - if (_class3230 != null) - { - _class3230.method_0(_songNameTxt.Text); - return new Class248(_class3230, _guitarAudioTxt.Text.Replace(".dat.xen", ".fsb.xen"), string0); - } - string[] string_; - if (_singleAudioBtn.Checked) - { - string_ = new[] - { - _guitarAudioTxt.Text - }; - } - else if (_dualAudioBtn.Checked) - { - string_ = new[] - { - _bandAudioTxt.Text, - _guitarAudioTxt.Text - }; - } - else if (_multiAudioBtn.Checked) - { - string_ = new[] - { - _bandAudioTxt.Text, - _guitarAudioTxt.Text, - _rhythmAudioTxt.Text - }; - } - else - { - string_ = new[] - { - _bandAudioTxt.Text, - _guitarAudioTxt.Text, - _rhythmAudioTxt.Text, - _bandCoopTxt.Text, - _guitarCoopTxt.Text, - _rhythmCoopTxt.Text - }; - } - return new Class248(_songNameTxt.Text, string_, new TimeSpan(0, 0, _previewSlider.method_13()), new TimeSpan(0, 0, _previewSlider.method_13() + Math.Min(_previewSlider.method_17() - _previewSlider.method_13(), 20)), string0); - } - - public Class250 method_1(ZzPakNode2 class3180, string string0) - { - var dictionary = new Dictionary>(); - if (!_easyGuitarBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("easy", _qbcParser.NoteList[(string)_easyGuitarBox.SelectedItem]); - } - if (!_easyRhythmBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythm_easy", _qbcParser.NoteList[(string)_easyRhythmBox.SelectedItem]); - } - if (!_easyCoopBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("guitarcoop_easy", _qbcParser.NoteList[(string)_easyCoopBox.SelectedItem]); - } - if (!_easyCoop2Box.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythmcoop_easy", _qbcParser.NoteList[(string)_easyCoop2Box.SelectedItem]); - } - if (!_mediumGuitarBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("medium", _qbcParser.NoteList[(string)_mediumGuitarBox.SelectedItem]); - } - if (!_mediumRhythmBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythm_medium", _qbcParser.NoteList[(string)_mediumRhythmBox.SelectedItem]); - } - if (!_mediumCoopBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("guitarcoop_medium", _qbcParser.NoteList[(string)_mediumCoopBox.SelectedItem]); - } - if (!_mediumCoop2Box.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythmcoop_medium", _qbcParser.NoteList[(string)_mediumCoop2Box.SelectedItem]); - } - if (!_hardGuitarBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("hard", _qbcParser.NoteList[(string)_hardGuitarBox.SelectedItem]); - } - if (!_hardRhythmBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythm_hard", _qbcParser.NoteList[(string)_hardRhythmBox.SelectedItem]); - } - if (!_hardCoopBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("guitarcoop_hard", _qbcParser.NoteList[(string)_hardCoopBox.SelectedItem]); - } - if (!_hardCoop2Box.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythmcoop_hard", _qbcParser.NoteList[(string)_hardCoop2Box.SelectedItem]); - } - if (!_expertGuitarBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("expert", _qbcParser.NoteList[(string)_expertGuitarBox.SelectedItem]); - } - if (!_expertRhythmBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythm_expert", _qbcParser.NoteList[(string)_expertRhythmBox.SelectedItem]); - } - if (!_expertCoopBox.SelectedItem.Equals("No Track")) - { - dictionary.Add("guitarcoop_expert", _qbcParser.NoteList[(string)_expertCoopBox.SelectedItem]); - } - if (!_expertCoop2Box.SelectedItem.Equals("No Track")) - { - dictionary.Add("rhythmcoop_expert", _qbcParser.NoteList[(string)_expertCoop2Box.SelectedItem]); - } - var class228 = method_2(_faceOffP1Box); - var class2282 = method_2(_faceOffP2Box); - var class2283 = method_2(_bossBattleP1Box); - var class2284 = method_2(_bossBattleP2Box); - _qbcParser.NoteList = dictionary; - _qbcParser.Class2282 = class228; - _qbcParser.Class2283 = class2282; - _qbcParser.BpmList = class2283; - _qbcParser.Class2285 = class2284; - return new Class250(_songNameTxt.Text, _qbcParser, class3180, string0); - } - - private Track method_2(ComboBox comboBox0) - { - if (comboBox0.SelectedItem.Equals("faceoffp1")) - { - return _qbcParser.Class2282; - } - if (comboBox0.SelectedItem.Equals("faceoffp2")) - { - return _qbcParser.Class2283; - } - if (comboBox0.SelectedItem.Equals("bossbattlep1")) - { - return _qbcParser.BpmList; - } - if (comboBox0.SelectedItem.Equals("bossbattlep2")) - { - return _qbcParser.Class2285; - } - return new Track(); - } - - private void EnableAudioButtons() - { - if (Bool0) - { - _bool3 = (_guitarAudioTxt.Text != "" && (_singleAudioBtn.Checked || (_bandAudioTxt.Text != "" && (_dualAudioBtn.Checked || (_rhythmAudioTxt.Text != "" && _multiAudioBtn.Checked) || (_guitarCoopTxt.Text != "" && _rhythmCoopTxt.Text != "" && _bandCoopTxt.Text != "" && _coopAudioBtn.Checked))))); - } - _applyBtn.Enabled = (((_songNameTxt.Enabled && _bool2) || !_songNameTxt.Enabled) && ((Bool0 && _bool3) || !Bool0) && ((Bool1 && _bool4) || !Bool1)); - if (!_songNameTxt.Enabled && !Bool0 && !Bool1) - { - _applyBtn.Enabled = false; - } - } - - private void Audio_CheckBox_CheckedChanged(object sender, EventArgs e) - { - _audioGroupBox.Enabled = (Bool0 = _audioCheckBox.Checked); - } - - private void Chart_CheckBox_CheckedChanged(object sender, EventArgs e) - { - _chartGroupBox.Enabled = (Bool1 = _chartCheckBox.Checked); - } - - private void method_4(string string0) - { - _easyGuitarBox.Items.Add(string0); - _easyRhythmBox.Items.Add(string0); - _easyCoopBox.Items.Add(string0); - _easyCoop2Box.Items.Add(string0); - _mediumGuitarBox.Items.Add(string0); - _mediumRhythmBox.Items.Add(string0); - _mediumCoopBox.Items.Add(string0); - _mediumCoop2Box.Items.Add(string0); - _hardGuitarBox.Items.Add(string0); - _hardRhythmBox.Items.Add(string0); - _hardCoopBox.Items.Add(string0); - _hardCoop2Box.Items.Add(string0); - _expertGuitarBox.Items.Add(string0); - _expertRhythmBox.Items.Add(string0); - _expertCoopBox.Items.Add(string0); - _expertCoop2Box.Items.Add(string0); - } - - private void method_5(string string0) - { - _faceOffP1Box.Items.Add(string0); - _faceOffP2Box.Items.Add(string0); - _bossBattleP1Box.Items.Add(string0); - _bossBattleP2Box.Items.Add(string0); - } - - private void method_6() - { - _easyGuitarBox.Items.Clear(); - _easyRhythmBox.Items.Clear(); - _easyCoopBox.Items.Clear(); - _easyCoop2Box.Items.Clear(); - _mediumGuitarBox.Items.Clear(); - _mediumRhythmBox.Items.Clear(); - _mediumCoopBox.Items.Clear(); - _mediumCoop2Box.Items.Clear(); - _hardGuitarBox.Items.Clear(); - _hardRhythmBox.Items.Clear(); - _hardCoopBox.Items.Clear(); - _hardCoop2Box.Items.Clear(); - _expertGuitarBox.Items.Clear(); - _expertRhythmBox.Items.Clear(); - _expertCoopBox.Items.Clear(); - _expertCoop2Box.Items.Clear(); - _faceOffP1Box.Items.Clear(); - _faceOffP2Box.Items.Clear(); - _bossBattleP1Box.Items.Clear(); - _bossBattleP2Box.Items.Clear(); - } - - private void AutoConfigBtn_Click(object sender, EventArgs e) - { - method_7(); - } - - private void method_7() - { - _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "easy"))); - _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "medium"))); - _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "hard"))); - _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "expert"))); - _hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "hard")); - _mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "medium"); - _easyGuitarBox.SelectedItem = "easy"; - _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_easy"))); - _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_medium"))); - _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_hard"))); - _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_expert"))); - _hardRhythmBox.SelectedItem = (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_hard")); - _mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_medium"); - _easyRhythmBox.SelectedItem = "rhythm_easy"; - _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_easy"))); - _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_medium"))); - _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_hard"))); - _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_expert"))); - _hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_hard")); - _mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_medium"); - _easyCoopBox.SelectedItem = "guitarcoop_easy"; - _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_easy"))); - _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_medium"))); - _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_hard"))); - _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_expert"))); - _hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_hard")); - _mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_medium"); - _easyCoop2Box.SelectedItem = "rhythmcoop_easy"; - _faceOffP1Box.SelectedItem = "faceoffp1"; - _faceOffP2Box.SelectedItem = "faceoffp2"; - _bossBattleP1Box.SelectedItem = "bossbattlep1"; - _bossBattleP2Box.SelectedItem = "bossbattlep2"; - } - - private void method_8(int int0) - { - ListControl arg12F0 = _easyGuitarBox; - ListControl arg1280 = _easyRhythmBox; - ListControl arg11E0 = _easyCoopBox; - ListControl arg1140 = _easyCoop2Box; - ListControl arg10A0 = _mediumGuitarBox; - ListControl arg1000 = _mediumRhythmBox; - ListControl argF60 = _mediumCoopBox; - ListControl argEc0 = _mediumCoop2Box; - ListControl argE20 = _hardGuitarBox; - ListControl argD80 = _hardRhythmBox; - ListControl argCe0 = _hardCoopBox; - ListControl argC40 = _hardCoop2Box; - ListControl argBa0 = _expertGuitarBox; - ListControl argB00 = _expertRhythmBox; - ListControl argA60 = _expertCoopBox; - ListControl arg_9C0 = _expertCoop2Box; - ListControl arg930 = _faceOffP1Box; - ListControl arg_8B0 = _faceOffP2Box; - ListControl arg830 = _bossBattleP1Box; - _bossBattleP2Box.SelectedIndex = int0; - arg830.SelectedIndex = int0; - arg_8B0.SelectedIndex = int0; - arg930.SelectedIndex = int0; - arg_9C0.SelectedIndex = int0; - argA60.SelectedIndex = int0; - argB00.SelectedIndex = int0; - argBa0.SelectedIndex = int0; - argC40.SelectedIndex = int0; - argCe0.SelectedIndex = int0; - argD80.SelectedIndex = int0; - argE20.SelectedIndex = int0; - argEc0.SelectedIndex = int0; - argF60.SelectedIndex = int0; - arg1000.SelectedIndex = int0; - arg10A0.SelectedIndex = int0; - arg1140.SelectedIndex = int0; - arg11E0.SelectedIndex = int0; - arg1280.SelectedIndex = int0; - arg12F0.SelectedIndex = int0; - } - - private void ResetBtn_Click(object sender, EventArgs e) - { - method_8(0); - } - - private void ChartFileBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", true)).Equals("")) - { - _bool4 = false; - try - { + { + InitializeComponent(); + _songNameTxt.Text = string0; + _bool2 = true; + _songNameTxt.Enabled = false; + _timer0 = new Timer(); + _timer0.Interval = 30; + _timer0.Tick += timer_0_Tick; + var arg710 = _audioCheckBox; + Bool0 = bool6; + arg710.Checked = bool6; + var arg860 = _chartCheckBox; + Bool1 = bool7; + arg860.Checked = bool7; + EnableAudioButtons(); + } + + public SongData(string string0, QbcParser class3621, ZzQbSongObject class3231, string[] string1) + { + InitializeComponent(); + _songNameTxt.Text = string0; + _bool2 = true; + _qbcParser = class3621; + method_6(); + method_4("No Track"); + method_5("No Track"); + method_8(0); + foreach (var current in _qbcParser.NoteList.Keys) + { + method_4(current); + } + if (_qbcParser.Class2282.Count != 0) + { + method_5("faceoffp1"); + } + if (_qbcParser.Class2283.Count != 0) + { + method_5("faceoffp2"); + } + if (_qbcParser.BpmList.Count != 0) + { + method_5("bossbattlep1"); + } + if (_qbcParser.Class2285.Count != 0) + { + method_5("bossbattlep2"); + } + method_7(); + if (class3231 != null) + { + _class3230 = class3231; + return; + } + if (string1.Length == 1) + { + _singleAudioBtn.Checked = true; + _guitarAudioTxt.Text = string1[0]; + } + else + { + string text = null; + string text2 = null; + string text3 = null; + string text4 = null; + string text5 = null; + string text6 = null; + for (var i = 0; i < string1.Length; i++) + { + var text7 = string1[i]; + var text8 = KeyGenerator.GetFileName(text7).ToLower(); + if (string1.Length > 4 && text8.Contains("coop")) + { + if (text5 == null && (text8.Contains("rhythm") || text8.Contains("bass"))) + { + text5 = text7; + } + else if (text4 == null && text8.Contains("guitar")) + { + text4 = text7; + } + else if (text6 == null) + { + text6 = text7; + } + } + else if (text2 == null && (text8.Contains("rhythm") || text8.Contains("bass"))) + { + text2 = text7; + } + else if (text == null && text8.Contains("guitar")) + { + text = text7; + } + else if (text3 == null) + { + text3 = text7; + } + } + if (text == null) + { + throw new Exception("File names did not follow format!"); + } + if (text3 != null) + { + if (text2 != null) + { + if (text4 != null && text5 != null && text6 != null) + { + _coopAudioBtn.Checked = true; + _guitarCoopTxt.Text = text4; + _rhythmCoopTxt.Text = text5; + _bandCoopTxt.Text = text6; + } + else + { + _multiAudioBtn.Checked = true; + } + _rhythmAudioTxt.Text = text2; + } + else + { + _dualAudioBtn.Checked = true; + } + _bandAudioTxt.Text = text3; + } + else + { + _singleAudioBtn.Checked = true; + } + _guitarAudioTxt.Text = text; + } + _previewSlider.method_18(Convert.ToInt32(AudioManager.GetAudioStream(_guitarAudioTxt.Text) + .vmethod_1() + .TimeSpan0.TotalSeconds)); + _previewSlider.method_14(_previewSlider.method_17() / 2); + if (_guitarAudioTxt.Text == "" || (!_singleAudioBtn.Checked && + (_bandAudioTxt.Text == "" || !_dualAudioBtn.Checked) && + (_rhythmAudioTxt.Text == "" || !_multiAudioBtn.Checked) && + (_guitarCoopTxt.Text == "" || _rhythmCoopTxt.Text == "" || + _bandCoopTxt.Text == "" || !_coopAudioBtn.Checked))) + { + throw new Exception("File names did not follow format!"); + } + } + + public Class248 method_0(string string0) + { + if (_class3230 != null) + { + _class3230.method_0(_songNameTxt.Text); + return new Class248(_class3230, _guitarAudioTxt.Text.Replace(".dat.xen", ".fsb.xen"), string0); + } + string[] string_; + if (_singleAudioBtn.Checked) + { + string_ = new[] + { + _guitarAudioTxt.Text + }; + } + else if (_dualAudioBtn.Checked) + { + string_ = new[] + { + _bandAudioTxt.Text, + _guitarAudioTxt.Text + }; + } + else if (_multiAudioBtn.Checked) + { + string_ = new[] + { + _bandAudioTxt.Text, + _guitarAudioTxt.Text, + _rhythmAudioTxt.Text + }; + } + else + { + string_ = new[] + { + _bandAudioTxt.Text, + _guitarAudioTxt.Text, + _rhythmAudioTxt.Text, + _bandCoopTxt.Text, + _guitarCoopTxt.Text, + _rhythmCoopTxt.Text + }; + } + return new Class248(_songNameTxt.Text, string_, new TimeSpan(0, 0, _previewSlider.method_13()), + new TimeSpan(0, 0, + _previewSlider.method_13() + Math.Min(_previewSlider.method_17() - _previewSlider.method_13(), 20)), + string0); + } + + public Class250 method_1(ZzPakNode2 class3180, string string0) + { + var dictionary = new Dictionary>(); + if (!_easyGuitarBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("easy", _qbcParser.NoteList[(string) _easyGuitarBox.SelectedItem]); + } + if (!_easyRhythmBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythm_easy", _qbcParser.NoteList[(string) _easyRhythmBox.SelectedItem]); + } + if (!_easyCoopBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("guitarcoop_easy", _qbcParser.NoteList[(string) _easyCoopBox.SelectedItem]); + } + if (!_easyCoop2Box.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythmcoop_easy", _qbcParser.NoteList[(string) _easyCoop2Box.SelectedItem]); + } + if (!_mediumGuitarBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("medium", _qbcParser.NoteList[(string) _mediumGuitarBox.SelectedItem]); + } + if (!_mediumRhythmBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythm_medium", _qbcParser.NoteList[(string) _mediumRhythmBox.SelectedItem]); + } + if (!_mediumCoopBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("guitarcoop_medium", _qbcParser.NoteList[(string) _mediumCoopBox.SelectedItem]); + } + if (!_mediumCoop2Box.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythmcoop_medium", _qbcParser.NoteList[(string) _mediumCoop2Box.SelectedItem]); + } + if (!_hardGuitarBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("hard", _qbcParser.NoteList[(string) _hardGuitarBox.SelectedItem]); + } + if (!_hardRhythmBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythm_hard", _qbcParser.NoteList[(string) _hardRhythmBox.SelectedItem]); + } + if (!_hardCoopBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("guitarcoop_hard", _qbcParser.NoteList[(string) _hardCoopBox.SelectedItem]); + } + if (!_hardCoop2Box.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythmcoop_hard", _qbcParser.NoteList[(string) _hardCoop2Box.SelectedItem]); + } + if (!_expertGuitarBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("expert", _qbcParser.NoteList[(string) _expertGuitarBox.SelectedItem]); + } + if (!_expertRhythmBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythm_expert", _qbcParser.NoteList[(string) _expertRhythmBox.SelectedItem]); + } + if (!_expertCoopBox.SelectedItem.Equals("No Track")) + { + dictionary.Add("guitarcoop_expert", _qbcParser.NoteList[(string) _expertCoopBox.SelectedItem]); + } + if (!_expertCoop2Box.SelectedItem.Equals("No Track")) + { + dictionary.Add("rhythmcoop_expert", _qbcParser.NoteList[(string) _expertCoop2Box.SelectedItem]); + } + var class228 = method_2(_faceOffP1Box); + var class2282 = method_2(_faceOffP2Box); + var class2283 = method_2(_bossBattleP1Box); + var class2284 = method_2(_bossBattleP2Box); + _qbcParser.NoteList = dictionary; + _qbcParser.Class2282 = class228; + _qbcParser.Class2283 = class2282; + _qbcParser.BpmList = class2283; + _qbcParser.Class2285 = class2284; + return new Class250(_songNameTxt.Text, _qbcParser, class3180, string0); + } + + private Track method_2(ComboBox comboBox0) + { + if (comboBox0.SelectedItem.Equals("faceoffp1")) + { + return _qbcParser.Class2282; + } + if (comboBox0.SelectedItem.Equals("faceoffp2")) + { + return _qbcParser.Class2283; + } + if (comboBox0.SelectedItem.Equals("bossbattlep1")) + { + return _qbcParser.BpmList; + } + if (comboBox0.SelectedItem.Equals("bossbattlep2")) + { + return _qbcParser.Class2285; + } + return new Track(); + } + + private void EnableAudioButtons() + { + if (Bool0) + { + _bool3 = (_guitarAudioTxt.Text != "" && (_singleAudioBtn.Checked || + (_bandAudioTxt.Text != "" && + (_dualAudioBtn.Checked || + (_rhythmAudioTxt.Text != "" && _multiAudioBtn.Checked) || + (_guitarCoopTxt.Text != "" && _rhythmCoopTxt.Text != "" && + _bandCoopTxt.Text != "" && _coopAudioBtn.Checked))))); + } + _applyBtn.Enabled = (((_songNameTxt.Enabled && _bool2) || !_songNameTxt.Enabled) && + ((Bool0 && _bool3) || !Bool0) && ((Bool1 && _bool4) || !Bool1)); + if (!_songNameTxt.Enabled && !Bool0 && !Bool1) + { + _applyBtn.Enabled = false; + } + } + + private void Audio_CheckBox_CheckedChanged(object sender, EventArgs e) + { + _audioGroupBox.Enabled = (Bool0 = _audioCheckBox.Checked); + } + + private void Chart_CheckBox_CheckedChanged(object sender, EventArgs e) + { + _chartGroupBox.Enabled = (Bool1 = _chartCheckBox.Checked); + } + + private void method_4(string string0) + { + _easyGuitarBox.Items.Add(string0); + _easyRhythmBox.Items.Add(string0); + _easyCoopBox.Items.Add(string0); + _easyCoop2Box.Items.Add(string0); + _mediumGuitarBox.Items.Add(string0); + _mediumRhythmBox.Items.Add(string0); + _mediumCoopBox.Items.Add(string0); + _mediumCoop2Box.Items.Add(string0); + _hardGuitarBox.Items.Add(string0); + _hardRhythmBox.Items.Add(string0); + _hardCoopBox.Items.Add(string0); + _hardCoop2Box.Items.Add(string0); + _expertGuitarBox.Items.Add(string0); + _expertRhythmBox.Items.Add(string0); + _expertCoopBox.Items.Add(string0); + _expertCoop2Box.Items.Add(string0); + } + + private void method_5(string string0) + { + _faceOffP1Box.Items.Add(string0); + _faceOffP2Box.Items.Add(string0); + _bossBattleP1Box.Items.Add(string0); + _bossBattleP2Box.Items.Add(string0); + } + + private void method_6() + { + _easyGuitarBox.Items.Clear(); + _easyRhythmBox.Items.Clear(); + _easyCoopBox.Items.Clear(); + _easyCoop2Box.Items.Clear(); + _mediumGuitarBox.Items.Clear(); + _mediumRhythmBox.Items.Clear(); + _mediumCoopBox.Items.Clear(); + _mediumCoop2Box.Items.Clear(); + _hardGuitarBox.Items.Clear(); + _hardRhythmBox.Items.Clear(); + _hardCoopBox.Items.Clear(); + _hardCoop2Box.Items.Clear(); + _expertGuitarBox.Items.Clear(); + _expertRhythmBox.Items.Clear(); + _expertCoopBox.Items.Clear(); + _expertCoop2Box.Items.Clear(); + _faceOffP1Box.Items.Clear(); + _faceOffP2Box.Items.Clear(); + _bossBattleP1Box.Items.Clear(); + _bossBattleP2Box.Items.Clear(); + } + + private void AutoConfigBtn_Click(object sender, EventArgs e) + { + method_7(); + } + + private void method_7() + { + _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = + (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "easy"))); + _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = + (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "medium"))); + _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = + (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "hard"))); + _expertGuitarBox.SelectedItem = (_hardGuitarBox.SelectedItem = + (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "expert"))); + _hardGuitarBox.SelectedItem = (_mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "hard")); + _mediumGuitarBox.SelectedItem = (_easyGuitarBox.SelectedItem = "medium"); + _easyGuitarBox.SelectedItem = "easy"; + _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = + (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_easy"))); + _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = + (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_medium"))); + _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = + (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_hard"))); + _expertRhythmBox.SelectedItem = (_hardRhythmBox.SelectedItem = + (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_expert"))); + _hardRhythmBox.SelectedItem = + (_mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_hard")); + _mediumRhythmBox.SelectedItem = (_easyRhythmBox.SelectedItem = "rhythm_medium"); + _easyRhythmBox.SelectedItem = "rhythm_easy"; + _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = + (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_easy"))); + _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = + (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_medium"))); + _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = + (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_hard"))); + _expertCoopBox.SelectedItem = (_hardCoopBox.SelectedItem = + (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_expert"))); + _hardCoopBox.SelectedItem = (_mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_hard")); + _mediumCoopBox.SelectedItem = (_easyCoopBox.SelectedItem = "guitarcoop_medium"); + _easyCoopBox.SelectedItem = "guitarcoop_easy"; + _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = + (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_easy"))); + _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = + (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_medium"))); + _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = + (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_hard"))); + _expertCoop2Box.SelectedItem = (_hardCoop2Box.SelectedItem = + (_mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_expert"))); + _hardCoop2Box.SelectedItem = (_mediumCoop2Box.SelectedItem = + (_easyCoop2Box.SelectedItem = "rhythmcoop_hard")); + _mediumCoop2Box.SelectedItem = (_easyCoop2Box.SelectedItem = "rhythmcoop_medium"); + _easyCoop2Box.SelectedItem = "rhythmcoop_easy"; + _faceOffP1Box.SelectedItem = "faceoffp1"; + _faceOffP2Box.SelectedItem = "faceoffp2"; + _bossBattleP1Box.SelectedItem = "bossbattlep1"; + _bossBattleP2Box.SelectedItem = "bossbattlep2"; + } + + private void method_8(int int0) + { + ListControl arg12F0 = _easyGuitarBox; + ListControl arg1280 = _easyRhythmBox; + ListControl arg11E0 = _easyCoopBox; + ListControl arg1140 = _easyCoop2Box; + ListControl arg10A0 = _mediumGuitarBox; + ListControl arg1000 = _mediumRhythmBox; + ListControl argF60 = _mediumCoopBox; + ListControl argEc0 = _mediumCoop2Box; + ListControl argE20 = _hardGuitarBox; + ListControl argD80 = _hardRhythmBox; + ListControl argCe0 = _hardCoopBox; + ListControl argC40 = _hardCoop2Box; + ListControl argBa0 = _expertGuitarBox; + ListControl argB00 = _expertRhythmBox; + ListControl argA60 = _expertCoopBox; + ListControl arg_9C0 = _expertCoop2Box; + ListControl arg930 = _faceOffP1Box; + ListControl arg_8B0 = _faceOffP2Box; + ListControl arg830 = _bossBattleP1Box; + _bossBattleP2Box.SelectedIndex = int0; + arg830.SelectedIndex = int0; + arg_8B0.SelectedIndex = int0; + arg930.SelectedIndex = int0; + arg_9C0.SelectedIndex = int0; + argA60.SelectedIndex = int0; + argB00.SelectedIndex = int0; + argBa0.SelectedIndex = int0; + argC40.SelectedIndex = int0; + argCe0.SelectedIndex = int0; + argD80.SelectedIndex = int0; + argE20.SelectedIndex = int0; + argEc0.SelectedIndex = int0; + argF60.SelectedIndex = int0; + arg1000.SelectedIndex = int0; + arg10A0.SelectedIndex = int0; + arg1140.SelectedIndex = int0; + arg11E0.SelectedIndex = int0; + arg1280.SelectedIndex = int0; + arg12F0.SelectedIndex = int0; + } + + private void ResetBtn_Click(object sender, EventArgs e) + { + method_8(0); + } + + private void ChartFileBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the game track file.", + "Any Supported Game Track Formats|*.qbc;*.dbc;*_song.pak.xen;*.mid;*.chart|GH3CP QB Based Chart File|*.qbc|GH3CP dB Based Chart File|*.dbc|GH3 Game Track file|*_song.pak.xen|GH standard Midi file|*.mid|dB standard or GH3CP Chart file|*.chart", + true)).Equals("")) + { + _bool4 = false; + try + { //Configures paks if (fileName.EndsWith("_song.pak.xen")) - { - var text2 = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); - using (var @class = new ZzPakNode2(fileName, false)) - { - if (!@class.method_6("songs\\" + text2 + ".mid.qb")) - { - throw new Exception("MID.QB song file not found."); - } - _qbcParser = new QbcParser(text2, @class.ZzGetNode1("songs\\" + text2 + ".mid.qb")); - goto IL_F5; - } - } + { + var text2 = KeyGenerator.GetFileName(fileName).Replace("_song.pak.xen", ""); + using (var @class = new ZzPakNode2(fileName, false)) + { + if (!@class.method_6("songs\\" + text2 + ".mid.qb")) + { + throw new Exception("MID.QB song file not found."); + } + _qbcParser = new QbcParser(text2, @class.ZzGetNode1("songs\\" + text2 + ".mid.qb")); + goto IL_F5; + } + } //Configures qbc - if (fileName.EndsWith(".qbc")) - { - _qbcParser = new QbcParser(fileName); - } + if (fileName.EndsWith(".qbc")) + { + _qbcParser = new QbcParser(fileName); + } //Configures midi else if (fileName.EndsWith(".mid")) - { + { _qbcParser = Midi2Chart.LoadMidiSong(fileName, _forceRb3); - } + } //Configures charts else { //Crashes in this _qbcParser = new ChartParser(fileName).ConvertToQbc(); - } + } IL_F5: - method_6(); - method_4("No Track"); - method_5("No Track"); - method_8(0); - Control arg12B0 = _autoConfigBtn; - _resetBtn.Enabled = true; - arg12B0.Enabled = true; - foreach (var current in _qbcParser.NoteList.Keys) - { - method_4(current); - } - if (_qbcParser.Class2282.Count != 0) - { - method_5("faceoffp1"); - } - if (_qbcParser.Class2283.Count != 0) - { - method_5("faceoffp2"); - } - if (_qbcParser.BpmList.Count != 0) - { - method_5("bossbattlep1"); - } - if (_qbcParser.Class2285.Count != 0) - { - method_5("bossbattlep2"); - } - _chartFileTxt.Text = fileName; - _chartFileTxt.SelectionStart = _chartFileTxt.TextLength; - _bool4 = true; - method_7(); - } - catch (Exception ex) - { - MessageBox.Show("Game Track cannot be parsed.\n" + ex.Message); - } - EnableAudioButtons(); - } - } - - private void method_9() - { - _guitarAudioTxt.Text = (_rhythmAudioTxt.Text = (_bandAudioTxt.Text = (_guitarCoopTxt.Text = (_rhythmCoopTxt.Text = (_bandCoopTxt.Text = ""))))); - _previewSlider.method_18(1); - _previewSlider.method_14(0); - _previewSlider.Enabled = false; - if (_audio != null) - { - _audio.Dispose(); - _audio = null; - } - } - - private void SingleAudioBtn_CheckedChanged(object sender, EventArgs e) - { - Control arg730 = _rhythmAudioBtn; - Control arg_6D0 = _rhythmAudioTxt; - Control arg670 = _bandAudioBtn; - Control arg610 = _bandAudioTxt; - Control arg_5B0 = _guitarCoopBtn; - Control arg550 = _guitarCoopTxt; - Control arg_4F0 = _rhythmCoopBtn; - Control arg490 = _rhythmCoopTxt; - Control arg430 = _bandCoopBtn; - _bandCoopTxt.Enabled = false; - arg430.Enabled = false; - arg490.Enabled = false; - arg_4F0.Enabled = false; - arg550.Enabled = false; - arg_5B0.Enabled = false; - arg610.Enabled = false; - arg670.Enabled = false; - arg_6D0.Enabled = false; - arg730.Enabled = false; - method_9(); - } - - private void DualAudioBtn_CheckedChanged(object sender, EventArgs e) - { - Control arg130 = _bandAudioBtn; - _bandAudioTxt.Enabled = true; - arg130.Enabled = true; - Control arg730 = _rhythmAudioBtn; - Control arg_6D0 = _rhythmAudioTxt; - Control arg670 = _guitarCoopBtn; - Control arg610 = _guitarCoopTxt; - Control arg_5B0 = _rhythmCoopBtn; - Control arg550 = _rhythmCoopTxt; - Control arg_4F0 = _bandCoopBtn; - _bandCoopTxt.Enabled = false; - arg_4F0.Enabled = false; - arg550.Enabled = false; - arg_5B0.Enabled = false; - arg610.Enabled = false; - arg670.Enabled = false; - arg_6D0.Enabled = false; - arg730.Enabled = false; - method_9(); - } - - private void MultiAudioBtn_CheckedChanged(object sender, EventArgs e) - { - Control arg_2B0 = _rhythmAudioBtn; - Control arg250 = _rhythmAudioTxt; - Control arg_1F0 = _bandAudioBtn; - _bandAudioTxt.Enabled = true; - arg_1F0.Enabled = true; - arg250.Enabled = true; - arg_2B0.Enabled = true; - Control arg730 = _guitarCoopBtn; - Control arg_6D0 = _guitarCoopTxt; - Control arg670 = _rhythmCoopBtn; - Control arg610 = _rhythmCoopTxt; - Control arg_5B0 = _bandCoopBtn; - _bandCoopTxt.Enabled = false; - arg_5B0.Enabled = false; - arg610.Enabled = false; - arg670.Enabled = false; - arg_6D0.Enabled = false; - arg730.Enabled = false; - method_9(); - } - - private void CoopAudioBtn_CheckedChanged(object sender, EventArgs e) - { - Control arg730 = _rhythmAudioBtn; - Control arg_6D0 = _rhythmAudioTxt; - Control arg670 = _bandAudioBtn; - Control arg610 = _bandAudioTxt; - Control arg_5B0 = _guitarCoopBtn; - Control arg550 = _guitarCoopTxt; - Control arg_4F0 = _rhythmCoopBtn; - Control arg490 = _rhythmCoopTxt; - Control arg430 = _bandCoopBtn; - _bandCoopTxt.Enabled = true; - arg430.Enabled = true; - arg490.Enabled = true; - arg_4F0.Enabled = true; - arg550.Enabled = true; - arg_5B0.Enabled = true; - arg610.Enabled = true; - arg670.Enabled = true; - arg_6D0.Enabled = true; - arg730.Enabled = true; - method_9(); - } - - private void GuitarAudioBtn_Click(object sender, EventArgs e) - { - var fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Audio track file.", "Any Supported Audio Formats|*.dat.xen;*.mp3;*.wav;*.ogg;*.flac|GH3 Audio Header file|*.dat.xen|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true).ToLower(); + method_6(); + method_4("No Track"); + method_5("No Track"); + method_8(0); + Control arg12B0 = _autoConfigBtn; + _resetBtn.Enabled = true; + arg12B0.Enabled = true; + foreach (var current in _qbcParser.NoteList.Keys) + { + method_4(current); + } + if (_qbcParser.Class2282.Count != 0) + { + method_5("faceoffp1"); + } + if (_qbcParser.Class2283.Count != 0) + { + method_5("faceoffp2"); + } + if (_qbcParser.BpmList.Count != 0) + { + method_5("bossbattlep1"); + } + if (_qbcParser.Class2285.Count != 0) + { + method_5("bossbattlep2"); + } + _chartFileTxt.Text = fileName; + _chartFileTxt.SelectionStart = _chartFileTxt.TextLength; + _bool4 = true; + method_7(); + } + catch (Exception ex) + { + MessageBox.Show("Game Track cannot be parsed.\n" + ex.Message); + } + EnableAudioButtons(); + } + } + + private void method_9() + { + _guitarAudioTxt.Text = (_rhythmAudioTxt.Text = + (_bandAudioTxt.Text = (_guitarCoopTxt.Text = (_rhythmCoopTxt.Text = (_bandCoopTxt.Text = ""))))); + _previewSlider.method_18(1); + _previewSlider.method_14(0); + _previewSlider.Enabled = false; + if (_audio != null) + { + _audio.Dispose(); + _audio = null; + } + } + + private void SingleAudioBtn_CheckedChanged(object sender, EventArgs e) + { + Control arg730 = _rhythmAudioBtn; + Control arg_6D0 = _rhythmAudioTxt; + Control arg670 = _bandAudioBtn; + Control arg610 = _bandAudioTxt; + Control arg_5B0 = _guitarCoopBtn; + Control arg550 = _guitarCoopTxt; + Control arg_4F0 = _rhythmCoopBtn; + Control arg490 = _rhythmCoopTxt; + Control arg430 = _bandCoopBtn; + _bandCoopTxt.Enabled = false; + arg430.Enabled = false; + arg490.Enabled = false; + arg_4F0.Enabled = false; + arg550.Enabled = false; + arg_5B0.Enabled = false; + arg610.Enabled = false; + arg670.Enabled = false; + arg_6D0.Enabled = false; + arg730.Enabled = false; + method_9(); + } + + private void DualAudioBtn_CheckedChanged(object sender, EventArgs e) + { + Control arg130 = _bandAudioBtn; + _bandAudioTxt.Enabled = true; + arg130.Enabled = true; + Control arg730 = _rhythmAudioBtn; + Control arg_6D0 = _rhythmAudioTxt; + Control arg670 = _guitarCoopBtn; + Control arg610 = _guitarCoopTxt; + Control arg_5B0 = _rhythmCoopBtn; + Control arg550 = _rhythmCoopTxt; + Control arg_4F0 = _bandCoopBtn; + _bandCoopTxt.Enabled = false; + arg_4F0.Enabled = false; + arg550.Enabled = false; + arg_5B0.Enabled = false; + arg610.Enabled = false; + arg670.Enabled = false; + arg_6D0.Enabled = false; + arg730.Enabled = false; + method_9(); + } + + private void MultiAudioBtn_CheckedChanged(object sender, EventArgs e) + { + Control arg_2B0 = _rhythmAudioBtn; + Control arg250 = _rhythmAudioTxt; + Control arg_1F0 = _bandAudioBtn; + _bandAudioTxt.Enabled = true; + arg_1F0.Enabled = true; + arg250.Enabled = true; + arg_2B0.Enabled = true; + Control arg730 = _guitarCoopBtn; + Control arg_6D0 = _guitarCoopTxt; + Control arg670 = _rhythmCoopBtn; + Control arg610 = _rhythmCoopTxt; + Control arg_5B0 = _bandCoopBtn; + _bandCoopTxt.Enabled = false; + arg_5B0.Enabled = false; + arg610.Enabled = false; + arg670.Enabled = false; + arg_6D0.Enabled = false; + arg730.Enabled = false; + method_9(); + } + + private void CoopAudioBtn_CheckedChanged(object sender, EventArgs e) + { + Control arg730 = _rhythmAudioBtn; + Control arg_6D0 = _rhythmAudioTxt; + Control arg670 = _bandAudioBtn; + Control arg610 = _bandAudioTxt; + Control arg_5B0 = _guitarCoopBtn; + Control arg550 = _guitarCoopTxt; + Control arg_4F0 = _rhythmCoopBtn; + Control arg490 = _rhythmCoopTxt; + Control arg430 = _bandCoopBtn; + _bandCoopTxt.Enabled = true; + arg430.Enabled = true; + arg490.Enabled = true; + arg_4F0.Enabled = true; + arg550.Enabled = true; + arg_5B0.Enabled = true; + arg610.Enabled = true; + arg670.Enabled = true; + arg_6D0.Enabled = true; + arg730.Enabled = true; + method_9(); + } + + private void GuitarAudioBtn_Click(object sender, EventArgs e) + { + var fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Audio track file.", + "Any Supported Audio Formats|*.dat.xen;*.mp3;*.wav;*.ogg;*.flac|GH3 Audio Header file|*.dat.xen|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true) + .ToLower(); if (_singleAudioBtn.Checked) - { + { if (!(fileName.Equals(""))) - { + { _guitarAudioTxt.Text = fileName; - _guitarAudioTxt.SelectionStart = _guitarAudioTxt.TextLength; - if (fileName.EndsWith(".dat.xen")) - { - if (!File.Exists(fileName.Replace(".dat.xen", ".fsb.xen"))) - { - MessageBox.Show("Data file (FSB.XEN) is missing.", "Error!"); - _class3230 = null; - _guitarAudioTxt.Text = ""; - } - else - { - _class3230 = new ZzQbSongObject(fileName); - if ((int)new FileInfo(fileName.Replace(".dat.xen", ".fsb.xen")).Length != _class3230.Int0) - { - MessageBox.Show("FSB file size does not match!", "Error!"); - _class3230 = null; - _guitarAudioTxt.Text = ""; - } - else - { - _previewSlider.Enabled = false; - } - } - } - else - { - _previewSlider.Enabled = true; - LoadAudio(); - } - EnableAudioButtons(); - } - } - else if (!(fileName.Equals(""))) - { - _guitarAudioTxt.Text = fileName; - _guitarAudioTxt.SelectionStart = _guitarAudioTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); + _guitarAudioTxt.SelectionStart = _guitarAudioTxt.TextLength; + if (fileName.EndsWith(".dat.xen")) + { + if (!File.Exists(fileName.Replace(".dat.xen", ".fsb.xen"))) + { + MessageBox.Show("Data file (FSB.XEN) is missing.", "Error!"); + _class3230 = null; + _guitarAudioTxt.Text = ""; + } + else + { + _class3230 = new ZzQbSongObject(fileName); + if ((int) new FileInfo(fileName.Replace(".dat.xen", ".fsb.xen")).Length != _class3230.Int0) + { + MessageBox.Show("FSB file size does not match!", "Error!"); + _class3230 = null; + _guitarAudioTxt.Text = ""; + } + else + { + _previewSlider.Enabled = false; + } + } + } + else + { + _previewSlider.Enabled = true; + LoadAudio(); + } + EnableAudioButtons(); + } } - } + else if (!(fileName.Equals(""))) + { + _guitarAudioTxt.Text = fileName; + _guitarAudioTxt.SelectionStart = _guitarAudioTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } - private void RhythmAudioBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Rhythm Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { + private void RhythmAudioBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Rhythm Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { _rhythmAudioTxt.Text = fileName; - _rhythmAudioTxt.SelectionStart = _rhythmAudioTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); - } - } - - private void BandAudioBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Band Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { + _rhythmAudioTxt.SelectionStart = _rhythmAudioTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } + + private void BandAudioBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Band Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { _bandAudioTxt.Text = fileName; - _bandAudioTxt.SelectionStart = _bandAudioTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); - } - } - - private void GuitarCoopBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Coop Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { + _bandAudioTxt.SelectionStart = _bandAudioTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } + + private void GuitarCoopBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Guitar Coop Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { _guitarCoopTxt.Text = fileName; - _guitarCoopTxt.SelectionStart = _guitarCoopTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); - } - } - - private void RhythmCoopBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Rhythm Coop Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { + _guitarCoopTxt.SelectionStart = _guitarCoopTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } + + private void RhythmCoopBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Rhythm Coop Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { _rhythmCoopTxt.Text = fileName; - _rhythmCoopTxt.SelectionStart = _rhythmCoopTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); - } - } - - private void BandCoopBtn_Click(object sender, EventArgs e) - { - string fileName; - if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Band Coop Audio track file.", "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", true)).Equals("")) - { + _rhythmCoopTxt.SelectionStart = _rhythmCoopTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } + + private void BandCoopBtn_Click(object sender, EventArgs e) + { + string fileName; + if (!(fileName = KeyGenerator.OpenOrSaveFile("Select the Band Coop Audio track file.", + "Any Supported Audio Formats|*.mp3;*.wav;*.ogg;*.flac|MPEG Layer-3 Audio file|*.mp3|Waveform Audio file|*.wav|Ogg Vorbis Audio file|*.ogg|FLAC Audio File|*.flac", + true)).Equals("")) + { _bandCoopTxt.Text = fileName; - _bandCoopTxt.SelectionStart = _bandCoopTxt.TextLength; - _previewSlider.Enabled = true; - LoadAudio(); - EnableAudioButtons(); - } - } - - private void SongNameTxt_TextChanged(object sender, EventArgs e) - { - if (_gh3Songlist0 != null) - { - _bool2 = (_songNameTxt.Text != "" && !QbSongClass1.smethod_4(_songNameTxt.Text) && !_gh3Songlist0.method_3(_songNameTxt.Text)); - } - EnableAudioButtons(); - } - - private void SongNameTxt_KeyPress(object sender, KeyPressEventArgs e) - { - if (!char.IsControl(e.KeyChar) && !char.IsLetterOrDigit(e.KeyChar) && e.KeyChar != '-' && e.KeyChar != '_') - { - e.Handled = true; - } - } - - private void SongData_FormClosing(object sender, FormClosingEventArgs e) - { - if (_audio != null) - { - _audio.Dispose(); - } - } - - ~SongData() - { - if (_audio != null) - { - _audio.Dispose(); - } - } - - private void timer_0_Tick(object sender, EventArgs e) - { - if (_audio != null && _bool5) - { - _previewSlider.method_14((int)_audio.AudioLength().TotalSeconds); - } - } - - private void Play_Btn_Click(object sender, EventArgs e) - { - if (_audio == null) - { - return; - } - _audio.DifferentStartPlaying(); - _timer0.Start(); - } - - private void Pause_Btn_Click(object sender, EventArgs e) - { - if (_audio == null) - { - return; - } - _audio.StartPlaying(); - _timer0.Stop(); - } - - private void Stop_Btn_Click(object sender, EventArgs e) - { - if (_audio == null) - { - return; - } - _audio.StopPlaying(); - _timer0.Stop(); - _previewSlider.method_14(_previewSlider.method_15()); - _audio.SetStartingTimeBasedOnSomeValue(0); - } - - private void PreviewSlider_MouseUp(object sender, MouseEventArgs e) - { - _bool5 = true; - _audio.SetStartingTime(TimeSpan.FromSeconds(_previewSlider.method_13())); - } - - private void PreviewSlider_MouseDown(object sender, MouseEventArgs e) - { - _bool5 = false; - } - - private void method_10(object sender, EventArgs e) - { - if (_audio != null) - { - _audio.SetVolume(_volumeSlider.method_13() / 100f); - } - } - - private void LoadAudio() - { - try - { - var list = new List(); - if (!_bandCoopTxt.Text.Equals("")) - { - list.Add(AudioManager.GetAudioStream(_bandCoopTxt.Text)); - } - else if (!_bandAudioTxt.Text.Equals("")) - { - list.Add(AudioManager.GetAudioStream(_bandAudioTxt.Text)); - } - if (!_guitarCoopTxt.Text.Equals("") && !_rhythmCoopTxt.Text.Equals("")) - { - list.Insert(0, AudioManager.GetAudioStream(_rhythmCoopTxt.Text)); - list.Insert(0, AudioManager.GetAudioStream(_guitarCoopTxt.Text)); - } - else - { - if (!_rhythmAudioTxt.Text.Equals("")) - { - list.Insert(0, AudioManager.GetAudioStream(_rhythmAudioTxt.Text)); - } - if (!_guitarAudioTxt.Text.Equals("")) - { - list.Insert(0, AudioManager.GetAudioStream(_guitarAudioTxt.Text)); - } - } - if (list.Count != 0) - { - var stream = (list.Count == 1) ? list[0] : new Stream2(list.ToArray()); - if (_audio != null) - { - _audio.Dispose(); - } - _audio = AudioManager.LoadPlayableAudio(Enum25.Const5, stream); - _previewSlider.method_14((int)_audio.AudioLength().TotalSeconds); - _previewSlider.method_18((int)stream.vmethod_1().TimeSpan0.TotalSeconds); - } - } - catch (Exception ex) - { - MessageBox.Show("Cannot load audio file/s.\n" + ex.Message); - } - } - } -} + _bandCoopTxt.SelectionStart = _bandCoopTxt.TextLength; + _previewSlider.Enabled = true; + LoadAudio(); + EnableAudioButtons(); + } + } + + private void SongNameTxt_TextChanged(object sender, EventArgs e) + { + if (_gh3Songlist0 != null) + { + _bool2 = (_songNameTxt.Text != "" && !QbSongClass1.smethod_4(_songNameTxt.Text) && + !_gh3Songlist0.method_3(_songNameTxt.Text)); + } + EnableAudioButtons(); + } + + private void SongNameTxt_KeyPress(object sender, KeyPressEventArgs e) + { + if (!char.IsControl(e.KeyChar) && !char.IsLetterOrDigit(e.KeyChar) && e.KeyChar != '-' && e.KeyChar != '_') + { + e.Handled = true; + } + } + + private void SongData_FormClosing(object sender, FormClosingEventArgs e) + { + if (_audio != null) + { + _audio.Dispose(); + } + } + + ~SongData() + { + if (_audio != null) + { + _audio.Dispose(); + } + } + + private void timer_0_Tick(object sender, EventArgs e) + { + if (_audio != null && _bool5) + { + _previewSlider.method_14((int) _audio.AudioLength().TotalSeconds); + } + } + + private void Play_Btn_Click(object sender, EventArgs e) + { + if (_audio == null) + { + return; + } + _audio.DifferentStartPlaying(); + _timer0.Start(); + } + + private void Pause_Btn_Click(object sender, EventArgs e) + { + if (_audio == null) + { + return; + } + _audio.StartPlaying(); + _timer0.Stop(); + } + + private void Stop_Btn_Click(object sender, EventArgs e) + { + if (_audio == null) + { + return; + } + _audio.StopPlaying(); + _timer0.Stop(); + _previewSlider.method_14(_previewSlider.method_15()); + _audio.SetStartingTimeBasedOnSomeValue(0); + } + + private void PreviewSlider_MouseUp(object sender, MouseEventArgs e) + { + _bool5 = true; + _audio.SetStartingTime(TimeSpan.FromSeconds(_previewSlider.method_13())); + } + + private void PreviewSlider_MouseDown(object sender, MouseEventArgs e) + { + _bool5 = false; + } + + private void method_10(object sender, EventArgs e) + { + if (_audio != null) + { + _audio.SetVolume(_volumeSlider.method_13() / 100f); + } + } + + private void LoadAudio() + { + try + { + var list = new List(); + if (!_bandCoopTxt.Text.Equals("")) + { + list.Add(AudioManager.GetAudioStream(_bandCoopTxt.Text)); + } + else if (!_bandAudioTxt.Text.Equals("")) + { + list.Add(AudioManager.GetAudioStream(_bandAudioTxt.Text)); + } + if (!_guitarCoopTxt.Text.Equals("") && !_rhythmCoopTxt.Text.Equals("")) + { + list.Insert(0, AudioManager.GetAudioStream(_rhythmCoopTxt.Text)); + list.Insert(0, AudioManager.GetAudioStream(_guitarCoopTxt.Text)); + } + else + { + if (!_rhythmAudioTxt.Text.Equals("")) + { + list.Insert(0, AudioManager.GetAudioStream(_rhythmAudioTxt.Text)); + } + if (!_guitarAudioTxt.Text.Equals("")) + { + list.Insert(0, AudioManager.GetAudioStream(_guitarAudioTxt.Text)); + } + } + if (list.Count != 0) + { + var stream = (list.Count == 1) ? list[0] : new Stream2(list.ToArray()); + if (_audio != null) + { + _audio.Dispose(); + } + _audio = AudioManager.LoadPlayableAudio(Enum25.Const5, stream); + _previewSlider.method_14((int) _audio.AudioLength().TotalSeconds); + _previewSlider.method_18((int) stream.vmethod_1().TimeSpan0.TotalSeconds); + } + } + catch (Exception ex) + { + MessageBox.Show("Cannot load audio file/s.\n" + ex.Message); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/SongEditor.cs b/GHNamespaceA/SongEditor.cs index 39274bc..7c5bced 100644 --- a/GHNamespaceA/SongEditor.cs +++ b/GHNamespaceA/SongEditor.cs @@ -15,178 +15,181 @@ namespace GHNamespaceA { - public class SongEditor : UserControl, IDisposable - { - public delegate void Delegate10(object sender, EventArgs e); - - [CompilerGenerated] - private class SongData - { - public SongEditor SongEditor0; - - public string FileName; - - public void LoadAudioData(object object0) - { - using (var stream = AudioManager.GetAudioStream(FileName)) - { - SongEditor0._audioData = new sbyte[stream.vmethod_1().Uint0 * (ulong)stream.vmethod_1().method_0()]; - var array = new float[4096]; - int num; - for (var i = 0; i < SongEditor0._audioData.Length; i += num) - { - if (i + array.Length < SongEditor0._audioData.Length) - { - num = stream.vmethod_4(array, 0, array.Length); - } - else - { - num = stream.vmethod_4(array, 0, SongEditor0._audioData.Length - i); - } - for (var j = 0; j < num; j++) - { - SongEditor0._audioData[i + j] = Class11.smethod_19(array[j]); - } - if (num <= 0) - { - break; - } - } - } - GC.Collect(); - } - } + public class SongEditor : UserControl, IDisposable + { + public delegate void Delegate10(object sender, EventArgs e); - private IContainer icontainer_0; + [CompilerGenerated] + private class SongData + { + public SongEditor SongEditor0; - private readonly Timer _timer; + public string FileName; - private readonly VScrollBar _verticalScrollBar = new VScrollBar(); + public void LoadAudioData(object object0) + { + using (var stream = AudioManager.GetAudioStream(FileName)) + { + SongEditor0._audioData = new sbyte[stream.vmethod_1().Uint0 * + (ulong) stream.vmethod_1().method_0()]; + var array = new float[4096]; + int num; + for (var i = 0; i < SongEditor0._audioData.Length; i += num) + { + if (i + array.Length < SongEditor0._audioData.Length) + { + num = stream.vmethod_4(array, 0, array.Length); + } + else + { + num = stream.vmethod_4(array, 0, SongEditor0._audioData.Length - i); + } + for (var j = 0; j < num; j++) + { + SongEditor0._audioData[i + j] = Class11.smethod_19(array[j]); + } + if (num <= 0) + { + break; + } + } + } + GC.Collect(); + } + } - private int _width; + private IContainer icontainer_0; - private int _height; + private readonly Timer _timer; - private int _int2; + private readonly VScrollBar _verticalScrollBar = new VScrollBar(); - private int _usedForCalculatingLastFretbar; + private int _width; - private int _someFretbarValue; + private int _height; - private int _lastFretbarValue; + private int _int2; - private float _float0; + private int _usedForCalculatingLastFretbar; - private float _fretboardAngleFloat; + private int _someFretbarValue; - private float _float2; + private int _lastFretbarValue; - private int _lastFretbar; + private float _float0; - private QbcParser _chart; + private float _fretboardAngleFloat; - private IPlayableAudio _audio; + private float _float2; - private sbyte[] _audioData; + private int _lastFretbar; - private readonly Pen _penBlack = Pens.Black; + private QbcParser _chart; - private readonly Pen _penGray = Pens.Gray; + private IPlayableAudio _audio; - private readonly Pen _penLightGray = Pens.LightGray; + private sbyte[] _audioData; - private bool _doubleFretbarWidth; + private readonly Pen _penBlack = Pens.Black; - private int _numberOfNoteLines = 4; + private readonly Pen _penGray = Pens.Gray; - public decimal FretbarWidth; + private readonly Pen _penLightGray = Pens.LightGray; - private readonly Brush _brushGrayText = SystemBrushes.GrayText; + private bool _doubleFretbarWidth; - private readonly Font _fontVerdana = new Font("Verdana", 24f); + private int _numberOfNoteLines = 4; - private readonly Brush[] _noteBrush = { - Brushes.Green, - Brushes.Red, - Brushes.Yellow, - Brushes.Blue, - Brushes.Orange, - Brushes.LightGray - }; + public decimal FretbarWidth; - private Pen[] _notePen = { - Pens.Green, - Pens.Red, - Pens.Yellow, - Pens.Blue, - Pens.Orange, - Pens.LightGray - }; + private readonly Brush _brushGrayText = SystemBrushes.GrayText; - private readonly Pen[] _pen4 = new Pen[6]; + private readonly Font _fontVerdana = new Font("Verdana", 24f); - private readonly Brush _brushBlack = Brushes.Black; + private readonly Brush[] _noteBrush = + { + Brushes.Green, + Brushes.Red, + Brushes.Yellow, + Brushes.Blue, + Brushes.Orange, + Brushes.LightGray + }; + + private Pen[] _notePen = + { + Pens.Green, + Pens.Red, + Pens.Yellow, + Pens.Blue, + Pens.Orange, + Pens.LightGray + }; - private readonly Brush _brushWhite = Brushes.White; + private readonly Pen[] _pen4 = new Pen[6]; - private readonly Pen _penBlack2 = Pens.Black; + private readonly Brush _brushBlack = Brushes.Black; - private readonly Pen _penTransparentBlue = new Pen(Color.FromArgb(30, Color.Blue)); + private readonly Brush _brushWhite = Brushes.White; - private readonly double _double0 = 2.5132741228718345; + private readonly Pen _penBlack2 = Pens.Black; - private bool _gamemodeView = true; + private readonly Pen _penTransparentBlue = new Pen(Color.FromArgb(30, Color.Blue)); - private Size _editorSize = new Size(200, 600); + private readonly double _double0 = 2.5132741228718345; - private float _float3; + private bool _gamemodeView = true; - private double _double1; + private Size _editorSize = new Size(200, 600); - private float _fretboardAngle; + private float _float3; - public string Difficulty; + private double _double1; - public float Float5 = 10f; + private float _fretboardAngle; - public Size Size1 = new Size(20, 60); + public string Difficulty; - public bool LoadStarpowerTextures = true; + public float Float5 = 10f; - public bool LoadHopoTextures = true; + public Size Size1 = new Size(20, 60); - public bool ShowAudioOnFretboard = true; + public bool LoadStarpowerTextures = true; - private double _hyperspeed = 1.0; + public bool LoadHopoTextures = true; + + public bool ShowAudioOnFretboard = true; + + private double _hyperspeed = 1.0; private Delegate10 _delegate100; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - SuspendLayout(); - AutoScaleDimensions = new SizeF(6f, 13f); - AutoScaleMode = AutoScaleMode.Font; - Name = "SongEditor"; - ResumeLayout(false); - } - - public AudioStatus GetAudioStatus() - { - if (_audio == null) - { - return AudioStatus.ShouldStopAudio; - } - return _audio.GetStatus(); - } + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + SuspendLayout(); + AutoScaleDimensions = new SizeF(6f, 13f); + AutoScaleMode = AutoScaleMode.Font; + Name = "SongEditor"; + ResumeLayout(false); + } + + public AudioStatus GetAudioStatus() + { + if (_audio == null) + { + return AudioStatus.ShouldStopAudio; + } + return _audio.GetStatus(); + } public void SetBeatSize(int beatSize) { @@ -195,98 +198,100 @@ public void SetBeatSize(int beatSize) return; } Size1.Width = beatSize; - FretbarWidth = Size1.Width / (decimal)_chart.FretbarList[1]; - RedrawFretboard(); - } + FretbarWidth = Size1.Width / (decimal) _chart.FretbarList[1]; + RedrawFretboard(); + } - public void SetOffset(int offset) - { + public void SetOffset(int offset) + { if (_chart == null) { return; } var ghSong = _chart.Gh3Song0; - _chart.Gh3Song0.GemOffset = offset; - ghSong.FretbarOffset = offset; - RedrawFretboard(); - } - - public bool ShouldDoubleFretbarWidth() - { - return _doubleFretbarWidth; - } - - public void SetDoubleFretbarWidth(bool bool5) - { - ScrollBar arg220 = _verticalScrollBar; - _doubleFretbarWidth = bool5; - arg220.Maximum = (bool5 ? _someFretbarValue : _lastFretbarValue) - 1; - RedrawFretboard(); - } - - public bool Has5NoteLines() - { - return _numberOfNoteLines == 5; - } - - public void Set5NoteLines(bool bool5) - { - _numberOfNoteLines = (bool5 ? 5 : 4); - } - - public bool IsGamemodeView() - { - return _gamemodeView; - } - - public void SetGamemodeView(bool isGamemode) - { - _gamemodeView = isGamemode; - RedrawFretboard(); - } - - public void SetHyperspeed(double hyperspeed) - { - _hyperspeed = hyperspeed; - RedrawFretboard(); - } - - public void SetFretboardAngle(double double3) - { - _fretboardAngle = Convert.ToSingle(Math.Pow(Math.Cos(_double1 = 3.1415926535897932 * double3 / 180.0), 7.3890560989306495)); - RedrawFretboard(); - } - - public SongEditor() - { - InitializeComponent(); - BackColor = Color.White; - MouseMove += SongEditor_MouseMove; - MouseDown += SongEditor_MouseDown; - MouseWheel += SongEditor_MouseWheel; - Resize += SongEditor_Resize; - Controls.Add(_verticalScrollBar); - SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); - _timer = new Timer(); - _timer.Interval = 20; - _timer.Tick += timer_0_Tick; - _timer.Start(); - } - - public void LoadChart(QbcParser chartFile) - { - _chart = chartFile; - chartFile.FretbarList[0] = 0; - _lastFretbar = _chart.FretbarList[_chart.FretbarList.Count - 1]; - FretbarWidth = Size1.Width / (decimal)_chart.FretbarList[1]; + _chart.Gh3Song0.GemOffset = offset; + ghSong.FretbarOffset = offset; + RedrawFretboard(); + } + + public bool ShouldDoubleFretbarWidth() + { + return _doubleFretbarWidth; + } + + public void SetDoubleFretbarWidth(bool bool5) + { + ScrollBar arg220 = _verticalScrollBar; + _doubleFretbarWidth = bool5; + arg220.Maximum = (bool5 ? _someFretbarValue : _lastFretbarValue) - 1; + RedrawFretboard(); + } + + public bool Has5NoteLines() + { + return _numberOfNoteLines == 5; + } + + public void Set5NoteLines(bool bool5) + { + _numberOfNoteLines = (bool5 ? 5 : 4); + } + + public bool IsGamemodeView() + { + return _gamemodeView; + } + + public void SetGamemodeView(bool isGamemode) + { + _gamemodeView = isGamemode; + RedrawFretboard(); + } + + public void SetHyperspeed(double hyperspeed) + { + _hyperspeed = hyperspeed; + RedrawFretboard(); + } + + public void SetFretboardAngle(double double3) + { + _fretboardAngle = Convert.ToSingle(Math.Pow(Math.Cos(_double1 = 3.1415926535897932 * double3 / 180.0), + 7.3890560989306495)); + RedrawFretboard(); + } + + public SongEditor() + { + InitializeComponent(); + BackColor = Color.White; + MouseMove += SongEditor_MouseMove; + MouseDown += SongEditor_MouseDown; + MouseWheel += SongEditor_MouseWheel; + Resize += SongEditor_Resize; + Controls.Add(_verticalScrollBar); + SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, + true); + _timer = new Timer(); + _timer.Interval = 20; + _timer.Tick += timer_0_Tick; + _timer.Start(); + } + + public void LoadChart(QbcParser chartFile) + { + _chart = chartFile; + chartFile.FretbarList[0] = 0; + _lastFretbar = _chart.FretbarList[_chart.FretbarList.Count - 1]; + FretbarWidth = Size1.Width / (decimal) _chart.FretbarList[1]; SetFretboardAngle(15.0); - Difficulty = "expert"; - for (var i = 0; i < _noteBrush.Length; i++) - { - _pen4[i] = new Pen(_noteBrush[i], Size1.Height / 24f); - } + Difficulty = "expert"; + for (var i = 0; i < _noteBrush.Length; i++) + { + _pen4[i] = new Pen(_noteBrush[i], Size1.Height / 24f); + } RedrawFretboard(); - } + } public void LoadAudio(string fileName) { @@ -306,827 +311,942 @@ public void LoadAudio(string fileName) ThreadPool.QueueUserWorkItem(songData.LoadAudioData); } - private void RedrawFretboard() - { - if (_chart == null) - { - return; - } - _verticalScrollBar.Height = (_height = Height); - _width = (_verticalScrollBar.Left = Width - _verticalScrollBar.Width); - _verticalScrollBar.Top = 0; - _editorSize.Height = _width / 2; - _editorSize.Width = _editorSize.Height / 3; - _float0 = Size1.Height + Float5 * (Has5NoteLines() ? 4 : 5); - _float3 = _editorSize.Width / (1f - _fretboardAngle); - if (_float3 > _height * 3f / 4f) - { - _float3 = _height * 3f / 4f; - } - _fretboardAngleFloat = (IsGamemodeView() ? Convert.ToSingle(Math.Log(Math.Abs(1.0 - _float3 * (1f - _fretboardAngle) / (double)_editorSize.Width), _fretboardAngle)) : ((_width - Float5 * 2f) / Size1.Width)); - _someFretbarValue = (int)Math.Ceiling(_chart.FretbarList.Count / (double)_fretboardAngleFloat); - _usedForCalculatingLastFretbar = (IsGamemodeView() ? Convert.ToInt32(_chart.FretbarList[1] / _hyperspeed * Math.Log(Math.Abs(1.0 - _float3 * (1f - _fretboardAngle) / (double)_editorSize.Width), _fretboardAngle)) : method_15(_width - Float5 * 2f)); - _lastFretbarValue = (int)Math.Ceiling(_lastFretbar / (double)_usedForCalculatingLastFretbar); - _int2 = _height / (int)_float0; - _verticalScrollBar.Minimum = 0; - _verticalScrollBar.SmallChange = 1; - _verticalScrollBar.LargeChange = (IsGamemodeView() ? ((int)_fretboardAngleFloat) : _int2); - _verticalScrollBar.Maximum = (IsGamemodeView() ? (_chart.FretbarList.Count * 2 + _verticalScrollBar.LargeChange) : ((ShouldDoubleFretbarWidth() ? _someFretbarValue : _lastFretbarValue) - 1)); - _verticalScrollBar.Value = (IsGamemodeView() ? (_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange) : 0); + private void RedrawFretboard() + { + if (_chart == null) + { + return; + } + _verticalScrollBar.Height = (_height = Height); + _width = (_verticalScrollBar.Left = Width - _verticalScrollBar.Width); + _verticalScrollBar.Top = 0; + _editorSize.Height = _width / 2; + _editorSize.Width = _editorSize.Height / 3; + _float0 = Size1.Height + Float5 * (Has5NoteLines() ? 4 : 5); + _float3 = _editorSize.Width / (1f - _fretboardAngle); + if (_float3 > _height * 3f / 4f) + { + _float3 = _height * 3f / 4f; + } + _fretboardAngleFloat = (IsGamemodeView() + ? Convert.ToSingle(Math.Log( + Math.Abs(1.0 - _float3 * (1f - _fretboardAngle) / (double) _editorSize.Width), _fretboardAngle)) + : ((_width - Float5 * 2f) / Size1.Width)); + _someFretbarValue = (int) Math.Ceiling(_chart.FretbarList.Count / (double) _fretboardAngleFloat); + _usedForCalculatingLastFretbar = (IsGamemodeView() + ? Convert.ToInt32(_chart.FretbarList[1] / _hyperspeed * + Math.Log( + Math.Abs(1.0 - _float3 * (1f - _fretboardAngle) / (double) _editorSize.Width), + _fretboardAngle)) + : method_15(_width - Float5 * 2f)); + _lastFretbarValue = (int) Math.Ceiling(_lastFretbar / (double) _usedForCalculatingLastFretbar); + _int2 = _height / (int) _float0; + _verticalScrollBar.Minimum = 0; + _verticalScrollBar.SmallChange = 1; + _verticalScrollBar.LargeChange = (IsGamemodeView() ? ((int) _fretboardAngleFloat) : _int2); + _verticalScrollBar.Maximum = (IsGamemodeView() + ? (_chart.FretbarList.Count * 2 + _verticalScrollBar.LargeChange) + : ((ShouldDoubleFretbarWidth() ? _someFretbarValue : _lastFretbarValue) - 1)); + _verticalScrollBar.Value = (IsGamemodeView() + ? (_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange) + : 0); + } + + private void timer_0_Tick(object sender, EventArgs e) + { + Invalidate(); + } + + private void SongEditor_Resize(object sender, EventArgs e) + { + RedrawFretboard(); + } + + private void SongEditor_MouseMove(object sender, MouseEventArgs e) + { + _float2 = e.X - Float5; + if (_float2 < 0f) + { + _float2 = 0f; + return; + } + if (_float2 > Width - Float5 * 2f) + { + _float2 = Width - Float5 * 2f; + } + } + + private void SongEditor_MouseDown(object sender, MouseEventArgs e) + { + if (e.Clicks == 2 && e.Button == MouseButtons.Right) + { + Set5NoteLines(!Has5NoteLines()); + return; + } + if (e.Clicks == 2 && e.Button == MouseButtons.Left) + { + SetDoubleFretbarWidth(!ShouldDoubleFretbarWidth()); + } + } + + private void SongEditor_MouseWheel(object sender, MouseEventArgs e) + { + var num = _verticalScrollBar.Value - e.Delta / SystemInformation.MouseWheelScrollDelta; + if (_verticalScrollBar.Maximum - (_verticalScrollBar.LargeChange - _verticalScrollBar.SmallChange) >= num && + _verticalScrollBar.Minimum <= num) + { + _verticalScrollBar.Value = num; + } + } + + private float method_14(int int8) + { + return Convert.ToSingle(int8 * FretbarWidth); + } + + private int method_15(float float6) + { + return Convert.ToInt32((decimal) float6 / FretbarWidth); + } + + private int method_16(float float6) + { + var num = (int) Math.Floor(float6); + if (num + 1 >= _chart.FretbarList.Count) + { + return _lastFretbar; + } + if (num < 0) + { + return 0; + } + var num2 = _chart.FretbarList[num]; + return num2 + Convert.ToInt32((float6 - num) * (_chart.FretbarList[num + 1] - num2)); } - private void timer_0_Tick(object sender, EventArgs e) - { - Invalidate(); - } - - private void SongEditor_Resize(object sender, EventArgs e) - { - RedrawFretboard(); - } - - private void SongEditor_MouseMove(object sender, MouseEventArgs e) - { - _float2 = e.X - Float5; - if (_float2 < 0f) - { - _float2 = 0f; - return; - } - if (_float2 > Width - Float5 * 2f) - { - _float2 = Width - Float5 * 2f; - } - } - - private void SongEditor_MouseDown(object sender, MouseEventArgs e) - { - if (e.Clicks == 2 && e.Button == MouseButtons.Right) - { - Set5NoteLines(!Has5NoteLines()); - return; - } - if (e.Clicks == 2 && e.Button == MouseButtons.Left) - { - SetDoubleFretbarWidth(!ShouldDoubleFretbarWidth()); - } - } - - private void SongEditor_MouseWheel(object sender, MouseEventArgs e) - { - var num = _verticalScrollBar.Value - e.Delta / SystemInformation.MouseWheelScrollDelta; - if (_verticalScrollBar.Maximum - (_verticalScrollBar.LargeChange - _verticalScrollBar.SmallChange) >= num && _verticalScrollBar.Minimum <= num) - { - _verticalScrollBar.Value = num; - } - } - - private float method_14(int int8) - { - return Convert.ToSingle(int8 * FretbarWidth); - } - - private int method_15(float float6) - { - return Convert.ToInt32((decimal)float6 / FretbarWidth); - } - - private int method_16(float float6) - { - var num = (int)Math.Floor(float6); - if (num + 1 >= _chart.FretbarList.Count) - { - return _lastFretbar; - } - if (num < 0) - { - return 0; - } - var num2 = _chart.FretbarList[num]; - return num2 + Convert.ToInt32((float6 - num) * (_chart.FretbarList[num + 1] - num2)); - } - - private static bool smethod_0(bool[] bool5, bool[] bool6) - { - for (var i = 0; i < 5; i++) - { - if (bool5[i] && bool6[i]) - { - return false; - } - } - return true; - } - - private void method_17(Graphics graphics0, int int8, int int9, float float6, float float7) - { - int8 += _chart.Gh3Song0.FretbarOffset; - int9 += _chart.Gh3Song0.FretbarOffset; - graphics0.SetClip(new RectangleF(float6, 0f, _width - float6 * 2f, _height)); - var count = _chart.FretbarList.Count; - var num = _chart.FretbarList.method_7(int8); - var num2 = _chart.FretbarList.method_7(int9); - var num3 = _chart.FretbarList[num]; - var num4 = (num + 1 < count) ? ((int8 - num3) / (float)(_chart.FretbarList[num + 1] - num3)) : 0f; - var count2 = _chart.TsList.Count; - var num5 = _chart.TsList.method_1(num3); - var num6 = _chart.TsList.Values[num5][0]; - var num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); - var num8 = (count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1; - var num9 = 0f; - var y = float7 + Size1.Height; - for (var i = num; i <= num2; i++) - { - var num10 = _chart.FretbarList[i]; - if (ShouldDoubleFretbarWidth()) - { - num9 = float6 + (i - num - num4) * Size1.Width; - } - else - { - num9 = float6 + method_14(num10 - int8); - } - if (i - num7 == 0) - { - graphics0.DrawString(string.Concat(num6), _fontVerdana, _brushGrayText, num9 - 4f, float7 - 3f); - graphics0.DrawString(string.Concat(4), _fontVerdana, _brushGrayText, num9 - 4f, float7 + Size1.Height / 2f - 3f); - } - if (i == num8) - { - num5++; - num6 = _chart.TsList.Values[num5][0]; - num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); - num8 = ((count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1); - graphics0.DrawString(string.Concat(num6), _fontVerdana, _brushGrayText, num9 - 4f, float7 - 3f); - graphics0.DrawString(string.Concat(4), _fontVerdana, _brushGrayText, num9 - 4f, float7 + Size1.Height / 2f - 3f); - } - if (num9 >= float6) - { - graphics0.DrawLine(((i - num7) % num6 == 0) ? _penBlack : _penGray, num9, float7, num9, y); - } - if (i + 1 < count) - { - if (ShouldDoubleFretbarWidth()) - { - num9 += 0.5f * Size1.Width; - } - else - { - num9 += method_14(_chart.FretbarList[i + 1] - num10) / 2f; - } - if (num9 >= float6 && num9 <= _width - float6) - { - graphics0.DrawLine(_penLightGray, num9, float7, num9, y); - } - } - } - var x = (int9 >= _lastFretbar) ? num9 : (_width - float6); - for (var j = 1; j < _numberOfNoteLines; j++) - { - graphics0.DrawLine(_penGray, float6, y = float7 + j * Size1.Height / (float)_numberOfNoteLines, x, y); - } - graphics0.DrawLine(_penBlack, float6, float7, x, float7); - graphics0.DrawLine(_penBlack, float6, y = float7 + Size1.Height, x, y); - graphics0.ResetClip(); - } - - private void DrawFlatViewNotes(Graphics graphics0, int int8, int int9, float float6, float float7) - { - int8 += _chart.Gh3Song0.GemOffset; - int9 += _chart.Gh3Song0.GemOffset; - var @class = _chart.NoteList.ContainsKey(Difficulty) ? _chart.NoteList[Difficulty] : new Track(); - var class2 = _chart.SpList.ContainsKey(Difficulty) ? _chart.SpList[Difficulty] : new Track(); - var arg_9A0 = @class.Count; - var num = @class.method_1(int8); - var num2 = @class.method_1(int9); - var num3 = @class.Keys[num]; - if (int8 < _lastFretbar && num3 <= int9) - { - var count = _chart.FretbarList.Count; - var num4 = _chart.FretbarList.method_7(num3); - var num5 = _chart.FretbarList[num4]; - var num6 = _chart.FretbarList[num4 + 1] - num5; - var num7 = (count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1; - var num8 = _chart.FretbarList.method_7(int8); - var num9 = (int8 - _chart.FretbarList[num8]) / (float)(_chart.FretbarList[num8 + 1] - _chart.FretbarList[num8]); - var count2 = _chart.TsList.Count; - var num10 = _chart.TsList.method_1(num3); - var num11 = _chart.TsList.Values[num10][0]; - var num12 = (count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1; - var count3 = class2.Count; - var num13 = class2.method_1(num3); - var num14 = (class2.Count == 0 || class2.Keys[num13] > num3) ? -1 : (class2.Keys[num13] + class2.Values[num13][0]); - var num15 = (count3 > num13 + 1) ? @class.method_1(class2.Keys[(num14 != -1) ? (num13 + 1) : num13]) : -1; - if (num14 == -1) - { - num13--; - } - var num16 = Size1.Height / (float)_numberOfNoteLines; - var num17 = Size1.Height / 15f; - var num18 = num17 / 1.6f; - var num19 = num17 * 2f; - var num20 = num18 * 2f; - var val = _width - float6; - if (Has5NoteLines()) - { - float7 += num16 / 2f; - } - for (var i = num; i <= num2; i++) - { - var num21 = @class.Keys[i]; - var class3 = @class[num21]; - if (i == num7) - { - num4 = _chart.FretbarList.method_7(num21); - num5 = _chart.FretbarList[num4]; - num6 = _chart.FretbarList[num4 + 1] - num5; - num7 = ((count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1); - } - if (i == num12) - { - num10++; - num11 = _chart.TsList.Values[num10][0]; - num12 = ((count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1); - } - if (i == num15) - { - num13++; - num14 = class2.Keys[num13] + class2.Values[num13][0]; - num15 = ((count3 > num13 + 1) ? @class.method_1(class2.Keys[num13 + 1]) : -1); - } - var showDrawSp = LoadStarpowerTextures && num14 >= num21; - float num22; - float num23; - if (ShouldDoubleFretbarWidth()) - { - num22 = Math.Max(float6 + (num4 - num8 - num9 + (num21 - num5) / (float)num6) * Size1.Width, float6); - if (class3.SustainLength - _chart.Int0 > _chart.Int0) - { - num23 = num21 + class3.SustainLength - _chart.Int0; - var num24 = _chart.FretbarList.method_7((int)num23); - num23 = Math.Min(float6 + (num24 - num8 - num9 + (num23 - _chart.FretbarList[num24]) / (_chart.FretbarList[num24 + 1] - _chart.FretbarList[num24])) * Size1.Width, val); - } - else - { - num23 = -1f; - } - } - else - { - num22 = float6 + method_14(num21 - int8); - num23 = ((class3.SustainLength - _chart.Int0 > _chart.Int0) ? Math.Min(num22 + method_14(class3.SustainLength - _chart.Int0), val) : -1f); - num22 = Math.Max(num22, float6); - } - if (num23 == -1f || num23 >= float6) - { - var shouldDrawHopo = LoadHopoTextures && ((i != 0 && smethod_0(@class[@class.Keys[i - 1]].NoteValues, class3.NoteValues) && num21 - @class.Keys[i - 1] <= num11 / 4f * num6 / ((_chart.Gh3Song0.HammerOn == 0f) ? QbcParser.Float0 : _chart.Gh3Song0.HammerOn)) ^ class3.NoteValues[5]); - for (var j = 0; j < 6; j++) - { - if (class3.NoteValues[j]) - { - var num25 = float7 + num16 * j; - if (num23 != -1f) - { - graphics0.DrawLine(_pen4[j], num22, num25, num23, num25); - graphics0.DrawRectangle(_penBlack2, num22, num25 - 1f, num23 - num22, _pen4[j].Width); - } - if (num != i || num == 0) - { - if (showDrawSp) - { - var array = new PointF[5]; - for (var k = 0; k < 5; k++) - { - array[k] = new PointF(num22 + num19 * (float)Math.Sin(k * _double0), num25 - num19 * (float)Math.Cos(k * _double0)); - } - graphics0.FillPolygon(_brushBlack, array, FillMode.Winding); - } - var rect = new RectangleF(num22 - num17, num25 - num17, num19, num19); - graphics0.FillEllipse(_noteBrush[j], rect); - graphics0.DrawEllipse(_penBlack2, rect); - if (shouldDrawHopo) - { - rect = new RectangleF(num22 - num18, num25 - num18, num20, num20); - graphics0.FillEllipse(_brushWhite, rect); - graphics0.DrawEllipse(_penBlack2, rect); - } - } - } - } - } - } - } - } - - private void DrawAudio(Graphics graphics0, int int8, int int9, float float6, float float7) - { - if (_audioData == null) - { - return; - } - var num = float6; - var x = num; - var num2 = 0f; - var num3 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int8 / 1000m)); - var num4 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int9 / 1000m)); - num4 = Math.Min(num4, _audioData.Length); - var num5 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 / (FretbarWidth * 1000m)); - var i = num3; - for (var j = 0; j < (int)_audio.GetWaveFormat().short_0; j++) - { - while (i < num4) - { - var num6 = -128f; - var num7 = 127f; - if (ShouldDoubleFretbarWidth()) - { - num5 = Size1.Width; - } - var num8 = j; - while (num8 < num5 && num8 + i < num4) - { - num6 = Math.Max(num6, _audioData[num8 + i]); - num7 = Math.Min(num7, _audioData[num8 + i]); - num8 += _audio.GetWaveFormat().short_0; - } - var num9 = (num7 + 128f) * Size1.Height / 256f; - var num10 = (num6 + 128f) * Size1.Height / 256f; - if (num6 != num7) - { - if (num5 <= 1E-10) - { - return; - } - if (num9 == num10) - { - if (num2 != 0f) - { - graphics0.DrawLine(_penTransparentBlue, x, float7 + num2, num, float7 + num10); - } - } - else - { - graphics0.DrawLine(_penTransparentBlue, num, float7 + num9, num, float7 + num10); - } - } - x = num; - num2 = num10; - num += 1f; - i += num5; - } - num = float6; - x = num; - num2 = 0f; - i = num3; - } - } - - private void DrawFlatView(Graphics graphics0) - { - var num = 0; - var num2 = 0; - if (ShouldDoubleFretbarWidth()) - { - var num3 = Math.Min(_int2, _someFretbarValue); - for (var i = 0; i < num3; i++) - { - num = method_16(_fretboardAngleFloat * (_verticalScrollBar.Value + i)); - num2 = method_16(_fretboardAngleFloat * (_verticalScrollBar.Value + i + 1)); - var num4 = Float5 * 2f + _float0 * i; - method_17(graphics0, num, num2, Float5, num4); - DrawFlatViewNotes(graphics0, num, num2, Float5, num4); - } - } - else - { - var num5 = Math.Min(_int2, _lastFretbarValue); - var j = 0; - if (_audio != null) - { - j = (int)_audio.AudioLength().TotalMilliseconds; - } - if (GetAudioStatus() == AudioStatus.ShouldStartAudio) - { - while (j < _usedForCalculatingLastFretbar * _verticalScrollBar.Value) - { - _verticalScrollBar.Value--; - } - } - for (var k = 0; k < num5; k++) - { - num = _usedForCalculatingLastFretbar * (_verticalScrollBar.Value + k); - num2 = _usedForCalculatingLastFretbar * (_verticalScrollBar.Value + k + 1); - var num4 = Float5 * 2f + _float0 * k; - if (ShowAudioOnFretboard) - { - DrawAudio(graphics0, num, num2, Float5, num4); - } - method_17(graphics0, num, num2, Float5, num4); - DrawFlatViewNotes(graphics0, num, num2, Float5, num4); - if (_audio != null && num <= j && j <= num2) - { - var smoothingMode = graphics0.SmoothingMode; - graphics0.SmoothingMode = SmoothingMode.None; - graphics0.DrawLine(_penBlack2, Float5 + method_14(j - num), num4 - 5f, Float5 + method_14(j - num), num4 + Size1.Height + 5f); - graphics0.SmoothingMode = smoothingMode; - } - } - if (GetAudioStatus() == AudioStatus.ShouldStartAudio && j > num2 && _verticalScrollBar.Value + num5 <= _verticalScrollBar.Maximum) - { - _verticalScrollBar.Value += num5; - } - } - _delegate100(num, null); - } - - public void DifferentStartPlaying() - { - if (_audio != null) - { - _audio.DifferentStartPlaying(); - } - } - - public void StartPlaying() - { - if (_audio != null) - { - _audio.StartPlaying(); - } - } - - public void StopAudio() - { - if (_audio != null) - { - _audio.StopPlaying(); - _audio.SetStartingTimeBasedOnSomeValue(0); - } - } - - public bool AudioLoaded() - { - return _audio != null; - } - - private void method_25(Graphics graphics0, int int8, int int9, float float6, float float7) - { - int8 += _chart.Gh3Song0.FretbarOffset; - int9 += _chart.Gh3Song0.FretbarOffset; - var count = _chart.FretbarList.Count; - var num = _chart.FretbarList.method_7(int8); - var num2 = _chart.FretbarList.method_7(int9); - var num3 = _chart.FretbarList[num]; - var num4 = (num + 1 < count) ? ((int8 - num3) / (float)(_chart.FretbarList[num + 1] - num3)) : 0f; - var count2 = _chart.TsList.Count; - var num5 = _chart.TsList.method_1(num3); - var num6 = _chart.TsList.Values[num5][0]; - var num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); - var num8 = (count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1; - float num10; - for (var i = num; i <= num2; i++) - { - var num9 = _chart.FretbarList[i]; - if (ShouldDoubleFretbarWidth()) - { - num10 = float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, i - num - num4)) / (1f - _fretboardAngle)); - } - else - { - num10 = float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, _hyperspeed * (num9 - int8) / _chart.FretbarList[1])) / (1f - _fretboardAngle)); - } - if (i - num7 == 0) - { - var num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); - var font = new Font("Verdana", Math.Max(0f, (_editorSize.Height - 2f * num11) / 15f)); - graphics0.DrawString(num6 + "/" + _chart.TsList.Values[num5][1], font, _brushGrayText, float6 + _editorSize.Height + 5f - num11, num10 - font.Size); - } - if (i == num8) - { - num5++; - num6 = _chart.TsList.Values[num5][0]; - num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); - num8 = ((count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1); - var num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); - var font2 = new Font("Verdana", Math.Max(0f, (_editorSize.Height - 2f * num11) / 15f)); - graphics0.DrawString(num6 + "/" + _chart.TsList.Values[num5][1], font2, _brushGrayText, float6 + _editorSize.Height + 5f - num11, num10 - font2.Size); - } - if (num10 <= float7) - { - float num11; - graphics0.DrawLine(((i - num7) % num6 == 0) ? _penBlack : _penGray, float6 + (num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1))), num10, float6 + _editorSize.Height - num11, num10); - } - if (i + 1 < count && i + 1 <= num2) - { - if (ShouldDoubleFretbarWidth()) - { - num10 = float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, i - num - num4 + 0.5f)) / (1f - _fretboardAngle)); - } - else - { - num10 = float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, _hyperspeed * ((_chart.FretbarList[i + 1] - num9) / 2 + num9 - int8) / _chart.FretbarList[1])) / (1f - _fretboardAngle)); - } - if (num10 <= float7 && num10 >= _height - float7) - { - float num11; - graphics0.DrawLine(_penLightGray, float6 + (num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1))), num10, float6 + _editorSize.Height - num11, num10); - } - } - } - num10 = float7 - _float3; - var num12 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); - var num13 = _editorSize.Height - 2f * num12; - for (var j = 0; j <= _numberOfNoteLines; j++) - { - graphics0.DrawLine(_penGray, float6 + j * _editorSize.Height / (float)_numberOfNoteLines, float7, float6 + num12 + j * num13 / _numberOfNoteLines, num10); - } - } - - private void DrawGameViewNotes(Graphics graphics0, int int8, int int9, float float6, float float7) - { - int8 += _chart.Gh3Song0.GemOffset; - int9 += _chart.Gh3Song0.GemOffset; - var @class = _chart.NoteList.ContainsKey(Difficulty) ? _chart.NoteList[Difficulty] : new Track(); - var class2 = _chart.SpList.ContainsKey(Difficulty) ? _chart.SpList[Difficulty] : new Track(); - if (@class.Count == 0) - { - return; - } - var argA30 = @class.Count; - var num = @class.method_1(int8); - var num2 = @class.method_1(int9); - var num3 = @class.Keys[num]; - if (int8 < _lastFretbar && num3 <= int9) - { - var count = _chart.FretbarList.Count; - var num4 = _chart.FretbarList.method_7(num3); - var num5 = _chart.FretbarList[num4]; - var num6 = _chart.FretbarList[num4 + 1] - num5; - var num7 = (count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1; - var num8 = _chart.FretbarList.method_7(int8); - _chart.FretbarList.method_7(int9); - var num9 = (int8 - _chart.FretbarList[num8]) / (float)(_chart.FretbarList[num8 + 1] - _chart.FretbarList[num8]); - var count2 = _chart.TsList.Count; - var num10 = _chart.TsList.method_1(num3); - var num11 = _chart.TsList.Values[num10][0]; - var num12 = (count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1; - var count3 = class2.Count; - var num13 = class2.method_1(num3); - var num14 = (class2.Count == 0 || class2.Keys[num13] > num3) ? -1 : (class2.Keys[num13] + class2.Values[num13][0]); - var num15 = (count3 > num13 + 1) ? @class.method_1(class2.Keys[(num14 != -1) ? (num13 + 1) : num13]) : -1; - if (num14 == -1) - { - num13--; - } - var num16 = _editorSize.Height / (float)_numberOfNoteLines; - var num17 = _editorSize.Height / 15f; - var num18 = num17 / 1.6f; - var num19 = num17 * 2f; - var num20 = num18 * 2f; - var val = float7 - _float3; - for (var i = num; i <= num2; i++) - { - var num21 = @class.Keys[i]; - var class3 = @class[num21]; - if (i == num7) - { - num4 = _chart.FretbarList.method_7(num21); - num5 = _chart.FretbarList[num4]; - num6 = _chart.FretbarList[num4 + 1] - num5; - num7 = ((count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1); - } - if (i == num12) - { - num10++; - num11 = _chart.TsList.Values[num10][0]; - num12 = ((count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1); - } - if (i == num15) - { - num13++; - num14 = class2.Keys[num13] + class2.Values[num13][0]; - num15 = ((count3 > num13 + 1) ? @class.method_1(class2.Keys[num13 + 1]) : -1); - } - var shouldDrawSp = LoadStarpowerTextures && num14 >= num21; - float num22; - float num23; - if (ShouldDoubleFretbarWidth()) - { - num22 = Math.Min(float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, num4 - num8 - num9 + (num21 - num5) / (float)num6)) / (1f - _fretboardAngle)), float7); - if (class3.SustainLength - _chart.Int0 > _chart.Int0) - { - num23 = num21 + class3.SustainLength - _chart.Int0; - var num24 = _chart.FretbarList.method_7((int)num23); - num23 = Math.Max(float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, num24 - num8 - num9 + (num23 - _chart.FretbarList[num24]) / (_chart.FretbarList[num24 + 1] - _chart.FretbarList[num24]))) / (1f - _fretboardAngle)), val); - } - else - { - num23 = -1f; - } - } - else - { - num22 = float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, _hyperspeed * (num21 - int8) / _chart.FretbarList[1])) / (1f - _fretboardAngle)); - num23 = ((class3.SustainLength - _chart.Int0 > _chart.Int0) ? Math.Max(float7 - Convert.ToSingle(_editorSize.Width * (1.0 - Math.Pow(_fretboardAngle, _hyperspeed * (num21 - int8 + class3.SustainLength - _chart.Int0) / _chart.FretbarList[1])) / (1f - _fretboardAngle)), val) : -1f); - num22 = Math.Min(num22, float7); - } - if (num23 == -1f || num23 <= float7) - { - var shouldDrawHopo = LoadHopoTextures && ((i != 0 && smethod_0(@class[@class.Keys[i - 1]].NoteValues, class3.NoteValues) && num21 - @class.Keys[i - 1] <= num11 / 4f * num6 / ((_chart.Gh3Song0.HammerOn == 0f) ? QbcParser.Float0 : _chart.Gh3Song0.HammerOn)) ^ class3.NoteValues[5]); - var num25 = float6 + Convert.ToSingle((float7 - num22) * Math.Tan(_double1)); - num16 = (_editorSize.Height - 2f * (num25 - float6)) / _numberOfNoteLines; - var num26 = float6 + Convert.ToSingle((float7 - num23) * Math.Tan(_double1)); - var num27 = (_editorSize.Height - 2f * (num26 - float6)) / _numberOfNoteLines; - num17 = (_editorSize.Height - 2f * (num25 - float6)) / 15f; - num18 = num17 / 1.6f; - num19 = num17 * 2f; - num20 = num18 * 2f; - var num28 = (_editorSize.Height - 2f * (num25 - float6)) / 32f; - var num29 = (_editorSize.Height - 2f * (num26 - float6)) / 32f; - if (Has5NoteLines()) - { - num25 += num16 / 2f; - num26 += num27 / 2f; - } - num25 -= num16; - num26 -= num27; - for (var j = 0; j < 6; j++) - { - num25 += num16; - num26 += num27; - if (class3.NoteValues[j]) - { - if (num23 != -1f) - { - PointF[] points = { - new PointF(num25 - num28, num22), - new PointF(num26 - num29, num23), - new PointF(num26 + num29, num23), - new PointF(num25 + num28, num22) - }; - graphics0.FillPolygon(_noteBrush[j], points); - } - if (num != i || num == 0) - { - if (shouldDrawSp) - { - var trianlePositions = new PointF[5]; - for (var k = 0; k < 5; k++) - { - trianlePositions[k] = new PointF(num25 - num19 * (float)Math.Sin(k * _double0), num22 + num19 * _fretboardAngle * (float)Math.Cos(k * _double0)); - } - graphics0.FillPolygon(_brushBlack, trianlePositions, FillMode.Winding); - } - var rect = new RectangleF(num25 - num17, num22 - num17 * _fretboardAngle, num19, num19 * _fretboardAngle); - graphics0.FillEllipse(_noteBrush[j], rect); - graphics0.DrawEllipse(_penBlack2, rect); - if (shouldDrawHopo) - { - rect = new RectangleF(num25 - num18, num22 - num18 * _fretboardAngle, num20, num20 * _fretboardAngle); - graphics0.FillEllipse(_brushWhite, rect); - graphics0.DrawEllipse(_penBlack2, rect); - } - } - } - } - } - } - } - } - - private void DrawGameviewFretbars(Graphics graphics0, int int8, int int9, float float6, float float7) - { - if (_audioData == null) - { - return; - } - var num = 0f; - var num2 = float7; - var num3 = num2; - var num4 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int8 / 1000m)); - var num5 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int9 / 1000m)); - num5 = Math.Min(num5, _audioData.Length); - var d = 0m; - var i = num4; - for (var j = 0; j < (int)_audio.GetWaveFormat().short_0; j++) - { - while (i < num5) - { - var num6 = -128f; - var num7 = 127f; - var num8 = (decimal)(_chart.FretbarList[1] / _hyperspeed * Math.Log(Math.Abs(1.0 - (float7 - num2 + 1f) * (1f - _fretboardAngle) / (double)_editorSize.Width), _fretboardAngle)); - var num9 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * ((num8 - d) / 1000m)); - d = num8; - var num10 = j; - while (num10 < num9 && num10 + i < num5) - { - num6 = Math.Max(num6, _audioData[num10 + i]); - num7 = Math.Min(num7, _audioData[num10 + i]); - num10 += _audio.GetWaveFormat().short_0; - } - var num11 = Convert.ToSingle((float7 - num2) * Math.Tan(_double1)); - var num12 = _editorSize.Height - 2f * num11; - if (num7 != num6) - { - var num13 = (num7 + 128f) * num12 / 256f; - var num14 = (num6 + 128f) * num12 / 256f; - if (num9 <= 1E-10) - { - return; - } - if (num13 == num14) - { - if (num3 != 0f) - { - graphics0.DrawLine(_penTransparentBlue, float6 + num11 + num, num3, float6 + num11 + num14, num2); - } - } - else - { - graphics0.DrawLine(_penTransparentBlue, float6 + num11 + num13, num2, float6 + num11 + num14, num2); - } - num = num14; - } - else - { - num = num12 / 2f; - } - num3 = num2; - num2 -= 1f; - i += num9; - } - num = 0f; - num2 = float7; - num3 = num2; - i = num4; - d = 0m; - } - } - - private void DrawGameView(Graphics graphics0) - { - var num = Float5 * 2f; - var num2 = method_16((_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange - _verticalScrollBar.Value) / 2f); + private static bool smethod_0(bool[] bool5, bool[] bool6) + { + for (var i = 0; i < 5; i++) + { + if (bool5[i] && bool6[i]) + { + return false; + } + } + return true; + } + + private void method_17(Graphics graphics0, int int8, int int9, float float6, float float7) + { + int8 += _chart.Gh3Song0.FretbarOffset; + int9 += _chart.Gh3Song0.FretbarOffset; + graphics0.SetClip(new RectangleF(float6, 0f, _width - float6 * 2f, _height)); + var count = _chart.FretbarList.Count; + var num = _chart.FretbarList.method_7(int8); + var num2 = _chart.FretbarList.method_7(int9); + var num3 = _chart.FretbarList[num]; + var num4 = (num + 1 < count) ? ((int8 - num3) / (float) (_chart.FretbarList[num + 1] - num3)) : 0f; + var count2 = _chart.TsList.Count; + var num5 = _chart.TsList.method_1(num3); + var num6 = _chart.TsList.Values[num5][0]; + var num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); + var num8 = (count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1; + var num9 = 0f; + var y = float7 + Size1.Height; + for (var i = num; i <= num2; i++) + { + var num10 = _chart.FretbarList[i]; + if (ShouldDoubleFretbarWidth()) + { + num9 = float6 + (i - num - num4) * Size1.Width; + } + else + { + num9 = float6 + method_14(num10 - int8); + } + if (i - num7 == 0) + { + graphics0.DrawString(string.Concat(num6), _fontVerdana, _brushGrayText, num9 - 4f, float7 - 3f); + graphics0.DrawString(string.Concat(4), _fontVerdana, _brushGrayText, num9 - 4f, + float7 + Size1.Height / 2f - 3f); + } + if (i == num8) + { + num5++; + num6 = _chart.TsList.Values[num5][0]; + num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); + num8 = ((count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1); + graphics0.DrawString(string.Concat(num6), _fontVerdana, _brushGrayText, num9 - 4f, float7 - 3f); + graphics0.DrawString(string.Concat(4), _fontVerdana, _brushGrayText, num9 - 4f, + float7 + Size1.Height / 2f - 3f); + } + if (num9 >= float6) + { + graphics0.DrawLine(((i - num7) % num6 == 0) ? _penBlack : _penGray, num9, float7, num9, y); + } + if (i + 1 < count) + { + if (ShouldDoubleFretbarWidth()) + { + num9 += 0.5f * Size1.Width; + } + else + { + num9 += method_14(_chart.FretbarList[i + 1] - num10) / 2f; + } + if (num9 >= float6 && num9 <= _width - float6) + { + graphics0.DrawLine(_penLightGray, num9, float7, num9, y); + } + } + } + var x = (int9 >= _lastFretbar) ? num9 : (_width - float6); + for (var j = 1; j < _numberOfNoteLines; j++) + { + graphics0.DrawLine(_penGray, float6, y = float7 + j * Size1.Height / (float) _numberOfNoteLines, x, y); + } + graphics0.DrawLine(_penBlack, float6, float7, x, float7); + graphics0.DrawLine(_penBlack, float6, y = float7 + Size1.Height, x, y); + graphics0.ResetClip(); + } + + private void DrawFlatViewNotes(Graphics graphics0, int int8, int int9, float float6, float float7) + { + int8 += _chart.Gh3Song0.GemOffset; + int9 += _chart.Gh3Song0.GemOffset; + var @class = _chart.NoteList.ContainsKey(Difficulty) + ? _chart.NoteList[Difficulty] + : new Track(); + var class2 = _chart.SpList.ContainsKey(Difficulty) ? _chart.SpList[Difficulty] : new Track(); + var arg_9A0 = @class.Count; + var num = @class.method_1(int8); + var num2 = @class.method_1(int9); + var num3 = @class.Keys[num]; + if (int8 < _lastFretbar && num3 <= int9) + { + var count = _chart.FretbarList.Count; + var num4 = _chart.FretbarList.method_7(num3); + var num5 = _chart.FretbarList[num4]; + var num6 = _chart.FretbarList[num4 + 1] - num5; + var num7 = (count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1; + var num8 = _chart.FretbarList.method_7(int8); + var num9 = (int8 - _chart.FretbarList[num8]) / + (float) (_chart.FretbarList[num8 + 1] - _chart.FretbarList[num8]); + var count2 = _chart.TsList.Count; + var num10 = _chart.TsList.method_1(num3); + var num11 = _chart.TsList.Values[num10][0]; + var num12 = (count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1; + var count3 = class2.Count; + var num13 = class2.method_1(num3); + var num14 = (class2.Count == 0 || class2.Keys[num13] > num3) + ? -1 + : (class2.Keys[num13] + class2.Values[num13][0]); + var num15 = (count3 > num13 + 1) + ? @class.method_1(class2.Keys[(num14 != -1) ? (num13 + 1) : num13]) + : -1; + if (num14 == -1) + { + num13--; + } + var num16 = Size1.Height / (float) _numberOfNoteLines; + var num17 = Size1.Height / 15f; + var num18 = num17 / 1.6f; + var num19 = num17 * 2f; + var num20 = num18 * 2f; + var val = _width - float6; + if (Has5NoteLines()) + { + float7 += num16 / 2f; + } + for (var i = num; i <= num2; i++) + { + var num21 = @class.Keys[i]; + var class3 = @class[num21]; + if (i == num7) + { + num4 = _chart.FretbarList.method_7(num21); + num5 = _chart.FretbarList[num4]; + num6 = _chart.FretbarList[num4 + 1] - num5; + num7 = ((count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1); + } + if (i == num12) + { + num10++; + num11 = _chart.TsList.Values[num10][0]; + num12 = ((count2 > num10 + 1) + ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) + : -1); + } + if (i == num15) + { + num13++; + num14 = class2.Keys[num13] + class2.Values[num13][0]; + num15 = ((count3 > num13 + 1) ? @class.method_1(class2.Keys[num13 + 1]) : -1); + } + var showDrawSp = LoadStarpowerTextures && num14 >= num21; + float num22; + float num23; + if (ShouldDoubleFretbarWidth()) + { + num22 = Math.Max(float6 + (num4 - num8 - num9 + (num21 - num5) / (float) num6) * Size1.Width, + float6); + if (class3.SustainLength - _chart.Int0 > _chart.Int0) + { + num23 = num21 + class3.SustainLength - _chart.Int0; + var num24 = _chart.FretbarList.method_7((int) num23); + num23 = + Math.Min( + float6 + + (num24 - num8 - num9 + (num23 - _chart.FretbarList[num24]) / + (_chart.FretbarList[num24 + 1] - _chart.FretbarList[num24])) * Size1.Width, val); + } + else + { + num23 = -1f; + } + } + else + { + num22 = float6 + method_14(num21 - int8); + num23 = ((class3.SustainLength - _chart.Int0 > _chart.Int0) + ? Math.Min(num22 + method_14(class3.SustainLength - _chart.Int0), val) + : -1f); + num22 = Math.Max(num22, float6); + } + if (num23 == -1f || num23 >= float6) + { + var shouldDrawHopo = LoadHopoTextures && + ((i != 0 && + smethod_0(@class[@class.Keys[i - 1]].NoteValues, class3.NoteValues) && + num21 - @class.Keys[i - 1] <= + num11 / 4f * num6 / + ((_chart.Gh3Song0.HammerOn == 0f) + ? QbcParser.Float0 + : _chart.Gh3Song0.HammerOn)) ^ class3.NoteValues[5]); + for (var j = 0; j < 6; j++) + { + if (class3.NoteValues[j]) + { + var num25 = float7 + num16 * j; + if (num23 != -1f) + { + graphics0.DrawLine(_pen4[j], num22, num25, num23, num25); + graphics0.DrawRectangle(_penBlack2, num22, num25 - 1f, num23 - num22, + _pen4[j].Width); + } + if (num != i || num == 0) + { + if (showDrawSp) + { + var array = new PointF[5]; + for (var k = 0; k < 5; k++) + { + array[k] = + new PointF(num22 + num19 * (float) Math.Sin(k * _double0), + num25 - num19 * (float) Math.Cos(k * _double0)); + } + graphics0.FillPolygon(_brushBlack, array, FillMode.Winding); + } + var rect = new RectangleF(num22 - num17, num25 - num17, num19, num19); + graphics0.FillEllipse(_noteBrush[j], rect); + graphics0.DrawEllipse(_penBlack2, rect); + if (shouldDrawHopo) + { + rect = new RectangleF(num22 - num18, num25 - num18, num20, num20); + graphics0.FillEllipse(_brushWhite, rect); + graphics0.DrawEllipse(_penBlack2, rect); + } + } + } + } + } + } + } + } + + private void DrawAudio(Graphics graphics0, int int8, int int9, float float6, float float7) + { + if (_audioData == null) + { + return; + } + var num = float6; + var x = num; + var num2 = 0f; + var num3 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int8 / 1000m)); + var num4 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int9 / 1000m)); + num4 = Math.Min(num4, _audioData.Length); + var num5 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 / + (FretbarWidth * 1000m)); + var i = num3; + for (var j = 0; j < (int) _audio.GetWaveFormat().short_0; j++) + { + while (i < num4) + { + var num6 = -128f; + var num7 = 127f; + if (ShouldDoubleFretbarWidth()) + { + num5 = Size1.Width; + } + var num8 = j; + while (num8 < num5 && num8 + i < num4) + { + num6 = Math.Max(num6, _audioData[num8 + i]); + num7 = Math.Min(num7, _audioData[num8 + i]); + num8 += _audio.GetWaveFormat().short_0; + } + var num9 = (num7 + 128f) * Size1.Height / 256f; + var num10 = (num6 + 128f) * Size1.Height / 256f; + if (num6 != num7) + { + if (num5 <= 1E-10) + { + return; + } + if (num9 == num10) + { + if (num2 != 0f) + { + graphics0.DrawLine(_penTransparentBlue, x, float7 + num2, num, float7 + num10); + } + } + else + { + graphics0.DrawLine(_penTransparentBlue, num, float7 + num9, num, float7 + num10); + } + } + x = num; + num2 = num10; + num += 1f; + i += num5; + } + num = float6; + x = num; + num2 = 0f; + i = num3; + } + } + + private void DrawFlatView(Graphics graphics0) + { + var num = 0; + var num2 = 0; if (ShouldDoubleFretbarWidth()) - { - var int_ = method_16((_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange - _verticalScrollBar.Value) / 2f + _fretboardAngleFloat); - method_25(graphics0, num2, int_, _width / 4f, _height - num); + { + var num3 = Math.Min(_int2, _someFretbarValue); + for (var i = 0; i < num3; i++) + { + num = method_16(_fretboardAngleFloat * (_verticalScrollBar.Value + i)); + num2 = method_16(_fretboardAngleFloat * (_verticalScrollBar.Value + i + 1)); + var num4 = Float5 * 2f + _float0 * i; + method_17(graphics0, num, num2, Float5, num4); + DrawFlatViewNotes(graphics0, num, num2, Float5, num4); + } + } + else + { + var num5 = Math.Min(_int2, _lastFretbarValue); + var j = 0; + if (_audio != null) + { + j = (int) _audio.AudioLength().TotalMilliseconds; + } + if (GetAudioStatus() == AudioStatus.ShouldStartAudio) + { + while (j < _usedForCalculatingLastFretbar * _verticalScrollBar.Value) + { + _verticalScrollBar.Value--; + } + } + for (var k = 0; k < num5; k++) + { + num = _usedForCalculatingLastFretbar * (_verticalScrollBar.Value + k); + num2 = _usedForCalculatingLastFretbar * (_verticalScrollBar.Value + k + 1); + var num4 = Float5 * 2f + _float0 * k; + if (ShowAudioOnFretboard) + { + DrawAudio(graphics0, num, num2, Float5, num4); + } + method_17(graphics0, num, num2, Float5, num4); + DrawFlatViewNotes(graphics0, num, num2, Float5, num4); + if (_audio != null && num <= j && j <= num2) + { + var smoothingMode = graphics0.SmoothingMode; + graphics0.SmoothingMode = SmoothingMode.None; + graphics0.DrawLine(_penBlack2, Float5 + method_14(j - num), num4 - 5f, + Float5 + method_14(j - num), num4 + Size1.Height + 5f); + graphics0.SmoothingMode = smoothingMode; + } + } + if (GetAudioStatus() == AudioStatus.ShouldStartAudio && j > num2 && + _verticalScrollBar.Value + num5 <= _verticalScrollBar.Maximum) + { + _verticalScrollBar.Value += num5; + } + } + _delegate100(num, null); + } + + public void DifferentStartPlaying() + { + if (_audio != null) + { + _audio.DifferentStartPlaying(); + } + } + + public void StartPlaying() + { + if (_audio != null) + { + _audio.StartPlaying(); + } + } + + public void StopAudio() + { + if (_audio != null) + { + _audio.StopPlaying(); + _audio.SetStartingTimeBasedOnSomeValue(0); + } + } + + public bool AudioLoaded() + { + return _audio != null; + } + + private void method_25(Graphics graphics0, int int8, int int9, float float6, float float7) + { + int8 += _chart.Gh3Song0.FretbarOffset; + int9 += _chart.Gh3Song0.FretbarOffset; + var count = _chart.FretbarList.Count; + var num = _chart.FretbarList.method_7(int8); + var num2 = _chart.FretbarList.method_7(int9); + var num3 = _chart.FretbarList[num]; + var num4 = (num + 1 < count) ? ((int8 - num3) / (float) (_chart.FretbarList[num + 1] - num3)) : 0f; + var count2 = _chart.TsList.Count; + var num5 = _chart.TsList.method_1(num3); + var num6 = _chart.TsList.Values[num5][0]; + var num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); + var num8 = (count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1; + float num10; + for (var i = num; i <= num2; i++) + { + var num9 = _chart.FretbarList[i]; + if (ShouldDoubleFretbarWidth()) + { + num10 = float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, i - num - num4)) / + (1f - _fretboardAngle)); + } + else + { + num10 = float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + _hyperspeed * (num9 - int8) / _chart.FretbarList[1])) / + (1f - _fretboardAngle)); + } + if (i - num7 == 0) + { + var num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); + var font = new Font("Verdana", Math.Max(0f, (_editorSize.Height - 2f * num11) / 15f)); + graphics0.DrawString(num6 + "/" + _chart.TsList.Values[num5][1], font, _brushGrayText, + float6 + _editorSize.Height + 5f - num11, num10 - font.Size); + } + if (i == num8) + { + num5++; + num6 = _chart.TsList.Values[num5][0]; + num7 = _chart.FretbarList.method_7(_chart.TsList.Keys[num5]); + num8 = ((count2 > num5 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num5 + 1]) : -1); + var num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); + var font2 = new Font("Verdana", Math.Max(0f, (_editorSize.Height - 2f * num11) / 15f)); + graphics0.DrawString(num6 + "/" + _chart.TsList.Values[num5][1], font2, _brushGrayText, + float6 + _editorSize.Height + 5f - num11, num10 - font2.Size); + } + if (num10 <= float7) + { + float num11; + graphics0.DrawLine(((i - num7) % num6 == 0) ? _penBlack : _penGray, + float6 + (num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1))), num10, + float6 + _editorSize.Height - num11, num10); + } + if (i + 1 < count && i + 1 <= num2) + { + if (ShouldDoubleFretbarWidth()) + { + num10 = float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, i - num - num4 + 0.5f)) / + (1f - _fretboardAngle)); + } + else + { + num10 = float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + _hyperspeed * + ((_chart.FretbarList[i + 1] - num9) / 2 + num9 - int8) / + _chart.FretbarList[1])) / (1f - _fretboardAngle)); + } + if (num10 <= float7 && num10 >= _height - float7) + { + float num11; + graphics0.DrawLine(_penLightGray, + float6 + (num11 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1))), num10, + float6 + _editorSize.Height - num11, num10); + } + } + } + num10 = float7 - _float3; + var num12 = Convert.ToSingle((float7 - num10) * Math.Tan(_double1)); + var num13 = _editorSize.Height - 2f * num12; + for (var j = 0; j <= _numberOfNoteLines; j++) + { + graphics0.DrawLine(_penGray, float6 + j * _editorSize.Height / (float) _numberOfNoteLines, float7, + float6 + num12 + j * num13 / _numberOfNoteLines, num10); + } + } + + private void DrawGameViewNotes(Graphics graphics0, int int8, int int9, float float6, float float7) + { + int8 += _chart.Gh3Song0.GemOffset; + int9 += _chart.Gh3Song0.GemOffset; + var @class = _chart.NoteList.ContainsKey(Difficulty) + ? _chart.NoteList[Difficulty] + : new Track(); + var class2 = _chart.SpList.ContainsKey(Difficulty) ? _chart.SpList[Difficulty] : new Track(); + if (@class.Count == 0) + { + return; + } + var argA30 = @class.Count; + var num = @class.method_1(int8); + var num2 = @class.method_1(int9); + var num3 = @class.Keys[num]; + if (int8 < _lastFretbar && num3 <= int9) + { + var count = _chart.FretbarList.Count; + var num4 = _chart.FretbarList.method_7(num3); + var num5 = _chart.FretbarList[num4]; + var num6 = _chart.FretbarList[num4 + 1] - num5; + var num7 = (count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1; + var num8 = _chart.FretbarList.method_7(int8); + _chart.FretbarList.method_7(int9); + var num9 = (int8 - _chart.FretbarList[num8]) / + (float) (_chart.FretbarList[num8 + 1] - _chart.FretbarList[num8]); + var count2 = _chart.TsList.Count; + var num10 = _chart.TsList.method_1(num3); + var num11 = _chart.TsList.Values[num10][0]; + var num12 = (count2 > num10 + 1) ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) : -1; + var count3 = class2.Count; + var num13 = class2.method_1(num3); + var num14 = (class2.Count == 0 || class2.Keys[num13] > num3) + ? -1 + : (class2.Keys[num13] + class2.Values[num13][0]); + var num15 = (count3 > num13 + 1) + ? @class.method_1(class2.Keys[(num14 != -1) ? (num13 + 1) : num13]) + : -1; + if (num14 == -1) + { + num13--; + } + var num16 = _editorSize.Height / (float) _numberOfNoteLines; + var num17 = _editorSize.Height / 15f; + var num18 = num17 / 1.6f; + var num19 = num17 * 2f; + var num20 = num18 * 2f; + var val = float7 - _float3; + for (var i = num; i <= num2; i++) + { + var num21 = @class.Keys[i]; + var class3 = @class[num21]; + if (i == num7) + { + num4 = _chart.FretbarList.method_7(num21); + num5 = _chart.FretbarList[num4]; + num6 = _chart.FretbarList[num4 + 1] - num5; + num7 = ((count > num4 + 1) ? @class.method_2(_chart.FretbarList[num4 + 1]) : -1); + } + if (i == num12) + { + num10++; + num11 = _chart.TsList.Values[num10][0]; + num12 = ((count2 > num10 + 1) + ? _chart.FretbarList.method_7(_chart.TsList.Keys[num10 + 1]) + : -1); + } + if (i == num15) + { + num13++; + num14 = class2.Keys[num13] + class2.Values[num13][0]; + num15 = ((count3 > num13 + 1) ? @class.method_1(class2.Keys[num13 + 1]) : -1); + } + var shouldDrawSp = LoadStarpowerTextures && num14 >= num21; + float num22; + float num23; + if (ShouldDoubleFretbarWidth()) + { + num22 = + Math.Min( + float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + num4 - num8 - num9 + (num21 - num5) / (float) num6)) / + (1f - _fretboardAngle)), float7); + if (class3.SustainLength - _chart.Int0 > _chart.Int0) + { + num23 = num21 + class3.SustainLength - _chart.Int0; + var num24 = _chart.FretbarList.method_7((int) num23); + num23 = Math.Max( + float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + num24 - num8 - num9 + + (num23 - _chart.FretbarList[num24]) / + (_chart.FretbarList[num24 + 1] - + _chart.FretbarList[num24]))) / (1f - _fretboardAngle)), + val); + } + else + { + num23 = -1f; + } + } + else + { + num22 = float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + _hyperspeed * (num21 - int8) / _chart.FretbarList[1])) / + (1f - _fretboardAngle)); + num23 = ((class3.SustainLength - _chart.Int0 > _chart.Int0) + ? Math.Max( + float7 - Convert.ToSingle(_editorSize.Width * + (1.0 - Math.Pow(_fretboardAngle, + _hyperspeed * + (num21 - int8 + class3.SustainLength - _chart.Int0) / + _chart.FretbarList[1])) / (1f - _fretboardAngle)), val) + : -1f); + num22 = Math.Min(num22, float7); + } + if (num23 == -1f || num23 <= float7) + { + var shouldDrawHopo = LoadHopoTextures && + ((i != 0 && + smethod_0(@class[@class.Keys[i - 1]].NoteValues, class3.NoteValues) && + num21 - @class.Keys[i - 1] <= + num11 / 4f * num6 / + ((_chart.Gh3Song0.HammerOn == 0f) + ? QbcParser.Float0 + : _chart.Gh3Song0.HammerOn)) ^ class3.NoteValues[5]); + var num25 = float6 + Convert.ToSingle((float7 - num22) * Math.Tan(_double1)); + num16 = (_editorSize.Height - 2f * (num25 - float6)) / _numberOfNoteLines; + var num26 = float6 + Convert.ToSingle((float7 - num23) * Math.Tan(_double1)); + var num27 = (_editorSize.Height - 2f * (num26 - float6)) / _numberOfNoteLines; + num17 = (_editorSize.Height - 2f * (num25 - float6)) / 15f; + num18 = num17 / 1.6f; + num19 = num17 * 2f; + num20 = num18 * 2f; + var num28 = (_editorSize.Height - 2f * (num25 - float6)) / 32f; + var num29 = (_editorSize.Height - 2f * (num26 - float6)) / 32f; + if (Has5NoteLines()) + { + num25 += num16 / 2f; + num26 += num27 / 2f; + } + num25 -= num16; + num26 -= num27; + for (var j = 0; j < 6; j++) + { + num25 += num16; + num26 += num27; + if (class3.NoteValues[j]) + { + if (num23 != -1f) + { + PointF[] points = + { + new PointF(num25 - num28, num22), + new PointF(num26 - num29, num23), + new PointF(num26 + num29, num23), + new PointF(num25 + num28, num22) + }; + graphics0.FillPolygon(_noteBrush[j], points); + } + if (num != i || num == 0) + { + if (shouldDrawSp) + { + var trianlePositions = new PointF[5]; + for (var k = 0; k < 5; k++) + { + trianlePositions[k] = + new PointF(num25 - num19 * (float) Math.Sin(k * _double0), + num22 + num19 * _fretboardAngle * (float) Math.Cos(k * _double0)); + } + graphics0.FillPolygon(_brushBlack, trianlePositions, FillMode.Winding); + } + var rect = new RectangleF(num25 - num17, num22 - num17 * _fretboardAngle, num19, + num19 * _fretboardAngle); + graphics0.FillEllipse(_noteBrush[j], rect); + graphics0.DrawEllipse(_penBlack2, rect); + if (shouldDrawHopo) + { + rect = + new RectangleF(num25 - num18, num22 - num18 * _fretboardAngle, num20, + num20 * _fretboardAngle); + graphics0.FillEllipse(_brushWhite, rect); + graphics0.DrawEllipse(_penBlack2, rect); + } + } + } + } + } + } + } + } + + private void DrawGameviewFretbars(Graphics graphics0, int int8, int int9, float float6, float float7) + { + if (_audioData == null) + { + return; + } + var num = 0f; + var num2 = float7; + var num3 = num2; + var num4 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int8 / 1000m)); + var num5 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * (int9 / 1000m)); + num5 = Math.Min(num5, _audioData.Length); + var d = 0m; + var i = num4; + for (var j = 0; j < (int) _audio.GetWaveFormat().short_0; j++) + { + while (i < num5) + { + var num6 = -128f; + var num7 = 127f; + var num8 = (decimal) (_chart.FretbarList[1] / _hyperspeed * + Math.Log( + Math.Abs( + 1.0 - (float7 - num2 + 1f) * (1f - _fretboardAngle) / + (double) _editorSize.Width), _fretboardAngle)); + var num9 = Convert.ToInt32(_audio.GetWaveFormat().int_0 * _audio.GetWaveFormat().short_0 * + ((num8 - d) / 1000m)); + d = num8; + var num10 = j; + while (num10 < num9 && num10 + i < num5) + { + num6 = Math.Max(num6, _audioData[num10 + i]); + num7 = Math.Min(num7, _audioData[num10 + i]); + num10 += _audio.GetWaveFormat().short_0; + } + var num11 = Convert.ToSingle((float7 - num2) * Math.Tan(_double1)); + var num12 = _editorSize.Height - 2f * num11; + if (num7 != num6) + { + var num13 = (num7 + 128f) * num12 / 256f; + var num14 = (num6 + 128f) * num12 / 256f; + if (num9 <= 1E-10) + { + return; + } + if (num13 == num14) + { + if (num3 != 0f) + { + graphics0.DrawLine(_penTransparentBlue, float6 + num11 + num, num3, + float6 + num11 + num14, num2); + } + } + else + { + graphics0.DrawLine(_penTransparentBlue, float6 + num11 + num13, num2, + float6 + num11 + num14, num2); + } + num = num14; + } + else + { + num = num12 / 2f; + } + num3 = num2; + num2 -= 1f; + i += num9; + } + num = 0f; + num2 = float7; + num3 = num2; + i = num4; + d = 0m; + } + } + + private void DrawGameView(Graphics graphics0) + { + var num = Float5 * 2f; + var num2 = method_16( + (_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange - _verticalScrollBar.Value) / 2f); + if (ShouldDoubleFretbarWidth()) + { + var int_ = method_16( + (_verticalScrollBar.Maximum - _verticalScrollBar.LargeChange - _verticalScrollBar.Value) / 2f + + _fretboardAngleFloat); + method_25(graphics0, num2, int_, _width / 4f, _height - num); DrawGameViewNotes(graphics0, num2, int_, _width / 4f, _height - num); } - else - { + else + { if (_audio != null && GetAudioStatus() == AudioStatus.ShouldStartAudio) - { - num2 = (int)_audio.AudioLength().TotalMilliseconds; - } + { + num2 = (int) _audio.AudioLength().TotalMilliseconds; + } var int_ = num2 + _usedForCalculatingLastFretbar; - if (ShowAudioOnFretboard) - { - DrawGameviewFretbars(graphics0, num2, int_, _width / 4f, _height - num); - } + if (ShowAudioOnFretboard) + { + DrawGameviewFretbars(graphics0, num2, int_, _width / 4f, _height - num); + } method_25(graphics0, num2, int_, _width / 4f, _height - num); - DrawGameViewNotes(graphics0, num2, int_, _width / 4f, _height - num); + DrawGameViewNotes(graphics0, num2, int_, _width / 4f, _height - num); } _delegate100(num2, null); } - public void method_29(Delegate10 delegate101) - { - var @delegate = _delegate100; - Delegate10 delegate2; - do - { - delegate2 = @delegate; - var value = (Delegate10)Delegate.Combine(delegate2, delegate101); - @delegate = Interlocked.CompareExchange(ref _delegate100, value, delegate2); - } - while (@delegate != delegate2); - } + public void method_29(Delegate10 delegate101) + { + var @delegate = _delegate100; + Delegate10 delegate2; + do + { + delegate2 = @delegate; + var value = (Delegate10) Delegate.Combine(delegate2, delegate101); + @delegate = Interlocked.CompareExchange(ref _delegate100, value, delegate2); + } while (@delegate != delegate2); + } protected override void OnPaint(PaintEventArgs e) - { - base.OnPaint(e); - if (_chart == null) - { - return; - } - var graphics = e.Graphics; - graphics.SmoothingMode = SmoothingMode.AntiAlias; - if (_gamemodeView) - { - DrawGameView(graphics); - return; - } - DrawFlatView(graphics); - } - - public new void Dispose() - { - if (_audio != null) - { - _audio.Dispose(); - } - base.Dispose(); - } - } -} + { + base.OnPaint(e); + if (_chart == null) + { + return; + } + var graphics = e.Graphics; + graphics.SmoothingMode = SmoothingMode.AntiAlias; + if (_gamemodeView) + { + DrawGameView(graphics); + return; + } + DrawFlatView(graphics); + } + + public new void Dispose() + { + if (_audio != null) + { + _audio.Dispose(); + } + base.Dispose(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/TGHManager.cs b/GHNamespaceA/TGHManager.cs index e141cde..1f49acc 100644 --- a/GHNamespaceA/TGHManager.cs +++ b/GHNamespaceA/TGHManager.cs @@ -9,91 +9,98 @@ namespace GHNamespaceA { - public class TghManager - { - private readonly Gh3Songlist _gh3Songlist0; + public class TghManager + { + private readonly Gh3Songlist _gh3Songlist0; - public Gh3Tier Gh3Tier0; + public Gh3Tier Gh3Tier0; - private readonly string _string0; + private readonly string _string0; - private readonly string _string1; + private readonly string _string1; - public TghManager(Gh3Songlist gh3Songlist1, Gh3Tier gh3Tier1, string string2) : this(gh3Songlist1, gh3Tier1, string2, null) - { - } + public TghManager(Gh3Songlist gh3Songlist1, Gh3Tier gh3Tier1, string string2) : this(gh3Songlist1, gh3Tier1, + string2, null) + { + } - public TghManager(Gh3Songlist gh3Songlist1, Gh3Tier gh3Tier1, string string2, string string3) - { - _gh3Songlist0 = gh3Songlist1; - Gh3Tier0 = gh3Tier1; - _string0 = string3; - _string1 = string2; - } + public TghManager(Gh3Songlist gh3Songlist1, Gh3Tier gh3Tier1, string string2, string string3) + { + _gh3Songlist0 = gh3Songlist1; + Gh3Tier0 = gh3Tier1; + _string0 = string3; + _string1 = string2; + } - public void method_0() - { - byte[] byte_; - ZipManager.ExtractBytesFrom(_string1, out byte_, "songs.info", "TGH9ZIP2PASS4MXKR"); - var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); - foreach (StructurePointerNode class302 in @class.Nodes) - { - var gH3Song = new Gh3Song(class302); - gH3Song.Editable = true; - _gh3Songlist0.method_0(gH3Song, _string0 != null); - } - ZipManager.ExtractBytesFrom(_string1, out byte_, "tier.info", "TGH9ZIP2PASS4MXKR"); - Gh3Tier0.method_1(new Gh3Tier((StructureHeaderNode)new ZzGenericNode1("tier", KeyGenerator.smethod_8(byte_, "TIR4AES4KEY9MXKR")).Nodes[0], _gh3Songlist0)); - if (_string0 != null) - { - var list = new List(); - var list2 = new List(); - foreach (var current in Gh3Tier0.Songs) - { - if (current.Editable) - { - list.Add(current.Name + "_song.pak.xen"); - list2.Add(_string0 + "songs\\" + current.Name + "_song.pak.xen"); - list.Add(current.Name + ".dat.xen"); - list2.Add(_string0 + "music\\" + current.Name + ".dat.xen"); - list.Add(current.Name + ".fsb.xen"); - list2.Add(_string0 + "music\\" + current.Name + ".fsb.xen"); - } - } - ZipManager.smethod_11(_string1, list2, list, "TGH9ZIP2PASS4MXKR"); - } - } + public void method_0() + { + byte[] byte_; + ZipManager.ExtractBytesFrom(_string1, out byte_, "songs.info", "TGH9ZIP2PASS4MXKR"); + var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); + foreach (StructurePointerNode class302 in @class.Nodes) + { + var gH3Song = new Gh3Song(class302); + gH3Song.Editable = true; + _gh3Songlist0.method_0(gH3Song, _string0 != null); + } + ZipManager.ExtractBytesFrom(_string1, out byte_, "tier.info", "TGH9ZIP2PASS4MXKR"); + Gh3Tier0.method_1(new Gh3Tier( + (StructureHeaderNode) new ZzGenericNode1("tier", KeyGenerator.smethod_8(byte_, "TIR4AES4KEY9MXKR")) + .Nodes[0], _gh3Songlist0)); + if (_string0 != null) + { + var list = new List(); + var list2 = new List(); + foreach (var current in Gh3Tier0.Songs) + { + if (current.Editable) + { + list.Add(current.Name + "_song.pak.xen"); + list2.Add(_string0 + "songs\\" + current.Name + "_song.pak.xen"); + list.Add(current.Name + ".dat.xen"); + list2.Add(_string0 + "music\\" + current.Name + ".dat.xen"); + list.Add(current.Name + ".fsb.xen"); + list2.Add(_string0 + "music\\" + current.Name + ".fsb.xen"); + } + } + ZipManager.smethod_11(_string1, list2, list, "TGH9ZIP2PASS4MXKR"); + } + } - public void method_1() - { - var list = new List(); - Stream stream = new MemoryStream(); - KeyGenerator.smethod_1(new ZzGenericNode1("tier", Gh3Tier0.method_3()).method_8(), stream, "TIR4AES4KEY9MXKR"); - var list2 = new List(); - var list3 = new List(); - foreach (var current in Gh3Tier0.Songs) - { - if (current.Editable) - { - list3.Add(current.vmethod_5()); - if (_string0 != null && File.Exists(_string0 + "songs\\" + current.Name + "_song.pak.xen") && File.Exists(_string0 + "music\\" + current.Name + ".dat.xen") && File.Exists(_string0 + "music\\" + current.Name + ".fsb.xen")) - { - list2.Add(current.Name + "_song.pak.xen"); - list.Add(File.OpenRead(_string0 + "songs\\" + current.Name + "_song.pak.xen")); - list2.Add(current.Name + ".dat.xen"); - list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".dat.xen")); - list2.Add(current.Name + ".fsb.xen"); - list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".fsb.xen")); - } - } - } - Stream stream2 = new MemoryStream(); - KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2, "SNG4AES4KEY9MXKR"); - list2.Add("tier.info"); - list.Add(stream); - list2.Add("songs.info"); - list.Add(stream2); - ZipManager.smethod_0(list2, _string1, "TGH9ZIP2PASS4MXKR", list.ToArray()); - } - } -} + public void method_1() + { + var list = new List(); + Stream stream = new MemoryStream(); + KeyGenerator.smethod_1(new ZzGenericNode1("tier", Gh3Tier0.method_3()).method_8(), stream, + "TIR4AES4KEY9MXKR"); + var list2 = new List(); + var list3 = new List(); + foreach (var current in Gh3Tier0.Songs) + { + if (current.Editable) + { + list3.Add(current.vmethod_5()); + if (_string0 != null && File.Exists(_string0 + "songs\\" + current.Name + "_song.pak.xen") && + File.Exists(_string0 + "music\\" + current.Name + ".dat.xen") && + File.Exists(_string0 + "music\\" + current.Name + ".fsb.xen")) + { + list2.Add(current.Name + "_song.pak.xen"); + list.Add(File.OpenRead(_string0 + "songs\\" + current.Name + "_song.pak.xen")); + list2.Add(current.Name + ".dat.xen"); + list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".dat.xen")); + list2.Add(current.Name + ".fsb.xen"); + list.Add(File.OpenRead(_string0 + "music\\" + current.Name + ".fsb.xen")); + } + } + } + Stream stream2 = new MemoryStream(); + KeyGenerator.smethod_1(new ZzGenericNode1("songs", list3.ToArray()).method_8(), stream2, + "SNG4AES4KEY9MXKR"); + list2.Add("tier.info"); + list.Add(stream); + list2.Add("songs.info"); + list.Add(stream2); + ZipManager.smethod_0(list2, _string1, "TGH9ZIP2PASS4MXKR", list.ToArray()); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/UpdateSetlistSwitcher.cs b/GHNamespaceA/UpdateSetlistSwitcher.cs index f215920..4c2e0ba 100644 --- a/GHNamespaceA/UpdateSetlistSwitcher.cs +++ b/GHNamespaceA/UpdateSetlistSwitcher.cs @@ -5,35 +5,39 @@ namespace GHNamespaceA { - public class UpdateSetlistSwitcher : QbEditor - { - private readonly Gh3Songlist _gh3Songlist0; + public class UpdateSetlistSwitcher : QbEditor + { + private readonly Gh3Songlist _gh3Songlist0; - private readonly ZzPakNode2 _class3180; + private readonly ZzPakNode2 _class3180; - private readonly bool _bool0; + private readonly bool _bool0; - public UpdateSetlistSwitcher(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) - { - _class3180 = class3181; - _gh3Songlist0 = gh3Songlist1; - _bool0 = bool1; - } + public UpdateSetlistSwitcher(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) + { + _class3180 = class3181; + _gh3Songlist0 = gh3Songlist1; + _bool0 = bool1; + } - public override void vmethod_0() - { - ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb"); - @class.method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" + (_bool0 ? "gha" : "gh3"))).method_8(_gh3Songlist0.method_7()); - } + public override void vmethod_0() + { + ZzGenericNode1 @class = _class3180.ZzGetNode1( + "scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb"); + @class + .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" + + (_bool0 ? "gha" : "gh3"))) + .method_8(_gh3Songlist0.method_7()); + } - public override string ToString() - { - return "Update Setlist Switcher"; - } + public override string ToString() + { + return "Update Setlist Switcher"; + } - public override bool Equals(QbEditor other) - { - return other is UpdateSetlistSwitcher; - } - } -} + public override bool Equals(QbEditor other) + { + return other is UpdateSetlistSwitcher; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/zzFxBoost.cs b/GHNamespaceA/zzFxBoost.cs index 426109d..81f7ef2 100644 --- a/GHNamespaceA/zzFxBoost.cs +++ b/GHNamespaceA/zzFxBoost.cs @@ -6,86 +6,105 @@ namespace GHNamespaceA { - //This is probably the "speed boost" part of GHTCP - public class ZzFxBoost : QbEditor - { - private readonly ZzPakNode2 _class3180; + public class ZzFxBoost : QbEditor + { + private readonly ZzPakNode2 _class3180; - private readonly bool _bool0; + private readonly bool _bool0; - public ZzFxBoost(ZzPakNode2 class3181) - { - _class3180 = class3181; - var @class = ((StructureHeaderNode)_class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb").method_5(new TagStructureNode("event", "star_power_on")).Parent).method_5(new TagStructureNode("scr")); - _bool0 = (@class.method_8() == "guitarevent_starpoweron"); - } + public ZzFxBoost(ZzPakNode2 class3181) + { + _class3180 = class3181; + var @class = ((StructureHeaderNode) _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb") + .method_5(new TagStructureNode("event", "star_power_on")) + .Parent).method_5(new TagStructureNode("scr")); + _bool0 = (@class.method_8() == "guitarevent_starpoweron"); + } - public override void vmethod_0() - { - ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb"); - ((StructureHeaderNode)@class.method_5(new TagStructureNode("event", "star_power_on")).Parent).method_5(new TagStructureNode("scr")).method_9(_bool0 ? "guitarevent_starpoweroff" : "guitarevent_starpoweron"); - if (!_bool0) - { - @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx_empty"); - @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_empty"); - @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_empty"); - @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx_empty"); - @class.method_5(new ScriptRootNode("hit_note_fx_original")).Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx"); - @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_original")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus"); - @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_original")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned"); - @class.method_5(new ScriptRootNode("first_gem_fx_original")).Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx"); - return; - } - @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx_original"); - @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_original"); - @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_original"); - @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx_original"); - var class2 = @class.method_5(new ScriptRootNode("hit_note_fx_empty")); - if (class2 != null) - { - class2.Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx"); - } - else - { - @class.method_3(new ScriptRootNode("hit_note_fx", "scripts\\guitar\\guitar_events.qb", new QbScriptNode())); - } - class2 = @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_empty")); - if (class2 != null) - { - class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus"); - } - else - { - @class.method_3(new ScriptRootNode("guitarevent_starsequencebonus", "scripts\\guitar\\guitar_events.qb", new QbScriptNode())); - } - class2 = @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_empty")); - if (class2 != null) - { - class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned"); - } - else - { - @class.method_3(new ScriptRootNode("guitarevent_multiplier4xon_spawned", "scripts\\guitar\\guitar_events.qb", new QbScriptNode())); - } - class2 = @class.method_5(new ScriptRootNode("first_gem_fx_empty")); - if (class2 != null) - { - class2.Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx"); - return; - } - @class.method_3(new ScriptRootNode("first_gem_fx", "scripts\\guitar\\guitar_events.qb", new QbScriptNode())); - } + public override void vmethod_0() + { + ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb"); + ((StructureHeaderNode) @class.method_5(new TagStructureNode("event", "star_power_on")).Parent) + .method_5(new TagStructureNode("scr")) + .method_9(_bool0 ? "guitarevent_starpoweroff" : "guitarevent_starpoweron"); + if (!_bool0) + { + @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 = + QbSongClass1.AddKeyToDictionary("hit_note_fx_empty"); + @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_empty"); + @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_empty"); + @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 = + QbSongClass1.AddKeyToDictionary("first_gem_fx_empty"); + @class.method_5(new ScriptRootNode("hit_note_fx_original")).Int0 = + QbSongClass1.AddKeyToDictionary("hit_note_fx"); + @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_original")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus"); + @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_original")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned"); + @class.method_5(new ScriptRootNode("first_gem_fx_original")).Int0 = + QbSongClass1.AddKeyToDictionary("first_gem_fx"); + return; + } + @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 = + QbSongClass1.AddKeyToDictionary("hit_note_fx_original"); + @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_original"); + @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 = + QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_original"); + @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 = + QbSongClass1.AddKeyToDictionary("first_gem_fx_original"); + var class2 = @class.method_5(new ScriptRootNode("hit_note_fx_empty")); + if (class2 != null) + { + class2.Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx"); + } + else + { + @class.method_3(new ScriptRootNode("hit_note_fx", "scripts\\guitar\\guitar_events.qb", + new QbScriptNode())); + } + class2 = @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_empty")); + if (class2 != null) + { + class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus"); + } + else + { + @class.method_3(new ScriptRootNode("guitarevent_starsequencebonus", "scripts\\guitar\\guitar_events.qb", + new QbScriptNode())); + } + class2 = @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_empty")); + if (class2 != null) + { + class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned"); + } + else + { + @class.method_3(new ScriptRootNode("guitarevent_multiplier4xon_spawned", + "scripts\\guitar\\guitar_events.qb", new QbScriptNode())); + } + class2 = @class.method_5(new ScriptRootNode("first_gem_fx_empty")); + if (class2 != null) + { + class2.Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx"); + return; + } + @class.method_3(new ScriptRootNode("first_gem_fx", "scripts\\guitar\\guitar_events.qb", + new QbScriptNode())); + } - public override string ToString() - { - return (_bool0 ? "Apply" : "Remove") + " Speed Boost"; - } + public override string ToString() + { + return (_bool0 ? "Apply" : "Remove") + " Speed Boost"; + } - public override bool Equals(QbEditor other) - { - return other is ZzFxBoost && (other as ZzFxBoost)._bool0 == _bool0; - } - } -} + public override bool Equals(QbEditor other) + { + return other is ZzFxBoost && (other as ZzFxBoost)._bool0 == _bool0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/zzQbScriptZipperClass.cs b/GHNamespaceA/zzQbScriptZipperClass.cs index 4393abe..60a3631 100644 --- a/GHNamespaceA/zzQbScriptZipperClass.cs +++ b/GHNamespaceA/zzQbScriptZipperClass.cs @@ -6,28 +6,35 @@ namespace GHNamespaceA { - public static class ZzQbScriptZipperClass - { - public static string GameName = "GH3"; + public static class ZzQbScriptZipperClass + { + public static string GameName = "GH3"; - public static byte[] smethod_0(string string1) - { - return ZipManager.smethod_5(KeyGenerator.CryptoMethod(Assembly.GetExecutingAssembly().GetManifestResourceStream(string.Concat("GHTCP.FileDB.QBS.", GameName, '.', string1)), "MinimizedScript1f2g4h"), string1 + ".qbs"); - } + public static byte[] smethod_0(string string1) + { + return ZipManager.smethod_5( + KeyGenerator.CryptoMethod( + Assembly.GetExecutingAssembly() + .GetManifestResourceStream(string.Concat("GHTCP.FileDB.QBS.", GameName, '.', string1)), + "MinimizedScript1f2g4h"), string1 + ".qbs"); + } - public static void smethod_1(ScriptRootNode class2740) - { - class2740.method_7().method_7(smethod_0(QbSongClass1.GetDictString(class2740.Int0))); - } + public static void smethod_1(ScriptRootNode class2740) + { + class2740.method_7().method_7(smethod_0(QbSongClass1.GetDictString(class2740.Int0))); + } - public static byte[] smethod_2(string string1) - { - return ZipManager.smethod_5(KeyGenerator.CryptoMethod(Assembly.GetExecutingAssembly().GetManifestResourceStream("GHTCP.FileDB.QB." + string1), "MinimizedQBFile4f4g9h"), string1 + ".qb"); - } + public static byte[] smethod_2(string string1) + { + return ZipManager.smethod_5( + KeyGenerator.CryptoMethod( + Assembly.GetExecutingAssembly().GetManifestResourceStream("GHTCP.FileDB.QB." + string1), + "MinimizedQBFile4f4g9h"), string1 + ".qb"); + } - public static ZzGenericNode1 smethod_3(string string1) - { - return new ZzGenericNode1(string1, smethod_2(string1)); - } - } -} + public static ZzGenericNode1 smethod_3(string string1) + { + return new ZzGenericNode1(string1, smethod_2(string1)); + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/zzSetListParser.cs b/GHNamespaceA/zzSetListParser.cs index 90d8053..71a6e6a 100644 --- a/GHNamespaceA/zzSetListParser.cs +++ b/GHNamespaceA/zzSetListParser.cs @@ -7,80 +7,86 @@ namespace GHNamespaceA { - public class ZzSetListParser : QbEditor - { - private readonly ZzPakNode2 _class3180; + public class ZzSetListParser : QbEditor + { + private readonly ZzPakNode2 _class3180; - private readonly Gh3Songlist _gh3Songlist0; + private readonly Gh3Songlist _gh3Songlist0; - private readonly bool _bool0; + private readonly bool _bool0; - public ZzSetListParser(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) - { - _class3180 = class3181; - _gh3Songlist0 = gh3Songlist1; - _bool0 = bool1; - } + public ZzSetListParser(ZzPakNode2 class3181, Gh3Songlist gh3Songlist1, bool bool1) + { + _class3180 = class3181; + _gh3Songlist0 = gh3Songlist1; + _bool0 = bool1; + } - public override void vmethod_0() - { - var text = "scripts\\guitar\\guitar_progression.qb"; - ZzGenericNode1 @class = _class3180.ZzGetNode1(text); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_career_songs"))); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_general_songs"))); - if (!_bool0) - { - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs"))); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs_coop"))); - } - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p1_career_progression"))); - if (!_bool0) - { - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_career_progression"))); - } - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("bonus_progression"))); - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("download_progression"))); - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("general_progression"))); - if (!_bool0) - { - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("generalp2_progression"))); - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_coop_progression"))); - } - @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_download.qb"); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_download_songs"))); - if (!_bool0) - { - @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_coop.qb"); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_coopcareer_songs"))); - } - @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\store_data.qb"); - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_bonus_songs"))); - if (_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb")) - { - @class = _class3180.ZzGetNode1(text); - var num = @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_7(); - for (var i = 0; i < 32; i++) - { - if (num >> i != 0) - { - _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_custom" + (i + 1) + "_songs"))).CustomBit = 1 << i; - _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("custom" + (i + 1) + "_progression"))); - } - } - _gh3Songlist0.CustomBitMask = num; - } - @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb"); - _gh3Songlist0.method_6((StructureArrayNode)@class.method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" + (_bool0 ? "gha" : "gh3"))).method_7()); - } + public override void vmethod_0() + { + var text = "scripts\\guitar\\guitar_progression.qb"; + ZzGenericNode1 @class = _class3180.ZzGetNode1(text); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_career_songs"))); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_general_songs"))); + if (!_bool0) + { + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs"))); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs_coop"))); + } + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p1_career_progression"))); + if (!_bool0) + { + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_career_progression"))); + } + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("bonus_progression"))); + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("download_progression"))); + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("general_progression"))); + if (!_bool0) + { + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("generalp2_progression"))); + _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_coop_progression"))); + } + @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_download.qb"); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_download_songs"))); + if (!_bool0) + { + @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_coop.qb"); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_coopcareer_songs"))); + } + @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\store_data.qb"); + _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_bonus_songs"))); + if (_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb")) + { + @class = _class3180.ZzGetNode1(text); + var num = @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_7(); + for (var i = 0; i < 32; i++) + { + if (num >> i != 0) + { + _gh3Songlist0.method_4(text, + @class.method_5(new StructurePointerRootNode("gh3_custom" + (i + 1) + "_songs"))) + .CustomBit = 1 << i; + _gh3Songlist0.method_5(text, + @class.method_5(new StructurePointerRootNode("custom" + (i + 1) + "_progression"))); + } + } + _gh3Songlist0.CustomBitMask = num; + } + @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb"); + _gh3Songlist0.method_6((StructureArrayNode) @class + .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" + + (_bool0 ? "gha" : "gh3"))) + .method_7()); + } - public override string ToString() - { - return "Parse Setlists"; - } + public override string ToString() + { + return "Parse Setlists"; + } - public override bool Equals(QbEditor other) - { - return other is ZzSetListParser; - } - } -} + public override bool Equals(QbEditor other) + { + return other is ZzSetListParser; + } + } +} \ No newline at end of file diff --git a/GHNamespaceA/zzSetListUpdater.cs b/GHNamespaceA/zzSetListUpdater.cs index 03b0ea8..5b3b90e 100644 --- a/GHNamespaceA/zzSetListUpdater.cs +++ b/GHNamespaceA/zzSetListUpdater.cs @@ -5,38 +5,39 @@ namespace GHNamespaceA { - public class ZzSetListUpdater : QbEditor - { - private readonly Gh3Songlist _gh3Songlist0; - - private readonly ZzPakNode2 _class3180; - - private readonly string _string0; - - private readonly int _int0; - - public ZzSetListUpdater(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) - { - _string0 = gh3Songlist1.method_8(int1); - _int0 = int1; - _class3180 = class3181; - _gh3Songlist0 = gh3Songlist1; - } - - public override void vmethod_0() - { - ZzGenericNode1 @class = _class3180.ZzGetNode1(_gh3Songlist0.Gh3SetlistList[_int0].method_2()); - @class.method_5(new StructurePointerRootNode(_int0)).method_8(_gh3Songlist0.Gh3SetlistList[_int0].method_6()); - } - - public override string ToString() - { - return "Update Setlist: " + _string0; - } - - public override bool Equals(QbEditor other) - { - return other is ZzSetListUpdater && (other as ZzSetListUpdater)._int0 == _int0; - } - } -} + public class ZzSetListUpdater : QbEditor + { + private readonly Gh3Songlist _gh3Songlist0; + + private readonly ZzPakNode2 _class3180; + + private readonly string _string0; + + private readonly int _int0; + + public ZzSetListUpdater(int int1, ZzPakNode2 class3181, Gh3Songlist gh3Songlist1) + { + _string0 = gh3Songlist1.method_8(int1); + _int0 = int1; + _class3180 = class3181; + _gh3Songlist0 = gh3Songlist1; + } + + public override void vmethod_0() + { + ZzGenericNode1 @class = _class3180.ZzGetNode1(_gh3Songlist0.Gh3SetlistList[_int0].method_2()); + @class.method_5(new StructurePointerRootNode(_int0)) + .method_8(_gh3Songlist0.Gh3SetlistList[_int0].method_6()); + } + + public override string ToString() + { + return "Update Setlist: " + _string0; + } + + public override bool Equals(QbEditor other) + { + return other is ZzSetListUpdater && (other as ZzSetListUpdater)._int0 == _int0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/AbsTreeNode1_1.cs b/GHNamespaceB/AbsTreeNode1_1.cs index 26b7f8a..fa8740e 100644 --- a/GHNamespaceB/AbsTreeNode1_1.cs +++ b/GHNamespaceB/AbsTreeNode1_1.cs @@ -4,65 +4,65 @@ namespace GHNamespaceB { - public abstract class AbsTreeNode11 : AbstractTreeNode1 - { - public override int CompareTo(object target) - { - if (!target.GetType().Equals(GetType())) - { - return -1; - } - if (((AbsTreeNode11)target).Text == Text) - { - return 0; - } - return 1; - } + public abstract class AbsTreeNode11 : AbstractTreeNode1 + { + public override int CompareTo(object target) + { + if (!target.GetType().Equals(GetType())) + { + return -1; + } + if (((AbsTreeNode11) target).Text == Text) + { + return 0; + } + return 1; + } - public T[] method_7() - { - return method_8().ToArray(); - } + public T[] method_7() + { + return method_8().ToArray(); + } - public List method_8() - { - var list = new List(); - if (Nodes[0] is AbstractTreeNode1) - { - var enumerator = Nodes.GetEnumerator(); - try - { - while (enumerator.MoveNext()) - { - var item = (T)enumerator.Current; - list.Add(item); - } - return list; - } - finally - { - var disposable = enumerator as IDisposable; - if (disposable != null) - { - disposable.Dispose(); - } - } - } - foreach (AbstractTreeNode2 @class in Nodes) - { - list.Add((T)@class.vmethod_7()); - } - return list; - } + public List method_8() + { + var list = new List(); + if (Nodes[0] is AbstractTreeNode1) + { + var enumerator = Nodes.GetEnumerator(); + try + { + while (enumerator.MoveNext()) + { + var item = (T) enumerator.Current; + list.Add(item); + } + return list; + } + finally + { + var disposable = enumerator as IDisposable; + if (disposable != null) + { + disposable.Dispose(); + } + } + } + foreach (AbstractTreeNode2 @class in Nodes) + { + list.Add((T) @class.vmethod_7()); + } + return list; + } - public override Color GetColor() - { - return GetColor2IfPrevNodeIsColor1(Color.PowderBlue, Color.PaleTurquoise); - } + public override Color GetColor() + { + return GetColor2IfPrevNodeIsColor1(Color.PowderBlue, Color.PaleTurquoise); + } - public override string GetText() - { - return string.Concat(GetNodeText(), " (", Nodes.Count, ")"); - } - } -} + public override string GetText() + { + return string.Concat(GetNodeText(), " (", Nodes.Count, ")"); + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/AbsTreeNode1_1_Gen.cs b/GHNamespaceB/AbsTreeNode1_1_Gen.cs index 5cf7b05..0e91212 100644 --- a/GHNamespaceB/AbsTreeNode1_1_Gen.cs +++ b/GHNamespaceB/AbsTreeNode1_1_Gen.cs @@ -2,24 +2,23 @@ namespace GHNamespaceB { - //Probably an array tree node - public abstract class AbsTreeNode11 : AbsTreeNode11 where T : AbstractBaseTreeNode1 - { - public void method_9(IEnumerable ienumerable0) - { - Nodes.Clear(); - method_10(ienumerable0); - } + public abstract class AbsTreeNode11 : AbsTreeNode11 where T : AbstractBaseTreeNode1 + { + public void method_9(IEnumerable ienumerable0) + { + Nodes.Clear(); + method_10(ienumerable0); + } - public void method_10(IEnumerable ienumerable0) - { - foreach (var current in ienumerable0) - { - Nodes.Add(current); - } - vmethod_0(); - } - } -} + public void method_10(IEnumerable ienumerable0) + { + foreach (var current in ienumerable0) + { + Nodes.Add(current); + } + vmethod_0(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/AbstractBaseTreeNode1.cs b/GHNamespaceB/AbstractBaseTreeNode1.cs index dcc7efb..1a8208a 100644 --- a/GHNamespaceB/AbstractBaseTreeNode1.cs +++ b/GHNamespaceB/AbstractBaseTreeNode1.cs @@ -3,50 +3,50 @@ namespace GHNamespaceB { - public abstract class AbstractBaseTreeNode1 : TreeNode - { - public static bool Bool0 = true; - - public virtual void vmethod_0() - { - if (!Bool0) - { - return; - } - Text = GetText(); - ToolTipText = GetToolTipText(); - BackColor = GetColor(); - SelectedImageIndex = (ImageIndex = vmethod_1()); - } - - public abstract int vmethod_1(); - - public abstract void vmethod_2(ref int int0); - - public virtual string GetText() - { - return GetNodeText(); - } - - public virtual string GetToolTipText() + public abstract class AbstractBaseTreeNode1 : TreeNode + { + public static bool Bool0 = true; + + public virtual void vmethod_0() + { + if (!Bool0) + { + return; + } + Text = GetText(); + ToolTipText = GetToolTipText(); + BackColor = GetColor(); + SelectedImageIndex = (ImageIndex = vmethod_1()); + } + + public abstract int vmethod_1(); + + public abstract void vmethod_2(ref int int0); + + public virtual string GetText() + { + return GetNodeText(); + } + + public virtual string GetToolTipText() + { + return GetNodeText(); + } + + public abstract string GetNodeText(); + + public Color GetColor2IfPrevNodeIsColor1(Color color1, Color color2) + { + if (Parent != null && PrevNode != null && PrevNode.BackColor.Equals(color1)) + { + return color2; + } + return color1; + } + + public virtual Color GetColor() { - return GetNodeText(); - } - - public abstract string GetNodeText(); - - public Color GetColor2IfPrevNodeIsColor1(Color color1, Color color2) - { - if (Parent != null && PrevNode != null && PrevNode.BackColor.Equals(color1)) - { - return color2; - } - return color1; - } - - public virtual Color GetColor() - { - return Color.Aqua; - } - } -} + return Color.Aqua; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/AbstractTreeNode1.cs b/GHNamespaceB/AbstractTreeNode1.cs index 3f86192..d01206b 100644 --- a/GHNamespaceB/AbstractTreeNode1.cs +++ b/GHNamespaceB/AbstractTreeNode1.cs @@ -4,143 +4,143 @@ namespace GHNamespaceB { - public abstract class AbstractTreeNode1 : AbstractBaseTreeNode1, IComparable - { - public AbstractTreeNode1 method_1() - { - return (AbstractTreeNode1)Parent; - } - - public virtual bool vmethod_7() - { - return method_1().vmethod_7(); - } - - public static int smethod_0(long long0) - { - return (int)(4L - (long0 & 3L)) & 3; - } - - public virtual bool vmethod_8() - { - return method_1().vmethod_8(); - } - - public virtual void vmethod_9(bool bool1) - { - method_1().vmethod_9(bool1); - } - - public virtual Dictionary vmethod_10() - { - return method_1().vmethod_10(); - } - - public virtual void vmethod_11(Dictionary dictionary0) - { - method_1().vmethod_11(dictionary0); - } - - public AbstractBaseTreeNode1 method_2(int int0) - { - return (AbstractBaseTreeNode1)Nodes[int0]; - } - - public int method_3(AbstractBaseTreeNode1 class2580) - { - return Nodes.Add(class2580); - } - - public virtual AbstractTreeNode1 vmethod_12(int int0) - { - return method_1().vmethod_12(int0); - } - - public void method_4(Stream26 stream260) - { - vmethod_13(stream260); - vmethod_0(); - } - - public abstract void vmethod_13(Stream26 stream260); - - public abstract void vmethod_14(Stream26 stream260); - - public T method_5(T gparam0) where T : AbstractTreeNode1 - { - if (CompareTo(gparam0) == 0) - { - return (T)this; - } - if (Nodes.Count != 0 && Nodes[0] is AbstractTreeNode1) - { - var enumerator = Nodes.GetEnumerator(); - T result; - try - { - while (enumerator.MoveNext()) - { - var @class = (AbstractTreeNode1)enumerator.Current; - T t; - if ((t = @class.method_5(gparam0)) != null) - { - result = t; - return result; - } - } - goto IL_84; - } - finally - { - var disposable = enumerator as IDisposable; - if (disposable != null) - { - disposable.Dispose(); - } - } - return result; - } - IL_84: - return default(T); - } - - public bool method_6(ref T gparam0) where T : AbstractTreeNode1 - { - if (CompareTo(gparam0) == 0) - { - gparam0 = (T)this; - return true; - } - if (Nodes.Count != 0 && Nodes[0] is AbstractTreeNode1) - { - var enumerator = Nodes.GetEnumerator(); - bool result; - try - { - while (enumerator.MoveNext()) - { - var @class = (AbstractTreeNode1)enumerator.Current; - if (@class.method_6(ref gparam0)) - { - result = true; - return result; - } - } - return false; - } - finally - { - var disposable = enumerator as IDisposable; - if (disposable != null) - { - disposable.Dispose(); - } - } - return result; - } - return false; - } - - public abstract int CompareTo(object target); - } -} + public abstract class AbstractTreeNode1 : AbstractBaseTreeNode1, IComparable + { + public AbstractTreeNode1 method_1() + { + return (AbstractTreeNode1) Parent; + } + + public virtual bool vmethod_7() + { + return method_1().vmethod_7(); + } + + public static int smethod_0(long long0) + { + return (int) (4L - (long0 & 3L)) & 3; + } + + public virtual bool vmethod_8() + { + return method_1().vmethod_8(); + } + + public virtual void vmethod_9(bool bool1) + { + method_1().vmethod_9(bool1); + } + + public virtual Dictionary vmethod_10() + { + return method_1().vmethod_10(); + } + + public virtual void vmethod_11(Dictionary dictionary0) + { + method_1().vmethod_11(dictionary0); + } + + public AbstractBaseTreeNode1 method_2(int int0) + { + return (AbstractBaseTreeNode1) Nodes[int0]; + } + + public int method_3(AbstractBaseTreeNode1 class2580) + { + return Nodes.Add(class2580); + } + + public virtual AbstractTreeNode1 vmethod_12(int int0) + { + return method_1().vmethod_12(int0); + } + + public void method_4(Stream26 stream260) + { + vmethod_13(stream260); + vmethod_0(); + } + + public abstract void vmethod_13(Stream26 stream260); + + public abstract void vmethod_14(Stream26 stream260); + + public T method_5(T gparam0) where T : AbstractTreeNode1 + { + if (CompareTo(gparam0) == 0) + { + return (T) this; + } + if (Nodes.Count != 0 && Nodes[0] is AbstractTreeNode1) + { + var enumerator = Nodes.GetEnumerator(); + T result; + try + { + while (enumerator.MoveNext()) + { + var @class = (AbstractTreeNode1) enumerator.Current; + T t; + if ((t = @class.method_5(gparam0)) != null) + { + result = t; + return result; + } + } + goto IL_84; + } + finally + { + var disposable = enumerator as IDisposable; + if (disposable != null) + { + disposable.Dispose(); + } + } + return result; + } + IL_84: + return default(T); + } + + public bool method_6(ref T gparam0) where T : AbstractTreeNode1 + { + if (CompareTo(gparam0) == 0) + { + gparam0 = (T) this; + return true; + } + if (Nodes.Count != 0 && Nodes[0] is AbstractTreeNode1) + { + var enumerator = Nodes.GetEnumerator(); + bool result; + try + { + while (enumerator.MoveNext()) + { + var @class = (AbstractTreeNode1) enumerator.Current; + if (@class.method_6(ref gparam0)) + { + result = true; + return result; + } + } + return false; + } + finally + { + var disposable = enumerator as IDisposable; + if (disposable != null) + { + disposable.Dispose(); + } + } + return result; + } + return false; + } + + public abstract int CompareTo(object target); + } +} \ No newline at end of file diff --git a/GHNamespaceB/AbstractTreeNode2.cs b/GHNamespaceB/AbstractTreeNode2.cs index 0a8d612..9986a2f 100644 --- a/GHNamespaceB/AbstractTreeNode2.cs +++ b/GHNamespaceB/AbstractTreeNode2.cs @@ -2,50 +2,50 @@ namespace GHNamespaceB { - public abstract class AbstractTreeNode2 : AbstractBaseTreeNode1 - { - private static bool _colorFlipFlopper; - - public abstract object vmethod_7(); - - public abstract byte[] vmethod_8(); - - public abstract void vmethod_9(byte[] byte0); - - public string IntToHex32Bit(int int0) // This is kind of dumb because this is implemented elsewhere already - { - var text = int0.ToString("x"); - while (text.Length < 8) - { - text = "0" + text; - } - return text; - } - - public override Color GetColor() - { - if (_colorFlipFlopper = !_colorFlipFlopper) //why would you do this max - { - return Color.Ivory; - } - return Color.Khaki; - } - - public override object Clone() - { - var @class = (AbstractTreeNode2)base.Clone(); - @class.vmethod_9(vmethod_8()); - return @class; - } - - public override bool Equals(object obj) - { - return obj is AbstractTreeNode2 && ((AbstractTreeNode2)obj).vmethod_7().Equals(vmethod_7()); - } - - public override int GetHashCode() - { - return base.GetHashCode(); - } - } -} + public abstract class AbstractTreeNode2 : AbstractBaseTreeNode1 + { + private static bool _colorFlipFlopper; + + public abstract object vmethod_7(); + + public abstract byte[] vmethod_8(); + + public abstract void vmethod_9(byte[] byte0); + + public string IntToHex32Bit(int int0) // This is kind of dumb because this is implemented elsewhere already + { + var text = int0.ToString("x"); + while (text.Length < 8) + { + text = "0" + text; + } + return text; + } + + public override Color GetColor() + { + if (_colorFlipFlopper = !_colorFlipFlopper) //why would you do this max + { + return Color.Ivory; + } + return Color.Khaki; + } + + public override object Clone() + { + var @class = (AbstractTreeNode2) base.Clone(); + @class.vmethod_9(vmethod_8()); + return @class; + } + + public override bool Equals(object obj) + { + return obj is AbstractTreeNode2 && ((AbstractTreeNode2) obj).vmethod_7().Equals(vmethod_7()); + } + + public override int GetHashCode() + { + return base.GetHashCode(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/AsciiRootNode.cs b/GHNamespaceB/AsciiRootNode.cs index 641deaa..9601597 100644 --- a/GHNamespaceB/AsciiRootNode.cs +++ b/GHNamespaceB/AsciiRootNode.cs @@ -3,74 +3,74 @@ namespace GHNamespaceB { - public class AsciiRootNode : ZzUnkNode260 - { - public AsciiRootNode() - { - vmethod_0(); - } + public class AsciiRootNode : ZzUnkNode260 + { + public AsciiRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 0; - } + public override int vmethod_1() + { + return 0; + } - public string method_7() - { - if (Nodes.Count != 0) - { - return ((AsciiValueNode)FirstNode).String0; - } - return null; - } + public string method_7() + { + if (Nodes.Count != 0) + { + return ((AsciiValueNode) FirstNode).String0; + } + return null; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - var num = stream260.ReadInt(); - stream260.ReadInt(); - if (num != 0) - { - Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(num))); - stream260.Position += smethod_0(stream260.Position); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + var num = stream260.ReadInt(); + stream260.ReadInt(); + if (num != 0) + { + Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(num))); + stream260.Position += smethod_0(stream260.Position); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = (vmethod_7() ? (byte)32 : (byte)4); - array[2] = 3; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - if (Nodes.Count != 0) - { - stream260.WriteInt((int)stream260.Position + 8); - stream260.WriteInt(0); - stream260.WriteString(method_7()); - stream260.WriteByte2(0); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - return; - } - stream260.WriteNBytes(0, 8); - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = (vmethod_7() ? (byte) 32 : (byte) 4); + array[2] = 3; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + if (Nodes.Count != 0) + { + stream260.WriteInt((int) stream260.Position + 8); + stream260.WriteInt(0); + stream260.WriteString(method_7()); + stream260.WriteByte2(0); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + return; + } + stream260.WriteNBytes(0, 8); + } - public override string GetNodeText() - { - return "Ascii Root"; - } + public override string GetNodeText() + { + return "Ascii Root"; + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - if (Nodes.Count != 0) - { - ((AsciiValueNode)Nodes[0]).vmethod_2(ref int2); - int2++; - int2 += smethod_0(int2); - } - } - } -} + public override void vmethod_2(ref int int2) + { + int2 += 20; + if (Nodes.Count != 0) + { + ((AsciiValueNode) Nodes[0]).vmethod_2(ref int2); + int2++; + int2 += smethod_0(int2); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/Enum34.cs b/GHNamespaceB/Enum34.cs index 5822dc1..26ced00 100644 --- a/GHNamespaceB/Enum34.cs +++ b/GHNamespaceB/Enum34.cs @@ -1,11 +1,11 @@ namespace GHNamespaceB { - public enum Enum34 - { - Const0, - Const1, - Const2, - Const3, - Const4 - } -} + public enum Enum34 + { + Const0, + Const1, + Const2, + Const3, + Const4 + } +} \ No newline at end of file diff --git a/GHNamespaceB/EventArgs1.cs b/GHNamespaceB/EventArgs1.cs index 4dafa5f..c856459 100644 --- a/GHNamespaceB/EventArgs1.cs +++ b/GHNamespaceB/EventArgs1.cs @@ -4,31 +4,31 @@ namespace GHNamespaceB { - public class EventArgs1 : EventArgs - { - public ModKeys ModKeys0; + public class EventArgs1 : EventArgs + { + public ModKeys ModKeys0; - public Keys Keys0; + public Keys Keys0; - public EventArgs1(ModKeys modKeys1, Keys keys1) - { - ModKeys0 = modKeys1; - Keys0 = keys1; - } + public EventArgs1(ModKeys modKeys1, Keys keys1) + { + ModKeys0 = modKeys1; + Keys0 = keys1; + } - public override bool Equals(object obj) - { - return ModKeys0 == ((EventArgs1)obj).ModKeys0 && Keys0 == ((EventArgs1)obj).Keys0; - } + public override bool Equals(object obj) + { + return ModKeys0 == ((EventArgs1) obj).ModKeys0 && Keys0 == ((EventArgs1) obj).Keys0; + } - public override int GetHashCode() - { - return 1; - } + public override int GetHashCode() + { + return 1; + } - public override string ToString() - { - return ModKeys0 + " + " + Keys0; - } - } -} + public override string ToString() + { + return ModKeys0 + " + " + Keys0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/EventArgs2.cs b/GHNamespaceB/EventArgs2.cs index 61f8791..ba69f2d 100644 --- a/GHNamespaceB/EventArgs2.cs +++ b/GHNamespaceB/EventArgs2.cs @@ -3,14 +3,14 @@ namespace GHNamespaceB { - public class EventArgs2 : EventArgs - { - public Enum34 Enum340; + public class EventArgs2 : EventArgs + { + public Enum34 Enum340; - public INterface11 Interface110; + public INterface11 Interface110; - public INterface11 Interface111; + public INterface11 Interface111; - public object[] Object0; - } -} + public object[] Object0; + } +} \ No newline at end of file diff --git a/GHNamespaceB/FloatArrayNode.cs b/GHNamespaceB/FloatArrayNode.cs index 821c51f..c3a4ec8 100644 --- a/GHNamespaceB/FloatArrayNode.cs +++ b/GHNamespaceB/FloatArrayNode.cs @@ -3,46 +3,46 @@ namespace GHNamespaceB { - public class FloatArrayNode : ZzUnkNode278 - { - public float this[int int0] - { - get => ((FloatValueNode)Nodes[int0]).Float0; - set => ((FloatValueNode)Nodes[int0]).Float0 = value; - } + public class FloatArrayNode : ZzUnkNode278 + { + public float this[int int0] + { + get => ((FloatValueNode) Nodes[int0]).Float0; + set => ((FloatValueNode) Nodes[int0]).Float0 = value; + } - public FloatArrayNode() - { - vmethod_0(); - } + public FloatArrayNode() + { + vmethod_0(); + } - public FloatArrayNode(IEnumerable ienumerable0) - { - method_11(ienumerable0); - } + public FloatArrayNode(IEnumerable ienumerable0) + { + method_11(ienumerable0); + } - public override int vmethod_1() - { - return 13; - } + public override int vmethod_1() + { + return 13; + } - public void method_11(IEnumerable ienumerable0) - { - foreach (var float_ in ienumerable0) - { - Nodes.Add(new FloatValueNode(float_)); - } - vmethod_0(); - } + public void method_11(IEnumerable ienumerable0) + { + foreach (var float_ in ienumerable0) + { + Nodes.Add(new FloatValueNode(float_)); + } + vmethod_0(); + } - public override byte vmethod_15() - { - return 2; - } + public override byte vmethod_15() + { + return 2; + } - public override string GetNodeText() - { - return "Float Array"; - } - } -} + public override string GetNodeText() + { + return "Float Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/IntegerArrayNode.cs b/GHNamespaceB/IntegerArrayNode.cs index 6f62f59..a2bffe9 100644 --- a/GHNamespaceB/IntegerArrayNode.cs +++ b/GHNamespaceB/IntegerArrayNode.cs @@ -3,52 +3,52 @@ namespace GHNamespaceB { - public class IntegerArrayNode : ZzUnkNode278 - { - public int this[int int0] - { - get => ((IntegerValueNode)Nodes[int0]).Int0; - set => ((IntegerValueNode)Nodes[int0]).Int0 = value; - } - - public IntegerArrayNode() - { - vmethod_0(); - } - - public IntegerArrayNode(IEnumerable ienumerable0) - { - method_11(ienumerable0); - } - - public override int vmethod_1() - { - return 12; - } - - public void method_11(IEnumerable ienumerable0) - { - foreach (var current in ienumerable0) - { - Nodes.Add(new IntegerValueNode(current)); - } - vmethod_0(); - } - - public void method_12(IEnumerable ienumerable0) - { - Nodes.Clear(); - method_11(ienumerable0); - } - - public override byte vmethod_15() - { - return 1; - } - - public override string GetNodeText() - { - return "Integer Array"; - } - } -} + public class IntegerArrayNode : ZzUnkNode278 + { + public int this[int int0] + { + get => ((IntegerValueNode) Nodes[int0]).Int0; + set => ((IntegerValueNode) Nodes[int0]).Int0 = value; + } + + public IntegerArrayNode() + { + vmethod_0(); + } + + public IntegerArrayNode(IEnumerable ienumerable0) + { + method_11(ienumerable0); + } + + public override int vmethod_1() + { + return 12; + } + + public void method_11(IEnumerable ienumerable0) + { + foreach (var current in ienumerable0) + { + Nodes.Add(new IntegerValueNode(current)); + } + vmethod_0(); + } + + public void method_12(IEnumerable ienumerable0) + { + Nodes.Clear(); + method_11(ienumerable0); + } + + public override byte vmethod_15() + { + return 1; + } + + public override string GetNodeText() + { + return "Integer Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/QbScriptNode.cs b/GHNamespaceB/QbScriptNode.cs index fdc3681..982a60a 100644 --- a/GHNamespaceB/QbScriptNode.cs +++ b/GHNamespaceB/QbScriptNode.cs @@ -6,127 +6,127 @@ namespace GHNamespaceB { - public class QbScriptNode : AbstractTreeNode1 - { - public byte[] Byte0; + public class QbScriptNode : AbstractTreeNode1 + { + public byte[] Byte0; - public int Int0; + public int Int0; - public QbScriptNode() - { - Int0 = -1; - Byte0 = new byte[] - { - 1, - 36 - }; - vmethod_0(); - } + public QbScriptNode() + { + Int0 = -1; + Byte0 = new byte[] + { + 1, + 36 + }; + vmethod_0(); + } - public override int vmethod_1() - { - return 36; - } + public override int vmethod_1() + { + return 36; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - var num = stream260.ReadInt(); - var num2 = stream260.ReadInt(); - var byte_ = stream260.ReadBytes(num2, false); - if (num == num2) - { - Byte0 = byte_; - } - else - { - Byte0 = new Class320().method_4(byte_); - } - stream260.Position += smethod_0(stream260.Position); - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + var num = stream260.ReadInt(); + var num2 = stream260.ReadInt(); + var byte_ = stream260.ReadBytes(num2, false); + if (num == num2) + { + Byte0 = byte_; + } + else + { + Byte0 = new Class320().method_4(byte_); + } + stream260.Position += smethod_0(stream260.Position); + } - public override void vmethod_14(Stream26 stream260) - { - stream260.WriteInt(Int0); - stream260.WriteInt(Byte0.Length); - var array = new Class320().method_0(Byte0); - if (Byte0.Length <= array.Length) - { - array = Byte0; - } - stream260.WriteInt(array.Length); - stream260.WriteByteArray(array, false); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - } + public override void vmethod_14(Stream26 stream260) + { + stream260.WriteInt(Int0); + stream260.WriteInt(Byte0.Length); + var array = new Class320().method_0(Byte0); + if (Byte0.Length <= array.Length) + { + array = Byte0; + } + stream260.WriteInt(array.Length); + stream260.WriteByteArray(array, false); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + } - public override int CompareTo(object target) - { - if (!(target is QbScriptNode)) - { - return -1; - } - if (((QbScriptNode)target).Int0 == Int0) - { - return 0; - } - return 1; - } + public override int CompareTo(object target) + { + if (!(target is QbScriptNode)) + { + return -1; + } + if (((QbScriptNode) target).Int0 == Int0) + { + return 0; + } + return 1; + } - public override string GetText() - { - if (QbSongClass1.ContainsKey(Int0)) - { - return QbSongClass1.GetDictString(Int0) + " (Script)"; - } - return KeyGenerator.ValToHex32Bit(Int0) + " (Script Tag)"; - } + public override string GetText() + { + if (QbSongClass1.ContainsKey(Int0)) + { + return QbSongClass1.GetDictString(Int0) + " (Script)"; + } + return KeyGenerator.ValToHex32Bit(Int0) + " (Script Tag)"; + } - public void method_7(byte[] byte1) - { - Byte0 = byte1; - } + public void method_7(byte[] byte1) + { + Byte0 = byte1; + } - public override string GetNodeText() - { - return "QB Script"; - } + public override string GetNodeText() + { + return "QB Script"; + } - public override void vmethod_2(ref int int1) - { - int1 += 12; - if (Byte0 != null) - { - var array = new Class320().method_0(Byte0); - if (Byte0.Length <= array.Length) - { - array = Byte0; - } - int1 += array.Length; - } - int1 += smethod_0(int1); - } + public override void vmethod_2(ref int int1) + { + int1 += 12; + if (Byte0 != null) + { + var array = new Class320().method_0(Byte0); + if (Byte0.Length <= array.Length) + { + array = Byte0; + } + int1 += array.Length; + } + int1 += smethod_0(int1); + } - public override object Clone() - { - var @class = (QbScriptNode)base.Clone(); - @class.Int0 = Int0; - @class.Byte0 = new byte[Byte0.Length]; - Buffer.BlockCopy(Byte0, 0, @class.Byte0, 0, Byte0.Length); - return @class; - } + public override object Clone() + { + var @class = (QbScriptNode) base.Clone(); + @class.Int0 = Int0; + @class.Byte0 = new byte[Byte0.Length]; + Buffer.BlockCopy(Byte0, 0, @class.Byte0, 0, Byte0.Length); + return @class; + } - public override Color GetColor() - { - return Color.Pink; - } + public override Color GetColor() + { + return Color.Pink; + } - public override string GetToolTipText() - { - if (Byte0 != null) - { - return Byte0.Length + " QB Script Bytes"; - } - return "No QB Script Bytes"; - } - } -} + public override string GetToolTipText() + { + if (Byte0 != null) + { + return Byte0.Length + " QB Script Bytes"; + } + return "No QB Script Bytes"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/Struct83.cs b/GHNamespaceB/Struct83.cs index e61112a..2db6479 100644 --- a/GHNamespaceB/Struct83.cs +++ b/GHNamespaceB/Struct83.cs @@ -2,118 +2,118 @@ namespace GHNamespaceB { - public struct Struct83 : IComparable, IConvertible, IFormattable - { - private object _object0; - - public int CompareTo(object target) - { - return ((IComparable)_object0).CompareTo(target); - } - - public string ToString(string format, IFormatProvider provider) - { - return ((IFormattable)_object0).ToString(format, provider); - } - - public ulong ToUInt64(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt64(provider); - } - - public sbyte ToSByte(IFormatProvider provider) - { - return ((IConvertible)_object0).ToSByte(provider); - } - - public double ToDouble(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDouble(provider); - } - - public DateTime ToDateTime(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDateTime(provider); - } - - public float ToSingle(IFormatProvider provider) - { - return ((IConvertible)_object0).ToSingle(provider); - } - - public bool ToBoolean(IFormatProvider provider) - { - return ((IConvertible)_object0).ToBoolean(provider); - } - - public int ToInt32(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt32(provider); - } - - public ushort ToUInt16(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt16(provider); - } - - public short ToInt16(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt16(provider); - } - - string IConvertible.ToString(IFormatProvider provider) - { - return ((IConvertible)_object0).ToString(provider); - } - - public byte ToByte(IFormatProvider provider) - { - return ((IConvertible)_object0).ToByte(provider); - } - - public char ToChar(IFormatProvider provider) - { - return ((IConvertible)_object0).ToChar(provider); - } - - public long ToInt64(IFormatProvider provider) - { - return ((IConvertible)_object0).ToInt64(provider); - } - - public TypeCode GetTypeCode() - { - return ((IConvertible)_object0).GetTypeCode(); - } - - public decimal ToDecimal(IFormatProvider provider) - { - return ((IConvertible)_object0).ToDecimal(provider); - } - - public object ToType(Type conversionType, IFormatProvider provider) - { - return ((IConvertible)_object0).ToType(conversionType, provider); - } - - public uint ToUInt32(IFormatProvider provider) - { - return ((IConvertible)_object0).ToUInt32(provider); - } - - public override bool Equals(object obj) - { - return (obj is IComparable || obj is IConvertible) && ((IComparable)obj).CompareTo(_object0) == 0; - } - - public override int GetHashCode() - { - return _object0.GetHashCode(); - } - - public override string ToString() - { - return _object0.ToString(); - } - } -} + public struct Struct83 : IComparable, IConvertible, IFormattable + { + private object _object0; + + public int CompareTo(object target) + { + return ((IComparable) _object0).CompareTo(target); + } + + public string ToString(string format, IFormatProvider provider) + { + return ((IFormattable) _object0).ToString(format, provider); + } + + public ulong ToUInt64(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt64(provider); + } + + public sbyte ToSByte(IFormatProvider provider) + { + return ((IConvertible) _object0).ToSByte(provider); + } + + public double ToDouble(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDouble(provider); + } + + public DateTime ToDateTime(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDateTime(provider); + } + + public float ToSingle(IFormatProvider provider) + { + return ((IConvertible) _object0).ToSingle(provider); + } + + public bool ToBoolean(IFormatProvider provider) + { + return ((IConvertible) _object0).ToBoolean(provider); + } + + public int ToInt32(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt32(provider); + } + + public ushort ToUInt16(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt16(provider); + } + + public short ToInt16(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt16(provider); + } + + string IConvertible.ToString(IFormatProvider provider) + { + return ((IConvertible) _object0).ToString(provider); + } + + public byte ToByte(IFormatProvider provider) + { + return ((IConvertible) _object0).ToByte(provider); + } + + public char ToChar(IFormatProvider provider) + { + return ((IConvertible) _object0).ToChar(provider); + } + + public long ToInt64(IFormatProvider provider) + { + return ((IConvertible) _object0).ToInt64(provider); + } + + public TypeCode GetTypeCode() + { + return ((IConvertible) _object0).GetTypeCode(); + } + + public decimal ToDecimal(IFormatProvider provider) + { + return ((IConvertible) _object0).ToDecimal(provider); + } + + public object ToType(Type conversionType, IFormatProvider provider) + { + return ((IConvertible) _object0).ToType(conversionType, provider); + } + + public uint ToUInt32(IFormatProvider provider) + { + return ((IConvertible) _object0).ToUInt32(provider); + } + + public override bool Equals(object obj) + { + return (obj is IComparable || obj is IConvertible) && ((IComparable) obj).CompareTo(_object0) == 0; + } + + public override int GetHashCode() + { + return _object0.GetHashCode(); + } + + public override string ToString() + { + return _object0.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/TagStructureNode.cs b/GHNamespaceB/TagStructureNode.cs index c542ce5..6a287d2 100644 --- a/GHNamespaceB/TagStructureNode.cs +++ b/GHNamespaceB/TagStructureNode.cs @@ -3,89 +3,89 @@ namespace GHNamespaceB { - public class TagStructureNode : ZzUnkNode295 - { - public TagStructureNode() - { - vmethod_0(); - } + public class TagStructureNode : ZzUnkNode295 + { + public TagStructureNode() + { + vmethod_0(); + } - public TagStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public TagStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public TagStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public TagStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public TagStructureNode(int int1, string string0) - { - Int0 = int1; - Nodes.Add(new TagValueNode(string0)); - vmethod_0(); - } + public TagStructureNode(int int1, string string0) + { + Int0 = int1; + Nodes.Add(new TagValueNode(string0)); + vmethod_0(); + } - public TagStructureNode(string string0, string string1) - { - Int0 = QbSongClass1.AddKeyToDictionary(string0); - Nodes.Add(new TagValueNode(string1)); - vmethod_0(); - } + public TagStructureNode(string string0, string string1) + { + Int0 = QbSongClass1.AddKeyToDictionary(string0); + Nodes.Add(new TagValueNode(string1)); + vmethod_0(); + } - public TagStructureNode(string string0, int int1) - { - Int0 = QbSongClass1.AddKeyToDictionary(string0); - Nodes.Add(new TagValueNode(int1)); - vmethod_0(); - } + public TagStructureNode(string string0, int int1) + { + Int0 = QbSongClass1.AddKeyToDictionary(string0); + Nodes.Add(new TagValueNode(int1)); + vmethod_0(); + } - public override int vmethod_1() - { - return 25; - } + public override int vmethod_1() + { + return 25; + } - public string method_8() - { - if (Nodes.Count != 0) - { - return ((TagValueNode)FirstNode).method_2(); - } - return null; - } + public string method_8() + { + if (Nodes.Count != 0) + { + return ((TagValueNode) FirstNode).method_2(); + } + return null; + } - public void method_9(string string0) - { - if (Nodes.Count != 0) - { - ((TagValueNode)FirstNode).method_3(string0); - return; - } - Nodes.Add(new TagValueNode(string0)); - } + public void method_9(string string0) + { + if (Nodes.Count != 0) + { + ((TagValueNode) FirstNode).method_3(string0); + return; + } + Nodes.Add(new TagValueNode(string0)); + } - public int method_10() - { - if (Nodes.Count != 0) - { - return ((TagValueNode)FirstNode).Int0; - } - return 0; - } + public int method_10() + { + if (Nodes.Count != 0) + { + return ((TagValueNode) FirstNode).Int0; + } + return 0; + } - public override string GetNodeText() - { - return "Tag Structure"; - } + public override string GetNodeText() + { + return "Tag Structure"; + } - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 27; - } - return 141; - } - } -} + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 27; + } + return 141; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/TextRootNode.cs b/GHNamespaceB/TextRootNode.cs index 068125d..d2992c2 100644 --- a/GHNamespaceB/TextRootNode.cs +++ b/GHNamespaceB/TextRootNode.cs @@ -3,76 +3,76 @@ namespace GHNamespaceB { - public class TextRootNode : ZzUnkNode260 - { - public TextRootNode() - { - vmethod_0(); - } + public class TextRootNode : ZzUnkNode260 + { + public TextRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 1; - } + public override int vmethod_1() + { + return 1; + } - public string method_7() - { - if (Nodes.Count != 0) - { - return ((TextValueNode)FirstNode).method_2(); - } - return null; - } + public string method_7() + { + if (Nodes.Count != 0) + { + return ((TextValueNode) FirstNode).method_2(); + } + return null; + } - public int method_8() - { - if (Nodes.Count != 0) - { - return ((TextValueNode)FirstNode).Int0; - } - return 0; - } + public int method_8() + { + if (Nodes.Count != 0) + { + return ((TextValueNode) FirstNode).Int0; + } + return 0; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); - stream260.ReadInt(); - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); + stream260.ReadInt(); + } - public override void vmethod_14(Stream26 stream260) - { - vmethod_9(true); - var array = new byte[4]; - array[1] = (vmethod_7() ? (byte)32 : (byte)4); - array[2] = 28; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - if (Nodes.Count != 0) - { - stream260.WriteInt(method_8()); - if (method_7() != null) - { - vmethod_10()[method_8()] = method_7(); - } - } - else - { - stream260.WriteInt(0); - } - stream260.WriteInt(0); - } + public override void vmethod_14(Stream26 stream260) + { + vmethod_9(true); + var array = new byte[4]; + array[1] = (vmethod_7() ? (byte) 32 : (byte) 4); + array[2] = 28; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + if (Nodes.Count != 0) + { + stream260.WriteInt(method_8()); + if (method_7() != null) + { + vmethod_10()[method_8()] = method_7(); + } + } + else + { + stream260.WriteInt(0); + } + stream260.WriteInt(0); + } - public override string GetNodeText() - { - return "Text Root"; - } + public override string GetNodeText() + { + return "Text Root"; + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - } - } -} + public override void vmethod_2(ref int int2) + { + int2 += 20; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/UnusedCompilerClass2.cs b/GHNamespaceB/UnusedCompilerClass2.cs index cc44a2e..30f69f8 100644 --- a/GHNamespaceB/UnusedCompilerClass2.cs +++ b/GHNamespaceB/UnusedCompilerClass2.cs @@ -3,31 +3,30 @@ namespace GHNamespaceB { - //Can probably be removed - [CompilerGenerated] - public class UnusedCompilerClass2 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 136)] - public struct Struct84 - { - } + [CompilerGenerated] + public class UnusedCompilerClass2 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 136)] + public struct Struct84 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 13)] - public struct Struct85 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 13)] + public struct Struct85 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] - public struct Struct86 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] + public struct Struct86 + { + } - public static Struct84 Struct840; + public static Struct84 Struct840; - public static Struct85 Struct850; + public static Struct85 Struct850; - public static Struct86 Struct860; - } -} + public static Struct86 Struct860; + } +} \ No newline at end of file diff --git a/GHNamespaceB/zzUnkNode260.cs b/GHNamespaceB/zzUnkNode260.cs index 18977a7..7d67a7a 100644 --- a/GHNamespaceB/zzUnkNode260.cs +++ b/GHNamespaceB/zzUnkNode260.cs @@ -4,51 +4,52 @@ namespace GHNamespaceB { - public abstract class ZzUnkNode260 : AbstractTreeNode1 - { - public int Int0; + public abstract class ZzUnkNode260 : AbstractTreeNode1 + { + public int Int0; - public int Int1; + public int Int1; - public override string GetText() - { - var text = (Nodes.Count > 0) ? method_2(0).GetText() : "NULL"; - if (QbSongClass1.ContainsKey(Int0)) - { - return QbSongClass1.GetDictString(Int0) + " = " + text; - } - return "0x" + KeyGenerator.ValToHex32Bit(Int0) + " (Tag) = " + text; - } + public override string GetText() + { + var text = (Nodes.Count > 0) ? method_2(0).GetText() : "NULL"; + if (QbSongClass1.ContainsKey(Int0)) + { + return QbSongClass1.GetDictString(Int0) + " = " + text; + } + return "0x" + KeyGenerator.ValToHex32Bit(Int0) + " (Tag) = " + text; + } - public virtual Color vmethod_15() - { - return GetColor2IfPrevNodeIsColor1(Color.Beige, Color.Lavender); - } + public virtual Color vmethod_15() + { + return GetColor2IfPrevNodeIsColor1(Color.Beige, Color.Lavender); + } - public override Color GetColor() - { - return vmethod_15(); - } + public override Color GetColor() + { + return vmethod_15(); + } - public override int CompareTo(object target) - { - if (!target.GetType().Equals(GetType()) || (((ZzUnkNode260)target).Nodes.Count != 0 && !((ZzUnkNode260)target).Nodes[0].Equals(Nodes[0]))) - { - return -1; - } - if (((ZzUnkNode260)target).Int0 == Int0) - { - return 0; - } - return 1; - } + public override int CompareTo(object target) + { + if (!target.GetType().Equals(GetType()) || (((ZzUnkNode260) target).Nodes.Count != 0 && + !((ZzUnkNode260) target).Nodes[0].Equals(Nodes[0]))) + { + return -1; + } + if (((ZzUnkNode260) target).Int0 == Int0) + { + return 0; + } + return 1; + } - public override object Clone() - { - var @class = (ZzUnkNode260)base.Clone(); - @class.Int0 = Int0; - @class.Int1 = Int1; - return @class; - } - } -} + public override object Clone() + { + var @class = (ZzUnkNode260) base.Clone(); + @class.Int0 = Int0; + @class.Int1 = Int1; + return @class; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/zzUnkNode278.cs b/GHNamespaceB/zzUnkNode278.cs index fbb59ac..6e79088 100644 --- a/GHNamespaceB/zzUnkNode278.cs +++ b/GHNamespaceB/zzUnkNode278.cs @@ -4,75 +4,75 @@ namespace GHNamespaceB { - public abstract class ZzUnkNode278 : AbsTreeNode11 where T : AbstractBaseTreeNode1 - { - public abstract byte vmethod_15(); + public abstract class ZzUnkNode278 : AbsTreeNode11 where T : AbstractBaseTreeNode1 + { + public abstract byte vmethod_15(); - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num == 0) - { - return; - } - if (num > 1) - { - stream260.Position = stream260.ReadInt(); - } - if (this is FloatArrayNode) - { - for (var i = 0; i < num; i++) - { - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - } - return; - } - if (this is IntegerArrayNode) - { - for (var j = 0; j < num; j++) - { - Nodes.Add(new IntegerValueNode(stream260.ReadInt())); - } - return; - } - if (this is TagArray || this is FileTagArrayNode) - { - for (var k = 0; k < num; k++) - { - Nodes.Add(new TagValueNode(stream260.ReadInt())); - } - } - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num == 0) + { + return; + } + if (num > 1) + { + stream260.Position = stream260.ReadInt(); + } + if (this is FloatArrayNode) + { + for (var i = 0; i < num; i++) + { + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + } + return; + } + if (this is IntegerArrayNode) + { + for (var j = 0; j < num; j++) + { + Nodes.Add(new IntegerValueNode(stream260.ReadInt())); + } + return; + } + if (this is TagArray || this is FileTagArrayNode) + { + for (var k = 0; k < num; k++) + { + Nodes.Add(new TagValueNode(stream260.ReadInt())); + } + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = 1; - array[2] = vmethod_15(); - stream260.WriteByteArray(array, false); - stream260.WriteInt(Nodes.Count); - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - stream260.WriteInt((int)stream260.Position + 4); - } - foreach (AbstractTreeNode2 @class in Nodes) - { - stream260.WriteByteArray(@class.vmethod_8()); - } - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = 1; + array[2] = vmethod_15(); + stream260.WriteByteArray(array, false); + stream260.WriteInt(Nodes.Count); + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + stream260.WriteInt((int) stream260.Position + 4); + } + foreach (AbstractTreeNode2 @class in Nodes) + { + stream260.WriteByteArray(@class.vmethod_8()); + } + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - if (Nodes.Count > 1) - { - int0 += 4; - } - int0 += 4 * Nodes.Count; - } - } -} + public override void vmethod_2(ref int int0) + { + int0 += 8; + if (Nodes.Count > 1) + { + int0 += 4; + } + int0 += 4 * Nodes.Count; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/zzUnkNode294.cs b/GHNamespaceB/zzUnkNode294.cs index 65928e2..d39a947 100644 --- a/GHNamespaceB/zzUnkNode294.cs +++ b/GHNamespaceB/zzUnkNode294.cs @@ -4,52 +4,53 @@ namespace GHNamespaceB { - public abstract class ZzUnkNode294 : AbstractTreeNode1 - { - public int Int0; + public abstract class ZzUnkNode294 : AbstractTreeNode1 + { + public int Int0; - public override int CompareTo(object target) - { - if (!target.GetType().Equals(GetType()) || (((ZzUnkNode294)target).Nodes.Count != 0 && !((ZzUnkNode294)target).Nodes[0].Equals(Nodes[0]))) - { - return -1; - } - if (((ZzUnkNode294)target).Int0 == Int0) - { - return 0; - } - return 1; - } + public override int CompareTo(object target) + { + if (!target.GetType().Equals(GetType()) || (((ZzUnkNode294) target).Nodes.Count != 0 && + !((ZzUnkNode294) target).Nodes[0].Equals(Nodes[0]))) + { + return -1; + } + if (((ZzUnkNode294) target).Int0 == Int0) + { + return 0; + } + return 1; + } - public override string GetText() - { - var str = (Nodes.Count > 0) ? method_2(0).GetText() : "NULL"; - if (QbSongClass1.ContainsKey(Int0)) - { - return QbSongClass1.GetDictString(Int0) + " = " + str; - } - return KeyGenerator.ValToHex32Bit(Int0) + " (Tag) = " + str; - } + public override string GetText() + { + var str = (Nodes.Count > 0) ? method_2(0).GetText() : "NULL"; + if (QbSongClass1.ContainsKey(Int0)) + { + return QbSongClass1.GetDictString(Int0) + " = " + str; + } + return KeyGenerator.ValToHex32Bit(Int0) + " (Tag) = " + str; + } - public override Color GetColor() - { - if (Parent != null && method_7() != null && method_7().GetColor().Equals(Color.Gold)) - { - return Color.Yellow; - } - return Color.Gold; - } + public override Color GetColor() + { + if (Parent != null && method_7() != null && method_7().GetColor().Equals(Color.Gold)) + { + return Color.Yellow; + } + return Color.Gold; + } - public override object Clone() - { - var @class = (ZzUnkNode294)base.Clone(); - @class.Int0 = Int0; - return @class; - } + public override object Clone() + { + var @class = (ZzUnkNode294) base.Clone(); + @class.Int0 = Int0; + return @class; + } - public AbstractTreeNode1 method_7() - { - return (AbstractTreeNode1)PrevNode; - } - } -} + public AbstractTreeNode1 method_7() + { + return (AbstractTreeNode1) PrevNode; + } + } +} \ No newline at end of file diff --git a/GHNamespaceB/zzUnkNode295.cs b/GHNamespaceB/zzUnkNode295.cs index f2f5011..d2cb352 100644 --- a/GHNamespaceB/zzUnkNode295.cs +++ b/GHNamespaceB/zzUnkNode295.cs @@ -5,84 +5,86 @@ namespace GHNamespaceB { - public abstract class ZzUnkNode295 : ZzUnkNode294 - { - public abstract byte vmethod_15(); + public abstract class ZzUnkNode295 : ZzUnkNode294 + { + public abstract byte vmethod_15(); - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - if (this is FloatStructureNode) - { - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - } - else if (this is IntegerStructureNode) - { - Nodes.Add(new IntegerValueNode(stream260.ReadInt())); - } - else if (this is TagStructureNode || this is FileTagStructureNode) - { - Nodes.Add(new TagValueNode(stream260.ReadInt())); - } - var num = stream260.ReadInt(); - if (num != 0) - { - var @class = (Parent is StructureHeaderNode) ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num)) : vmethod_12(stream260.ReadIntAt(num, true)); - method_1().Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + if (this is FloatStructureNode) + { + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + } + else if (this is IntegerStructureNode) + { + Nodes.Add(new IntegerValueNode(stream260.ReadInt())); + } + else if (this is TagStructureNode || this is FileTagStructureNode) + { + Nodes.Add(new TagValueNode(stream260.ReadInt())); + } + var num = stream260.ReadInt(); + if (num != 0) + { + var @class = (Parent is StructureHeaderNode) + ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num)) + : vmethod_12(stream260.ReadIntAt(num, true)); + method_1().Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - if (vmethod_8()) - { - var array = new byte[4]; - array[1] = 1; - array[2] = (byte)(vmethod_15() - 128); - stream260.WriteByteArray(array, false); - } - else - { - var array2 = new byte[4]; - array2[1] = vmethod_15(); - stream260.WriteByteArray(array2, false); - } - stream260.WriteInt(Int0); - if (Nodes.Count != 0) - { - var enumerator = Nodes.GetEnumerator(); - try - { - while (enumerator.MoveNext()) - { - var @class = (AbstractTreeNode2)enumerator.Current; - stream260.WriteByteArray(@class.vmethod_8()); - } - goto IL_AA; - } - finally - { - var disposable = enumerator as IDisposable; - if (disposable != null) - { - disposable.Dispose(); - } - } - } - stream260.WriteInt(0); - IL_AA: - if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) - { - stream260.WriteInt((int)stream260.Position + 4); - return; - } - stream260.WriteInt(0); - } + public override void vmethod_14(Stream26 stream260) + { + if (vmethod_8()) + { + var array = new byte[4]; + array[1] = 1; + array[2] = (byte) (vmethod_15() - 128); + stream260.WriteByteArray(array, false); + } + else + { + var array2 = new byte[4]; + array2[1] = vmethod_15(); + stream260.WriteByteArray(array2, false); + } + stream260.WriteInt(Int0); + if (Nodes.Count != 0) + { + var enumerator = Nodes.GetEnumerator(); + try + { + while (enumerator.MoveNext()) + { + var @class = (AbstractTreeNode2) enumerator.Current; + stream260.WriteByteArray(@class.vmethod_8()); + } + goto IL_AA; + } + finally + { + var disposable = enumerator as IDisposable; + if (disposable != null) + { + disposable.Dispose(); + } + } + } + stream260.WriteInt(0); + IL_AA: + if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) + { + stream260.WriteInt((int) stream260.Position + 4); + return; + } + stream260.WriteInt(0); + } - public override void vmethod_2(ref int int1) - { - int1 += 16; - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 16; + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/ArrayPointerNode.cs b/GHNamespaceC/ArrayPointerNode.cs index 127015b..5cbc28b 100644 --- a/GHNamespaceC/ArrayPointerNode.cs +++ b/GHNamespaceC/ArrayPointerNode.cs @@ -3,60 +3,61 @@ namespace GHNamespaceC { - public class ArrayPointerNode : ZzUnkNode300 - { - public ArrayPointerNode() - { - vmethod_0(); - } - - public ArrayPointerNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } - - public ArrayPointerNode(int int1) - { - Int0 = int1; - vmethod_0(); - } - - public ArrayPointerNode(string string0, AbsTreeNode11 class2760) : this(QbSongClass1.AddKeyToDictionary(string0), class2760) - { - } - - public ArrayPointerNode(int int1, AbsTreeNode11 class2760) - { - Int0 = int1; - Nodes.Add(class2760); - vmethod_0(); - } - - public override int vmethod_1() - { - return 28; - } - - public AbsTreeNode11 method_8() - { - if (Nodes.Count != 0) - { - return (AbsTreeNode11)FirstNode; - } - return null; - } - - public override string GetNodeText() - { - return "Array Pointer"; - } - - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 25; - } - return 140; - } - } -} + public class ArrayPointerNode : ZzUnkNode300 + { + public ArrayPointerNode() + { + vmethod_0(); + } + + public ArrayPointerNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } + + public ArrayPointerNode(int int1) + { + Int0 = int1; + vmethod_0(); + } + + public ArrayPointerNode(string string0, AbsTreeNode11 class2760) : this( + QbSongClass1.AddKeyToDictionary(string0), class2760) + { + } + + public ArrayPointerNode(int int1, AbsTreeNode11 class2760) + { + Int0 = int1; + Nodes.Add(class2760); + vmethod_0(); + } + + public override int vmethod_1() + { + return 28; + } + + public AbsTreeNode11 method_8() + { + if (Nodes.Count != 0) + { + return (AbsTreeNode11) FirstNode; + } + return null; + } + + public override string GetNodeText() + { + return "Array Pointer"; + } + + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 25; + } + return 140; + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/AsciiStructureNode.cs b/GHNamespaceC/AsciiStructureNode.cs index 8d33512..2f94553 100644 --- a/GHNamespaceC/AsciiStructureNode.cs +++ b/GHNamespaceC/AsciiStructureNode.cs @@ -5,121 +5,124 @@ namespace GHNamespaceC { - public class AsciiStructureNode : ZzUnkNode294 - { - public AsciiStructureNode() - { - vmethod_0(); - } + public class AsciiStructureNode : ZzUnkNode294 + { + public AsciiStructureNode() + { + vmethod_0(); + } - public AsciiStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public AsciiStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public AsciiStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public AsciiStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public AsciiStructureNode(string string0, string string1) : this(QbSongClass1.AddKeyToDictionary(string0), string1) - { - } + public AsciiStructureNode(string string0, string string1) : this(QbSongClass1.AddKeyToDictionary(string0), + string1) + { + } - public AsciiStructureNode(int int1, string string0) - { - Int0 = int1; - Nodes.Add(new AsciiValueNode(string0)); - vmethod_0(); - } + public AsciiStructureNode(int int1, string string0) + { + Int0 = int1; + Nodes.Add(new AsciiValueNode(string0)); + vmethod_0(); + } - public override int vmethod_1() - { - return 21; - } + public override int vmethod_1() + { + return 21; + } - public string method_8() - { - if (Nodes.Count != 0) - { - return ((AsciiValueNode)FirstNode).String0; - } - return null; - } + public string method_8() + { + if (Nodes.Count != 0) + { + return ((AsciiValueNode) FirstNode).String0; + } + return null; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - var num = stream260.ReadInt(); - var num2 = stream260.ReadInt(); - if (num != 0) - { - Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(num))); - stream260.Position += smethod_0(stream260.Position); - } - if (num2 != 0) - { - var @class = (Parent is StructureHeaderNode) ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) : vmethod_12(stream260.ReadIntAt(num2, true)); - method_1().Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + var num = stream260.ReadInt(); + var num2 = stream260.ReadInt(); + if (num != 0) + { + Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(num))); + stream260.Position += smethod_0(stream260.Position); + } + if (num2 != 0) + { + var @class = (Parent is StructureHeaderNode) + ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) + : vmethod_12(stream260.ReadIntAt(num2, true)); + method_1().Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - if (vmethod_8()) - { - var array = new byte[4]; - array[1] = 1; - array[2] = 3; - stream260.WriteByteArray(array, false); - } - else - { - var array2 = new byte[4]; - array2[1] = (byte)(vmethod_7() ? 131 : 7); - stream260.WriteByteArray(array2, false); - } - stream260.WriteInt(Int0); - var int_ = (int)stream260.Position + 4; - if (Nodes.Count != 0) - { - stream260.WriteInt((int)stream260.Position + 8); - stream260.WriteInt(0); - stream260.WriteString(method_8()); - stream260.WriteByte2(0); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - } - else - { - stream260.WriteInt(0); - } - var num = (int)stream260.Position; - if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) - { - stream260.WriteIntAt(int_, num); - } - else - { - stream260.WriteIntAt(int_, 0); - } - stream260.Position = num; - } + public override void vmethod_14(Stream26 stream260) + { + if (vmethod_8()) + { + var array = new byte[4]; + array[1] = 1; + array[2] = 3; + stream260.WriteByteArray(array, false); + } + else + { + var array2 = new byte[4]; + array2[1] = (byte) (vmethod_7() ? 131 : 7); + stream260.WriteByteArray(array2, false); + } + stream260.WriteInt(Int0); + var int_ = (int) stream260.Position + 4; + if (Nodes.Count != 0) + { + stream260.WriteInt((int) stream260.Position + 8); + stream260.WriteInt(0); + stream260.WriteString(method_8()); + stream260.WriteByte2(0); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + } + else + { + stream260.WriteInt(0); + } + var num = (int) stream260.Position; + if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) + { + stream260.WriteIntAt(int_, num); + } + else + { + stream260.WriteIntAt(int_, 0); + } + stream260.Position = num; + } - public override string GetNodeText() - { - return "Ascii Structure"; - } + public override string GetNodeText() + { + return "Ascii Structure"; + } - public override void vmethod_2(ref int int1) - { - int1 += 16; - if (Nodes.Count != 0) - { - ((AsciiValueNode)Nodes[0]).vmethod_2(ref int1); - int1++; - int1 += smethod_0(int1); - } - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 16; + if (Nodes.Count != 0) + { + ((AsciiValueNode) Nodes[0]).vmethod_2(ref int1); + int1++; + int1 += smethod_0(int1); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/Class320.cs b/GHNamespaceC/Class320.cs index d95186c..804dbf7 100644 --- a/GHNamespaceC/Class320.cs +++ b/GHNamespaceC/Class320.cs @@ -3,337 +3,335 @@ namespace GHNamespaceC { - public class Class320 - { - private static readonly int Int0 = 4096; + public class Class320 + { + private static readonly int Int0 = 4096; - private static readonly int Int1 = 18; + private static readonly int Int1 = 18; - private static readonly int Int2 = 2; + private static readonly int Int2 = 2; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - private readonly int[] _int5 = new int[Int0 + 1]; + private readonly int[] _int5 = new int[Int0 + 1]; - private readonly int[] _int6 = new int[Int0 + 257]; + private readonly int[] _int6 = new int[Int0 + 257]; - private readonly int[] _int7 = new int[Int0 + 1]; + private readonly int[] _int7 = new int[Int0 + 1]; - private readonly byte[] _byte0 = new byte[Int0 + Int1 - 1]; + private readonly byte[] _byte0 = new byte[Int0 + Int1 - 1]; - public byte[] method_0(byte[] byte1) - { - MemoryStream memoryStream2; - using (var memoryStream = new MemoryStream(byte1)) - { - MemoryStream memoryStream3; - memoryStream2 = (memoryStream3 = new MemoryStream()); - try - { - method_1(memoryStream, memoryStream2); - } - finally - { - if (memoryStream3 != null) - { - ((IDisposable)memoryStream3).Dispose(); - } - } - } - return memoryStream2.ToArray(); - } + public byte[] method_0(byte[] byte1) + { + MemoryStream memoryStream2; + using (var memoryStream = new MemoryStream(byte1)) + { + MemoryStream memoryStream3; + memoryStream2 = (memoryStream3 = new MemoryStream()); + try + { + method_1(memoryStream, memoryStream2); + } + finally + { + if (memoryStream3 != null) + { + ((IDisposable) memoryStream3).Dispose(); + } + } + } + return memoryStream2.ToArray(); + } - public void method_1(Stream stream0, Stream stream1) - { - if (!stream0.CanRead) - { - throw new IOException("Input stream is not readable."); - } - if (!stream1.CanWrite) - { - throw new IOException("Output stream is not writable."); - } - var num = Int0 - Int1; - var num2 = 0; - var num3 = 1; - var array = new byte[17]; - byte b = 1; - var num4 = stream0.Length - stream0.Position; - for (var i = Int0 + 1; i <= Int0 + 256; i++) - { - _int6[i] = Int0; - } - for (var i = 0; i < Int0; i++) - { - _int7[i] = Int0; - } - array[0] = 0; - for (var i = num2; i < _byte0.Length; i++) - { - _byte0[i] = 32; - } - int j; - for (j = 0; j < Int1; j++) - { - var exprC0 = num4; - num4 = exprC0 - 1L; - if (exprC0 <= 0L) - { - break; - } - _byte0[num + j] = (byte)stream0.ReadByte(); - } - for (var i = 1; i <= Int1; i++) - { - method_2(num - i); - } - method_2(num); - do - { - if (_int4 > j) - { - _int4 = j; - } - if (_int4 <= Int2) - { - _int4 = 1; - var expr136Cp0 = array; - var expr136Cp1 = 0; - expr136Cp0[expr136Cp1] |= b; - array[num3++] = _byte0[num]; - } - else - { - array[num3++] = (byte)_int3; - array[num3++] = (byte)((_int3 >> 4 & 240) | _int4 - (Int2 + 1)); - } - int i; - if ((b = (byte)(b << 1)) == 0) - { - for (i = 0; i < num3; i++) - { - stream1.WriteByte(array[i]); - } - array[0] = 0; - var arg_1Bc0 = 1; - b = 1; - num3 = arg_1Bc0; - } - var num5 = _int4; - for (i = 0; i < num5; i++) - { - var expr_1Cc = num4; - num4 = expr_1Cc - 1L; - if (expr_1Cc <= 0L) - { - break; - } - method_3(num2); - _byte0[num2] = (byte)stream0.ReadByte(); - if (num2 < Int1 - 1) - { - _byte0[num2 + Int0] = _byte0[num2]; - } - num2 = (num2 + 1 & Int0 - 1); - num = (num + 1 & Int0 - 1); - method_2(num); - } - while (i++ < num5) - { - method_3(num2); - num2 = (num2 + 1 & Int0 - 1); - num = (num + 1 & Int0 - 1); - if (--j != 0) - { - method_2(num); - } - } - } - while (j > 0); - if (num3 > 1) - { - for (var i = 0; i < num3; i++) - { - stream1.WriteByte(array[i]); - } - } - } + public void method_1(Stream stream0, Stream stream1) + { + if (!stream0.CanRead) + { + throw new IOException("Input stream is not readable."); + } + if (!stream1.CanWrite) + { + throw new IOException("Output stream is not writable."); + } + var num = Int0 - Int1; + var num2 = 0; + var num3 = 1; + var array = new byte[17]; + byte b = 1; + var num4 = stream0.Length - stream0.Position; + for (var i = Int0 + 1; i <= Int0 + 256; i++) + { + _int6[i] = Int0; + } + for (var i = 0; i < Int0; i++) + { + _int7[i] = Int0; + } + array[0] = 0; + for (var i = num2; i < _byte0.Length; i++) + { + _byte0[i] = 32; + } + int j; + for (j = 0; j < Int1; j++) + { + var exprC0 = num4; + num4 = exprC0 - 1L; + if (exprC0 <= 0L) + { + break; + } + _byte0[num + j] = (byte) stream0.ReadByte(); + } + for (var i = 1; i <= Int1; i++) + { + method_2(num - i); + } + method_2(num); + do + { + if (_int4 > j) + { + _int4 = j; + } + if (_int4 <= Int2) + { + _int4 = 1; + var expr136Cp0 = array; + var expr136Cp1 = 0; + expr136Cp0[expr136Cp1] |= b; + array[num3++] = _byte0[num]; + } + else + { + array[num3++] = (byte) _int3; + array[num3++] = (byte) ((_int3 >> 4 & 240) | _int4 - (Int2 + 1)); + } + int i; + if ((b = (byte) (b << 1)) == 0) + { + for (i = 0; i < num3; i++) + { + stream1.WriteByte(array[i]); + } + array[0] = 0; + var arg_1Bc0 = 1; + b = 1; + num3 = arg_1Bc0; + } + var num5 = _int4; + for (i = 0; i < num5; i++) + { + var expr_1Cc = num4; + num4 = expr_1Cc - 1L; + if (expr_1Cc <= 0L) + { + break; + } + method_3(num2); + _byte0[num2] = (byte) stream0.ReadByte(); + if (num2 < Int1 - 1) + { + _byte0[num2 + Int0] = _byte0[num2]; + } + num2 = (num2 + 1 & Int0 - 1); + num = (num + 1 & Int0 - 1); + method_2(num); + } + while (i++ < num5) + { + method_3(num2); + num2 = (num2 + 1 & Int0 - 1); + num = (num + 1 & Int0 - 1); + if (--j != 0) + { + method_2(num); + } + } + } while (j > 0); + if (num3 > 1) + { + for (var i = 0; i < num3; i++) + { + stream1.WriteByte(array[i]); + } + } + } - private void method_2(int int8) - { - var num = 1; - var num2 = Int0 + 1 + _byte0[int8]; - _int6[int8] = (_int5[int8] = Int0); - _int4 = 0; - while (true) - { - if (num >= 0) - { - if (_int6[num2] == Int0) - { - goto IL_C3; - } - num2 = _int6[num2]; - } - else - { - if (_int5[num2] == Int0) - { - goto IL_168; - } - num2 = _int5[num2]; - } - var num3 = 1; - while (num3 < Int1 && (num = _byte0[int8 + num3] - _byte0[num2 + num3]) == 0) - { - num3++; - } - if (num3 > _int4) - { - _int3 = num2; - if ((_int4 = num3) >= Int1) - { - break; - } - } - } - _int7[int8] = _int7[num2]; - _int5[int8] = _int5[num2]; - _int6[int8] = _int6[num2]; - _int7[_int5[num2]] = int8; - _int7[_int6[num2]] = int8; - if (_int6[_int7[num2]] == num2) - { - _int6[_int7[num2]] = int8; - } - else - { - _int5[_int7[num2]] = int8; - } - _int7[num2] = Int0; - return; - IL_C3: - _int6[num2] = int8; - _int7[int8] = num2; - return; - IL_168: - _int5[num2] = int8; - _int7[int8] = num2; - } + private void method_2(int int8) + { + var num = 1; + var num2 = Int0 + 1 + _byte0[int8]; + _int6[int8] = (_int5[int8] = Int0); + _int4 = 0; + while (true) + { + if (num >= 0) + { + if (_int6[num2] == Int0) + { + goto IL_C3; + } + num2 = _int6[num2]; + } + else + { + if (_int5[num2] == Int0) + { + goto IL_168; + } + num2 = _int5[num2]; + } + var num3 = 1; + while (num3 < Int1 && (num = _byte0[int8 + num3] - _byte0[num2 + num3]) == 0) + { + num3++; + } + if (num3 > _int4) + { + _int3 = num2; + if ((_int4 = num3) >= Int1) + { + break; + } + } + } + _int7[int8] = _int7[num2]; + _int5[int8] = _int5[num2]; + _int6[int8] = _int6[num2]; + _int7[_int5[num2]] = int8; + _int7[_int6[num2]] = int8; + if (_int6[_int7[num2]] == num2) + { + _int6[_int7[num2]] = int8; + } + else + { + _int5[_int7[num2]] = int8; + } + _int7[num2] = Int0; + return; + IL_C3: + _int6[num2] = int8; + _int7[int8] = num2; + return; + IL_168: + _int5[num2] = int8; + _int7[int8] = num2; + } - private void method_3(int int8) - { - if (_int7[int8] == Int0) - { - return; - } - int num; - if (_int6[int8] == Int0) - { - num = _int5[int8]; - } - else if (_int5[int8] == Int0) - { - num = _int6[int8]; - } - else - { - num = _int5[int8]; - if (_int6[num] != Int0) - { - do - { - num = _int6[num]; - } - while (_int6[num] != Int0); - _int6[_int7[num]] = _int5[num]; - _int7[_int5[num]] = _int7[num]; - _int5[num] = _int5[int8]; - _int7[_int5[int8]] = num; - } - _int6[num] = _int6[int8]; - _int7[_int6[int8]] = num; - } - _int7[num] = _int7[int8]; - if (_int6[_int7[int8]] == int8) - { - _int6[_int7[int8]] = num; - } - else - { - _int5[_int7[int8]] = num; - } - _int7[int8] = Int0; - } + private void method_3(int int8) + { + if (_int7[int8] == Int0) + { + return; + } + int num; + if (_int6[int8] == Int0) + { + num = _int5[int8]; + } + else if (_int5[int8] == Int0) + { + num = _int6[int8]; + } + else + { + num = _int5[int8]; + if (_int6[num] != Int0) + { + do + { + num = _int6[num]; + } while (_int6[num] != Int0); + _int6[_int7[num]] = _int5[num]; + _int7[_int5[num]] = _int7[num]; + _int5[num] = _int5[int8]; + _int7[_int5[int8]] = num; + } + _int6[num] = _int6[int8]; + _int7[_int6[int8]] = num; + } + _int7[num] = _int7[int8]; + if (_int6[_int7[int8]] == int8) + { + _int6[_int7[int8]] = num; + } + else + { + _int5[_int7[int8]] = num; + } + _int7[int8] = Int0; + } - public byte[] method_4(byte[] byte1) - { - MemoryStream memoryStream2; - using (var memoryStream = new MemoryStream(byte1)) - { - MemoryStream memoryStream3; - memoryStream2 = (memoryStream3 = new MemoryStream()); - try - { - method_5(memoryStream, memoryStream2); - } - finally - { - if (memoryStream3 != null) - { - ((IDisposable)memoryStream3).Dispose(); - } - } - } - return memoryStream2.ToArray(); - } + public byte[] method_4(byte[] byte1) + { + MemoryStream memoryStream2; + using (var memoryStream = new MemoryStream(byte1)) + { + MemoryStream memoryStream3; + memoryStream2 = (memoryStream3 = new MemoryStream()); + try + { + method_5(memoryStream, memoryStream2); + } + finally + { + if (memoryStream3 != null) + { + ((IDisposable) memoryStream3).Dispose(); + } + } + } + return memoryStream2.ToArray(); + } - public void method_5(Stream stream0, Stream stream1) - { - if (!stream0.CanRead) - { - throw new IOException("Input stream is not readable."); - } - if (!stream1.CanWrite) - { - throw new IOException("Output stream is not writable."); - } - var num = Int0 - Int1; - var num2 = 0; - var num3 = stream0.Length - stream0.Position; - for (var i = 0; i < _byte0.Length; i++) - { - _byte0[i] = 32; - } - while (num3 > 0L) - { - if (((num2 >>= 1) & 256) == 0) - { - num3 -= 1L; - num2 = (stream0.ReadByte() | 65280); - } - if ((num2 & 1) != 0) - { - num3 -= 1L; - stream1.WriteByte(_byte0[num++] = (byte)stream0.ReadByte()); - num &= Int0 - 1; - } - else - { - num3 -= 2L; - int num4 = (byte)stream0.ReadByte(); - int num5 = (byte)stream0.ReadByte(); - num4 |= (num5 & 240) << 4; - num5 = (num5 & 15) + Int2; - for (var j = 0; j <= num5; j++) - { - stream1.WriteByte(_byte0[num++] = _byte0[num4 + j & Int0 - 1]); - num &= Int0 - 1; - } - } - } - } - } -} + public void method_5(Stream stream0, Stream stream1) + { + if (!stream0.CanRead) + { + throw new IOException("Input stream is not readable."); + } + if (!stream1.CanWrite) + { + throw new IOException("Output stream is not writable."); + } + var num = Int0 - Int1; + var num2 = 0; + var num3 = stream0.Length - stream0.Position; + for (var i = 0; i < _byte0.Length; i++) + { + _byte0[i] = 32; + } + while (num3 > 0L) + { + if (((num2 >>= 1) & 256) == 0) + { + num3 -= 1L; + num2 = (stream0.ReadByte() | 65280); + } + if ((num2 & 1) != 0) + { + num3 -= 1L; + stream1.WriteByte(_byte0[num++] = (byte) stream0.ReadByte()); + num &= Int0 - 1; + } + else + { + num3 -= 2L; + int num4 = (byte) stream0.ReadByte(); + int num5 = (byte) stream0.ReadByte(); + num4 |= (num5 & 240) << 4; + num5 = (num5 & 15) + Int2; + for (var j = 0; j <= num5; j++) + { + stream1.WriteByte(_byte0[num++] = _byte0[num4 + j & Int0 - 1]); + num &= Int0 - 1; + } + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/Class324.cs b/GHNamespaceC/Class324.cs index 6f09901..d216218 100644 --- a/GHNamespaceC/Class324.cs +++ b/GHNamespaceC/Class324.cs @@ -5,140 +5,141 @@ namespace GHNamespaceC { - public class Class324 - { - public readonly List List0 = new List(); + public class Class324 + { + public readonly List List0 = new List(); - public byte Byte0 = 10; + public byte Byte0 = 10; - public int[] Int0 = new int[0]; + public int[] Int0 = new int[0]; - public object Object0; + public object Object0; - public Class324() - { - } + public Class324() + { + } - public Class324(int int1) - { - Int0 = new[] - { - int1 - }; - } + public Class324(int int1) + { + Int0 = new[] + { + int1 + }; + } - public Class324(string string0) : this(File.OpenRead(string0)) - { - } + public Class324(string string0) : this(File.OpenRead(string0)) + { + } - public Class324(Stream stream0) - { - vmethod_0(new Stream26(stream0)); - } + public Class324(Stream stream0) + { + vmethod_0(new Stream26(stream0)); + } - public virtual void vmethod_0(Stream26 stream260) - { - Byte0 = stream260.ReadByte2(); - if (Byte0 != 10) - { - throw new Exception(string.Concat("Unknown : ", Byte0, " at position : ", stream260.Position)); - } - Int0 = new[] - { - stream260.ReadInt() - }; - while (stream260.Length > stream260.Position) - { - int num = stream260.ReadByte2(); - if (num == 10) - { - stream260.Position -= 1L; - var @class = new Class324(); - @class.vmethod_0(stream260); - List0.Add(@class); - } - else - { - if (num == 0) - { - break; - } - stream260.Position -= 1L; - var class2 = new ZzStreamClass325(); - class2.vmethod_0(stream260); - List0.Add(class2); - } - } - } + public virtual void vmethod_0(Stream26 stream260) + { + Byte0 = stream260.ReadByte2(); + if (Byte0 != 10) + { + throw new Exception(string.Concat("Unknown : ", Byte0, " at position : ", stream260.Position)); + } + Int0 = new[] + { + stream260.ReadInt() + }; + while (stream260.Length > stream260.Position) + { + int num = stream260.ReadByte2(); + if (num == 10) + { + stream260.Position -= 1L; + var @class = new Class324(); + @class.vmethod_0(stream260); + List0.Add(@class); + } + else + { + if (num == 0) + { + break; + } + stream260.Position -= 1L; + var class2 = new ZzStreamClass325(); + class2.vmethod_0(stream260); + List0.Add(class2); + } + } + } - public virtual void vmethod_1(Stream26 stream260) - { - stream260.WriteByte2(10); - stream260.WriteInt(Int0[0]); - foreach (var current in List0) - { - current.vmethod_1(stream260); - } - stream260.WriteByte2(0); - } + public virtual void vmethod_1(Stream26 stream260) + { + stream260.WriteByte2(10); + stream260.WriteInt(Int0[0]); + foreach (var current in List0) + { + current.vmethod_1(stream260); + } + stream260.WriteByte2(0); + } - public Class324 method_0(Class324 class3240) - { - if (class3240.Byte0 == Byte0 && class3240.Int0[0] == Int0[0] && (class3240.Object0 == null || class3240.Object0 == Object0)) - { - return this; - } - foreach (var current in List0) - { - var @class = current.method_0(class3240); - if (@class != null) - { - return @class; - } - } - return null; - } + public Class324 method_0(Class324 class3240) + { + if (class3240.Byte0 == Byte0 && class3240.Int0[0] == Int0[0] && + (class3240.Object0 == null || class3240.Object0 == Object0)) + { + return this; + } + foreach (var current in List0) + { + var @class = current.method_0(class3240); + if (@class != null) + { + return @class; + } + } + return null; + } - public void method_1(string string0) - { - using (var stream = new Stream26(File.Create(string0 + "\\s000.d"))) - { - vmethod_1(stream); - stream.WriteByte2(0); - using (var stream2 = new Stream26(File.Create(string0 + "\\toc.dat"))) - { - stream2.WriteInt(0); - stream2.WriteByte2(4); - stream2.WriteByte2(0); - stream2.WriteByte2(0); - stream2.WriteByte2(0); - stream2.WriteUInt(3724414393u); - stream2.WriteString("GH3Progress"); - stream2.WriteNBytes(0, 7); - stream2.WriteByte2(48); - stream2.WriteByte2(0); - stream2.WriteInt((int)stream.Length); - stream.Position = 0L; - stream2.WriteInt(KeyGenerator.GetQbKey(stream, true)); - stream2.WriteNBytes(0, 40); - stream2.WriteByte2(Convert.ToByte(DateTime.Now.Minute)); - stream2.WriteByte2(0); - stream2.WriteShort((short)DateTime.Now.Year); - stream2.WriteByte2(Convert.ToByte(DateTime.Now.Second)); - stream2.WriteByte2(Convert.ToByte(DateTime.Now.Month - 1)); - stream2.WriteByte2(Convert.ToByte(DateTime.Now.Day)); - stream2.WriteByte2(Convert.ToByte(DateTime.Now.Hour)); - stream2.WriteNBytes(0, 15120); - stream2.WriteInt(756937245); - stream2.WriteNBytes(0, 12); - stream2.Position = 4L; - var num = KeyGenerator.GetQbKey(stream2, true); - stream2.Position = 0L; - stream2.WriteInt(num); - stream.Position = stream.Length; - stream.WriteNBytes(0, 5242880 - (int)stream.Length); - } - } - } - } -} + public void method_1(string string0) + { + using (var stream = new Stream26(File.Create(string0 + "\\s000.d"))) + { + vmethod_1(stream); + stream.WriteByte2(0); + using (var stream2 = new Stream26(File.Create(string0 + "\\toc.dat"))) + { + stream2.WriteInt(0); + stream2.WriteByte2(4); + stream2.WriteByte2(0); + stream2.WriteByte2(0); + stream2.WriteByte2(0); + stream2.WriteUInt(3724414393u); + stream2.WriteString("GH3Progress"); + stream2.WriteNBytes(0, 7); + stream2.WriteByte2(48); + stream2.WriteByte2(0); + stream2.WriteInt((int) stream.Length); + stream.Position = 0L; + stream2.WriteInt(KeyGenerator.GetQbKey(stream, true)); + stream2.WriteNBytes(0, 40); + stream2.WriteByte2(Convert.ToByte(DateTime.Now.Minute)); + stream2.WriteByte2(0); + stream2.WriteShort((short) DateTime.Now.Year); + stream2.WriteByte2(Convert.ToByte(DateTime.Now.Second)); + stream2.WriteByte2(Convert.ToByte(DateTime.Now.Month - 1)); + stream2.WriteByte2(Convert.ToByte(DateTime.Now.Day)); + stream2.WriteByte2(Convert.ToByte(DateTime.Now.Hour)); + stream2.WriteNBytes(0, 15120); + stream2.WriteInt(756937245); + stream2.WriteNBytes(0, 12); + stream2.Position = 4L; + var num = KeyGenerator.GetQbKey(stream2, true); + stream2.Position = 0L; + stream2.WriteInt(num); + stream.Position = stream.Length; + stream.WriteNBytes(0, 5242880 - (int) stream.Length); + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/ProbablyRootNode.cs b/GHNamespaceC/ProbablyRootNode.cs index 38425b0..9acc06d 100644 --- a/GHNamespaceC/ProbablyRootNode.cs +++ b/GHNamespaceC/ProbablyRootNode.cs @@ -4,52 +4,52 @@ namespace GHNamespaceC { - public abstract class ProbablyRootNode : ZzUnkNode260 - { - public abstract byte vmethod_16(); + public abstract class ProbablyRootNode : ZzUnkNode260 + { + public abstract byte vmethod_16(); - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - var num = stream260.ReadInt(); - stream260.ReadInt(); - if (num != 0) - { - var @class = vmethod_12(stream260.ReadIntAt(num, true)); - Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + var num = stream260.ReadInt(); + stream260.ReadInt(); + if (num != 0) + { + var @class = vmethod_12(stream260.ReadIntAt(num, true)); + Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = (vmethod_7() ? (byte)32 : (byte)4); - array[2] = vmethod_16(); - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - stream260.WriteInt((Nodes.Count != 0) ? ((int)stream260.Position + 8) : 0); - stream260.WriteInt(0); - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_14(stream260); - } - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = (vmethod_7() ? (byte) 32 : (byte) 4); + array[2] = vmethod_16(); + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + stream260.WriteInt((Nodes.Count != 0) ? ((int) stream260.Position + 8) : 0); + stream260.WriteInt(0); + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_14(stream260); + } + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int2); - } - } + public override void vmethod_2(ref int int2) + { + int2 += 20; + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int2); + } + } - public override Color vmethod_15() - { - return GetColor2IfPrevNodeIsColor1(Color.Lime, Color.SpringGreen); - } - } -} + public override Color vmethod_15() + { + return GetColor2IfPrevNodeIsColor1(Color.Lime, Color.SpringGreen); + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/TexFile.cs b/GHNamespaceC/TexFile.cs index 47c8335..8eff2d0 100644 --- a/GHNamespaceC/TexFile.cs +++ b/GHNamespaceC/TexFile.cs @@ -8,209 +8,209 @@ namespace GHNamespaceC { - public class TexFile : IDisposable - { - public List TextureList = new List(); - - private Stream26 _fileStream; - - private readonly string _fileName; - - private bool _unkFlag0 = true; - - public DdsTexture this[int index] - { - get - { - if (TextureList[index].Data != null) - { - return new DdsTexture(new MemoryStream(TextureList[index].Data)); - } - _fileStream.Position = TextureList[index].StartIndex; - return new DdsTexture(_fileStream.Stream, true); - } - } - - public TexFile() - { - } - - public TexFile(string string1) - { - _fileName = string1; - Initialize(); - } - - public TexFile(byte[] byte0) - { - _fileStream = new Stream26(byte0, true); - Initialize(); - } - - public void Initialize() - { - if (_fileName != null) - { - _fileStream = new Stream26(File.Open(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read), true); - } - var num = 1; - var num2 = _fileStream.ReadUShort(); - var num3 = 0; - if (num2 == 0xFACE) // Hey man he was in my face - { - _unkFlag0 = false; - num = _fileStream.ReadShortAt(6); - num3 = _fileStream.ReadInt(); - } - else if (num2 != 2600) // Appears to be flags at the beginning of certain types of texture metadata? - { - throw new Exception(); - } - while (num-- != 0) - { - TextureList.Add( + public class TexFile : IDisposable + { + public List TextureList = new List(); + + private Stream26 _fileStream; + + private readonly string _fileName; + + private bool _unkFlag0 = true; + + public DdsTexture this[int index] + { + get + { + if (TextureList[index].Data != null) + { + return new DdsTexture(new MemoryStream(TextureList[index].Data)); + } + _fileStream.Position = TextureList[index].StartIndex; + return new DdsTexture(_fileStream.Stream, true); + } + } + + public TexFile() + { + } + + public TexFile(string string1) + { + _fileName = string1; + Initialize(); + } + + public TexFile(byte[] byte0) + { + _fileStream = new Stream26(byte0, true); + Initialize(); + } + + public void Initialize() + { + if (_fileName != null) + { + _fileStream = new Stream26(File.Open(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read), true); + } + var num = 1; + var num2 = _fileStream.ReadUShort(); + var num3 = 0; + if (num2 == 0xFACE) // Hey man he was in my face + { + _unkFlag0 = false; + num = _fileStream.ReadShortAt(6); + num3 = _fileStream.ReadInt(); + } + else if (num2 != 2600) // Appears to be flags at the beginning of certain types of texture metadata? + { + throw new Exception(); + } + while (num-- != 0) + { + TextureList.Add( new TextureMetadata( - _fileStream.ReadShortAt(num3 + 2), - _fileStream.ReadInt(), - _fileStream.ReadShort(), - _fileStream.ReadShort(), - _fileStream.ReadShort(), - _fileStream.ReadByteAt(num3 + 20), - _fileStream.ReadShort(), - _fileStream.ReadIntAt(num3 + 28), + _fileStream.ReadShortAt(num3 + 2), + _fileStream.ReadInt(), + _fileStream.ReadShort(), + _fileStream.ReadShort(), + _fileStream.ReadShort(), + _fileStream.ReadByteAt(num3 + 20), + _fileStream.ReadShort(), + _fileStream.ReadIntAt(num3 + 28), _fileStream.ReadInt())); - num3 += 40; - } - _fileStream.ReverseEndianness = false; - } - - public void ReplaceTexture(int index, Image img, ImgPixelFormat format) - { - var texMetaData = TextureList[index]; - texMetaData.Height = (short)img.Height; - texMetaData.Width = (short)img.Width; - texMetaData.Data = new DdsTexture(img, texMetaData.MipMapCount, format).ToByteArray(); - } - - public byte[] GetRawTextureData(int index) - { - if (TextureList[index].Data != null) - { - return TextureList[index].Data; - } - _fileStream.Position = TextureList[index].StartIndex; - return _fileStream.ReadBytes(TextureList[index].Length); - } - - public void WriteBytes(int index, string fileName) - { - KeyGenerator.WriteAllBytes(fileName, GetRawTextureData(index)); - } - - public int TextureCount() - { - return TextureList.Count; - } - - public bool CanWrite() - { - return _fileStream != null && _fileName != null; - } - - public void WriteEverythingToFile() - { - if (_fileStream == null || _fileName == null) - { - throw new IOException("Tex File was never parsed"); - } - WriteEverythingToFile(_fileName); - } - - public Stream26 ToStream() - { - var stream = new Stream26(true); - var textureCount = TextureCount(); - var textureMetaDataOffset = 0; - if (!_unkFlag0) - { - stream.WriteUInt(0xFACECAA7); //meow - stream.WriteShort(284); - stream.WriteShort((short)textureCount); - stream.WriteInt(0); - stream.WriteInt(0); - stream.WriteInt(-1); - - var num3 = 2; - while (textureCount / Math.Pow(2.0, num3 - 2) > 1.0) - { - num3++; - } - num3--; - stream.WriteInt(num3); //logarithm of textureCount?.. - stream.WriteInt(28); - stream.WriteNBytes(0xEF, (int)(Math.Pow(2.0, num3) * 12.0 + 28.0)); - - textureMetaDataOffset = (int)stream.Position; - stream.WriteIntAt(8, textureMetaDataOffset); - stream.WriteInt(textureMetaDataOffset + textureCount * 44); - stream.Position = textureMetaDataOffset; - } - stream.WriteNBytes(0, 40 * textureCount); - for (var i = 0; i < textureCount; i++) - { - var tex = TextureList[i]; - var array = GetRawTextureData(i); - stream.WriteShortAt(textureMetaDataOffset + 40 * i, 2600); - stream.WriteShort(tex.UnkFlags); - stream.WriteInt(tex.Key); - stream.WriteShort(tex.Width); - stream.WriteShort(tex.Height); - stream.WriteShort(tex.UnkShort3); - stream.WriteShort(tex.Width); - stream.WriteShort(tex.Height); - stream.WriteShort(tex.UnkShort3); - stream.WriteByte2(tex.MipMapCount); - stream.WriteShort(tex.UnkShort4); - stream.WriteNBytes(0, 5); - stream.WriteInt((int)stream.Length); - stream.WriteInt(array.Length); - stream.WriteInt(0); - stream.WriteByteArrayAt((int)stream.Length, array, false); - } - return stream; - } - - public void WriteEverythingToFile(string fileName) - { - var stream = ToStream(); - if (_fileStream != null && _fileName == fileName) - { - _fileStream.Close(); - } - stream.WriteEverythingToFile(fileName); - if (_fileStream != null && _fileName == fileName) - { - Dispose(); - Initialize(); - GC.Collect(); - } - } - - public void Dispose() - { - _fileStream.Close(); - _fileStream.Dispose(); - _fileStream = null; - TextureList.Clear(); - } + num3 += 40; + } + _fileStream.ReverseEndianness = false; + } + + public void ReplaceTexture(int index, Image img, ImgPixelFormat format) + { + var texMetaData = TextureList[index]; + texMetaData.Height = (short) img.Height; + texMetaData.Width = (short) img.Width; + texMetaData.Data = new DdsTexture(img, texMetaData.MipMapCount, format).ToByteArray(); + } + + public byte[] GetRawTextureData(int index) + { + if (TextureList[index].Data != null) + { + return TextureList[index].Data; + } + _fileStream.Position = TextureList[index].StartIndex; + return _fileStream.ReadBytes(TextureList[index].Length); + } + + public void WriteBytes(int index, string fileName) + { + KeyGenerator.WriteAllBytes(fileName, GetRawTextureData(index)); + } + + public int TextureCount() + { + return TextureList.Count; + } + + public bool CanWrite() + { + return _fileStream != null && _fileName != null; + } + + public void WriteEverythingToFile() + { + if (_fileStream == null || _fileName == null) + { + throw new IOException("Tex File was never parsed"); + } + WriteEverythingToFile(_fileName); + } + + public Stream26 ToStream() + { + var stream = new Stream26(true); + var textureCount = TextureCount(); + var textureMetaDataOffset = 0; + if (!_unkFlag0) + { + stream.WriteUInt(0xFACECAA7); //meow + stream.WriteShort(284); + stream.WriteShort((short) textureCount); + stream.WriteInt(0); + stream.WriteInt(0); + stream.WriteInt(-1); + + var num3 = 2; + while (textureCount / Math.Pow(2.0, num3 - 2) > 1.0) + { + num3++; + } + num3--; + stream.WriteInt(num3); //logarithm of textureCount?.. + stream.WriteInt(28); + stream.WriteNBytes(0xEF, (int) (Math.Pow(2.0, num3) * 12.0 + 28.0)); + + textureMetaDataOffset = (int) stream.Position; + stream.WriteIntAt(8, textureMetaDataOffset); + stream.WriteInt(textureMetaDataOffset + textureCount * 44); + stream.Position = textureMetaDataOffset; + } + stream.WriteNBytes(0, 40 * textureCount); + for (var i = 0; i < textureCount; i++) + { + var tex = TextureList[i]; + var array = GetRawTextureData(i); + stream.WriteShortAt(textureMetaDataOffset + 40 * i, 2600); + stream.WriteShort(tex.UnkFlags); + stream.WriteInt(tex.Key); + stream.WriteShort(tex.Width); + stream.WriteShort(tex.Height); + stream.WriteShort(tex.UnkShort3); + stream.WriteShort(tex.Width); + stream.WriteShort(tex.Height); + stream.WriteShort(tex.UnkShort3); + stream.WriteByte2(tex.MipMapCount); + stream.WriteShort(tex.UnkShort4); + stream.WriteNBytes(0, 5); + stream.WriteInt((int) stream.Length); + stream.WriteInt(array.Length); + stream.WriteInt(0); + stream.WriteByteArrayAt((int) stream.Length, array, false); + } + return stream; + } + + public void WriteEverythingToFile(string fileName) + { + var stream = ToStream(); + if (_fileStream != null && _fileName == fileName) + { + _fileStream.Close(); + } + stream.WriteEverythingToFile(fileName); + if (_fileStream != null && _fileName == fileName) + { + Dispose(); + Initialize(); + GC.Collect(); + } + } + + public void Dispose() + { + _fileStream.Close(); + _fileStream.Dispose(); + _fileStream = null; + TextureList.Clear(); + } public int CloneTextureElement(int index) { var original = TextureList[index]; - var newMeta = new TextureMetadata(original.UnkFlags, original.Key, original.Width, original.Height, original.UnkShort3, original.MipMapCount, original.UnkShort4, original.StartIndex, original.Length); + var newMeta = new TextureMetadata(original.UnkFlags, original.Key, original.Width, original.Height, + original.UnkShort3, original.MipMapCount, original.UnkShort4, original.StartIndex, original.Length); TextureList.Add(newMeta); - return TextureList.Count-1; + return TextureList.Count - 1; } - - } -} + } +} \ No newline at end of file diff --git a/GHNamespaceC/TextValueNode.cs b/GHNamespaceC/TextValueNode.cs index 29b3f6f..eb97777 100644 --- a/GHNamespaceC/TextValueNode.cs +++ b/GHNamespaceC/TextValueNode.cs @@ -5,84 +5,84 @@ namespace GHNamespaceC { - public class TextValueNode : AbstractTreeNode2 - { - public int Int0; + public class TextValueNode : AbstractTreeNode2 + { + public int Int0; - private string _string0; + private string _string0; - public TextValueNode() - { - vmethod_0(); - } + public TextValueNode() + { + vmethod_0(); + } - public TextValueNode(int int1, Dictionary dictionary0) - { - Int0 = int1; - if (dictionary0.ContainsKey(Int0)) - { - _string0 = dictionary0[Int0]; - } - vmethod_0(); - } + public TextValueNode(int int1, Dictionary dictionary0) + { + Int0 = int1; + if (dictionary0.ContainsKey(Int0)) + { + _string0 = dictionary0[Int0]; + } + vmethod_0(); + } - public override int vmethod_1() - { - return 35; - } + public override int vmethod_1() + { + return 35; + } - public override object vmethod_7() - { - if (_string0 != null) - { - return _string0; - } - return Int0; - } + public override object vmethod_7() + { + if (_string0 != null) + { + return _string0; + } + return Int0; + } - public override byte[] vmethod_8() - { - return BitConverter.GetBytes(Int0); - } + public override byte[] vmethod_8() + { + return BitConverter.GetBytes(Int0); + } - public override void vmethod_9(byte[] byte0) - { - Int0 = BitConverter.ToInt32(byte0, 0); - } + public override void vmethod_9(byte[] byte0) + { + Int0 = BitConverter.ToInt32(byte0, 0); + } - public override string GetText() - { - if (_string0 != null) - { - return '"' + _string0 + '"'; - } - return "0x" + IntToHex32Bit(Int0); - } + public override string GetText() + { + if (_string0 != null) + { + return '"' + _string0 + '"'; + } + return "0x" + IntToHex32Bit(Int0); + } - public string method_2() - { - return _string0; - } + public string method_2() + { + return _string0; + } - public void method_3(string string1) - { - if (string1 == null) - { - _string0 = null; - return; - } - _string0 = string1; - Int0 = QbSongClass1.smethod_6(string1); - } + public void method_3(string string1) + { + if (string1 == null) + { + _string0 = null; + return; + } + _string0 = string1; + Int0 = QbSongClass1.smethod_6(string1); + } - public override string GetNodeText() - { - return "Text Value"; - } + public override string GetNodeText() + { + return "Text Value"; + } - public override void vmethod_2(ref int int1) - { - int1 += 4; - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 4; + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/UnicodeArrayNode.cs b/GHNamespaceC/UnicodeArrayNode.cs index ece1b29..c05d01c 100644 --- a/GHNamespaceC/UnicodeArrayNode.cs +++ b/GHNamespaceC/UnicodeArrayNode.cs @@ -3,104 +3,104 @@ namespace GHNamespaceC { - public class UnicodeArrayNode : AbsTreeNode11 - { - public string this[int int0] - { - get => ((UnicodeValueNode)Nodes[int0]).String0; - set => ((UnicodeValueNode)Nodes[int0]).String0 = value; - } + public class UnicodeArrayNode : AbsTreeNode11 + { + public string this[int int0] + { + get => ((UnicodeValueNode) Nodes[int0]).String0; + set => ((UnicodeValueNode) Nodes[int0]).String0 = value; + } - public UnicodeArrayNode() - { - vmethod_0(); - } + public UnicodeArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 11; - } + public override int vmethod_1() + { + return 11; + } - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num == 0) - { - return; - } - var array = new int[num]; - if (num > 1) - { - stream260.Position = stream260.ReadInt(); - for (var i = 0; i < num; i++) - { - array[i] = stream260.ReadInt(); - } - } - else - { - array[0] = stream260.ReadInt(); - } - var array2 = array; - for (var j = 0; j < array2.Length; j++) - { - var int_ = array2[j]; - Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(int_))); - } - stream260.Position += smethod_0(stream260.Position); - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num == 0) + { + return; + } + var array = new int[num]; + if (num > 1) + { + stream260.Position = stream260.ReadInt(); + for (var i = 0; i < num; i++) + { + array[i] = stream260.ReadInt(); + } + } + else + { + array[0] = stream260.ReadInt(); + } + var array2 = array; + for (var j = 0; j < array2.Length; j++) + { + var int_ = array2[j]; + Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(int_))); + } + stream260.Position += smethod_0(stream260.Position); + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = 1; - array[2] = 4; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Nodes.Count); - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - stream260.WriteInt((int)stream260.Position + 4); - } - var num = (int)stream260.Position + 4 * Nodes.Count; - var stream = new Stream26(); - foreach (UnicodeValueNode @class in Nodes) - { - stream260.WriteInt(num); - stream.WriteString(@class.String0, stream260.ReverseEndianness); - stream.WriteNBytes(0, 2); - num += @class.String0.Length * 2 + 2; - } - stream260.WriteByteArray(stream.ReadEverything(), false); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = 1; + array[2] = 4; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Nodes.Count); + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + stream260.WriteInt((int) stream260.Position + 4); + } + var num = (int) stream260.Position + 4 * Nodes.Count; + var stream = new Stream26(); + foreach (UnicodeValueNode @class in Nodes) + { + stream260.WriteInt(num); + stream.WriteString(@class.String0, stream260.ReverseEndianness); + stream.WriteNBytes(0, 2); + num += @class.String0.Length * 2 + 2; + } + stream260.WriteByteArray(stream.ReadEverything(), false); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - int0 += 4; - } - int0 += 4 * Nodes.Count; - foreach (UnicodeValueNode @class in Nodes) - { - @class.vmethod_2(ref int0); - int0 += 2; - } - int0 += smethod_0(int0); - } + public override void vmethod_2(ref int int0) + { + int0 += 8; + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + int0 += 4; + } + int0 += 4 * Nodes.Count; + foreach (UnicodeValueNode @class in Nodes) + { + @class.vmethod_2(ref int0); + int0 += 2; + } + int0 += smethod_0(int0); + } - public override string GetNodeText() - { - return "Unicode Array"; - } - } -} + public override string GetNodeText() + { + return "Unicode Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/UnicodeValueNode.cs b/GHNamespaceC/UnicodeValueNode.cs index af419d9..bc7c6b8 100644 --- a/GHNamespaceC/UnicodeValueNode.cs +++ b/GHNamespaceC/UnicodeValueNode.cs @@ -3,54 +3,54 @@ namespace GHNamespaceC { - public class UnicodeValueNode : AbstractTreeNode2 - { - public string String0 = ""; - - public UnicodeValueNode() - { - vmethod_0(); - } - - public UnicodeValueNode(string string1) - { - String0 = string1; - vmethod_0(); - } - - public override int vmethod_1() - { - return 32; - } - - public override object vmethod_7() - { - return String0; - } - - public override byte[] vmethod_8() - { - return Encoding.Unicode.GetBytes(String0); - } - - public override void vmethod_9(byte[] byte0) - { - String0 = Encoding.Unicode.GetString(byte0); - } - - public override string GetText() - { - return "\"" + String0 + "\""; - } - - public override string GetNodeText() - { - return "Unicode Value"; - } - - public override void vmethod_2(ref int int0) - { - int0 += Encoding.Unicode.GetByteCount(String0); - } - } -} + public class UnicodeValueNode : AbstractTreeNode2 + { + public string String0 = ""; + + public UnicodeValueNode() + { + vmethod_0(); + } + + public UnicodeValueNode(string string1) + { + String0 = string1; + vmethod_0(); + } + + public override int vmethod_1() + { + return 32; + } + + public override object vmethod_7() + { + return String0; + } + + public override byte[] vmethod_8() + { + return Encoding.Unicode.GetBytes(String0); + } + + public override void vmethod_9(byte[] byte0) + { + String0 = Encoding.Unicode.GetString(byte0); + } + + public override string GetText() + { + return "\"" + String0 + "\""; + } + + public override string GetNodeText() + { + return "Unicode Value"; + } + + public override void vmethod_2(ref int int0) + { + int0 += Encoding.Unicode.GetByteCount(String0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/VectorArrayNode.cs b/GHNamespaceC/VectorArrayNode.cs index cf9baac..3244c67 100644 --- a/GHNamespaceC/VectorArrayNode.cs +++ b/GHNamespaceC/VectorArrayNode.cs @@ -2,32 +2,32 @@ namespace GHNamespaceC { - public class VectorArrayNode : ZzUnkNode289 - { - public FloatListNode this[int int0] - { - get => (FloatListNode)Nodes[int0]; - set => Nodes[int0] = value; - } + public class VectorArrayNode : ZzUnkNode289 + { + public FloatListNode this[int int0] + { + get => (FloatListNode) Nodes[int0]; + set => Nodes[int0] = value; + } - public VectorArrayNode() - { - vmethod_0(); - } + public VectorArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 18; - } + public override int vmethod_1() + { + return 18; + } - public override byte vmethod_15() - { - return 6; - } + public override byte vmethod_15() + { + return 6; + } - public override string GetNodeText() - { - return "Vector Array"; - } - } -} + public override string GetNodeText() + { + return "Vector Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/ZonePakLoader.cs b/GHNamespaceC/ZonePakLoader.cs index 5399360..7c3ba80 100644 --- a/GHNamespaceC/ZonePakLoader.cs +++ b/GHNamespaceC/ZonePakLoader.cs @@ -8,143 +8,154 @@ namespace GHNamespaceC { - public class ZonePakLoader - { - public delegate void Delegate8(TreeNode rootNode); + public class ZonePakLoader + { + public delegate void Delegate8(TreeNode rootNode); - public delegate void Delegate9(int percentCompleted, string fileName); + public delegate void Delegate9(int percentCompleted, string fileName); - private Delegate8 _delegate80; + private Delegate8 _delegate80; - private Delegate9 _delegate90; + private Delegate9 _delegate90; - private readonly string _dataDirectory; + private readonly string _dataDirectory; - public void method_0(Delegate8 delegate81) - { - var @delegate = _delegate80; - Delegate8 delegate2; - do - { - delegate2 = @delegate; - var value = (Delegate8)Delegate.Combine(delegate2, delegate81); - @delegate = Interlocked.CompareExchange(ref _delegate80, value, delegate2); - } - while (@delegate != delegate2); - } + public void method_0(Delegate8 delegate81) + { + var @delegate = _delegate80; + Delegate8 delegate2; + do + { + delegate2 = @delegate; + var value = (Delegate8) Delegate.Combine(delegate2, delegate81); + @delegate = Interlocked.CompareExchange(ref _delegate80, value, delegate2); + } while (@delegate != delegate2); + } - public void method_1(Delegate9 delegate91) - { - var @delegate = _delegate90; - Delegate9 delegate2; - do - { - delegate2 = @delegate; - var value = (Delegate9)Delegate.Combine(delegate2, delegate91); - @delegate = Interlocked.CompareExchange(ref _delegate90, value, delegate2); - } - while (@delegate != delegate2); - } + public void method_1(Delegate9 delegate91) + { + var @delegate = _delegate90; + Delegate9 delegate2; + do + { + delegate2 = @delegate; + var value = (Delegate9) Delegate.Combine(delegate2, delegate91); + @delegate = Interlocked.CompareExchange(ref _delegate90, value, delegate2); + } while (@delegate != delegate2); + } - public ZonePakLoader(string dataDirectory) - { - _dataDirectory = dataDirectory; - } + public ZonePakLoader(string dataDirectory) + { + _dataDirectory = dataDirectory; + } - public void method_2() - { - _delegate90(0, "*.tex.xen"); - var treeNode = new TreeNode("Data"); - var files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.tex.xen", SearchOption.AllDirectories); - var array = files; - for (var i = 0; i < array.Length; i++) - { - var text = array[i]; - method_3(treeNode, new List(text.Substring(_dataDirectory.Length).Split(new[] - { - '\\', - '/' - }, StringSplitOptions.RemoveEmptyEntries))).ToolTipText = text; - } + public void method_2() + { + _delegate90(0, "*.tex.xen"); + var treeNode = new TreeNode("Data"); + var files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.tex.xen", + SearchOption.AllDirectories); + var array = files; + for (var i = 0; i < array.Length; i++) + { + var text = array[i]; + method_3(treeNode, new List(text.Substring(_dataDirectory.Length) + .Split(new[] + { + '\\', + '/' + }, StringSplitOptions.RemoveEmptyEntries))) + .ToolTipText = text; + } - _delegate90(1, "*.img.xen"); - files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.img.xen", SearchOption.AllDirectories); - var array2 = files; - for (var j = 0; j < array2.Length; j++) - { - var text2 = array2[j]; - method_3(treeNode, new List(text2.Substring(_dataDirectory.Length).Split(new[] - { - '\\', - '/' - }, StringSplitOptions.RemoveEmptyEntries))).ToolTipText = text2; - } + _delegate90(1, "*.img.xen"); + files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.img.xen", + SearchOption.AllDirectories); + var array2 = files; + for (var j = 0; j < array2.Length; j++) + { + var text2 = array2[j]; + method_3(treeNode, new List(text2.Substring(_dataDirectory.Length) + .Split(new[] + { + '\\', + '/' + }, StringSplitOptions.RemoveEmptyEntries))) + .ToolTipText = text2; + } - var num = QbSongClass1.AddKeyToDictionary(".tex"); - var num2 = QbSongClass1.AddKeyToDictionary(".img"); - files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.pak.xen", SearchOption.AllDirectories); - var num3 = 0; - var array3 = files; - for (var k = 0; k < array3.Length; k++) - { - var text3 = array3[k]; - _delegate90(1 + (int)(98.0 * ++num3 / files.Length), KeyGenerator.GetFileName(text3)); - try - { - using (var @class = File.Exists(text3.Replace(".pak.xen", ".pab.xen")) ? new ZzPabNode(text3, text3.Replace(".pak.xen", ".pab.xen"), false) : new ZzPakNode2(text3, false)) - { - var list = new List(); - foreach (var current in @class.List0) - { - var num4 = current.imethod_7(); - if (current.imethod_4() == num || current.imethod_4() == num2) - { - list.Add(new TreeNode(QbSongClass1.ContainsKey(num4) ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(num4)) : KeyGenerator.ValToHex32Bit(num4)) - { - ToolTipText = text3, - Tag = num4 - }); - } - } - if (list.Count > 0) - { - method_3(treeNode, new List(text3.Substring(_dataDirectory.Length).Split(new[] - { - '\\', - '/' - }, StringSplitOptions.RemoveEmptyEntries))).Nodes.AddRange(list.ToArray()); - } - } - } - catch - { - } - GC.Collect(); - } - _delegate80(treeNode); - } + var num = QbSongClass1.AddKeyToDictionary(".tex"); + var num2 = QbSongClass1.AddKeyToDictionary(".img"); + files = Directory.GetFiles(_dataDirectory.Remove(_dataDirectory.Length - 1), "*.pak.xen", + SearchOption.AllDirectories); + var num3 = 0; + var array3 = files; + for (var k = 0; k < array3.Length; k++) + { + var text3 = array3[k]; + _delegate90(1 + (int) (98.0 * ++num3 / files.Length), KeyGenerator.GetFileName(text3)); + try + { + using (var @class = File.Exists(text3.Replace(".pak.xen", ".pab.xen")) + ? new ZzPabNode(text3, text3.Replace(".pak.xen", ".pab.xen"), false) + : new ZzPakNode2(text3, false)) + { + var list = new List(); + foreach (var current in @class.List0) + { + var num4 = current.imethod_7(); + if (current.imethod_4() == num || current.imethod_4() == num2) + { + list.Add(new TreeNode(QbSongClass1.ContainsKey(num4) + ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(num4)) + : KeyGenerator.ValToHex32Bit(num4)) + { + ToolTipText = text3, + Tag = num4 + }); + } + } + if (list.Count > 0) + { + method_3(treeNode, new List(text3.Substring(_dataDirectory.Length) + .Split(new[] + { + '\\', + '/' + }, StringSplitOptions.RemoveEmptyEntries))) + .Nodes.AddRange(list.ToArray()); + } + } + } + catch + { + } + GC.Collect(); + } + _delegate80(treeNode); + } - public TreeNode method_3(TreeNode treeNode0, List list0) - { - if (list0.Count == 0) - { - return treeNode0; - } - string text; - if (!treeNode0.Nodes.ContainsKey(list0[0])) - { - text = list0[0]; - list0.RemoveAt(0); - treeNode0.Nodes.Add(text, text); - return method_3(treeNode0.Nodes[text], list0); - } - if (list0.Count == 1) - { - return treeNode0.Nodes[list0[0]]; - } - text = list0[0]; - list0.RemoveAt(0); - return method_3(treeNode0.Nodes[text], list0); - } - } -} + public TreeNode method_3(TreeNode treeNode0, List list0) + { + if (list0.Count == 0) + { + return treeNode0; + } + string text; + if (!treeNode0.Nodes.ContainsKey(list0[0])) + { + text = list0[0]; + list0.RemoveAt(0); + treeNode0.Nodes.Add(text, text); + return method_3(treeNode0.Nodes[text], list0); + } + if (list0.Count == 1) + { + return treeNode0.Nodes[list0[0]]; + } + text = list0[0]; + list0.RemoveAt(0); + return method_3(treeNode0.Nodes[text], list0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzPabNode.cs b/GHNamespaceC/zzPabNode.cs index 2c01ad3..de19beb 100644 --- a/GHNamespaceC/zzPabNode.cs +++ b/GHNamespaceC/zzPabNode.cs @@ -7,201 +7,210 @@ namespace GHNamespaceC { - public class ZzPabNode : ZzPakNode2 - { - public string String2; + public class ZzPabNode : ZzPakNode2 + { + public string String2; - public ZzPabNode() : this(true) - { - } + public ZzPabNode() : this(true) + { + } - public ZzPabNode(bool bool5) : this(bool5, true, 0) - { - } + public ZzPabNode(bool bool5) : this(bool5, true, 0) + { + } - public ZzPabNode(bool bool5, bool bool6, int int1) - { - Text = "PabFile"; - Bool2 = bool5; - Bool1 = bool6; - Int0 = int1; - ImageIndex = 37; - SelectedImageIndex = 37; - } + public ZzPabNode(bool bool5, bool bool6, int int1) + { + Text = "PabFile"; + Bool2 = bool5; + Bool1 = bool6; + Int0 = int1; + ImageIndex = 37; + SelectedImageIndex = 37; + } - public ZzPabNode(string string3, string string4, bool bool5) : this(string3, string4, null, bool5) - { - } + public ZzPabNode(string string3, string string4, bool bool5) : this(string3, string4, null, bool5) + { + } - public ZzPabNode(string string3, string string4, string string5, bool bool5) - { - Text = KeyGenerator.GetFileName(string3); - String0 = string3; - String2 = string4; - String1 = string5; - Bool4 = bool5; - if (File.Exists(string3) && File.Exists(string4)) - { - method_19(); - } - ImageIndex = 37; - SelectedImageIndex = 37; - } + public ZzPabNode(string string3, string string4, string string5, bool bool5) + { + Text = KeyGenerator.GetFileName(string3); + String0 = string3; + String2 = string4; + String1 = string5; + Bool4 = bool5; + if (File.Exists(string3) && File.Exists(string4)) + { + method_19(); + } + ImageIndex = 37; + SelectedImageIndex = 37; + } - private void method_19() - { - if (String1 != null) - { - Class3180 = new ZzPakNode2(String1, false); - } - using (var stream = new Stream26(File.Open(String0, FileMode.Open, FileAccess.Read, FileShare.Read))) - { - var num = 0; - var num2 = (int)stream.Length; - if (num2 == 0) - { - throw new Exception("Pak File is empty!"); - } - var int_ = stream.ReadInt(); - stream.ReverseEndianness = (Bool2 = (!QbSongClass1.ContainsKey(int_) || !QbSongClass1.GetDictString(int_).StartsWith("."))); - Bool3 = (stream.ReadInt() < stream.Length); - var @enum = (Enum35)stream.ReadIntAt(28); - Bool1 = ((@enum & Enum35.Flag3) == Enum35.Flag0); - Int0 = stream.ReadIntAt(Bool1 ? 12 : 16, Bool2 && (@enum & Enum35.Flag4) == Enum35.Flag0 && (@enum & Enum35.Flag5) == Enum35.Flag0); - while (true) - { - var enum2 = (Enum35)stream.ReadIntAt(num + 28, false); - var bool_ = Bool2 && (enum2 & Enum35.Flag4) == Enum35.Flag0 && (enum2 & Enum35.Flag5) == Enum35.Flag0; - var num3 = stream.ReadIntAt(num, bool_); - if (QbSongClass1.ContainsKey(num3) && (QbSongClass1.GetDictString(num3).Equals(".last") || QbSongClass1.GetDictString(num3).Equals("last"))) - { - break; - } - var num4 = stream.ReadInt(bool_); - if (!Bool3) - { - num4 = num4 - num2 + num; - } - if (num4 < 0) - { - num4 = 0; - } - var int2 = stream.ReadInt(bool_); - var num5 = stream.ReadIntAt(num + (Bool1 ? 16 : 12), bool_); - var num6 = stream.ReadIntAt(num + 20, bool_); - var int3 = stream.ReadInt(bool_); - stream.Position += 4L; - if ((enum2 & Enum35.Flag3) != Enum35.Flag0) - { - Bool1 = false; - var text = Stream260.ReadString(160); - var num7 = text.IndexOf('\0'); - if (num7 >= 0) - { - text = text.Substring(0, num7); - } - if (QbSongClass1.ContainsKey(num3) && !QbSongClass1.GetDictString(num3).EndsWith(".qb.ngc") && !QbSongClass1.GetDictString(num3).EndsWith(".qb.ps2")) - { - if (!Bool2) - { - if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".ps2", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text); - } - else if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".qb", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text); - } - } - else if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".ngc", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text); - } - else if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".qb", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text); - } - } - else - { - var text2 = "abcdefghijklmnopqrstuvwxyz"; - for (var i = 0; i < text2.Length; i++) - { - var c = text2[i]; - if (num5 == KeyGenerator.GetQbKey(c + text, true)) - { - QbSongClass1.AddKeyToDictionary(c + text); - } - } - } - if (num6 == KeyGenerator.GetQbKey(text = KeyGenerator.GetFileNameNoExt(text), true)) - { - QbSongClass1.AddKeyToDictionary(text); - } - } - TreeNode treeNode; - if (QbSongClass1.ContainsKey(num3) && QbSongClass1.GetDictString(num3).EndsWith("qb")) - { - treeNode = new Class309(num3, num4, int2, num5, num6, int3, enum2); - } - else if (QbSongClass1.ContainsKey(num3) && QbSongClass1.GetDictString(num3).Contains("qs")) - { - treeNode = new Class328(num3, num4, int2, num5, num6, int3, enum2); - } - else - { - treeNode = new ZzCocoaNode12(num3, num4, int2, num5, num6, int3, enum2); - } - if (QbSongClass1.ContainsKey(num5)) - { - method_1(QbSongClass1.GetDictString(num5), treeNode); - } - else - { - method_5(num5, (INterface12)treeNode); - } - num += (((enum2 & Enum35.Flag3) != Enum35.Flag0) ? 192 : 32); - } - } - Stream260 = new Stream26(File.Open(String2, FileMode.Open, FileAccess.Read, FileShare.Read)); - if (Stream260.Length == 0L) - { - throw new Exception("Pab File is empty!"); - } - } + private void method_19() + { + if (String1 != null) + { + Class3180 = new ZzPakNode2(String1, false); + } + using (var stream = new Stream26(File.Open(String0, FileMode.Open, FileAccess.Read, FileShare.Read))) + { + var num = 0; + var num2 = (int) stream.Length; + if (num2 == 0) + { + throw new Exception("Pak File is empty!"); + } + var int_ = stream.ReadInt(); + stream.ReverseEndianness = (Bool2 = (!QbSongClass1.ContainsKey(int_) || + !QbSongClass1.GetDictString(int_).StartsWith("."))); + Bool3 = (stream.ReadInt() < stream.Length); + var @enum = (Enum35) stream.ReadIntAt(28); + Bool1 = ((@enum & Enum35.Flag3) == Enum35.Flag0); + Int0 = stream.ReadIntAt(Bool1 ? 12 : 16, + Bool2 && (@enum & Enum35.Flag4) == Enum35.Flag0 && (@enum & Enum35.Flag5) == Enum35.Flag0); + while (true) + { + var enum2 = (Enum35) stream.ReadIntAt(num + 28, false); + var bool_ = Bool2 && (enum2 & Enum35.Flag4) == Enum35.Flag0 && + (enum2 & Enum35.Flag5) == Enum35.Flag0; + var num3 = stream.ReadIntAt(num, bool_); + if (QbSongClass1.ContainsKey(num3) && (QbSongClass1.GetDictString(num3).Equals(".last") || + QbSongClass1.GetDictString(num3).Equals("last"))) + { + break; + } + var num4 = stream.ReadInt(bool_); + if (!Bool3) + { + num4 = num4 - num2 + num; + } + if (num4 < 0) + { + num4 = 0; + } + var int2 = stream.ReadInt(bool_); + var num5 = stream.ReadIntAt(num + (Bool1 ? 16 : 12), bool_); + var num6 = stream.ReadIntAt(num + 20, bool_); + var int3 = stream.ReadInt(bool_); + stream.Position += 4L; + if ((enum2 & Enum35.Flag3) != Enum35.Flag0) + { + Bool1 = false; + var text = Stream260.ReadString(160); + var num7 = text.IndexOf('\0'); + if (num7 >= 0) + { + text = text.Substring(0, num7); + } + if (QbSongClass1.ContainsKey(num3) && !QbSongClass1.GetDictString(num3).EndsWith(".qb.ngc") && + !QbSongClass1.GetDictString(num3).EndsWith(".qb.ps2")) + { + if (!Bool2) + { + if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".ps2", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text); + } + else if (num5 == KeyGenerator.GetQbKey( + text = text.Replace("/", "\\").Replace(".qb", ""), true)) + { + QbSongClass1.AddKeyToDictionary(text); + } + } + else if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".ngc", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text); + } + else if (num5 == KeyGenerator.GetQbKey(text = text.Replace("/", "\\").Replace(".qb", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text); + } + } + else + { + var text2 = "abcdefghijklmnopqrstuvwxyz"; + for (var i = 0; i < text2.Length; i++) + { + var c = text2[i]; + if (num5 == KeyGenerator.GetQbKey(c + text, true)) + { + QbSongClass1.AddKeyToDictionary(c + text); + } + } + } + if (num6 == KeyGenerator.GetQbKey(text = KeyGenerator.GetFileNameNoExt(text), true)) + { + QbSongClass1.AddKeyToDictionary(text); + } + } + TreeNode treeNode; + if (QbSongClass1.ContainsKey(num3) && QbSongClass1.GetDictString(num3).EndsWith("qb")) + { + treeNode = new Class309(num3, num4, int2, num5, num6, int3, enum2); + } + else if (QbSongClass1.ContainsKey(num3) && QbSongClass1.GetDictString(num3).Contains("qs")) + { + treeNode = new Class328(num3, num4, int2, num5, num6, int3, enum2); + } + else + { + treeNode = new ZzCocoaNode12(num3, num4, int2, num5, num6, int3, enum2); + } + if (QbSongClass1.ContainsKey(num5)) + { + method_1(QbSongClass1.GetDictString(num5), treeNode); + } + else + { + method_5(num5, (INterface12) treeNode); + } + num += (((enum2 & Enum35.Flag3) != Enum35.Flag0) ? 192 : 32); + } + } + Stream260 = new Stream26(File.Open(String2, FileMode.Open, FileAccess.Read, FileShare.Read)); + if (Stream260.Length == 0L) + { + throw new Exception("Pab File is empty!"); + } + } - public override void vmethod_1() - { - if (Stream260 == null) - { - throw new IOException("Pab File was never parsed"); - } - method_20(String0, String2); - } + public override void vmethod_1() + { + if (Stream260 == null) + { + throw new IOException("Pab File was never parsed"); + } + method_20(String0, String2); + } - public void method_20(string string3, string string4) - { - var stream = new Stream26(Bool2); - var stream2 = new Stream26(); - method_18(stream, stream2); - if (Stream260 != null && String0 == string3 && String2 == string4) - { - Stream260.Close(); - } - KeyGenerator.WriteAllBytes(string4, stream2.ReadEverything()); - KeyGenerator.WriteAllBytes(string3, stream.ReadEverything()); - stream.Dispose(); - stream2.Dispose(); - if (Stream260 != null && String0 == string3 && String2 == string4) - { - if (Class3180 != null && Class3180 != this) - { - Class3180.vmethod_1(); - } - Dispose(); - method_19(); - GC.Collect(); - } - } - } -} + public void method_20(string string3, string string4) + { + var stream = new Stream26(Bool2); + var stream2 = new Stream26(); + method_18(stream, stream2); + if (Stream260 != null && String0 == string3 && String2 == string4) + { + Stream260.Close(); + } + KeyGenerator.WriteAllBytes(string4, stream2.ReadEverything()); + KeyGenerator.WriteAllBytes(string3, stream.ReadEverything()); + stream.Dispose(); + stream2.Dispose(); + if (Stream260 != null && String0 == string3 && String2 == string4) + { + if (Class3180 != null && Class3180 != this) + { + Class3180.vmethod_1(); + } + Dispose(); + method_19(); + GC.Collect(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzPakNode1.cs b/GHNamespaceC/zzPakNode1.cs index c03f6ab..2f31322 100644 --- a/GHNamespaceC/zzPakNode1.cs +++ b/GHNamespaceC/zzPakNode1.cs @@ -8,119 +8,119 @@ namespace GHNamespaceC { //I'm not positive this has to do with pak files yet - public class ZzPakNode1 : TreeNode - { - public bool Bool0; + public class ZzPakNode1 : TreeNode + { + public bool Bool0; - public ZzPakNode1() : this("newfolder") - { - ImageIndex = 38; - SelectedImageIndex = 38; - } + public ZzPakNode1() : this("newfolder") + { + ImageIndex = 38; + SelectedImageIndex = 38; + } - public ZzPakNode1(bool bool1) : this("(Unknown)") - { - ImageIndex = 38; - SelectedImageIndex = 38; - Bool0 = bool1; - } + public ZzPakNode1(bool bool1) : this("(Unknown)") + { + ImageIndex = 38; + SelectedImageIndex = 38; + Bool0 = bool1; + } - public ZzPakNode1(string string0) : base(string0) - { - Name = string0; - ImageIndex = 38; - SelectedImageIndex = 38; - } + public ZzPakNode1(string string0) : base(string0) + { + Name = string0; + ImageIndex = 38; + SelectedImageIndex = 38; + } - public void method_0(string string0, ZzGenericNode1 class3080) - { - method_1(string0, new Class309(string0, class3080)); - } + public void method_0(string string0, ZzGenericNode1 class3080) + { + method_1(string0, new Class309(string0, class3080)); + } - public void method_1(string string0, T gparam0) where T : TreeNode - { - var @class = string.IsNullOrEmpty(string0) ? this : method_2(KeyGenerator.smethod_10(string0)); - if (@class.Nodes.ContainsKey(gparam0.Text)) - { - @class.Nodes.RemoveByKey(gparam0.Text); - } - @class.Nodes.Add(gparam0); - if (gparam0 is INterface12) - { - TreeNode treeNode = this; - var level = treeNode.Level; - while (level-- != 0) - { - treeNode = treeNode.Parent; - } - var class2 = treeNode as ZzPakNode2; - var @interface = class2.method_10(string0); - if (@interface == null) - { - class2.List0.Add(gparam0 as INterface12); - return; - } - class2.List0[class2.List0.IndexOf(@interface)] = (gparam0 as INterface12); - } - } + public void method_1(string string0, T gparam0) where T : TreeNode + { + var @class = string.IsNullOrEmpty(string0) ? this : method_2(KeyGenerator.smethod_10(string0)); + if (@class.Nodes.ContainsKey(gparam0.Text)) + { + @class.Nodes.RemoveByKey(gparam0.Text); + } + @class.Nodes.Add(gparam0); + if (gparam0 is INterface12) + { + TreeNode treeNode = this; + var level = treeNode.Level; + while (level-- != 0) + { + treeNode = treeNode.Parent; + } + var class2 = treeNode as ZzPakNode2; + var @interface = class2.method_10(string0); + if (@interface == null) + { + class2.List0.Add(gparam0 as INterface12); + return; + } + class2.List0[class2.List0.IndexOf(@interface)] = (gparam0 as INterface12); + } + } - public virtual string vmethod_0() - { - if (Parent == null) - { - return ""; - } - return ((ZzPakNode1)Parent).vmethod_0() + Text + "\\"; - } + public virtual string vmethod_0() + { + if (Parent == null) + { + return ""; + } + return ((ZzPakNode1) Parent).vmethod_0() + Text + "\\"; + } - public ZzPakNode1 method_2(string string0) - { - if (string.IsNullOrEmpty(string0)) - { - return this; - } - var list = new List(string0.Split(new[] - { - '\\', - '/' - }, StringSplitOptions.RemoveEmptyEntries)); - ZzPakNode1 @class; - if (Nodes.ContainsKey(list[0]) && Nodes[list[0]] is ZzPakNode1) - { - @class = (ZzPakNode1)Nodes[list[0]]; - list.RemoveAt(0); - @class = ((list.Count > 0) ? @class.method_3(list) : @class); - } - else - { - @class = new ZzPakNode1(list[0]); - list.RemoveAt(0); - Nodes.Add(@class); - @class = ((list.Count > 0) ? @class.method_3(list) : @class); - } - return @class; - } + public ZzPakNode1 method_2(string string0) + { + if (string.IsNullOrEmpty(string0)) + { + return this; + } + var list = new List(string0.Split(new[] + { + '\\', + '/' + }, StringSplitOptions.RemoveEmptyEntries)); + ZzPakNode1 @class; + if (Nodes.ContainsKey(list[0]) && Nodes[list[0]] is ZzPakNode1) + { + @class = (ZzPakNode1) Nodes[list[0]]; + list.RemoveAt(0); + @class = ((list.Count > 0) ? @class.method_3(list) : @class); + } + else + { + @class = new ZzPakNode1(list[0]); + list.RemoveAt(0); + Nodes.Add(@class); + @class = ((list.Count > 0) ? @class.method_3(list) : @class); + } + return @class; + } - public ZzPakNode1 method_3(List list0) - { - if (list0.Count == 0) - { - return this; - } - if (!Nodes.ContainsKey(list0[0]) || !(Nodes[list0[0]] is ZzPakNode1)) - { - var @class = new ZzPakNode1(list0[0]); - list0.RemoveAt(0); - Nodes.Add(@class); - return @class.method_3(list0); - } - if (list0.Count == 1) - { - return (ZzPakNode1)Nodes[list0[0]]; - } - var key = list0[0]; - list0.RemoveAt(0); - return ((ZzPakNode1)Nodes[key]).method_3(list0); - } - } -} + public ZzPakNode1 method_3(List list0) + { + if (list0.Count == 0) + { + return this; + } + if (!Nodes.ContainsKey(list0[0]) || !(Nodes[list0[0]] is ZzPakNode1)) + { + var @class = new ZzPakNode1(list0[0]); + list0.RemoveAt(0); + Nodes.Add(@class); + return @class.method_3(list0); + } + if (list0.Count == 1) + { + return (ZzPakNode1) Nodes[list0[0]]; + } + var key = list0[0]; + list0.RemoveAt(0); + return ((ZzPakNode1) Nodes[key]).method_3(list0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzPakNode2.cs b/GHNamespaceC/zzPakNode2.cs index dc0f5aa..f9683ae 100644 --- a/GHNamespaceC/zzPakNode2.cs +++ b/GHNamespaceC/zzPakNode2.cs @@ -9,575 +9,589 @@ namespace GHNamespaceC { - public class ZzPakNode2 : ZzPakNode1, IEnumerable, IDisposable, IEnumerable - { - public string String0; - - public string String1; - - public ZzPakNode1 Class3170; //Parent? - - public List List0; - - public ZzPakNode2 Class3180; //Linked List?.. - - public Dictionary Dictionary0; - - public bool Bool1; - - public bool Bool2; - - public bool Bool3; - - public int Int0; - - public Stream26 Stream260; - - public bool Bool4; - - public ZzPakNode2() : this(true) - { - } - - public ZzPakNode2(bool bool5) : this(bool5, true, 0) - { - } - - public ZzPakNode2(bool bool5, bool bool6, int int1) : base("PakFile") - { - Class3170 = new ZzPakNode1(true); - List0 = new List(); - Dictionary0 = new Dictionary(); - Bool1 = true; - Bool2 = true; - Bool4 = true; - //base..ctor("PakFile"); - Bool2 = bool5; - Bool1 = bool6; - Int0 = int1; - ImageIndex = 37; - SelectedImageIndex = 37; - } - - public ZzPakNode2(string string2, bool bool5) : this(string2, null, bool5) - { - } - - public ZzPakNode2(string string2, string string3, bool bool5) - { - Class3170 = new ZzPakNode1(true); - List0 = new List(); - Dictionary0 = new Dictionary(); - Bool1 = true; - Bool2 = true; - Bool4 = true; - //base..ctor(); - Text = KeyGenerator.GetFileName(string2); - String0 = string2; - String1 = string3; - Bool4 = bool5; - if (File.Exists(string2)) - { - method_4(); - } - ImageIndex = 37; - SelectedImageIndex = 37; - } - - private void method_4() - { - if (Stream260 == null) - { - Stream260 = new Stream26(File.Open(String0, FileMode.Open, FileAccess.Read, FileShare.Read)); - } - Class3180 = ((String1 != null) ? new ZzPakNode2(String1, false) : this); - if (Stream260.Length == 0L) - { - throw new Exception("Pak File is empty!"); - } - var num = 0; - var num2 = Stream260.ReadInt(); - Stream260.ReverseEndianness = (Bool2 = (!QbSongClass1.ContainsKey(num2) || !QbSongClass1.GetDictString(num2).StartsWith("."))); - var @enum = (Enum35)Stream260.ReadIntAt(28); - Bool1 = ((@enum & Enum35.Flag3) == Enum35.Flag0); - Int0 = Stream260.ReadIntAt(Bool1 ? 12 : 16, Bool2 && (@enum & Enum35.Flag4) == Enum35.Flag0 && (@enum & Enum35.Flag5) == Enum35.Flag0); - if (Bool4 && String0 != null) - { - var text = KeyGenerator.GetFileName(String0); - if (text.Contains("_song")) - { - QbSongClass1.GenerateSongTrackStuff(text.Substring(0, text.LastIndexOf("_song.pak")).ToLower()); - } - else if (!Bool1) - { - QbSongClass1.GenerateSongTrackStuff(text.Substring(0, text.LastIndexOf(".pak")).ToLower()); - } - } - while (true) - { - var enum2 = (Enum35)Stream260.ReadIntAt(num + 28); - var flag = Bool2 && (enum2 & Enum35.Flag4) == Enum35.Flag0 && (enum2 & Enum35.Flag5) == Enum35.Flag0; - var int_ = Stream260.ReadIntAt(num, flag); - if (QbSongClass1.ContainsKey(int_)) - { - if (QbSongClass1.GetDictString(int_).Equals(".last")) - { - return; - } - if (QbSongClass1.GetDictString(int_).Equals("last")) - { - break; - } - } - var int2 = Stream260.ReadInt(flag) + num; - var int3 = Stream260.ReadInt(flag); - var num3 = Stream260.ReadIntAt(num + (Bool1 ? 16 : 12), flag); - var num4 = Stream260.ReadIntAt(num + 20, flag); - var int4 = Stream260.ReadInt(flag); - Stream260.Position += 4L; - if ((enum2 & Enum35.Flag3) != Enum35.Flag0) - { - Bool1 = false; - var text2 = Stream260.ReadString(160); - var num5 = text2.IndexOf('\0'); - if (num5 >= 0) - { - text2 = text2.Substring(0, num5); - } - if (QbSongClass1.ContainsKey(int_) && !QbSongClass1.GetDictString(int_).EndsWith(".qb.ngc") && !QbSongClass1.GetDictString(int_).EndsWith(".qb.ps2")) - { - if (!Bool2) - { - if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".ps2", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text2); - } - else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".qb", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text2); - } - } - else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".ngc", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text2); - } - else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".qb", ""), true)) - { - QbSongClass1.AddKeyToDictionary(text2); - } - } - else - { - var text3 = "abcdefghijklmnopqrstuvwxyz"; - for (var i = 0; i < text3.Length; i++) - { - var c = text3[i]; - if (num3 == KeyGenerator.GetQbKey(c + text2, true)) - { - QbSongClass1.AddKeyToDictionary(c + text2); - } - } - } - if (num4 == KeyGenerator.GetQbKey(text2 = KeyGenerator.GetFileNameNoExt(text2), true)) - { - QbSongClass1.AddKeyToDictionary(text2); - } - } - TreeNode treeNode; - if (QbSongClass1.ContainsKey(int_) && QbSongClass1.GetDictString(int_).Contains("qb")) - { - treeNode = new Class309(int_, int2, int3, num3, num4, int4, enum2); - } - else if (QbSongClass1.ContainsKey(int_) && QbSongClass1.GetDictString(int_).Contains("qs")) - { - treeNode = new Class328(int_, int2, int3, num3, num4, int4, enum2); - } - else - { - treeNode = new ZzCocoaNode12(int_, int2, int3, num3, num4, int4, enum2); - } - if (Bool4) - { - if (QbSongClass1.ContainsKey(num3)) - { - method_1(QbSongClass1.GetDictString(num3), treeNode); - } - else - { - method_5(num3, (INterface12)treeNode); - } - } - else - { - List0.Add((INterface12)treeNode); - } - num += (((enum2 & Enum35.Flag3) != Enum35.Flag0) ? 192 : 32); - } - } - - public void method_5(int int1, INterface12 interface120) - { - Class3170.Nodes.Add((TreeNode)interface120); - if (!Nodes.Contains(Class3170)) - { - Nodes.Add(Class3170); - } - var @interface = method_11(int1); - if (@interface == null) - { - List0.Add(interface120); - return; - } - List0[List0.IndexOf(@interface)] = interface120; - } - - public override string vmethod_0() - { - return ""; - } - - public bool method_6(string string2) - { - return method_10(string2) != null; - } - - public bool method_7(string string2) - { - var @interface = method_10(string2); - ((TreeNode)@interface).Remove(); - return @interface != null && List0.Remove(@interface); - } - - public Class309 ZzGetNode1(string string2) - { - var @interface = method_10(string2); - if (@interface == null) - { - return null; - } - if (@interface is Class309) - { - return (Class309)method_15(@interface); - } - var @class = @interface.imethod_20(new Class309()); - if (Bool4) - { - ((TreeNode)@interface).Remove(); - method_1(string2, @class); - } - else - { - List0[List0.IndexOf(@interface)] = @class; - } - return method_15(@class); - } - - public Class328 method_9(string string2) - { - var @interface = method_10(string2); - if (@interface == null) - { - return null; - } - if (@interface is Class328) - { - return (Class328)method_15(@interface); - } - var @class = @interface.imethod_20(new Class328()); - if (Bool4) - { - ((TreeNode)@interface).Remove(); - method_1(string2, @class); - } - else - { - List0[List0.IndexOf(@interface)] = @class; - } - return method_15(@class); - } - - public INterface12 method_10(string string2) - { - return method_11(QbSongClass1.AddKeyToDictionary(string2)); - } - - public INterface12 method_11(int int1) - { - foreach (var current in List0) - { - if (current.imethod_7() == int1) - { - return current; - } - } - return null; - } - - public byte[] method_12(string string2) - { - return method_14(method_10(string2)); - } - - public byte[] method_13(int int1) - { - return method_14(method_11(int1)); - } - - public byte[] method_14(INterface12 interface120) - { - if (interface120 == null) - { - return null; - } - if (interface120.imethod_18()) - { - return Stream260.ReadBytesAt(interface120.imethod_0(), interface120.imethod_2(), false); - } - return interface120.imethod_16(); - } - - public T method_15(T gparam0) where T : class, INterface12 - { - if (gparam0 == null) - { - return default(T); - } - if (gparam0.imethod_18()) - { - gparam0.imethod_17(Stream260.ReadBytesAt(gparam0.imethod_0(), gparam0.imethod_2(), false)); - } - return gparam0; - } - - public virtual void vmethod_1() - { - if (Stream260 == null) - { - throw new IOException("Pak File was never parsed"); - } - method_16(String0); - } - - public void method_16(string string2) - { - var stream = method_17(); - if (Stream260 != null && String0 == string2) - { - Stream260.Close(); - } - KeyGenerator.WriteAllBytes(string2, stream.ReadEverything()); - stream.Dispose(); - if (Stream260 != null && String0 == string2) - { - if (Class3180 != null && Class3180 != this) - { - Class3180.vmethod_1(); - } - Dispose(); - method_4(); - GC.Collect(); - } - } - - public Stream26 method_17() - { - var stream = new Stream26(Bool2); - var stream2 = new Stream26(); - method_18(stream, stream2); - stream.WriteByteArray(stream2.ReadEverything(), false); - stream2.Dispose(); - return stream; - } - - private static int smethod_0(long long0, int int1) - { - var num = 1 << int1; - var num2 = num - 1; - return (int)(num - (long0 & num2) & num2); - } - - public void method_18(Stream26 stream261, Stream26 stream262) - { - var num = 0; - foreach (var current in List0) - { - num += (((current.imethod_14() & Enum35.Flag3) == Enum35.Flag0 || !QbSongClass1.ContainsKey(current.imethod_7())) ? 32 : 192); - } - if (Bool1) - { - num = (num + 32 + 4095 & -4096); - } - else - { - num += (Bool2 ? 64 : 48); - } - var num2 = 0; - var list = new List(); - foreach (var current2 in List0) - { - if (current2 is Class309 && (current2 as Class309).vmethod_8()) - { - var string_ = current2.imethod_9().Replace(".qb", ".qs"); - if (!Class3180.method_6(string_)) - { - if (!current2.imethod_18()) - { - list.Add(new Class328(string_, (current2 as Class309).vmethod_10())); - } - else - { - list.Add(new Class328(string_)); - } - } - else - { - var @interface = Class3180.method_10(string_); - if (@interface.imethod_18() || ((Class328)@interface).Dictionary0 != (current2 as Class309).vmethod_10()) - { - ((Class328)@interface).Dictionary0 = (current2 as Class309).vmethod_10(); - } - } - } - } - if (list.Count != 0) - { - Class3180.List0.AddRange(list); - } - int num4; - foreach (var current3 in List0) - { - var flag = Bool2 && (current3.imethod_14() & Enum35.Flag4) == Enum35.Flag0 && (current3.imethod_14() & Enum35.Flag5) == Enum35.Flag0; - var num3 = current3.imethod_7(); - if (current3.imethod_4() != 0) - { - stream261.WriteInt(current3.imethod_4(), flag); - } - else - { - var text = QbSongClass1.GetDictString(num3); - if (!Bool1 && !text.EndsWith(".qb.ngc") && !text.EndsWith(".qb.ps2")) - { - stream261.WriteInt(1270999134, flag); - } - else if (text.Contains(".qb")) - { - stream261.WriteUInt(2817852868u, flag); - } - else - { - stream261.WriteInt(1952304453, flag); - } - } - if (this is ZzPabNode && Bool3) - { - stream261.WriteInt((int)stream262.Length, flag); - } - else - { - stream261.WriteInt(num - num2 + (int)stream262.Length, flag); - } - stream261.WriteInt(current3.imethod_2(), flag); - if (Bool1) - { - stream261.WriteInt(Int0, flag); - } - stream261.WriteInt(num3, flag); - if (!Bool1) - { - stream261.WriteInt(Int0, flag); - } - stream261.WriteInt(current3.imethod_10(), flag); - stream261.WriteInt(current3.imethod_12(), flag); - stream261.WriteInt((int)current3.imethod_14(), false); - var flag2 = false; - if ((current3.imethod_14() & Enum35.Flag3) != Enum35.Flag0 && QbSongClass1.ContainsKey(num3)) - { - flag2 = true; - var text2 = QbSongClass1.GetDictString(num3); - if (!current3.imethod_6().EndsWith(".qb.ngc") && !current3.imethod_6().EndsWith(".qb.ps2")) - { - if (Bool1) - { - text2 = text2.Replace("\\", "/"); - } - else if (!Bool2) - { - text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + ".ps2"; - } - else - { - text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + ".ngc"; - } - } - else - { - text2 = text2.Substring(1); - } - stream261.WriteString(text2); - stream261.WriteNBytes(0, 160 - text2.Length); - } - stream262.WriteByteArray(method_14(current3)); - num4 = ((Bool2 || Bool1) ? smethod_0(stream262.Length, 5) : smethod_0(stream262.Length, 4)); - stream262.WriteNBytes(0, num4); - num2 += (flag2 ? 192 : 32); - } - stream261.WriteUInt(Bool1 ? 749989691u : 3039057503u); - if (this is ZzPabNode && Bool3) - { - stream261.WriteInt((int)stream262.Length); - } - else - { - stream261.WriteInt(num - num2 + (int)stream262.Length); - } - stream261.WriteInt(4); - if (Bool1) - { - stream261.WriteInt(Int0); - stream261.WriteUInt(2306521930u); - stream261.WriteInt(1794739921); - stream261.WriteNBytes(0, 8); - } - else - { - stream261.WriteNBytes(0, 4); - stream261.WriteInt(Int0); - stream261.WriteNBytes(0, 12); - } - num4 = (Bool1 ? smethod_0(stream261.Length, 12) : (Bool2 ? 32 : 16)); - stream261.WriteNBytes(0, num4); - stream262.WriteNBytes(171, 4); - stream262.WriteNBytes(0, 12); - num4 = (Bool1 ? smethod_0(stream262.Length, 12) : ((int)stream262.Length % (Bool2 ? 32 : 16))); - stream262.WriteNBytes(171, num4); - } - - public IEnumerator GetEnumerator() - { - return List0.GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return List0.GetEnumerator(); - } - - public void Dispose() - { - if (Stream260 != null) - { - Stream260.Close(); - Stream260.Dispose(); - Stream260 = null; - } - Class3170.Nodes.Clear(); - List0.Clear(); - Nodes.Clear(); - Dictionary0.Clear(); - if (Class3180 != null && Class3180 != this) - { - Class3180.Dispose(); - } - } - } -} + public class ZzPakNode2 : ZzPakNode1, IEnumerable, IDisposable, IEnumerable + { + public string String0; + + public string String1; + + public ZzPakNode1 Class3170; //Parent? + + public List List0; + + public ZzPakNode2 Class3180; //Linked List?.. + + public Dictionary Dictionary0; + + public bool Bool1; + + public bool Bool2; + + public bool Bool3; + + public int Int0; + + public Stream26 Stream260; + + public bool Bool4; + + public ZzPakNode2() : this(true) + { + } + + public ZzPakNode2(bool bool5) : this(bool5, true, 0) + { + } + + public ZzPakNode2(bool bool5, bool bool6, int int1) : base("PakFile") + { + Class3170 = new ZzPakNode1(true); + List0 = new List(); + Dictionary0 = new Dictionary(); + Bool1 = true; + Bool2 = true; + Bool4 = true; + //base..ctor("PakFile"); + Bool2 = bool5; + Bool1 = bool6; + Int0 = int1; + ImageIndex = 37; + SelectedImageIndex = 37; + } + + public ZzPakNode2(string string2, bool bool5) : this(string2, null, bool5) + { + } + + public ZzPakNode2(string string2, string string3, bool bool5) + { + Class3170 = new ZzPakNode1(true); + List0 = new List(); + Dictionary0 = new Dictionary(); + Bool1 = true; + Bool2 = true; + Bool4 = true; + //base..ctor(); + Text = KeyGenerator.GetFileName(string2); + String0 = string2; + String1 = string3; + Bool4 = bool5; + if (File.Exists(string2)) + { + method_4(); + } + ImageIndex = 37; + SelectedImageIndex = 37; + } + + private void method_4() + { + if (Stream260 == null) + { + Stream260 = new Stream26(File.Open(String0, FileMode.Open, FileAccess.Read, FileShare.Read)); + } + Class3180 = ((String1 != null) ? new ZzPakNode2(String1, false) : this); + if (Stream260.Length == 0L) + { + throw new Exception("Pak File is empty!"); + } + var num = 0; + var num2 = Stream260.ReadInt(); + Stream260.ReverseEndianness = (Bool2 = (!QbSongClass1.ContainsKey(num2) || + !QbSongClass1.GetDictString(num2).StartsWith("."))); + var @enum = (Enum35) Stream260.ReadIntAt(28); + Bool1 = ((@enum & Enum35.Flag3) == Enum35.Flag0); + Int0 = Stream260.ReadIntAt(Bool1 ? 12 : 16, + Bool2 && (@enum & Enum35.Flag4) == Enum35.Flag0 && (@enum & Enum35.Flag5) == Enum35.Flag0); + if (Bool4 && String0 != null) + { + var text = KeyGenerator.GetFileName(String0); + if (text.Contains("_song")) + { + QbSongClass1.GenerateSongTrackStuff(text.Substring(0, text.LastIndexOf("_song.pak")).ToLower()); + } + else if (!Bool1) + { + QbSongClass1.GenerateSongTrackStuff(text.Substring(0, text.LastIndexOf(".pak")).ToLower()); + } + } + while (true) + { + var enum2 = (Enum35) Stream260.ReadIntAt(num + 28); + var flag = Bool2 && (enum2 & Enum35.Flag4) == Enum35.Flag0 && (enum2 & Enum35.Flag5) == Enum35.Flag0; + var int_ = Stream260.ReadIntAt(num, flag); + if (QbSongClass1.ContainsKey(int_)) + { + if (QbSongClass1.GetDictString(int_).Equals(".last")) + { + return; + } + if (QbSongClass1.GetDictString(int_).Equals("last")) + { + break; + } + } + var int2 = Stream260.ReadInt(flag) + num; + var int3 = Stream260.ReadInt(flag); + var num3 = Stream260.ReadIntAt(num + (Bool1 ? 16 : 12), flag); + var num4 = Stream260.ReadIntAt(num + 20, flag); + var int4 = Stream260.ReadInt(flag); + Stream260.Position += 4L; + if ((enum2 & Enum35.Flag3) != Enum35.Flag0) + { + Bool1 = false; + var text2 = Stream260.ReadString(160); + var num5 = text2.IndexOf('\0'); + if (num5 >= 0) + { + text2 = text2.Substring(0, num5); + } + if (QbSongClass1.ContainsKey(int_) && !QbSongClass1.GetDictString(int_).EndsWith(".qb.ngc") && + !QbSongClass1.GetDictString(int_).EndsWith(".qb.ps2")) + { + if (!Bool2) + { + if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".ps2", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text2); + } + else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".qb", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text2); + } + } + else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".ngc", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text2); + } + else if (num3 == KeyGenerator.GetQbKey(text2 = text2.Replace("/", "\\").Replace(".qb", ""), + true)) + { + QbSongClass1.AddKeyToDictionary(text2); + } + } + else + { + var text3 = "abcdefghijklmnopqrstuvwxyz"; + for (var i = 0; i < text3.Length; i++) + { + var c = text3[i]; + if (num3 == KeyGenerator.GetQbKey(c + text2, true)) + { + QbSongClass1.AddKeyToDictionary(c + text2); + } + } + } + if (num4 == KeyGenerator.GetQbKey(text2 = KeyGenerator.GetFileNameNoExt(text2), true)) + { + QbSongClass1.AddKeyToDictionary(text2); + } + } + TreeNode treeNode; + if (QbSongClass1.ContainsKey(int_) && QbSongClass1.GetDictString(int_).Contains("qb")) + { + treeNode = new Class309(int_, int2, int3, num3, num4, int4, enum2); + } + else if (QbSongClass1.ContainsKey(int_) && QbSongClass1.GetDictString(int_).Contains("qs")) + { + treeNode = new Class328(int_, int2, int3, num3, num4, int4, enum2); + } + else + { + treeNode = new ZzCocoaNode12(int_, int2, int3, num3, num4, int4, enum2); + } + if (Bool4) + { + if (QbSongClass1.ContainsKey(num3)) + { + method_1(QbSongClass1.GetDictString(num3), treeNode); + } + else + { + method_5(num3, (INterface12) treeNode); + } + } + else + { + List0.Add((INterface12) treeNode); + } + num += (((enum2 & Enum35.Flag3) != Enum35.Flag0) ? 192 : 32); + } + } + + public void method_5(int int1, INterface12 interface120) + { + Class3170.Nodes.Add((TreeNode) interface120); + if (!Nodes.Contains(Class3170)) + { + Nodes.Add(Class3170); + } + var @interface = method_11(int1); + if (@interface == null) + { + List0.Add(interface120); + return; + } + List0[List0.IndexOf(@interface)] = interface120; + } + + public override string vmethod_0() + { + return ""; + } + + public bool method_6(string string2) + { + return method_10(string2) != null; + } + + public bool method_7(string string2) + { + var @interface = method_10(string2); + ((TreeNode) @interface).Remove(); + return @interface != null && List0.Remove(@interface); + } + + public Class309 ZzGetNode1(string string2) + { + var @interface = method_10(string2); + if (@interface == null) + { + return null; + } + if (@interface is Class309) + { + return (Class309) method_15(@interface); + } + var @class = @interface.imethod_20(new Class309()); + if (Bool4) + { + ((TreeNode) @interface).Remove(); + method_1(string2, @class); + } + else + { + List0[List0.IndexOf(@interface)] = @class; + } + return method_15(@class); + } + + public Class328 method_9(string string2) + { + var @interface = method_10(string2); + if (@interface == null) + { + return null; + } + if (@interface is Class328) + { + return (Class328) method_15(@interface); + } + var @class = @interface.imethod_20(new Class328()); + if (Bool4) + { + ((TreeNode) @interface).Remove(); + method_1(string2, @class); + } + else + { + List0[List0.IndexOf(@interface)] = @class; + } + return method_15(@class); + } + + public INterface12 method_10(string string2) + { + return method_11(QbSongClass1.AddKeyToDictionary(string2)); + } + + public INterface12 method_11(int int1) + { + foreach (var current in List0) + { + if (current.imethod_7() == int1) + { + return current; + } + } + return null; + } + + public byte[] method_12(string string2) + { + return method_14(method_10(string2)); + } + + public byte[] method_13(int int1) + { + return method_14(method_11(int1)); + } + + public byte[] method_14(INterface12 interface120) + { + if (interface120 == null) + { + return null; + } + if (interface120.imethod_18()) + { + return Stream260.ReadBytesAt(interface120.imethod_0(), interface120.imethod_2(), false); + } + return interface120.imethod_16(); + } + + public T method_15(T gparam0) where T : class, INterface12 + { + if (gparam0 == null) + { + return default(T); + } + if (gparam0.imethod_18()) + { + gparam0.imethod_17(Stream260.ReadBytesAt(gparam0.imethod_0(), gparam0.imethod_2(), false)); + } + return gparam0; + } + + public virtual void vmethod_1() + { + if (Stream260 == null) + { + throw new IOException("Pak File was never parsed"); + } + method_16(String0); + } + + public void method_16(string string2) + { + var stream = method_17(); + if (Stream260 != null && String0 == string2) + { + Stream260.Close(); + } + KeyGenerator.WriteAllBytes(string2, stream.ReadEverything()); + stream.Dispose(); + if (Stream260 != null && String0 == string2) + { + if (Class3180 != null && Class3180 != this) + { + Class3180.vmethod_1(); + } + Dispose(); + method_4(); + GC.Collect(); + } + } + + public Stream26 method_17() + { + var stream = new Stream26(Bool2); + var stream2 = new Stream26(); + method_18(stream, stream2); + stream.WriteByteArray(stream2.ReadEverything(), false); + stream2.Dispose(); + return stream; + } + + private static int smethod_0(long long0, int int1) + { + var num = 1 << int1; + var num2 = num - 1; + return (int) (num - (long0 & num2) & num2); + } + + public void method_18(Stream26 stream261, Stream26 stream262) + { + var num = 0; + foreach (var current in List0) + { + num += (((current.imethod_14() & Enum35.Flag3) == Enum35.Flag0 || + !QbSongClass1.ContainsKey(current.imethod_7())) + ? 32 + : 192); + } + if (Bool1) + { + num = (num + 32 + 4095 & -4096); + } + else + { + num += (Bool2 ? 64 : 48); + } + var num2 = 0; + var list = new List(); + foreach (var current2 in List0) + { + if (current2 is Class309 && (current2 as Class309).vmethod_8()) + { + var string_ = current2.imethod_9().Replace(".qb", ".qs"); + if (!Class3180.method_6(string_)) + { + if (!current2.imethod_18()) + { + list.Add(new Class328(string_, (current2 as Class309).vmethod_10())); + } + else + { + list.Add(new Class328(string_)); + } + } + else + { + var @interface = Class3180.method_10(string_); + if (@interface.imethod_18() || ((Class328) @interface).Dictionary0 != + (current2 as Class309).vmethod_10()) + { + ((Class328) @interface).Dictionary0 = (current2 as Class309).vmethod_10(); + } + } + } + } + if (list.Count != 0) + { + Class3180.List0.AddRange(list); + } + int num4; + foreach (var current3 in List0) + { + var flag = Bool2 && (current3.imethod_14() & Enum35.Flag4) == Enum35.Flag0 && + (current3.imethod_14() & Enum35.Flag5) == Enum35.Flag0; + var num3 = current3.imethod_7(); + if (current3.imethod_4() != 0) + { + stream261.WriteInt(current3.imethod_4(), flag); + } + else + { + var text = QbSongClass1.GetDictString(num3); + if (!Bool1 && !text.EndsWith(".qb.ngc") && !text.EndsWith(".qb.ps2")) + { + stream261.WriteInt(1270999134, flag); + } + else if (text.Contains(".qb")) + { + stream261.WriteUInt(2817852868u, flag); + } + else + { + stream261.WriteInt(1952304453, flag); + } + } + if (this is ZzPabNode && Bool3) + { + stream261.WriteInt((int) stream262.Length, flag); + } + else + { + stream261.WriteInt(num - num2 + (int) stream262.Length, flag); + } + stream261.WriteInt(current3.imethod_2(), flag); + if (Bool1) + { + stream261.WriteInt(Int0, flag); + } + stream261.WriteInt(num3, flag); + if (!Bool1) + { + stream261.WriteInt(Int0, flag); + } + stream261.WriteInt(current3.imethod_10(), flag); + stream261.WriteInt(current3.imethod_12(), flag); + stream261.WriteInt((int) current3.imethod_14(), false); + var flag2 = false; + if ((current3.imethod_14() & Enum35.Flag3) != Enum35.Flag0 && QbSongClass1.ContainsKey(num3)) + { + flag2 = true; + var text2 = QbSongClass1.GetDictString(num3); + if (!current3.imethod_6().EndsWith(".qb.ngc") && !current3.imethod_6().EndsWith(".qb.ps2")) + { + if (Bool1) + { + text2 = text2.Replace("\\", "/"); + } + else if (!Bool2) + { + text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + + ".ps2"; + } + else + { + text2 = text2.Replace("\\", "/") + (current3.imethod_6().EndsWith(".qb") ? "" : ".qb") + + ".ngc"; + } + } + else + { + text2 = text2.Substring(1); + } + stream261.WriteString(text2); + stream261.WriteNBytes(0, 160 - text2.Length); + } + stream262.WriteByteArray(method_14(current3)); + num4 = ((Bool2 || Bool1) ? smethod_0(stream262.Length, 5) : smethod_0(stream262.Length, 4)); + stream262.WriteNBytes(0, num4); + num2 += (flag2 ? 192 : 32); + } + stream261.WriteUInt(Bool1 ? 749989691u : 3039057503u); + if (this is ZzPabNode && Bool3) + { + stream261.WriteInt((int) stream262.Length); + } + else + { + stream261.WriteInt(num - num2 + (int) stream262.Length); + } + stream261.WriteInt(4); + if (Bool1) + { + stream261.WriteInt(Int0); + stream261.WriteUInt(2306521930u); + stream261.WriteInt(1794739921); + stream261.WriteNBytes(0, 8); + } + else + { + stream261.WriteNBytes(0, 4); + stream261.WriteInt(Int0); + stream261.WriteNBytes(0, 12); + } + num4 = (Bool1 ? smethod_0(stream261.Length, 12) : (Bool2 ? 32 : 16)); + stream261.WriteNBytes(0, num4); + stream262.WriteNBytes(171, 4); + stream262.WriteNBytes(0, 12); + num4 = (Bool1 ? smethod_0(stream262.Length, 12) : ((int) stream262.Length % (Bool2 ? 32 : 16))); + stream262.WriteNBytes(171, num4); + } + + public IEnumerator GetEnumerator() + { + return List0.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return List0.GetEnumerator(); + } + + public void Dispose() + { + if (Stream260 != null) + { + Stream260.Close(); + Stream260.Dispose(); + Stream260 = null; + } + Class3170.Nodes.Clear(); + List0.Clear(); + Nodes.Clear(); + Dictionary0.Clear(); + if (Class3180 != null && Class3180 != this) + { + Class3180.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzQbSongObject.cs b/GHNamespaceC/zzQbSongObject.cs index 5569357..99d5d90 100644 --- a/GHNamespaceC/zzQbSongObject.cs +++ b/GHNamespaceC/zzQbSongObject.cs @@ -4,94 +4,98 @@ namespace GHNamespaceC { - public class ZzQbSongObject - { - public byte[] Data; + public class ZzQbSongObject + { + public byte[] Data; - public int Int0; + public int Int0; - public string FileName; + public string FileName; - public string[] String1; + public string[] String1; - public ZzQbSongObject(string path) : this(KeyGenerator.GetFileName(path, -1).ToLower(), KeyGenerator.ReadBytes(path)) - { - } + public ZzQbSongObject(string path) : this(KeyGenerator.GetFileName(path, -1).ToLower(), + KeyGenerator.ReadBytes(path)) + { + } - public ZzQbSongObject(string newFileName, byte[] newData) - { - Data = newData; - var list = new List(Data); - FileName = newFileName; - String1 = new string[KeyGenerator.smethod_24(list.GetRange(0, 4).ToArray(), true)]; - Int0 = KeyGenerator.smethod_24(list.GetRange(4, 4).ToArray(), true); - string[] array = { - FileName + "_song", - FileName + "_guitar", - FileName + "_preview", - FileName + "_rhythm", - FileName + "_coop_song", - FileName + "_coop_guitar", - FileName + "_coop_rhythm" - }; - var list2 = new List(); - var array2 = array; - for (var i = 0; i < array2.Length; i++) - { - var text = array2[i]; - list2.Add(KeyGenerator.GetQbKey(text, true)); - } - var num = 8; - for (var j = 0; j < String1.Length; j++) - { - var num2 = KeyGenerator.smethod_24(list.GetRange(num, 4).ToArray(), true); - if (!list2.Contains(num2)) - { - throw new Exception(string.Concat("Dat File Corrupted: unperdictable CRC value (", num2, ") for song \"", FileName, "\"")); - } - String1[KeyGenerator.smethod_24(list.GetRange(num + 4, 4).ToArray(), true)] = array[list2.IndexOf(num2)]; - num += 20; - } - } + public ZzQbSongObject(string newFileName, byte[] newData) + { + Data = newData; + var list = new List(Data); + FileName = newFileName; + String1 = new string[KeyGenerator.smethod_24(list.GetRange(0, 4).ToArray(), true)]; + Int0 = KeyGenerator.smethod_24(list.GetRange(4, 4).ToArray(), true); + string[] array = + { + FileName + "_song", + FileName + "_guitar", + FileName + "_preview", + FileName + "_rhythm", + FileName + "_coop_song", + FileName + "_coop_guitar", + FileName + "_coop_rhythm" + }; + var list2 = new List(); + var array2 = array; + for (var i = 0; i < array2.Length; i++) + { + var text = array2[i]; + list2.Add(KeyGenerator.GetQbKey(text, true)); + } + var num = 8; + for (var j = 0; j < String1.Length; j++) + { + var num2 = KeyGenerator.smethod_24(list.GetRange(num, 4).ToArray(), true); + if (!list2.Contains(num2)) + { + throw new Exception(string.Concat("Dat File Corrupted: unperdictable CRC value (", num2, + ") for song \"", FileName, "\"")); + } + String1[KeyGenerator.smethod_24(list.GetRange(num + 4, 4).ToArray(), true)] = + array[list2.IndexOf(num2)]; + num += 20; + } + } - public void method_0(string string2) - { - for (var i = 0; i < String1.Length; i++) - { - String1[i] = String1[i].Replace(FileName, string2); - } - FileName = string2; - method_1(); - } + public void method_0(string string2) + { + for (var i = 0; i < String1.Length; i++) + { + String1[i] = String1[i].Replace(FileName, string2); + } + FileName = string2; + method_1(); + } - public ZzQbSongObject(int int1, string[] string2) - { - Int0 = int1; - String1 = string2; - FileName = String1[0].Remove(String1[0].IndexOf('_')); - method_1(); - } + public ZzQbSongObject(int int1, string[] string2) + { + Int0 = int1; + String1 = string2; + FileName = String1[0].Remove(String1[0].IndexOf('_')); + method_1(); + } - public void method_1() - { - var list = new List(); - list.AddRange(KeyGenerator.smethod_32(String1.Length, true)); - list.AddRange(KeyGenerator.smethod_32(Int0, true)); - for (var i = 0; i < String1.Length; i++) - { - list.AddRange(KeyGenerator.smethod_32(KeyGenerator.GetQbKey(String1[i], true), true)); - list.AddRange(KeyGenerator.smethod_32(i, true)); - for (var j = 0; j < 12; j++) - { - list.Add(0); - } - } - Data = list.ToArray(); - } + public void method_1() + { + var list = new List(); + list.AddRange(KeyGenerator.smethod_32(String1.Length, true)); + list.AddRange(KeyGenerator.smethod_32(Int0, true)); + for (var i = 0; i < String1.Length; i++) + { + list.AddRange(KeyGenerator.smethod_32(KeyGenerator.GetQbKey(String1[i], true), true)); + list.AddRange(KeyGenerator.smethod_32(i, true)); + for (var j = 0; j < 12; j++) + { + list.Add(0); + } + } + Data = list.ToArray(); + } - public void method_2(string string2) - { - KeyGenerator.WriteAllBytes(string2, Data); - } - } -} + public void method_2(string string2) + { + KeyGenerator.WriteAllBytes(string2, Data); + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzStreamClass325.cs b/GHNamespaceC/zzStreamClass325.cs index ad971d8..a33dc27 100644 --- a/GHNamespaceC/zzStreamClass325.cs +++ b/GHNamespaceC/zzStreamClass325.cs @@ -2,95 +2,95 @@ namespace GHNamespaceC { - public class ZzStreamClass325 : Class324 - { - public override void vmethod_0(Stream26 stream260) - { - Byte0 = stream260.ReadByte2(); - Int0 = new[] - { - stream260.ReadInt() - }; - var byte_ = Byte0; - switch (byte_) - { - case 1: - Object0 = stream260.ReadInt(); - return; - case 2: - Object0 = stream260.ReadFloat(); - return; - case 3: - break; - case 4: - Object0 = stream260.ReadUnicodeString(); - return; - default: - switch (byte_) - { - case 13: - Int0 = new[] - { - Int0[0], - stream260.ReadInt() - }; - return; - case 14: - case 16: - Object0 = stream260.ReadByte2(); - return; - case 15: - break; - case 17: - Object0 = stream260.ReadShort(); - break; - default: - return; - } - break; - } - } + public class ZzStreamClass325 : Class324 + { + public override void vmethod_0(Stream26 stream260) + { + Byte0 = stream260.ReadByte2(); + Int0 = new[] + { + stream260.ReadInt() + }; + var byte_ = Byte0; + switch (byte_) + { + case 1: + Object0 = stream260.ReadInt(); + return; + case 2: + Object0 = stream260.ReadFloat(); + return; + case 3: + break; + case 4: + Object0 = stream260.ReadUnicodeString(); + return; + default: + switch (byte_) + { + case 13: + Int0 = new[] + { + Int0[0], + stream260.ReadInt() + }; + return; + case 14: + case 16: + Object0 = stream260.ReadByte2(); + return; + case 15: + break; + case 17: + Object0 = stream260.ReadShort(); + break; + default: + return; + } + break; + } + } - public override void vmethod_1(Stream26 stream260) - { - stream260.WriteByte2(Byte0); - stream260.WriteInt(Int0[0]); - var byte_ = Byte0; - switch (byte_) - { - case 1: - stream260.WriteInt((int)Object0); - return; - case 2: - stream260.WriteFloat((float)Object0); - return; - case 3: - break; - case 4: - stream260.WriteString((string)Object0, false); - stream260.WriteByte2(0); - stream260.WriteByte2(0); - return; - default: - switch (byte_) - { - case 13: - stream260.WriteInt(Int0[1]); - return; - case 14: - case 16: - stream260.WriteByte2((byte)Object0); - return; - case 15: - break; - case 17: - stream260.WriteShort((short)Object0); - break; - default: - return; - } - break; - } - } - } -} + public override void vmethod_1(Stream26 stream260) + { + stream260.WriteByte2(Byte0); + stream260.WriteInt(Int0[0]); + var byte_ = Byte0; + switch (byte_) + { + case 1: + stream260.WriteInt((int) Object0); + return; + case 2: + stream260.WriteFloat((float) Object0); + return; + case 3: + break; + case 4: + stream260.WriteString((string) Object0, false); + stream260.WriteByte2(0); + stream260.WriteByte2(0); + return; + default: + switch (byte_) + { + case 13: + stream260.WriteInt(Int0[1]); + return; + case 14: + case 16: + stream260.WriteByte2((byte) Object0); + return; + case 15: + break; + case 17: + stream260.WriteShort((short) Object0); + break; + default: + return; + } + break; + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzTextureClass.cs b/GHNamespaceC/zzTextureClass.cs index 3e5c1ce..3c16f69 100644 --- a/GHNamespaceC/zzTextureClass.cs +++ b/GHNamespaceC/zzTextureClass.cs @@ -6,759 +6,800 @@ namespace GHNamespaceC { - public class ZzTextureClass - { + public class ZzTextureClass + { //Nonsense names for now to help me remember which is which - public struct Tom - { - public float Float0; - - public float Float1; - - public float Float2; - - public float Float3; - - public static Tom smethod_0(float float4, Tom struct870) - { - return smethod_1(struct870, float4); - } - - public static Tom smethod_1(Tom struct870, float float4) - { - Tom result; - result.Float0 = float4 * struct870.Float0; - result.Float1 = float4 * struct870.Float1; - result.Float2 = float4 * struct870.Float2; - result.Float3 = float4 * struct870.Float3; - return result; - } - - public static Tom smethod_2(Tom struct870, Tom struct871) - { - Tom result; - result.Float0 = struct870.Float0 + struct871.Float0; - result.Float1 = struct870.Float1 + struct871.Float1; - result.Float2 = struct870.Float2 + struct871.Float2; - result.Float3 = struct870.Float3 + struct871.Float3; - return result; - } - } - - public struct Jerry - { - public ushort Ushort0; - - public ushort Ushort1; - - public uint Uint0; - - public static Jerry smethod_0(BinaryReader binaryReader0) - { - Jerry result; - result.Ushort0 = binaryReader0.ReadUInt16(); - result.Ushort1 = binaryReader0.ReadUInt16(); - result.Uint0 = binaryReader0.ReadUInt32(); - return result; - } - - public void method_0(BinaryWriter binaryWriter0) - { - binaryWriter0.Write(Ushort0); - binaryWriter0.Write(Ushort1); - binaryWriter0.Write(Uint0); - } - } - - private static readonly byte[] Byte0 = new byte[32]; - - private static readonly byte[] Byte1 = new byte[64]; - - private static byte[,] _byte2 = new byte[256, 2]; - - private static byte[,] _byte3 = new byte[256, 2]; - - private static readonly byte[] Byte4 = new byte[272]; - - private static readonly byte[] Byte5 = new byte[272]; - - private static bool _bool0; - - private static void smethod_0() - { - for (var i = 0; i < 32; i++) - { - Byte0[i] = (byte)(i << 3 | i >> 2); - } - for (var j = 0; j < 64; j++) - { - Byte1[j] = (byte)(j << 2 | j >> 4); - } - for (var k = 0; k < 272; k++) - { - var int_ = smethod_11(k - 8, 0, 255); - Byte4[k] = Byte0[smethod_2(int_, 31)]; - Byte5[k] = Byte1[smethod_2(int_, 63)]; - } - smethod_1(ref _byte2, Byte0, 32); - smethod_1(ref _byte3, Byte1, 64); - _bool0 = true; - } - - private static void smethod_1(ref byte[,] byte6, byte[] byte7, int int0) - { - for (var i = 0; i < 256; i++) - { - var num = 256; - for (var j = 0; j < int0; j++) - { - for (var k = 0; k < int0; k++) - { - int num2 = byte7[j]; - int num3 = byte7[k]; - var num4 = Math.Abs(num3 + smethod_2(num2 - num3, 85) - i); - if (num4 < num) - { - byte6[i, 0] = (byte)k; - byte6[i, 1] = (byte)j; - num = num4; - } - } - } - } - } - - private static int smethod_2(int int0, int int1) - { - var num = int0 * int1 + 128; - return num + (num >> 8) >> 8; - } - - private static Color smethod_3(ushort ushort0) - { - var num = (ushort0 & 63488) >> 11; - var num2 = (ushort0 & 2016) >> 5; - var num3 = ushort0 & 31; - return Color.FromArgb(0, Byte0[num], Byte1[num2], Byte0[num3]); - } - - private static ushort smethod_4(Color color0) - { - return (ushort)((smethod_2(color0.R, 31) << 11) + (smethod_2(color0.G, 63) << 5) + smethod_2(color0.B, 31)); - } - - private static Color smethod_5(Color color0, Color color1, int int0) - { - return Color.FromArgb(color0.R + smethod_2(color1.R - color0.R, int0), color0.G + smethod_2(color1.G - color0.G, int0), color0.B + smethod_2(color1.B - color0.B, int0)); - } - - private static void smethod_6(ref Color[] color0, ushort ushort0, ushort ushort1) - { - color0[0] = smethod_3(ushort0); - color0[1] = smethod_3(ushort1); - color0[2] = smethod_5(color0[0], color0[1], 85); - color0[3] = smethod_5(color0[0], color0[1], 170); - } - - private static Color[] smethod_7(Color[] color0) - { - var array = new Color[color0.Length]; - var array2 = new int[3, 4]; - var array3 = new int[3, 4]; - for (var i = 0; i < 4; i++) - { - var num = i * 4; - var b = Byte4[color0[num].B + (3 * array3[0, 1] + 5 * array3[0, 0] >> 4) + 8]; - array2[0, 0] = color0[num].B - b; - var b2 = Byte5[color0[num].G + (3 * array3[1, 1] + 5 * array3[1, 0] >> 4) + 8]; - array2[1, 0] = color0[num].G - b2; - var b3 = Byte4[color0[num].R + (3 * array3[2, 1] + 5 * array3[2, 0] >> 4) + 8]; - array2[2, 0] = color0[num].R - b3; - array[num] = Color.FromArgb(b3, b2, b); - b = Byte4[color0[num + 1].B + (7 * array2[0, 0] + 3 * array3[0, 2] + 5 * array3[0, 1] + array3[0, 0] >> 4) + 8]; - array2[0, 1] = color0[num + 1].B - b; - b2 = Byte5[color0[num + 1].G + (7 * array2[1, 0] + 3 * array3[1, 2] + 5 * array3[1, 1] + array3[1, 0] >> 4) + 8]; - array2[1, 1] = color0[num + 1].G - b2; - b3 = Byte4[color0[num + 1].R + (7 * array2[2, 0] + 3 * array3[2, 2] + 5 * array3[2, 1] + array3[2, 0] >> 4) + 8]; - array2[2, 1] = color0[num + 1].R - b3; - array[num + 1] = Color.FromArgb(b3, b2, b); - b = Byte4[color0[num + 2].B + (7 * array2[0, 1] + 3 * array3[0, 3] + 5 * array3[0, 2] + array3[0, 1] >> 4) + 8]; - array2[0, 2] = color0[num + 2].B - b; - b2 = Byte5[color0[num + 2].G + (7 * array2[1, 1] + 3 * array3[1, 3] + 5 * array3[1, 2] + array3[1, 1] >> 4) + 8]; - array2[1, 2] = color0[num + 2].G - b2; - b3 = Byte4[color0[num + 2].R + (7 * array2[2, 1] + 3 * array3[2, 3] + 5 * array3[2, 2] + array3[2, 1] >> 4) + 8]; - array2[2, 2] = color0[num + 2].R - b3; - array[num + 2] = Color.FromArgb(b3, b2, b); - b = Byte4[color0[num + 3].B + (7 * array2[0, 2] + 5 * array3[0, 3] + array3[0, 2] >> 4) + 8]; - array2[0, 3] = color0[num + 3].B - b; - b2 = Byte5[color0[num + 3].G + (7 * array2[1, 2] + 5 * array3[1, 3] + array3[1, 2] >> 4) + 8]; - array2[1, 3] = color0[num + 3].G - b2; - b3 = Byte4[color0[num + 3].R + (7 * array2[2, 2] + 5 * array3[2, 3] + array3[2, 2] >> 4) + 8]; - array2[2, 3] = color0[num + 3].R - b3; - array[num + 3] = Color.FromArgb(b3, b2, b); - var array4 = array2; - array2 = array3; - array3 = array4; - } - return array; - } - - private static uint smethod_8(Color[] color0, Color[] color1, bool bool1) - { - var num = 0u; - var num2 = color1[0].R - color1[1].R; - var num3 = color1[0].G - color1[1].G; - var num4 = color1[0].B - color1[1].B; - var array = new int[16]; - for (var i = 0; i < 16; i++) - { - array[i] = color0[i].R * num2 + color0[i].G * num3 + color0[i].B * num4; - } - var array2 = new int[4]; - for (var j = 0; j < 4; j++) - { - array2[j] = color1[j].R * num2 + color1[j].G * num3 + color1[j].B * num4; - } - var num5 = array2[1] + array2[3] >> 1; - var num6 = array2[3] + array2[2] >> 1; - var num7 = array2[2] + array2[0] >> 1; - if (!bool1) - { - for (var k = 15; k >= 0; k--) - { - num <<= 2; - var num8 = array[k]; - if (num8 < num6) - { - num |= ((num8 < num5) ? 1u : 3u); - } - else - { - num |= ((num8 < num7) ? 2u : 0u); - } - } - } - else - { - var array3 = new int[4]; - var array4 = new int[4]; - num5 <<= 4; - num6 <<= 4; - num7 <<= 4; - for (var l = 0; l < 4; l++) - { - var num9 = (array[l * 4] << 4) + (3 * array4[1] + 5 * array4[0]); - int num10; - if (num9 < num6) - { - num10 = ((num9 < num5) ? 1 : 3); - } - else - { - num10 = ((num9 < num7) ? 2 : 0); - } - array3[0] = array[l * 4] - array2[num10]; - var num11 = num10; - num9 = (array[l * 4 + 1] << 4) + (7 * array3[0] + 3 * array4[2] + 5 * array4[1] + array4[0]); - if (num9 < num6) - { - num10 = ((num9 < num5) ? 1 : 3); - } - else - { - num10 = ((num9 < num7) ? 2 : 0); - } - array3[1] = array[l * 4 + 1] - array2[num10]; - num11 |= num10 << 2; - num9 = (array[l * 4 + 2] << 4) + (7 * array3[1] + 3 * array4[3] + 5 * array4[2] + array4[1]); - if (num9 < num6) - { - num10 = ((num9 < num5) ? 1 : 3); - } - else - { - num10 = ((num9 < num7) ? 2 : 0); - } - array3[2] = array[l * 4 + 2] - array2[num10]; - num11 |= num10 << 4; - num9 = (array[l * 4 + 3] << 4) + (7 * array3[2] + 5 * array4[3] + array4[2]); - if (num9 < num6) - { - num10 = ((num9 < num5) ? 1 : 3); - } - else - { - num10 = ((num9 < num7) ? 2 : 0); - } - array3[3] = array[l * 4 + 3] - array2[num10]; - num11 |= num10 << 6; - var array5 = array3; - array3 = array4; - array4 = array5; - num |= (uint)num11 << l * 8; - } - } - return num; - } - - private static void smethod_9(Color[] block, out ushort max16, out ushort min16) - { - var num = 4; - var array = new int[3]; - var array2 = new int[3]; - var array3 = new int[3]; - for (var i = 0; i < 3; i++) - { - int num4; - int num3; - var num2 = num3 = (num4 = (block[0].ToArgb() >> i * 8 & 255)); - for (var j = 1; j < 16; j++) - { - var b = (byte)(block[j].ToArgb() >> i * 8 & 255); - num3 += b; - num2 = Math.Min(num2, b); - num4 = Math.Max(num4, b); - } - array[i] = num3 + 8 >> 4; - array2[i] = num2; - array3[i] = num4; - } - var array4 = new int[6]; - for (var k = 0; k < 6; k++) - { - array4[k] = 0; - } - for (var l = 0; l < 16; l++) - { - var num5 = block[l].R - array[2]; - var num6 = block[l].G - array[1]; - var num7 = block[l].B - array[0]; - array4[0] += num5 * num5; - array4[1] += num5 * num6; - array4[2] += num5 * num7; - array4[3] += num6 * num6; - array4[4] += num6 * num7; - array4[5] += num7 * num7; - } - var array5 = new float[6]; - for (var m = 0; m < 6; m++) - { - array5[m] = array4[m] / 255f; - } - float num8 = array3[2] - array2[2]; - float num9 = array3[1] - array2[1]; - float num10 = array3[0] - array2[0]; - for (var n = 0; n < num; n++) - { - var num11 = num8 * array5[0] + num9 * array5[1] + num10 * array5[2]; - var num12 = num8 * array5[1] + num9 * array5[3] + num10 * array5[4]; - var num13 = num8 * array5[2] + num9 * array5[4] + num10 * array5[5]; - num8 = num11; - num9 = num12; - num10 = num13; - } - var num14 = Math.Max(Math.Max(Math.Abs(num8), Math.Abs(num9)), Math.Abs(num10)); - int num15; - int num16; - int num17; - if (num14 < 4f) - { - num15 = 148; - num16 = 300; - num17 = 58; - } - else - { - num14 = 512f / num14; - num15 = Convert.ToInt32(num8 * num14); - num16 = Convert.ToInt32(num9 * num14); - num17 = Convert.ToInt32(num10 * num14); - } - var num18 = 2147483647; - var num19 = -2147483647; - var color = default(Color); - var color2 = default(Color); - for (var num20 = 0; num20 < 16; num20++) - { - var num21 = block[num20].R * num15 + block[num20].G * num16 + block[num20].B * num17; - if (num21 < num18) - { - num18 = num21; - color = block[num20]; - } - if (num21 > num19) - { - num19 = num21; - color2 = block[num20]; - } - } - max16 = smethod_4(color2); - min16 = smethod_4(color); - } - - private static bool smethod_10(Color[] color0, ref ushort ushort0, ref ushort ushort1, uint uint0) - { - int[] array = { - 3, - 0, - 2, - 1 - }; - int[] array2 = { - 589824, - 2304, - 262402, - 66562 - }; - var num = 0; - var num2 = uint0; - var arg300 = 0; - var num3 = 0; - var num4 = 0; - var num5 = arg300; - var arg380 = 0; - var num6 = 0; - var num7 = 0; - var num8 = arg380; - var i = 0; - while (i < 16) - { - var num9 = (int)(num2 & 3u); - var num10 = array[num9]; - int r = color0[i].R; - int g = color0[i].G; - int b = color0[i].B; - num += array2[num9]; - num5 += num10 * r; - num4 += num10 * g; - num3 += num10 * b; - num8 += r; - num7 += g; - num6 += b; - i++; - num2 >>= 2; - } - num8 = 3 * num8 - num5; - num7 = 3 * num7 - num4; - num6 = 3 * num6 - num3; - var num11 = num >> 16; - var num12 = num >> 8 & 255; - var num13 = num & 255; - if (num12 != 0 && num11 != 0) - { - if (num11 * num12 != num13 * num13) - { - var num14 = 0.3647059f / (num11 * num12 - num13 * num13); - var num15 = num14 * 63f / 31f; - var num16 = ushort1; - var num17 = ushort0; - ushort0 = (ushort)(smethod_11(Convert.ToInt32((num5 * num12 - num8 * num13) * num14 + 0.5f), 0, 31) << 11); - ushort0 = (ushort)(ushort0 | smethod_11(Convert.ToInt32((num4 * num12 - num7 * num13) * num15 + 0.5f), 0, 63) << 5); - ushort0 = (ushort)(ushort0 | smethod_11(Convert.ToInt32((num3 * num12 - num6 * num13) * num14 + 0.5f), 0, 31)); - ushort1 = (ushort)(smethod_11(Convert.ToInt32((num8 * num11 - num5 * num13) * num14 + 0.5f), 0, 31) << 11); - ushort1 = (ushort)(ushort1 | smethod_11(Convert.ToInt32((num7 * num11 - num4 * num13) * num15 + 0.5f), 0, 63) << 5); - ushort1 = (ushort)(ushort1 | smethod_11(Convert.ToInt32((num6 * num11 - num3 * num13) * num14 + 0.5f), 0, 31)); - return num16 != ushort1 || num17 != ushort0; - } - } - return false; - } - - private static int smethod_11(int int0, int int1, int int2) - { - if (int0 >= int2) - { - return int2; - } - if (int0 > int1) - { - return int0; - } - return int1; - } - - private static Jerry smethod_12(Color[] color0, bool bool1) - { - var array = new Color[16]; - var color = new Color[4]; - uint num2; - var num = num2 = (uint)color0[0].ToArgb(); - for (var i = 1; i < 16; i++) - { - num2 = Math.Min(num2, (uint)color0[i].ToArgb()); - num = Math.Max(num, (uint)color0[i].ToArgb()); - } - ushort num3; - ushort num4; - uint num5; - if (num2 != num) - { - if (bool1) - { - array = smethod_7(color0); - } - smethod_9(bool1 ? array : color0, out num3, out num4); - if (num3 != num4) - { - smethod_6(ref color, num3, num4); - num5 = smethod_8(color0, color, bool1); - } - else - { - num5 = 0u; - } - if (smethod_10(bool1 ? array : color0, ref num3, ref num4, num5)) - { - if (num3 != num4) - { - smethod_6(ref color, num3, num4); - num5 = smethod_8(color0, color, bool1); - } - else - { - num5 = 0u; - } - } - } - else - { - int r = color0[0].R; - int g = color0[0].G; - int b = color0[0].B; - num5 = 2863311530u; - num3 = Convert.ToUInt16(_byte2[r, 0] << 11 | _byte3[g, 0] << 5 | _byte2[b, 0]); - num4 = Convert.ToUInt16(_byte2[r, 1] << 11 | _byte3[g, 1] << 5 | _byte2[b, 1]); - } - if (num3 < num4) - { - var num6 = num3; - num3 = num4; - num4 = num6; - num5 ^= 1431655765u; - } - Jerry result; - result.Ushort0 = num3; - result.Ushort1 = num4; - result.Uint0 = num5; - return result; - } - - private static int smethod_13(float float0, int int0) - { - var num = Convert.ToInt32(float0 + 0.5f); - if (num < 0) - { - num = 0; - } - else if (num > int0) - { - num = int0; - } - return num; - } - - private static byte[] smethod_14(Color[] color0) - { - var array = new byte[8]; - for (var i = 0; i < 8; i++) - { - var float_ = color0[2 * i].A * 0.05882353f; - var float2 = color0[2 * i + 1].A * 0.05882353f; - var num = smethod_13(float_, 15); - var num2 = smethod_13(float2, 15); - array[i] = (byte)(num | num2 << 4); - } - return array; - } - - private static byte[] smethod_15(Color[] color0) - { - var array = new byte[8]; - var num = 0; - byte b2; - var b = b2 = color0[0].A; - for (var i = 1; i < 16; i++) - { - b2 = Math.Min(b2, color0[i].A); - b = Math.Max(b, color0[i].A); - } - array[num++] = b; - array[num++] = b2; - var num2 = b - b2; - var num3 = b2 * 7 - (num2 >> 1); - var num4 = num2 * 4; - var num5 = num2 * 2; - var num6 = 0; - var num7 = 0; - for (var j = 0; j < 16; j++) - { - var num8 = color0[j].A * 7 - num3; - var num9 = num4 - num8 >> 31; - var num10 = num9 & 4; - num8 -= (num4 & num9); - num9 = num5 - num8 >> 31; - num10 += (num9 & 2); - num8 -= (num5 & num9); - num9 = num2 - num8 >> 31; - num10 += (num9 & 1); - num10 = (-num10 & 7); - num10 ^= Convert.ToInt32(2 > num10); - num7 |= num10 << num6; - if ((num6 += 3) >= 8) - { - array[num++] = (byte)num7; - num7 >>= 8; - num6 -= 8; - } - } - return array; - } - - public static void smethod_16(Bitmap bitmap0, BinaryWriter binaryWriter0, ImgPixelFormat imgpixelFormat0, bool bool1) - { - var height = bitmap0.Height; - var width = bitmap0.Width; - if (!_bool0) - { - smethod_0(); - } - for (var i = 0; i < height; i += 4) - { - for (var j = 0; j < width; j += 4) - { - var array = new Color[16]; - var num = 0; - for (var k = 0; k < 4; k++) - { - for (var l = 0; l < 4; l++) - { - if (j + l < width && i + k < height) - { - array[num++] = bitmap0.GetPixel(j + l, i + k); - } - } - } - if (imgpixelFormat0 == ImgPixelFormat.Dxt3) - { - binaryWriter0.Write(smethod_14(array)); - } - else if (imgpixelFormat0 == ImgPixelFormat.Dxt5) - { - binaryWriter0.Write(smethod_15(array)); - } - smethod_12(array, bool1).method_0(binaryWriter0); - } - } - } - - public static void smethod_17(BinaryReader binaryReader0, ImageRelatedClass class2190, ImgPixelFormat imgpixelFormat0) - { - var array = new Tom[16]; - var num = class2190.method_1(); - var num2 = class2190.method_0(); - for (var i = 0; i < num; i += 4) - { - for (var j = 0; j < num2; j += 4) - { - if (imgpixelFormat0 == ImgPixelFormat.Dxt3) - { - var array2 = new ushort[4]; - for (var k = 0; k < 4; k++) - { - for (var l = 0; l < 4; l++) - { - if (l == 0) - { - array2[k] = binaryReader0.ReadUInt16(); - } - array[k * 4 + l].Float0 = (array2[k] & 15) / 15f; - var expr74Cp0 = array2; - var expr74Cp1 = k; - expr74Cp0[expr74Cp1] = (ushort)(expr74Cp0[expr74Cp1] >> 4); - } - } - } - else if (imgpixelFormat0 == ImgPixelFormat.Dxt5) - { - var array3 = binaryReader0.ReadBytes(2); - var array4 = binaryReader0.ReadBytes(6); - var array5 = new float[8]; - array5[0] = array3[0] / 255f; - array5[1] = array3[1] / 255f; - var num3 = 4; - if (array3[0] > array3[1]) - { - num3 = 6; - } - else - { - array5[6] = 0f; - array5[7] = 1f; - } - var num4 = 1f / (num3 + 1); - for (var m = 0; m < num3; m++) - { - var num5 = (num3 - m) * num4; - var num6 = (m + 1) * num4; - array5[m + 2] = num5 * array3[0] + num6 * array3[1]; - } - for (var n = 0; n < 16; n++) - { + public struct Tom + { + public float Float0; + + public float Float1; + + public float Float2; + + public float Float3; + + public static Tom smethod_0(float float4, Tom struct870) + { + return smethod_1(struct870, float4); + } + + public static Tom smethod_1(Tom struct870, float float4) + { + Tom result; + result.Float0 = float4 * struct870.Float0; + result.Float1 = float4 * struct870.Float1; + result.Float2 = float4 * struct870.Float2; + result.Float3 = float4 * struct870.Float3; + return result; + } + + public static Tom smethod_2(Tom struct870, Tom struct871) + { + Tom result; + result.Float0 = struct870.Float0 + struct871.Float0; + result.Float1 = struct870.Float1 + struct871.Float1; + result.Float2 = struct870.Float2 + struct871.Float2; + result.Float3 = struct870.Float3 + struct871.Float3; + return result; + } + } + + public struct Jerry + { + public ushort Ushort0; + + public ushort Ushort1; + + public uint Uint0; + + public static Jerry smethod_0(BinaryReader binaryReader0) + { + Jerry result; + result.Ushort0 = binaryReader0.ReadUInt16(); + result.Ushort1 = binaryReader0.ReadUInt16(); + result.Uint0 = binaryReader0.ReadUInt32(); + return result; + } + + public void method_0(BinaryWriter binaryWriter0) + { + binaryWriter0.Write(Ushort0); + binaryWriter0.Write(Ushort1); + binaryWriter0.Write(Uint0); + } + } + + private static readonly byte[] Byte0 = new byte[32]; + + private static readonly byte[] Byte1 = new byte[64]; + + private static byte[,] _byte2 = new byte[256, 2]; + + private static byte[,] _byte3 = new byte[256, 2]; + + private static readonly byte[] Byte4 = new byte[272]; + + private static readonly byte[] Byte5 = new byte[272]; + + private static bool _bool0; + + private static void smethod_0() + { + for (var i = 0; i < 32; i++) + { + Byte0[i] = (byte) (i << 3 | i >> 2); + } + for (var j = 0; j < 64; j++) + { + Byte1[j] = (byte) (j << 2 | j >> 4); + } + for (var k = 0; k < 272; k++) + { + var int_ = smethod_11(k - 8, 0, 255); + Byte4[k] = Byte0[smethod_2(int_, 31)]; + Byte5[k] = Byte1[smethod_2(int_, 63)]; + } + smethod_1(ref _byte2, Byte0, 32); + smethod_1(ref _byte3, Byte1, 64); + _bool0 = true; + } + + private static void smethod_1(ref byte[,] byte6, byte[] byte7, int int0) + { + for (var i = 0; i < 256; i++) + { + var num = 256; + for (var j = 0; j < int0; j++) + { + for (var k = 0; k < int0; k++) + { + int num2 = byte7[j]; + int num3 = byte7[k]; + var num4 = Math.Abs(num3 + smethod_2(num2 - num3, 85) - i); + if (num4 < num) + { + byte6[i, 0] = (byte) k; + byte6[i, 1] = (byte) j; + num = num4; + } + } + } + } + } + + private static int smethod_2(int int0, int int1) + { + var num = int0 * int1 + 128; + return num + (num >> 8) >> 8; + } + + private static Color smethod_3(ushort ushort0) + { + var num = (ushort0 & 63488) >> 11; + var num2 = (ushort0 & 2016) >> 5; + var num3 = ushort0 & 31; + return Color.FromArgb(0, Byte0[num], Byte1[num2], Byte0[num3]); + } + + private static ushort smethod_4(Color color0) + { + return (ushort) ((smethod_2(color0.R, 31) << 11) + (smethod_2(color0.G, 63) << 5) + + smethod_2(color0.B, 31)); + } + + private static Color smethod_5(Color color0, Color color1, int int0) + { + return Color.FromArgb(color0.R + smethod_2(color1.R - color0.R, int0), + color0.G + smethod_2(color1.G - color0.G, int0), color0.B + smethod_2(color1.B - color0.B, int0)); + } + + private static void smethod_6(ref Color[] color0, ushort ushort0, ushort ushort1) + { + color0[0] = smethod_3(ushort0); + color0[1] = smethod_3(ushort1); + color0[2] = smethod_5(color0[0], color0[1], 85); + color0[3] = smethod_5(color0[0], color0[1], 170); + } + + private static Color[] smethod_7(Color[] color0) + { + var array = new Color[color0.Length]; + var array2 = new int[3, 4]; + var array3 = new int[3, 4]; + for (var i = 0; i < 4; i++) + { + var num = i * 4; + var b = Byte4[color0[num].B + (3 * array3[0, 1] + 5 * array3[0, 0] >> 4) + 8]; + array2[0, 0] = color0[num].B - b; + var b2 = Byte5[color0[num].G + (3 * array3[1, 1] + 5 * array3[1, 0] >> 4) + 8]; + array2[1, 0] = color0[num].G - b2; + var b3 = Byte4[color0[num].R + (3 * array3[2, 1] + 5 * array3[2, 0] >> 4) + 8]; + array2[2, 0] = color0[num].R - b3; + array[num] = Color.FromArgb(b3, b2, b); + b = + Byte4[ + color0[num + 1].B + + (7 * array2[0, 0] + 3 * array3[0, 2] + 5 * array3[0, 1] + array3[0, 0] >> 4) + 8]; + array2[0, 1] = color0[num + 1].B - b; + b2 = + Byte5[ + color0[num + 1].G + + (7 * array2[1, 0] + 3 * array3[1, 2] + 5 * array3[1, 1] + array3[1, 0] >> 4) + 8]; + array2[1, 1] = color0[num + 1].G - b2; + b3 = + Byte4[ + color0[num + 1].R + + (7 * array2[2, 0] + 3 * array3[2, 2] + 5 * array3[2, 1] + array3[2, 0] >> 4) + 8]; + array2[2, 1] = color0[num + 1].R - b3; + array[num + 1] = Color.FromArgb(b3, b2, b); + b = + Byte4[ + color0[num + 2].B + + (7 * array2[0, 1] + 3 * array3[0, 3] + 5 * array3[0, 2] + array3[0, 1] >> 4) + 8]; + array2[0, 2] = color0[num + 2].B - b; + b2 = + Byte5[ + color0[num + 2].G + + (7 * array2[1, 1] + 3 * array3[1, 3] + 5 * array3[1, 2] + array3[1, 1] >> 4) + 8]; + array2[1, 2] = color0[num + 2].G - b2; + b3 = + Byte4[ + color0[num + 2].R + + (7 * array2[2, 1] + 3 * array3[2, 3] + 5 * array3[2, 2] + array3[2, 1] >> 4) + 8]; + array2[2, 2] = color0[num + 2].R - b3; + array[num + 2] = Color.FromArgb(b3, b2, b); + b = Byte4[color0[num + 3].B + (7 * array2[0, 2] + 5 * array3[0, 3] + array3[0, 2] >> 4) + 8]; + array2[0, 3] = color0[num + 3].B - b; + b2 = Byte5[color0[num + 3].G + (7 * array2[1, 2] + 5 * array3[1, 3] + array3[1, 2] >> 4) + 8]; + array2[1, 3] = color0[num + 3].G - b2; + b3 = Byte4[color0[num + 3].R + (7 * array2[2, 2] + 5 * array3[2, 3] + array3[2, 2] >> 4) + 8]; + array2[2, 3] = color0[num + 3].R - b3; + array[num + 3] = Color.FromArgb(b3, b2, b); + var array4 = array2; + array2 = array3; + array3 = array4; + } + return array; + } + + private static uint smethod_8(Color[] color0, Color[] color1, bool bool1) + { + var num = 0u; + var num2 = color1[0].R - color1[1].R; + var num3 = color1[0].G - color1[1].G; + var num4 = color1[0].B - color1[1].B; + var array = new int[16]; + for (var i = 0; i < 16; i++) + { + array[i] = color0[i].R * num2 + color0[i].G * num3 + color0[i].B * num4; + } + var array2 = new int[4]; + for (var j = 0; j < 4; j++) + { + array2[j] = color1[j].R * num2 + color1[j].G * num3 + color1[j].B * num4; + } + var num5 = array2[1] + array2[3] >> 1; + var num6 = array2[3] + array2[2] >> 1; + var num7 = array2[2] + array2[0] >> 1; + if (!bool1) + { + for (var k = 15; k >= 0; k--) + { + num <<= 2; + var num8 = array[k]; + if (num8 < num6) + { + num |= ((num8 < num5) ? 1u : 3u); + } + else + { + num |= ((num8 < num7) ? 2u : 0u); + } + } + } + else + { + var array3 = new int[4]; + var array4 = new int[4]; + num5 <<= 4; + num6 <<= 4; + num7 <<= 4; + for (var l = 0; l < 4; l++) + { + var num9 = (array[l * 4] << 4) + (3 * array4[1] + 5 * array4[0]); + int num10; + if (num9 < num6) + { + num10 = ((num9 < num5) ? 1 : 3); + } + else + { + num10 = ((num9 < num7) ? 2 : 0); + } + array3[0] = array[l * 4] - array2[num10]; + var num11 = num10; + num9 = (array[l * 4 + 1] << 4) + (7 * array3[0] + 3 * array4[2] + 5 * array4[1] + array4[0]); + if (num9 < num6) + { + num10 = ((num9 < num5) ? 1 : 3); + } + else + { + num10 = ((num9 < num7) ? 2 : 0); + } + array3[1] = array[l * 4 + 1] - array2[num10]; + num11 |= num10 << 2; + num9 = (array[l * 4 + 2] << 4) + (7 * array3[1] + 3 * array4[3] + 5 * array4[2] + array4[1]); + if (num9 < num6) + { + num10 = ((num9 < num5) ? 1 : 3); + } + else + { + num10 = ((num9 < num7) ? 2 : 0); + } + array3[2] = array[l * 4 + 2] - array2[num10]; + num11 |= num10 << 4; + num9 = (array[l * 4 + 3] << 4) + (7 * array3[2] + 5 * array4[3] + array4[2]); + if (num9 < num6) + { + num10 = ((num9 < num5) ? 1 : 3); + } + else + { + num10 = ((num9 < num7) ? 2 : 0); + } + array3[3] = array[l * 4 + 3] - array2[num10]; + num11 |= num10 << 6; + var array5 = array3; + array3 = array4; + array4 = array5; + num |= (uint) num11 << l * 8; + } + } + return num; + } + + private static void smethod_9(Color[] block, out ushort max16, out ushort min16) + { + var num = 4; + var array = new int[3]; + var array2 = new int[3]; + var array3 = new int[3]; + for (var i = 0; i < 3; i++) + { + int num4; + int num3; + var num2 = num3 = (num4 = (block[0].ToArgb() >> i * 8 & 255)); + for (var j = 1; j < 16; j++) + { + var b = (byte) (block[j].ToArgb() >> i * 8 & 255); + num3 += b; + num2 = Math.Min(num2, b); + num4 = Math.Max(num4, b); + } + array[i] = num3 + 8 >> 4; + array2[i] = num2; + array3[i] = num4; + } + var array4 = new int[6]; + for (var k = 0; k < 6; k++) + { + array4[k] = 0; + } + for (var l = 0; l < 16; l++) + { + var num5 = block[l].R - array[2]; + var num6 = block[l].G - array[1]; + var num7 = block[l].B - array[0]; + array4[0] += num5 * num5; + array4[1] += num5 * num6; + array4[2] += num5 * num7; + array4[3] += num6 * num6; + array4[4] += num6 * num7; + array4[5] += num7 * num7; + } + var array5 = new float[6]; + for (var m = 0; m < 6; m++) + { + array5[m] = array4[m] / 255f; + } + float num8 = array3[2] - array2[2]; + float num9 = array3[1] - array2[1]; + float num10 = array3[0] - array2[0]; + for (var n = 0; n < num; n++) + { + var num11 = num8 * array5[0] + num9 * array5[1] + num10 * array5[2]; + var num12 = num8 * array5[1] + num9 * array5[3] + num10 * array5[4]; + var num13 = num8 * array5[2] + num9 * array5[4] + num10 * array5[5]; + num8 = num11; + num9 = num12; + num10 = num13; + } + var num14 = Math.Max(Math.Max(Math.Abs(num8), Math.Abs(num9)), Math.Abs(num10)); + int num15; + int num16; + int num17; + if (num14 < 4f) + { + num15 = 148; + num16 = 300; + num17 = 58; + } + else + { + num14 = 512f / num14; + num15 = Convert.ToInt32(num8 * num14); + num16 = Convert.ToInt32(num9 * num14); + num17 = Convert.ToInt32(num10 * num14); + } + var num18 = 2147483647; + var num19 = -2147483647; + var color = default(Color); + var color2 = default(Color); + for (var num20 = 0; num20 < 16; num20++) + { + var num21 = block[num20].R * num15 + block[num20].G * num16 + block[num20].B * num17; + if (num21 < num18) + { + num18 = num21; + color = block[num20]; + } + if (num21 > num19) + { + num19 = num21; + color2 = block[num20]; + } + } + max16 = smethod_4(color2); + min16 = smethod_4(color); + } + + private static bool smethod_10(Color[] color0, ref ushort ushort0, ref ushort ushort1, uint uint0) + { + int[] array = + { + 3, + 0, + 2, + 1 + }; + int[] array2 = + { + 589824, + 2304, + 262402, + 66562 + }; + var num = 0; + var num2 = uint0; + var arg300 = 0; + var num3 = 0; + var num4 = 0; + var num5 = arg300; + var arg380 = 0; + var num6 = 0; + var num7 = 0; + var num8 = arg380; + var i = 0; + while (i < 16) + { + var num9 = (int) (num2 & 3u); + var num10 = array[num9]; + int r = color0[i].R; + int g = color0[i].G; + int b = color0[i].B; + num += array2[num9]; + num5 += num10 * r; + num4 += num10 * g; + num3 += num10 * b; + num8 += r; + num7 += g; + num6 += b; + i++; + num2 >>= 2; + } + num8 = 3 * num8 - num5; + num7 = 3 * num7 - num4; + num6 = 3 * num6 - num3; + var num11 = num >> 16; + var num12 = num >> 8 & 255; + var num13 = num & 255; + if (num12 != 0 && num11 != 0) + { + if (num11 * num12 != num13 * num13) + { + var num14 = 0.3647059f / (num11 * num12 - num13 * num13); + var num15 = num14 * 63f / 31f; + var num16 = ushort1; + var num17 = ushort0; + ushort0 = + (ushort) (smethod_11(Convert.ToInt32((num5 * num12 - num8 * num13) * num14 + 0.5f), 0, + 31) << 11); + ushort0 = + (ushort) (ushort0 | smethod_11(Convert.ToInt32((num4 * num12 - num7 * num13) * num15 + 0.5f), 0, + 63) << 5); + ushort0 = + (ushort) (ushort0 | smethod_11(Convert.ToInt32((num3 * num12 - num6 * num13) * num14 + 0.5f), 0, + 31)); + ushort1 = + (ushort) (smethod_11(Convert.ToInt32((num8 * num11 - num5 * num13) * num14 + 0.5f), 0, + 31) << 11); + ushort1 = + (ushort) (ushort1 | smethod_11(Convert.ToInt32((num7 * num11 - num4 * num13) * num15 + 0.5f), 0, + 63) << 5); + ushort1 = + (ushort) (ushort1 | smethod_11(Convert.ToInt32((num6 * num11 - num3 * num13) * num14 + 0.5f), 0, + 31)); + return num16 != ushort1 || num17 != ushort0; + } + } + return false; + } + + private static int smethod_11(int int0, int int1, int int2) + { + if (int0 >= int2) + { + return int2; + } + if (int0 > int1) + { + return int0; + } + return int1; + } + + private static Jerry smethod_12(Color[] color0, bool bool1) + { + var array = new Color[16]; + var color = new Color[4]; + uint num2; + var num = num2 = (uint) color0[0].ToArgb(); + for (var i = 1; i < 16; i++) + { + num2 = Math.Min(num2, (uint) color0[i].ToArgb()); + num = Math.Max(num, (uint) color0[i].ToArgb()); + } + ushort num3; + ushort num4; + uint num5; + if (num2 != num) + { + if (bool1) + { + array = smethod_7(color0); + } + smethod_9(bool1 ? array : color0, out num3, out num4); + if (num3 != num4) + { + smethod_6(ref color, num3, num4); + num5 = smethod_8(color0, color, bool1); + } + else + { + num5 = 0u; + } + if (smethod_10(bool1 ? array : color0, ref num3, ref num4, num5)) + { + if (num3 != num4) + { + smethod_6(ref color, num3, num4); + num5 = smethod_8(color0, color, bool1); + } + else + { + num5 = 0u; + } + } + } + else + { + int r = color0[0].R; + int g = color0[0].G; + int b = color0[0].B; + num5 = 2863311530u; + num3 = Convert.ToUInt16(_byte2[r, 0] << 11 | _byte3[g, 0] << 5 | _byte2[b, 0]); + num4 = Convert.ToUInt16(_byte2[r, 1] << 11 | _byte3[g, 1] << 5 | _byte2[b, 1]); + } + if (num3 < num4) + { + var num6 = num3; + num3 = num4; + num4 = num6; + num5 ^= 1431655765u; + } + Jerry result; + result.Ushort0 = num3; + result.Ushort1 = num4; + result.Uint0 = num5; + return result; + } + + private static int smethod_13(float float0, int int0) + { + var num = Convert.ToInt32(float0 + 0.5f); + if (num < 0) + { + num = 0; + } + else if (num > int0) + { + num = int0; + } + return num; + } + + private static byte[] smethod_14(Color[] color0) + { + var array = new byte[8]; + for (var i = 0; i < 8; i++) + { + var float_ = color0[2 * i].A * 0.05882353f; + var float2 = color0[2 * i + 1].A * 0.05882353f; + var num = smethod_13(float_, 15); + var num2 = smethod_13(float2, 15); + array[i] = (byte) (num | num2 << 4); + } + return array; + } + + private static byte[] smethod_15(Color[] color0) + { + var array = new byte[8]; + var num = 0; + byte b2; + var b = b2 = color0[0].A; + for (var i = 1; i < 16; i++) + { + b2 = Math.Min(b2, color0[i].A); + b = Math.Max(b, color0[i].A); + } + array[num++] = b; + array[num++] = b2; + var num2 = b - b2; + var num3 = b2 * 7 - (num2 >> 1); + var num4 = num2 * 4; + var num5 = num2 * 2; + var num6 = 0; + var num7 = 0; + for (var j = 0; j < 16; j++) + { + var num8 = color0[j].A * 7 - num3; + var num9 = num4 - num8 >> 31; + var num10 = num9 & 4; + num8 -= (num4 & num9); + num9 = num5 - num8 >> 31; + num10 += (num9 & 2); + num8 -= (num5 & num9); + num9 = num2 - num8 >> 31; + num10 += (num9 & 1); + num10 = (-num10 & 7); + num10 ^= Convert.ToInt32(2 > num10); + num7 |= num10 << num6; + if ((num6 += 3) >= 8) + { + array[num++] = (byte) num7; + num7 >>= 8; + num6 -= 8; + } + } + return array; + } + + public static void smethod_16(Bitmap bitmap0, BinaryWriter binaryWriter0, ImgPixelFormat imgpixelFormat0, + bool bool1) + { + var height = bitmap0.Height; + var width = bitmap0.Width; + if (!_bool0) + { + smethod_0(); + } + for (var i = 0; i < height; i += 4) + { + for (var j = 0; j < width; j += 4) + { + var array = new Color[16]; + var num = 0; + for (var k = 0; k < 4; k++) + { + for (var l = 0; l < 4; l++) + { + if (j + l < width && i + k < height) + { + array[num++] = bitmap0.GetPixel(j + l, i + k); + } + } + } + if (imgpixelFormat0 == ImgPixelFormat.Dxt3) + { + binaryWriter0.Write(smethod_14(array)); + } + else if (imgpixelFormat0 == ImgPixelFormat.Dxt5) + { + binaryWriter0.Write(smethod_15(array)); + } + smethod_12(array, bool1).method_0(binaryWriter0); + } + } + } + + public static void smethod_17(BinaryReader binaryReader0, ImageRelatedClass class2190, + ImgPixelFormat imgpixelFormat0) + { + var array = new Tom[16]; + var num = class2190.method_1(); + var num2 = class2190.method_0(); + for (var i = 0; i < num; i += 4) + { + for (var j = 0; j < num2; j += 4) + { + if (imgpixelFormat0 == ImgPixelFormat.Dxt3) + { + var array2 = new ushort[4]; + for (var k = 0; k < 4; k++) + { + for (var l = 0; l < 4; l++) + { + if (l == 0) + { + array2[k] = binaryReader0.ReadUInt16(); + } + array[k * 4 + l].Float0 = (array2[k] & 15) / 15f; + var expr74Cp0 = array2; + var expr74Cp1 = k; + expr74Cp0[expr74Cp1] = (ushort) (expr74Cp0[expr74Cp1] >> 4); + } + } + } + else if (imgpixelFormat0 == ImgPixelFormat.Dxt5) + { + var array3 = binaryReader0.ReadBytes(2); + var array4 = binaryReader0.ReadBytes(6); + var array5 = new float[8]; + array5[0] = array3[0] / 255f; + array5[1] = array3[1] / 255f; + var num3 = 4; + if (array3[0] > array3[1]) + { + num3 = 6; + } + else + { + array5[6] = 0f; + array5[7] = 1f; + } + var num4 = 1f / (num3 + 1); + for (var m = 0; m < num3; m++) + { + var num5 = (num3 - m) * num4; + var num6 = (m + 1) * num4; + array5[m + 2] = num5 * array3[0] + num6 * array3[1]; + } + for (var n = 0; n < 16; n++) + { //Console.WriteLine("Broken"); var div = (n * 3) / 8; - var rem = (n * 3) % 8; - var b = (byte)((array4[div] >> rem) & 7); - if (rem > 5) - { - var b2 = (byte)((array4[div + 1] << (8 - rem)) & 0xFF); - b |= (byte)(b2 & 7); - } - array[n].Float0 = array5[b]; - } - } - var @struct = Jerry.smethod_0(binaryReader0); - var array6 = new Tom[4]; - array6[0].Float1 = ((@struct.Ushort0 & 63488) >> 11) / 31f; - array6[0].Float2 = ((@struct.Ushort0 & 2016) >> 5) / 63f; - array6[0].Float3 = (@struct.Ushort0 & 31) / 31f; - array6[1].Float1 = ((@struct.Ushort1 & 63488) >> 11) / 31f; - array6[1].Float2 = ((@struct.Ushort1 & 2016) >> 5) / 63f; - array6[1].Float3 = (@struct.Ushort1 & 31) / 31f; - if (imgpixelFormat0 == ImgPixelFormat.Dxt1 && @struct.Ushort0 <= @struct.Ushort1) - { - array6[2] = Tom.smethod_1(Tom.smethod_2(array6[0], array6[1]), 0.5f); - array6[3] = default(Tom); - } - else - { - array6[2] = Tom.smethod_1(Tom.smethod_2(Tom.smethod_0(2f, array6[0]), array6[1]), 0.333333343f); - array6[3] = Tom.smethod_1(Tom.smethod_2(array6[0], Tom.smethod_0(2f, array6[1])), 0.333333343f); - } - for (var num9 = 0; num9 < 4; num9++) - { - for (var num10 = 0; num10 < 4; num10++) - { - if (j + num10 < num2 && i + num9 < num) - { - var point = new Point(j + num10, i + num9); - var num11 = @struct.Uint0 & 3u; - if (imgpixelFormat0 == ImgPixelFormat.Dxt1) - { - class2190.method_6(point, Color.FromArgb((byte)(array6[(int)((UIntPtr)num11)].Float0 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float1 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float2 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float3 * 255f))); - } - else - { - class2190.method_6(point, Color.FromArgb((byte)(array[num9 * 4 + num10].Float0 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float1 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float2 * 255f), (byte)(array6[(int)((UIntPtr)num11)].Float3 * 255f))); - } - } - @struct.Uint0 >>= 2; - } - } - } - } - } - - - - } -} + var rem = (n * 3) % 8; + var b = (byte) ((array4[div] >> rem) & 7); + if (rem > 5) + { + var b2 = (byte) ((array4[div + 1] << (8 - rem)) & 0xFF); + b |= (byte) (b2 & 7); + } + array[n].Float0 = array5[b]; + } + } + var @struct = Jerry.smethod_0(binaryReader0); + var array6 = new Tom[4]; + array6[0].Float1 = ((@struct.Ushort0 & 63488) >> 11) / 31f; + array6[0].Float2 = ((@struct.Ushort0 & 2016) >> 5) / 63f; + array6[0].Float3 = (@struct.Ushort0 & 31) / 31f; + array6[1].Float1 = ((@struct.Ushort1 & 63488) >> 11) / 31f; + array6[1].Float2 = ((@struct.Ushort1 & 2016) >> 5) / 63f; + array6[1].Float3 = (@struct.Ushort1 & 31) / 31f; + if (imgpixelFormat0 == ImgPixelFormat.Dxt1 && @struct.Ushort0 <= @struct.Ushort1) + { + array6[2] = Tom.smethod_1(Tom.smethod_2(array6[0], array6[1]), 0.5f); + array6[3] = default(Tom); + } + else + { + array6[2] = Tom.smethod_1(Tom.smethod_2(Tom.smethod_0(2f, array6[0]), array6[1]), 0.333333343f); + array6[3] = Tom.smethod_1(Tom.smethod_2(array6[0], Tom.smethod_0(2f, array6[1])), 0.333333343f); + } + for (var num9 = 0; num9 < 4; num9++) + { + for (var num10 = 0; num10 < 4; num10++) + { + if (j + num10 < num2 && i + num9 < num) + { + var point = new Point(j + num10, i + num9); + var num11 = @struct.Uint0 & 3u; + if (imgpixelFormat0 == ImgPixelFormat.Dxt1) + { + class2190.method_6(point, + Color.FromArgb((byte) (array6[(int) ((UIntPtr) num11)].Float0 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float1 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float2 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float3 * 255f))); + } + else + { + class2190.method_6(point, + Color.FromArgb((byte) (array[num9 * 4 + num10].Float0 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float1 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float2 * 255f), + (byte) (array6[(int) ((UIntPtr) num11)].Float3 * 255f))); + } + } + @struct.Uint0 >>= 2; + } + } + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzUnkNode288.cs b/GHNamespaceC/zzUnkNode288.cs index 09035b3..91e7a93 100644 --- a/GHNamespaceC/zzUnkNode288.cs +++ b/GHNamespaceC/zzUnkNode288.cs @@ -4,84 +4,84 @@ namespace GHNamespaceC { - public abstract class ZzUnkNode288 : AbsTreeNode11 - { - public abstract byte vmethod_15(); + public abstract class ZzUnkNode288 : AbsTreeNode11 + { + public abstract byte vmethod_15(); - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num == 0) - { - return; - } - var array = new int[num]; - if (num > 1) - { - stream260.Position = stream260.ReadInt(); - for (var i = 0; i < num; i++) - { - array[i] = stream260.ReadInt(); - } - } - else - { - array[0] = stream260.ReadInt(); - } - var array2 = array; - for (var j = 0; j < array2.Length; j++) - { - var int_ = array2[j]; - var @class = vmethod_12(stream260.ReadIntAt(int_, true)); - Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num == 0) + { + return; + } + var array = new int[num]; + if (num > 1) + { + stream260.Position = stream260.ReadInt(); + for (var i = 0; i < num; i++) + { + array[i] = stream260.ReadInt(); + } + } + else + { + array[0] = stream260.ReadInt(); + } + var array2 = array; + for (var j = 0; j < array2.Length; j++) + { + var int_ = array2[j]; + var @class = vmethod_12(stream260.ReadIntAt(int_, true)); + Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = 1; - array[2] = vmethod_15(); - stream260.WriteByteArray(array, false); - stream260.WriteInt(Nodes.Count); - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - stream260.WriteInt((int)stream260.Position + 4); - } - var int_ = (int)stream260.Position; - var list = new List(Nodes.Count); - stream260.WriteNBytes(0, 4 * Nodes.Count); - foreach (AbstractTreeNode1 @class in Nodes) - { - list.Add((int)stream260.Position); - @class.vmethod_14(stream260); - } - var num = (int)stream260.Position; - stream260.WriteEnumerableIntsAt(int_, list); - stream260.Position = num; - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = 1; + array[2] = vmethod_15(); + stream260.WriteByteArray(array, false); + stream260.WriteInt(Nodes.Count); + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + stream260.WriteInt((int) stream260.Position + 4); + } + var int_ = (int) stream260.Position; + var list = new List(Nodes.Count); + stream260.WriteNBytes(0, 4 * Nodes.Count); + foreach (AbstractTreeNode1 @class in Nodes) + { + list.Add((int) stream260.Position); + @class.vmethod_14(stream260); + } + var num = (int) stream260.Position; + stream260.WriteEnumerableIntsAt(int_, list); + stream260.Position = num; + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - int0 += 4; - } - int0 += 4 * Nodes.Count; - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int0); - } - } - } -} + public override void vmethod_2(ref int int0) + { + int0 += 8; + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + int0 += 4; + } + int0 += 4 * Nodes.Count; + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int0); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzUnkNode289.cs b/GHNamespaceC/zzUnkNode289.cs index 28967d9..559cd18 100644 --- a/GHNamespaceC/zzUnkNode289.cs +++ b/GHNamespaceC/zzUnkNode289.cs @@ -2,7 +2,7 @@ namespace GHNamespaceC { - public abstract class ZzUnkNode289 : ZzUnkNode288 where T : AbstractTreeNode1 - { - } -} + public abstract class ZzUnkNode289 : ZzUnkNode288 where T : AbstractTreeNode1 + { + } +} \ No newline at end of file diff --git a/GHNamespaceC/zzUnkNode300.cs b/GHNamespaceC/zzUnkNode300.cs index c7965d7..da35b7d 100644 --- a/GHNamespaceC/zzUnkNode300.cs +++ b/GHNamespaceC/zzUnkNode300.cs @@ -4,71 +4,73 @@ namespace GHNamespaceC { - public abstract class ZzUnkNode300 : ZzUnkNode294 - { - public abstract byte vmethod_15(); + public abstract class ZzUnkNode300 : ZzUnkNode294 + { + public abstract byte vmethod_15(); - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - var num = stream260.ReadInt(); - var num2 = stream260.ReadInt(); - if (num != 0) - { - var @class = vmethod_12(stream260.ReadIntAt(num, true)); - Nodes.Add(@class); - @class.method_4(stream260); - } - if (num2 != 0) - { - var class2 = (Parent is StructureHeaderNode) ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) : vmethod_12(stream260.ReadIntAt(num2, true)); - method_1().Nodes.Add(class2); - class2.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + var num = stream260.ReadInt(); + var num2 = stream260.ReadInt(); + if (num != 0) + { + var @class = vmethod_12(stream260.ReadIntAt(num, true)); + Nodes.Add(@class); + @class.method_4(stream260); + } + if (num2 != 0) + { + var class2 = (Parent is StructureHeaderNode) + ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) + : vmethod_12(stream260.ReadIntAt(num2, true)); + method_1().Nodes.Add(class2); + class2.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - if (vmethod_8()) - { - var array = new byte[4]; - array[1] = 1; - array[2] = (byte)(vmethod_15() - 128); - stream260.WriteByteArray(array, false); - } - else - { - var array2 = new byte[4]; - array2[1] = vmethod_15(); - stream260.WriteByteArray(array2, false); - } - stream260.WriteInt(Int0); - stream260.WriteInt((Nodes.Count != 0) ? ((int)stream260.Position + 8) : 0); - var int_ = (int)stream260.Position; - stream260.WriteInt(0); - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_14(stream260); - } - var num = (int)stream260.Position; - if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) - { - stream260.WriteIntAt(int_, num); - } - else - { - stream260.WriteIntAt(int_, 0); - } - stream260.Position = num; - } + public override void vmethod_14(Stream26 stream260) + { + if (vmethod_8()) + { + var array = new byte[4]; + array[1] = 1; + array[2] = (byte) (vmethod_15() - 128); + stream260.WriteByteArray(array, false); + } + else + { + var array2 = new byte[4]; + array2[1] = vmethod_15(); + stream260.WriteByteArray(array2, false); + } + stream260.WriteInt(Int0); + stream260.WriteInt((Nodes.Count != 0) ? ((int) stream260.Position + 8) : 0); + var int_ = (int) stream260.Position; + stream260.WriteInt(0); + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_14(stream260); + } + var num = (int) stream260.Position; + if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) + { + stream260.WriteIntAt(int_, num); + } + else + { + stream260.WriteIntAt(int_, 0); + } + stream260.Position = num; + } - public override void vmethod_2(ref int int1) - { - int1 += 16; - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int1); - } - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 16; + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int1); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class20.cs b/GHNamespaceD/Class20.cs index aa2fa24..dc6fe65 100644 --- a/GHNamespaceD/Class20.cs +++ b/GHNamespaceD/Class20.cs @@ -3,21 +3,21 @@ namespace GHNamespaceD { - [CompilerGenerated] - public class Class20 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 36)] - public struct Struct13 - { - } + [CompilerGenerated] + public class Class20 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 36)] + public struct Struct13 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 28)] - public struct Struct14 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 28)] + public struct Struct14 + { + } - public static Struct13 Struct130; + public static Struct13 Struct130; - public static Struct14 Struct140; - } -} + public static Struct14 Struct140; + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class23.cs b/GHNamespaceD/Class23.cs index 24be4b2..56ae18f 100644 --- a/GHNamespaceD/Class23.cs +++ b/GHNamespaceD/Class23.cs @@ -3,20 +3,21 @@ namespace GHNamespaceD { - public abstract class Class23 - { - public static Class23[] Class230 = { - new Class24(), - new Class26(), - new Class25() - }; + public abstract class Class23 + { + public static Class23[] Class230 = + { + new Class24(), + new Class26(), + new Class25() + }; - public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); + public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); - public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); + public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); - public abstract void vmethod_2(object object0); + public abstract void vmethod_2(object object0); - public abstract int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int0, int int1); - } -} + public abstract int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int0, int int1); + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class24.cs b/GHNamespaceD/Class24.cs index 4431eef..8a317da 100644 --- a/GHNamespaceD/Class24.cs +++ b/GHNamespaceD/Class24.cs @@ -5,275 +5,276 @@ namespace GHNamespaceD { - public class Class24 : Class23 - { - private static int[][][] _int0 = new int[2][][]; + public class Class24 : Class23 + { + private static int[][][] _int0 = new int[2][][]; - public override object vmethod_0(OggClass5 class490, OggClass3 class380) - { - var num = 0; - var @class = new Class40(); - @class.Int0 = class380.method_6(24); - @class.Int1 = class380.method_6(24); - @class.Int2 = class380.method_6(24) + 1; - @class.Int3 = class380.method_6(6) + 1; - @class.Int4 = class380.method_6(8); - for (var i = 0; i < @class.Int3; i++) - { - var num2 = class380.method_6(3); - if (class380.method_6(1) != 0) - { - num2 |= class380.method_6(5) << 3; - } - @class.Int5[i] = num2; - num += smethod_3(num2); - } - for (var j = 0; j < num; j++) - { - @class.Int6[j] = class380.method_6(8); - } - if (@class.Int4 >= class490.Int19) - { - vmethod_2(@class); - return null; - } - for (var k = 0; k < num; k++) - { - if (@class.Int6[k] >= class490.Int19) - { - vmethod_2(@class); - return null; - } - } - return @class; - } + public override object vmethod_0(OggClass5 class490, OggClass3 class380) + { + var num = 0; + var @class = new Class40(); + @class.Int0 = class380.method_6(24); + @class.Int1 = class380.method_6(24); + @class.Int2 = class380.method_6(24) + 1; + @class.Int3 = class380.method_6(6) + 1; + @class.Int4 = class380.method_6(8); + for (var i = 0; i < @class.Int3; i++) + { + var num2 = class380.method_6(3); + if (class380.method_6(1) != 0) + { + num2 |= class380.method_6(5) << 3; + } + @class.Int5[i] = num2; + num += smethod_3(num2); + } + for (var j = 0; j < num; j++) + { + @class.Int6[j] = class380.method_6(8); + } + if (@class.Int4 >= class490.Int19) + { + vmethod_2(@class); + return null; + } + for (var k = 0; k < num; k++) + { + if (@class.Int6[k] >= class490.Int19) + { + vmethod_2(@class); + return null; + } + } + return @class; + } - public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) - { - var @class = (Class40)object0; - var class2 = new Class39(); - var num = 0; - var num2 = 0; - class2.Class400 = @class; - class2.Int0 = class270.Int3; - class2.Int1 = @class.Int3; - class2.Class210 = class660.OggClass4; - class2.Class211 = class660.OggClass4[@class.Int4]; - var num3 = class2.Class211.Int0; - class2.Int3 = new int[class2.Int1][]; - for (var i = 0; i < class2.Int1; i++) - { - var num4 = smethod_2(@class.Int5[i]); - if (num4 != 0) - { - if (num4 > num2) - { - num2 = num4; - } - class2.Int3[i] = new int[num4]; - for (var j = 0; j < num4; j++) - { - if ((@class.Int5[i] & 1 << j) != 0) - { - class2.Int3[i][j] = @class.Int6[num++]; - } - } - } - } - class2.Int4 = (int)Math.Round(Math.Pow(class2.Int1, num3)); - class2.Int2 = num2; - class2.Int5 = new int[class2.Int4][]; - for (var k = 0; k < class2.Int4; k++) - { - var num5 = k; - var num6 = class2.Int4 / class2.Int1; - class2.Int5[k] = new int[num3]; - for (var l = 0; l < num3; l++) - { - var num7 = num5 / num6; - num5 -= num7 * num6; - num6 /= class2.Int1; - class2.Int5[k][l] = num7; - } - } - return class2; - } + public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) + { + var @class = (Class40) object0; + var class2 = new Class39(); + var num = 0; + var num2 = 0; + class2.Class400 = @class; + class2.Int0 = class270.Int3; + class2.Int1 = @class.Int3; + class2.Class210 = class660.OggClass4; + class2.Class211 = class660.OggClass4[@class.Int4]; + var num3 = class2.Class211.Int0; + class2.Int3 = new int[class2.Int1][]; + for (var i = 0; i < class2.Int1; i++) + { + var num4 = smethod_2(@class.Int5[i]); + if (num4 != 0) + { + if (num4 > num2) + { + num2 = num4; + } + class2.Int3[i] = new int[num4]; + for (var j = 0; j < num4; j++) + { + if ((@class.Int5[i] & 1 << j) != 0) + { + class2.Int3[i][j] = @class.Int6[num++]; + } + } + } + } + class2.Int4 = (int) Math.Round(Math.Pow(class2.Int1, num3)); + class2.Int2 = num2; + class2.Int5 = new int[class2.Int4][]; + for (var k = 0; k < class2.Int4; k++) + { + var num5 = k; + var num6 = class2.Int4 / class2.Int1; + class2.Int5[k] = new int[num3]; + for (var l = 0; l < num3; l++) + { + var num7 = num5 / num6; + num5 -= num7 * num6; + num6 /= class2.Int1; + class2.Int5[k][l] = num7; + } + } + return class2; + } - public override void vmethod_2(object object0) - { - } + public override void vmethod_2(object object0) + { + } - [MethodImpl(MethodImplOptions.Synchronized)] - public static int smethod_0(OggClass6 class710, object object0, float[][] float0, int int1, int int2) - { - var @class = (Class39)object0; - var class40 = @class.Class400; - var int3 = class40.Int2; - var num = @class.Class211.Int0; - var num2 = class40.Int1 - class40.Int0; - var num3 = num2 / int3; - var num4 = (num3 + num - 1) / num; - if (_int0.Length < int1) - { - _int0 = new int[int1][][]; - for (var i = 0; i < int1; i++) - { - _int0[i] = new int[num4][]; - } - } - else - { - for (var i = 0; i < int1; i++) - { - if (_int0[i] == null || _int0[i].Length < num4) - { - _int0[i] = new int[num4][]; - } - } - } - for (var j = 0; j < @class.Int2; j++) - { - var k = 0; - var num5 = 0; - while (k < num3) - { - if (j == 0) - { - for (var i = 0; i < int1; i++) - { - var num6 = @class.Class211.method_4(class710.OggClass3); - if (num6 == -1) - { - return 0; - } - _int0[i][num5] = @class.Int5[num6]; - if (_int0[i][num5] == null) - { - return 0; - } - } - } - var num7 = 0; - while (num7 < num && k < num3) - { - for (var i = 0; i < int1; i++) - { - var int4 = class40.Int0 + k * int3; - if ((class40.Int5[_int0[i][num5][num7]] & 1 << j) != 0) - { - var class2 = @class.Class210[@class.Int3[_int0[i][num5][num7]][j]]; - if (class2 != null) - { - if (int2 == 0) - { - if (class2.method_0(float0[i], int4, class710.OggClass3, int3) == -1) - { - return 0; - } - } - else if (int2 == 1 && class2.method_1(float0[i], int4, class710.OggClass3, int3) == -1) - { - return 0; - } - } - } - } - num7++; - k++; - } - num5++; - } - } - return 0; - } + [MethodImpl(MethodImplOptions.Synchronized)] + public static int smethod_0(OggClass6 class710, object object0, float[][] float0, int int1, int int2) + { + var @class = (Class39) object0; + var class40 = @class.Class400; + var int3 = class40.Int2; + var num = @class.Class211.Int0; + var num2 = class40.Int1 - class40.Int0; + var num3 = num2 / int3; + var num4 = (num3 + num - 1) / num; + if (_int0.Length < int1) + { + _int0 = new int[int1][][]; + for (var i = 0; i < int1; i++) + { + _int0[i] = new int[num4][]; + } + } + else + { + for (var i = 0; i < int1; i++) + { + if (_int0[i] == null || _int0[i].Length < num4) + { + _int0[i] = new int[num4][]; + } + } + } + for (var j = 0; j < @class.Int2; j++) + { + var k = 0; + var num5 = 0; + while (k < num3) + { + if (j == 0) + { + for (var i = 0; i < int1; i++) + { + var num6 = @class.Class211.method_4(class710.OggClass3); + if (num6 == -1) + { + return 0; + } + _int0[i][num5] = @class.Int5[num6]; + if (_int0[i][num5] == null) + { + return 0; + } + } + } + var num7 = 0; + while (num7 < num && k < num3) + { + for (var i = 0; i < int1; i++) + { + var int4 = class40.Int0 + k * int3; + if ((class40.Int5[_int0[i][num5][num7]] & 1 << j) != 0) + { + var class2 = @class.Class210[@class.Int3[_int0[i][num5][num7]][j]]; + if (class2 != null) + { + if (int2 == 0) + { + if (class2.method_0(float0[i], int4, class710.OggClass3, int3) == -1) + { + return 0; + } + } + else if (int2 == 1 && class2.method_1(float0[i], int4, class710.OggClass3, int3) == + -1) + { + return 0; + } + } + } + } + num7++; + k++; + } + num5++; + } + } + return 0; + } - public static int smethod_1(OggClass6 class710, object object0, float[][] float0, int int1) - { - var @class = (Class39)object0; - var class40 = @class.Class400; - var int2 = class40.Int2; - var num = @class.Class211.Int0; - var num2 = class40.Int1 - class40.Int0; - var num3 = num2 / int2; - var num4 = (num3 + num - 1) / num; - var array = new int[num4][]; - for (var i = 0; i < @class.Int2; i++) - { - var j = 0; - var num5 = 0; - while (j < num3) - { - if (i == 0) - { - var num6 = @class.Class211.method_4(class710.OggClass3); - if (num6 == -1) - { - return 0; - } - array[num5] = @class.Int5[num6]; - if (array[num5] == null) - { - return 0; - } - } - var num7 = 0; - while (num7 < num && j < num3) - { - var int3 = class40.Int0 + j * int2; - if ((class40.Int5[array[num5][num7]] & 1 << i) != 0) - { - var class2 = @class.Class210[@class.Int3[array[num5][num7]][i]]; - if (class2 != null && class2.method_3(float0, int3, int1, class710.OggClass3, int2) == -1) - { - return 0; - } - } - num7++; - j++; - } - num5++; - } - } - return 0; - } + public static int smethod_1(OggClass6 class710, object object0, float[][] float0, int int1) + { + var @class = (Class39) object0; + var class40 = @class.Class400; + var int2 = class40.Int2; + var num = @class.Class211.Int0; + var num2 = class40.Int1 - class40.Int0; + var num3 = num2 / int2; + var num4 = (num3 + num - 1) / num; + var array = new int[num4][]; + for (var i = 0; i < @class.Int2; i++) + { + var j = 0; + var num5 = 0; + while (j < num3) + { + if (i == 0) + { + var num6 = @class.Class211.method_4(class710.OggClass3); + if (num6 == -1) + { + return 0; + } + array[num5] = @class.Int5[num6]; + if (array[num5] == null) + { + return 0; + } + } + var num7 = 0; + while (num7 < num && j < num3) + { + var int3 = class40.Int0 + j * int2; + if ((class40.Int5[array[num5][num7]] & 1 << i) != 0) + { + var class2 = @class.Class210[@class.Int3[array[num5][num7]][i]]; + if (class2 != null && class2.method_3(float0, int3, int1, class710.OggClass3, int2) == -1) + { + return 0; + } + } + num7++; + j++; + } + num5++; + } + } + return 0; + } - public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) - { - var num = 0; - for (var i = 0; i < int2; i++) - { - if (int1[i] != 0) - { - float0[num++] = float0[i]; - } - } - if (num != 0) - { - return smethod_0(class710, object0, float0, num, 0); - } - return 0; - } + public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) + { + var num = 0; + for (var i = 0; i < int2; i++) + { + if (int1[i] != 0) + { + float0[num++] = float0[i]; + } + } + if (num != 0) + { + return smethod_0(class710, object0, float0, num, 0); + } + return 0; + } - public static int smethod_2(int int1) - { - var num = 0; - while (int1 != 0) - { - num++; - int1 = (int)((uint)int1 >> 1); - } - return num; - } + public static int smethod_2(int int1) + { + var num = 0; + while (int1 != 0) + { + num++; + int1 = (int) ((uint) int1 >> 1); + } + return num; + } - public static int smethod_3(int int1) - { - var num = 0; - while (int1 != 0) - { - num += (int1 & 1); - int1 = (int)((uint)int1 >> 1); - } - return num; - } - } -} + public static int smethod_3(int int1) + { + var num = 0; + while (int1 != 0) + { + num += (int1 & 1); + int1 = (int) ((uint) int1 >> 1); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class25.cs b/GHNamespaceD/Class25.cs index 054ab3c..7e15978 100644 --- a/GHNamespaceD/Class25.cs +++ b/GHNamespaceD/Class25.cs @@ -2,20 +2,20 @@ namespace GHNamespaceD { - public class Class25 : Class24 - { - public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) - { - var num = 0; - while (num < int2 && int1[num] == 0) - { - num++; - } - if (num == int2) - { - return 0; - } - return smethod_1(class710, object0, float0, int2); - } - } -} + public class Class25 : Class24 + { + public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) + { + var num = 0; + while (num < int2 && int1[num] == 0) + { + num++; + } + if (num == int2) + { + return 0; + } + return smethod_1(class710, object0, float0, int2); + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class26.cs b/GHNamespaceD/Class26.cs index 3894ce7..dcd4510 100644 --- a/GHNamespaceD/Class26.cs +++ b/GHNamespaceD/Class26.cs @@ -2,23 +2,23 @@ namespace GHNamespaceD { - public class Class26 : Class24 - { - public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) - { - var num = 0; - for (var i = 0; i < int2; i++) - { - if (int1[i] != 0) - { - float0[num++] = float0[i]; - } - } - if (num != 0) - { - return smethod_0(class710, object0, float0, num, 1); - } - return 0; - } - } -} + public class Class26 : Class24 + { + public override int vmethod_3(OggClass6 class710, object object0, float[][] float0, int[] int1, int int2) + { + var num = 0; + for (var i = 0; i < int2; i++) + { + if (int1[i] != 0) + { + float0[num++] = float0[i]; + } + } + if (num != 0) + { + return smethod_0(class710, object0, float0, num, 1); + } + return 0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class27.cs b/GHNamespaceD/Class27.cs index 6e422fb..104289c 100644 --- a/GHNamespaceD/Class27.cs +++ b/GHNamespaceD/Class27.cs @@ -1,13 +1,13 @@ namespace GHNamespaceD { - public class Class27 - { - public int Int0; + public class Class27 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; - } -} + public int Int3; + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class28.cs b/GHNamespaceD/Class28.cs index e4acc3b..f2f302b 100644 --- a/GHNamespaceD/Class28.cs +++ b/GHNamespaceD/Class28.cs @@ -3,21 +3,22 @@ namespace GHNamespaceD { - public abstract class Class28 - { - public static Class28[] Class280 = { - new Class30(), - new Class29() - }; + public abstract class Class28 + { + public static Class28[] Class280 = + { + new Class30(), + new Class29() + }; - public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); + public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); - public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); + public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); - public abstract void vmethod_2(object object0); + public abstract void vmethod_2(object object0); - public abstract object vmethod_3(OggClass6 class710, object object0, object object1); + public abstract object vmethod_3(OggClass6 class710, object object0, object object1); - public abstract int vmethod_4(OggClass6 class710, object object0, object object1, float[] float0); - } -} + public abstract int vmethod_4(OggClass6 class710, object object0, object object1, float[] float0); + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class29.cs b/GHNamespaceD/Class29.cs index 19b1844..8e2bff1 100644 --- a/GHNamespaceD/Class29.cs +++ b/GHNamespaceD/Class29.cs @@ -4,621 +4,623 @@ namespace GHNamespaceD { - public class Class29 : Class28 - { - private static int _int0 = 140; + public class Class29 : Class28 + { + private static int _int0 = 140; - private static readonly int Int1 = 63; + private static readonly int Int1 = 63; - private static readonly float[] Float0 = { - 1.06498632E-07f, - 1.1341951E-07f, - 1.20790148E-07f, - 1.28639783E-07f, - 1.369995E-07f, - 1.459025E-07f, - 1.55384086E-07f, - 1.65481808E-07f, - 1.76235744E-07f, - 1.87688556E-07f, - 1.998856E-07f, - 2.128753E-07f, - 2.26709133E-07f, - 2.41441967E-07f, - 2.57132228E-07f, - 2.73842119E-07f, - 2.91637917E-07f, - 3.10590224E-07f, - 3.307741E-07f, - 3.52269666E-07f, - 3.75162131E-07f, - 3.995423E-07f, - 4.255068E-07f, - 4.53158634E-07f, - 4.82607447E-07f, - 5.1397E-07f, - 5.47370632E-07f, - 5.829419E-07f, - 6.208247E-07f, - 6.611694E-07f, - 7.041359E-07f, - 7.49894639E-07f, - 7.98627E-07f, - 8.505263E-07f, - 9.057983E-07f, - 9.646621E-07f, - 1.02735135E-06f, - 1.0941144E-06f, - 1.16521608E-06f, - 1.24093845E-06f, - 1.32158164E-06f, - 1.40746545E-06f, - 1.49893049E-06f, - 1.59633942E-06f, - 1.70007854E-06f, - 1.81055918E-06f, - 1.92821949E-06f, - 2.053526E-06f, - 2.18697573E-06f, - 2.3290977E-06f, - 2.48045581E-06f, - 2.64164964E-06f, - 2.813319E-06f, - 2.9961443E-06f, - 3.19085052E-06f, - 3.39821E-06f, - 3.619045E-06f, - 3.85423073E-06f, - 4.10470057E-06f, - 4.371447E-06f, - 4.6555283E-06f, - 4.958071E-06f, - 5.280274E-06f, - 5.623416E-06f, - 5.988857E-06f, - 6.37804669E-06f, - 6.79252844E-06f, - 7.23394533E-06f, - 7.704048E-06f, - 8.2047E-06f, - 8.737888E-06f, - 9.305725E-06f, - 9.910464E-06f, - 1.05545014E-05f, - 1.12403923E-05f, - 1.19708557E-05f, - 1.27487892E-05f, - 1.3577278E-05f, - 1.44596061E-05f, - 1.53992714E-05f, - 1.64000048E-05f, - 1.74657689E-05f, - 1.86007928E-05f, - 1.98095768E-05f, - 2.10969138E-05f, - 2.24679115E-05f, - 2.39280016E-05f, - 2.54829774E-05f, - 2.71390054E-05f, - 2.890265E-05f, - 3.078091E-05f, - 3.27812268E-05f, - 3.49115326E-05f, - 3.718028E-05f, - 3.95964671E-05f, - 4.21696677E-05f, - 4.491009E-05f, - 4.7828602E-05f, - 5.09367746E-05f, - 5.424693E-05f, - 5.77722021E-05f, - 6.152657E-05f, - 6.552491E-05f, - 6.97830837E-05f, - 7.43179844E-05f, - 7.914758E-05f, - 8.429104E-05f, - 8.976875E-05f, - 9.560242E-05f, - 0.000101815211f, - 0.000108431741f, - 0.000115478237f, - 0.000122982674f, - 0.000130974775f, - 0.000139486248f, - 0.000148550855f, - 0.000158204537f, - 0.000168485552f, - 0.00017943469f, - 0.000191095358f, - 0.000203513817f, - 0.0002167393f, - 0.000230824226f, - 0.000245824485f, - 0.000261799549f, - 0.000278812746f, - 0.000296931568f, - 0.000316227874f, - 0.000336778146f, - 0.000358663878f, - 0.000381971884f, - 0.00040679457f, - 0.000433230365f, - 0.0004613841f, - 0.0004913675f, - 0.00052329927f, - 0.0005573062f, - 0.0005935231f, - 0.0006320936f, - 0.0006731706f, - 0.000716917f, - 0.0007635063f, - 0.000813123246f, - 0.000865964568f, - 0.000922239851f, - 0.0009821722f, - 0.00104599923f, - 0.00111397426f, - 0.00118636654f, - 0.00126346329f, - 0.0013455702f, - 0.00143301289f, - 0.00152613816f, - 0.00162531529f, - 0.00173093739f, - 0.00184342347f, - 0.00196321961f, - 0.00209080055f, - 0.0022266726f, - 0.00237137428f, - 0.00252547953f, - 0.00268959929f, - 0.00286438479f, - 0.0030505287f, - 0.003248769f, - 0.00345989247f, - 0.00368473586f, - 0.00392419053f, - 0.00417920668f, - 0.004450795f, - 0.004740033f, - 0.005048067f, - 0.0053761187f, - 0.005725489f, - 0.00609756354f, - 0.00649381755f, - 0.00691582263f, - 0.00736525143f, - 0.007843887f, - 0.008353627f, - 0.008896492f, - 0.009474637f, - 0.010090352f, - 0.01074608f, - 0.0114444206f, - 0.012188144f, - 0.0129801976f, - 0.0138237253f, - 0.0147220679f, - 0.0156787913f, - 0.0166976862f, - 0.0177827962f, - 0.0189384222f, - 0.0201691482f, - 0.0214798544f, - 0.0228757355f, - 0.02436233f, - 0.0259455312f, - 0.0276316181f, - 0.0294272769f, - 0.0313396268f, - 0.03337625f, - 0.0355452262f, - 0.0378551558f, - 0.0403152f, - 0.0429351069f, - 0.0457252748f, - 0.0486967564f, - 0.05186135f, - 0.05523159f, - 0.05882085f, - 0.0626433641f, - 0.06671428f, - 0.07104975f, - 0.0756669641f, - 0.08058423f, - 0.08582105f, - 0.09139818f, - 0.0973377451f, - 0.1036633f, - 0.110399932f, - 0.117574342f, - 0.125214979f, - 0.133352146f, - 0.142018124f, - 0.151247263f, - 0.161076173f, - 0.1715438f, - 0.182691678f, - 0.194564015f, - 0.207207873f, - 0.220673427f, - 0.235014021f, - 0.250286549f, - 0.266551584f, - 0.283873618f, - 0.3023213f, - 0.32196787f, - 0.342891127f, - 0.365174145f, - 0.3889052f, - 0.414178461f, - 0.44109413f, - 0.4697589f, - 0.50028646f, - 0.532797933f, - 0.5674221f, - 0.6042964f, - 0.643566966f, - 0.6853896f, - 0.729930043f, - 0.777365f, - 0.8278826f, - 0.881683052f, - 0.9389798f, - 1f - }; + private static readonly float[] Float0 = + { + 1.06498632E-07f, + 1.1341951E-07f, + 1.20790148E-07f, + 1.28639783E-07f, + 1.369995E-07f, + 1.459025E-07f, + 1.55384086E-07f, + 1.65481808E-07f, + 1.76235744E-07f, + 1.87688556E-07f, + 1.998856E-07f, + 2.128753E-07f, + 2.26709133E-07f, + 2.41441967E-07f, + 2.57132228E-07f, + 2.73842119E-07f, + 2.91637917E-07f, + 3.10590224E-07f, + 3.307741E-07f, + 3.52269666E-07f, + 3.75162131E-07f, + 3.995423E-07f, + 4.255068E-07f, + 4.53158634E-07f, + 4.82607447E-07f, + 5.1397E-07f, + 5.47370632E-07f, + 5.829419E-07f, + 6.208247E-07f, + 6.611694E-07f, + 7.041359E-07f, + 7.49894639E-07f, + 7.98627E-07f, + 8.505263E-07f, + 9.057983E-07f, + 9.646621E-07f, + 1.02735135E-06f, + 1.0941144E-06f, + 1.16521608E-06f, + 1.24093845E-06f, + 1.32158164E-06f, + 1.40746545E-06f, + 1.49893049E-06f, + 1.59633942E-06f, + 1.70007854E-06f, + 1.81055918E-06f, + 1.92821949E-06f, + 2.053526E-06f, + 2.18697573E-06f, + 2.3290977E-06f, + 2.48045581E-06f, + 2.64164964E-06f, + 2.813319E-06f, + 2.9961443E-06f, + 3.19085052E-06f, + 3.39821E-06f, + 3.619045E-06f, + 3.85423073E-06f, + 4.10470057E-06f, + 4.371447E-06f, + 4.6555283E-06f, + 4.958071E-06f, + 5.280274E-06f, + 5.623416E-06f, + 5.988857E-06f, + 6.37804669E-06f, + 6.79252844E-06f, + 7.23394533E-06f, + 7.704048E-06f, + 8.2047E-06f, + 8.737888E-06f, + 9.305725E-06f, + 9.910464E-06f, + 1.05545014E-05f, + 1.12403923E-05f, + 1.19708557E-05f, + 1.27487892E-05f, + 1.3577278E-05f, + 1.44596061E-05f, + 1.53992714E-05f, + 1.64000048E-05f, + 1.74657689E-05f, + 1.86007928E-05f, + 1.98095768E-05f, + 2.10969138E-05f, + 2.24679115E-05f, + 2.39280016E-05f, + 2.54829774E-05f, + 2.71390054E-05f, + 2.890265E-05f, + 3.078091E-05f, + 3.27812268E-05f, + 3.49115326E-05f, + 3.718028E-05f, + 3.95964671E-05f, + 4.21696677E-05f, + 4.491009E-05f, + 4.7828602E-05f, + 5.09367746E-05f, + 5.424693E-05f, + 5.77722021E-05f, + 6.152657E-05f, + 6.552491E-05f, + 6.97830837E-05f, + 7.43179844E-05f, + 7.914758E-05f, + 8.429104E-05f, + 8.976875E-05f, + 9.560242E-05f, + 0.000101815211f, + 0.000108431741f, + 0.000115478237f, + 0.000122982674f, + 0.000130974775f, + 0.000139486248f, + 0.000148550855f, + 0.000158204537f, + 0.000168485552f, + 0.00017943469f, + 0.000191095358f, + 0.000203513817f, + 0.0002167393f, + 0.000230824226f, + 0.000245824485f, + 0.000261799549f, + 0.000278812746f, + 0.000296931568f, + 0.000316227874f, + 0.000336778146f, + 0.000358663878f, + 0.000381971884f, + 0.00040679457f, + 0.000433230365f, + 0.0004613841f, + 0.0004913675f, + 0.00052329927f, + 0.0005573062f, + 0.0005935231f, + 0.0006320936f, + 0.0006731706f, + 0.000716917f, + 0.0007635063f, + 0.000813123246f, + 0.000865964568f, + 0.000922239851f, + 0.0009821722f, + 0.00104599923f, + 0.00111397426f, + 0.00118636654f, + 0.00126346329f, + 0.0013455702f, + 0.00143301289f, + 0.00152613816f, + 0.00162531529f, + 0.00173093739f, + 0.00184342347f, + 0.00196321961f, + 0.00209080055f, + 0.0022266726f, + 0.00237137428f, + 0.00252547953f, + 0.00268959929f, + 0.00286438479f, + 0.0030505287f, + 0.003248769f, + 0.00345989247f, + 0.00368473586f, + 0.00392419053f, + 0.00417920668f, + 0.004450795f, + 0.004740033f, + 0.005048067f, + 0.0053761187f, + 0.005725489f, + 0.00609756354f, + 0.00649381755f, + 0.00691582263f, + 0.00736525143f, + 0.007843887f, + 0.008353627f, + 0.008896492f, + 0.009474637f, + 0.010090352f, + 0.01074608f, + 0.0114444206f, + 0.012188144f, + 0.0129801976f, + 0.0138237253f, + 0.0147220679f, + 0.0156787913f, + 0.0166976862f, + 0.0177827962f, + 0.0189384222f, + 0.0201691482f, + 0.0214798544f, + 0.0228757355f, + 0.02436233f, + 0.0259455312f, + 0.0276316181f, + 0.0294272769f, + 0.0313396268f, + 0.03337625f, + 0.0355452262f, + 0.0378551558f, + 0.0403152f, + 0.0429351069f, + 0.0457252748f, + 0.0486967564f, + 0.05186135f, + 0.05523159f, + 0.05882085f, + 0.0626433641f, + 0.06671428f, + 0.07104975f, + 0.0756669641f, + 0.08058423f, + 0.08582105f, + 0.09139818f, + 0.0973377451f, + 0.1036633f, + 0.110399932f, + 0.117574342f, + 0.125214979f, + 0.133352146f, + 0.142018124f, + 0.151247263f, + 0.161076173f, + 0.1715438f, + 0.182691678f, + 0.194564015f, + 0.207207873f, + 0.220673427f, + 0.235014021f, + 0.250286549f, + 0.266551584f, + 0.283873618f, + 0.3023213f, + 0.32196787f, + 0.342891127f, + 0.365174145f, + 0.3889052f, + 0.414178461f, + 0.44109413f, + 0.4697589f, + 0.50028646f, + 0.532797933f, + 0.5674221f, + 0.6042964f, + 0.643566966f, + 0.6853896f, + 0.729930043f, + 0.777365f, + 0.8278826f, + 0.881683052f, + 0.9389798f, + 1f + }; - public override object vmethod_0(OggClass5 class490, OggClass3 class380) - { - var num = 0; - var num2 = -1; - var @class = new Class31(); - @class.Int0 = class380.method_6(5); - for (var i = 0; i < @class.Int0; i++) - { - @class.Int1[i] = class380.method_6(4); - if (num2 < @class.Int1[i]) - { - num2 = @class.Int1[i]; - } - } - for (var j = 0; j < num2 + 1; j++) - { - @class.Int2[j] = class380.method_6(3) + 1; - @class.Int3[j] = class380.method_6(2); - if (@class.Int3[j] < 0) - { - @class.method_0(); - return null; - } - if (@class.Int3[j] != 0) - { - @class.Int4[j] = class380.method_6(8); - } - if (@class.Int4[j] < 0 || @class.Int4[j] >= class490.Int19) - { - @class.method_0(); - return null; - } - for (var k = 0; k < 1 << @class.Int3[j]; k++) - { - @class.Int5[j][k] = class380.method_6(8) - 1; - if (@class.Int5[j][k] < -1 || @class.Int5[j][k] >= class490.Int19) - { - @class.method_0(); - return null; - } - } - } - @class.Int6 = class380.method_6(2) + 1; - var num3 = class380.method_6(4); - var l = 0; - var m = 0; - while (l < @class.Int0) - { - num += @class.Int2[@class.Int1[l]]; - while (m < num) - { - var num4 = @class.Int7[m + 2] = class380.method_6(num3); - if (num4 < 0 || num4 >= 1 << num3) - { - @class.method_0(); - return null; - } - m++; - } - l++; - } - @class.Int7[0] = 0; - @class.Int7[1] = 1 << num3; - return @class; - } + public override object vmethod_0(OggClass5 class490, OggClass3 class380) + { + var num = 0; + var num2 = -1; + var @class = new Class31(); + @class.Int0 = class380.method_6(5); + for (var i = 0; i < @class.Int0; i++) + { + @class.Int1[i] = class380.method_6(4); + if (num2 < @class.Int1[i]) + { + num2 = @class.Int1[i]; + } + } + for (var j = 0; j < num2 + 1; j++) + { + @class.Int2[j] = class380.method_6(3) + 1; + @class.Int3[j] = class380.method_6(2); + if (@class.Int3[j] < 0) + { + @class.method_0(); + return null; + } + if (@class.Int3[j] != 0) + { + @class.Int4[j] = class380.method_6(8); + } + if (@class.Int4[j] < 0 || @class.Int4[j] >= class490.Int19) + { + @class.method_0(); + return null; + } + for (var k = 0; k < 1 << @class.Int3[j]; k++) + { + @class.Int5[j][k] = class380.method_6(8) - 1; + if (@class.Int5[j][k] < -1 || @class.Int5[j][k] >= class490.Int19) + { + @class.method_0(); + return null; + } + } + } + @class.Int6 = class380.method_6(2) + 1; + var num3 = class380.method_6(4); + var l = 0; + var m = 0; + while (l < @class.Int0) + { + num += @class.Int2[@class.Int1[l]]; + while (m < num) + { + var num4 = @class.Int7[m + 2] = class380.method_6(num3); + if (num4 < 0 || num4 >= 1 << num3) + { + @class.method_0(); + return null; + } + m++; + } + l++; + } + @class.Int7[0] = 0; + @class.Int7[1] = 1 << num3; + return @class; + } - public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) - { - var num = 0; - var array = new int[Int1 + 2]; - var @class = (Class31)object0; - var class2 = new Class32(); - class2.Class310 = @class; - class2.Int7 = @class.Int7[1]; - for (var i = 0; i < @class.Int0; i++) - { - num += @class.Int2[@class.Int1[i]]; - } - num += 2; - class2.Int6 = num; - for (var j = 0; j < num; j++) - { - array[j] = j; - } - for (var k = 0; k < num - 1; k++) - { - for (var l = k; l < num; l++) - { - if (@class.Int7[array[k]] > @class.Int7[array[l]]) - { - var num2 = array[l]; - array[l] = array[k]; - array[k] = num2; - } - } - } - for (var m = 0; m < num; m++) - { - class2.Int2[m] = array[m]; - } - for (var n = 0; n < num; n++) - { - class2.Int3[class2.Int2[n]] = n; - } - for (var num3 = 0; num3 < num; num3++) - { - class2.Int1[num3] = @class.Int7[class2.Int2[num3]]; - } - switch (@class.Int6) - { - case 1: - class2.Int8 = 256; - break; - case 2: - class2.Int8 = 128; - break; - case 3: - class2.Int8 = 86; - break; - case 4: - class2.Int8 = 64; - break; - default: - class2.Int8 = -1; - break; - } - for (var num4 = 0; num4 < num - 2; num4++) - { - var num5 = 0; - var num6 = 1; - var num7 = 0; - var num8 = class2.Int7; - var num9 = @class.Int7[num4 + 2]; - for (var num10 = 0; num10 < num4 + 2; num10++) - { - var num11 = @class.Int7[num10]; - if (num11 > num7 && num11 < num9) - { - num5 = num10; - num7 = num11; - } - if (num11 < num8 && num11 > num9) - { - num6 = num10; - num8 = num11; - } - } - class2.Int5[num4] = num5; - class2.Int4[num4] = num6; - } - return class2; - } + public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) + { + var num = 0; + var array = new int[Int1 + 2]; + var @class = (Class31) object0; + var class2 = new Class32(); + class2.Class310 = @class; + class2.Int7 = @class.Int7[1]; + for (var i = 0; i < @class.Int0; i++) + { + num += @class.Int2[@class.Int1[i]]; + } + num += 2; + class2.Int6 = num; + for (var j = 0; j < num; j++) + { + array[j] = j; + } + for (var k = 0; k < num - 1; k++) + { + for (var l = k; l < num; l++) + { + if (@class.Int7[array[k]] > @class.Int7[array[l]]) + { + var num2 = array[l]; + array[l] = array[k]; + array[k] = num2; + } + } + } + for (var m = 0; m < num; m++) + { + class2.Int2[m] = array[m]; + } + for (var n = 0; n < num; n++) + { + class2.Int3[class2.Int2[n]] = n; + } + for (var num3 = 0; num3 < num; num3++) + { + class2.Int1[num3] = @class.Int7[class2.Int2[num3]]; + } + switch (@class.Int6) + { + case 1: + class2.Int8 = 256; + break; + case 2: + class2.Int8 = 128; + break; + case 3: + class2.Int8 = 86; + break; + case 4: + class2.Int8 = 64; + break; + default: + class2.Int8 = -1; + break; + } + for (var num4 = 0; num4 < num - 2; num4++) + { + var num5 = 0; + var num6 = 1; + var num7 = 0; + var num8 = class2.Int7; + var num9 = @class.Int7[num4 + 2]; + for (var num10 = 0; num10 < num4 + 2; num10++) + { + var num11 = @class.Int7[num10]; + if (num11 > num7 && num11 < num9) + { + num5 = num10; + num7 = num11; + } + if (num11 < num8 && num11 > num9) + { + num6 = num10; + num8 = num11; + } + } + class2.Int5[num4] = num5; + class2.Int4[num4] = num6; + } + return class2; + } - public override void vmethod_2(object object0) - { - } + public override void vmethod_2(object object0) + { + } - public override object vmethod_3(OggClass6 class710, object object0, object object1) - { - var @class = (Class32)object0; - var class31 = @class.Class310; - var class21 = class710.OggClass1.OggClass4; - if (class710.OggClass3.method_6(1) == 1) - { - int[] array = null; - if (object1 is int[]) - { - array = (int[])object1; - } - if (array != null && array.Length >= @class.Int6) - { - for (var i = 0; i < array.Length; i++) - { - array[i] = 0; - } - } - else - { - array = new int[@class.Int6]; - } - array[0] = class710.OggClass3.method_6(smethod_2(@class.Int8 - 1)); - array[1] = class710.OggClass3.method_6(smethod_2(@class.Int8 - 1)); - var j = 0; - var num = 2; - while (j < class31.Int0) - { - var num2 = class31.Int1[j]; - var num3 = class31.Int2[num2]; - var num4 = class31.Int3[num2]; - var num5 = 1 << num4; - var num6 = 0; - if (num4 != 0) - { - num6 = class21[class31.Int4[num2]].method_4(class710.OggClass3); - if (num6 == -1) - { - return null; - } - } - for (var k = 0; k < num3; k++) - { - var num7 = class31.Int5[num2][num6 & num5 - 1]; - num6 = (int)((uint)num6 >> num4); - if (num7 >= 0) - { - if ((array[num + k] = class21[num7].method_4(class710.OggClass3)) == -1) - { - return null; - } - } - else - { - array[num + k] = 0; - } - } - num += num3; - j++; - } - for (var l = 2; l < @class.Int6; l++) - { - var num8 = smethod_0(class31.Int7[@class.Int5[l - 2]], class31.Int7[@class.Int4[l - 2]], array[@class.Int5[l - 2]], array[@class.Int4[l - 2]], class31.Int7[l]); - var num9 = @class.Int8 - num8; - var num10 = num8; - var num11 = ((num9 < num10) ? num9 : num10) << 1; - var num12 = array[l]; - if (num12 != 0) - { - if (num12 >= num11) - { - if (num9 > num10) - { - num12 -= num10; - } - else - { - num12 = -1 - (num12 - num9); - } - } - else if ((num12 & 1) != 0) - { - num12 = -(int)((uint)(num12 + 1) >> 1); - } - else - { - num12 >>= 1; - } - array[l] = num12 + num8; - array[@class.Int5[l - 2]] &= 32767; - array[@class.Int4[l - 2]] &= 32767; - } - else - { - array[l] = (num8 | 32768); - } - } - return array; - } - return null; - } + public override object vmethod_3(OggClass6 class710, object object0, object object1) + { + var @class = (Class32) object0; + var class31 = @class.Class310; + var class21 = class710.OggClass1.OggClass4; + if (class710.OggClass3.method_6(1) == 1) + { + int[] array = null; + if (object1 is int[]) + { + array = (int[]) object1; + } + if (array != null && array.Length >= @class.Int6) + { + for (var i = 0; i < array.Length; i++) + { + array[i] = 0; + } + } + else + { + array = new int[@class.Int6]; + } + array[0] = class710.OggClass3.method_6(smethod_2(@class.Int8 - 1)); + array[1] = class710.OggClass3.method_6(smethod_2(@class.Int8 - 1)); + var j = 0; + var num = 2; + while (j < class31.Int0) + { + var num2 = class31.Int1[j]; + var num3 = class31.Int2[num2]; + var num4 = class31.Int3[num2]; + var num5 = 1 << num4; + var num6 = 0; + if (num4 != 0) + { + num6 = class21[class31.Int4[num2]].method_4(class710.OggClass3); + if (num6 == -1) + { + return null; + } + } + for (var k = 0; k < num3; k++) + { + var num7 = class31.Int5[num2][num6 & num5 - 1]; + num6 = (int) ((uint) num6 >> num4); + if (num7 >= 0) + { + if ((array[num + k] = class21[num7].method_4(class710.OggClass3)) == -1) + { + return null; + } + } + else + { + array[num + k] = 0; + } + } + num += num3; + j++; + } + for (var l = 2; l < @class.Int6; l++) + { + var num8 = smethod_0(class31.Int7[@class.Int5[l - 2]], class31.Int7[@class.Int4[l - 2]], + array[@class.Int5[l - 2]], array[@class.Int4[l - 2]], class31.Int7[l]); + var num9 = @class.Int8 - num8; + var num10 = num8; + var num11 = ((num9 < num10) ? num9 : num10) << 1; + var num12 = array[l]; + if (num12 != 0) + { + if (num12 >= num11) + { + if (num9 > num10) + { + num12 -= num10; + } + else + { + num12 = -1 - (num12 - num9); + } + } + else if ((num12 & 1) != 0) + { + num12 = -(int) ((uint) (num12 + 1) >> 1); + } + else + { + num12 >>= 1; + } + array[l] = num12 + num8; + array[@class.Int5[l - 2]] &= 32767; + array[@class.Int4[l - 2]] &= 32767; + } + else + { + array[l] = (num8 | 32768); + } + } + return array; + } + return null; + } - private static int smethod_0(int int2, int int3, int int4, int int5, int int6) - { - int4 &= 32767; - int5 &= 32767; - var num = int5 - int4; - var num2 = int3 - int2; - var num3 = Math.Abs(num); - var num4 = num3 * (int6 - int2); - var num5 = num4 / num2; - if (num < 0) - { - return int4 - num5; - } - return int4 + num5; - } + private static int smethod_0(int int2, int int3, int int4, int int5, int int6) + { + int4 &= 32767; + int5 &= 32767; + var num = int5 - int4; + var num2 = int3 - int2; + var num3 = Math.Abs(num); + var num4 = num3 * (int6 - int2); + var num5 = num4 / num2; + if (num < 0) + { + return int4 - num5; + } + return int4 + num5; + } - public override int vmethod_4(OggClass6 class710, object object0, object object1, float[] float1) - { - var @class = (Class32)object0; - var class31 = @class.Class310; - var num = class710.OggClass1.OggClass5.Int13[class710.Int4] / 2; - if (object1 != null) - { - var array = (int[])object1; - var num2 = 0; - var int_ = 0; - var int2 = array[0] * class31.Int6; - for (var i = 1; i < @class.Int6; i++) - { - var num3 = @class.Int2[i]; - var num4 = array[num3] & 32767; - if (num4 == array[num3]) - { - num4 *= class31.Int6; - num2 = class31.Int7[num3]; - smethod_1(int_, num2, int2, num4, float1); - int_ = num2; - int2 = num4; - } - } - for (var j = num2; j < num; j++) - { - float1[j] *= float1[j - 1]; - } - return 1; - } - for (var k = 0; k < num; k++) - { - float1[k] = 0f; - } - return 0; - } + public override int vmethod_4(OggClass6 class710, object object0, object object1, float[] float1) + { + var @class = (Class32) object0; + var class31 = @class.Class310; + var num = class710.OggClass1.OggClass5.Int13[class710.Int4] / 2; + if (object1 != null) + { + var array = (int[]) object1; + var num2 = 0; + var int_ = 0; + var int2 = array[0] * class31.Int6; + for (var i = 1; i < @class.Int6; i++) + { + var num3 = @class.Int2[i]; + var num4 = array[num3] & 32767; + if (num4 == array[num3]) + { + num4 *= class31.Int6; + num2 = class31.Int7[num3]; + smethod_1(int_, num2, int2, num4, float1); + int_ = num2; + int2 = num4; + } + } + for (var j = num2; j < num; j++) + { + float1[j] *= float1[j - 1]; + } + return 1; + } + for (var k = 0; k < num; k++) + { + float1[k] = 0f; + } + return 0; + } - private static void smethod_1(int int2, int int3, int int4, int int5, float[] float1) - { - var num = int5 - int4; - var num2 = int3 - int2; - var num3 = Math.Abs(num); - var num4 = num / num2; - var num5 = (num < 0) ? (num4 - 1) : (num4 + 1); - var num6 = int2; - var num7 = int4; - var num8 = 0; - num3 -= Math.Abs(num4 * num2); - float1[num6] *= Float0[num7]; - while (++num6 < int3) - { - num8 += num3; - if (num8 >= num2) - { - num8 -= num2; - num7 += num5; - } - else - { - num7 += num4; - } - float1[num6] *= Float0[num7]; - } - } + private static void smethod_1(int int2, int int3, int int4, int int5, float[] float1) + { + var num = int5 - int4; + var num2 = int3 - int2; + var num3 = Math.Abs(num); + var num4 = num / num2; + var num5 = (num < 0) ? (num4 - 1) : (num4 + 1); + var num6 = int2; + var num7 = int4; + var num8 = 0; + num3 -= Math.Abs(num4 * num2); + float1[num6] *= Float0[num7]; + while (++num6 < int3) + { + num8 += num3; + if (num8 >= num2) + { + num8 -= num2; + num7 += num5; + } + else + { + num7 += num4; + } + float1[num6] *= Float0[num7]; + } + } - private static int smethod_2(int int2) - { - var num = 0; - while (int2 != 0) - { - num++; - int2 = (int)((uint)int2 >> 1); - } - return num; - } - } -} + private static int smethod_2(int int2) + { + var num = 0; + while (int2 != 0) + { + num++; + int2 = (int) ((uint) int2 >> 1); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class30.cs b/GHNamespaceD/Class30.cs index 4f61181..a22fc77 100644 --- a/GHNamespaceD/Class30.cs +++ b/GHNamespaceD/Class30.cs @@ -4,153 +4,154 @@ namespace GHNamespaceD { - public class Class30 : Class28 - { - private readonly object _object0 = new object(); + public class Class30 : Class28 + { + private readonly object _object0 = new object(); - public override object vmethod_0(OggClass5 class490, OggClass3 class380) - { - var @class = new Class36(); - @class.Int0 = class380.method_6(8); - @class.Int1 = class380.method_6(16); - @class.Int2 = class380.method_6(16); - @class.Int3 = class380.method_6(6); - @class.Int4 = class380.method_6(8); - @class.Int5 = class380.method_6(4) + 1; - if (@class.Int0 >= 1 && @class.Int1 >= 1 && @class.Int2 >= 1 && @class.Int5 >= 1) - { - for (var i = 0; i < @class.Int5; i++) - { - @class.Int6[i] = class380.method_6(8); - if (@class.Int6[i] < 0 || @class.Int6[i] >= class490.Int19) - { - return null; - } - } - return @class; - } - return null; - } + public override object vmethod_0(OggClass5 class490, OggClass3 class380) + { + var @class = new Class36(); + @class.Int0 = class380.method_6(8); + @class.Int1 = class380.method_6(16); + @class.Int2 = class380.method_6(16); + @class.Int3 = class380.method_6(6); + @class.Int4 = class380.method_6(8); + @class.Int5 = class380.method_6(4) + 1; + if (@class.Int0 >= 1 && @class.Int1 >= 1 && @class.Int2 >= 1 && @class.Int5 >= 1) + { + for (var i = 0; i < @class.Int5; i++) + { + @class.Int6[i] = class380.method_6(8); + if (@class.Int6[i] < 0 || @class.Int6[i] >= class490.Int19) + { + return null; + } + } + return @class; + } + return null; + } - public override object vmethod_1(OggClass1 class660, Class27 class270, object object1) - { - var class49 = class660.OggClass5; - var @class = (Class36)object1; - var class2 = new Class37(); - class2.Int2 = @class.Int0; - class2.Int0 = class49.Int13[class270.Int0] / 2; - class2.Int1 = @class.Int2; - class2.Class360 = @class; - class2.Class630.method_0(class2.Int1, class2.Int2); - var num = class2.Int1 / (float)smethod_0((float)(@class.Int1 / 2.0)); - class2.Int3 = new int[class2.Int0]; - for (var i = 0; i < class2.Int0; i++) - { - var num2 = (int)Math.Floor(smethod_0((float)(@class.Int1 / 2.0 / class2.Int0 * i)) * num); - if (num2 >= class2.Int1) - { - num2 = class2.Int1; - } - class2.Int3[i] = num2; - } - return class2; - } + public override object vmethod_1(OggClass1 class660, Class27 class270, object object1) + { + var class49 = class660.OggClass5; + var @class = (Class36) object1; + var class2 = new Class37(); + class2.Int2 = @class.Int0; + class2.Int0 = class49.Int13[class270.Int0] / 2; + class2.Int1 = @class.Int2; + class2.Class360 = @class; + class2.Class630.method_0(class2.Int1, class2.Int2); + var num = class2.Int1 / (float) smethod_0((float) (@class.Int1 / 2.0)); + class2.Int3 = new int[class2.Int0]; + for (var i = 0; i < class2.Int0; i++) + { + var num2 = (int) Math.Floor(smethod_0((float) (@class.Int1 / 2.0 / class2.Int0 * i)) * num); + if (num2 >= class2.Int1) + { + num2 = class2.Int1; + } + class2.Int3[i] = num2; + } + return class2; + } - private static double smethod_0(float float0) - { - var num = 13.1 * Math.Atan(0.00074 * float0); - var num2 = 2.24 * Math.Atan(float0 * float0 * 1.85E-08); - var num3 = 0.0001 * float0; - return num + num2 + num3; - } + private static double smethod_0(float float0) + { + var num = 13.1 * Math.Atan(0.00074 * float0); + var num2 = 2.24 * Math.Atan(float0 * float0 * 1.85E-08); + var num3 = 0.0001 * float0; + return num + num2 + num3; + } - public override void vmethod_2(object object1) - { - } + public override void vmethod_2(object object1) + { + } - public override object vmethod_3(OggClass6 class710, object object1, object object2) - { - var @class = (Class37)object1; - var class36 = @class.Class360; - float[] array = null; - if (object2 is float[]) - { - array = (float[])object2; - } - var num = class710.OggClass3.method_6(class36.Int3); - if (num > 0) - { - var num2 = (1 << class36.Int3) - 1; - var num3 = num / (float)num2 * class36.Int4; - var num4 = class710.OggClass3.method_6(smethod_1(class36.Int5)); - if (num4 != -1 && num4 < class36.Int5) - { - var class2 = class710.OggClass1.OggClass4[class36.Int6[num4]]; - var num5 = 0f; - if (array != null && array.Length >= @class.Int2 + 1) - { - for (var i = 0; i < array.Length; i++) - { - array[i] = 0f; - } - } - else - { - array = new float[@class.Int2 + 1]; - } - for (var j = 0; j < @class.Int2; j += class2.Int0) - { - if (class2.method_2(array, j, class710.OggClass3, class2.Int0) == -1) - { - return null; - } - } - var k = 0; - while (k < @class.Int2) - { - var l = 0; - while (l < class2.Int0) - { - array[k] += num5; - l++; - k++; - } - num5 = array[k - 1]; - } - array[@class.Int2] = num3; - return array; - } - } - return null; - } + public override object vmethod_3(OggClass6 class710, object object1, object object2) + { + var @class = (Class37) object1; + var class36 = @class.Class360; + float[] array = null; + if (object2 is float[]) + { + array = (float[]) object2; + } + var num = class710.OggClass3.method_6(class36.Int3); + if (num > 0) + { + var num2 = (1 << class36.Int3) - 1; + var num3 = num / (float) num2 * class36.Int4; + var num4 = class710.OggClass3.method_6(smethod_1(class36.Int5)); + if (num4 != -1 && num4 < class36.Int5) + { + var class2 = class710.OggClass1.OggClass4[class36.Int6[num4]]; + var num5 = 0f; + if (array != null && array.Length >= @class.Int2 + 1) + { + for (var i = 0; i < array.Length; i++) + { + array[i] = 0f; + } + } + else + { + array = new float[@class.Int2 + 1]; + } + for (var j = 0; j < @class.Int2; j += class2.Int0) + { + if (class2.method_2(array, j, class710.OggClass3, class2.Int0) == -1) + { + return null; + } + } + var k = 0; + while (k < @class.Int2) + { + var l = 0; + while (l < class2.Int0) + { + array[k] += num5; + l++; + k++; + } + num5 = array[k - 1]; + } + array[@class.Int2] = num3; + return array; + } + } + return null; + } - public override int vmethod_4(OggClass6 class710, object object1, object object2, float[] float0) - { - var @class = (Class37)object1; - var class36 = @class.Class360; - if (object2 != null) - { - var array = (float[])object2; - var float_ = array[@class.Int2]; - Class77.smethod_0(float0, @class.Int3, @class.Int0, @class.Int1, array, @class.Int2, float_, class36.Int4); - return 1; - } - for (var i = 0; i < @class.Int0; i++) - { - float0[i] = 0f; - } - return 0; - } + public override int vmethod_4(OggClass6 class710, object object1, object object2, float[] float0) + { + var @class = (Class37) object1; + var class36 = @class.Class360; + if (object2 != null) + { + var array = (float[]) object2; + var float_ = array[@class.Int2]; + Class77.smethod_0(float0, @class.Int3, @class.Int0, @class.Int1, array, @class.Int2, float_, + class36.Int4); + return 1; + } + for (var i = 0; i < @class.Int0; i++) + { + float0[i] = 0f; + } + return 0; + } - private static int smethod_1(int int0) - { - var num = 0; - while (int0 != 0) - { - num++; - int0 = (int)((uint)int0 >> 1); - } - return num; - } - } -} + private static int smethod_1(int int0) + { + var num = 0; + while (int0 != 0) + { + num++; + int0 = (int) ((uint) int0 >> 1); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class31.cs b/GHNamespaceD/Class31.cs index 522a98f..172e61e 100644 --- a/GHNamespaceD/Class31.cs +++ b/GHNamespaceD/Class31.cs @@ -1,39 +1,39 @@ namespace GHNamespaceD { - public class Class31 - { - public int Int0; + public class Class31 + { + public int Int0; - public int[] Int1 = new int[31]; + public int[] Int1 = new int[31]; - public int[] Int2 = new int[16]; + public int[] Int2 = new int[16]; - public int[] Int3 = new int[16]; + public int[] Int3 = new int[16]; - public int[] Int4 = new int[16]; + public int[] Int4 = new int[16]; - public int[][] Int5 = new int[16][]; + public int[][] Int5 = new int[16][]; - public int Int6; + public int Int6; - public int[] Int7 = new int[65]; + public int[] Int7 = new int[65]; - public Class31() - { - for (var i = 0; i < Int5.Length; i++) - { - Int5[i] = new int[8]; - } - } + public Class31() + { + for (var i = 0; i < Int5.Length; i++) + { + Int5[i] = new int[8]; + } + } - public void method_0() - { - Int1 = null; - Int2 = null; - Int3 = null; - Int4 = null; - Int5 = null; - Int7 = null; - } - } -} + public void method_0() + { + Int1 = null; + Int2 = null; + Int3 = null; + Int4 = null; + Int5 = null; + Int7 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class32.cs b/GHNamespaceD/Class32.cs index 06a6c67..b8ac2e2 100644 --- a/GHNamespaceD/Class32.cs +++ b/GHNamespaceD/Class32.cs @@ -1,25 +1,25 @@ namespace GHNamespaceD { - public class Class32 - { - private static readonly int Int0 = 63; + public class Class32 + { + private static readonly int Int0 = 63; - public int[] Int1 = new int[Int0 + 2]; + public int[] Int1 = new int[Int0 + 2]; - public int[] Int2 = new int[Int0 + 2]; + public int[] Int2 = new int[Int0 + 2]; - public int[] Int3 = new int[Int0 + 2]; + public int[] Int3 = new int[Int0 + 2]; - public int[] Int4 = new int[Int0]; + public int[] Int4 = new int[Int0]; - public int[] Int5 = new int[Int0]; + public int[] Int5 = new int[Int0]; - public int Int6; + public int Int6; - public int Int7; + public int Int7; - public int Int8; + public int Int8; - public Class31 Class310; - } -} + public Class31 Class310; + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class33.cs b/GHNamespaceD/Class33.cs index e7cb444..0d23a78 100644 --- a/GHNamespaceD/Class33.cs +++ b/GHNamespaceD/Class33.cs @@ -1,41 +1,41 @@ namespace GHNamespaceD { - public class Class33 - { - private static float _float0 = 3.14159274f; + public class Class33 + { + private static float _float0 = 3.14159274f; - private static int _int0 = 1; + private static int _int0 = 1; - private static int _int1 = 1; + private static int _int1 = 1; - public int Int2; + public int Int2; - public float[][][][][] Float1; + public float[][][][][] Float1; - public object[][] Object0; + public object[][] Object0; - public Class33() - { - Object0 = new object[2][]; - Float1 = new float[2][][][][]; - Float1[0] = new float[2][][][]; - Float1[0][0] = new float[2][][]; - Float1[0][1] = new float[2][][]; - Float1[0][0][0] = new float[2][]; - Float1[0][0][1] = new float[2][]; - Float1[0][1][0] = new float[2][]; - Float1[0][1][1] = new float[2][]; - Float1[1] = new float[2][][][]; - Float1[1][0] = new float[2][][]; - Float1[1][1] = new float[2][][]; - Float1[1][0][0] = new float[2][]; - Float1[1][0][1] = new float[2][]; - Float1[1][1][0] = new float[2][]; - Float1[1][1][1] = new float[2][]; - } + public Class33() + { + Object0 = new object[2][]; + Float1 = new float[2][][][][]; + Float1[0] = new float[2][][][]; + Float1[0][0] = new float[2][][]; + Float1[0][1] = new float[2][][]; + Float1[0][0][0] = new float[2][]; + Float1[0][0][1] = new float[2][]; + Float1[0][1][0] = new float[2][]; + Float1[0][1][1] = new float[2][]; + Float1[1] = new float[2][][][]; + Float1[1][0] = new float[2][][]; + Float1[1][1] = new float[2][][]; + Float1[1][0][0] = new float[2][]; + Float1[1][0][1] = new float[2][]; + Float1[1][1][0] = new float[2][]; + Float1[1][1][1] = new float[2][]; + } - public void method_0() - { - } - } -} + public void method_0() + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class34.cs b/GHNamespaceD/Class34.cs index 5346f6e..e9abe66 100644 --- a/GHNamespaceD/Class34.cs +++ b/GHNamespaceD/Class34.cs @@ -3,18 +3,19 @@ namespace GHNamespaceD { - public abstract class Class34 - { - public static Class34[] Class340 = { - new Class35() - }; + public abstract class Class34 + { + public static Class34[] Class340 = + { + new Class35() + }; - public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); + public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); - public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); + public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); - public abstract void vmethod_2(object object0); + public abstract void vmethod_2(object object0); - public abstract int vmethod_3(OggClass6 class710, object object0); - } -} + public abstract int vmethod_3(OggClass6 class710, object object0); + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class36.cs b/GHNamespaceD/Class36.cs index 6aa9174..41b80ad 100644 --- a/GHNamespaceD/Class36.cs +++ b/GHNamespaceD/Class36.cs @@ -1,19 +1,19 @@ namespace GHNamespaceD { - public class Class36 - { - public int Int0; + public class Class36 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - public int Int5; + public int Int5; - public int[] Int6 = new int[16]; - } -} + public int[] Int6 = new int[16]; + } +} \ No newline at end of file diff --git a/GHNamespaceD/Class37.cs b/GHNamespaceD/Class37.cs index 0a4c517..f75ca1c 100644 --- a/GHNamespaceD/Class37.cs +++ b/GHNamespaceD/Class37.cs @@ -2,18 +2,18 @@ namespace GHNamespaceD { - public class Class37 - { - public int Int0; + public class Class37 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int[] Int3; + public int[] Int3; - public Class36 Class360; + public Class36 Class360; - public Class63 Class630 = new Class63(); - } -} + public Class63 Class630 = new Class63(); + } +} \ No newline at end of file diff --git a/GHNamespaceD/Exception0.cs b/GHNamespaceD/Exception0.cs index 1baa87b..8a7302e 100644 --- a/GHNamespaceD/Exception0.cs +++ b/GHNamespaceD/Exception0.cs @@ -2,14 +2,14 @@ namespace GHNamespaceD { - public class Exception0 : Exception - { - public Exception0() - { - } + public class Exception0 : Exception + { + public Exception0() + { + } - public Exception0(string string0) : base("csorbis: " + string0) - { - } - } -} + public Exception0(string string0) : base("csorbis: " + string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/OGGClass3.cs b/GHNamespaceD/OGGClass3.cs index a011a57..e917fae 100644 --- a/GHNamespaceD/OGGClass3.cs +++ b/GHNamespaceD/OGGClass3.cs @@ -1,184 +1,185 @@ namespace GHNamespaceD { - public class OggClass3 - { - private static readonly int[] Int0 = { - 0, - 1, - 3, - 7, - 15, - 31, - 63, - 127, - 255, - 511, - 1023, - 2047, - 4095, - 8191, - 16383, - 32767, - 65535, - 131071, - 262143, - 524287, - 1048575, - 2097151, - 4194303, - 8388607, - 16777215, - 33554431, - 67108863, - 134217727, - 268435455, - 536870911, - 1073741823, - 2147483647, - -1 - }; + public class OggClass3 + { + private static readonly int[] Int0 = + { + 0, + 1, + 3, + 7, + 15, + 31, + 63, + 127, + 255, + 511, + 1023, + 2047, + 4095, + 8191, + 16383, + 32767, + 65535, + 131071, + 262143, + 524287, + 1048575, + 2097151, + 4194303, + 8388607, + 16777215, + 33554431, + 67108863, + 134217727, + 268435455, + 536870911, + 1073741823, + 2147483647, + -1 + }; - private int _int1; + private int _int1; - private byte[] _byte0; + private byte[] _byte0; - private int _int2; + private int _int2; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - public void method_0() - { - _byte0 = new byte[256]; - _int1 = 0; - _byte0[0] = 0; - _int4 = 256; - } + public void method_0() + { + _byte0 = new byte[256]; + _int1 = 0; + _byte0[0] = 0; + _int4 = 256; + } - public void method_1() - { - _byte0 = null; - } + public void method_1() + { + _byte0 = null; + } - public int method_2(int int5) - { - var num = Int0[int5]; - int5 += _int2; - if (_int3 + 4 >= _int4 && _int3 + (int5 - 1) / 8 >= _int4) - { - return -1; - } - var num2 = (_byte0[_int1] & 255) >> _int2; - if (int5 > 8) - { - num2 |= (_byte0[_int1 + 1] & 255) << 8 - _int2; - if (int5 > 16) - { - num2 |= (_byte0[_int1 + 2] & 255) << 16 - _int2; - if (int5 > 24) - { - num2 |= (_byte0[_int1 + 3] & 255) << 24 - _int2; - if (int5 > 32 && _int2 != 0) - { - num2 |= (_byte0[_int1 + 4] & 255) << 32 - _int2; - } - } - } - } - return num2 & num; - } + public int method_2(int int5) + { + var num = Int0[int5]; + int5 += _int2; + if (_int3 + 4 >= _int4 && _int3 + (int5 - 1) / 8 >= _int4) + { + return -1; + } + var num2 = (_byte0[_int1] & 255) >> _int2; + if (int5 > 8) + { + num2 |= (_byte0[_int1 + 1] & 255) << 8 - _int2; + if (int5 > 16) + { + num2 |= (_byte0[_int1 + 2] & 255) << 16 - _int2; + if (int5 > 24) + { + num2 |= (_byte0[_int1 + 3] & 255) << 24 - _int2; + if (int5 > 32 && _int2 != 0) + { + num2 |= (_byte0[_int1 + 4] & 255) << 32 - _int2; + } + } + } + } + return num2 & num; + } - public void method_3(int int5) - { - int5 += _int2; - _int1 += int5 / 8; - _int3 += int5 / 8; - _int2 = (int5 & 7); - } + public void method_3(int int5) + { + int5 += _int2; + _int1 += int5 / 8; + _int3 += int5 / 8; + _int2 = (int5 & 7); + } - public void method_4(byte[] byte1, int int5, int int6) - { - _int1 = int5; - _byte0 = byte1; - _int3 = 0; - _int2 = 0; - _int4 = int6; - } + public void method_4(byte[] byte1, int int5, int int6) + { + _int1 = int5; + _byte0 = byte1; + _int3 = 0; + _int2 = 0; + _int4 = int6; + } - public void method_5(byte[] byte1, int int5) - { - var num = 0; - while (int5-- != 0) - { - byte1[num++] = (byte)method_6(8); - } - } + public void method_5(byte[] byte1, int int5) + { + var num = 0; + while (int5-- != 0) + { + byte1[num++] = (byte) method_6(8); + } + } - public int method_6(int int5) - { - var num = Int0[int5]; - int5 += _int2; - int num2; - if (_int3 + 4 >= _int4) - { - num2 = -1; - if (_int3 + (int5 - 1) / 8 >= _int4) - { - _int1 += int5 / 8; - _int3 += int5 / 8; - _int2 = (int5 & 7); - return num2; - } - } - num2 = (_byte0[_int1] & 255) >> _int2; - if (int5 > 8) - { - num2 |= (_byte0[_int1 + 1] & 255) << 8 - _int2; - if (int5 > 16) - { - num2 |= (_byte0[_int1 + 2] & 255) << 16 - _int2; - if (int5 > 24) - { - num2 |= (_byte0[_int1 + 3] & 255) << 24 - _int2; - if (int5 > 32 && _int2 != 0) - { - num2 |= (_byte0[_int1 + 4] & 255) << 32 - _int2; - } - } - } - } - num2 &= num; - _int1 += int5 / 8; - _int3 += int5 / 8; - _int2 = (int5 & 7); - return num2; - } + public int method_6(int int5) + { + var num = Int0[int5]; + int5 += _int2; + int num2; + if (_int3 + 4 >= _int4) + { + num2 = -1; + if (_int3 + (int5 - 1) / 8 >= _int4) + { + _int1 += int5 / 8; + _int3 += int5 / 8; + _int2 = (int5 & 7); + return num2; + } + } + num2 = (_byte0[_int1] & 255) >> _int2; + if (int5 > 8) + { + num2 |= (_byte0[_int1 + 1] & 255) << 8 - _int2; + if (int5 > 16) + { + num2 |= (_byte0[_int1 + 2] & 255) << 16 - _int2; + if (int5 > 24) + { + num2 |= (_byte0[_int1 + 3] & 255) << 24 - _int2; + if (int5 > 32 && _int2 != 0) + { + num2 |= (_byte0[_int1 + 4] & 255) << 32 - _int2; + } + } + } + } + num2 &= num; + _int1 += int5 / 8; + _int3 += int5 / 8; + _int2 = (int5 & 7); + return num2; + } - public int method_7() - { - int result; - if (_int3 >= _int4) - { - result = -1; - _int2++; - if (_int2 > 7) - { - _int2 = 0; - _int1++; - _int3++; - } - return result; - } - result = (_byte0[_int1] >> _int2 & 1); - _int2++; - if (_int2 > 7) - { - _int2 = 0; - _int1++; - _int3++; - } - return result; - } - } -} + public int method_7() + { + int result; + if (_int3 >= _int4) + { + result = -1; + _int2++; + if (_int2 > 7) + { + _int2 = 0; + _int1++; + _int3++; + } + return result; + } + result = (_byte0[_int1] >> _int2 & 1); + _int2++; + if (_int2 > 7) + { + _int2 = 0; + _int1++; + _int3++; + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/OGGClass4.cs b/GHNamespaceD/OGGClass4.cs index 5d318ad..8ae662b 100644 --- a/GHNamespaceD/OGGClass4.cs +++ b/GHNamespaceD/OGGClass4.cs @@ -4,193 +4,194 @@ namespace GHNamespaceD { - public class OggClass4 - { - public int Int0; + public class OggClass4 + { + public int Int0; - public int Int1; + public int Int1; - public OggClass2 OggClass2 = new OggClass2(); + public OggClass2 OggClass2 = new OggClass2(); - public float[] Float0; + public float[] Float0; - public OggData OggData; + public OggData OggData; - public int[] Int2 = new int[15]; + public int[] Int2 = new int[15]; - [MethodImpl(MethodImplOptions.Synchronized)] - public int method_0(float[] float1, int int3, OggClass3 oggClass3, int int4) - { - var num = int4 / Int0; - if (Int2.Length < num) - { - Int2 = new int[num]; - } - int i; - for (i = 0; i < num; i++) - { - var num2 = method_4(oggClass3); - if (num2 == -1) - { - return -1; - } - Int2[i] = num2 * Int0; - } - i = 0; - var num3 = 0; - while (i < Int0) - { - for (var j = 0; j < num; j++) - { - float1[int3 + num3 + j] += Float0[Int2[j] + i]; - } - i++; - num3 += num; - } - return 0; - } + [MethodImpl(MethodImplOptions.Synchronized)] + public int method_0(float[] float1, int int3, OggClass3 oggClass3, int int4) + { + var num = int4 / Int0; + if (Int2.Length < num) + { + Int2 = new int[num]; + } + int i; + for (i = 0; i < num; i++) + { + var num2 = method_4(oggClass3); + if (num2 == -1) + { + return -1; + } + Int2[i] = num2 * Int0; + } + i = 0; + var num3 = 0; + while (i < Int0) + { + for (var j = 0; j < num; j++) + { + float1[int3 + num3 + j] += Float0[Int2[j] + i]; + } + i++; + num3 += num; + } + return 0; + } - public int method_1(float[] float1, int int3, OggClass3 oggClass3, int int4) - { - if (Int0 > 8) - { - var i = 0; - while (i < int4) - { - var num = method_4(oggClass3); - if (num == -1) - { - return -1; - } - var num2 = num * Int0; - var j = 0; - while (j < Int0) - { - float1[int3 + i++] += Float0[num2 + j++]; - } - } - } - else - { - var i = 0; - while (i < int4) - { - var num = method_4(oggClass3); - if (num == -1) - { - return -1; - } - var num2 = num * Int0; - var j = 0; - for (var k = 0; k < Int0; k++) - { - float1[int3 + i++] += Float0[num2 + j++]; - } - } - } - return 0; - } + public int method_1(float[] float1, int int3, OggClass3 oggClass3, int int4) + { + if (Int0 > 8) + { + var i = 0; + while (i < int4) + { + var num = method_4(oggClass3); + if (num == -1) + { + return -1; + } + var num2 = num * Int0; + var j = 0; + while (j < Int0) + { + float1[int3 + i++] += Float0[num2 + j++]; + } + } + } + else + { + var i = 0; + while (i < int4) + { + var num = method_4(oggClass3); + if (num == -1) + { + return -1; + } + var num2 = num * Int0; + var j = 0; + for (var k = 0; k < Int0; k++) + { + float1[int3 + i++] += Float0[num2 + j++]; + } + } + } + return 0; + } - public int method_2(float[] float1, int int3, OggClass3 oggClass3, int int4) - { - var i = 0; - while (i < int4) - { - var num = method_4(oggClass3); - if (num == -1) - { - return -1; - } - var num2 = num * Int0; - var j = 0; - while (j < Int0) - { - float1[int3 + i++] = Float0[num2 + j++]; - } - } - return 0; - } + public int method_2(float[] float1, int int3, OggClass3 oggClass3, int int4) + { + var i = 0; + while (i < int4) + { + var num = method_4(oggClass3); + if (num == -1) + { + return -1; + } + var num2 = num * Int0; + var j = 0; + while (j < Int0) + { + float1[int3 + i++] = Float0[num2 + j++]; + } + } + return 0; + } - public int method_3(float[][] float1, int int3, int int4, OggClass3 oggClass3, int int5) - { + public int method_3(float[][] float1, int int3, int int4, OggClass3 oggClass3, int int5) + { var num = 0; - var i = int3 / int4; - while (i < (int3 + int5) / int4) - { - var num2 = method_4(oggClass3); - if (num2 == -1) - { - return -1; - } - var num3 = num2 * Int0; - for (var j = 0; j < Int0; j++) - { - float1[num][i] += Float0[num3 + j]; - num++; - if (num == int4) - { - num = 0; - i++; - } - } - } - return 0; - } + var i = int3 / int4; + while (i < (int3 + int5) / int4) + { + var num2 = method_4(oggClass3); + if (num2 == -1) + { + return -1; + } + var num3 = num2 * Int0; + for (var j = 0; j < Int0; j++) + { + float1[num][i] += Float0[num3 + j]; + num++; + if (num == int4) + { + num = 0; + i++; + } + } + } + return 0; + } - public int method_4(OggClass3 oggClass3) - { + public int method_4(OggClass3 oggClass3) + { var num = 0; - var @class = OggData; - if (@class == null) - { - return num; - } - var num2 = oggClass3.method_2(@class.Int2); - if (num2 >= 0) - { - num = @class.Int0[num2]; - oggClass3.method_3(@class.Int1[num2]); - if (num <= 0) - { - return -num; - } - } - do - { - switch (oggClass3.method_7()) - { - case 0: - num = @class.Int3[num]; - goto IL_46; - case 1: - num = @class.Int4[num]; - goto IL_46; - } - return -1; - IL_46:; - } - while (num > 0); - return -num; - } + var @class = OggData; + if (@class == null) + { + return num; + } + var num2 = oggClass3.method_2(@class.Int2); + if (num2 >= 0) + { + num = @class.Int0[num2]; + oggClass3.method_3(@class.Int1[num2]); + if (num <= 0) + { + return -num; + } + } + do + { + switch (oggClass3.method_7()) + { + case 0: + num = @class.Int3[num]; + goto IL_46; + case 1: + num = @class.Int4[num]; + goto IL_46; + } + return -1; + IL_46: + ; + } while (num > 0); + return -num; + } + + public void method_5() + { + } - public void method_5() - { - } - public int method_6(OggClass2 oggClass2) - { + public int method_6(OggClass2 oggClass2) + { OggClass2 = oggClass2; - Int1 = oggClass2.Int1; - Int0 = oggClass2.Int0; + Int1 = oggClass2.Int1; + Int0 = oggClass2.Int0; Float0 = oggClass2.method_3(); OggData = GetOggData(); if (OggData == null) - { + { method_5(); return -1; - } + } return 0; - } - + } + internal static int[] smethod_0(int[] numArray, int num) { var numArray1 = new int[33]; @@ -229,7 +230,7 @@ internal static int[] smethod_0(int[] numArray, int num) break; } } - for (var j = num1 + 1; j < 33 && (ulong)(numArray1[j] >> 1) == (ulong)num2; j++) + for (var j = num1 + 1; j < 33 && (ulong) (numArray1[j] >> 1) == (ulong) num2; j++) { num2 = numArray1[j]; numArray1[j] = numArray1[j - 1] << 1; @@ -250,101 +251,101 @@ internal static int[] smethod_0(int[] numArray, int num) } public OggData GetOggData() - { + { var num = 0; - var oggData = new OggData(); - var array = oggData.Int3 = new int[Int1 * 2]; - var array2 = oggData.Int4 = new int[Int1 * 2]; - var array3 = smethod_0(OggClass2.Int2, OggClass2.Int1); + var oggData = new OggData(); + var array = oggData.Int3 = new int[Int1 * 2]; + var array2 = oggData.Int4 = new int[Int1 * 2]; + var array3 = smethod_0(OggClass2.Int2, OggClass2.Int1); if (array3 == null) - { - return null; - } + { + return null; + } oggData.Int5 = Int1 * 2; for (var i = 0; i < Int1; i++) - { - if (OggClass2.Int2[i] > 0) - { - var num2 = 0; - int j; + { + if (OggClass2.Int2[i] > 0) + { + var num2 = 0; + int j; for (j = 0; j < OggClass2.Int2[i] - 1; j++) - { - if (((uint)array3[i] >> j & 1u) == 0u) - { + { + if (((uint) array3[i] >> j & 1u) == 0u) + { if (array[num2] == 0) - { + { num = (array[num2] = num + 1); - } + } num2 = array[num2]; } - else - { + else + { if (array2[num2] == 0) - { + { num = (array2[num2] = num + 1); - } - num2 = array2[num2]; + } + num2 = array2[num2]; } - } - if (((uint)array3[i] >> j & 1u) == 0u) - { - array[num2] = -i; - } - else - { - array2[num2] = -i; - } + } + if (((uint) array3[i] >> j & 1u) == 0u) + { + array[num2] = -i; + } + else + { + array2[num2] = -i; + } } - } + } oggData.Int2 = smethod_1(Int1) - 4; - if (oggData.Int2 < 5) - { - oggData.Int2 = 5; - } - var num3 = 1 << oggData.Int2; - oggData.Int0 = new int[num3]; - oggData.Int1 = new int[num3]; - for (var k = 0; k < num3; k++) - { - var num4 = 0; - var num5 = 0; - while (num5 < oggData.Int2 && (num4 > 0 || num5 == 0)) - { - if ((k & 1 << num5) != 0) - { - num4 = array2[num4]; - } - else - { - num4 = array[num4]; - } - num5++; - } - oggData.Int0[k] = num4; - oggData.Int1[k] = num5; - } - return oggData; - } + if (oggData.Int2 < 5) + { + oggData.Int2 = 5; + } + var num3 = 1 << oggData.Int2; + oggData.Int0 = new int[num3]; + oggData.Int1 = new int[num3]; + for (var k = 0; k < num3; k++) + { + var num4 = 0; + var num5 = 0; + while (num5 < oggData.Int2 && (num4 > 0 || num5 == 0)) + { + if ((k & 1 << num5) != 0) + { + num4 = array2[num4]; + } + else + { + num4 = array[num4]; + } + num5++; + } + oggData.Int0[k] = num4; + oggData.Int1[k] = num5; + } + return oggData; + } private void PrintArray(int[] array) { Console.Write("{"); - foreach(var i in array) + foreach (var i in array) { Console.Write(i + ", "); } Console.Write("}\n"); } - public static int smethod_1(int int3) - { - var num = 0; - while (int3 != 0) - { - num++; - int3 = (int)((uint)int3 >> 1); - } - return num; - } - } -} + public static int smethod_1(int int3) + { + var num = 0; + while (int3 != 0) + { + num++; + int3 = (int) ((uint) int3 >> 1); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceD/OGGData.cs b/GHNamespaceD/OGGData.cs index 29116b6..2a11964 100644 --- a/GHNamespaceD/OGGData.cs +++ b/GHNamespaceD/OGGData.cs @@ -1,17 +1,17 @@ namespace GHNamespaceD { - public class OggData - { - public int[] Int0; + public class OggData + { + public int[] Int0; - public int[] Int1; + public int[] Int1; - public int Int2; + public int Int2; - public int[] Int3; + public int[] Int3; - public int[] Int4; + public int[] Int4; - public int Int5; - } -} + public int Int5; + } +} \ No newline at end of file diff --git a/GHNamespaceD/Stream6.cs b/GHNamespaceD/Stream6.cs index e726564..5780794 100644 --- a/GHNamespaceD/Stream6.cs +++ b/GHNamespaceD/Stream6.cs @@ -8,82 +8,82 @@ namespace GHNamespaceD { - public class Stream6 : GenericAudioStream, IDisposable - { - private readonly Class16 _class160; - - private readonly Class61 _class610; - - private readonly Class78 _class780; - - private readonly VorbisClass _class750; - - private readonly Class33 _class330; - - private readonly Class74 _class740; - - public override bool CanRead => throw new NotImplementedException(); - - public override bool CanSeek => throw new NotImplementedException(); - - public override bool CanWrite => throw new NotImplementedException(); - - public override long Length => throw new NotImplementedException(); - - public override long Position - { - get => throw new NotImplementedException(); - set => throw new NotImplementedException(); - } - - public override Class16 vmethod_1() - { - return _class160; - } - - public void method_0() - { - _class780.method_1(); - _class740.method_0(); - _class330.method_0(); - _class750.method_0(); - _class610.method_0(); - Console.WriteLine("Done."); - FileStream.Close(); - } - - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotImplementedException(); - } - - public override void SetLength(long value) - { - throw new NotImplementedException(); - } - - public override int Read(byte[] buffer, int offset, int count) - { - throw new NotImplementedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new InvalidOperationException(); - } - - private void method_1(bool bool0) - { - if (bool0) - { - method_0(); - } - } - - public new void Dispose() - { - method_1(true); - GC.SuppressFinalize(this); - } - } -} + public class Stream6 : GenericAudioStream, IDisposable + { + private readonly Class16 _class160; + + private readonly Class61 _class610; + + private readonly Class78 _class780; + + private readonly VorbisClass _class750; + + private readonly Class33 _class330; + + private readonly Class74 _class740; + + public override bool CanRead => throw new NotImplementedException(); + + public override bool CanSeek => throw new NotImplementedException(); + + public override bool CanWrite => throw new NotImplementedException(); + + public override long Length => throw new NotImplementedException(); + + public override long Position + { + get => throw new NotImplementedException(); + set => throw new NotImplementedException(); + } + + public override Class16 vmethod_1() + { + return _class160; + } + + public void method_0() + { + _class780.method_1(); + _class740.method_0(); + _class330.method_0(); + _class750.method_0(); + _class610.method_0(); + Console.WriteLine("Done."); + FileStream.Close(); + } + + public override long Seek(long offset, SeekOrigin origin) + { + throw new NotImplementedException(); + } + + public override void SetLength(long value) + { + throw new NotImplementedException(); + } + + public override int Read(byte[] buffer, int offset, int count) + { + throw new NotImplementedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new InvalidOperationException(); + } + + private void method_1(bool bool0) + { + if (bool0) + { + method_0(); + } + } + + public new void Dispose() + { + method_1(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/ArrayPointerRootNode.cs b/GHNamespaceE/ArrayPointerRootNode.cs index 1c384e9..99761f8 100644 --- a/GHNamespaceE/ArrayPointerRootNode.cs +++ b/GHNamespaceE/ArrayPointerRootNode.cs @@ -3,71 +3,73 @@ namespace GHNamespaceE { - public class ArrayPointerRootNode : ProbablyRootNode - { - public ArrayPointerRootNode() - { - vmethod_0(); - } + public class ArrayPointerRootNode : ProbablyRootNode + { + public ArrayPointerRootNode() + { + vmethod_0(); + } - public ArrayPointerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public ArrayPointerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public ArrayPointerRootNode(int int2) - { - Int0 = int2; - vmethod_0(); - } + public ArrayPointerRootNode(int int2) + { + Int0 = int2; + vmethod_0(); + } - public ArrayPointerRootNode(string string0, string string1, AbsTreeNode11 class2760) : this(QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), class2760) - { - } + public ArrayPointerRootNode(string string0, string string1, AbsTreeNode11 class2760) : this( + QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), class2760) + { + } - public ArrayPointerRootNode(string string0, int int2, AbsTreeNode11 class2760) : this(QbSongClass1.AddKeyToDictionary(string0), int2, class2760) - { - } + public ArrayPointerRootNode(string string0, int int2, AbsTreeNode11 class2760) : this( + QbSongClass1.AddKeyToDictionary(string0), int2, class2760) + { + } - public ArrayPointerRootNode(int int2, int int3, AbsTreeNode11 class2760) - { - Int0 = int2; - Int1 = int3; - Nodes.Add(class2760); - vmethod_0(); - } + public ArrayPointerRootNode(int int2, int int3, AbsTreeNode11 class2760) + { + Int0 = int2; + Int1 = int3; + Nodes.Add(class2760); + vmethod_0(); + } - public override int vmethod_1() - { - return 7; - } + public override int vmethod_1() + { + return 7; + } - public AbsTreeNode11 method_7() - { - if (Nodes.Count != 0) - { - return (AbsTreeNode11)FirstNode; - } - return null; - } + public AbsTreeNode11 method_7() + { + if (Nodes.Count != 0) + { + return (AbsTreeNode11) FirstNode; + } + return null; + } - public void method_8(AbsTreeNode11 class2760) - { - if (Nodes.Count != 0) - { - Nodes[0] = class2760; - return; - } - Nodes.Add(class2760); - } + public void method_8(AbsTreeNode11 class2760) + { + if (Nodes.Count != 0) + { + Nodes[0] = class2760; + return; + } + Nodes.Add(class2760); + } - public override string GetNodeText() - { - return "Array Pointer Root"; - } + public override string GetNodeText() + { + return "Array Pointer Root"; + } - public override byte vmethod_16() - { - return 12; - } - } -} + public override byte vmethod_16() + { + return 12; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/Class309.cs b/GHNamespaceE/Class309.cs index 8374365..1b4003d 100644 --- a/GHNamespaceE/Class309.cs +++ b/GHNamespaceE/Class309.cs @@ -6,262 +6,267 @@ namespace GHNamespaceE { - public class Class309 : ZzGenericNode1, IDisposable, INterface12 - { - private int _int0; - - private int _int1; - - private int _int2; - - private int _int3; - - private int _int4; - - private int _int5; - - private Enum35 _enum350; - - private bool _bool3; - - public Class309() : this("newfile.qb") - { - } - - public Class309(string string0) - { - Text = KeyGenerator.GetFileName(string0); - _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); - _int3 = QbSongClass1.AddKeyToDictionary(string0); - _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); - ImageIndex = 40; - SelectedImageIndex = 40; - _bool3 = true; - } - - public Class309(string string0, ZzGenericNode1 class3080) : this(string0) - { - foreach (AbstractTreeNode1 node in class3080.Nodes) - { - Nodes.Add(node); - } - } - - public Class309(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) - { - Text = (QbSongClass1.ContainsKey(int9) ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) : ("0x" + KeyGenerator.ValToHex32Bit(int9))); - _int2 = int6; - _int0 = int7; - _int1 = int8; - _int3 = int9; - _int4 = int10; - _int5 = int11; - _enum350 = enum351; - ImageIndex = 40; - SelectedImageIndex = 40; - _bool3 = false; - } - - public int imethod_0() - { - return _int0; - } - - public void imethod_1(int int6) - { - _int0 = int6; - } - - public int imethod_2() - { - if (!imethod_18()) - { - return method_11(); - } - return _int1; - } - - public void imethod_3(int int6) - { - _int1 = int6; - } - - public int imethod_4() - { - return _int2; - } - - public void imethod_5(int int6) - { - _int2 = int6; - } - - public string imethod_6() - { - if (!QbSongClass1.ContainsKey(imethod_4())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); - } - return QbSongClass1.GetDictString(imethod_4()); - } - - public int imethod_7() - { - if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) - { - return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); - } - return _int3; - } - - public void imethod_8(int int6) - { - _int3 = int6; - } - - public string imethod_9() - { - if (!QbSongClass1.ContainsKey(imethod_7())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); - } - return QbSongClass1.GetDictString(imethod_7()); - } - - public int imethod_10() - { - return _int4; - } - - public void imethod_11(int int6) - { - _int4 = int6; - } - - public int imethod_12() - { - return _int5; - } - - public void imethod_13(int int6) - { - _int5 = int6; - } - - public Enum35 imethod_14() - { - return _enum350; - } - - public void imethod_15(Enum35 enum351) - { - _enum350 = enum351; - } - - public byte[] imethod_16() - { - return method_7(); - } - - public void imethod_17(byte[] byte1) - { - var stream26 = new Stream26(byte1); - ZzGenericNode1 @class; - if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) - { - TreeNode treeNode = this; - var level = treeNode.Level; - while (level-- != 0) - { - treeNode = treeNode.Parent; - } - if (treeNode is ZzPakNode2 && (treeNode as ZzPakNode2).Class3180 != null) - { - var string_ = imethod_9().Contains(".qb") ? imethod_9().Replace(".qb", ".qs") : (imethod_9() + ".qs"); - if ((treeNode as ZzPakNode2).Class3180.method_6(string_)) - { - @class = new ZzGenericNode1("TempFile", stream26, (treeNode as ZzPakNode2).Class3180.method_9(string_).Dictionary0); - } - else - { - @class = new ZzGenericNode1("TempFile", stream26); - } - } - else - { - @class = new ZzGenericNode1("TempFile", stream26); - } - } - else - { - @class = new ZzGenericNode1("TempFile", stream26); - } - Nodes.Clear(); - foreach (AbstractTreeNode1 node in @class.Nodes) - { - Nodes.Add(node); - } - bool flag; - vmethod_9(flag = @class.vmethod_8()); - if (flag) - { - vmethod_11(@class.vmethod_10()); - } - Bool1 = @class.vmethod_7(); - _bool3 = true; - } - - public bool imethod_18() - { - return !_bool3 && Nodes.Count == 0; - } - - public void imethod_19() - { - Nodes.Clear(); - _bool3 = false; - } - - public T imethod_20(T gparam0) where T : INterface12 - { - gparam0.imethod_1(_int0); - gparam0.imethod_3(_int1); - gparam0.imethod_5(_int2); - gparam0.imethod_8(_int3); - gparam0.imethod_11(_int4); - gparam0.imethod_13(_int5); - gparam0.imethod_15(_enum350); - if (!imethod_18()) - { - gparam0.imethod_17(imethod_16()); - } - else - { - gparam0.imethod_19(); - } - return gparam0; - } - - public void Dispose() - { - imethod_19(); - } - - public override object Clone() - { - var @interface = (INterface12)base.Clone(); - @interface.imethod_1(_int0); - @interface.imethod_3(_int1); - @interface.imethod_5(_int2); - @interface.imethod_8(_int3); - @interface.imethod_11(_int4); - @interface.imethod_13(_int5); - @interface.imethod_15(_enum350); - if (imethod_18()) - { - @interface.imethod_19(); - } - return @interface; - } - } -} + public class Class309 : ZzGenericNode1, IDisposable, INterface12 + { + private int _int0; + + private int _int1; + + private int _int2; + + private int _int3; + + private int _int4; + + private int _int5; + + private Enum35 _enum350; + + private bool _bool3; + + public Class309() : this("newfile.qb") + { + } + + public Class309(string string0) + { + Text = KeyGenerator.GetFileName(string0); + _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); + _int3 = QbSongClass1.AddKeyToDictionary(string0); + _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); + ImageIndex = 40; + SelectedImageIndex = 40; + _bool3 = true; + } + + public Class309(string string0, ZzGenericNode1 class3080) : this(string0) + { + foreach (AbstractTreeNode1 node in class3080.Nodes) + { + Nodes.Add(node); + } + } + + public Class309(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) + { + Text = (QbSongClass1.ContainsKey(int9) + ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) + : ("0x" + KeyGenerator.ValToHex32Bit(int9))); + _int2 = int6; + _int0 = int7; + _int1 = int8; + _int3 = int9; + _int4 = int10; + _int5 = int11; + _enum350 = enum351; + ImageIndex = 40; + SelectedImageIndex = 40; + _bool3 = false; + } + + public int imethod_0() + { + return _int0; + } + + public void imethod_1(int int6) + { + _int0 = int6; + } + + public int imethod_2() + { + if (!imethod_18()) + { + return method_11(); + } + return _int1; + } + + public void imethod_3(int int6) + { + _int1 = int6; + } + + public int imethod_4() + { + return _int2; + } + + public void imethod_5(int int6) + { + _int2 = int6; + } + + public string imethod_6() + { + if (!QbSongClass1.ContainsKey(imethod_4())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); + } + return QbSongClass1.GetDictString(imethod_4()); + } + + public int imethod_7() + { + if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) + { + return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); + } + return _int3; + } + + public void imethod_8(int int6) + { + _int3 = int6; + } + + public string imethod_9() + { + if (!QbSongClass1.ContainsKey(imethod_7())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); + } + return QbSongClass1.GetDictString(imethod_7()); + } + + public int imethod_10() + { + return _int4; + } + + public void imethod_11(int int6) + { + _int4 = int6; + } + + public int imethod_12() + { + return _int5; + } + + public void imethod_13(int int6) + { + _int5 = int6; + } + + public Enum35 imethod_14() + { + return _enum350; + } + + public void imethod_15(Enum35 enum351) + { + _enum350 = enum351; + } + + public byte[] imethod_16() + { + return method_7(); + } + + public void imethod_17(byte[] byte1) + { + var stream26 = new Stream26(byte1); + ZzGenericNode1 @class; + if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) + { + TreeNode treeNode = this; + var level = treeNode.Level; + while (level-- != 0) + { + treeNode = treeNode.Parent; + } + if (treeNode is ZzPakNode2 && (treeNode as ZzPakNode2).Class3180 != null) + { + var string_ = imethod_9().Contains(".qb") + ? imethod_9().Replace(".qb", ".qs") + : (imethod_9() + ".qs"); + if ((treeNode as ZzPakNode2).Class3180.method_6(string_)) + { + @class = new ZzGenericNode1("TempFile", stream26, + (treeNode as ZzPakNode2).Class3180.method_9(string_).Dictionary0); + } + else + { + @class = new ZzGenericNode1("TempFile", stream26); + } + } + else + { + @class = new ZzGenericNode1("TempFile", stream26); + } + } + else + { + @class = new ZzGenericNode1("TempFile", stream26); + } + Nodes.Clear(); + foreach (AbstractTreeNode1 node in @class.Nodes) + { + Nodes.Add(node); + } + bool flag; + vmethod_9(flag = @class.vmethod_8()); + if (flag) + { + vmethod_11(@class.vmethod_10()); + } + Bool1 = @class.vmethod_7(); + _bool3 = true; + } + + public bool imethod_18() + { + return !_bool3 && Nodes.Count == 0; + } + + public void imethod_19() + { + Nodes.Clear(); + _bool3 = false; + } + + public T imethod_20(T gparam0) where T : INterface12 + { + gparam0.imethod_1(_int0); + gparam0.imethod_3(_int1); + gparam0.imethod_5(_int2); + gparam0.imethod_8(_int3); + gparam0.imethod_11(_int4); + gparam0.imethod_13(_int5); + gparam0.imethod_15(_enum350); + if (!imethod_18()) + { + gparam0.imethod_17(imethod_16()); + } + else + { + gparam0.imethod_19(); + } + return gparam0; + } + + public void Dispose() + { + imethod_19(); + } + + public override object Clone() + { + var @interface = (INterface12) base.Clone(); + @interface.imethod_1(_int0); + @interface.imethod_3(_int1); + @interface.imethod_5(_int2); + @interface.imethod_8(_int3); + @interface.imethod_11(_int4); + @interface.imethod_13(_int5); + @interface.imethod_15(_enum350); + if (imethod_18()) + { + @interface.imethod_19(); + } + return @interface; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/Class328.cs b/GHNamespaceE/Class328.cs index fd4cfee..dd41f36 100644 --- a/GHNamespaceE/Class328.cs +++ b/GHNamespaceE/Class328.cs @@ -8,277 +8,279 @@ namespace GHNamespaceE { - public class Class328 : TreeNode, IDisposable, INterface12 - { - private int _int0; - - private int _int1; - - private int _int2; - - private int _int3; - - private int _int4; - - private int _int5; - - private Enum35 _enum350; - - public Dictionary Dictionary0; - - private Encoding _encoding0; - - public Class328() : this("newfile.qs") - { - } - - public Class328(string string0) - { - _encoding0 = Encoding.Unicode; - //base..ctor(); - Text = KeyGenerator.GetFileName(string0); - _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); - _int3 = QbSongClass1.AddKeyToDictionary(string0); - _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); - ImageIndex = 39; - SelectedImageIndex = 39; - Dictionary0 = null; - } - - public Class328(string string0, Dictionary dictionary1) : this(string0) - { - Dictionary0 = dictionary1; - } - - public Class328(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) - { - _encoding0 = Encoding.Unicode; - //base..ctor(); - Text = (QbSongClass1.ContainsKey(int9) ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) : ("0x" + KeyGenerator.ValToHex32Bit(int9))); - _int2 = int6; - _int0 = int7; - _int1 = int8; - _int3 = int9; - _int4 = int10; - _int5 = int11; - _enum350 = enum351; - ImageIndex = 39; - SelectedImageIndex = 39; - Dictionary0 = null; - } - - public int imethod_0() - { - return _int0; - } - - public void imethod_1(int int6) - { - _int0 = int6; - } - - public int imethod_2() - { - if (Dictionary0 == null) - { - return _int1; - } - var num = 2; - if (Dictionary0.Count != 0) - { - num = Dictionary0.Keys.Count * 12 + 1; - foreach (var current in Dictionary0.Keys) - { - num += Dictionary0[current].Length; - } - } - return _encoding0.GetMaxByteCount(num); - } - - public void imethod_3(int int6) - { - if (Dictionary0 == null) - { - _int1 = int6; - } - } - - public int imethod_4() - { - return _int2; - } - - public void imethod_5(int int6) - { - _int2 = int6; - } - - public string imethod_6() - { - if (!QbSongClass1.ContainsKey(imethod_4())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); - } - return QbSongClass1.GetDictString(imethod_4()); - } - - public int imethod_7() - { - if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) - { - return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); - } - return _int3; - } - - public void imethod_8(int int6) - { - _int3 = int6; - } - - public string imethod_9() - { - if (!QbSongClass1.ContainsKey(imethod_7())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); - } - return QbSongClass1.GetDictString(imethod_7()); - } - - public int imethod_10() - { - return _int4; - } - - public void imethod_11(int int6) - { - _int4 = int6; - } - - public int imethod_12() - { - return _int5; - } - - public void imethod_13(int int6) - { - _int5 = int6; - } - - public Enum35 imethod_14() - { - return _enum350; - } - - public void imethod_15(Enum35 enum351) - { - _enum350 = enum351; - } - - public byte[] imethod_16() - { - var memoryStream = new MemoryStream(); - using (var streamWriter = new StreamWriter(memoryStream, _encoding0)) - { - if (Dictionary0 != null && Dictionary0.Count != 0) - { - foreach (var current in Dictionary0.Keys) - { - streamWriter.Write("{0} \"{1}\"\n", KeyGenerator.ValToHex32Bit(current), Dictionary0[current]); - } - streamWriter.Write("\n"); - } - else - { - streamWriter.Write("\n\n"); - } - } - return memoryStream.ToArray(); - } - - public void imethod_17(byte[] byte0) - { - Dictionary0 = new Dictionary(); - var streamReader = new StreamReader(new MemoryStream(byte0), _encoding0); - _encoding0 = streamReader.CurrentEncoding; - string text; - while ((text = streamReader.ReadLine()) != null) - { - if (!(text == "")) - { - var array = text.Split(new[] - { - ' ' - }, 2, StringSplitOptions.RemoveEmptyEntries); - int key; - try - { - key = KeyGenerator.HexStringToInt(array[0]); - } - catch (Exception) - { - continue; - } - if (!Dictionary0.ContainsKey(key)) - { - Dictionary0.Add(key, array[1].Trim('"')); - } - } - } - streamReader.Close(); - streamReader.Dispose(); - } - - public bool imethod_18() - { - return Dictionary0 == null; - } - - public void imethod_19() - { - Dictionary0 = null; - } - - public T imethod_20(T gparam0) where T : INterface12 - { - gparam0.imethod_1(_int0); - gparam0.imethod_3(_int1); - gparam0.imethod_5(_int2); - gparam0.imethod_8(_int3); - gparam0.imethod_11(_int4); - gparam0.imethod_13(_int5); - gparam0.imethod_15(_enum350); - if (!imethod_18()) - { - gparam0.imethod_17(imethod_16()); - } - else - { - gparam0.imethod_19(); - } - return gparam0; - } - - public void Dispose() - { - imethod_19(); - } - - public override object Clone() - { - var @class = (Class328)base.Clone(); - @class.imethod_1(_int0); - @class.imethod_3(_int1); - @class.imethod_5(_int2); - @class.imethod_8(_int3); - @class.imethod_11(_int4); - @class.imethod_13(_int5); - @class.imethod_15(_enum350); - if (imethod_18()) - { - @class.imethod_19(); - } - return @class; - } - } -} + public class Class328 : TreeNode, IDisposable, INterface12 + { + private int _int0; + + private int _int1; + + private int _int2; + + private int _int3; + + private int _int4; + + private int _int5; + + private Enum35 _enum350; + + public Dictionary Dictionary0; + + private Encoding _encoding0; + + public Class328() : this("newfile.qs") + { + } + + public Class328(string string0) + { + _encoding0 = Encoding.Unicode; + //base..ctor(); + Text = KeyGenerator.GetFileName(string0); + _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); + _int3 = QbSongClass1.AddKeyToDictionary(string0); + _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); + ImageIndex = 39; + SelectedImageIndex = 39; + Dictionary0 = null; + } + + public Class328(string string0, Dictionary dictionary1) : this(string0) + { + Dictionary0 = dictionary1; + } + + public Class328(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) + { + _encoding0 = Encoding.Unicode; + //base..ctor(); + Text = (QbSongClass1.ContainsKey(int9) + ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) + : ("0x" + KeyGenerator.ValToHex32Bit(int9))); + _int2 = int6; + _int0 = int7; + _int1 = int8; + _int3 = int9; + _int4 = int10; + _int5 = int11; + _enum350 = enum351; + ImageIndex = 39; + SelectedImageIndex = 39; + Dictionary0 = null; + } + + public int imethod_0() + { + return _int0; + } + + public void imethod_1(int int6) + { + _int0 = int6; + } + + public int imethod_2() + { + if (Dictionary0 == null) + { + return _int1; + } + var num = 2; + if (Dictionary0.Count != 0) + { + num = Dictionary0.Keys.Count * 12 + 1; + foreach (var current in Dictionary0.Keys) + { + num += Dictionary0[current].Length; + } + } + return _encoding0.GetMaxByteCount(num); + } + + public void imethod_3(int int6) + { + if (Dictionary0 == null) + { + _int1 = int6; + } + } + + public int imethod_4() + { + return _int2; + } + + public void imethod_5(int int6) + { + _int2 = int6; + } + + public string imethod_6() + { + if (!QbSongClass1.ContainsKey(imethod_4())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); + } + return QbSongClass1.GetDictString(imethod_4()); + } + + public int imethod_7() + { + if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) + { + return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); + } + return _int3; + } + + public void imethod_8(int int6) + { + _int3 = int6; + } + + public string imethod_9() + { + if (!QbSongClass1.ContainsKey(imethod_7())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); + } + return QbSongClass1.GetDictString(imethod_7()); + } + + public int imethod_10() + { + return _int4; + } + + public void imethod_11(int int6) + { + _int4 = int6; + } + + public int imethod_12() + { + return _int5; + } + + public void imethod_13(int int6) + { + _int5 = int6; + } + + public Enum35 imethod_14() + { + return _enum350; + } + + public void imethod_15(Enum35 enum351) + { + _enum350 = enum351; + } + + public byte[] imethod_16() + { + var memoryStream = new MemoryStream(); + using (var streamWriter = new StreamWriter(memoryStream, _encoding0)) + { + if (Dictionary0 != null && Dictionary0.Count != 0) + { + foreach (var current in Dictionary0.Keys) + { + streamWriter.Write("{0} \"{1}\"\n", KeyGenerator.ValToHex32Bit(current), Dictionary0[current]); + } + streamWriter.Write("\n"); + } + else + { + streamWriter.Write("\n\n"); + } + } + return memoryStream.ToArray(); + } + + public void imethod_17(byte[] byte0) + { + Dictionary0 = new Dictionary(); + var streamReader = new StreamReader(new MemoryStream(byte0), _encoding0); + _encoding0 = streamReader.CurrentEncoding; + string text; + while ((text = streamReader.ReadLine()) != null) + { + if (!(text == "")) + { + var array = text.Split(new[] + { + ' ' + }, 2, StringSplitOptions.RemoveEmptyEntries); + int key; + try + { + key = KeyGenerator.HexStringToInt(array[0]); + } + catch (Exception) + { + continue; + } + if (!Dictionary0.ContainsKey(key)) + { + Dictionary0.Add(key, array[1].Trim('"')); + } + } + } + streamReader.Close(); + streamReader.Dispose(); + } + + public bool imethod_18() + { + return Dictionary0 == null; + } + + public void imethod_19() + { + Dictionary0 = null; + } + + public T imethod_20(T gparam0) where T : INterface12 + { + gparam0.imethod_1(_int0); + gparam0.imethod_3(_int1); + gparam0.imethod_5(_int2); + gparam0.imethod_8(_int3); + gparam0.imethod_11(_int4); + gparam0.imethod_13(_int5); + gparam0.imethod_15(_enum350); + if (!imethod_18()) + { + gparam0.imethod_17(imethod_16()); + } + else + { + gparam0.imethod_19(); + } + return gparam0; + } + + public void Dispose() + { + imethod_19(); + } + + public override object Clone() + { + var @class = (Class328) base.Clone(); + @class.imethod_1(_int0); + @class.imethod_3(_int1); + @class.imethod_5(_int2); + @class.imethod_8(_int3); + @class.imethod_11(_int4); + @class.imethod_13(_int5); + @class.imethod_15(_enum350); + if (imethod_18()) + { + @class.imethod_19(); + } + return @class; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/Enum35.cs b/GHNamespaceE/Enum35.cs index 531d163..a7b8951 100644 --- a/GHNamespaceE/Enum35.cs +++ b/GHNamespaceE/Enum35.cs @@ -2,14 +2,14 @@ namespace GHNamespaceE { - [Flags] - public enum Enum35 - { - Flag0 = 0, - Flag1 = 2, - Flag2 = 16, - Flag3 = 32, - Flag4 = 256, - Flag5 = 524288 - } -} + [Flags] + public enum Enum35 + { + Flag0 = 0, + Flag1 = 2, + Flag2 = 16, + Flag3 = 32, + Flag4 = 256, + Flag5 = 524288 + } +} \ No newline at end of file diff --git a/GHNamespaceE/FileTagStructureNode.cs b/GHNamespaceE/FileTagStructureNode.cs index 34983c5..1a3edb1 100644 --- a/GHNamespaceE/FileTagStructureNode.cs +++ b/GHNamespaceE/FileTagStructureNode.cs @@ -3,65 +3,65 @@ namespace GHNamespaceE { - public class FileTagStructureNode : ZzUnkNode295 - { - public FileTagStructureNode() - { - vmethod_0(); - } + public class FileTagStructureNode : ZzUnkNode295 + { + public FileTagStructureNode() + { + vmethod_0(); + } - public FileTagStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public FileTagStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public FileTagStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public FileTagStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public FileTagStructureNode(string string0, string string1) - { - Int0 = QbSongClass1.AddKeyToDictionary(string0); - Nodes.Add(new TagValueNode(string1)); - vmethod_0(); - } + public FileTagStructureNode(string string0, string string1) + { + Int0 = QbSongClass1.AddKeyToDictionary(string0); + Nodes.Add(new TagValueNode(string1)); + vmethod_0(); + } - public override int vmethod_1() - { - return 26; - } + public override int vmethod_1() + { + return 26; + } - public string method_8() - { - if (Nodes.Count != 0) - { - return ((TagValueNode)FirstNode).method_2(); - } - return null; - } + public string method_8() + { + if (Nodes.Count != 0) + { + return ((TagValueNode) FirstNode).method_2(); + } + return null; + } - public int method_9() - { - if (Nodes.Count != 0) - { - return ((TagValueNode)FirstNode).Int0; - } - return 0; - } + public int method_9() + { + if (Nodes.Count != 0) + { + return ((TagValueNode) FirstNode).Int0; + } + return 0; + } - public override string GetNodeText() - { - return "File Tag Structure"; - } + public override string GetNodeText() + { + return "File Tag Structure"; + } - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 53; - } - return 154; - } - } -} + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 53; + } + return 154; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/FloatStructureNode.cs b/GHNamespaceE/FloatStructureNode.cs index 218de3a..e395427 100644 --- a/GHNamespaceE/FloatStructureNode.cs +++ b/GHNamespaceE/FloatStructureNode.cs @@ -2,60 +2,60 @@ namespace GHNamespaceE { - public class FloatStructureNode : ZzUnkNode295 - { - public FloatStructureNode() - { - vmethod_0(); - } - - public FloatStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } - - public FloatStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } - - public FloatStructureNode(string string0, float float0) : this(QbSongClass1.AddKeyToDictionary(string0), float0) - { - } - - public FloatStructureNode(int int1, float float0) - { - Int0 = int1; - Nodes.Add(new FloatValueNode(float0)); - vmethod_0(); - } - - public override int vmethod_1() - { - return 24; - } - - public float method_8() - { - if (Nodes.Count != 0) - { - return ((FloatValueNode)FirstNode).Float0; - } - return 0f; - } - - public override string GetNodeText() - { - return "Float Structure"; - } - - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 5; - } - return 130; - } - } -} + public class FloatStructureNode : ZzUnkNode295 + { + public FloatStructureNode() + { + vmethod_0(); + } + + public FloatStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } + + public FloatStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } + + public FloatStructureNode(string string0, float float0) : this(QbSongClass1.AddKeyToDictionary(string0), float0) + { + } + + public FloatStructureNode(int int1, float float0) + { + Int0 = int1; + Nodes.Add(new FloatValueNode(float0)); + vmethod_0(); + } + + public override int vmethod_1() + { + return 24; + } + + public float method_8() + { + if (Nodes.Count != 0) + { + return ((FloatValueNode) FirstNode).Float0; + } + return 0f; + } + + public override string GetNodeText() + { + return "Float Structure"; + } + + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 5; + } + return 130; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/FloatValueNode.cs b/GHNamespaceE/FloatValueNode.cs index ae9ad67..84205d7 100644 --- a/GHNamespaceE/FloatValueNode.cs +++ b/GHNamespaceE/FloatValueNode.cs @@ -3,59 +3,59 @@ namespace GHNamespaceE { - public class FloatValueNode : AbstractTreeNode2 - { - public float Float0; - - public FloatValueNode() - { - vmethod_0(); - } - - public FloatValueNode(float float1) - { - Float0 = float1; - vmethod_0(); - } - - public override int vmethod_1() - { - return 34; - } - - public override object vmethod_7() - { - return Float0; - } - - public override byte[] vmethod_8() - { - return BitConverter.GetBytes(Float0); - } - - public override void vmethod_9(byte[] byte0) - { - Float0 = BitConverter.ToSingle(byte0, 0); - } - - public override string GetText() - { - return string.Concat((double)Float0); - } - - public override string GetNodeText() - { - return "Float Value"; - } - - public override void vmethod_2(ref int int0) - { - int0 += 4; - } - - public static float smethod_0(FloatValueNode class3130) - { - return class3130.Float0; - } - } -} + public class FloatValueNode : AbstractTreeNode2 + { + public float Float0; + + public FloatValueNode() + { + vmethod_0(); + } + + public FloatValueNode(float float1) + { + Float0 = float1; + vmethod_0(); + } + + public override int vmethod_1() + { + return 34; + } + + public override object vmethod_7() + { + return Float0; + } + + public override byte[] vmethod_8() + { + return BitConverter.GetBytes(Float0); + } + + public override void vmethod_9(byte[] byte0) + { + Float0 = BitConverter.ToSingle(byte0, 0); + } + + public override string GetText() + { + return string.Concat((double) Float0); + } + + public override string GetNodeText() + { + return "Float Value"; + } + + public override void vmethod_2(ref int int0) + { + int0 += 4; + } + + public static float smethod_0(FloatValueNode class3130) + { + return class3130.Float0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/FsbClass3.cs b/GHNamespaceE/FsbClass3.cs index d09b8fb..d7f11b5 100644 --- a/GHNamespaceE/FsbClass3.cs +++ b/GHNamespaceE/FsbClass3.cs @@ -4,46 +4,47 @@ namespace GHNamespaceE { - public class FsbClass3 - { - private static readonly byte[] FsbEncryptionKey = Encoding.ASCII.GetBytes("5atu6w4zaw"); + public class FsbClass3 + { + private static readonly byte[] FsbEncryptionKey = Encoding.ASCII.GetBytes("5atu6w4zaw"); - public static long smethod_0(string string0, Stream[] stream0) - { - long length; - using (var @class = new FsbClass1()) - { - @class.Byte0 = FsbEncryptionKey; - @class.Enum200 = FsbEnum1.Const3; - @class.Enum210 = FsbFlags1.Flag0; - for (var i = 0; i < stream0.Length; i++) - { - var stream = stream0[i]; - stream.Position = 0L; - var class2 = AudioManager.smethod_3(stream); - var class3 = new Class168(); - class3.FileName = i + ".mp3"; - class3.Enum220 = (((class2.method_0() == 1) ? FsbFlags2.Flag6 : FsbFlags2.Flag7) | FsbFlags2.Flag10); - class3.Int0 = class2.method_3(); - class3.Ushort0 = 255; - class3.Short0 = 0; - class3.Ushort1 = 255; - class3.Uint3 = (uint)class2.method_0(); - class3.Uint0 = class2.Uint0; - class3.Uint1 = 0u; - class3.Uint2 = class3.Uint0 - 1u; - class3.Float2 = 1f; - class3.Float3 = 10000f; - class3.Int1 = 0; - class3.Short1 = 0; - class3.Short2 = -1; - class3.Stream1 = stream; - @class.method_33().Add(class3); - } - @class.method_16(string0); - length = new FileInfo(string0).Length; - } - return length; - } - } -} + public static long smethod_0(string string0, Stream[] stream0) + { + long length; + using (var @class = new FsbClass1()) + { + @class.Byte0 = FsbEncryptionKey; + @class.Enum200 = FsbEnum1.Const3; + @class.Enum210 = FsbFlags1.Flag0; + for (var i = 0; i < stream0.Length; i++) + { + var stream = stream0[i]; + stream.Position = 0L; + var class2 = AudioManager.smethod_3(stream); + var class3 = new Class168(); + class3.FileName = i + ".mp3"; + class3.Enum220 = (((class2.method_0() == 1) ? FsbFlags2.Flag6 : FsbFlags2.Flag7) | + FsbFlags2.Flag10); + class3.Int0 = class2.method_3(); + class3.Ushort0 = 255; + class3.Short0 = 0; + class3.Ushort1 = 255; + class3.Uint3 = (uint) class2.method_0(); + class3.Uint0 = class2.Uint0; + class3.Uint1 = 0u; + class3.Uint2 = class3.Uint0 - 1u; + class3.Float2 = 1f; + class3.Float3 = 10000f; + class3.Int1 = 0; + class3.Short1 = 0; + class3.Short2 = -1; + class3.Stream1 = stream; + @class.method_33().Add(class3); + } + @class.method_16(string0); + length = new FileInfo(string0).Length; + } + return length; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/IntegerStructureNode.cs b/GHNamespaceE/IntegerStructureNode.cs index 8db6817..da657bf 100644 --- a/GHNamespaceE/IntegerStructureNode.cs +++ b/GHNamespaceE/IntegerStructureNode.cs @@ -3,70 +3,70 @@ namespace GHNamespaceE { - public class IntegerStructureNode : ZzUnkNode295 - { - public IntegerStructureNode() - { - vmethod_0(); - } + public class IntegerStructureNode : ZzUnkNode295 + { + public IntegerStructureNode() + { + vmethod_0(); + } - public IntegerStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public IntegerStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public IntegerStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public IntegerStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public IntegerStructureNode(string string0, int int1) : this(QbSongClass1.AddKeyToDictionary(string0), int1) - { - } + public IntegerStructureNode(string string0, int int1) : this(QbSongClass1.AddKeyToDictionary(string0), int1) + { + } - public IntegerStructureNode(int int1, int int2) - { - Int0 = int1; - Nodes.Add(new IntegerValueNode(int2)); - vmethod_0(); - } + public IntegerStructureNode(int int1, int int2) + { + Int0 = int1; + Nodes.Add(new IntegerValueNode(int2)); + vmethod_0(); + } - public override int vmethod_1() - { - return 23; - } + public override int vmethod_1() + { + return 23; + } - public int method_8() - { - if (Nodes.Count != 0) - { - return ((IntegerValueNode)FirstNode).Int0; - } - return 0; - } + public int method_8() + { + if (Nodes.Count != 0) + { + return ((IntegerValueNode) FirstNode).Int0; + } + return 0; + } - public void method_9(int int1) - { - if (Nodes.Count != 0) - { - ((IntegerValueNode)FirstNode).Int0 = int1; - return; - } - Nodes.Add(new IntegerValueNode(int1)); - } + public void method_9(int int1) + { + if (Nodes.Count != 0) + { + ((IntegerValueNode) FirstNode).Int0 = int1; + return; + } + Nodes.Add(new IntegerValueNode(int1)); + } - public override string GetNodeText() - { - return "Integer Structure"; - } + public override string GetNodeText() + { + return "Integer Structure"; + } - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 3; - } - return 129; - } - } -} + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 3; + } + return 129; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/Interface12.cs b/GHNamespaceE/Interface12.cs index 5370344..1b67f13 100644 --- a/GHNamespaceE/Interface12.cs +++ b/GHNamespaceE/Interface12.cs @@ -2,48 +2,48 @@ namespace GHNamespaceE { - public interface INterface12 : IDisposable - { - int imethod_0(); + public interface INterface12 : IDisposable + { + int imethod_0(); - void imethod_1(int int0); + void imethod_1(int int0); - int imethod_2(); + int imethod_2(); - void imethod_3(int int0); + void imethod_3(int int0); - int imethod_4(); + int imethod_4(); - void imethod_5(int int0); + void imethod_5(int int0); - string imethod_6(); + string imethod_6(); - int imethod_7(); + int imethod_7(); - void imethod_8(int int0); + void imethod_8(int int0); - string imethod_9(); + string imethod_9(); - int imethod_10(); + int imethod_10(); - void imethod_11(int int0); + void imethod_11(int int0); - int imethod_12(); + int imethod_12(); - void imethod_13(int int0); + void imethod_13(int int0); - Enum35 imethod_14(); + Enum35 imethod_14(); - void imethod_15(Enum35 enum350); + void imethod_15(Enum35 enum350); - byte[] imethod_16(); + byte[] imethod_16(); - void imethod_17(byte[] byte0); + void imethod_17(byte[] byte0); - bool imethod_18(); + bool imethod_18(); - void imethod_19(); + void imethod_19(); - T imethod_20(T gparam0) where T : INterface12; - } -} + T imethod_20(T gparam0) where T : INterface12; + } +} \ No newline at end of file diff --git a/GHNamespaceE/PairPointerNode.cs b/GHNamespaceE/PairPointerNode.cs index 4f4d2e9..de86f95 100644 --- a/GHNamespaceE/PairPointerNode.cs +++ b/GHNamespaceE/PairPointerNode.cs @@ -2,30 +2,30 @@ namespace GHNamespaceE { - public class PairPointerNode : ZzUnkNode300 - { - public PairPointerNode() - { - vmethod_0(); - } + public class PairPointerNode : ZzUnkNode300 + { + public PairPointerNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 29; - } + public override int vmethod_1() + { + return 29; + } - public override string GetNodeText() - { - return "Pair Pointer"; - } + public override string GetNodeText() + { + return "Pair Pointer"; + } - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 11; - } - return 133; - } - } -} + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 11; + } + return 133; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/PairPointerRootNode.cs b/GHNamespaceE/PairPointerRootNode.cs index 495c9fd..9636c9c 100644 --- a/GHNamespaceE/PairPointerRootNode.cs +++ b/GHNamespaceE/PairPointerRootNode.cs @@ -2,26 +2,26 @@ namespace GHNamespaceE { - public class PairPointerRootNode : ProbablyRootNode - { - public PairPointerRootNode() - { - vmethod_0(); - } + public class PairPointerRootNode : ProbablyRootNode + { + public PairPointerRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 8; - } + public override int vmethod_1() + { + return 8; + } - public override string GetNodeText() - { - return "Pair Pointer Root"; - } + public override string GetNodeText() + { + return "Pair Pointer Root"; + } - public override byte vmethod_16() - { - return 5; - } - } -} + public override byte vmethod_16() + { + return 5; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/QbSongClass1.cs b/GHNamespaceE/QbSongClass1.cs index e44ec37..704420d 100644 --- a/GHNamespaceE/QbSongClass1.cs +++ b/GHNamespaceE/QbSongClass1.cs @@ -7,209 +7,217 @@ namespace GHNamespaceE { - public static class QbSongClass1 - { - private static readonly Dictionary KeyDict1 = new Dictionary(); + public static class QbSongClass1 + { + private static readonly Dictionary KeyDict1 = new Dictionary(); - private static readonly Dictionary KeyDict2 = new Dictionary(); + private static readonly Dictionary KeyDict2 = new Dictionary(); - public static bool Dirty; //This hasn't been saved yet?.. + public static bool Dirty; //This hasn't been saved yet?.. - public static void smethod_0() - { - if (Dirty) - { - return; - } - AddAllLinesToDictionary(new MemoryStream(ZipManager.smethod_5(KeyGenerator.CryptoMethod(Assembly.GetExecutingAssembly().GetManifestResourceStream("NeversoftTools.NSTreeView.nstags.aes"), "MinimizedNSTags1245"), "nstags.ids"))); - Dirty = true; - } + public static void smethod_0() + { + if (Dirty) + { + return; + } + AddAllLinesToDictionary(new MemoryStream( + ZipManager.smethod_5( + KeyGenerator.CryptoMethod( + Assembly.GetExecutingAssembly() + .GetManifestResourceStream("NeversoftTools.NSTreeView.nstags.aes"), "MinimizedNSTags1245"), + "nstags.ids"))); + Dirty = true; + } - public static void AddAllLinesToDictionary(Stream stream, bool useSecondDictionary = false) - { - using (var streamReader = new StreamReader(stream)) - { - string text; - while ((text = streamReader.ReadLine()) != null) - { - if (!text.Equals("")) - { - var key = KeyGenerator.GetQbKey(text, true); - if (!KeyDict1.ContainsKey(key) && !KeyDict2.ContainsKey(key)) - { - if (useSecondDictionary) - { - KeyDict2.Add(key, text); - } - else - { - KeyDict1.Add(key, text); - } - } - } - } - } - } + public static void AddAllLinesToDictionary(Stream stream, bool useSecondDictionary = false) + { + using (var streamReader = new StreamReader(stream)) + { + string text; + while ((text = streamReader.ReadLine()) != null) + { + if (!text.Equals("")) + { + var key = KeyGenerator.GetQbKey(text, true); + if (!KeyDict1.ContainsKey(key) && !KeyDict2.ContainsKey(key)) + { + if (useSecondDictionary) + { + KeyDict2.Add(key, text); + } + else + { + KeyDict1.Add(key, text); + } + } + } + } + } + } - public static bool ContainsKey(int key) - { - return KeyDict1.ContainsKey(key) || KeyDict2.ContainsKey(key); - } + public static bool ContainsKey(int key) + { + return KeyDict1.ContainsKey(key) || KeyDict2.ContainsKey(key); + } - public static bool smethod_4(string string0) - { - return KeyDict1.ContainsValue(string0.ToLower()); - } + public static bool smethod_4(string string0) + { + return KeyDict1.ContainsValue(string0.ToLower()); + } - public static string GetDictString(int key) - { - if (KeyDict1.ContainsKey(key)) - { - return KeyDict1[key]; - } - if (KeyDict2.ContainsKey(key)) - { - return KeyDict2[key]; - } - return null; - } + public static string GetDictString(int key) + { + if (KeyDict1.ContainsKey(key)) + { + return KeyDict1[key]; + } + if (KeyDict2.ContainsKey(key)) + { + return KeyDict2[key]; + } + return null; + } - public static int smethod_6(string string0) - { - if (!(string0 == "")) - { - return KeyGenerator.GetQbKey(Encoding.Unicode.GetBytes(string0), true); - } - return 0; - } + public static int smethod_6(string string0) + { + if (!(string0 == "")) + { + return KeyGenerator.GetQbKey(Encoding.Unicode.GetBytes(string0), true); + } + return 0; + } - public static void AddStringToDictionary(string str, bool addToTheOtherDictionaryToo = true) - { - if (KeyDict1.ContainsValue(str) || KeyDict2.ContainsValue(str)) - { - return; - } - var key = KeyGenerator.GetQbKey(str, true); - if (addToTheOtherDictionaryToo && !KeyDict2.ContainsKey(key)) - { - KeyDict2.Add(key, str); - return; - } - if (!KeyDict1.ContainsKey(key)) - { - KeyDict1.Add(key, str); - } - } + public static void AddStringToDictionary(string str, bool addToTheOtherDictionaryToo = true) + { + if (KeyDict1.ContainsValue(str) || KeyDict2.ContainsValue(str)) + { + return; + } + var key = KeyGenerator.GetQbKey(str, true); + if (addToTheOtherDictionaryToo && !KeyDict2.ContainsKey(key)) + { + KeyDict2.Add(key, str); + return; + } + if (!KeyDict1.ContainsKey(key)) + { + KeyDict1.Add(key, str); + } + } - public static int AddKeyToDictionary(string qbName) - { - qbName = qbName.ToLower(); - var key = KeyGenerator.GetQbKey(qbName, true); - if (!ContainsKey(key)) - { - KeyDict2.Add(key, qbName); - } - return key; - } + public static int AddKeyToDictionary(string qbName) + { + qbName = qbName.ToLower(); + var key = KeyGenerator.GetQbKey(qbName, true); + if (!ContainsKey(key)) + { + KeyDict2.Add(key, qbName); + } + return key; + } - public static void GenerateSongTrackStuff(string songName) - { - AddStringToDictionary(songName); - string[] singerTypes = { - "_male_", - "_female_" - }; - for (var i = 0; i < singerTypes.Length; i++) - { - var singerGender = singerTypes[i]; - for (var j = 1; j < 10; j++) - { - AddStringToDictionary(string.Concat("gh3_singer", singerGender, songName, "_", j)); - AddStringToDictionary(string.Concat("gh3_singer", singerGender, songName, "_", j, "b")); - } - } - AddStringToDictionary("animload_singer_male_" + songName); - AddStringToDictionary("animload_singer_female_" + songName); - AddStringToDictionary("menu_music_" + songName); - AddStringToDictionary("songs\\" + songName + ".mid.qb"); - AddStringToDictionary("songs\\" + songName + ".mid.qs"); - AddStringToDictionary("songs\\" + songName + ".mid_text.qb"); - AddStringToDictionary("songs\\" + songName + "_song_scripts.qb"); - AddStringToDictionary("data\\songs\\" + songName + ".mid"); - AddStringToDictionary("data\\songs\\" + songName + ".mid_text"); - AddStringToDictionary("data\\songs\\" + songName + "_song_scripts.qb"); - AddStringToDictionary("dlc\\output\\" + songName + ".mid.qb"); - AddStringToDictionary("dlc\\output\\" + songName + ".mid_text.qb"); - AddStringToDictionary("dlc\\output\\" + songName + ".mid"); - AddStringToDictionary("dlc\\output\\" + songName + ".mid_text"); - AddStringToDictionary("dlc\\output\\" + songName + "_song_scripts.qb"); - string[] array2 = { - "", - "rhythm_", - "guitarcoop_", - "rhythmcoop_", - "drum_", - "aux_" - }; - for (var k = 0; k < array2.Length; k++) - { - var text2 = array2[k]; - string[] array3 = { - "easy", - "medium", - "hard", - "expert" - }; - for (var l = 0; l < array3.Length; l++) - { - var text3 = array3[l]; - AddStringToDictionary(songName + "_song_" + text2 + text3); - AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_star")); - AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_starbattlemode")); - AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_tapping")); - AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_whammycontroller")); - } - AddStringToDictionary(songName + "_" + text2 + "faceoffstar"); - AddStringToDictionary(songName + "_" + text2 + "faceoffp1"); - AddStringToDictionary(songName + "_" + text2 + "faceoffp2"); - } - AddStringToDictionary(songName + "_bossbattlep1"); - AddStringToDictionary(songName + "_bossbattlep2"); - AddStringToDictionary(songName + "_timesig"); - AddStringToDictionary(songName + "_fretbars"); - AddStringToDictionary(songName + "_guitar_markers"); - AddStringToDictionary(songName + "_rhythm_markers"); - AddStringToDictionary(songName + "_drum_markers"); - AddStringToDictionary(songName + "_vocals_markers"); - AddStringToDictionary(songName + "_easy_drumfill"); - AddStringToDictionary(songName + "_medium_drumfill"); - AddStringToDictionary(songName + "_hard_drumfill"); - AddStringToDictionary(songName + "_expert_drumfill"); - AddStringToDictionary(songName + "_easy_drumunmute"); - AddStringToDictionary(songName + "_medium_drumunmute"); - AddStringToDictionary(songName + "_hard_drumunmute"); - AddStringToDictionary(songName + "_expert_drumunmute"); - AddStringToDictionary(songName + "_song_vocals"); - AddStringToDictionary(songName + "_vocals_freeform"); - AddStringToDictionary(songName + "_vocals_phrases"); - AddStringToDictionary(songName + "_vocals_note_range"); - AddStringToDictionary(songName + "_lyrics"); - AddStringToDictionary(songName + "_scripts_notes"); - AddStringToDictionary(songName + "_anim_notes"); - AddStringToDictionary(songName + "_triggers_notes"); - AddStringToDictionary(songName + "_cameras_notes"); - AddStringToDictionary(songName + "_lightshow_notes"); - AddStringToDictionary(songName + "_crowd_notes"); - AddStringToDictionary(songName + "_drums_notes"); - AddStringToDictionary(songName + "_performance_notes"); - AddStringToDictionary(songName + "_scripts"); - AddStringToDictionary(songName + "_anim"); - AddStringToDictionary(songName + "_triggers"); - AddStringToDictionary(songName + "_cameras"); - AddStringToDictionary(songName + "_lightshow"); - AddStringToDictionary(songName + "_crowd"); - AddStringToDictionary(songName + "_drums"); - AddStringToDictionary(songName + "_performance"); - } - } -} + public static void GenerateSongTrackStuff(string songName) + { + AddStringToDictionary(songName); + string[] singerTypes = + { + "_male_", + "_female_" + }; + for (var i = 0; i < singerTypes.Length; i++) + { + var singerGender = singerTypes[i]; + for (var j = 1; j < 10; j++) + { + AddStringToDictionary(string.Concat("gh3_singer", singerGender, songName, "_", j)); + AddStringToDictionary(string.Concat("gh3_singer", singerGender, songName, "_", j, "b")); + } + } + AddStringToDictionary("animload_singer_male_" + songName); + AddStringToDictionary("animload_singer_female_" + songName); + AddStringToDictionary("menu_music_" + songName); + AddStringToDictionary("songs\\" + songName + ".mid.qb"); + AddStringToDictionary("songs\\" + songName + ".mid.qs"); + AddStringToDictionary("songs\\" + songName + ".mid_text.qb"); + AddStringToDictionary("songs\\" + songName + "_song_scripts.qb"); + AddStringToDictionary("data\\songs\\" + songName + ".mid"); + AddStringToDictionary("data\\songs\\" + songName + ".mid_text"); + AddStringToDictionary("data\\songs\\" + songName + "_song_scripts.qb"); + AddStringToDictionary("dlc\\output\\" + songName + ".mid.qb"); + AddStringToDictionary("dlc\\output\\" + songName + ".mid_text.qb"); + AddStringToDictionary("dlc\\output\\" + songName + ".mid"); + AddStringToDictionary("dlc\\output\\" + songName + ".mid_text"); + AddStringToDictionary("dlc\\output\\" + songName + "_song_scripts.qb"); + string[] array2 = + { + "", + "rhythm_", + "guitarcoop_", + "rhythmcoop_", + "drum_", + "aux_" + }; + for (var k = 0; k < array2.Length; k++) + { + var text2 = array2[k]; + string[] array3 = + { + "easy", + "medium", + "hard", + "expert" + }; + for (var l = 0; l < array3.Length; l++) + { + var text3 = array3[l]; + AddStringToDictionary(songName + "_song_" + text2 + text3); + AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_star")); + AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_starbattlemode")); + AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_tapping")); + AddStringToDictionary(string.Concat(songName, "_", text2, text3, "_whammycontroller")); + } + AddStringToDictionary(songName + "_" + text2 + "faceoffstar"); + AddStringToDictionary(songName + "_" + text2 + "faceoffp1"); + AddStringToDictionary(songName + "_" + text2 + "faceoffp2"); + } + AddStringToDictionary(songName + "_bossbattlep1"); + AddStringToDictionary(songName + "_bossbattlep2"); + AddStringToDictionary(songName + "_timesig"); + AddStringToDictionary(songName + "_fretbars"); + AddStringToDictionary(songName + "_guitar_markers"); + AddStringToDictionary(songName + "_rhythm_markers"); + AddStringToDictionary(songName + "_drum_markers"); + AddStringToDictionary(songName + "_vocals_markers"); + AddStringToDictionary(songName + "_easy_drumfill"); + AddStringToDictionary(songName + "_medium_drumfill"); + AddStringToDictionary(songName + "_hard_drumfill"); + AddStringToDictionary(songName + "_expert_drumfill"); + AddStringToDictionary(songName + "_easy_drumunmute"); + AddStringToDictionary(songName + "_medium_drumunmute"); + AddStringToDictionary(songName + "_hard_drumunmute"); + AddStringToDictionary(songName + "_expert_drumunmute"); + AddStringToDictionary(songName + "_song_vocals"); + AddStringToDictionary(songName + "_vocals_freeform"); + AddStringToDictionary(songName + "_vocals_phrases"); + AddStringToDictionary(songName + "_vocals_note_range"); + AddStringToDictionary(songName + "_lyrics"); + AddStringToDictionary(songName + "_scripts_notes"); + AddStringToDictionary(songName + "_anim_notes"); + AddStringToDictionary(songName + "_triggers_notes"); + AddStringToDictionary(songName + "_cameras_notes"); + AddStringToDictionary(songName + "_lightshow_notes"); + AddStringToDictionary(songName + "_crowd_notes"); + AddStringToDictionary(songName + "_drums_notes"); + AddStringToDictionary(songName + "_performance_notes"); + AddStringToDictionary(songName + "_scripts"); + AddStringToDictionary(songName + "_anim"); + AddStringToDictionary(songName + "_triggers"); + AddStringToDictionary(songName + "_cameras"); + AddStringToDictionary(songName + "_lightshow"); + AddStringToDictionary(songName + "_crowd"); + AddStringToDictionary(songName + "_drums"); + AddStringToDictionary(songName + "_performance"); + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/StructurePointerNode.cs b/GHNamespaceE/StructurePointerNode.cs index 1236aaa..a946524 100644 --- a/GHNamespaceE/StructurePointerNode.cs +++ b/GHNamespaceE/StructurePointerNode.cs @@ -3,60 +3,61 @@ namespace GHNamespaceE { - public class StructurePointerNode : ZzUnkNode300 - { - public StructurePointerNode() - { - vmethod_0(); - } - - public StructurePointerNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } - - public StructurePointerNode(int int1) - { - Int0 = int1; - vmethod_0(); - } - - public StructurePointerNode(string string0, StructureHeaderNode class2860) : this(QbSongClass1.AddKeyToDictionary(string0), class2860) - { - } - - public StructurePointerNode(int int1, StructureHeaderNode class2860) - { - Int0 = int1; - Nodes.Add(class2860); - vmethod_0(); - } - - public override int vmethod_1() - { - return 27; - } - - public StructureHeaderNode method_8() - { - if (Nodes.Count != 0) - { - return (StructureHeaderNode)FirstNode; - } - return null; - } - - public override string GetNodeText() - { - return "Structure Pointer"; - } - - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 21; - } - return 138; - } - } -} + public class StructurePointerNode : ZzUnkNode300 + { + public StructurePointerNode() + { + vmethod_0(); + } + + public StructurePointerNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } + + public StructurePointerNode(int int1) + { + Int0 = int1; + vmethod_0(); + } + + public StructurePointerNode(string string0, StructureHeaderNode class2860) : this( + QbSongClass1.AddKeyToDictionary(string0), class2860) + { + } + + public StructurePointerNode(int int1, StructureHeaderNode class2860) + { + Int0 = int1; + Nodes.Add(class2860); + vmethod_0(); + } + + public override int vmethod_1() + { + return 27; + } + + public StructureHeaderNode method_8() + { + if (Nodes.Count != 0) + { + return (StructureHeaderNode) FirstNode; + } + return null; + } + + public override string GetNodeText() + { + return "Structure Pointer"; + } + + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 21; + } + return 138; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/StructurePointerRootNode.cs b/GHNamespaceE/StructurePointerRootNode.cs index 081c6f9..850ad69 100644 --- a/GHNamespaceE/StructurePointerRootNode.cs +++ b/GHNamespaceE/StructurePointerRootNode.cs @@ -3,67 +3,68 @@ namespace GHNamespaceE { - public class StructurePointerRootNode : ProbablyRootNode - { - public StructurePointerRootNode() - { - vmethod_0(); - } + public class StructurePointerRootNode : ProbablyRootNode + { + public StructurePointerRootNode() + { + vmethod_0(); + } - public StructurePointerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public StructurePointerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public StructurePointerRootNode(int int2) - { - Int0 = int2; - vmethod_0(); - } + public StructurePointerRootNode(int int2) + { + Int0 = int2; + vmethod_0(); + } - public StructurePointerRootNode(int int2, string string0, StructureHeaderNode class2860) : this(int2, QbSongClass1.AddKeyToDictionary(string0), class2860) - { - } + public StructurePointerRootNode(int int2, string string0, StructureHeaderNode class2860) : this(int2, + QbSongClass1.AddKeyToDictionary(string0), class2860) + { + } - public StructurePointerRootNode(int int2, int int3, StructureHeaderNode class2860) - { - Int0 = int2; - Int1 = int3; - Nodes.Add(class2860); - vmethod_0(); - } + public StructurePointerRootNode(int int2, int int3, StructureHeaderNode class2860) + { + Int0 = int2; + Int1 = int3; + Nodes.Add(class2860); + vmethod_0(); + } - public override int vmethod_1() - { - return 6; - } + public override int vmethod_1() + { + return 6; + } - public StructureHeaderNode method_7() - { - if (Nodes.Count != 0) - { - return (StructureHeaderNode)FirstNode; - } - return null; - } + public StructureHeaderNode method_7() + { + if (Nodes.Count != 0) + { + return (StructureHeaderNode) FirstNode; + } + return null; + } - public void method_8(StructureHeaderNode class2860) - { - if (Nodes.Count != 0) - { - Nodes[0] = class2860; - return; - } - Nodes.Add(class2860); - } + public void method_8(StructureHeaderNode class2860) + { + if (Nodes.Count != 0) + { + Nodes[0] = class2860; + return; + } + Nodes.Add(class2860); + } - public override string GetNodeText() - { - return "Structure Pointer Root"; - } + public override string GetNodeText() + { + return "Structure Pointer Root"; + } - public override byte vmethod_16() - { - return 10; - } - } -} + public override byte vmethod_16() + { + return 10; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/TagArrayNode.cs b/GHNamespaceE/TagArrayNode.cs index e5598d7..08d34b8 100644 --- a/GHNamespaceE/TagArrayNode.cs +++ b/GHNamespaceE/TagArrayNode.cs @@ -4,52 +4,52 @@ namespace GHNamespaceE { - public class TagArray : ZzUnkNode278 - { - public int this[int int0] - { - get => ((TagValueNode)Nodes[int0]).Int0; - set => ((TagValueNode)Nodes[int0]).Int0 = value; - } - - public TagArray() - { - vmethod_0(); - } - - public TagArray(IEnumerable ienumerable0) - { - method_11(ienumerable0); - } - - public override int vmethod_1() - { - return 14; - } - - public void method_11(IEnumerable ienumerable0) - { - foreach (var current in ienumerable0) - { - Nodes.Add(new TagValueNode(current)); - } - vmethod_0(); - } - - public void method_12(IEnumerable ienumerable0) - { - Nodes.Clear(); - method_11(ienumerable0); - } - - public override byte vmethod_15() - { - return 13; - } - - public override string GetNodeText() - { - return "Tag Array"; - } - } -} + public class TagArray : ZzUnkNode278 + { + public int this[int int0] + { + get => ((TagValueNode) Nodes[int0]).Int0; + set => ((TagValueNode) Nodes[int0]).Int0 = value; + } + + public TagArray() + { + vmethod_0(); + } + + public TagArray(IEnumerable ienumerable0) + { + method_11(ienumerable0); + } + + public override int vmethod_1() + { + return 14; + } + + public void method_11(IEnumerable ienumerable0) + { + foreach (var current in ienumerable0) + { + Nodes.Add(new TagValueNode(current)); + } + vmethod_0(); + } + + public void method_12(IEnumerable ienumerable0) + { + Nodes.Clear(); + method_11(ienumerable0); + } + + public override byte vmethod_15() + { + return 13; + } + + public override string GetNodeText() + { + return "Tag Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/TexExplorer.cs b/GHNamespaceE/TexExplorer.cs index b5b4687..668e195 100644 --- a/GHNamespaceE/TexExplorer.cs +++ b/GHNamespaceE/TexExplorer.cs @@ -14,81 +14,81 @@ namespace GHNamespaceE { - public class TexExplorer : Form - { - private IContainer icontainer_0; + public class TexExplorer : Form + { + private IContainer icontainer_0; - private PictureBox _imagePreviewBox; + private PictureBox _imagePreviewBox; - private GroupBox _imageInfoBox; + private GroupBox _imageInfoBox; - private TextBox _widthTxt; + private TextBox _widthTxt; - private TextBox _mipMapTxt; + private TextBox _mipMapTxt; - private TextBox _bppTxt; + private TextBox _bppTxt; - private ListBox _imgList; + private ListBox _imgList; - private TreeView _dataFolderTreeView; + private TreeView _dataFolderTreeView; - private TextBox _formatTxt; + private TextBox _formatTxt; - private TextBox _heightTxt; + private TextBox _heightTxt; - private Label _lblHeight; + private Label _lblHeight; - private Label _lblWidth; + private Label _lblWidth; - private Label _lblBpp; + private Label _lblBpp; - private Label _lblMipMaps; + private Label _lblMipMaps; - private Label _lblFormat; + private Label _lblFormat; - private Button _replaceImgBtn; + private Button _replaceImgBtn; - private Button _rebuildBtn; + private Button _rebuildBtn; - private Button _extractImgBtn; + private Button _extractImgBtn; - private TableLayoutPanel _tableLayoutPanel1; + private TableLayoutPanel _tableLayoutPanel1; - private TableLayoutPanel _tableLayoutPanel2; + private TableLayoutPanel _tableLayoutPanel2; - private TableLayoutPanel _tableLayoutPanel3; + private TableLayoutPanel _tableLayoutPanel3; - private TableLayoutPanel _tableLayoutPanel4; + private TableLayoutPanel _tableLayoutPanel4; - private ToolStripContainer _treeViewContainer; + private ToolStripContainer _treeViewContainer; - private ToolStrip _searchToolStrip; + private ToolStrip _searchToolStrip; - private ToolStripTextBox _searchTxtBox; + private ToolStripTextBox _searchTxtBox; - private ToolStripButton _prevSearchBtn; + private ToolStripButton _prevSearchBtn; - private ToolStripButton _nextSearchBtn; + private ToolStripButton _nextSearchBtn; - private ToolStripLabel _searchPosLbl; + private ToolStripLabel _searchPosLbl; - private ToolStripButton _searchBtn; + private ToolStripButton _searchBtn; - private readonly string _string0; + private readonly string _string0; - private TexFile _currentTexFile; + private TexFile _currentTexFile; private TextureMetadata _currentImgFile; - private Thread _thread0; + private Thread _thread0; - private Size _size0; + private Size _size0; - private ImgPixelFormat _currentTexturePixelFormat; + private ImgPixelFormat _currentTexturePixelFormat; - private string _string1; + private string _string1; - private readonly List _nodeList = new List(); + private readonly List _nodeList = new List(); private GroupBox _groupBox1; private Label _label1; private Label _label6; @@ -114,16 +114,16 @@ public class TexExplorer : Form private int _count; protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void InitializeComponent() + { _imagePreviewBox = new PictureBox(); _imageInfoBox = new GroupBox(); _extractImgBtn = new Button(); @@ -174,7 +174,7 @@ private void InitializeComponent() _prevSearchBtn = new ToolStripButton(); _nextSearchBtn = new ToolStripButton(); _searchPosLbl = new ToolStripLabel(); - ((ISupportInitialize)(_imagePreviewBox)).BeginInit(); + ((ISupportInitialize) (_imagePreviewBox)).BeginInit(); _imageInfoBox.SuspendLayout(); _tableLayoutPanel1.SuspendLayout(); _tableLayoutPanel2.SuspendLayout(); @@ -681,12 +681,14 @@ private void InitializeComponent() // _searchToolStrip.Dock = DockStyle.None; _searchToolStrip.GripStyle = ToolStripGripStyle.Hidden; - _searchToolStrip.Items.AddRange(new ToolStripItem[] { - _searchTxtBox, - _searchBtn, - _prevSearchBtn, - _nextSearchBtn, - _searchPosLbl}); + _searchToolStrip.Items.AddRange(new ToolStripItem[] + { + _searchTxtBox, + _searchBtn, + _prevSearchBtn, + _nextSearchBtn, + _searchPosLbl + }); _searchToolStrip.Location = new Point(0, 0); _searchToolStrip.Name = "_searchToolStrip"; _searchToolStrip.Size = new Size(230, 25); @@ -739,7 +741,7 @@ private void InitializeComponent() Controls.Add(_tableLayoutPanel1); Name = "TexExplorer"; Text = "Texture Explorer"; - ((ISupportInitialize)(_imagePreviewBox)).EndInit(); + ((ISupportInitialize) (_imagePreviewBox)).EndInit(); _imageInfoBox.ResumeLayout(false); _imageInfoBox.PerformLayout(); _tableLayoutPanel1.ResumeLayout(false); @@ -757,122 +759,122 @@ private void InitializeComponent() _searchToolStrip.ResumeLayout(false); _searchToolStrip.PerformLayout(); ResumeLayout(false); + } + + public TexExplorer(string string2) + { + InitializeComponent(); + _string0 = string2; + Closed += TexExplorer_Closed; + Text = "Texture Explorer - LOOKING FOR TEXTURES (PLEASE WAIT!)"; + var @class = new ZonePakLoader(_string0); + @class.method_1(UpdateSearchText); + @class.method_0(AddNode); + _thread0 = new Thread(@class.method_2); + _thread0.Start(); + } + + private void TexExplorer_Closed(object sender, EventArgs e) + { + DisposeTexFile(); + if (_thread0 != null && _thread0.IsAlive) + { + _thread0.Abort(); + _thread0 = null; + } + } + + private void UpdateSearchText(int percentComplete, string currentFile) + { + if (InvokeRequired) + { + ZonePakLoader.Delegate9 method = UpdateSearchText; + Invoke(method, percentComplete, currentFile); + return; + } + Text = string.Concat("Texture Explorer - LOOKING FOR TEXTURES - ", percentComplete, "% - (", currentFile, + ")"); + } - } - - public TexExplorer(string string2) - { - InitializeComponent(); - _string0 = string2; - Closed += TexExplorer_Closed; - Text = "Texture Explorer - LOOKING FOR TEXTURES (PLEASE WAIT!)"; - var @class = new ZonePakLoader(_string0); - @class.method_1(UpdateSearchText); - @class.method_0(AddNode); - _thread0 = new Thread(@class.method_2); - _thread0.Start(); - } - - private void TexExplorer_Closed(object sender, EventArgs e) - { - DisposeTexFile(); - if (_thread0 != null && _thread0.IsAlive) - { - _thread0.Abort(); - _thread0 = null; - } - } - - private void UpdateSearchText(int percentComplete, string currentFile) - { - if (InvokeRequired) - { - ZonePakLoader.Delegate9 method = UpdateSearchText; - Invoke(method, percentComplete, currentFile); - return; - } - Text = string.Concat("Texture Explorer - LOOKING FOR TEXTURES - ", percentComplete, "% - (", currentFile, ")"); - } - - private void AddNode(TreeNode treeNode) - { - if (InvokeRequired) - { - ZonePakLoader.Delegate8 method = AddNode; - Invoke(method, treeNode); - return; - } - _dataFolderTreeView.Nodes.Add(treeNode); - Text = "Texture Explorer"; - _dataFolderTreeView.Sort(); - } - - private void DisposeTexFile() - { - if (_currentTexFile != null) - { - _currentTexFile.Dispose(); - _currentTexFile = null; + private void AddNode(TreeNode treeNode) + { + if (InvokeRequired) + { + ZonePakLoader.Delegate8 method = AddNode; + Invoke(method, treeNode); + return; + } + _dataFolderTreeView.Nodes.Add(treeNode); + Text = "Texture Explorer"; + _dataFolderTreeView.Sort(); + } + + private void DisposeTexFile() + { + if (_currentTexFile != null) + { + _currentTexFile.Dispose(); + _currentTexFile = null; CurrentImgFile = null; - } - _imgList.Items.Clear(); - _imgList.SelectedIndex = -1; - - _imageInfoBox.Enabled = false; - //this.RebuildBtn.Enabled = false; - _imagePreviewBox.Image = null; - } - - private void DataFolder_TreeView_DoubleClick(object sender, EventArgs e) - { - if (_dataFolderTreeView.SelectedNode != null) - { - if (_dataFolderTreeView.SelectedNode.Tag is int && _dataFolderTreeView.SelectedNode.ToolTipText != "") - { - DisposeTexFile(); - var toolTipText = _dataFolderTreeView.SelectedNode.ToolTipText; - ZzPakNode2 pakNode; - if (File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen"))) - { - pakNode = new ZzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false); - } - else - { - pakNode = new ZzPakNode2(toolTipText, false); - } - _currentTexFile = new TexFile(pakNode.method_13((int)_dataFolderTreeView.SelectedNode.Tag)); - - for (var i = 1; i <= _currentTexFile.TextureCount(); i++) - { - _imgList.Items.Add("Image " + i); - } - pakNode.Dispose(); - return; - } - if (_dataFolderTreeView.SelectedNode.ToolTipText != "") - { - DisposeTexFile(); - _currentTexFile = new TexFile(_dataFolderTreeView.SelectedNode.ToolTipText); - for (var j = 1; j <= _currentTexFile.TextureCount(); j++) - { - _imgList.Items.Add("Image " + j); - } - } - } - } - - private void ImgList_SelectedIndexChanged(object sender, EventArgs e) - { + } + _imgList.Items.Clear(); + _imgList.SelectedIndex = -1; + + _imageInfoBox.Enabled = false; + //this.RebuildBtn.Enabled = false; + _imagePreviewBox.Image = null; + } + + private void DataFolder_TreeView_DoubleClick(object sender, EventArgs e) + { + if (_dataFolderTreeView.SelectedNode != null) + { + if (_dataFolderTreeView.SelectedNode.Tag is int && _dataFolderTreeView.SelectedNode.ToolTipText != "") + { + DisposeTexFile(); + var toolTipText = _dataFolderTreeView.SelectedNode.ToolTipText; + ZzPakNode2 pakNode; + if (File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen"))) + { + pakNode = new ZzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false); + } + else + { + pakNode = new ZzPakNode2(toolTipText, false); + } + _currentTexFile = new TexFile(pakNode.method_13((int) _dataFolderTreeView.SelectedNode.Tag)); + + for (var i = 1; i <= _currentTexFile.TextureCount(); i++) + { + _imgList.Items.Add("Image " + i); + } + pakNode.Dispose(); + return; + } + if (_dataFolderTreeView.SelectedNode.ToolTipText != "") + { + DisposeTexFile(); + _currentTexFile = new TexFile(_dataFolderTreeView.SelectedNode.ToolTipText); + for (var j = 1; j <= _currentTexFile.TextureCount(); j++) + { + _imgList.Items.Add("Image " + j); + } + } + } + } + + private void ImgList_SelectedIndexChanged(object sender, EventArgs e) + { var index = _imgList.SelectedIndex; if (index >= 0) - { - var texture = _currentTexFile[index]; - _currentTexturePixelFormat = texture.PixelFormat; - _bppTxt.Text = string.Concat(texture.Bpp); + { + var texture = _currentTexFile[index]; + _currentTexturePixelFormat = texture.PixelFormat; + _bppTxt.Text = string.Concat(texture.Bpp); - switch(texture.PixelFormat) + switch (texture.PixelFormat) { case ImgPixelFormat.Dxt1: _formatTxt.Text = "DXT1"; @@ -891,18 +893,18 @@ private void ImgList_SelectedIndexChanged(object sender, EventArgs e) break; } - _mipMapTxt.Text = string.Concat(texture.MipMapCount); - _widthTxt.Text = string.Concat(texture.Size.Width); - _heightTxt.Text = string.Concat(texture.Size.Height); + _mipMapTxt.Text = string.Concat(texture.MipMapCount); + _widthTxt.Text = string.Concat(texture.Size.Width); + _heightTxt.Text = string.Concat(texture.Size.Height); - var image = texture.GetImage(); - _size0 = image.Size; - if (image.Width > _imagePreviewBox.Width || image.Height > _imagePreviewBox.Height) - { - image = KeyGenerator.ScaleImageFixedRatio(image, _imagePreviewBox.Size); - } - _imagePreviewBox.Image = image; - _imageInfoBox.Enabled = true; + var image = texture.GetImage(); + _size0 = image.Size; + if (image.Width > _imagePreviewBox.Width || image.Height > _imagePreviewBox.Height) + { + image = KeyGenerator.ScaleImageFixedRatio(image, _imagePreviewBox.Size); + } + _imagePreviewBox.Image = image; + _imageInfoBox.Enabled = true; var metadata = _currentTexFile.TextureList[index]; CurrentImgFile = metadata; @@ -911,259 +913,268 @@ private void ImgList_SelectedIndexChanged(object sender, EventArgs e) { _imageInfoBox.Enabled = false; } - - } - - - - - - private void ReplaceImgBtn_Click(object sender, EventArgs e) - { - var text = KeyGenerator.OpenOrSaveFile("Select the image file to replace the texture.", "All Supported Formats|*.dds;*.bmp;*.jpg;*.gif;*.png|DDS Texture|*.dds|Bitmap|*.bmp|JPEG|*.jpg|Graphics Interchange Format|*.gif|Portable Network Graphics|*.png", true); - if (text == "") - { - return; - } - Image image; - if (text.EndsWith(".dds", StringComparison.OrdinalIgnoreCase)) - { - image = new DdsTexture(text).GetImage(); - } - else - { - image = Image.FromFile(text); - } - if (!image.Size.Equals(_size0) && DialogResult.Yes == MessageBox.Show("The image dimensions don't match. Do you wish scale to the original dimension? (Ratio may change!)", "Replace Texture", MessageBoxButtons.YesNo)) - { - image = KeyGenerator.ScaleImage(image, _size0); - } - _currentTexFile.ReplaceTexture(_imgList.SelectedIndex, image, _currentTexturePixelFormat); - _rebuildBtn.Enabled = true; - } - - public ImageFormat GetImageFormat(string fileName) - { - var ext = KeyGenerator.GetExtension(fileName, 1).ToLower(); - if (ext != null) - { - if (ext == "jpg") - { - return ImageFormat.Jpeg; - } - if (ext == "gif") - { - return ImageFormat.Gif; - } - if (ext == "png") - { - return ImageFormat.Png; - } - } - return ImageFormat.Bmp; - } - - private void ExtractImgBtn_Click(object sender, EventArgs e) - { - var fileName = KeyGenerator.OpenOrSaveFile("Select location to export the texture.", "All Supported Formats|*.dds;*.bmp;*.jpg;*.gif;*.png|DDS Texture|*.dds|Bitmap|*.bmp|JPEG|*.jpg|Graphics Interchange Format|*.gif|Portable Network Graphics|*.png", false); - if (fileName == "") - { - return; - } - if (fileName.EndsWith(".dds", StringComparison.OrdinalIgnoreCase)) - { - _currentTexFile.WriteBytes(_imgList.SelectedIndex, fileName); - return; - } - _currentTexFile[_imgList.SelectedIndex].GetImage().Save(fileName, GetImageFormat(fileName)); - } - - private void RebuildBtn_Click(object sender, EventArgs e) - { - if (DialogResult.Yes != MessageBox.Show("Are you sure you wish to rebuild the container? (Overwriting File!)", "Replace Textures", MessageBoxButtons.YesNo)) - { - return; - } - if (_currentTexFile.CanWrite()) - { - _currentTexFile.WriteEverythingToFile(); - } - else - { - var toolTipText = _dataFolderTreeView.SelectedNode.ToolTipText; - var pakNode = File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen")) ? new ZzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false) : new ZzPakNode2(toolTipText, false); - pakNode.method_11((int)_dataFolderTreeView.SelectedNode.Tag).imethod_17(_currentTexFile.ToStream().ReadEverything()); - pakNode.vmethod_1(); - pakNode.Dispose(); - } - _imgList.Items.Clear(); - DisposeTexFile(); - } - - private void NextSearch_Btn_Click(object sender, EventArgs e) - { - if (_dataFolderTreeView.SelectedNode == null) - { - return; - } - if (_searchTxtBox.Text.Equals("")) - { - foreach (var current in _nodeList) - { - current.BackColor = Color.Empty; - } - _nodeList.Clear(); - _string1 = ""; - _searchPosLbl.Text = "0/0"; - return; - } - if (!_searchTxtBox.Text.Equals(_string1)) - { - foreach (var current2 in _nodeList) - { - current2.BackColor = Color.Transparent; - } - _nodeList.Clear(); - _string1 = _searchTxtBox.Text; - } - if (_nodeList.Count == 0) - { - if (!method_4()) - { - MessageBox.Show("Value not found!"); - _searchPosLbl.Text = "0/0"; - return; - } - _count = -1; - } - _count++; - var treeView = _dataFolderTreeView; - var node = _nodeList; - int arg16B1; - if (_nodeList.Count <= _count) - { - _count = 0; - arg16B1 = 0; - } - else - { - arg16B1 = _count; - } - treeView.SelectedNode = node[arg16B1]; - _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; - _dataFolderTreeView.Focus(); - } - - private void PrevSearch_Btn_Click(object sender, EventArgs e) - { - if (_dataFolderTreeView.SelectedNode == null) - { - return; - } - if (_searchTxtBox.Text.Equals("")) - { - foreach (var current in _nodeList) - { - current.BackColor = Color.Empty; - } - _nodeList.Clear(); - _string1 = ""; - _searchPosLbl.Text = "0/0"; - return; - } - if (!_searchTxtBox.Text.Equals(_string1)) - { - foreach (var current2 in _nodeList) - { - current2.BackColor = Color.Empty; - } - _nodeList.Clear(); - _string1 = _searchTxtBox.Text; - } - if (_nodeList.Count == 0) - { - if (!method_4()) - { - MessageBox.Show("Value not found!"); - _searchPosLbl.Text = "0/0"; - return; - } - _count = _nodeList.Count; - } - _count--; - _dataFolderTreeView.SelectedNode = _nodeList[(0 <= _count) ? _count : (_count = _nodeList.Count - 1)]; - _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; - _dataFolderTreeView.Focus(); - } - - private void Search_Btn_Click(object sender, EventArgs e) - { - if (_dataFolderTreeView.SelectedNode == null) - { - return; - } - foreach (var current in _nodeList) - { - current.BackColor = Color.Empty; - } - _nodeList.Clear(); - _string1 = _searchTxtBox.Text; - if (_string1.Equals("")) - { - _searchPosLbl.Text = "0/0"; - return; - } - if (!method_4()) - { - MessageBox.Show("Value not found!"); - _searchPosLbl.Text = "0/0"; - return; - } - _count = 0; - _dataFolderTreeView.SelectedNode = _nodeList[_count]; - _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; - _dataFolderTreeView.Focus(); - } - - private bool method_4() - { - AddNodeToContainerIfItHasThisString(_dataFolderTreeView.SelectedNode, _string1, _nodeList); - foreach (var current in _nodeList) - { - current.BackColor = Color.YellowGreen; - } - return _nodeList.Count != 0; - } - - private static void AddNodeToContainerIfItHasThisString(TreeNode node, string str, ICollection nodeCollection) - { - if (node.Text.ToUpper().Contains(str.ToUpper())) - { - nodeCollection.Add(node); - } - for (var i = 0; i < node.Nodes.Count; i++) - { - AddNodeToContainerIfItHasThisString(node.Nodes[i], str, nodeCollection); - } - } + } - private void ImagePreviewBox_Click(object sender, EventArgs e) + + private void ReplaceImgBtn_Click(object sender, EventArgs e) { + var text = KeyGenerator.OpenOrSaveFile("Select the image file to replace the texture.", + "All Supported Formats|*.dds;*.bmp;*.jpg;*.gif;*.png|DDS Texture|*.dds|Bitmap|*.bmp|JPEG|*.jpg|Graphics Interchange Format|*.gif|Portable Network Graphics|*.png", + true); + if (text == "") + { + return; + } + Image image; + if (text.EndsWith(".dds", StringComparison.OrdinalIgnoreCase)) + { + image = new DdsTexture(text).GetImage(); + } + else + { + image = Image.FromFile(text); + } + if (!image.Size.Equals(_size0) && DialogResult.Yes == + MessageBox.Show( + "The image dimensions don't match. Do you wish scale to the original dimension? (Ratio may change!)", + "Replace Texture", MessageBoxButtons.YesNo)) + { + image = KeyGenerator.ScaleImage(image, _size0); + } + _currentTexFile.ReplaceTexture(_imgList.SelectedIndex, image, _currentTexturePixelFormat); + _rebuildBtn.Enabled = true; + } + public ImageFormat GetImageFormat(string fileName) + { + var ext = KeyGenerator.GetExtension(fileName, 1).ToLower(); + if (ext != null) + { + if (ext == "jpg") + { + return ImageFormat.Jpeg; + } + if (ext == "gif") + { + return ImageFormat.Gif; + } + if (ext == "png") + { + return ImageFormat.Png; + } + } + return ImageFormat.Bmp; + } + + private void ExtractImgBtn_Click(object sender, EventArgs e) + { + var fileName = KeyGenerator.OpenOrSaveFile("Select location to export the texture.", + "All Supported Formats|*.dds;*.bmp;*.jpg;*.gif;*.png|DDS Texture|*.dds|Bitmap|*.bmp|JPEG|*.jpg|Graphics Interchange Format|*.gif|Portable Network Graphics|*.png", + false); + if (fileName == "") + { + return; + } + if (fileName.EndsWith(".dds", StringComparison.OrdinalIgnoreCase)) + { + _currentTexFile.WriteBytes(_imgList.SelectedIndex, fileName); + return; + } + _currentTexFile[_imgList.SelectedIndex].GetImage().Save(fileName, GetImageFormat(fileName)); + } + + private void RebuildBtn_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != MessageBox.Show( + "Are you sure you wish to rebuild the container? (Overwriting File!)", "Replace Textures", + MessageBoxButtons.YesNo)) + { + return; + } + if (_currentTexFile.CanWrite()) + { + _currentTexFile.WriteEverythingToFile(); + } + else + { + var toolTipText = _dataFolderTreeView.SelectedNode.ToolTipText; + var pakNode = File.Exists(toolTipText.Replace(".pak.xen", ".pab.xen")) + ? new ZzPabNode(toolTipText, toolTipText.Replace(".pak.xen", ".pab.xen"), false) + : new ZzPakNode2(toolTipText, false); + pakNode.method_11((int) _dataFolderTreeView.SelectedNode.Tag) + .imethod_17(_currentTexFile.ToStream().ReadEverything()); + pakNode.vmethod_1(); + pakNode.Dispose(); + } + _imgList.Items.Clear(); + DisposeTexFile(); + } + + private void NextSearch_Btn_Click(object sender, EventArgs e) + { + if (_dataFolderTreeView.SelectedNode == null) + { + return; + } + if (_searchTxtBox.Text.Equals("")) + { + foreach (var current in _nodeList) + { + current.BackColor = Color.Empty; + } + _nodeList.Clear(); + _string1 = ""; + _searchPosLbl.Text = "0/0"; + return; + } + if (!_searchTxtBox.Text.Equals(_string1)) + { + foreach (var current2 in _nodeList) + { + current2.BackColor = Color.Transparent; + } + _nodeList.Clear(); + _string1 = _searchTxtBox.Text; + } + if (_nodeList.Count == 0) + { + if (!method_4()) + { + MessageBox.Show("Value not found!"); + _searchPosLbl.Text = "0/0"; + return; + } + _count = -1; + } + _count++; + var treeView = _dataFolderTreeView; + var node = _nodeList; + int arg16B1; + if (_nodeList.Count <= _count) + { + _count = 0; + arg16B1 = 0; + } + else + { + arg16B1 = _count; + } + treeView.SelectedNode = node[arg16B1]; + _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; + _dataFolderTreeView.Focus(); + } + + private void PrevSearch_Btn_Click(object sender, EventArgs e) + { + if (_dataFolderTreeView.SelectedNode == null) + { + return; + } + if (_searchTxtBox.Text.Equals("")) + { + foreach (var current in _nodeList) + { + current.BackColor = Color.Empty; + } + _nodeList.Clear(); + _string1 = ""; + _searchPosLbl.Text = "0/0"; + return; + } + if (!_searchTxtBox.Text.Equals(_string1)) + { + foreach (var current2 in _nodeList) + { + current2.BackColor = Color.Empty; + } + _nodeList.Clear(); + _string1 = _searchTxtBox.Text; + } + if (_nodeList.Count == 0) + { + if (!method_4()) + { + MessageBox.Show("Value not found!"); + _searchPosLbl.Text = "0/0"; + return; + } + _count = _nodeList.Count; + } + _count--; + _dataFolderTreeView.SelectedNode = _nodeList[(0 <= _count) ? _count : (_count = _nodeList.Count - 1)]; + _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; + _dataFolderTreeView.Focus(); + } + + private void Search_Btn_Click(object sender, EventArgs e) + { + if (_dataFolderTreeView.SelectedNode == null) + { + return; + } + foreach (var current in _nodeList) + { + current.BackColor = Color.Empty; + } + _nodeList.Clear(); + _string1 = _searchTxtBox.Text; + if (_string1.Equals("")) + { + _searchPosLbl.Text = "0/0"; + return; + } + if (!method_4()) + { + MessageBox.Show("Value not found!"); + _searchPosLbl.Text = "0/0"; + return; + } + _count = 0; + _dataFolderTreeView.SelectedNode = _nodeList[_count]; + _searchPosLbl.Text = _count + 1 + "/" + _nodeList.Count; + _dataFolderTreeView.Focus(); + } + + private bool method_4() + { + AddNodeToContainerIfItHasThisString(_dataFolderTreeView.SelectedNode, _string1, _nodeList); + foreach (var current in _nodeList) + { + current.BackColor = Color.YellowGreen; + } + return _nodeList.Count != 0; + } + + private static void AddNodeToContainerIfItHasThisString(TreeNode node, string str, + ICollection nodeCollection) + { + if (node.Text.ToUpper().Contains(str.ToUpper())) + { + nodeCollection.Add(node); + } + for (var i = 0; i < node.Nodes.Count; i++) + { + AddNodeToContainerIfItHasThisString(node.Nodes[i], str, nodeCollection); + } + } + + private void ImagePreviewBox_Click(object sender, EventArgs e) + { } private void chkEditMetadata_CheckedChanged(object sender, EventArgs e) { if (_chkEditMetadata.Checked) - { - if (MessageBox.Show("Are you sure you want to edit the image metadata? You could corrupt your pak file!", "Warning!", MessageBoxButtons.YesNo) != DialogResult.Yes) + { + if (MessageBox.Show( + "Are you sure you want to edit the image metadata? You could corrupt your pak file!", + "Warning!", MessageBoxButtons.YesNo) != DialogResult.Yes) { _chkEditMetadata.Checked = false; } } MetadataReadonly = !_chkEditMetadata.Checked; - } @@ -1200,7 +1211,6 @@ private TextureMetadata CurrentImgFile _txtUnk3.Text = ""; _txtUnk4.Text = ""; } - } get => _currentImgFile; @@ -1233,17 +1243,14 @@ private void txtKey_TextChanged(object sender, EventArgs e) private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e) { - } private void tableLayoutPanel4_Paint(object sender, PaintEventArgs e) { - } private void tableLayoutPanel5_Paint(object sender, PaintEventArgs e) { - } private void btnCloneImage_Click(object sender, EventArgs e) @@ -1255,7 +1262,7 @@ private void btnCloneImage_Click(object sender, EventArgs e) return; var cloneIndex = _currentTexFile.CloneTextureElement(_imgList.SelectedIndex); - _imgList.Items.Add("Image " + (cloneIndex + 1) ); + _imgList.Items.Add("Image " + (cloneIndex + 1)); } } -} +} \ No newline at end of file diff --git a/GHNamespaceE/TextArrayNode.cs b/GHNamespaceE/TextArrayNode.cs index d9cc802..97716cd 100644 --- a/GHNamespaceE/TextArrayNode.cs +++ b/GHNamespaceE/TextArrayNode.cs @@ -4,84 +4,84 @@ namespace GHNamespaceE { - public class TextArrayNode : AbsTreeNode11 - { - public string this[int int0] - { - get => ((TextValueNode)Nodes[int0]).method_2(); - set => ((TextValueNode)Nodes[int0]).method_3(value); - } + public class TextArrayNode : AbsTreeNode11 + { + public string this[int int0] + { + get => ((TextValueNode) Nodes[int0]).method_2(); + set => ((TextValueNode) Nodes[int0]).method_3(value); + } - public TextArrayNode() - { - vmethod_0(); - } + public TextArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 11; - } + public override int vmethod_1() + { + return 11; + } - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num == 0) - { - return; - } - if (num > 1) - { - stream260.Position = stream260.ReadInt(); - } - for (var i = 0; i < num; i++) - { - Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); - } - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num == 0) + { + return; + } + if (num > 1) + { + stream260.Position = stream260.ReadInt(); + } + for (var i = 0; i < num; i++) + { + Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); + } + } - public override void vmethod_14(Stream26 stream260) - { - vmethod_9(true); - var array = new byte[4]; - array[1] = 1; - array[2] = 28; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Nodes.Count); - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - stream260.WriteInt((int)stream260.Position + 4); - } - foreach (TextValueNode @class in Nodes) - { - stream260.WriteByteArray(@class.vmethod_8()); - if (@class.method_2() != null) - { - vmethod_10()[@class.Int0] = @class.method_2(); - } - } - } + public override void vmethod_14(Stream26 stream260) + { + vmethod_9(true); + var array = new byte[4]; + array[1] = 1; + array[2] = 28; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Nodes.Count); + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + stream260.WriteInt((int) stream260.Position + 4); + } + foreach (TextValueNode @class in Nodes) + { + stream260.WriteByteArray(@class.vmethod_8()); + if (@class.method_2() != null) + { + vmethod_10()[@class.Int0] = @class.method_2(); + } + } + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - int0 += 4; - } - int0 += 4 * Nodes.Count; - } + public override void vmethod_2(ref int int0) + { + int0 += 8; + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + int0 += 4; + } + int0 += 4 * Nodes.Count; + } - public override string GetNodeText() - { - return "Text Array"; - } - } -} + public override string GetNodeText() + { + return "Text Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/VectorPointerRootNode.cs b/GHNamespaceE/VectorPointerRootNode.cs index ec46bca..9f0d72d 100644 --- a/GHNamespaceE/VectorPointerRootNode.cs +++ b/GHNamespaceE/VectorPointerRootNode.cs @@ -2,26 +2,26 @@ namespace GHNamespaceE { - public class VectorPointerRootNode : ProbablyRootNode - { - public VectorPointerRootNode() - { - vmethod_0(); - } + public class VectorPointerRootNode : ProbablyRootNode + { + public VectorPointerRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 9; - } + public override int vmethod_1() + { + return 9; + } - public override string GetNodeText() - { - return "Vector Pointer Root"; - } + public override string GetNodeText() + { + return "Vector Pointer Root"; + } - public override byte vmethod_16() - { - return 6; - } - } -} + public override byte vmethod_16() + { + return 6; + } + } +} \ No newline at end of file diff --git a/GHNamespaceE/zzGenericNode1.cs b/GHNamespaceE/zzGenericNode1.cs index e72accd..3ed17e2 100644 --- a/GHNamespaceE/zzGenericNode1.cs +++ b/GHNamespaceE/zzGenericNode1.cs @@ -10,441 +10,442 @@ namespace GHNamespaceE { - public class ZzGenericNode1 : AbstractTreeNode1 - { - public bool Bool1 = true; + public class ZzGenericNode1 : AbstractTreeNode1 + { + public bool Bool1 = true; - private bool _bool2; + private bool _bool2; - private Dictionary _dictionary0; + private Dictionary _dictionary0; - public byte[] Byte0 = { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 28, - 8, - 2, - 4, - 16, - 4, - 8, - 12, - 12, - 8, - 2, - 4, - 20, - 2, - 4, - 12, - 16, - 16, - 12, - 0 - }; + public byte[] Byte0 = + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 28, + 8, + 2, + 4, + 16, + 4, + 8, + 12, + 12, + 8, + 2, + 4, + 20, + 2, + 4, + 12, + 16, + 16, + 12, + 0 + }; - public override bool vmethod_7() - { - return Bool1; - } + public override bool vmethod_7() + { + return Bool1; + } - public override bool vmethod_8() - { - return _bool2; - } + public override bool vmethod_8() + { + return _bool2; + } - public override void vmethod_9(bool bool3) - { - _bool2 = bool3; - } + public override void vmethod_9(bool bool3) + { + _bool2 = bool3; + } - public override Dictionary vmethod_10() - { - Dictionary arg180; - if ((arg180 = _dictionary0) == null) - { - arg180 = (_dictionary0 = new Dictionary()); - } - return arg180; - } + public override Dictionary vmethod_10() + { + Dictionary arg180; + if ((arg180 = _dictionary0) == null) + { + arg180 = (_dictionary0 = new Dictionary()); + } + return arg180; + } - public override void vmethod_11(Dictionary dictionary1) - { - _bool2 = true; - _dictionary0 = dictionary1; - } + public override void vmethod_11(Dictionary dictionary1) + { + _bool2 = true; + _dictionary0 = dictionary1; + } - public ZzGenericNode1() - { - } + public ZzGenericNode1() + { + } - public ZzGenericNode1(string string0, AbstractTreeNode1 class2590) - { - Text = KeyGenerator.GetFileName(string0); - Nodes.Add(class2590); - } + public ZzGenericNode1(string string0, AbstractTreeNode1 class2590) + { + Text = KeyGenerator.GetFileName(string0); + Nodes.Add(class2590); + } - public ZzGenericNode1(string string0, IEnumerable ienumerable0) - { - Text = KeyGenerator.GetFileName(string0); - Nodes.AddRange(new List(ienumerable0).ToArray()); - } + public ZzGenericNode1(string string0, IEnumerable ienumerable0) + { + Text = KeyGenerator.GetFileName(string0); + Nodes.AddRange(new List(ienumerable0).ToArray()); + } - public ZzGenericNode1(string string0, byte[] byte1) : this(string0, new Stream26(byte1)) - { - } + public ZzGenericNode1(string string0, byte[] byte1) : this(string0, new Stream26(byte1)) + { + } - public ZzGenericNode1(string string0, Stream26 stream260) - { - Text = KeyGenerator.GetFileName(string0); - stream260.Position = 28L; - method_4(stream260); - } + public ZzGenericNode1(string string0, Stream26 stream260) + { + Text = KeyGenerator.GetFileName(string0); + stream260.Position = 28L; + method_4(stream260); + } - public ZzGenericNode1(string string0, Stream26 stream260, Dictionary dictionary1) - { - Text = KeyGenerator.GetFileName(string0); - if (dictionary1 != null) - { - _dictionary0 = dictionary1; - _bool2 = true; - } - stream260.Position = 28L; - method_4(stream260); - } + public ZzGenericNode1(string string0, Stream26 stream260, Dictionary dictionary1) + { + Text = KeyGenerator.GetFileName(string0); + if (dictionary1 != null) + { + _dictionary0 = dictionary1; + _bool2 = true; + } + stream260.Position = 28L; + method_4(stream260); + } - public override void vmethod_13(Stream26 stream260) - { - while (stream260.Length > stream260.Position) - { - var num = stream260.ReadInt(true); - if (num != 0) - { - var @class = vmethod_12(num); - stream260.ReverseEndianness = vmethod_7(); - Nodes.Add(@class); - @class.method_4(stream260); - } - else - { - stream260.Position += 4L; - } - } - } + public override void vmethod_13(Stream26 stream260) + { + while (stream260.Length > stream260.Position) + { + var num = stream260.ReadInt(true); + if (num != 0) + { + var @class = vmethod_12(num); + stream260.ReverseEndianness = vmethod_7(); + Nodes.Add(@class); + @class.method_4(stream260); + } + else + { + stream260.Position += 4L; + } + } + } - public override void vmethod_14(Stream26 stream260) - { - stream260.ReverseEndianness = vmethod_7(); - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_14(stream260); - } - } + public override void vmethod_14(Stream26 stream260) + { + stream260.ReverseEndianness = vmethod_7(); + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_14(stream260); + } + } - public override AbstractTreeNode1 vmethod_12(int int0) - { - if (int0 == 256) - { - return new StructureHeaderNode(); - } - var num = int0 >> 16 & 255; - var num2 = int0 >> 8 & 255; - if (num == 32) - { - Bool1 = true; - } - else if (num == 4) - { - Bool1 = false; - } - var ex = new Exception("No QB Node class found for : " + KeyGenerator.ValToHex32Bit(int0)); - if (num != 32) - { - if (num != 4) - { - if (num == 1) - { - if (num2 == 0) - { - return new FloatListNode(); - } - if (num2 == 1) - { - return new IntegerArrayNode(); - } - if (num2 == 2) - { - return new FloatArrayNode(); - } - if (num2 == 3) - { - return new AsciiArrayNode(); - } - if (num2 == 4) - { - return new UnicodeArrayNode(); - } - if (num2 == 5) - { - return new PairArrayNode(); - } - if (num2 == 6) - { - return new VectorArrayNode(); - } - if (num2 == 10) - { - return new StructureArrayNode(); - } - if (num2 == 12) - { - return new ListArrayNode(); - } - if (num2 == 13) - { - return new TagArray(); - } - if (num2 == 26) - { - _bool2 = true; - return new FileTagArrayNode(); - } - if (num2 == 28) - { - _bool2 = true; - return new TextArrayNode(); - } - throw ex; - } - if (!Bool1) - { - if (num == 3) - { - return new IntegerStructureNode(); - } - if (num == 5) - { - return new FloatStructureNode(); - } - if (num == 7) - { - return new AsciiStructureNode(); - } - if (num == 9) - { - return new UnicodeStructureNode(); - } - if (num == 11) - { - return new PairPointerNode(); - } - if (num == 13) - { - return new VectorPointerNode(); - } - if (num == 21) - { - return new StructurePointerNode(); - } - if (num == 25) - { - return new ArrayPointerNode(); - } - if (num == 27) - { - return new TagStructureNode(); - } - if (num == 53) - { - return new FileTagStructureNode(); - } - throw ex; - } - if (num == 154) - { - return new FileTagStructureNode(); - } - if ((num & 240) != 128 || (num2 = (num & 15)) == 0) - { - return null; - } - if (num2 == 1) - { - return new IntegerStructureNode(); - } - if (num2 == 2) - { - return new FloatStructureNode(); - } - if (num2 == 3) - { - return new AsciiStructureNode(); - } - if (num2 == 4) - { - return new UnicodeStructureNode(); - } - if (num2 == 5) - { - return new PairPointerNode(); - } - if (num2 == 6) - { - return new VectorPointerNode(); - } - if (num2 == 10) - { - return new StructurePointerNode(); - } - if (num2 == 12) - { - return new ArrayPointerNode(); - } - if (num2 == 13) - { - return new TagStructureNode(); - } - throw ex; - } - } - if (num2 == 1) - { - return new IntegerRootNode(); - } - if (num2 == 2) - { - return new FloatRootNode(); - } - if (num2 == 3) - { - return new AsciiRootNode(); - } - if (num2 == 4) - { - return new UnicodeRootNode(); - } - if (num2 == 5) - { - return new PairPointerRootNode(); - } - if (num2 == 6) - { - return new VectorPointerRootNode(); - } - if (num2 == 7) - { - return new ScriptRootNode(); - } - if (num2 == 10) - { - return new StructurePointerRootNode(); - } - if (num2 == 12) - { - return new ArrayPointerRootNode(); - } - if (num2 == 13) - { - return new TagRootNode(); - } - if (num2 == 26) - { - _bool2 = true; - return new FileTagRootNode(); - } - if (num2 == 28) - { - _bool2 = true; - return new TextRootNode(); - } - throw ex; - } + public override AbstractTreeNode1 vmethod_12(int int0) + { + if (int0 == 256) + { + return new StructureHeaderNode(); + } + var num = int0 >> 16 & 255; + var num2 = int0 >> 8 & 255; + if (num == 32) + { + Bool1 = true; + } + else if (num == 4) + { + Bool1 = false; + } + var ex = new Exception("No QB Node class found for : " + KeyGenerator.ValToHex32Bit(int0)); + if (num != 32) + { + if (num != 4) + { + if (num == 1) + { + if (num2 == 0) + { + return new FloatListNode(); + } + if (num2 == 1) + { + return new IntegerArrayNode(); + } + if (num2 == 2) + { + return new FloatArrayNode(); + } + if (num2 == 3) + { + return new AsciiArrayNode(); + } + if (num2 == 4) + { + return new UnicodeArrayNode(); + } + if (num2 == 5) + { + return new PairArrayNode(); + } + if (num2 == 6) + { + return new VectorArrayNode(); + } + if (num2 == 10) + { + return new StructureArrayNode(); + } + if (num2 == 12) + { + return new ListArrayNode(); + } + if (num2 == 13) + { + return new TagArray(); + } + if (num2 == 26) + { + _bool2 = true; + return new FileTagArrayNode(); + } + if (num2 == 28) + { + _bool2 = true; + return new TextArrayNode(); + } + throw ex; + } + if (!Bool1) + { + if (num == 3) + { + return new IntegerStructureNode(); + } + if (num == 5) + { + return new FloatStructureNode(); + } + if (num == 7) + { + return new AsciiStructureNode(); + } + if (num == 9) + { + return new UnicodeStructureNode(); + } + if (num == 11) + { + return new PairPointerNode(); + } + if (num == 13) + { + return new VectorPointerNode(); + } + if (num == 21) + { + return new StructurePointerNode(); + } + if (num == 25) + { + return new ArrayPointerNode(); + } + if (num == 27) + { + return new TagStructureNode(); + } + if (num == 53) + { + return new FileTagStructureNode(); + } + throw ex; + } + if (num == 154) + { + return new FileTagStructureNode(); + } + if ((num & 240) != 128 || (num2 = (num & 15)) == 0) + { + return null; + } + if (num2 == 1) + { + return new IntegerStructureNode(); + } + if (num2 == 2) + { + return new FloatStructureNode(); + } + if (num2 == 3) + { + return new AsciiStructureNode(); + } + if (num2 == 4) + { + return new UnicodeStructureNode(); + } + if (num2 == 5) + { + return new PairPointerNode(); + } + if (num2 == 6) + { + return new VectorPointerNode(); + } + if (num2 == 10) + { + return new StructurePointerNode(); + } + if (num2 == 12) + { + return new ArrayPointerNode(); + } + if (num2 == 13) + { + return new TagStructureNode(); + } + throw ex; + } + } + if (num2 == 1) + { + return new IntegerRootNode(); + } + if (num2 == 2) + { + return new FloatRootNode(); + } + if (num2 == 3) + { + return new AsciiRootNode(); + } + if (num2 == 4) + { + return new UnicodeRootNode(); + } + if (num2 == 5) + { + return new PairPointerRootNode(); + } + if (num2 == 6) + { + return new VectorPointerRootNode(); + } + if (num2 == 7) + { + return new ScriptRootNode(); + } + if (num2 == 10) + { + return new StructurePointerRootNode(); + } + if (num2 == 12) + { + return new ArrayPointerRootNode(); + } + if (num2 == 13) + { + return new TagRootNode(); + } + if (num2 == 26) + { + _bool2 = true; + return new FileTagRootNode(); + } + if (num2 == 28) + { + _bool2 = true; + return new TextRootNode(); + } + throw ex; + } - public byte[] method_7() - { - return method_8().ToArray(); - } + public byte[] method_7() + { + return method_8().ToArray(); + } - public MemoryStream method_8() - { - var memoryStream = new MemoryStream(); - method_9(memoryStream); - memoryStream.Position = 0L; - return memoryStream; - } + public MemoryStream method_8() + { + var memoryStream = new MemoryStream(); + method_9(memoryStream); + memoryStream.Position = 0L; + return memoryStream; + } - public void method_9(Stream stream0) - { - method_10(new Stream26(stream0, Bool1)); - } + public void method_9(Stream stream0) + { + method_10(new Stream26(stream0, Bool1)); + } - public void method_10(Stream26 stream260) - { - stream260.WriteByteArray(Byte0, false); - vmethod_14(stream260); - stream260.WriteIntAt(4, (int)stream260.Length); - stream260.Position = stream260.Length; - } + public void method_10(Stream26 stream260) + { + stream260.WriteByteArray(Byte0, false); + vmethod_14(stream260); + stream260.WriteIntAt(4, (int) stream260.Length); + stream260.Position = stream260.Length; + } - public int method_11() - { - var result = 28; - vmethod_2(ref result); - return result; - } + public int method_11() + { + var result = 28; + vmethod_2(ref result); + return result; + } - public override void vmethod_2(ref int int0) - { - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int0); - } - } + public override void vmethod_2(ref int int0) + { + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int0); + } + } - public override int vmethod_1() - { - return 40; - } + public override int vmethod_1() + { + return 40; + } - public override void vmethod_0() - { - if (!Bool0) - { - return; - } - ToolTipText = GetToolTipText(); - BackColor = GetColor(); - ImageIndex = 40; - SelectedImageIndex = 40; - } + public override void vmethod_0() + { + if (!Bool0) + { + return; + } + ToolTipText = GetToolTipText(); + BackColor = GetColor(); + ImageIndex = 40; + SelectedImageIndex = 40; + } - public override string GetNodeText() - { - return "QB File"; - } + public override string GetNodeText() + { + return "QB File"; + } - public override Color GetColor() - { - return Color.LightCyan; - } + public override Color GetColor() + { + return Color.LightCyan; + } - public override int CompareTo(object target) - { - if (!(target is ZzGenericNode1)) - { - return -1; - } - if (((ZzGenericNode1)target).Text == Text) - { - return 0; - } - return 1; - } - } -} + public override int CompareTo(object target) + { + if (!(target is ZzGenericNode1)) + { + return -1; + } + if (((ZzGenericNode1) target).Text == Text) + { + return 0; + } + return 1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/AsciiArrayNode.cs b/GHNamespaceF/AsciiArrayNode.cs index 8916176..a9b82fe 100644 --- a/GHNamespaceF/AsciiArrayNode.cs +++ b/GHNamespaceF/AsciiArrayNode.cs @@ -3,104 +3,104 @@ namespace GHNamespaceF { - public class AsciiArrayNode : AbsTreeNode11 - { - public string this[int int0] - { - get => ((AsciiValueNode)Nodes[int0]).String0; - set => ((AsciiValueNode)Nodes[int0]).String0 = value; - } + public class AsciiArrayNode : AbsTreeNode11 + { + public string this[int int0] + { + get => ((AsciiValueNode) Nodes[int0]).String0; + set => ((AsciiValueNode) Nodes[int0]).String0 = value; + } - public AsciiArrayNode() - { - vmethod_0(); - } + public AsciiArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 10; - } + public override int vmethod_1() + { + return 10; + } - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num == 0) - { - return; - } - var array = new int[num]; - if (num > 1) - { - stream260.Position = stream260.ReadInt(); - for (var i = 0; i < num; i++) - { - array[i] = stream260.ReadInt(); - } - } - else - { - array[0] = stream260.ReadInt(); - } - var array2 = array; - for (var j = 0; j < array2.Length; j++) - { - var int_ = array2[j]; - Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(int_))); - } - stream260.Position += smethod_0(stream260.Position); - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num == 0) + { + return; + } + var array = new int[num]; + if (num > 1) + { + stream260.Position = stream260.ReadInt(); + for (var i = 0; i < num; i++) + { + array[i] = stream260.ReadInt(); + } + } + else + { + array[0] = stream260.ReadInt(); + } + var array2 = array; + for (var j = 0; j < array2.Length; j++) + { + var int_ = array2[j]; + Nodes.Add(new AsciiValueNode(stream260.ReadAsciiStringAt(int_))); + } + stream260.Position += smethod_0(stream260.Position); + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = 1; - array[2] = 3; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Nodes.Count); - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - stream260.WriteInt((int)stream260.Position + 4); - } - var num = (int)stream260.Position + 4 * Nodes.Count; - var stream = new Stream26(); - foreach (AsciiValueNode @class in Nodes) - { - stream260.WriteInt(num); - stream.WriteString(@class.String0); - stream.WriteByte2(0); - num += @class.String0.Length + 1; - } - stream260.WriteByteArray(stream.ReadEverything(), false); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = 1; + array[2] = 3; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Nodes.Count); + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + stream260.WriteInt((int) stream260.Position + 4); + } + var num = (int) stream260.Position + 4 * Nodes.Count; + var stream = new Stream26(); + foreach (AsciiValueNode @class in Nodes) + { + stream260.WriteInt(num); + stream.WriteString(@class.String0); + stream.WriteByte2(0); + num += @class.String0.Length + 1; + } + stream260.WriteByteArray(stream.ReadEverything(), false); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - if (Nodes.Count == 0) - { - return; - } - if (Nodes.Count > 1) - { - int0 += 4; - } - int0 += 4 * Nodes.Count; - foreach (AsciiValueNode @class in Nodes) - { - @class.vmethod_2(ref int0); - int0++; - } - int0 += smethod_0(int0); - } + public override void vmethod_2(ref int int0) + { + int0 += 8; + if (Nodes.Count == 0) + { + return; + } + if (Nodes.Count > 1) + { + int0 += 4; + } + int0 += 4 * Nodes.Count; + foreach (AsciiValueNode @class in Nodes) + { + @class.vmethod_2(ref int0); + int0++; + } + int0 += smethod_0(int0); + } - public override string GetNodeText() - { - return "Ascii Array"; - } - } -} + public override string GetNodeText() + { + return "Ascii Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/AsciiValueNode.cs b/GHNamespaceF/AsciiValueNode.cs index ea58015..405093a 100644 --- a/GHNamespaceF/AsciiValueNode.cs +++ b/GHNamespaceF/AsciiValueNode.cs @@ -3,54 +3,54 @@ namespace GHNamespaceF { - public class AsciiValueNode : AbstractTreeNode2 - { - public string String0 = ""; - - public AsciiValueNode() - { - vmethod_0(); - } - - public AsciiValueNode(string string1) - { - String0 = string1; - vmethod_0(); - } - - public override int vmethod_1() - { - return 31; - } - - public override object vmethod_7() - { - return String0; - } - - public override byte[] vmethod_8() - { - return Encoding.ASCII.GetBytes(String0); - } - - public override void vmethod_9(byte[] byte0) - { - String0 = Encoding.ASCII.GetString(byte0); - } - - public override string GetText() - { - return "\"" + String0 + "\""; - } - - public override string GetNodeText() - { - return "Ascii Value"; - } - - public override void vmethod_2(ref int int0) - { - int0 += Encoding.ASCII.GetByteCount(String0); - } - } -} + public class AsciiValueNode : AbstractTreeNode2 + { + public string String0 = ""; + + public AsciiValueNode() + { + vmethod_0(); + } + + public AsciiValueNode(string string1) + { + String0 = string1; + vmethod_0(); + } + + public override int vmethod_1() + { + return 31; + } + + public override object vmethod_7() + { + return String0; + } + + public override byte[] vmethod_8() + { + return Encoding.ASCII.GetBytes(String0); + } + + public override void vmethod_9(byte[] byte0) + { + String0 = Encoding.ASCII.GetString(byte0); + } + + public override string GetText() + { + return "\"" + String0 + "\""; + } + + public override string GetNodeText() + { + return "Ascii Value"; + } + + public override void vmethod_2(ref int int0) + { + int0 += Encoding.ASCII.GetByteCount(String0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/Class268.cs b/GHNamespaceF/Class268.cs index 6a9af6e..024f1dc 100644 --- a/GHNamespaceF/Class268.cs +++ b/GHNamespaceF/Class268.cs @@ -6,66 +6,66 @@ namespace GHNamespaceF { - public abstract class Class268 : ZzUnkNode260 - { - public abstract byte vmethod_16(); + public abstract class Class268 : ZzUnkNode260 + { + public abstract byte vmethod_16(); - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - if (this is FloatRootNode) - { - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - } - else if (this is IntegerRootNode) - { - Nodes.Add(new IntegerValueNode(stream260.ReadInt())); - } - else if (this is TagRootNode || this is FileTagRootNode) - { - Nodes.Add(new TagValueNode(stream260.ReadInt())); - } - stream260.ReadInt(); - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + if (this is FloatRootNode) + { + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + } + else if (this is IntegerRootNode) + { + Nodes.Add(new IntegerValueNode(stream260.ReadInt())); + } + else if (this is TagRootNode || this is FileTagRootNode) + { + Nodes.Add(new TagValueNode(stream260.ReadInt())); + } + stream260.ReadInt(); + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = (vmethod_7() ? (byte)32 : (byte)4); - array[2] = vmethod_16(); - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - if (Nodes.Count != 0) - { - var enumerator = Nodes.GetEnumerator(); - try - { - while (enumerator.MoveNext()) - { - var @class = (AbstractTreeNode2)enumerator.Current; - stream260.WriteByteArray(@class.vmethod_8()); - } - goto IL_97; - } - finally - { - var disposable = enumerator as IDisposable; - if (disposable != null) - { - disposable.Dispose(); - } - } - } - stream260.WriteInt(0); - IL_97: - stream260.WriteInt(0); - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = (vmethod_7() ? (byte) 32 : (byte) 4); + array[2] = vmethod_16(); + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + if (Nodes.Count != 0) + { + var enumerator = Nodes.GetEnumerator(); + try + { + while (enumerator.MoveNext()) + { + var @class = (AbstractTreeNode2) enumerator.Current; + stream260.WriteByteArray(@class.vmethod_8()); + } + goto IL_97; + } + finally + { + var disposable = enumerator as IDisposable; + if (disposable != null) + { + disposable.Dispose(); + } + } + } + stream260.WriteInt(0); + IL_97: + stream260.WriteInt(0); + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - } - } -} + public override void vmethod_2(ref int int2) + { + int2 += 20; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/DDSTexture.cs b/GHNamespaceF/DDSTexture.cs index b62b3e3..64e936b 100644 --- a/GHNamespaceF/DDSTexture.cs +++ b/GHNamespaceF/DDSTexture.cs @@ -10,274 +10,278 @@ namespace GHNamespaceF { - public class DdsTexture - { - public struct DdsPixelFormat - { - public uint size; + public class DdsTexture + { + public struct DdsPixelFormat + { + public uint size; + + public uint Flags; + + public uint FourCc; + + public uint RgbBitCount; + + public uint RedBitMask; + + public uint GreenBitMask; + + public uint BlueBitMask; + + public uint AlphaBitMask; + } + + public struct DdsHeader + { + public uint size; + + public uint Flags; + + public uint Height; + + public uint Width; + + public uint PitchOrLinearSize; + + public uint Depth; + + public uint mipMapCount; + + public DdsPixelFormat pixelFormat; + + public uint Unk1; + + public uint Unk2; + } + + public ImgPixelFormat PixelFormat; + + public int Bpp; + + public int MipMapCount; - public uint Flags; + public Size Size; - public uint FourCc; + public byte[] Data; - public uint RgbBitCount; + public DdsTexture(string string0) : this(File.OpenRead(string0), false) + { + } + + public DdsTexture(Stream stream0) : this(stream0, false) + { + } - public uint RedBitMask; + public DdsTexture(Stream stream, bool leaveOpen) + { + Load(stream, leaveOpen); + } - public uint GreenBitMask; + public DdsTexture(Image image0, int int2, ImgPixelFormat imgpixelFormat1) : this(image0, int2, imgpixelFormat1, + true) + { + } - public uint BlueBitMask; + public DdsTexture(Image image, int mipMapCount, ImgPixelFormat pixelFormat, bool unkBool1) + { + MipMapCount = mipMapCount; + PixelFormat = pixelFormat; + Size = image.Size; + ChangeImageProbably(image, mipMapCount, pixelFormat, unkBool1); + } - public uint AlphaBitMask; - } + private void Load(Stream stream, bool leaveOpen) + { + var binaryReader = new BinaryReader(stream); + if (new string(binaryReader.ReadChars(4)) != "DDS ") + { + throw new FileLoadException("Invalid DDS file"); + } + DdsHeader header; + header.size = binaryReader.ReadUInt32(); + header.Flags = binaryReader.ReadUInt32(); + header.Height = binaryReader.ReadUInt32(); + header.Width = binaryReader.ReadUInt32(); + header.PitchOrLinearSize = binaryReader.ReadUInt32(); + header.Depth = binaryReader.ReadUInt32(); + header.mipMapCount = binaryReader.ReadUInt32(); + + binaryReader.ReadBytes(44); + header.pixelFormat.size = binaryReader.ReadUInt32(); + header.pixelFormat.Flags = binaryReader.ReadUInt32(); + header.pixelFormat.FourCc = binaryReader.ReadUInt32(); + header.pixelFormat.RgbBitCount = binaryReader.ReadUInt32(); + header.pixelFormat.RedBitMask = binaryReader.ReadUInt32(); + header.pixelFormat.GreenBitMask = binaryReader.ReadUInt32(); + header.pixelFormat.BlueBitMask = binaryReader.ReadUInt32(); + header.pixelFormat.AlphaBitMask = binaryReader.ReadUInt32(); + header.Unk1 = binaryReader.ReadUInt32(); + header.Unk2 = binaryReader.ReadUInt32(); + binaryReader.ReadBytes(12); + + if (header.size == 124u) + { + if (header.pixelFormat.size == 32u) + { + if ((header.Flags & 131072u) != 0u) + { + MipMapCount = (int) header.mipMapCount; + } + else + { + MipMapCount = 1; + } + Size = new Size((int) header.Width, (int) header.Height); + if ((header.pixelFormat.Flags & 4u) != 0u) + { + var uint_ = header.pixelFormat.FourCc; + if (uint_ > 116u) + { + if (uint_ <= 844388420u) + { + if (uint_ == 827611204u) + { + PixelFormat = ImgPixelFormat.Dxt1; + Bpp = 8; + goto IL_3BE; + } + if (uint_ != 844388420u) + { + goto IL_2D5; + } + } + else if (uint_ != 861165636u) + { + if (uint_ != 877942852u && uint_ != 894720068u) + { + goto IL_2D5; + } + PixelFormat = ImgPixelFormat.Dxt5; + Bpp = 16; + goto IL_3BE; + } + PixelFormat = ImgPixelFormat.Dxt3; + Bpp = 16; + goto IL_3BE; + } + if (uint_ <= 28u) + { + switch (uint_) + { + case 20u: + PixelFormat = ImgPixelFormat.Bgr24; + Bpp = 3; + goto IL_3BE; + case 21u: + PixelFormat = ImgPixelFormat.Bgra32; + Bpp = 4; + goto IL_3BE; + case 22u: + break; + case 23u: + PixelFormat = ImgPixelFormat.Bgr16; + Bpp = 2; + goto IL_3BE; + default: + if (uint_ == 28u) + { + PixelFormat = ImgPixelFormat.Alpha8; + Bpp = 1; + goto IL_3BE; + } + break; + } + } + else + { + if (uint_ == 50u) + { + PixelFormat = ImgPixelFormat.Luminance8; + Bpp = 1; + goto IL_3BE; + } + if (uint_ == 113u) + { + PixelFormat = ImgPixelFormat.Rgba64Float; + Bpp = 8; + goto IL_3BE; + } + if (uint_ == 116u) + { + PixelFormat = ImgPixelFormat.Rgba128Float; + Bpp = 16; + goto IL_3BE; + } + } + IL_2D5: + PixelFormat = ImgPixelFormat.Bgra32; + Bpp = 4; + } + else + { + if (header.pixelFormat.RgbBitCount == 8u && header.pixelFormat.AlphaBitMask == 255u) + { + PixelFormat = ImgPixelFormat.Alpha8; + Bpp = 1; + } + if (header.pixelFormat.RgbBitCount == 32u && header.pixelFormat.RedBitMask == 16711680u && + header.pixelFormat.GreenBitMask == 65280u && header.pixelFormat.BlueBitMask == 255u && + header.pixelFormat.AlphaBitMask == 4278190080u) + { + PixelFormat = ImgPixelFormat.Bgra32; + Bpp = 4; + } + if (Bpp == 0) + { + throw new FileLoadException("Invalid Texture Format"); + } + } + IL_3BE: + var array = new byte[header.Width * header.Height * (uint) Bpp]; + stream.Read(array, 0, array.Length); + Data = array; + if (leaveOpen) + { + return; + } + stream.Close(); + stream.Dispose(); + return; + } + } + throw new FileLoadException("Unable to read DDS file: wrong format"); + } - public struct DdsHeader - { - public uint size; - - public uint Flags; - - public uint Height; - - public uint Width; - - public uint PitchOrLinearSize; - - public uint Depth; - - public uint mipMapCount; - - public DdsPixelFormat pixelFormat; - - public uint Unk1; - - public uint Unk2; - } - - public ImgPixelFormat PixelFormat; - - public int Bpp; - - public int MipMapCount; - - public Size Size; - - public byte[] Data; - - public DdsTexture(string string0) : this(File.OpenRead(string0), false) - { - } - - public DdsTexture(Stream stream0) : this(stream0, false) - { - } - - public DdsTexture(Stream stream, bool leaveOpen) - { - Load(stream, leaveOpen); - } - - public DdsTexture(Image image0, int int2, ImgPixelFormat imgpixelFormat1) : this(image0, int2, imgpixelFormat1, true) - { - } - - public DdsTexture(Image image, int mipMapCount, ImgPixelFormat pixelFormat, bool unkBool1) - { - MipMapCount = mipMapCount; - PixelFormat = pixelFormat; - Size = image.Size; - ChangeImageProbably(image, mipMapCount, pixelFormat, unkBool1); - } - - private void Load(Stream stream, bool leaveOpen) - { - var binaryReader = new BinaryReader(stream); - if (new string(binaryReader.ReadChars(4)) != "DDS ") - { - throw new FileLoadException("Invalid DDS file"); - } - DdsHeader header; - header.size = binaryReader.ReadUInt32(); - header.Flags = binaryReader.ReadUInt32(); - header.Height = binaryReader.ReadUInt32(); - header.Width = binaryReader.ReadUInt32(); - header.PitchOrLinearSize = binaryReader.ReadUInt32(); - header.Depth = binaryReader.ReadUInt32(); - header.mipMapCount = binaryReader.ReadUInt32(); - - binaryReader.ReadBytes(44); - header.pixelFormat.size = binaryReader.ReadUInt32(); - header.pixelFormat.Flags = binaryReader.ReadUInt32(); - header.pixelFormat.FourCc = binaryReader.ReadUInt32(); - header.pixelFormat.RgbBitCount = binaryReader.ReadUInt32(); - header.pixelFormat.RedBitMask = binaryReader.ReadUInt32(); - header.pixelFormat.GreenBitMask = binaryReader.ReadUInt32(); - header.pixelFormat.BlueBitMask = binaryReader.ReadUInt32(); - header.pixelFormat.AlphaBitMask = binaryReader.ReadUInt32(); - header.Unk1 = binaryReader.ReadUInt32(); - header.Unk2 = binaryReader.ReadUInt32(); - binaryReader.ReadBytes(12); - - if (header.size == 124u) - { - if (header.pixelFormat.size == 32u) - { - if ((header.Flags & 131072u) != 0u) - { - MipMapCount = (int)header.mipMapCount; - } - else - { - MipMapCount = 1; - } - Size = new Size((int)header.Width, (int)header.Height); - if ((header.pixelFormat.Flags & 4u) != 0u) - { - var uint_ = header.pixelFormat.FourCc; - if (uint_ > 116u) - { - if (uint_ <= 844388420u) - { - if (uint_ == 827611204u) - { - PixelFormat = ImgPixelFormat.Dxt1; - Bpp = 8; - goto IL_3BE; - } - if (uint_ != 844388420u) - { - goto IL_2D5; - } - } - else if (uint_ != 861165636u) - { - if (uint_ != 877942852u && uint_ != 894720068u) - { - goto IL_2D5; - } - PixelFormat = ImgPixelFormat.Dxt5; - Bpp = 16; - goto IL_3BE; - } - PixelFormat = ImgPixelFormat.Dxt3; - Bpp = 16; - goto IL_3BE; - } - if (uint_ <= 28u) - { - switch (uint_) - { - case 20u: - PixelFormat = ImgPixelFormat.Bgr24; - Bpp = 3; - goto IL_3BE; - case 21u: - PixelFormat = ImgPixelFormat.Bgra32; - Bpp = 4; - goto IL_3BE; - case 22u: - break; - case 23u: - PixelFormat = ImgPixelFormat.Bgr16; - Bpp = 2; - goto IL_3BE; - default: - if (uint_ == 28u) - { - PixelFormat = ImgPixelFormat.Alpha8; - Bpp = 1; - goto IL_3BE; - } - break; - } - } - else - { - if (uint_ == 50u) - { - PixelFormat = ImgPixelFormat.Luminance8; - Bpp = 1; - goto IL_3BE; - } - if (uint_ == 113u) - { - PixelFormat = ImgPixelFormat.Rgba64Float; - Bpp = 8; - goto IL_3BE; - } - if (uint_ == 116u) - { - PixelFormat = ImgPixelFormat.Rgba128Float; - Bpp = 16; - goto IL_3BE; - } - } - IL_2D5: - PixelFormat = ImgPixelFormat.Bgra32; - Bpp = 4; - } - else - { - if (header.pixelFormat.RgbBitCount == 8u && header.pixelFormat.AlphaBitMask == 255u) - { - PixelFormat = ImgPixelFormat.Alpha8; - Bpp = 1; - } - if (header.pixelFormat.RgbBitCount == 32u && header.pixelFormat.RedBitMask == 16711680u && header.pixelFormat.GreenBitMask == 65280u && header.pixelFormat.BlueBitMask == 255u && header.pixelFormat.AlphaBitMask == 4278190080u) - { - PixelFormat = ImgPixelFormat.Bgra32; - Bpp = 4; - } - if (Bpp == 0) - { - throw new FileLoadException("Invalid Texture Format"); - } - } - IL_3BE: - var array = new byte[header.Width * header.Height * (uint)Bpp]; - stream.Read(array, 0, array.Length); - Data = array; - if (leaveOpen) - { - return; - } - stream.Close(); - stream.Dispose(); - return; - } - } - throw new FileLoadException("Unable to read DDS file: wrong format"); - } - - public Image GetImage() - { + public Image GetImage() + { var bitmap = new Bitmap(Size.Width, Size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); - if (PixelFormat == ImgPixelFormat.Bgra32) - { - var bitmapData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), ImageLockMode.ReadWrite, bitmap.PixelFormat); - Marshal.Copy(Data, 0, bitmapData.Scan0, bitmapData.Stride * bitmap.Height); - bitmap.UnlockBits(bitmapData); - var stream = new MemoryStream(); - bitmap.Save(stream, ImageFormat.Bmp); - return Image.FromStream(stream); - } - if (PixelFormat != ImgPixelFormat.Dxt1 && PixelFormat != ImgPixelFormat.Dxt3) - { - if (PixelFormat != ImgPixelFormat.Dxt5) - { - throw new Exception("Can't decode DDS, Unknown format: " + PixelFormat); - } - } - var unk = new ImageRelatedClass(bitmap); - unk.method_4(); - var binaryReader = new BinaryReader(new MemoryStream(Data)); - ZzTextureClass.smethod_17(binaryReader, unk, PixelFormat); - binaryReader.Close(); - unk.method_5(true); - var stream2 = new MemoryStream(); - bitmap.Save(stream2, ImageFormat.Bmp); - return Image.FromStream(stream2); - } + if (PixelFormat == ImgPixelFormat.Bgra32) + { + var bitmapData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), + ImageLockMode.ReadWrite, bitmap.PixelFormat); + Marshal.Copy(Data, 0, bitmapData.Scan0, bitmapData.Stride * bitmap.Height); + bitmap.UnlockBits(bitmapData); + var stream = new MemoryStream(); + bitmap.Save(stream, ImageFormat.Bmp); + return Image.FromStream(stream); + } + if (PixelFormat != ImgPixelFormat.Dxt1 && PixelFormat != ImgPixelFormat.Dxt3) + { + if (PixelFormat != ImgPixelFormat.Dxt5) + { + throw new Exception("Can't decode DDS, Unknown format: " + PixelFormat); + } + } + var unk = new ImageRelatedClass(bitmap); + unk.method_4(); + var binaryReader = new BinaryReader(new MemoryStream(Data)); + ZzTextureClass.smethod_17(binaryReader, unk, PixelFormat); + binaryReader.Close(); + unk.method_5(true); + var stream2 = new MemoryStream(); + bitmap.Save(stream2, ImageFormat.Bmp); + return Image.FromStream(stream2); + } int ClampMipMaps(int mipMapCount, int width, int height) { @@ -289,98 +293,98 @@ int ClampMipMaps(int mipMapCount, int width, int height) return mipMapCount; } - - - public void ChangeImageProbably(Image img, int mipMaps, ImgPixelFormat imgpixelFormat1, bool bool0) - { - var memoryStream = new MemoryStream(); - var binaryWriter = new BinaryWriter(memoryStream); + public void ChangeImageProbably(Image img, int mipMaps, ImgPixelFormat imgpixelFormat1, bool bool0) + { + var memoryStream = new MemoryStream(); + var binaryWriter = new BinaryWriter(memoryStream); mipMaps = ClampMipMaps(MipMapCount, img.Width, img.Height); //Generate mipmaps for (var i = 0; i < mipMaps; i++) - { - var bitmap = KeyGenerator.ScaleImageFixedRatio(img, Math.Max(1, img.Width >> i), Math.Max(1, img.Height >> i)); - if (imgpixelFormat1 == ImgPixelFormat.Bgra32) - { - var bitmapData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), ImageLockMode.ReadWrite, bitmap.PixelFormat); - var array = new byte[bitmapData.Stride * bitmap.Height]; - Marshal.Copy(bitmapData.Scan0, array, 0, array.Length); - bitmap.UnlockBits(bitmapData); - binaryWriter.Write(array); - } - else - { - ZzTextureClass.smethod_16(bitmap, binaryWriter, imgpixelFormat1, bool0); - } - } - MipMapCount = mipMaps; - PixelFormat = imgpixelFormat1; - Data = memoryStream.ToArray(); - } - - public byte[] ToByteArray() - { - var memoryStream = new MemoryStream(); - WriteDds(memoryStream); - return memoryStream.ToArray(); - } - - public void WriteDds(Stream stream, bool leaveOpen = false) - { - var binaryWriter = new BinaryWriter(stream); - binaryWriter.Write(0x20534444); // DDS Magic word - binaryWriter.Write(124); // size (why is this a constant?..) - binaryWriter.Write(135175); // flags - binaryWriter.Write(Size.Height); // height - binaryWriter.Write(Size.Width); // width - binaryWriter.Write(new byte[8]); // pitchOrLinearSize, Depth - binaryWriter.Write(MipMapCount); // Mip maps - binaryWriter.Write(new byte[44]); // reserved + { + var bitmap = + KeyGenerator.ScaleImageFixedRatio(img, Math.Max(1, img.Width >> i), Math.Max(1, img.Height >> i)); + if (imgpixelFormat1 == ImgPixelFormat.Bgra32) + { + var bitmapData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), + ImageLockMode.ReadWrite, bitmap.PixelFormat); + var array = new byte[bitmapData.Stride * bitmap.Height]; + Marshal.Copy(bitmapData.Scan0, array, 0, array.Length); + bitmap.UnlockBits(bitmapData); + binaryWriter.Write(array); + } + else + { + ZzTextureClass.smethod_16(bitmap, binaryWriter, imgpixelFormat1, bool0); + } + } + MipMapCount = mipMaps; + PixelFormat = imgpixelFormat1; + Data = memoryStream.ToArray(); + } + + public byte[] ToByteArray() + { + var memoryStream = new MemoryStream(); + WriteDds(memoryStream); + return memoryStream.ToArray(); + } + + public void WriteDds(Stream stream, bool leaveOpen = false) + { + var binaryWriter = new BinaryWriter(stream); + binaryWriter.Write(0x20534444); // DDS Magic word + binaryWriter.Write(124); // size (why is this a constant?..) + binaryWriter.Write(135175); // flags + binaryWriter.Write(Size.Height); // height + binaryWriter.Write(Size.Width); // width + binaryWriter.Write(new byte[8]); // pitchOrLinearSize, Depth + binaryWriter.Write(MipMapCount); // Mip maps + binaryWriter.Write(new byte[44]); // reserved //Pixel Format - binaryWriter.Write(32); //size - if (PixelFormat == ImgPixelFormat.Bgra32) - { - binaryWriter.Write(65); - binaryWriter.Write(new byte[4]); - binaryWriter.Write(32); - binaryWriter.Write(16711680); - binaryWriter.Write(65280); - binaryWriter.Write(255); - binaryWriter.Write(4278190080u); - binaryWriter.Write(4198410); - binaryWriter.Write(65280); - binaryWriter.Write(new byte[12]); - } - else - { - binaryWriter.Write(4); - switch (PixelFormat) - { - case ImgPixelFormat.Dxt1: - binaryWriter.Write(827611204); - break; - case ImgPixelFormat.Dxt3: - binaryWriter.Write(861165636); - break; - case ImgPixelFormat.Dxt5: - binaryWriter.Write(894720068); - break; - default: - throw new Exception("DDS Creation: Format unknown"); - } - binaryWriter.Write(new byte[20]); - binaryWriter.Write(4198408); - binaryWriter.Write(new byte[16]); - } - binaryWriter.Write(Data); - if (!leaveOpen) - { - binaryWriter.Close(); - } - } - } -} + binaryWriter.Write(32); //size + if (PixelFormat == ImgPixelFormat.Bgra32) + { + binaryWriter.Write(65); + binaryWriter.Write(new byte[4]); + binaryWriter.Write(32); + binaryWriter.Write(16711680); + binaryWriter.Write(65280); + binaryWriter.Write(255); + binaryWriter.Write(4278190080u); + binaryWriter.Write(4198410); + binaryWriter.Write(65280); + binaryWriter.Write(new byte[12]); + } + else + { + binaryWriter.Write(4); + switch (PixelFormat) + { + case ImgPixelFormat.Dxt1: + binaryWriter.Write(827611204); + break; + case ImgPixelFormat.Dxt3: + binaryWriter.Write(861165636); + break; + case ImgPixelFormat.Dxt5: + binaryWriter.Write(894720068); + break; + default: + throw new Exception("DDS Creation: Format unknown"); + } + binaryWriter.Write(new byte[20]); + binaryWriter.Write(4198408); + binaryWriter.Write(new byte[16]); + } + binaryWriter.Write(Data); + if (!leaveOpen) + { + binaryWriter.Close(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/FileTagArrayNode.cs b/GHNamespaceF/FileTagArrayNode.cs index 82cd5df..177518d 100644 --- a/GHNamespaceF/FileTagArrayNode.cs +++ b/GHNamespaceF/FileTagArrayNode.cs @@ -2,32 +2,32 @@ namespace GHNamespaceF { - public class FileTagArrayNode : ZzUnkNode278 - { - public int this[int int0] - { - get => ((TagValueNode)Nodes[int0]).Int0; - set => ((TagValueNode)Nodes[int0]).Int0 = value; - } + public class FileTagArrayNode : ZzUnkNode278 + { + public int this[int int0] + { + get => ((TagValueNode) Nodes[int0]).Int0; + set => ((TagValueNode) Nodes[int0]).Int0 = value; + } - public FileTagArrayNode() - { - vmethod_0(); - } + public FileTagArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 14; - } + public override int vmethod_1() + { + return 14; + } - public override byte vmethod_15() - { - return 26; - } + public override byte vmethod_15() + { + return 26; + } - public override string GetNodeText() - { - return "File Tag Array"; - } - } -} + public override string GetNodeText() + { + return "File Tag Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/FileTagRootNode.cs b/GHNamespaceF/FileTagRootNode.cs index 6084457..394e4be 100644 --- a/GHNamespaceF/FileTagRootNode.cs +++ b/GHNamespaceF/FileTagRootNode.cs @@ -1,25 +1,25 @@ namespace GHNamespaceF { - public class FileTagRootNode : Class268 - { - public FileTagRootNode() - { - vmethod_0(); - } + public class FileTagRootNode : Class268 + { + public FileTagRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 4; - } + public override int vmethod_1() + { + return 4; + } - public override string GetNodeText() - { - return "File Tag Root"; - } + public override string GetNodeText() + { + return "File Tag Root"; + } - public override byte vmethod_16() - { - return 26; - } - } -} + public override byte vmethod_16() + { + return 26; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/FloatListNode.cs b/GHNamespaceF/FloatListNode.cs index 23e9dc6..13a27c4 100644 --- a/GHNamespaceF/FloatListNode.cs +++ b/GHNamespaceF/FloatListNode.cs @@ -8,66 +8,66 @@ namespace GHNamespaceF { - public class FloatListNode : AbsTreeNode11 - { - public FloatListNode() - { - vmethod_0(); - } + public class FloatListNode : AbsTreeNode11 + { + public FloatListNode() + { + vmethod_0(); + } - public FloatListNode(bool bool1) : this() - { - if (bool1) - { - var ienumerable = new float[2]; - method_11(ienumerable); - } - } + public FloatListNode(bool bool1) : this() + { + if (bool1) + { + var ienumerable = new float[2]; + method_11(ienumerable); + } + } - public override int vmethod_1() - { - return 20; - } + public override int vmethod_1() + { + return 20; + } - public void method_11(IEnumerable ienumerable0) - { - foreach (var float_ in ienumerable0) - { - Nodes.Add(new FloatValueNode(float_)); - } - vmethod_0(); - } + public void method_11(IEnumerable ienumerable0) + { + foreach (var float_ in ienumerable0) + { + Nodes.Add(new FloatValueNode(float_)); + } + vmethod_0(); + } - public override void vmethod_13(Stream26 stream260) - { - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - if (method_1() is VectorArrayNode || method_1() is VectorPointerRootNode || method_1() is VectorPointerNode) - { - Nodes.Add(new FloatValueNode(stream260.ReadFloat())); - } - method_1().BackColor = Color.Gray; - } + public override void vmethod_13(Stream26 stream260) + { + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + if (method_1() is VectorArrayNode || method_1() is VectorPointerRootNode || method_1() is VectorPointerNode) + { + Nodes.Add(new FloatValueNode(stream260.ReadFloat())); + } + method_1().BackColor = Color.Gray; + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = 1; - stream260.WriteByteArray(array, false); - foreach (FloatValueNode class313 in Nodes) - { - stream260.WriteFloat(FloatValueNode.smethod_0(class313)); - } - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = 1; + stream260.WriteByteArray(array, false); + foreach (FloatValueNode class313 in Nodes) + { + stream260.WriteFloat(FloatValueNode.smethod_0(class313)); + } + } - public override void vmethod_2(ref int int0) - { - int0 += 4 + 4 * Nodes.Count; - } + public override void vmethod_2(ref int int0) + { + int0 += 4 + 4 * Nodes.Count; + } - public override string GetNodeText() - { - return "Float List"; - } - } -} + public override string GetNodeText() + { + return "Float List"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/FloatRootNode.cs b/GHNamespaceF/FloatRootNode.cs index b4527c8..7d847b9 100644 --- a/GHNamespaceF/FloatRootNode.cs +++ b/GHNamespaceF/FloatRootNode.cs @@ -1,25 +1,25 @@ namespace GHNamespaceF { - public class FloatRootNode : Class268 - { - public FloatRootNode() - { - vmethod_0(); - } + public class FloatRootNode : Class268 + { + public FloatRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 3; - } + public override int vmethod_1() + { + return 3; + } - public override string GetNodeText() - { - return "Float Root"; - } + public override string GetNodeText() + { + return "Float Root"; + } - public override byte vmethod_16() - { - return 2; - } - } -} + public override byte vmethod_16() + { + return 2; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/IntegerRootNode.cs b/GHNamespaceF/IntegerRootNode.cs index de30769..c4c1cc8 100644 --- a/GHNamespaceF/IntegerRootNode.cs +++ b/GHNamespaceF/IntegerRootNode.cs @@ -2,67 +2,68 @@ namespace GHNamespaceF { - public class IntegerRootNode : Class268 - { - public IntegerRootNode() - { - vmethod_0(); - } + public class IntegerRootNode : Class268 + { + public IntegerRootNode() + { + vmethod_0(); + } - public IntegerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public IntegerRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public IntegerRootNode(int int2) - { - Int0 = int2; - vmethod_0(); - } + public IntegerRootNode(int int2) + { + Int0 = int2; + vmethod_0(); + } - public IntegerRootNode(string string0, string string1, int int2) : this(QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), int2) - { - } + public IntegerRootNode(string string0, string string1, int int2) : this( + QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), int2) + { + } - public IntegerRootNode(int int2, int int3, int int4) - { - Int0 = int2; - Int1 = int3; - Nodes.Add(new IntegerValueNode(int4)); - vmethod_0(); - } + public IntegerRootNode(int int2, int int3, int int4) + { + Int0 = int2; + Int1 = int3; + Nodes.Add(new IntegerValueNode(int4)); + vmethod_0(); + } - public override int vmethod_1() - { - return 2; - } + public override int vmethod_1() + { + return 2; + } - public int method_7() - { - if (Nodes.Count != 0) - { - return ((IntegerValueNode)FirstNode).Int0; - } - return 0; - } + public int method_7() + { + if (Nodes.Count != 0) + { + return ((IntegerValueNode) FirstNode).Int0; + } + return 0; + } - public void method_8(int int2) - { - if (Nodes.Count != 0) - { - ((IntegerValueNode)FirstNode).Int0 = int2; - return; - } - Nodes.Add(new IntegerValueNode(int2)); - } + public void method_8(int int2) + { + if (Nodes.Count != 0) + { + ((IntegerValueNode) FirstNode).Int0 = int2; + return; + } + Nodes.Add(new IntegerValueNode(int2)); + } - public override string GetNodeText() - { - return "Integer Root"; - } + public override string GetNodeText() + { + return "Integer Root"; + } - public override byte vmethod_16() - { - return 1; - } - } -} + public override byte vmethod_16() + { + return 1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/IntegerValueNode.cs b/GHNamespaceF/IntegerValueNode.cs index 989b331..35221d0 100644 --- a/GHNamespaceF/IntegerValueNode.cs +++ b/GHNamespaceF/IntegerValueNode.cs @@ -3,54 +3,54 @@ namespace GHNamespaceF { - public class IntegerValueNode : AbstractTreeNode2 - { - public int Int0; - - public IntegerValueNode() - { - vmethod_0(); - } - - public IntegerValueNode(int int1) - { - Int0 = int1; - vmethod_0(); - } - - public override int vmethod_1() - { - return 33; - } - - public override object vmethod_7() - { - return Int0; - } - - public override byte[] vmethod_8() - { - return BitConverter.GetBytes(Int0); - } - - public override void vmethod_9(byte[] byte0) - { - Int0 = BitConverter.ToInt32(byte0, 0); - } - - public override string GetText() - { - return string.Concat(Int0); - } - - public override string GetNodeText() - { - return "Integer Value"; - } - - public override void vmethod_2(ref int int1) - { - int1 += 4; - } - } -} + public class IntegerValueNode : AbstractTreeNode2 + { + public int Int0; + + public IntegerValueNode() + { + vmethod_0(); + } + + public IntegerValueNode(int int1) + { + Int0 = int1; + vmethod_0(); + } + + public override int vmethod_1() + { + return 33; + } + + public override object vmethod_7() + { + return Int0; + } + + public override byte[] vmethod_8() + { + return BitConverter.GetBytes(Int0); + } + + public override void vmethod_9(byte[] byte0) + { + Int0 = BitConverter.ToInt32(byte0, 0); + } + + public override string GetText() + { + return string.Concat(Int0); + } + + public override string GetNodeText() + { + return "Integer Value"; + } + + public override void vmethod_2(ref int int1) + { + int1 += 4; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/ListArrayNode.cs b/GHNamespaceF/ListArrayNode.cs index f80e0da..357278d 100644 --- a/GHNamespaceF/ListArrayNode.cs +++ b/GHNamespaceF/ListArrayNode.cs @@ -3,32 +3,32 @@ namespace GHNamespaceF { - public class ListArrayNode : ZzUnkNode289 - { - public AbsTreeNode11 this[int int0] - { - get => (AbsTreeNode11)Nodes[int0]; - set => Nodes[int0] = value; - } + public class ListArrayNode : ZzUnkNode289 + { + public AbsTreeNode11 this[int int0] + { + get => (AbsTreeNode11) Nodes[int0]; + set => Nodes[int0] = value; + } - public ListArrayNode() - { - vmethod_0(); - } + public ListArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 16; - } + public override int vmethod_1() + { + return 16; + } - public override byte vmethod_15() - { - return 12; - } + public override byte vmethod_15() + { + return 12; + } - public override string GetNodeText() - { - return "List Array"; - } - } -} + public override string GetNodeText() + { + return "List Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/ScriptRootNode.cs b/GHNamespaceF/ScriptRootNode.cs index 53659da..8f8c7a8 100644 --- a/GHNamespaceF/ScriptRootNode.cs +++ b/GHNamespaceF/ScriptRootNode.cs @@ -5,93 +5,94 @@ namespace GHNamespaceF { - public class ScriptRootNode : ZzUnkNode260 - { - public ScriptRootNode() - { - vmethod_0(); - } + public class ScriptRootNode : ZzUnkNode260 + { + public ScriptRootNode() + { + vmethod_0(); + } - public ScriptRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public ScriptRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public ScriptRootNode(int int2) - { - Int0 = int2; - vmethod_0(); - } + public ScriptRootNode(int int2) + { + Int0 = int2; + vmethod_0(); + } - public ScriptRootNode(string string0, string string1, QbScriptNode class2750) : this(QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), class2750) - { - } + public ScriptRootNode(string string0, string string1, QbScriptNode class2750) : this( + QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), class2750) + { + } - public ScriptRootNode(int int2, int int3, QbScriptNode class2750) - { - Int0 = int2; - Int1 = int3; - Nodes.Add(class2750); - vmethod_0(); - } + public ScriptRootNode(int int2, int int3, QbScriptNode class2750) + { + Int0 = int2; + Int1 = int3; + Nodes.Add(class2750); + vmethod_0(); + } - public override int vmethod_1() - { - return 5; - } + public override int vmethod_1() + { + return 5; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - var num = stream260.ReadInt(); - stream260.ReadInt(); - if (num != 0) - { - stream260.Position = num; - var @class = new QbScriptNode(); - Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + var num = stream260.ReadInt(); + stream260.ReadInt(); + if (num != 0) + { + stream260.Position = num; + var @class = new QbScriptNode(); + Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = (byte)(vmethod_7() ? 32 : 4); - array[2] = 7; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - stream260.WriteInt((Nodes.Count != 0) ? ((int)stream260.Position + 8) : 0); - stream260.WriteInt(0); - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_14(stream260); - } - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = (byte) (vmethod_7() ? 32 : 4); + array[2] = 7; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + stream260.WriteInt((Nodes.Count != 0) ? ((int) stream260.Position + 8) : 0); + stream260.WriteInt(0); + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_14(stream260); + } + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int2); - } - } + public override void vmethod_2(ref int int2) + { + int2 += 20; + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int2); + } + } - public override string GetNodeText() - { - return "Script Root"; - } + public override string GetNodeText() + { + return "Script Root"; + } - public QbScriptNode method_7() - { - return (QbScriptNode)Nodes[0]; - } + public QbScriptNode method_7() + { + return (QbScriptNode) Nodes[0]; + } - public override Color vmethod_15() - { - return GetColor2IfPrevNodeIsColor1(Color.BlanchedAlmond, Color.Cornsilk); - } - } -} + public override Color vmethod_15() + { + return GetColor2IfPrevNodeIsColor1(Color.BlanchedAlmond, Color.Cornsilk); + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/StructureHeaderNode.cs b/GHNamespaceF/StructureHeaderNode.cs index af6248e..aff9c8b 100644 --- a/GHNamespaceF/StructureHeaderNode.cs +++ b/GHNamespaceF/StructureHeaderNode.cs @@ -8,221 +8,221 @@ namespace GHNamespaceF { - public class StructureHeaderNode : AbsTreeNode11 - { - public ZzUnkNode294 this[int int0] - { - get => (ZzUnkNode294)Nodes[int0]; - set => Nodes[int0] = value; - } + public class StructureHeaderNode : AbsTreeNode11 + { + public ZzUnkNode294 this[int int0] + { + get => (ZzUnkNode294) Nodes[int0]; + set => Nodes[int0] = value; + } - public StructureHeaderNode() - { - vmethod_0(); - } + public StructureHeaderNode() + { + vmethod_0(); + } - public StructureHeaderNode(IEnumerable ienumerable0) - { - method_10(ienumerable0); - } + public StructureHeaderNode(IEnumerable ienumerable0) + { + method_10(ienumerable0); + } - public override int vmethod_1() - { - return 19; - } + public override int vmethod_1() + { + return 19; + } - public override void vmethod_13(Stream26 stream260) - { - var num = stream260.ReadInt(); - if (num != 0) - { - stream260.Position = num; - var @class = method_11(stream260.ReadInt()); - Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + var num = stream260.ReadInt(); + if (num != 0) + { + stream260.Position = num; + var @class = method_11(stream260.ReadInt()); + Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[2] = 1; - stream260.WriteByteArray(array, false); - if (Nodes.Count != 0) - { - stream260.WriteInt((int)stream260.Position + 4); - } - else - { - stream260.WriteInt(0); - } - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_14(stream260); - } - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[2] = 1; + stream260.WriteByteArray(array, false); + if (Nodes.Count != 0) + { + stream260.WriteInt((int) stream260.Position + 4); + } + else + { + stream260.WriteInt(0); + } + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_14(stream260); + } + } - public AbstractTreeNode1 method_11(int int0) - { - if (int0 == 256) - { - return new StructureHeaderNode(); - } - var num = int0 >> 16 & 255; - var num2 = int0 >> 8 & 255; - var ex = new Exception("No QB Node class found for : " + KeyGenerator.ValToHex32Bit(int0)); - if (num == 1) - { - vmethod_9(true); - if (num2 == 1) - { - return new IntegerStructureNode(); - } - if (num2 == 2) - { - return new FloatStructureNode(); - } - if (num2 == 3) - { - return new AsciiStructureNode(); - } - if (num2 == 4) - { - return new UnicodeStructureNode(); - } - if (num2 == 5) - { - return new PairPointerNode(); - } - if (num2 == 6) - { - return new VectorPointerNode(); - } - if (num2 == 10) - { - return new StructurePointerNode(); - } - if (num2 == 12) - { - return new ArrayPointerNode(); - } - if (num2 == 13) - { - return new TagStructureNode(); - } - if (num2 == 26) - { - return new FileTagStructureNode(); - } - if (num2 == 28) - { - return new TextStructureNode(); - } - throw ex; - } - if (!vmethod_7()) - { - if (num == 3) - { - return new IntegerStructureNode(); - } - if (num == 5) - { - return new FloatStructureNode(); - } - if (num == 7) - { - return new AsciiStructureNode(); - } - if (num == 9) - { - return new UnicodeStructureNode(); - } - if (num == 11) - { - return new PairPointerNode(); - } - if (num == 13) - { - return new VectorPointerNode(); - } - if (num == 21) - { - return new StructurePointerNode(); - } - if (num == 25) - { - return new ArrayPointerNode(); - } - if (num == 27) - { - return new TagStructureNode(); - } - if (num == 53) - { - return new FileTagStructureNode(); - } - throw ex; - } - if (num == 154) - { - return new FileTagStructureNode(); - } - if ((num & 240) != 128 || (num2 = (num & 15)) == 0) - { - return null; - } - if (num2 == 1) - { - return new IntegerStructureNode(); - } - if (num2 == 2) - { - return new FloatStructureNode(); - } - if (num2 == 3) - { - return new AsciiStructureNode(); - } - if (num2 == 4) - { - return new UnicodeStructureNode(); - } - if (num2 == 5) - { - return new PairPointerNode(); - } - if (num2 == 6) - { - return new VectorPointerNode(); - } - if (num2 == 10) - { - return new StructurePointerNode(); - } - if (num2 == 12) - { - return new ArrayPointerNode(); - } - if (num2 == 13) - { - return new TagStructureNode(); - } - throw ex; - } + public AbstractTreeNode1 method_11(int int0) + { + if (int0 == 256) + { + return new StructureHeaderNode(); + } + var num = int0 >> 16 & 255; + var num2 = int0 >> 8 & 255; + var ex = new Exception("No QB Node class found for : " + KeyGenerator.ValToHex32Bit(int0)); + if (num == 1) + { + vmethod_9(true); + if (num2 == 1) + { + return new IntegerStructureNode(); + } + if (num2 == 2) + { + return new FloatStructureNode(); + } + if (num2 == 3) + { + return new AsciiStructureNode(); + } + if (num2 == 4) + { + return new UnicodeStructureNode(); + } + if (num2 == 5) + { + return new PairPointerNode(); + } + if (num2 == 6) + { + return new VectorPointerNode(); + } + if (num2 == 10) + { + return new StructurePointerNode(); + } + if (num2 == 12) + { + return new ArrayPointerNode(); + } + if (num2 == 13) + { + return new TagStructureNode(); + } + if (num2 == 26) + { + return new FileTagStructureNode(); + } + if (num2 == 28) + { + return new TextStructureNode(); + } + throw ex; + } + if (!vmethod_7()) + { + if (num == 3) + { + return new IntegerStructureNode(); + } + if (num == 5) + { + return new FloatStructureNode(); + } + if (num == 7) + { + return new AsciiStructureNode(); + } + if (num == 9) + { + return new UnicodeStructureNode(); + } + if (num == 11) + { + return new PairPointerNode(); + } + if (num == 13) + { + return new VectorPointerNode(); + } + if (num == 21) + { + return new StructurePointerNode(); + } + if (num == 25) + { + return new ArrayPointerNode(); + } + if (num == 27) + { + return new TagStructureNode(); + } + if (num == 53) + { + return new FileTagStructureNode(); + } + throw ex; + } + if (num == 154) + { + return new FileTagStructureNode(); + } + if ((num & 240) != 128 || (num2 = (num & 15)) == 0) + { + return null; + } + if (num2 == 1) + { + return new IntegerStructureNode(); + } + if (num2 == 2) + { + return new FloatStructureNode(); + } + if (num2 == 3) + { + return new AsciiStructureNode(); + } + if (num2 == 4) + { + return new UnicodeStructureNode(); + } + if (num2 == 5) + { + return new PairPointerNode(); + } + if (num2 == 6) + { + return new VectorPointerNode(); + } + if (num2 == 10) + { + return new StructurePointerNode(); + } + if (num2 == 12) + { + return new ArrayPointerNode(); + } + if (num2 == 13) + { + return new TagStructureNode(); + } + throw ex; + } - public override void vmethod_2(ref int int0) - { - int0 += 8; - foreach (AbstractTreeNode1 @class in Nodes) - { - @class.vmethod_2(ref int0); - } - } + public override void vmethod_2(ref int int0) + { + int0 += 8; + foreach (AbstractTreeNode1 @class in Nodes) + { + @class.vmethod_2(ref int0); + } + } - public override string GetNodeText() - { - return "Structure Header"; - } - } -} + public override string GetNodeText() + { + return "Structure Header"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/TagValueNode.cs b/GHNamespaceF/TagValueNode.cs index ccc30c3..b151512 100644 --- a/GHNamespaceF/TagValueNode.cs +++ b/GHNamespaceF/TagValueNode.cs @@ -4,74 +4,74 @@ namespace GHNamespaceF { - public class TagValueNode : AbstractTreeNode2 - { - public int Int0; + public class TagValueNode : AbstractTreeNode2 + { + public int Int0; - public TagValueNode() - { - vmethod_0(); - } + public TagValueNode() + { + vmethod_0(); + } - public TagValueNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public TagValueNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public TagValueNode(string string0) - { - method_3(string0); - vmethod_0(); - } + public TagValueNode(string string0) + { + method_3(string0); + vmethod_0(); + } - public override int vmethod_1() - { - return 35; - } + public override int vmethod_1() + { + return 35; + } - public override object vmethod_7() - { - return method_2(); - } + public override object vmethod_7() + { + return method_2(); + } - public override byte[] vmethod_8() - { - return BitConverter.GetBytes(Int0); - } + public override byte[] vmethod_8() + { + return BitConverter.GetBytes(Int0); + } - public override void vmethod_9(byte[] byte0) - { - Int0 = BitConverter.ToInt32(byte0, 0); - } + public override void vmethod_9(byte[] byte0) + { + Int0 = BitConverter.ToInt32(byte0, 0); + } - public override string GetText() - { - return method_2(); - } + public override string GetText() + { + return method_2(); + } - public string method_2() - { - if (QbSongClass1.ContainsKey(Int0)) - { - return QbSongClass1.GetDictString(Int0); - } - return "0x" + IntToHex32Bit(Int0); - } + public string method_2() + { + if (QbSongClass1.ContainsKey(Int0)) + { + return QbSongClass1.GetDictString(Int0); + } + return "0x" + IntToHex32Bit(Int0); + } - public void method_3(string string0) - { - Int0 = QbSongClass1.AddKeyToDictionary(string0); - } + public void method_3(string string0) + { + Int0 = QbSongClass1.AddKeyToDictionary(string0); + } - public override string GetNodeText() - { - return "Tag Value"; - } + public override string GetNodeText() + { + return "Tag Value"; + } - public override void vmethod_2(ref int int1) - { - int1 += 4; - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 4; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/TextStructureNode.cs b/GHNamespaceF/TextStructureNode.cs index 0246f14..cfdd0b8 100644 --- a/GHNamespaceF/TextStructureNode.cs +++ b/GHNamespaceF/TextStructureNode.cs @@ -4,85 +4,87 @@ namespace GHNamespaceF { - public class TextStructureNode : ZzUnkNode294 - { - public TextStructureNode() - { - vmethod_0(); - } + public class TextStructureNode : ZzUnkNode294 + { + public TextStructureNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 22; - } + public override int vmethod_1() + { + return 22; + } - public string method_8() - { - if (Nodes.Count != 0) - { - return ((TextValueNode)FirstNode).method_2(); - } - return null; - } + public string method_8() + { + if (Nodes.Count != 0) + { + return ((TextValueNode) FirstNode).method_2(); + } + return null; + } - public int method_9() - { - if (Nodes.Count != 0) - { - return ((TextValueNode)FirstNode).Int0; - } - return 0; - } + public int method_9() + { + if (Nodes.Count != 0) + { + return ((TextValueNode) FirstNode).Int0; + } + return 0; + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); - var num = stream260.ReadInt(); - if (num != 0) - { - var @class = (Parent is StructureHeaderNode) ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num)) : vmethod_12(stream260.ReadIntAt(num, true)); - method_1().Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Nodes.Add(new TextValueNode(stream260.ReadInt(), vmethod_10())); + var num = stream260.ReadInt(); + if (num != 0) + { + var @class = (Parent is StructureHeaderNode) + ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num)) + : vmethod_12(stream260.ReadIntAt(num, true)); + method_1().Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - vmethod_9(true); - var array = new byte[4]; - array[1] = 1; - array[2] = 28; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - if (Nodes.Count != 0) - { - stream260.WriteInt(method_9()); - if (method_8() != null) - { - vmethod_10()[method_9()] = method_8(); - } - } - else - { - stream260.WriteInt(0); - } - if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) - { - stream260.WriteInt((int)stream260.Position + 4); - return; - } - stream260.WriteInt(0); - } + public override void vmethod_14(Stream26 stream260) + { + vmethod_9(true); + var array = new byte[4]; + array[1] = 1; + array[2] = 28; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + if (Nodes.Count != 0) + { + stream260.WriteInt(method_9()); + if (method_8() != null) + { + vmethod_10()[method_9()] = method_8(); + } + } + else + { + stream260.WriteInt(0); + } + if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) + { + stream260.WriteInt((int) stream260.Position + 4); + return; + } + stream260.WriteInt(0); + } - public override string GetNodeText() - { - return "Text Structure"; - } + public override string GetNodeText() + { + return "Text Structure"; + } - public override void vmethod_2(ref int int1) - { - int1 += 16; - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 16; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/TextureMetadata.cs b/GHNamespaceF/TextureMetadata.cs index cb8f1a1..0471035 100644 --- a/GHNamespaceF/TextureMetadata.cs +++ b/GHNamespaceF/TextureMetadata.cs @@ -1,38 +1,40 @@ namespace GHNamespaceF { - public class TextureMetadata - { - public short UnkFlags; // Only used on loading and saving. Value of 0x200 (512) for green note + public class TextureMetadata + { + public short UnkFlags; // Only used on loading and saving. Value of 0x200 (512) for green note - public int Key; // Only used on loading and saving. Value of 0x151ee874 for green note + public int Key; // Only used on loading and saving. Value of 0x151ee874 for green note public short Width; - public short Height; + public short Height; - public short UnkShort3; // Only used on loading and saving. Value of 0x01 for green note. Maybe number of frames? + public short UnkShort3 + ; // Only used on loading and saving. Value of 0x01 for green note. Maybe number of frames? - public byte MipMapCount; + public byte MipMapCount; - public short UnkShort4; // Only used on loading and saving. Value of 0x0805 for green note + public short UnkShort4; // Only used on loading and saving. Value of 0x0805 for green note - public int StartIndex; + public int StartIndex; - public int Length; //Probably + public int Length; //Probably - public byte[] Data; + public byte[] Data; - public TextureMetadata(short unkFlags, int key, short width, short height, short unkShort3, byte mipMapCount, short unkShort4, int startIndex, int length) - { - UnkFlags = unkFlags; - Key = key; - Width = width; - Height = height; - UnkShort3 = unkShort3; - MipMapCount = mipMapCount; - UnkShort4 = unkShort4; - StartIndex = startIndex; - Length = length; - } - } -} + public TextureMetadata(short unkFlags, int key, short width, short height, short unkShort3, byte mipMapCount, + short unkShort4, int startIndex, int length) + { + UnkFlags = unkFlags; + Key = key; + Width = width; + Height = height; + UnkShort3 = unkShort3; + MipMapCount = mipMapCount; + UnkShort4 = unkShort4; + StartIndex = startIndex; + Length = length; + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/TreeNodeTextComparer.cs b/GHNamespaceF/TreeNodeTextComparer.cs index f969d7b..f6cab81 100644 --- a/GHNamespaceF/TreeNodeTextComparer.cs +++ b/GHNamespaceF/TreeNodeTextComparer.cs @@ -3,21 +3,21 @@ namespace GHNamespaceF { - public class TreeNodeTextComparer : IComparer - { - public int Compare(object x, object y) - { - var treeNode = x as TreeNode; - var treeNode2 = y as TreeNode; - if (treeNode.Nodes.Count > 0 && treeNode2.Nodes.Count == 0) - { - return -1; - } - if (treeNode.Nodes.Count == 0 && treeNode2.Nodes.Count > 0) - { - return 1; - } - return string.Compare(treeNode.Text, treeNode2.Text); - } - } -} + public class TreeNodeTextComparer : IComparer + { + public int Compare(object x, object y) + { + var treeNode = x as TreeNode; + var treeNode2 = y as TreeNode; + if (treeNode.Nodes.Count > 0 && treeNode2.Nodes.Count == 0) + { + return -1; + } + if (treeNode.Nodes.Count == 0 && treeNode2.Nodes.Count > 0) + { + return 1; + } + return string.Compare(treeNode.Text, treeNode2.Text); + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/UnicodeRootNode.cs b/GHNamespaceF/UnicodeRootNode.cs index 5cf0268..c24b032 100644 --- a/GHNamespaceF/UnicodeRootNode.cs +++ b/GHNamespaceF/UnicodeRootNode.cs @@ -5,106 +5,107 @@ namespace GHNamespaceF { - public class UnicodeRootNode : ZzUnkNode260 - { - public UnicodeRootNode() - { - vmethod_0(); - } + public class UnicodeRootNode : ZzUnkNode260 + { + public UnicodeRootNode() + { + vmethod_0(); + } - public UnicodeRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public UnicodeRootNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public UnicodeRootNode(int int2) - { - Int0 = int2; - vmethod_0(); - } + public UnicodeRootNode(int int2) + { + Int0 = int2; + vmethod_0(); + } - public UnicodeRootNode(string string0, string string1, string string2) : this(QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), string2) - { - } + public UnicodeRootNode(string string0, string string1, string string2) : this( + QbSongClass1.AddKeyToDictionary(string0), QbSongClass1.AddKeyToDictionary(string1), string2) + { + } - public UnicodeRootNode(int int2, int int3, string string0) - { - Int0 = int2; - Int1 = int3; - Nodes.Add(new UnicodeValueNode(string0)); - vmethod_0(); - } + public UnicodeRootNode(int int2, int int3, string string0) + { + Int0 = int2; + Int1 = int3; + Nodes.Add(new UnicodeValueNode(string0)); + vmethod_0(); + } - public override int vmethod_1() - { - return 1; - } + public override int vmethod_1() + { + return 1; + } - public string method_7() - { - if (Nodes.Count != 0) - { - return ((UnicodeValueNode)FirstNode).String0; - } - return null; - } + public string method_7() + { + if (Nodes.Count != 0) + { + return ((UnicodeValueNode) FirstNode).String0; + } + return null; + } - public void method_8(string string0) - { - if (Nodes.Count != 0) - { - ((UnicodeValueNode)FirstNode).String0 = string0; - return; - } - Nodes.Add(new UnicodeValueNode(string0)); - } + public void method_8(string string0) + { + if (Nodes.Count != 0) + { + ((UnicodeValueNode) FirstNode).String0 = string0; + return; + } + Nodes.Add(new UnicodeValueNode(string0)); + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - Int1 = stream260.ReadInt(); - var num = stream260.ReadInt(); - stream260.ReadInt(); - if (num != 0) - { - Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(num))); - stream260.Position += smethod_0(stream260.Position); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + Int1 = stream260.ReadInt(); + var num = stream260.ReadInt(); + stream260.ReadInt(); + if (num != 0) + { + Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(num))); + stream260.Position += smethod_0(stream260.Position); + } + } - public override void vmethod_14(Stream26 stream260) - { - var array = new byte[4]; - array[1] = (vmethod_7() ? (byte)32 : (byte)4); - array[2] = 4; - stream260.WriteByteArray(array, false); - stream260.WriteInt(Int0); - stream260.WriteInt(Int1); - if (Nodes.Count != 0) - { - stream260.WriteInt((int)stream260.Position + 8); - stream260.WriteInt(0); - stream260.WriteString(method_7(), stream260.ReverseEndianness); - stream260.WriteNBytes(0, 2); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - return; - } - stream260.WriteNBytes(0, 8); - } + public override void vmethod_14(Stream26 stream260) + { + var array = new byte[4]; + array[1] = (vmethod_7() ? (byte) 32 : (byte) 4); + array[2] = 4; + stream260.WriteByteArray(array, false); + stream260.WriteInt(Int0); + stream260.WriteInt(Int1); + if (Nodes.Count != 0) + { + stream260.WriteInt((int) stream260.Position + 8); + stream260.WriteInt(0); + stream260.WriteString(method_7(), stream260.ReverseEndianness); + stream260.WriteNBytes(0, 2); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + return; + } + stream260.WriteNBytes(0, 8); + } - public override string GetNodeText() - { - return "Unicode Root"; - } + public override string GetNodeText() + { + return "Unicode Root"; + } - public override void vmethod_2(ref int int2) - { - int2 += 20; - if (Nodes.Count != 0) - { - ((UnicodeValueNode)Nodes[0]).vmethod_2(ref int2); - int2 += 2; - int2 += smethod_0(int2); - } - } - } -} + public override void vmethod_2(ref int int2) + { + int2 += 20; + if (Nodes.Count != 0) + { + ((UnicodeValueNode) Nodes[0]).vmethod_2(ref int2); + int2 += 2; + int2 += smethod_0(int2); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/UnicodeStructureNode.cs b/GHNamespaceF/UnicodeStructureNode.cs index 1a2c0ee..a9b2dd4 100644 --- a/GHNamespaceF/UnicodeStructureNode.cs +++ b/GHNamespaceF/UnicodeStructureNode.cs @@ -5,131 +5,134 @@ namespace GHNamespaceF { - public class UnicodeStructureNode : ZzUnkNode294 - { - public UnicodeStructureNode() - { - vmethod_0(); - } + public class UnicodeStructureNode : ZzUnkNode294 + { + public UnicodeStructureNode() + { + vmethod_0(); + } - public UnicodeStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) - { - } + public UnicodeStructureNode(string string0) : this(QbSongClass1.AddKeyToDictionary(string0)) + { + } - public UnicodeStructureNode(int int1) - { - Int0 = int1; - vmethod_0(); - } + public UnicodeStructureNode(int int1) + { + Int0 = int1; + vmethod_0(); + } - public UnicodeStructureNode(string string0, string string1) : this(QbSongClass1.AddKeyToDictionary(string0), string1) - { - } + public UnicodeStructureNode(string string0, string string1) : this(QbSongClass1.AddKeyToDictionary(string0), + string1) + { + } - public UnicodeStructureNode(int int1, string string0) - { - Int0 = int1; - Nodes.Add(new UnicodeValueNode(string0)); - vmethod_0(); - } + public UnicodeStructureNode(int int1, string string0) + { + Int0 = int1; + Nodes.Add(new UnicodeValueNode(string0)); + vmethod_0(); + } - public override int vmethod_1() - { - return 22; - } + public override int vmethod_1() + { + return 22; + } - public string method_8() - { - if (Nodes.Count != 0) - { - return ((UnicodeValueNode)FirstNode).String0; - } - return null; - } + public string method_8() + { + if (Nodes.Count != 0) + { + return ((UnicodeValueNode) FirstNode).String0; + } + return null; + } - public void method_9(string string0) - { - if (Nodes.Count != 0) - { - ((UnicodeValueNode)FirstNode).String0 = string0; - return; - } - Nodes.Add(new UnicodeValueNode(string0)); - } + public void method_9(string string0) + { + if (Nodes.Count != 0) + { + ((UnicodeValueNode) FirstNode).String0 = string0; + return; + } + Nodes.Add(new UnicodeValueNode(string0)); + } - public override void vmethod_13(Stream26 stream260) - { - Int0 = stream260.ReadInt(); - var num = stream260.ReadInt(); - var num2 = stream260.ReadInt(); - if (num != 0) - { - Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(num))); - stream260.Position += smethod_0(stream260.Position); - } - if (num2 != 0) - { - var @class = (Parent is StructureHeaderNode) ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) : vmethod_12(stream260.ReadIntAt(num2, true)); - method_1().Nodes.Add(@class); - @class.method_4(stream260); - } - } + public override void vmethod_13(Stream26 stream260) + { + Int0 = stream260.ReadInt(); + var num = stream260.ReadInt(); + var num2 = stream260.ReadInt(); + if (num != 0) + { + Nodes.Add(new UnicodeValueNode(stream260.ReadUnicodeStringAt(num))); + stream260.Position += smethod_0(stream260.Position); + } + if (num2 != 0) + { + var @class = (Parent is StructureHeaderNode) + ? (Parent as StructureHeaderNode).method_11(stream260.ReadIntAt(num2)) + : vmethod_12(stream260.ReadIntAt(num2, true)); + method_1().Nodes.Add(@class); + @class.method_4(stream260); + } + } - public override void vmethod_14(Stream26 stream260) - { - if (vmethod_8()) - { - var array = new byte[4]; - array[1] = 1; - array[2] = 4; - stream260.WriteByteArray(array, false); - } - else - { - var array2 = new byte[4]; - array2[1] = (vmethod_7() ? (byte)132 : (byte)9); - stream260.WriteByteArray(array2, false); - } - stream260.WriteInt(Int0); - var int_ = (int)stream260.Position + 4; - if (Nodes.Count != 0) - { - stream260.WriteInt((int)stream260.Position + 8); - stream260.WriteInt(0); - stream260.WriteString(method_8(), stream260.ReverseEndianness); - stream260.WriteNBytes(0, 2); - stream260.WriteNBytes(0, smethod_0(stream260.Position)); - } - else - { - stream260.WriteInt(0); - } - var num = (int)stream260.Position; - if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) - { - stream260.WriteIntAt(int_, num); - } - else - { - stream260.WriteIntAt(int_, 0); - } - stream260.Position = num; - } + public override void vmethod_14(Stream26 stream260) + { + if (vmethod_8()) + { + var array = new byte[4]; + array[1] = 1; + array[2] = 4; + stream260.WriteByteArray(array, false); + } + else + { + var array2 = new byte[4]; + array2[1] = (vmethod_7() ? (byte) 132 : (byte) 9); + stream260.WriteByteArray(array2, false); + } + stream260.WriteInt(Int0); + var int_ = (int) stream260.Position + 4; + if (Nodes.Count != 0) + { + stream260.WriteInt((int) stream260.Position + 8); + stream260.WriteInt(0); + stream260.WriteString(method_8(), stream260.ReverseEndianness); + stream260.WriteNBytes(0, 2); + stream260.WriteNBytes(0, smethod_0(stream260.Position)); + } + else + { + stream260.WriteInt(0); + } + var num = (int) stream260.Position; + if (method_1().Nodes.IndexOf(this) < method_1().Nodes.Count - 1) + { + stream260.WriteIntAt(int_, num); + } + else + { + stream260.WriteIntAt(int_, 0); + } + stream260.Position = num; + } - public override string GetNodeText() - { - return "Unicode Structure"; - } + public override string GetNodeText() + { + return "Unicode Structure"; + } - public override void vmethod_2(ref int int1) - { - int1 += 16; - if (Nodes.Count != 0) - { - ((UnicodeValueNode)Nodes[0]).vmethod_2(ref int1); - int1 += 2; - int1 += smethod_0(int1); - } - } - } -} + public override void vmethod_2(ref int int1) + { + int1 += 16; + if (Nodes.Count != 0) + { + ((UnicodeValueNode) Nodes[0]).vmethod_2(ref int1); + int1 += 2; + int1 += smethod_0(int1); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceF/zzCocoaNode12.cs b/GHNamespaceF/zzCocoaNode12.cs index 32f23f6..a0b42d6 100644 --- a/GHNamespaceF/zzCocoaNode12.cs +++ b/GHNamespaceF/zzCocoaNode12.cs @@ -6,220 +6,222 @@ namespace GHNamespaceF { - public class ZzCocoaNode12 : TreeNode, IDisposable, INterface12 - { - private int _int0; - - private int _int1; - - private int _int2; - - private int _int3; - - private int _int4; - - private int _int5; - - private Enum35 _enum350; - - private byte[] _byte0; - - public ZzCocoaNode12() : this("newfile.data") - { - } - - public ZzCocoaNode12(string string0) - { - Text = KeyGenerator.GetFileName(string0); - _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); - _int3 = QbSongClass1.AddKeyToDictionary(string0); - _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); - ImageIndex = 39; - SelectedImageIndex = 39; - _byte0 = null; - } - - public ZzCocoaNode12(string string0, byte[] byte1) : this(string0) - { - _byte0 = byte1; - } - - public ZzCocoaNode12(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) - { - Text = (QbSongClass1.ContainsKey(int9) ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) : ("0x" + KeyGenerator.ValToHex32Bit(int9))); - _int2 = int6; - _int0 = int7; - _int1 = int8; - _int3 = int9; - _int4 = int10; - _int5 = int11; - _enum350 = enum351; - ImageIndex = 39; - SelectedImageIndex = 39; - _byte0 = null; - } - - public int imethod_0() - { - return _int0; - } - - public void imethod_1(int int6) - { - _int0 = int6; - } - - public int imethod_2() - { - if (_byte0 == null) - { - return _int1; - } - return _byte0.Length; - } - - public void imethod_3(int int6) - { - if (_byte0 == null) - { - _int1 = int6; - return; - } - Array.Resize(ref _byte0, int6); - } - - public int imethod_4() - { - return _int2; - } - - public void imethod_5(int int6) - { - _int2 = int6; - } - - public string imethod_6() - { - if (!QbSongClass1.ContainsKey(imethod_4())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); - } - return QbSongClass1.GetDictString(imethod_4()); - } - - public int imethod_7() - { - if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) - { - return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); - } - return _int3; - } - - public void imethod_8(int int6) - { - _int3 = int6; - } - - public string imethod_9() - { - if (!QbSongClass1.ContainsKey(imethod_7())) - { - return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); - } - return QbSongClass1.GetDictString(imethod_7()); - } - - public int imethod_10() - { - return _int4; - } - - public void imethod_11(int int6) - { - _int4 = int6; - } - - public int imethod_12() - { - return _int5; - } - - public void imethod_13(int int6) - { - _int5 = int6; - } - - public Enum35 imethod_14() - { - return _enum350; - } - - public void imethod_15(Enum35 enum351) - { - _enum350 = enum351; - } - - public byte[] imethod_16() - { - return _byte0; - } - - public void imethod_17(byte[] byte1) - { - _byte0 = byte1; - } - - public bool imethod_18() - { - return _byte0 == null; - } - - public void imethod_19() - { - _byte0 = null; - } - - public T imethod_20(T gparam0) where T : INterface12 - { - gparam0.imethod_1(_int0); - gparam0.imethod_3(_int1); - gparam0.imethod_5(_int2); - gparam0.imethod_8(_int3); - gparam0.imethod_11(_int4); - gparam0.imethod_13(_int5); - gparam0.imethod_15(_enum350); - if (!imethod_18()) - { - gparam0.imethod_17(_byte0); - } - else - { - gparam0.imethod_19(); - } - return gparam0; - } - - public void Dispose() - { - imethod_19(); - } - - public override object Clone() - { - var @interface = (INterface12)base.Clone(); - @interface.imethod_1(_int0); - @interface.imethod_3(_int1); - @interface.imethod_5(_int2); - @interface.imethod_8(_int3); - @interface.imethod_11(_int4); - @interface.imethod_13(_int5); - @interface.imethod_15(_enum350); - if (imethod_18()) - { - @interface.imethod_19(); - } - return @interface; - } - } -} + public class ZzCocoaNode12 : TreeNode, IDisposable, INterface12 + { + private int _int0; + + private int _int1; + + private int _int2; + + private int _int3; + + private int _int4; + + private int _int5; + + private Enum35 _enum350; + + private byte[] _byte0; + + public ZzCocoaNode12() : this("newfile.data") + { + } + + public ZzCocoaNode12(string string0) + { + Text = KeyGenerator.GetFileName(string0); + _int2 = QbSongClass1.AddKeyToDictionary(string0.Substring(string0.LastIndexOf('.'))); + _int3 = QbSongClass1.AddKeyToDictionary(string0); + _int4 = QbSongClass1.AddKeyToDictionary(KeyGenerator.GetFileNameNoExt(string0)); + ImageIndex = 39; + SelectedImageIndex = 39; + _byte0 = null; + } + + public ZzCocoaNode12(string string0, byte[] byte1) : this(string0) + { + _byte0 = byte1; + } + + public ZzCocoaNode12(int int6, int int7, int int8, int int9, int int10, int int11, Enum35 enum351) + { + Text = (QbSongClass1.ContainsKey(int9) + ? KeyGenerator.GetFileName(QbSongClass1.GetDictString(int9)) + : ("0x" + KeyGenerator.ValToHex32Bit(int9))); + _int2 = int6; + _int0 = int7; + _int1 = int8; + _int3 = int9; + _int4 = int10; + _int5 = int11; + _enum350 = enum351; + ImageIndex = 39; + SelectedImageIndex = 39; + _byte0 = null; + } + + public int imethod_0() + { + return _int0; + } + + public void imethod_1(int int6) + { + _int0 = int6; + } + + public int imethod_2() + { + if (_byte0 == null) + { + return _int1; + } + return _byte0.Length; + } + + public void imethod_3(int int6) + { + if (_byte0 == null) + { + _int1 = int6; + return; + } + Array.Resize(ref _byte0, int6); + } + + public int imethod_4() + { + return _int2; + } + + public void imethod_5(int int6) + { + _int2 = int6; + } + + public string imethod_6() + { + if (!QbSongClass1.ContainsKey(imethod_4())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_4()); + } + return QbSongClass1.GetDictString(imethod_4()); + } + + public int imethod_7() + { + if (Parent != null && Parent is ZzPakNode1 && !(Parent as ZzPakNode1).Bool0) + { + return QbSongClass1.AddKeyToDictionary((Parent as ZzPakNode1).vmethod_0() + Text); + } + return _int3; + } + + public void imethod_8(int int6) + { + _int3 = int6; + } + + public string imethod_9() + { + if (!QbSongClass1.ContainsKey(imethod_7())) + { + return "0x" + KeyGenerator.ValToHex32Bit(imethod_7()); + } + return QbSongClass1.GetDictString(imethod_7()); + } + + public int imethod_10() + { + return _int4; + } + + public void imethod_11(int int6) + { + _int4 = int6; + } + + public int imethod_12() + { + return _int5; + } + + public void imethod_13(int int6) + { + _int5 = int6; + } + + public Enum35 imethod_14() + { + return _enum350; + } + + public void imethod_15(Enum35 enum351) + { + _enum350 = enum351; + } + + public byte[] imethod_16() + { + return _byte0; + } + + public void imethod_17(byte[] byte1) + { + _byte0 = byte1; + } + + public bool imethod_18() + { + return _byte0 == null; + } + + public void imethod_19() + { + _byte0 = null; + } + + public T imethod_20(T gparam0) where T : INterface12 + { + gparam0.imethod_1(_int0); + gparam0.imethod_3(_int1); + gparam0.imethod_5(_int2); + gparam0.imethod_8(_int3); + gparam0.imethod_11(_int4); + gparam0.imethod_13(_int5); + gparam0.imethod_15(_enum350); + if (!imethod_18()) + { + gparam0.imethod_17(_byte0); + } + else + { + gparam0.imethod_19(); + } + return gparam0; + } + + public void Dispose() + { + imethod_19(); + } + + public override object Clone() + { + var @interface = (INterface12) base.Clone(); + @interface.imethod_1(_int0); + @interface.imethod_3(_int1); + @interface.imethod_5(_int2); + @interface.imethod_8(_int3); + @interface.imethod_11(_int4); + @interface.imethod_13(_int5); + @interface.imethod_15(_enum350); + if (imethod_18()) + { + @interface.imethod_19(); + } + return @interface; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/AbstractNoteClass.cs b/GHNamespaceG/AbstractNoteClass.cs index 67ae704..9971d10 100644 --- a/GHNamespaceG/AbstractNoteClass.cs +++ b/GHNamespaceG/AbstractNoteClass.cs @@ -1,31 +1,31 @@ namespace GHNamespaceG { - public abstract class AbstractNoteClass - { - public int Int0; + public abstract class AbstractNoteClass + { + public int Int0; - public int method_0() - { - return Int0; - } + public int method_0() + { + return Int0; + } - public static int smethod_0(AbstractNoteClass class3350, AbstractNoteClass class3351) - { - if (!(class3350 is MidiNote) || !(class3351 is MidiNote) || class3350.method_0() != class3351.method_0()) - { - return class3350.method_0() - class3351.method_0(); - } - var flag = ((MidiNote)class3350).method_5(); - var flag2 = ((MidiNote)class3351).method_5(); - if (flag && !flag2) - { - return 1; - } - if (flag2 && !flag) - { - return -1; - } - return 0; - } - } -} + public static int smethod_0(AbstractNoteClass class3350, AbstractNoteClass class3351) + { + if (!(class3350 is MidiNote) || !(class3351 is MidiNote) || class3350.method_0() != class3351.method_0()) + { + return class3350.method_0() - class3351.method_0(); + } + var flag = ((MidiNote) class3350).method_5(); + var flag2 = ((MidiNote) class3351).method_5(); + if (flag && !flag2) + { + return 1; + } + if (flag2 && !flag) + { + return -1; + } + return 0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/ByteFiddler.cs b/GHNamespaceG/ByteFiddler.cs index fe19d74..260f4b6 100644 --- a/GHNamespaceG/ByteFiddler.cs +++ b/GHNamespaceG/ByteFiddler.cs @@ -4,32 +4,33 @@ namespace GHNamespaceG { - public class ByteFiddler - { - public static ushort RotateRight(ushort ushort0) - { - return (ushort)((ushort0 >> 8 | ushort0 << 8) & 65535); - } + public class ByteFiddler + { + public static ushort RotateRight(ushort ushort0) + { + return (ushort) ((ushort0 >> 8 | ushort0 << 8) & 65535); + } - public static uint RotateLeft(uint uint0) - { - return uint0 >> 24 | uint0 << 24 | (uint0 >> 8 & 65280u) | (uint0 << 8 & 16711680u); - } + public static uint RotateLeft(uint uint0) + { + return uint0 >> 24 | uint0 << 24 | (uint0 >> 8 & 65280u) | (uint0 << 8 & 16711680u); + } - public static int DivideSixtyMillionBy(float float0) - { - return (int)(6E+07f / float0); - } + public static int DivideSixtyMillionBy(float float0) + { + return (int) (6E+07f / float0); + } - public static string smethod_3(string string0, BinaryReader binaryReader0, string string1) - { - var position = binaryReader0.BaseStream.Position; - var @string = Encoding.ASCII.GetString(binaryReader0.ReadBytes(string1.Length)); - if (@string != string1) - { - Console.WriteLine("Reading {0} at position {1}: expected {2}, found {3}", string0, position, string1, @string); - } - return @string; - } - } -} + public static string smethod_3(string string0, BinaryReader binaryReader0, string string1) + { + var position = binaryReader0.BaseStream.Position; + var @string = Encoding.ASCII.GetString(binaryReader0.ReadBytes(string1.Length)); + if (@string != string1) + { + Console.WriteLine("Reading {0} at position {1}: expected {2}, found {3}", string0, position, string1, + @string); + } + return @string; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/Class346.cs b/GHNamespaceG/Class346.cs index 3111ec8..59a8ce2 100644 --- a/GHNamespaceG/Class346.cs +++ b/GHNamespaceG/Class346.cs @@ -2,28 +2,28 @@ namespace GHNamespaceG { - public class Class346 : IDisposable - { - public T[] Gparam0; + public class Class346 : IDisposable + { + public T[] Gparam0; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public Class346() : this(65536) - { - } + public Class346() : this(65536) + { + } - public Class346(int int2) - { - Gparam0 = new T[int2]; - } + public Class346(int int2) + { + Gparam0 = new T[int2]; + } - public void Dispose() - { - Int0 = 0; - Int1 = 0; - Gparam0 = new T[0]; - } - } -} + public void Dispose() + { + Int0 = 0; + Int1 = 0; + Gparam0 = new T[0]; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/Class349.cs b/GHNamespaceG/Class349.cs index 7431ee5..c404566 100644 --- a/GHNamespaceG/Class349.cs +++ b/GHNamespaceG/Class349.cs @@ -3,26 +3,26 @@ namespace GHNamespaceG { - public class Class349 : IDisposable, IEmptyInterface1 - { - public static IEmptyInterface1 Interface130 = new Class349(); + public class Class349 : IDisposable, IEmptyInterface1 + { + public static IEmptyInterface1 Interface130 = new Class349(); - private static INterface14[] _interface140; + private static INterface14[] _interface140; - public Class349(int int0) - { - _interface140 = new INterface14[] - { - new Class358(this, 0, 0, int0) - }; - } + public Class349(int int0) + { + _interface140 = new INterface14[] + { + new Class358(this, 0, 0, int0) + }; + } - public Class349() : this(11025) - { - } + public Class349() : this(11025) + { + } - public void Dispose() - { - } - } -} + public void Dispose() + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/CompilerClass1.cs b/GHNamespaceG/CompilerClass1.cs index 1f13016..65b8bc0 100644 --- a/GHNamespaceG/CompilerClass1.cs +++ b/GHNamespaceG/CompilerClass1.cs @@ -6,31 +6,31 @@ namespace GHNamespaceG //This looks useless //I suspect this can be safely deleted - [CompilerGenerated] - public class CompilerClass1 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] - public struct Struct91 - { - } + [CompilerGenerated] + public class CompilerClass1 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] + public struct Struct91 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 28)] - public struct Struct92 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 28)] + public struct Struct92 + { + } - public static Struct91 Struct910; + public static Struct91 Struct910; - public static Struct91 Struct911; + public static Struct91 Struct911; - public static Struct92 Struct920; + public static Struct92 Struct920; - public static Struct92 Struct921; + public static Struct92 Struct921; - public static Struct92 Struct922; + public static Struct92 Struct922; - public static Struct92 Struct923; + public static Struct92 Struct923; - public static Struct92 Struct924; - } -} + public static Struct92 Struct924; + } +} \ No newline at end of file diff --git a/GHNamespaceG/EmptyAbstractClass1.cs b/GHNamespaceG/EmptyAbstractClass1.cs index 1986415..ddc1215 100644 --- a/GHNamespaceG/EmptyAbstractClass1.cs +++ b/GHNamespaceG/EmptyAbstractClass1.cs @@ -1,6 +1,6 @@ namespace GHNamespaceG { - public abstract class EmptyAbstractClass1 - { - } -} + public abstract class EmptyAbstractClass1 + { + } +} \ No newline at end of file diff --git a/GHNamespaceG/EmptyInterface1.cs b/GHNamespaceG/EmptyInterface1.cs index 58ef101..fd71039 100644 --- a/GHNamespaceG/EmptyInterface1.cs +++ b/GHNamespaceG/EmptyInterface1.cs @@ -2,7 +2,7 @@ namespace GHNamespaceG { - public interface IEmptyInterface1 : IDisposable - { - } -} + public interface IEmptyInterface1 : IDisposable + { + } +} \ No newline at end of file diff --git a/GHNamespaceG/MIDINote.cs b/GHNamespaceG/MIDINote.cs index f93c276..860137a 100644 --- a/GHNamespaceG/MIDINote.cs +++ b/GHNamespaceG/MIDINote.cs @@ -3,83 +3,83 @@ namespace GHNamespaceG { - public class MidiNote : AbstractNoteClass - { - private readonly int _midiMask; + public class MidiNote : AbstractNoteClass + { + private readonly int _midiMask; - private readonly byte _byte0; + private readonly byte _byte0; - private readonly bool _bool0 = true; + private readonly bool _bool0 = true; - public MidiNote(int int2, int int3, byte byte1, bool bool1) - { - Int0 = int2; - _midiMask = int3; - _byte0 = byte1; - _bool0 = bool1; - } + public MidiNote(int int2, int int3, byte byte1, bool bool1) + { + Int0 = int2; + _midiMask = int3; + _byte0 = byte1; + _bool0 = bool1; + } - public Difficulty GetDifficulty() - { - if (_midiMask >= 60 && _midiMask <= 106) - { - return (Difficulty)((_midiMask - 60) / 12); - } - return Difficulty.Invalid; - } + public Difficulty GetDifficulty() + { + if (_midiMask >= 60 && _midiMask <= 106) + { + return (Difficulty) ((_midiMask - 60) / 12); + } + return Difficulty.Invalid; + } - public MidiNoteMask method_2() - { - if (_midiMask == 108) - { - return MidiNoteMask.Unk108; - } + public MidiNoteMask method_2() + { + if (_midiMask == 108) + { + return MidiNoteMask.Unk108; + } //SP - if (_midiMask == 116) - { - return MidiNoteMask.StarPower; - } + if (_midiMask == 116) + { + return MidiNoteMask.StarPower; + } //I assume nothing - if (_midiMask < 60 || _midiMask > 106) - { - return MidiNoteMask.Invalid; - } + if (_midiMask < 60 || _midiMask > 106) + { + return MidiNoteMask.Invalid; + } //Gets note type - var num = (_midiMask - 60) % 12; - if (Enum.IsDefined(typeof(MidiNoteMask), num)) - { - return (MidiNoteMask)num; - } - return MidiNoteMask.Invalid; - } + var num = (_midiMask - 60) % 12; + if (Enum.IsDefined(typeof(MidiNoteMask), num)) + { + return (MidiNoteMask) num; + } + return MidiNoteMask.Invalid; + } - public Fret method_3() - { - if (_midiMask < 60 || _midiMask > 106) - { - return Fret.Invalid; - } - var @enum = (Fret)((_midiMask - 60) % 12); - if (@enum >= Fret.Green && @enum <= Fret.Orange) - { - return @enum; - } - return Fret.Invalid; - } + public Fret method_3() + { + if (_midiMask < 60 || _midiMask > 106) + { + return Fret.Invalid; + } + var @enum = (Fret) ((_midiMask - 60) % 12); + if (@enum >= Fret.Green && @enum <= Fret.Orange) + { + return @enum; + } + return Fret.Invalid; + } - public int method_4() - { - return _midiMask; - } + public int method_4() + { + return _midiMask; + } - public bool method_5() - { - return _byte0 > 0 && _bool0; - } + public bool method_5() + { + return _byte0 > 0 && _bool0; + } - public override string ToString() - { - return string.Format("{0}: NoteId {1} ({2} {3})", method_0(), _midiMask, _byte0, _bool0 ? "On" : "Off"); - } - } -} + public override string ToString() + { + return string.Format("{0}: NoteId {1} ({2} {3})", method_0(), _midiMask, _byte0, _bool0 ? "On" : "Off"); + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/MIDINoteMask.cs b/GHNamespaceG/MIDINoteMask.cs index 7deaffa..211142e 100644 --- a/GHNamespaceG/MIDINoteMask.cs +++ b/GHNamespaceG/MIDINoteMask.cs @@ -1,17 +1,17 @@ namespace GHNamespaceG { - public enum MidiNoteMask - { - Green, - Red, - Yellow, - Blue, - Orange, - Unk7 = 7, - Unk9 = 9, //FaceOff P1? - Unk10, //FaceOff P2? - StarPower = 20, - Unk108 = 108, - Invalid = -1 - } -} + public enum MidiNoteMask + { + Green, + Red, + Yellow, + Blue, + Orange, + Unk7 = 7, + Unk9 = 9, //FaceOff P1? + Unk10, //FaceOff P2? + StarPower = 20, + Unk108 = 108, + Invalid = -1 + } +} \ No newline at end of file diff --git a/GHNamespaceG/PairArrayNode.cs b/GHNamespaceG/PairArrayNode.cs index 241131b..adc6baa 100644 --- a/GHNamespaceG/PairArrayNode.cs +++ b/GHNamespaceG/PairArrayNode.cs @@ -3,32 +3,32 @@ namespace GHNamespaceG { - public class PairArrayNode : ZzUnkNode289 - { - public FloatListNode this[int int0] - { - get => (FloatListNode)Nodes[int0]; - set => Nodes[int0] = value; - } + public class PairArrayNode : ZzUnkNode289 + { + public FloatListNode this[int int0] + { + get => (FloatListNode) Nodes[int0]; + set => Nodes[int0] = value; + } - public PairArrayNode() - { - vmethod_0(); - } + public PairArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 17; - } + public override int vmethod_1() + { + return 17; + } - public override byte vmethod_15() - { - return 5; - } + public override byte vmethod_15() + { + return 5; + } - public override string GetNodeText() - { - return "Pair Array"; - } - } -} + public override string GetNodeText() + { + return "Pair Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/StreamClass1.cs b/GHNamespaceG/StreamClass1.cs index bd28258..fe16188 100644 --- a/GHNamespaceG/StreamClass1.cs +++ b/GHNamespaceG/StreamClass1.cs @@ -5,165 +5,173 @@ namespace GHNamespaceG { - public class StreamClass1 : IDisposable - { - private class Class343 - { - private static readonly double[,] Double0 = { - { - 0.0, - 0.0 - }, - { - -0.9375, - 0.0 - }, - { - -1.796875, - 0.8125 - }, - { - -1.53125, - 0.859375 - }, - { - -1.90625, - 0.9375 - } - }; + public class StreamClass1 : IDisposable + { + private class Class343 + { + private static readonly double[,] Double0 = + { + { + 0.0, + 0.0 + }, + { + -0.9375, + 0.0 + }, + { + -1.796875, + 0.8125 + }, + { + -1.53125, + 0.859375 + }, + { + -1.90625, + 0.9375 + } + }; - private long _long0; + private long _long0; - public long method_0() - { - return _long0; - } - } + public long method_0() + { + return _long0; + } + } - private readonly Class346 _class3460; + private readonly Class346 _class3460; - private readonly INterface14[] _interface140; + private readonly INterface14[] _interface140; - private readonly Class343[] _class3430; + private readonly Class343[] _class3430; - private readonly Stream _stream0; + private readonly Stream _stream0; - public void Dispose() - { - if (smethod_0(_stream0)) - { - UpdateFinalBlocks(_stream0, _interface140.Length, 0L); - var array = new int[_interface140.Length]; - var array2 = new int[_interface140.Length]; - for (var i = 0; i < _interface140.Length; i++) - { - array[i] = (int)_class3430[i].method_0() * 28; - array2[i] = _interface140[i].imethod_0(); - } - UpdateFinalBlocks(_stream0, array, array2, 0L); - } - _class3460.Dispose(); - } + public void Dispose() + { + if (smethod_0(_stream0)) + { + UpdateFinalBlocks(_stream0, _interface140.Length, 0L); + var array = new int[_interface140.Length]; + var array2 = new int[_interface140.Length]; + for (var i = 0; i < _interface140.Length; i++) + { + array[i] = (int) _class3430[i].method_0() * 28; + array2[i] = _interface140[i].imethod_0(); + } + UpdateFinalBlocks(_stream0, array, array2, 0L); + } + _class3460.Dispose(); + } - public static bool smethod_0(Stream stream1) - { - return stream1.CanSeek && stream1.CanRead; - } + public static bool smethod_0(Stream stream1) + { + return stream1.CanSeek && stream1.CanRead; + } - public static void UpdateFinalBlocks(Stream stream1, int int0, long long0) - { - if (!smethod_0(stream1)) - { - throw new ApplicationException("UpdateFinalBlocks called with non-updateable stream"); - } - var position = stream1.Position; - var num = long0 + 128L; - var array = new bool[int0]; - var num2 = 0; - var array2 = new byte[16]; - stream1.Seek(array2.Length * -1, SeekOrigin.Current); - while (stream1.Position - num >= 16L && num2 < array.Length) - { - if (stream1.Read(array2, 0, array2.Length) != array2.Length) - { - Class355.Interface150.imethod_1("Unexpected end of stream trying to read final blocks"); - } - var num3 = array2[1] & -129; - if (num3 < 0 || num3 > int0) - { - Class355.Interface150.imethod_1(string.Format("Found reference to channel {0}, but only {1} channels expected", num3, int0)); - } - if ((array2[1] & 128) != 0) - { - if (array[num3]) - { - Class355.Interface150.imethod_0(string.Format("Found end flag for channel {0}, but it is already marked as flagged. This VGS may be corrupt.", num3)); - } - else - { - array[num3] = true; - num2++; - } - } - else if (!array[num3]) - { - var exprF6Cp0 = array2; - var exprF6Cp1 = 1; - exprF6Cp0[exprF6Cp1] |= 128; - stream1.Seek(array2.Length * -1, SeekOrigin.Current); - stream1.Write(array2, 0, array2.Length); - array[num3] = true; - num2++; - } - stream1.Seek(array2.Length * -2, SeekOrigin.Current); - } - stream1.Seek(position, SeekOrigin.Begin); - } + public static void UpdateFinalBlocks(Stream stream1, int int0, long long0) + { + if (!smethod_0(stream1)) + { + throw new ApplicationException("UpdateFinalBlocks called with non-updateable stream"); + } + var position = stream1.Position; + var num = long0 + 128L; + var array = new bool[int0]; + var num2 = 0; + var array2 = new byte[16]; + stream1.Seek(array2.Length * -1, SeekOrigin.Current); + while (stream1.Position - num >= 16L && num2 < array.Length) + { + if (stream1.Read(array2, 0, array2.Length) != array2.Length) + { + Class355.Interface150.imethod_1("Unexpected end of stream trying to read final blocks"); + } + var num3 = array2[1] & -129; + if (num3 < 0 || num3 > int0) + { + Class355.Interface150.imethod_1( + string.Format("Found reference to channel {0}, but only {1} channels expected", num3, int0)); + } + if ((array2[1] & 128) != 0) + { + if (array[num3]) + { + Class355.Interface150.imethod_0( + string.Format( + "Found end flag for channel {0}, but it is already marked as flagged. This VGS may be corrupt.", + num3)); + } + else + { + array[num3] = true; + num2++; + } + } + else if (!array[num3]) + { + var exprF6Cp0 = array2; + var exprF6Cp1 = 1; + exprF6Cp0[exprF6Cp1] |= 128; + stream1.Seek(array2.Length * -1, SeekOrigin.Current); + stream1.Write(array2, 0, array2.Length); + array[num3] = true; + num2++; + } + stream1.Seek(array2.Length * -2, SeekOrigin.Current); + } + stream1.Seek(position, SeekOrigin.Begin); + } - public static void UpdateFinalBlocks(Stream stream1, int[] int0, int[] int1, long long0) - { - if (!smethod_0(stream1)) - { - throw new ApplicationException("UpdateFinalBlocks called with non-updateable stream"); - } - var position = stream1.Position; - stream1.Seek(long0, SeekOrigin.Begin); - smethod_3(stream1, int0, int1); - stream1.Seek(position, SeekOrigin.Begin); - } + public static void UpdateFinalBlocks(Stream stream1, int[] int0, int[] int1, long long0) + { + if (!smethod_0(stream1)) + { + throw new ApplicationException("UpdateFinalBlocks called with non-updateable stream"); + } + var position = stream1.Position; + stream1.Seek(long0, SeekOrigin.Begin); + smethod_3(stream1, int0, int1); + stream1.Seek(position, SeekOrigin.Begin); + } - public static void smethod_3(Stream stream1, int[] int0, int[] int1) - { - if (int0.Length != int1.Length) - { - Class355.Interface150.imethod_1(string.Format("sampleCount length {0} does not match sampleRate length {1}", int0.Length, int1.Length)); - } - if (!smethod_0(stream1)) - { - for (var i = 0; i < int0.Length; i++) - { - if (int0[i] < 1) - { - throw new ApplicationException("Writing a VGS header requires knowing the data length ahead of time, or a stream that is capable of seeking and reading."); - } - } - } - var binaryWriter = new BinaryWriter(stream1); - binaryWriter.Write(Encoding.ASCII.GetBytes("VgS!")); - binaryWriter.Write(2); - for (var j = 0; j < 15; j++) - { - if (j < int0.Length) - { - binaryWriter.Write((uint)int1[j]); - binaryWriter.Write((uint)(int0[j] / 28)); - } - else - { - binaryWriter.Write(0u); - binaryWriter.Write(0u); - } - } - } - } -} + public static void smethod_3(Stream stream1, int[] int0, int[] int1) + { + if (int0.Length != int1.Length) + { + Class355.Interface150.imethod_1( + string.Format("sampleCount length {0} does not match sampleRate length {1}", int0.Length, + int1.Length)); + } + if (!smethod_0(stream1)) + { + for (var i = 0; i < int0.Length; i++) + { + if (int0[i] < 1) + { + throw new ApplicationException( + "Writing a VGS header requires knowing the data length ahead of time, or a stream that is capable of seeking and reading."); + } + } + } + var binaryWriter = new BinaryWriter(stream1); + binaryWriter.Write(Encoding.ASCII.GetBytes("VgS!")); + binaryWriter.Write(2); + for (var j = 0; j < 15; j++) + { + if (j < int0.Length) + { + binaryWriter.Write((uint) int1[j]); + binaryWriter.Write((uint) (int0[j] / 28)); + } + else + { + binaryWriter.Write(0u); + binaryWriter.Write(0u); + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/StreamClass2.cs b/GHNamespaceG/StreamClass2.cs index 6bb4438..8c8c120 100644 --- a/GHNamespaceG/StreamClass2.cs +++ b/GHNamespaceG/StreamClass2.cs @@ -3,31 +3,31 @@ namespace GHNamespaceG { - public class StreamClass2 : IDisposable - { - private int _int0; + public class StreamClass2 : IDisposable + { + private int _int0; - private readonly int _int1; + private readonly int _int1; - private readonly Stream _stream0; + private readonly Stream _stream0; - public static void smethod_0(Stream stream1, int int2, long long0) - { - var position = stream1.Position; - stream1.Seek(long0 + 4L, SeekOrigin.Begin); - var binaryWriter = new BinaryWriter(stream1); - binaryWriter.Write((uint)(38 + int2)); - stream1.Seek(long0 + 42L, SeekOrigin.Begin); - binaryWriter.Write((uint)int2); - stream1.Seek(position, SeekOrigin.Begin); - } + public static void smethod_0(Stream stream1, int int2, long long0) + { + var position = stream1.Position; + stream1.Seek(long0 + 4L, SeekOrigin.Begin); + var binaryWriter = new BinaryWriter(stream1); + binaryWriter.Write((uint) (38 + int2)); + stream1.Seek(long0 + 42L, SeekOrigin.Begin); + binaryWriter.Write((uint) int2); + stream1.Seek(position, SeekOrigin.Begin); + } - public void Dispose() - { - if (_int1 < 1) - { - smethod_0(_stream0, _int0 * 2, 0L); - } - } - } -} + public void Dispose() + { + if (_int1 < 1) + { + smethod_0(_stream0, _int0 * 2, 0L); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/StructureArrayNode.cs b/GHNamespaceG/StructureArrayNode.cs index 55113c7..cb9cffa 100644 --- a/GHNamespaceG/StructureArrayNode.cs +++ b/GHNamespaceG/StructureArrayNode.cs @@ -3,32 +3,32 @@ namespace GHNamespaceG { - public class StructureArrayNode : ZzUnkNode289 - { - public StructureHeaderNode this[int int0] - { - get => (StructureHeaderNode)Nodes[int0]; - set => Nodes[int0] = value; - } + public class StructureArrayNode : ZzUnkNode289 + { + public StructureHeaderNode this[int int0] + { + get => (StructureHeaderNode) Nodes[int0]; + set => Nodes[int0] = value; + } - public StructureArrayNode() - { - vmethod_0(); - } + public StructureArrayNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 15; - } + public override int vmethod_1() + { + return 15; + } - public override byte vmethod_15() - { - return 10; - } + public override byte vmethod_15() + { + return 10; + } - public override string GetNodeText() - { - return "Structure Array"; - } - } -} + public override string GetNodeText() + { + return "Structure Array"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/TagRootNode.cs b/GHNamespaceG/TagRootNode.cs index 9b3b0bf..f4d8b35 100644 --- a/GHNamespaceG/TagRootNode.cs +++ b/GHNamespaceG/TagRootNode.cs @@ -2,26 +2,26 @@ namespace GHNamespaceG { - public class TagRootNode : Class268 - { - public TagRootNode() - { - vmethod_0(); - } + public class TagRootNode : Class268 + { + public TagRootNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 4; - } + public override int vmethod_1() + { + return 4; + } - public override string GetNodeText() - { - return "Tag Root"; - } + public override string GetNodeText() + { + return "Tag Root"; + } - public override byte vmethod_16() - { - return 13; - } - } -} + public override byte vmethod_16() + { + return 13; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/UnusedProccessOrThreadClass.cs b/GHNamespaceG/UnusedProccessOrThreadClass.cs index f229651..7d0e1d2 100644 --- a/GHNamespaceG/UnusedProccessOrThreadClass.cs +++ b/GHNamespaceG/UnusedProccessOrThreadClass.cs @@ -5,29 +5,29 @@ namespace GHNamespaceG { - public class UnusedProcessOrThreadClass : IDisposable - { - private readonly string _string0; + public class UnusedProcessOrThreadClass : IDisposable + { + private readonly string _string0; - private readonly Process _process0; + private readonly Process _process0; - private bool _bool0; + private bool _bool0; - private readonly Thread _thread0; + private readonly Thread _thread0; - public void Dispose() - { - if (_bool0) - { - return; - } - _bool0 = true; - _process0.StandardInput.Close(); - if (!_thread0.Join(10000)) - { - Class355.Interface150.imethod_1(string.Format("Failed to join '{0}'", _string0)); - } - _process0.Dispose(); - } - } -} + public void Dispose() + { + if (_bool0) + { + return; + } + _bool0 = true; + _process0.StandardInput.Close(); + if (!_thread0.Join(10000)) + { + Class355.Interface150.imethod_1(string.Format("Failed to join '{0}'", _string0)); + } + _process0.Dispose(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/UnusedStreamClass.cs b/GHNamespaceG/UnusedStreamClass.cs index 6bc5651..16d8e63 100644 --- a/GHNamespaceG/UnusedStreamClass.cs +++ b/GHNamespaceG/UnusedStreamClass.cs @@ -3,64 +3,70 @@ namespace GHNamespaceG { - public class UnusedStreamClass : IDisposable - { - private static readonly byte[] Byte0 = { - 0, - 0, - 1, - 186 - }; + public class UnusedStreamClass : IDisposable + { + private static readonly byte[] Byte0 = + { + 0, + 0, + 1, + 186 + }; - private static readonly byte[] Byte1 = { - 0, - 0, - 1, - 187 - }; + private static readonly byte[] Byte1 = + { + 0, + 0, + 1, + 187 + }; - private static readonly byte[] Byte2 = { - 0, - 0, - 1, - 224 - }; + private static readonly byte[] Byte2 = + { + 0, + 0, + 1, + 224 + }; - private static readonly byte[] Byte3 = { - 0, - 0, - 1, - 189 - }; + private static readonly byte[] Byte3 = + { + 0, + 0, + 1, + 189 + }; - private static readonly byte[] Byte4 = { - 0, - 0, - 1, - 190 - }; + private static readonly byte[] Byte4 = + { + 0, + 0, + 1, + 190 + }; - private static readonly byte[] Byte5 = { - 0, - 0, - 1, - 185 - }; + private static readonly byte[] Byte5 = + { + 0, + 0, + 1, + 185 + }; - private bool _bool0; + private bool _bool0; - private readonly Stream _stream0; + private readonly Stream _stream0; - public void Dispose() - { - try - { - _stream0.Close(); - } - catch - { - } - _bool0 = true; - } - } -} + public void Dispose() + { + try + { + _stream0.Close(); + } + catch + { + } + _bool0 = true; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/UnusedStreamClass2.cs b/GHNamespaceG/UnusedStreamClass2.cs index 7520f59..6a8a718 100644 --- a/GHNamespaceG/UnusedStreamClass2.cs +++ b/GHNamespaceG/UnusedStreamClass2.cs @@ -4,42 +4,43 @@ namespace GHNamespaceG { - public class UnusedStreamClass2 : IDisposable, IEmptyInterface1 - { - private static readonly double[,] Double0 = { - { - 0.0, - 0.0 - }, - { - 0.9375, - 0.0 - }, - { - 1.796875, - -0.8125 - }, - { - 1.53125, - -0.859375 - }, - { - 1.90625, - -0.9375 - } - }; + public class UnusedStreamClass2 : IDisposable, IEmptyInterface1 + { + private static readonly double[,] Double0 = + { + { + 0.0, + 0.0 + }, + { + 0.9375, + 0.0 + }, + { + 1.796875, + -0.8125 + }, + { + 1.53125, + -0.859375 + }, + { + 1.90625, + -0.9375 + } + }; - private Class352[] _class3520; + private Class352[] _class3520; - private Stream _stream0; + private Stream _stream0; - public void Dispose() - { - _stream0.Dispose(); - for (var i = 0; i < _class3520.Length; i++) - { - _class3520[i].Dispose(); - } - } - } -} + public void Dispose() + { + _stream0.Dispose(); + for (var i = 0; i < _class3520.Length; i++) + { + _class3520[i].Dispose(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/VectorPointerNode.cs b/GHNamespaceG/VectorPointerNode.cs index b8aee83..9f2181f 100644 --- a/GHNamespaceG/VectorPointerNode.cs +++ b/GHNamespaceG/VectorPointerNode.cs @@ -2,30 +2,30 @@ namespace GHNamespaceG { - public class VectorPointerNode : ZzUnkNode300 - { - public VectorPointerNode() - { - vmethod_0(); - } + public class VectorPointerNode : ZzUnkNode300 + { + public VectorPointerNode() + { + vmethod_0(); + } - public override int vmethod_1() - { - return 30; - } + public override int vmethod_1() + { + return 30; + } - public override string GetNodeText() - { - return "Vector Pointer"; - } + public override string GetNodeText() + { + return "Vector Pointer"; + } - public override byte vmethod_15() - { - if (!vmethod_7()) - { - return 13; - } - return 134; - } - } -} + public override byte vmethod_15() + { + if (!vmethod_7()) + { + return 13; + } + return 134; + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/zzNote1.cs b/GHNamespaceG/zzNote1.cs index 929936b..7f81085 100644 --- a/GHNamespaceG/zzNote1.cs +++ b/GHNamespaceG/zzNote1.cs @@ -1,38 +1,38 @@ namespace GHNamespaceG { - public class ZzNote1 : AbstractNoteClass - { - public enum Enum37 - { - Const0 = 1, - Const1, - Const2 - } + public class ZzNote1 : AbstractNoteClass + { + public enum Enum37 + { + Const0 = 1, + Const1, + Const2 + } - private readonly Enum37 _enum370; + private readonly Enum37 _enum370; - private readonly string _string0; + private readonly string _string0; - public ZzNote1(int int1, Enum37 enum371, string string1) - { - Int0 = int1; - _enum370 = enum371; - _string0 = string1; - } + public ZzNote1(int int1, Enum37 enum371, string string1) + { + Int0 = int1; + _enum370 = enum371; + _string0 = string1; + } - public string method_1() - { - return _string0; - } + public string method_1() + { + return _string0; + } - public Enum37 method_2() - { - return _enum370; - } + public Enum37 method_2() + { + return _enum370; + } - public override string ToString() - { - return string.Format("{0}: \"{1}\"", method_0(), _string0); - } - } -} + public override string ToString() + { + return string.Format("{0}: \"{1}\"", method_0(), _string0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceG/zzPairKeyDictionary.cs b/GHNamespaceG/zzPairKeyDictionary.cs index ece7fcf..09280ce 100644 --- a/GHNamespaceG/zzPairKeyDictionary.cs +++ b/GHNamespaceG/zzPairKeyDictionary.cs @@ -3,20 +3,21 @@ namespace GHNamespaceG { - public class ZzPairKeyDictionary : IEnumerable, IEnumerable> - { - private readonly Dictionary _dictionary0; + public class ZzPairKeyDictionary : IEnumerable, IEnumerable> + { + private readonly Dictionary _dictionary0; - public EmptyAbstractClass1 this[string string0] => _dictionary0[string0.ToLower()]; + public EmptyAbstractClass1 this[string string0] => _dictionary0[string0.ToLower()]; - public IEnumerator GetEnumerator() - { - return _dictionary0.GetEnumerator(); - } + public IEnumerator GetEnumerator() + { + return _dictionary0.GetEnumerator(); + } - IEnumerator> IEnumerable>.GetEnumerator() - { - return _dictionary0.GetEnumerator(); - } - } -} + IEnumerator> IEnumerable>. + GetEnumerator() + { + return _dictionary0.GetEnumerator(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class35.cs b/GHNamespaceH/Class35.cs index f0ec633..68a5c32 100644 --- a/GHNamespaceH/Class35.cs +++ b/GHNamespaceH/Class35.cs @@ -3,260 +3,260 @@ namespace GHNamespaceH { - public class Class35 : Class34 - { - private readonly object _object0 = new object(); + public class Class35 : Class34 + { + private readonly object _object0 = new object(); - private float[][] _float0; + private float[][] _float0; - private int[] _int0; + private int[] _int0; - private int[] _int1; + private int[] _int1; - private object[] _object1; + private object[] _object1; - public override void vmethod_2(object object2) - { - } + public override void vmethod_2(object object2) + { + } - public override object vmethod_1(OggClass1 class660, Class27 class270, object object2) - { - var class49 = class660.OggClass5; - var @class = new Class55(); - var class2 = @class.Class540 = (Class54)object2; - @class.Class270 = class270; - @class.Object0 = new object[class2.Int0]; - @class.Object1 = new object[class2.Int0]; - @class.Object2 = new object[class2.Int0]; - @class.Class500 = new Class50[class2.Int0]; - @class.Class280 = new Class28[class2.Int0]; - @class.Class230 = new Class23[class2.Int0]; - for (var i = 0; i < class2.Int0; i++) - { - var num = class2.Int2[i]; - var num2 = class2.Int3[i]; - var num3 = class2.Int4[i]; - @class.Class500[i] = Class50.Class500[class49.Int22[num]]; - @class.Object0[i] = @class.Class500[i].vmethod_1(class660, class270, class49.Object1[num]); - @class.Class280[i] = Class28.Class280[class49.Int23[num2]]; - @class.Object1[i] = @class.Class280[i].vmethod_1(class660, class270, class49.Object2[num2]); - @class.Class230[i] = Class23.Class230[class49.Int24[num3]]; - @class.Object2[i] = @class.Class230[i].vmethod_1(class660, class270, class49.Object3[num3]); - } - if (class49.Int20 == 0) - { - } - @class.Int0 = class49.Int8; - return @class; - } + public override object vmethod_1(OggClass1 class660, Class27 class270, object object2) + { + var class49 = class660.OggClass5; + var @class = new Class55(); + var class2 = @class.Class540 = (Class54) object2; + @class.Class270 = class270; + @class.Object0 = new object[class2.Int0]; + @class.Object1 = new object[class2.Int0]; + @class.Object2 = new object[class2.Int0]; + @class.Class500 = new Class50[class2.Int0]; + @class.Class280 = new Class28[class2.Int0]; + @class.Class230 = new Class23[class2.Int0]; + for (var i = 0; i < class2.Int0; i++) + { + var num = class2.Int2[i]; + var num2 = class2.Int3[i]; + var num3 = class2.Int4[i]; + @class.Class500[i] = Class50.Class500[class49.Int22[num]]; + @class.Object0[i] = @class.Class500[i].vmethod_1(class660, class270, class49.Object1[num]); + @class.Class280[i] = Class28.Class280[class49.Int23[num2]]; + @class.Object1[i] = @class.Class280[i].vmethod_1(class660, class270, class49.Object2[num2]); + @class.Class230[i] = Class23.Class230[class49.Int24[num3]]; + @class.Object2[i] = @class.Class230[i].vmethod_1(class660, class270, class49.Object3[num3]); + } + if (class49.Int20 == 0) + { + } + @class.Int0 = class49.Int8; + return @class; + } - public override object vmethod_0(OggClass5 class490, OggClass3 class380) - { - var @class = new Class54(); - if (class380.method_6(1) != 0) - { - @class.Int0 = class380.method_6(4) + 1; - } - else - { - @class.Int0 = 1; - } - if (class380.method_6(1) != 0) - { - @class.Int6 = class380.method_6(8) + 1; - for (var i = 0; i < @class.Int6; i++) - { - var num = @class.Int7[i] = class380.method_6(smethod_0(class490.Int8)); - var num2 = @class.Int8[i] = class380.method_6(smethod_0(class490.Int8)); - if (num < 0 || num2 < 0 || num == num2 || num >= class490.Int8 || num2 >= class490.Int8) - { - @class.method_0(); - return null; - } - } - } - if (class380.method_6(2) > 0) - { - @class.method_0(); - return null; - } - if (@class.Int0 > 1) - { - for (var j = 0; j < class490.Int8; j++) - { - @class.Int1[j] = class380.method_6(4); - if (@class.Int1[j] >= @class.Int0) - { - @class.method_0(); - return null; - } - } - } - for (var k = 0; k < @class.Int0; k++) - { - @class.Int2[k] = class380.method_6(8); - if (@class.Int2[k] >= class490.Int16) - { - @class.method_0(); - return null; - } - @class.Int3[k] = class380.method_6(8); - if (@class.Int3[k] >= class490.Int17) - { - @class.method_0(); - return null; - } - @class.Int4[k] = class380.method_6(8); - if (@class.Int4[k] >= class490.Int18) - { - @class.method_0(); - return null; - } - } - return @class; - } + public override object vmethod_0(OggClass5 class490, OggClass3 class380) + { + var @class = new Class54(); + if (class380.method_6(1) != 0) + { + @class.Int0 = class380.method_6(4) + 1; + } + else + { + @class.Int0 = 1; + } + if (class380.method_6(1) != 0) + { + @class.Int6 = class380.method_6(8) + 1; + for (var i = 0; i < @class.Int6; i++) + { + var num = @class.Int7[i] = class380.method_6(smethod_0(class490.Int8)); + var num2 = @class.Int8[i] = class380.method_6(smethod_0(class490.Int8)); + if (num < 0 || num2 < 0 || num == num2 || num >= class490.Int8 || num2 >= class490.Int8) + { + @class.method_0(); + return null; + } + } + } + if (class380.method_6(2) > 0) + { + @class.method_0(); + return null; + } + if (@class.Int0 > 1) + { + for (var j = 0; j < class490.Int8; j++) + { + @class.Int1[j] = class380.method_6(4); + if (@class.Int1[j] >= @class.Int0) + { + @class.method_0(); + return null; + } + } + } + for (var k = 0; k < @class.Int0; k++) + { + @class.Int2[k] = class380.method_6(8); + if (@class.Int2[k] >= class490.Int16) + { + @class.method_0(); + return null; + } + @class.Int3[k] = class380.method_6(8); + if (@class.Int3[k] >= class490.Int17) + { + @class.method_0(); + return null; + } + @class.Int4[k] = class380.method_6(8); + if (@class.Int4[k] >= class490.Int18) + { + @class.method_0(); + return null; + } + } + return @class; + } - public override int vmethod_3(OggClass6 class710, object object2) - { - int result; - lock (_object0) - { - var class66 = class710.OggClass1; - var class49 = class66.OggClass5; - var @class = (Class55)object2; - var class54 = @class.Class540; - var class27 = @class.Class270; - var num = class710.Int3 = class49.Int13[class710.Int1]; - var array = class66.Float2[class710.Int1][class710.Int0][class710.Int2][class27.Int1]; - if (_float0 == null || _float0.Length < class49.Int8) - { - _float0 = new float[class49.Int8][]; - _int1 = new int[class49.Int8]; - _int0 = new int[class49.Int8]; - _object1 = new object[class49.Int8]; - } - for (var i = 0; i < class49.Int8; i++) - { - var array2 = class710.Float0[i]; - var num2 = class54.Int1[i]; - _object1[i] = @class.Class280[num2].vmethod_3(class710, @class.Object1[num2], _object1[i]); - if (_object1[i] != null) - { - _int1[i] = 1; - } - else - { - _int1[i] = 0; - } - for (var j = 0; j < num / 2; j++) - { - array2[j] = 0f; - } - } - for (var k = 0; k < class54.Int6; k++) - { - if (_int1[class54.Int7[k]] != 0 || _int1[class54.Int8[k]] != 0) - { - _int1[class54.Int7[k]] = 1; - _int1[class54.Int8[k]] = 1; - } - } - for (var l = 0; l < class54.Int0; l++) - { - var num3 = 0; - for (var m = 0; m < class49.Int8; m++) - { - if (class54.Int1[m] == l) - { - if (_int1[m] != 0) - { - _int0[num3] = 1; - } - else - { - _int0[num3] = 0; - } - _float0[num3++] = class710.Float0[m]; - } - } - @class.Class230[l].vmethod_3(class710, @class.Object2[l], _float0, _int0, num3); - } - for (var n = class54.Int6 - 1; n >= 0; n--) - { - var array3 = class710.Float0[class54.Int7[n]]; - var array4 = class710.Float0[class54.Int8[n]]; - for (var num4 = 0; num4 < num / 2; num4++) - { - var num5 = array3[num4]; - var num6 = array4[num4]; - if (num5 > 0f) - { - if (num6 > 0f) - { - array3[num4] = num5; - array4[num4] = num5 - num6; - } - else - { - array4[num4] = num5; - array3[num4] = num5 + num6; - } - } - else if (num6 > 0f) - { - array3[num4] = num5; - array4[num4] = num5 + num6; - } - else - { - array4[num4] = num5; - array3[num4] = num5 - num6; - } - } - } - for (var num7 = 0; num7 < class49.Int8; num7++) - { - var array5 = class710.Float0[num7]; - var num8 = class54.Int1[num7]; - @class.Class280[num8].vmethod_4(class710, @class.Object1[num8], _object1[num7], array5); - } - for (var num9 = 0; num9 < class49.Int8; num9++) - { - var array6 = class710.Float0[num9]; - ((Class68)class66.Object0[class710.Int1][0]).method_1(array6, array6); - } - for (var num10 = 0; num10 < class49.Int8; num10++) - { - var array7 = class710.Float0[num10]; - if (_int1[num10] != 0) - { - for (var num11 = 0; num11 < num; num11++) - { - array7[num11] *= array[num11]; - } - } - else - { - for (var num12 = 0; num12 < num; num12++) - { - array7[num12] = 0f; - } - } - } - result = 0; - } - return result; - } + public override int vmethod_3(OggClass6 class710, object object2) + { + int result; + lock (_object0) + { + var class66 = class710.OggClass1; + var class49 = class66.OggClass5; + var @class = (Class55) object2; + var class54 = @class.Class540; + var class27 = @class.Class270; + var num = class710.Int3 = class49.Int13[class710.Int1]; + var array = class66.Float2[class710.Int1][class710.Int0][class710.Int2][class27.Int1]; + if (_float0 == null || _float0.Length < class49.Int8) + { + _float0 = new float[class49.Int8][]; + _int1 = new int[class49.Int8]; + _int0 = new int[class49.Int8]; + _object1 = new object[class49.Int8]; + } + for (var i = 0; i < class49.Int8; i++) + { + var array2 = class710.Float0[i]; + var num2 = class54.Int1[i]; + _object1[i] = @class.Class280[num2].vmethod_3(class710, @class.Object1[num2], _object1[i]); + if (_object1[i] != null) + { + _int1[i] = 1; + } + else + { + _int1[i] = 0; + } + for (var j = 0; j < num / 2; j++) + { + array2[j] = 0f; + } + } + for (var k = 0; k < class54.Int6; k++) + { + if (_int1[class54.Int7[k]] != 0 || _int1[class54.Int8[k]] != 0) + { + _int1[class54.Int7[k]] = 1; + _int1[class54.Int8[k]] = 1; + } + } + for (var l = 0; l < class54.Int0; l++) + { + var num3 = 0; + for (var m = 0; m < class49.Int8; m++) + { + if (class54.Int1[m] == l) + { + if (_int1[m] != 0) + { + _int0[num3] = 1; + } + else + { + _int0[num3] = 0; + } + _float0[num3++] = class710.Float0[m]; + } + } + @class.Class230[l].vmethod_3(class710, @class.Object2[l], _float0, _int0, num3); + } + for (var n = class54.Int6 - 1; n >= 0; n--) + { + var array3 = class710.Float0[class54.Int7[n]]; + var array4 = class710.Float0[class54.Int8[n]]; + for (var num4 = 0; num4 < num / 2; num4++) + { + var num5 = array3[num4]; + var num6 = array4[num4]; + if (num5 > 0f) + { + if (num6 > 0f) + { + array3[num4] = num5; + array4[num4] = num5 - num6; + } + else + { + array4[num4] = num5; + array3[num4] = num5 + num6; + } + } + else if (num6 > 0f) + { + array3[num4] = num5; + array4[num4] = num5 + num6; + } + else + { + array4[num4] = num5; + array3[num4] = num5 - num6; + } + } + } + for (var num7 = 0; num7 < class49.Int8; num7++) + { + var array5 = class710.Float0[num7]; + var num8 = class54.Int1[num7]; + @class.Class280[num8].vmethod_4(class710, @class.Object1[num8], _object1[num7], array5); + } + for (var num9 = 0; num9 < class49.Int8; num9++) + { + var array6 = class710.Float0[num9]; + ((Class68) class66.Object0[class710.Int1][0]).method_1(array6, array6); + } + for (var num10 = 0; num10 < class49.Int8; num10++) + { + var array7 = class710.Float0[num10]; + if (_int1[num10] != 0) + { + for (var num11 = 0; num11 < num; num11++) + { + array7[num11] *= array[num11]; + } + } + else + { + for (var num12 = 0; num12 < num; num12++) + { + array7[num12] = 0f; + } + } + } + result = 0; + } + return result; + } - private static int smethod_0(int int2) - { - var num = 0; - while (int2 > 1) - { - num++; - int2 = (int)((uint)int2 >> 1); - } - return num; - } - } -} + private static int smethod_0(int int2) + { + var num = 0; + while (int2 > 1) + { + num++; + int2 = (int) ((uint) int2 >> 1); + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class39.cs b/GHNamespaceH/Class39.cs index f7e45b8..21b7d80 100644 --- a/GHNamespaceH/Class39.cs +++ b/GHNamespaceH/Class39.cs @@ -2,24 +2,24 @@ namespace GHNamespaceH { - public class Class39 - { - public Class40 Class400; + public class Class39 + { + public Class40 Class400; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public OggClass4[] Class210; + public OggClass4[] Class210; - public OggClass4 Class211; + public OggClass4 Class211; - public int[][] Int3; + public int[][] Int3; - public int Int4; + public int Int4; - public int[][] Int5; - } -} + public int[][] Int5; + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class40.cs b/GHNamespaceH/Class40.cs index 53c5a91..f6f49db 100644 --- a/GHNamespaceH/Class40.cs +++ b/GHNamespaceH/Class40.cs @@ -1,23 +1,23 @@ namespace GHNamespaceH { - public class Class40 - { - public int Int0; + public class Class40 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - public int[] Int5 = new int[64]; + public int[] Int5 = new int[64]; - public int[] Int6 = new int[256]; + public int[] Int6 = new int[256]; - public float[] Float0 = new float[64]; + public float[] Float0 = new float[64]; - public float[] Float1 = new float[64]; - } -} + public float[] Float1 = new float[64]; + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class41.cs b/GHNamespaceH/Class41.cs index 8ace9ca..267017f 100644 --- a/GHNamespaceH/Class41.cs +++ b/GHNamespaceH/Class41.cs @@ -1,12 +1,13 @@ namespace GHNamespaceH { - public abstract class Class41 - { - public static Class41[] Class410 = { - new Class43(), - new Class42() - }; + public abstract class Class41 + { + public static Class41[] Class410 = + { + new Class43(), + new Class42() + }; - public abstract void vmethod_0(object object0); - } -} + public abstract void vmethod_0(object object0); + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class42.cs b/GHNamespaceH/Class42.cs index 4bb7ecb..4c7d7d3 100644 --- a/GHNamespaceH/Class42.cs +++ b/GHNamespaceH/Class42.cs @@ -1,272 +1,273 @@ namespace GHNamespaceH { - public class Class42 : Class41 - { - private static int _int0 = 140; + public class Class42 : Class41 + { + private static int _int0 = 140; - private static int _int1 = 63; + private static int _int1 = 63; - private static readonly float[] Float0 = { - 1.06498632E-07f, - 1.1341951E-07f, - 1.20790148E-07f, - 1.28639783E-07f, - 1.369995E-07f, - 1.459025E-07f, - 1.55384086E-07f, - 1.65481808E-07f, - 1.76235744E-07f, - 1.87688556E-07f, - 1.998856E-07f, - 2.128753E-07f, - 2.26709133E-07f, - 2.41441967E-07f, - 2.57132228E-07f, - 2.73842119E-07f, - 2.91637917E-07f, - 3.10590224E-07f, - 3.307741E-07f, - 3.52269666E-07f, - 3.75162131E-07f, - 3.995423E-07f, - 4.255068E-07f, - 4.53158634E-07f, - 4.82607447E-07f, - 5.1397E-07f, - 5.47370632E-07f, - 5.829419E-07f, - 6.208247E-07f, - 6.611694E-07f, - 7.041359E-07f, - 7.49894639E-07f, - 7.98627E-07f, - 8.505263E-07f, - 9.057983E-07f, - 9.646621E-07f, - 1.02735135E-06f, - 1.0941144E-06f, - 1.16521608E-06f, - 1.24093845E-06f, - 1.32158164E-06f, - 1.40746545E-06f, - 1.49893049E-06f, - 1.59633942E-06f, - 1.70007854E-06f, - 1.81055918E-06f, - 1.92821949E-06f, - 2.053526E-06f, - 2.18697573E-06f, - 2.3290977E-06f, - 2.48045581E-06f, - 2.64164964E-06f, - 2.813319E-06f, - 2.9961443E-06f, - 3.19085052E-06f, - 3.39821E-06f, - 3.619045E-06f, - 3.85423073E-06f, - 4.10470057E-06f, - 4.371447E-06f, - 4.6555283E-06f, - 4.958071E-06f, - 5.280274E-06f, - 5.623416E-06f, - 5.988857E-06f, - 6.37804669E-06f, - 6.79252844E-06f, - 7.23394533E-06f, - 7.704048E-06f, - 8.2047E-06f, - 8.737888E-06f, - 9.305725E-06f, - 9.910464E-06f, - 1.05545014E-05f, - 1.12403923E-05f, - 1.19708557E-05f, - 1.27487892E-05f, - 1.3577278E-05f, - 1.44596061E-05f, - 1.53992714E-05f, - 1.64000048E-05f, - 1.74657689E-05f, - 1.86007928E-05f, - 1.98095768E-05f, - 2.10969138E-05f, - 2.24679115E-05f, - 2.39280016E-05f, - 2.54829774E-05f, - 2.71390054E-05f, - 2.890265E-05f, - 3.078091E-05f, - 3.27812268E-05f, - 3.49115326E-05f, - 3.718028E-05f, - 3.95964671E-05f, - 4.21696677E-05f, - 4.491009E-05f, - 4.7828602E-05f, - 5.09367746E-05f, - 5.424693E-05f, - 5.77722021E-05f, - 6.152657E-05f, - 6.552491E-05f, - 6.97830837E-05f, - 7.43179844E-05f, - 7.914758E-05f, - 8.429104E-05f, - 8.976875E-05f, - 9.560242E-05f, - 0.000101815211f, - 0.000108431741f, - 0.000115478237f, - 0.000122982674f, - 0.000130974775f, - 0.000139486248f, - 0.000148550855f, - 0.000158204537f, - 0.000168485552f, - 0.00017943469f, - 0.000191095358f, - 0.000203513817f, - 0.0002167393f, - 0.000230824226f, - 0.000245824485f, - 0.000261799549f, - 0.000278812746f, - 0.000296931568f, - 0.000316227874f, - 0.000336778146f, - 0.000358663878f, - 0.000381971884f, - 0.00040679457f, - 0.000433230365f, - 0.0004613841f, - 0.0004913675f, - 0.00052329927f, - 0.0005573062f, - 0.0005935231f, - 0.0006320936f, - 0.0006731706f, - 0.000716917f, - 0.0007635063f, - 0.000813123246f, - 0.000865964568f, - 0.000922239851f, - 0.0009821722f, - 0.00104599923f, - 0.00111397426f, - 0.00118636654f, - 0.00126346329f, - 0.0013455702f, - 0.00143301289f, - 0.00152613816f, - 0.00162531529f, - 0.00173093739f, - 0.00184342347f, - 0.00196321961f, - 0.00209080055f, - 0.0022266726f, - 0.00237137428f, - 0.00252547953f, - 0.00268959929f, - 0.00286438479f, - 0.0030505287f, - 0.003248769f, - 0.00345989247f, - 0.00368473586f, - 0.00392419053f, - 0.00417920668f, - 0.004450795f, - 0.004740033f, - 0.005048067f, - 0.0053761187f, - 0.005725489f, - 0.00609756354f, - 0.00649381755f, - 0.00691582263f, - 0.00736525143f, - 0.007843887f, - 0.008353627f, - 0.008896492f, - 0.009474637f, - 0.010090352f, - 0.01074608f, - 0.0114444206f, - 0.012188144f, - 0.0129801976f, - 0.0138237253f, - 0.0147220679f, - 0.0156787913f, - 0.0166976862f, - 0.0177827962f, - 0.0189384222f, - 0.0201691482f, - 0.0214798544f, - 0.0228757355f, - 0.02436233f, - 0.0259455312f, - 0.0276316181f, - 0.0294272769f, - 0.0313396268f, - 0.03337625f, - 0.0355452262f, - 0.0378551558f, - 0.0403152f, - 0.0429351069f, - 0.0457252748f, - 0.0486967564f, - 0.05186135f, - 0.05523159f, - 0.05882085f, - 0.0626433641f, - 0.06671428f, - 0.07104975f, - 0.0756669641f, - 0.08058423f, - 0.08582105f, - 0.09139818f, - 0.0973377451f, - 0.1036633f, - 0.110399932f, - 0.117574342f, - 0.125214979f, - 0.133352146f, - 0.142018124f, - 0.151247263f, - 0.161076173f, - 0.1715438f, - 0.182691678f, - 0.194564015f, - 0.207207873f, - 0.220673427f, - 0.235014021f, - 0.250286549f, - 0.266551584f, - 0.283873618f, - 0.3023213f, - 0.32196787f, - 0.342891127f, - 0.365174145f, - 0.3889052f, - 0.414178461f, - 0.44109413f, - 0.4697589f, - 0.50028646f, - 0.532797933f, - 0.5674221f, - 0.6042964f, - 0.643566966f, - 0.6853896f, - 0.729930043f, - 0.777365f, - 0.8278826f, - 0.881683052f, - 0.9389798f, - 1f - }; + private static readonly float[] Float0 = + { + 1.06498632E-07f, + 1.1341951E-07f, + 1.20790148E-07f, + 1.28639783E-07f, + 1.369995E-07f, + 1.459025E-07f, + 1.55384086E-07f, + 1.65481808E-07f, + 1.76235744E-07f, + 1.87688556E-07f, + 1.998856E-07f, + 2.128753E-07f, + 2.26709133E-07f, + 2.41441967E-07f, + 2.57132228E-07f, + 2.73842119E-07f, + 2.91637917E-07f, + 3.10590224E-07f, + 3.307741E-07f, + 3.52269666E-07f, + 3.75162131E-07f, + 3.995423E-07f, + 4.255068E-07f, + 4.53158634E-07f, + 4.82607447E-07f, + 5.1397E-07f, + 5.47370632E-07f, + 5.829419E-07f, + 6.208247E-07f, + 6.611694E-07f, + 7.041359E-07f, + 7.49894639E-07f, + 7.98627E-07f, + 8.505263E-07f, + 9.057983E-07f, + 9.646621E-07f, + 1.02735135E-06f, + 1.0941144E-06f, + 1.16521608E-06f, + 1.24093845E-06f, + 1.32158164E-06f, + 1.40746545E-06f, + 1.49893049E-06f, + 1.59633942E-06f, + 1.70007854E-06f, + 1.81055918E-06f, + 1.92821949E-06f, + 2.053526E-06f, + 2.18697573E-06f, + 2.3290977E-06f, + 2.48045581E-06f, + 2.64164964E-06f, + 2.813319E-06f, + 2.9961443E-06f, + 3.19085052E-06f, + 3.39821E-06f, + 3.619045E-06f, + 3.85423073E-06f, + 4.10470057E-06f, + 4.371447E-06f, + 4.6555283E-06f, + 4.958071E-06f, + 5.280274E-06f, + 5.623416E-06f, + 5.988857E-06f, + 6.37804669E-06f, + 6.79252844E-06f, + 7.23394533E-06f, + 7.704048E-06f, + 8.2047E-06f, + 8.737888E-06f, + 9.305725E-06f, + 9.910464E-06f, + 1.05545014E-05f, + 1.12403923E-05f, + 1.19708557E-05f, + 1.27487892E-05f, + 1.3577278E-05f, + 1.44596061E-05f, + 1.53992714E-05f, + 1.64000048E-05f, + 1.74657689E-05f, + 1.86007928E-05f, + 1.98095768E-05f, + 2.10969138E-05f, + 2.24679115E-05f, + 2.39280016E-05f, + 2.54829774E-05f, + 2.71390054E-05f, + 2.890265E-05f, + 3.078091E-05f, + 3.27812268E-05f, + 3.49115326E-05f, + 3.718028E-05f, + 3.95964671E-05f, + 4.21696677E-05f, + 4.491009E-05f, + 4.7828602E-05f, + 5.09367746E-05f, + 5.424693E-05f, + 5.77722021E-05f, + 6.152657E-05f, + 6.552491E-05f, + 6.97830837E-05f, + 7.43179844E-05f, + 7.914758E-05f, + 8.429104E-05f, + 8.976875E-05f, + 9.560242E-05f, + 0.000101815211f, + 0.000108431741f, + 0.000115478237f, + 0.000122982674f, + 0.000130974775f, + 0.000139486248f, + 0.000148550855f, + 0.000158204537f, + 0.000168485552f, + 0.00017943469f, + 0.000191095358f, + 0.000203513817f, + 0.0002167393f, + 0.000230824226f, + 0.000245824485f, + 0.000261799549f, + 0.000278812746f, + 0.000296931568f, + 0.000316227874f, + 0.000336778146f, + 0.000358663878f, + 0.000381971884f, + 0.00040679457f, + 0.000433230365f, + 0.0004613841f, + 0.0004913675f, + 0.00052329927f, + 0.0005573062f, + 0.0005935231f, + 0.0006320936f, + 0.0006731706f, + 0.000716917f, + 0.0007635063f, + 0.000813123246f, + 0.000865964568f, + 0.000922239851f, + 0.0009821722f, + 0.00104599923f, + 0.00111397426f, + 0.00118636654f, + 0.00126346329f, + 0.0013455702f, + 0.00143301289f, + 0.00152613816f, + 0.00162531529f, + 0.00173093739f, + 0.00184342347f, + 0.00196321961f, + 0.00209080055f, + 0.0022266726f, + 0.00237137428f, + 0.00252547953f, + 0.00268959929f, + 0.00286438479f, + 0.0030505287f, + 0.003248769f, + 0.00345989247f, + 0.00368473586f, + 0.00392419053f, + 0.00417920668f, + 0.004450795f, + 0.004740033f, + 0.005048067f, + 0.0053761187f, + 0.005725489f, + 0.00609756354f, + 0.00649381755f, + 0.00691582263f, + 0.00736525143f, + 0.007843887f, + 0.008353627f, + 0.008896492f, + 0.009474637f, + 0.010090352f, + 0.01074608f, + 0.0114444206f, + 0.012188144f, + 0.0129801976f, + 0.0138237253f, + 0.0147220679f, + 0.0156787913f, + 0.0166976862f, + 0.0177827962f, + 0.0189384222f, + 0.0201691482f, + 0.0214798544f, + 0.0228757355f, + 0.02436233f, + 0.0259455312f, + 0.0276316181f, + 0.0294272769f, + 0.0313396268f, + 0.03337625f, + 0.0355452262f, + 0.0378551558f, + 0.0403152f, + 0.0429351069f, + 0.0457252748f, + 0.0486967564f, + 0.05186135f, + 0.05523159f, + 0.05882085f, + 0.0626433641f, + 0.06671428f, + 0.07104975f, + 0.0756669641f, + 0.08058423f, + 0.08582105f, + 0.09139818f, + 0.0973377451f, + 0.1036633f, + 0.110399932f, + 0.117574342f, + 0.125214979f, + 0.133352146f, + 0.142018124f, + 0.151247263f, + 0.161076173f, + 0.1715438f, + 0.182691678f, + 0.194564015f, + 0.207207873f, + 0.220673427f, + 0.235014021f, + 0.250286549f, + 0.266551584f, + 0.283873618f, + 0.3023213f, + 0.32196787f, + 0.342891127f, + 0.365174145f, + 0.3889052f, + 0.414178461f, + 0.44109413f, + 0.4697589f, + 0.50028646f, + 0.532797933f, + 0.5674221f, + 0.6042964f, + 0.643566966f, + 0.6853896f, + 0.729930043f, + 0.777365f, + 0.8278826f, + 0.881683052f, + 0.9389798f, + 1f + }; - public override void vmethod_0(object object0) - { - } - } -} + public override void vmethod_0(object object0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class43.cs b/GHNamespaceH/Class43.cs index f1b84f2..d5f352a 100644 --- a/GHNamespaceH/Class43.cs +++ b/GHNamespaceH/Class43.cs @@ -1,11 +1,11 @@ namespace GHNamespaceH { - public class Class43 : Class41 - { - private readonly object _object0 = new object(); + public class Class43 : Class41 + { + private readonly object _object0 = new object(); - public override void vmethod_0(object object1) - { - } - } -} + public override void vmethod_0(object object1) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class44.cs b/GHNamespaceH/Class44.cs index 4ccd831..ce6f481 100644 --- a/GHNamespaceH/Class44.cs +++ b/GHNamespaceH/Class44.cs @@ -2,35 +2,35 @@ namespace GHNamespaceH { - public class Class44 - { - private static readonly uint[] Uint0 = new uint[256]; + public class Class44 + { + private static readonly uint[] Uint0 = new uint[256]; - private static uint smethod_0(uint uint1) - { - var num = uint1 << 24; - for (var i = 0; i < 8; i++) - { - if ((num & 2147483648u) != 0u) - { - num = (num << 1 ^ 79764919u); - } - else - { - num <<= 1; - } - } - return num & 4294967295u; - } + private static uint smethod_0(uint uint1) + { + var num = uint1 << 24; + for (var i = 0; i < 8; i++) + { + if ((num & 2147483648u) != 0u) + { + num = (num << 1 ^ 79764919u); + } + else + { + num <<= 1; + } + } + return num & 4294967295u; + } - public Class44() - { - var num = 0u; - while (num < (ulong)Uint0.Length) - { - Uint0[(int)((UIntPtr)num)] = smethod_0(num); - num += 1u; - } - } - } -} + public Class44() + { + var num = 0u; + while (num < (ulong) Uint0.Length) + { + Uint0[(int) ((UIntPtr) num)] = smethod_0(num); + num += 1u; + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class45.cs b/GHNamespaceH/Class45.cs index 67277c6..88a6c72 100644 --- a/GHNamespaceH/Class45.cs +++ b/GHNamespaceH/Class45.cs @@ -2,12 +2,13 @@ namespace GHNamespaceH { - public abstract class Class45 - { - public static Class45[] Class450 = { - new Class46() - }; + public abstract class Class45 + { + public static Class45[] Class450 = + { + new Class46() + }; - public abstract void vmethod_0(object object0); - } -} + public abstract void vmethod_0(object object0); + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class47.cs b/GHNamespaceH/Class47.cs index 9817e86..bd23fc3 100644 --- a/GHNamespaceH/Class47.cs +++ b/GHNamespaceH/Class47.cs @@ -2,73 +2,73 @@ namespace GHNamespaceH { - public class Class47 - { - private static string _string0 = "vorbis"; + public class Class47 + { + private static string _string0 = "vorbis"; - private static int _int0 = -130; + private static int _int0 = -130; - public byte[][] Byte0; + public byte[][] Byte0; - public int[] Int1; + public int[] Int1; - public int Int2; + public int Int2; - public byte[] Byte1; + public byte[] Byte1; - public void method_0() - { - Byte0 = null; - Int2 = 0; - Byte1 = null; - } + public void method_0() + { + Byte0 = null; + Int2 = 0; + Byte1 = null; + } - public int method_1(OggClass3 class380) - { - var num = class380.method_6(32); - if (num < 0) - { - method_2(); - return -1; - } - Byte1 = new byte[num + 1]; - class380.method_5(Byte1, num); - Int2 = class380.method_6(32); - if (Int2 < 0) - { - method_2(); - return -1; - } - Byte0 = new byte[Int2 + 1][]; - Int1 = new int[Int2 + 1]; - for (var i = 0; i < Int2; i++) - { - var num2 = class380.method_6(32); - if (num2 < 0) - { - method_2(); - return -1; - } - Int1[i] = num2; - Byte0[i] = new byte[num2 + 1]; - class380.method_5(Byte0[i], num2); - } - if (class380.method_6(1) != 1) - { - method_2(); - return -1; - } - return 0; - } + public int method_1(OggClass3 class380) + { + var num = class380.method_6(32); + if (num < 0) + { + method_2(); + return -1; + } + Byte1 = new byte[num + 1]; + class380.method_5(Byte1, num); + Int2 = class380.method_6(32); + if (Int2 < 0) + { + method_2(); + return -1; + } + Byte0 = new byte[Int2 + 1][]; + Int1 = new int[Int2 + 1]; + for (var i = 0; i < Int2; i++) + { + var num2 = class380.method_6(32); + if (num2 < 0) + { + method_2(); + return -1; + } + Int1[i] = num2; + Byte0[i] = new byte[num2 + 1]; + class380.method_5(Byte0[i], num2); + } + if (class380.method_6(1) != 1) + { + method_2(); + return -1; + } + return 0; + } - public void method_2() - { - for (var i = 0; i < Int2; i++) - { - Byte0[i] = null; - } - Byte0 = null; - Byte1 = null; - } - } -} + public void method_2() + { + for (var i = 0; i < Int2; i++) + { + Byte0[i] = null; + } + Byte0 = null; + Byte1 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class48.cs b/GHNamespaceH/Class48.cs index 65b1652..3e8ad4c 100644 --- a/GHNamespaceH/Class48.cs +++ b/GHNamespaceH/Class48.cs @@ -2,110 +2,112 @@ namespace GHNamespaceH { - public class Class48 - { - public byte[] Byte0; - - public int Int0; - - public int Int1; - - public byte[] Byte1; - - public int Int2; - - public int Int3; - - private static readonly uint[] Uint0 = new uint[256]; - - public Class48() - { - var num = 0u; - while (num < (ulong)Uint0.Length) - { - Uint0[(int)((UIntPtr)num)] = smethod_0(num); - num += 1u; - } - } - - private static uint smethod_0(uint uint1) - { - var num = uint1 << 24; - for (var i = 0; i < 8; i++) - { - if ((num & 2147483648u) != 0u) - { - num = (num << 1 ^ 79764919u); - } - else - { - num <<= 1; - } - } - return num & 4294967295u; - } - - public int method_0() - { - return Byte0[Int0 + 4] & 255; - } - - public int method_1() - { - return Byte0[Int0 + 5] & 1; - } - - public int method_2() - { - return Byte0[Int0 + 5] & 2; - } - - public int method_3() - { - return Byte0[Int0 + 5] & 4; - } - - public long method_4() - { - long num = Byte0[Int0 + 13] & 255; - num = (num << 8 | Byte0[Int0 + 12] & 255); - num = (num << 8 | Byte0[Int0 + 11] & 255); - num = (num << 8 | Byte0[Int0 + 10] & 255); - num = (num << 8 | Byte0[Int0 + 9] & 255); - num = (num << 8 | Byte0[Int0 + 8] & 255); - num = (num << 8 | Byte0[Int0 + 7] & 255); - return num << 8 | Byte0[Int0 + 6] & 255; - } - - public int method_5() - { - return Byte0[Int0 + 14] & 255 | (Byte0[Int0 + 15] & 255) << 8 | (Byte0[Int0 + 16] & 255) << 16 | (Byte0[Int0 + 17] & 255) << 24; - } - - public int method_6() - { - return Byte0[Int0 + 18] & 255 | (Byte0[Int0 + 19] & 255) << 8 | (Byte0[Int0 + 20] & 255) << 16 | (Byte0[Int0 + 21] & 255) << 24; - } - - public void method_7() - { - var num = 0u; - for (var i = 0; i < Int1; i++) - { - var num2 = (uint)(Byte0[Int0 + i] & 255); - var num3 = num >> 24 & 255u; - num = (num << 8 ^ Uint0[(int)((UIntPtr)(num2 ^ num3))]); - } - for (var j = 0; j < Int3; j++) - { - var num2 = (uint)(Byte1[Int2 + j] & 255); - var num3 = num >> 24 & 255u; - num = (num << 8 ^ Uint0[(int)((UIntPtr)(num2 ^ num3))]); - } - Byte0[Int0 + 22] = (byte)num; - Byte0[Int0 + 23] = (byte)(num >> 8); - Byte0[Int0 + 24] = (byte)(num >> 16); - Byte0[Int0 + 25] = (byte)(num >> 24); - } - } -} + public class Class48 + { + public byte[] Byte0; + + public int Int0; + + public int Int1; + + public byte[] Byte1; + + public int Int2; + + public int Int3; + + private static readonly uint[] Uint0 = new uint[256]; + + public Class48() + { + var num = 0u; + while (num < (ulong) Uint0.Length) + { + Uint0[(int) ((UIntPtr) num)] = smethod_0(num); + num += 1u; + } + } + + private static uint smethod_0(uint uint1) + { + var num = uint1 << 24; + for (var i = 0; i < 8; i++) + { + if ((num & 2147483648u) != 0u) + { + num = (num << 1 ^ 79764919u); + } + else + { + num <<= 1; + } + } + return num & 4294967295u; + } + + public int method_0() + { + return Byte0[Int0 + 4] & 255; + } + + public int method_1() + { + return Byte0[Int0 + 5] & 1; + } + + public int method_2() + { + return Byte0[Int0 + 5] & 2; + } + + public int method_3() + { + return Byte0[Int0 + 5] & 4; + } + + public long method_4() + { + long num = Byte0[Int0 + 13] & 255; + num = (num << 8 | Byte0[Int0 + 12] & 255); + num = (num << 8 | Byte0[Int0 + 11] & 255); + num = (num << 8 | Byte0[Int0 + 10] & 255); + num = (num << 8 | Byte0[Int0 + 9] & 255); + num = (num << 8 | Byte0[Int0 + 8] & 255); + num = (num << 8 | Byte0[Int0 + 7] & 255); + return num << 8 | Byte0[Int0 + 6] & 255; + } + + public int method_5() + { + return Byte0[Int0 + 14] & 255 | (Byte0[Int0 + 15] & 255) << 8 | (Byte0[Int0 + 16] & 255) << 16 | + (Byte0[Int0 + 17] & 255) << 24; + } + + public int method_6() + { + return Byte0[Int0 + 18] & 255 | (Byte0[Int0 + 19] & 255) << 8 | (Byte0[Int0 + 20] & 255) << 16 | + (Byte0[Int0 + 21] & 255) << 24; + } + + public void method_7() + { + var num = 0u; + for (var i = 0; i < Int1; i++) + { + var num2 = (uint) (Byte0[Int0 + i] & 255); + var num3 = num >> 24 & 255u; + num = (num << 8 ^ Uint0[(int) ((UIntPtr) (num2 ^ num3))]); + } + for (var j = 0; j < Int3; j++) + { + var num2 = (uint) (Byte1[Int2 + j] & 255); + var num3 = num >> 24 & 255u; + num = (num << 8 ^ Uint0[(int) ((UIntPtr) (num2 ^ num3))]); + } + Byte0[Int0 + 22] = (byte) num; + Byte0[Int0 + 23] = (byte) (num >> 8); + Byte0[Int0 + 24] = (byte) (num >> 16); + Byte0[Int0 + 25] = (byte) (num >> 24); + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class50.cs b/GHNamespaceH/Class50.cs index e6c4ccb..6a47b1c 100644 --- a/GHNamespaceH/Class50.cs +++ b/GHNamespaceH/Class50.cs @@ -3,16 +3,17 @@ namespace GHNamespaceH { - public abstract class Class50 - { - public static Class50[] Class500 = { - new Class51() - }; + public abstract class Class50 + { + public static Class50[] Class500 = + { + new Class51() + }; - public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); + public abstract object vmethod_0(OggClass5 class490, OggClass3 class380); - public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); + public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0); - public abstract void vmethod_2(object object0); - } -} + public abstract void vmethod_2(object object0); + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class52.cs b/GHNamespaceH/Class52.cs index 2c361dc..38ccc6e 100644 --- a/GHNamespaceH/Class52.cs +++ b/GHNamespaceH/Class52.cs @@ -2,194 +2,194 @@ namespace GHNamespaceH { - public class Class52 - { - public byte[] Byte0; + public class Class52 + { + public byte[] Byte0; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - private int _int5; + private int _int5; - private readonly Class48 _class480 = new Class48(); + private readonly Class48 _class480 = new Class48(); - private readonly byte[] _byte1 = new byte[4]; + private readonly byte[] _byte1 = new byte[4]; - public int method_0() - { - Byte0 = null; - return 0; - } + public int method_0() + { + Byte0 = null; + return 0; + } - public int method_1(int int6) - { - if (_int2 != 0) - { - _int1 -= _int2; - if (_int1 > 0) - { - Buffer.BlockCopy(Byte0, _int2, Byte0, 0, _int1); - } - _int2 = 0; - } - if (int6 > _int0 - _int1) - { - var num = int6 + _int1 + 4096; - if (Byte0 != null) - { - var dst = new byte[num]; - Buffer.BlockCopy(Byte0, 0, dst, 0, Byte0.Length); - Byte0 = dst; - } - else - { - Byte0 = new byte[num]; - } - _int0 = num; - } - return _int1; - } + public int method_1(int int6) + { + if (_int2 != 0) + { + _int1 -= _int2; + if (_int1 > 0) + { + Buffer.BlockCopy(Byte0, _int2, Byte0, 0, _int1); + } + _int2 = 0; + } + if (int6 > _int0 - _int1) + { + var num = int6 + _int1 + 4096; + if (Byte0 != null) + { + var dst = new byte[num]; + Buffer.BlockCopy(Byte0, 0, dst, 0, Byte0.Length); + Byte0 = dst; + } + else + { + Byte0 = new byte[num]; + } + _int0 = num; + } + return _int1; + } - public int method_2(int int6) - { - if (_int1 + int6 > _int0) - { - return -1; - } - _int1 += int6; - return 0; - } + public int method_2(int int6) + { + if (_int1 + int6 > _int0) + { + return -1; + } + _int1 += int6; + return 0; + } - public int method_3(Class48 class481) - { - var num = _int2; - var num2 = _int1 - _int2; - if (_int4 == 0) - { - if (num2 < 27) - { - return 0; - } - if (Byte0[num] == 79 && Byte0[num + 1] == 103 && Byte0[num + 2] == 103) - { - if (Byte0[num + 3] == 83) - { - var num3 = (Byte0[num + 26] & 255) + 27; - if (num2 < num3) - { - return 0; - } - for (var i = 0; i < (Byte0[num + 26] & 255); i++) - { - _int5 += Byte0[num + 27 + i] & 255; - } - _int4 = num3; - goto IL_11E; - } - } - _int4 = 0; - _int5 = 0; - var num4 = 0; - for (var j = 0; j < num2 - 1; j++) - { - if (Byte0[num + 1 + j] == 79) - { - num4 = num + 1 + j; + public int method_3(Class48 class481) + { + var num = _int2; + var num2 = _int1 - _int2; + if (_int4 == 0) + { + if (num2 < 27) + { + return 0; + } + if (Byte0[num] == 79 && Byte0[num + 1] == 103 && Byte0[num + 2] == 103) + { + if (Byte0[num + 3] == 83) + { + var num3 = (Byte0[num + 26] & 255) + 27; + if (num2 < num3) + { + return 0; + } + for (var i = 0; i < (Byte0[num + 26] & 255); i++) + { + _int5 += Byte0[num + 27 + i] & 255; + } + _int4 = num3; + goto IL_11E; + } + } + _int4 = 0; + _int5 = 0; + var num4 = 0; + for (var j = 0; j < num2 - 1; j++) + { + if (Byte0[num + 1 + j] == 79) + { + num4 = num + 1 + j; goto IL_108; - } - } - IL_108: + } + } + IL_108: if (num4 == 0) { num4 = _int1; } _int2 = num4; return -(num4 - num); - } - IL_11E: - if (_int5 + _int4 > num2) - { - return 0; - } - lock (_byte1) - { - Buffer.BlockCopy(Byte0, num + 22, _byte1, 0, 4); - Byte0[num + 22] = 0; - Byte0[num + 23] = 0; - Byte0[num + 24] = 0; - Byte0[num + 25] = 0; - var @class = _class480; - @class.Byte0 = Byte0; - @class.Int0 = num; - @class.Int1 = _int4; - @class.Byte1 = Byte0; - @class.Int2 = num + _int4; - @class.Int3 = _int5; - @class.method_7(); - if (_byte1[0] == Byte0[num + 22] && _byte1[1] == Byte0[num + 23] && _byte1[2] == Byte0[num + 24]) - { - if (_byte1[3] == Byte0[num + 25]) - { - goto IL_2B0; - } - } - Buffer.BlockCopy(_byte1, 0, Byte0, num + 22, 4); - _int4 = 0; - _int5 = 0; - var num4 = 0; - for (var k = 0; k < num2 - 1; k++) - { - if (Byte0[num + 1 + k] == 79) - { - num4 = num + 1 + k; + } + IL_11E: + if (_int5 + _int4 > num2) + { + return 0; + } + lock (_byte1) + { + Buffer.BlockCopy(Byte0, num + 22, _byte1, 0, 4); + Byte0[num + 22] = 0; + Byte0[num + 23] = 0; + Byte0[num + 24] = 0; + Byte0[num + 25] = 0; + var @class = _class480; + @class.Byte0 = Byte0; + @class.Int0 = num; + @class.Int1 = _int4; + @class.Byte1 = Byte0; + @class.Int2 = num + _int4; + @class.Int3 = _int5; + @class.method_7(); + if (_byte1[0] == Byte0[num + 22] && _byte1[1] == Byte0[num + 23] && _byte1[2] == Byte0[num + 24]) + { + if (_byte1[3] == Byte0[num + 25]) + { + goto IL_2B0; + } + } + Buffer.BlockCopy(_byte1, 0, Byte0, num + 22, 4); + _int4 = 0; + _int5 = 0; + var num4 = 0; + for (var k = 0; k < num2 - 1; k++) + { + if (Byte0[num + 1 + k] == 79) + { + num4 = num + 1 + k; goto IL_28C; - } - } - IL_28C: + } + } + IL_28C: if (num4 == 0) { num4 = _int1; } _int2 = num4; return -(num4 - num); - } - IL_2B0: - num = _int2; - if (class481 != null) - { - class481.Byte0 = Byte0; - class481.Int0 = num; - class481.Int1 = _int4; - class481.Byte1 = Byte0; - class481.Int2 = num + _int4; - class481.Int3 = _int5; - } - _int3 = 0; - _int2 += (num2 = _int4 + _int5); - _int4 = 0; - _int5 = 0; - return num2; - } + } + IL_2B0: + num = _int2; + if (class481 != null) + { + class481.Byte0 = Byte0; + class481.Int0 = num; + class481.Int1 = _int4; + class481.Byte1 = Byte0; + class481.Int2 = num + _int4; + class481.Int3 = _int5; + } + _int3 = 0; + _int2 += (num2 = _int4 + _int5); + _int4 = 0; + _int5 = 0; + return num2; + } - public int method_4() - { - _int1 = 0; - _int2 = 0; - _int3 = 0; - _int4 = 0; - _int5 = 0; - return 0; - } + public int method_4() + { + _int1 = 0; + _int2 = 0; + _int3 = 0; + _int4 = 0; + _int5 = 0; + return 0; + } - public void method_5() - { - } - } -} + public void method_5() + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class53.cs b/GHNamespaceH/Class53.cs index 68fddd7..07d6ba7 100644 --- a/GHNamespaceH/Class53.cs +++ b/GHNamespaceH/Class53.cs @@ -1,51 +1,51 @@ namespace GHNamespaceH { - public class Class53 - { - private float[] _float0 = new float[5]; + public class Class53 + { + private float[] _float0 = new float[5]; - private float[] _float1 = new float[5]; + private float[] _float1 = new float[5]; - private float[] _float2 = new float[5]; + private float[] _float2 = new float[5]; - private float[] _float3 = new float[5]; + private float[] _float3 = new float[5]; - private float[] _float4 = new float[5]; + private float[] _float4 = new float[5]; - private float[] _float5 = new float[5]; + private float[] _float5 = new float[5]; - private float[] _float6 = new float[5]; + private float[] _float6 = new float[5]; - private float[] _float7 = new float[5]; + private float[] _float7 = new float[5]; - private float[] _float8 = new float[5]; + private float[] _float8 = new float[5]; - private float[] _float9 = new float[5]; + private float[] _float9 = new float[5]; - private float[] _float10 = new float[5]; + private float[] _float10 = new float[5]; - private float[] _float11 = new float[5]; + private float[] _float11 = new float[5]; - private float[] _float12 = new float[5]; + private float[] _float12 = new float[5]; - private float[] _float13 = new float[5]; + private float[] _float13 = new float[5]; - private float[] _float14 = new float[5]; + private float[] _float14 = new float[5]; - private float[] _float15 = new float[5]; + private float[] _float15 = new float[5]; - private float[] _float16 = new float[5]; + private float[] _float16 = new float[5]; - private float[] _float17 = new float[5]; + private float[] _float17 = new float[5]; - private float[] _float18 = new float[5]; + private float[] _float18 = new float[5]; - private float[] _float19 = new float[5]; + private float[] _float19 = new float[5]; - private float[] _float20 = new float[5]; + private float[] _float20 = new float[5]; - public void method_0() - { - } - } -} + public void method_0() + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class54.cs b/GHNamespaceH/Class54.cs index b590f7e..3fcae1f 100644 --- a/GHNamespaceH/Class54.cs +++ b/GHNamespaceH/Class54.cs @@ -1,34 +1,34 @@ namespace GHNamespaceH { - public class Class54 - { - public int Int0; + public class Class54 + { + public int Int0; - public int[] Int1 = new int[256]; + public int[] Int1 = new int[256]; - public int[] Int2 = new int[16]; + public int[] Int2 = new int[16]; - public int[] Int3 = new int[16]; + public int[] Int3 = new int[16]; - public int[] Int4 = new int[16]; + public int[] Int4 = new int[16]; - public int[] Int5 = new int[16]; + public int[] Int5 = new int[16]; - public int Int6; + public int Int6; - public int[] Int7 = new int[256]; + public int[] Int7 = new int[256]; - public int[] Int8 = new int[256]; + public int[] Int8 = new int[256]; - public void method_0() - { - Int1 = null; - Int2 = null; - Int3 = null; - Int4 = null; - Int5 = null; - Int7 = null; - Int8 = null; - } - } -} + public void method_0() + { + Int1 = null; + Int2 = null; + Int3 = null; + Int4 = null; + Int5 = null; + Int7 = null; + Int8 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class55.cs b/GHNamespaceH/Class55.cs index 907d8ce..d695def 100644 --- a/GHNamespaceH/Class55.cs +++ b/GHNamespaceH/Class55.cs @@ -2,24 +2,24 @@ namespace GHNamespaceH { - public class Class55 - { - public Class27 Class270; + public class Class55 + { + public Class27 Class270; - public Class54 Class540; + public Class54 Class540; - public object[] Object0; + public object[] Object0; - public object[] Object1; + public object[] Object1; - public object[] Object2; + public object[] Object2; - public Class50[] Class500; + public Class50[] Class500; - public Class28[] Class280; + public Class28[] Class280; - public Class23[] Class230; + public Class23[] Class230; - public int Int0; - } -} + public int Int0; + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class56.cs b/GHNamespaceH/Class56.cs index 0c24dda..cfa8fa4 100644 --- a/GHNamespaceH/Class56.cs +++ b/GHNamespaceH/Class56.cs @@ -3,291 +3,291 @@ namespace GHNamespaceH { - public class Class56 - { - private byte[] _byte0; + public class Class56 + { + private byte[] _byte0; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private int[] _int3; + private int[] _int3; - private long[] _long0; + private long[] _long0; - private int _int4; + private int _int4; - private int _int5; + private int _int5; - private int _int6; + private int _int6; - private int _int7; + private int _int7; - private readonly byte[] _byte1 = new byte[282]; + private readonly byte[] _byte1 = new byte[282]; - private int _int8; + private int _int8; - public int Int9; + public int Int9; - private int _int10; + private int _int10; - private int _int11; + private int _int11; - private int _int12; + private int _int12; - private long _long1; + private long _long1; - private long _long2; + private long _long2; - public Class56() - { - method_0(); - } + public Class56() + { + method_0(); + } - ~Class56() - { - method_2(); - } + ~Class56() + { + method_2(); + } - private void method_0() - { - _int0 = 16384; - _byte0 = new byte[_int0]; - _int4 = 1024; - _int3 = new int[_int4]; - _long0 = new long[_int4]; - } + private void method_0() + { + _int0 = 16384; + _byte0 = new byte[_int0]; + _int4 = 1024; + _int3 = new int[_int4]; + _long0 = new long[_int4]; + } - public void method_1(int int13) - { - if (_byte0 == null) - { - method_0(); - } - else - { - for (var i = 0; i < _byte0.Length; i++) - { - _byte0[i] = 0; - } - for (var j = 0; j < _int3.Length; j++) - { - _int3[j] = 0; - } - for (var k = 0; k < _long0.Length; k++) - { - _long0[k] = 0L; - } - } - _int11 = int13; - } + public void method_1(int int13) + { + if (_byte0 == null) + { + method_0(); + } + else + { + for (var i = 0; i < _byte0.Length; i++) + { + _byte0[i] = 0; + } + for (var j = 0; j < _int3.Length; j++) + { + _int3[j] = 0; + } + for (var k = 0; k < _long0.Length; k++) + { + _long0[k] = 0L; + } + } + _int11 = int13; + } - public void method_2() - { - _byte0 = null; - _int3 = null; - _long0 = null; - } + public void method_2() + { + _byte0 = null; + _int3 = null; + _long0 = null; + } - private void method_3(int int13) - { - if (_int0 <= _int1 + int13) - { - _int0 += int13 + 1024; - var dst = new byte[_int0]; - Buffer.BlockCopy(_byte0, 0, dst, 0, _byte0.Length); - _byte0 = dst; - } - } + private void method_3(int int13) + { + if (_int0 <= _int1 + int13) + { + _int0 += int13 + 1024; + var dst = new byte[_int0]; + Buffer.BlockCopy(_byte0, 0, dst, 0, _byte0.Length); + _byte0 = dst; + } + } - private void method_4(int int13) - { - if (_int4 <= _int5 + int13) - { - _int4 += int13 + 32; - var dst = new int[_int4]; - Buffer.BlockCopy(_int3, 0, dst, 0, _int3.Length << 2); - _int3 = dst; - var dst2 = new long[_int4]; - Buffer.BlockCopy(_long0, 0, dst2, 0, _long0.Length << 3); - _long0 = dst2; - } - } + private void method_4(int int13) + { + if (_int4 <= _int5 + int13) + { + _int4 += int13 + 32; + var dst = new int[_int4]; + Buffer.BlockCopy(_int3, 0, dst, 0, _int3.Length << 2); + _int3 = dst; + var dst2 = new long[_int4]; + Buffer.BlockCopy(_long0, 0, dst2, 0, _long0.Length << 3); + _long0 = dst2; + } + } - public int method_5(Class67 class670) - { - var num = _int7; - if (_int6 <= num) - { - return 0; - } - if ((_int3[num] & 1024) != 0) - { - _int7++; - _long1 += 1L; - return -1; - } - var num2 = _int3[num] & 255; - class670.Byte0 = _byte0; - class670.Int0 = _int2; - class670.Int3 = (_int3[num] & 512); - class670.Int2 = (_int3[num] & 256); - var num3 = 0 + num2; - while (num2 == 255) - { - var num4 = _int3[++num]; - num2 = (num4 & 255); - if ((num4 & 512) != 0) - { - class670.Int3 = 512; - } - num3 += num2; - } - class670.Long1 = _long1; - class670.Long0 = _long0[num]; - class670.Int1 = num3; - _int2 += num3; - _int7 = num + 1; - _long1 += 1L; - return 1; - } + public int method_5(Class67 class670) + { + var num = _int7; + if (_int6 <= num) + { + return 0; + } + if ((_int3[num] & 1024) != 0) + { + _int7++; + _long1 += 1L; + return -1; + } + var num2 = _int3[num] & 255; + class670.Byte0 = _byte0; + class670.Int0 = _int2; + class670.Int3 = (_int3[num] & 512); + class670.Int2 = (_int3[num] & 256); + var num3 = 0 + num2; + while (num2 == 255) + { + var num4 = _int3[++num]; + num2 = (num4 & 255); + if ((num4 & 512) != 0) + { + class670.Int3 = 512; + } + num3 += num2; + } + class670.Long1 = _long1; + class670.Long0 = _long0[num]; + class670.Int1 = num3; + _int2 += num3; + _int7 = num + 1; + _long1 += 1L; + return 1; + } - public bool method_6(Class48 class480) - { - var array = class480.Byte0; - var num = class480.Int0; - var src = class480.Byte1; - var num2 = class480.Int2; - var num3 = class480.Int3; - var i = 0; - var num4 = class480.method_0(); - var num5 = class480.method_1(); - var num6 = class480.method_2(); - var num7 = class480.method_3(); - var num8 = class480.method_4(); - var num9 = class480.method_5(); - var num10 = class480.method_6(); - var num11 = array[num + 26] & 255; - var num12 = _int7; - var num13 = _int2; - if (num13 != 0) - { - _int1 -= num13; - if (_int1 != 0) - { - Buffer.BlockCopy(_byte0, num13, _byte0, 0, _int1); - } - _int2 = 0; - } - if (num12 != 0) - { - if (_int5 - num12 != 0) - { - Buffer.BlockCopy(_int3, num12 << 2, _int3, 0, _int5 - num12 << 2); - Buffer.BlockCopy(_long0, num12 << 3, _long0, 0, _int5 - num12 << 3); - } - _int5 -= num12; - _int6 -= num12; - _int7 = 0; - } - if (num9 != _int11) - { - return false; - } - if (num4 > 0) - { - return false; - } - method_4(num11 + 1); - if (num10 != _int12) - { - for (var j = _int6; j < _int5; j++) - { - _int1 -= (_int3[j] & 255); - } - _int5 = _int6; - if (_int12 != -1) - { - _int3[_int5++] = 1024; - _int6++; - } - if (num5 != 0) - { - num6 = 0; - while (i < num11) - { - var num14 = array[num + 27 + i] & 255; - num2 += num14; - num3 -= num14; - if (num14 < 255) - { - i++; - break; - } - i++; - } - } - } - if (num3 != 0) - { - method_3(num3); - Buffer.BlockCopy(src, num2, _byte0, _int1, num3); - _int1 += num3; - } - var num15 = -1; - while (i < num11) - { - var num16 = array[num + 27 + i] & 255; - _int3[_int5] = num16; - _long0[_int5] = -1L; - if (num6 != 0) - { - _int3[_int5] |= 256; - num6 = 0; - } - if (num16 < 255) - { - num15 = _int5; - } - _int5++; - i++; - if (num16 < 255) - { - _int6 = _int5; - } - } - if (num15 != -1) - { - _long0[num15] = num8; - } - if (num7 != 0) - { - Int9 = 1; - if (_int5 > 0) - { - _int3[_int5 - 1] |= 512; - } - } - _int12 = num10 + 1; - return true; - } + public bool method_6(Class48 class480) + { + var array = class480.Byte0; + var num = class480.Int0; + var src = class480.Byte1; + var num2 = class480.Int2; + var num3 = class480.Int3; + var i = 0; + var num4 = class480.method_0(); + var num5 = class480.method_1(); + var num6 = class480.method_2(); + var num7 = class480.method_3(); + var num8 = class480.method_4(); + var num9 = class480.method_5(); + var num10 = class480.method_6(); + var num11 = array[num + 26] & 255; + var num12 = _int7; + var num13 = _int2; + if (num13 != 0) + { + _int1 -= num13; + if (_int1 != 0) + { + Buffer.BlockCopy(_byte0, num13, _byte0, 0, _int1); + } + _int2 = 0; + } + if (num12 != 0) + { + if (_int5 - num12 != 0) + { + Buffer.BlockCopy(_int3, num12 << 2, _int3, 0, _int5 - num12 << 2); + Buffer.BlockCopy(_long0, num12 << 3, _long0, 0, _int5 - num12 << 3); + } + _int5 -= num12; + _int6 -= num12; + _int7 = 0; + } + if (num9 != _int11) + { + return false; + } + if (num4 > 0) + { + return false; + } + method_4(num11 + 1); + if (num10 != _int12) + { + for (var j = _int6; j < _int5; j++) + { + _int1 -= (_int3[j] & 255); + } + _int5 = _int6; + if (_int12 != -1) + { + _int3[_int5++] = 1024; + _int6++; + } + if (num5 != 0) + { + num6 = 0; + while (i < num11) + { + var num14 = array[num + 27 + i] & 255; + num2 += num14; + num3 -= num14; + if (num14 < 255) + { + i++; + break; + } + i++; + } + } + } + if (num3 != 0) + { + method_3(num3); + Buffer.BlockCopy(src, num2, _byte0, _int1, num3); + _int1 += num3; + } + var num15 = -1; + while (i < num11) + { + var num16 = array[num + 27 + i] & 255; + _int3[_int5] = num16; + _long0[_int5] = -1L; + if (num6 != 0) + { + _int3[_int5] |= 256; + num6 = 0; + } + if (num16 < 255) + { + num15 = _int5; + } + _int5++; + i++; + if (num16 < 255) + { + _int6 = _int5; + } + } + if (num15 != -1) + { + _long0[num15] = num8; + } + if (num7 != 0) + { + Int9 = 1; + if (_int5 > 0) + { + _int3[_int5 - 1] |= 512; + } + } + _int12 = num10 + 1; + return true; + } - public bool method_7() - { - _int1 = 0; - _int2 = 0; - _int5 = 0; - _int6 = 0; - _int7 = 0; - _int8 = 0; - Int9 = 0; - _int10 = 0; - _int12 = -1; - _long1 = 0L; - _long2 = 0L; - return true; - } - } -} + public bool method_7() + { + _int1 = 0; + _int2 = 0; + _int5 = 0; + _int6 = 0; + _int7 = 0; + _int8 = 0; + Int9 = 0; + _int10 = 0; + _int12 = -1; + _long1 = 0L; + _long2 = 0L; + return true; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class57.cs b/GHNamespaceH/Class57.cs index c5ca5a9..378563b 100644 --- a/GHNamespaceH/Class57.cs +++ b/GHNamespaceH/Class57.cs @@ -2,14 +2,15 @@ namespace GHNamespaceH { - public abstract class Class57 - { - public static Class57[] Class570 = { - new Class58(), - new Class60(), - new Class59() - }; + public abstract class Class57 + { + public static Class57[] Class570 = + { + new Class58(), + new Class60(), + new Class59() + }; - public abstract void vmethod_0(object object0); - } -} + public abstract void vmethod_0(object object0); + } +} \ No newline at end of file diff --git a/GHNamespaceH/Class61.cs b/GHNamespaceH/Class61.cs index 7c9ef1e..cdb8f53 100644 --- a/GHNamespaceH/Class61.cs +++ b/GHNamespaceH/Class61.cs @@ -1,17 +1,17 @@ namespace GHNamespaceH { - public class Class61 - { - public byte[] Byte0; + public class Class61 + { + public byte[] Byte0; - private readonly Class44 _class440 = new Class44(); + private readonly Class44 _class440 = new Class44(); - private readonly byte[] _byte1 = new byte[4]; + private readonly byte[] _byte1 = new byte[4]; - public int method_0() - { - Byte0 = null; - return 0; - } - } -} + public int method_0() + { + Byte0 = null; + return 0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/OGGClass5.cs b/GHNamespaceH/OGGClass5.cs index ffc2b1e..776c773 100644 --- a/GHNamespaceH/OGGClass5.cs +++ b/GHNamespaceH/OGGClass5.cs @@ -3,332 +3,332 @@ namespace GHNamespaceH { - public class OggClass5 - { - private static int _int0 = -136; + public class OggClass5 + { + private static int _int0 = -136; - private static int _int1 = -135; + private static int _int1 = -135; - private static string _string0 = "vorbis"; + private static string _string0 = "vorbis"; - private static readonly int Int2 = 1; + private static readonly int Int2 = 1; - private static readonly int Int3 = 2; + private static readonly int Int3 = 2; - private static readonly int Int4 = 3; + private static readonly int Int4 = 3; - private static readonly int Int5 = 1; + private static readonly int Int5 = 1; - private static readonly int Int6 = 1; + private static readonly int Int6 = 1; - public int Int7; + public int Int7; - public int Int8; + public int Int8; - public int Int9; + public int Int9; - public int Int10; + public int Int10; - public int Int11; + public int Int11; - public int Int12; + public int Int12; - public int[] Int13 = new int[2]; + public int[] Int13 = new int[2]; - public int Int14; + public int Int14; - public int Int15; + public int Int15; - public int Int16; + public int Int16; - public int Int17; + public int Int17; - public int Int18; + public int Int18; - public int Int19; + public int Int19; - public int Int20; + public int Int20; - public Class27[] Class270; - - public int[] Int21; - - public object[] Object0; - - public int[] Int22; - - public object[] Object1; - - public int[] Int23; - - public object[] Object2; - - public int[] Int24; - - public object[] Object3; - - public OggClass2[] OggClass2; - - public Class70[] Class700 = new Class70[64]; - - public void method_0() - { - Int9 = 0; - } - - public void method_1() - { - for (var i = 0; i < Int14; i++) - { - Class270[i] = null; - } - Class270 = null; - for (var j = 0; j < Int15; j++) - { - Class34.Class340[Int21[j]].vmethod_2(Object0[j]); - } - Object0 = null; - for (var k = 0; k < Int16; k++) - { - Class50.Class500[Int22[k]].vmethod_2(Object1[k]); - } - Object1 = null; - for (var l = 0; l < Int17; l++) - { - Class28.Class280[Int23[l]].vmethod_2(Object2[l]); - } - Object2 = null; - for (var m = 0; m < Int18; m++) - { - Class23.Class230[Int24[m]].vmethod_2(Object3[m]); - } - Object3 = null; - for (var n = 0; n < Int19; n++) - { - if (OggClass2[n] != null) - { - OggClass2[n].method_2(); - OggClass2[n] = null; - } - } - OggClass2 = null; - for (var num = 0; num < Int20; num++) - { - Class700[num].method_0(); - } - } - - private int method_2(OggClass3 oggClass3) - { - Int7 = oggClass3.method_6(32); - if (Int7 != 0) - { - return -1; - } - Int8 = oggClass3.method_6(8); - Int9 = oggClass3.method_6(32); - Int10 = oggClass3.method_6(32); - Int11 = oggClass3.method_6(32); - Int12 = oggClass3.method_6(32); - Int13[0] = 1 << oggClass3.method_6(4); - Int13[1] = 1 << oggClass3.method_6(4); - if (Int9 >= 1 && Int8 >= 1 && Int13[0] >= 8 && Int13[1] >= Int13[0]) - { - if (oggClass3.method_6(1) == 1) - { - return 0; - } - } - method_1(); - return -1; - } - - private int method_3(OggClass3 oggClass3) - { - Int19 = oggClass3.method_6(8) + 1; - if (OggClass2 == null || OggClass2.Length != Int19) - { - OggClass2 = new OggClass2[Int19]; - } - for (var i = 0; i < Int19; i++) - { - OggClass2[i] = new OggClass2(); - if (OggClass2[i].method_0(oggClass3) != 0) - { - method_1(); - return -1; - } - } - Int16 = oggClass3.method_6(6) + 1; - if (Int22 == null || Int22.Length != Int16) - { - Int22 = new int[Int16]; - } - if (Object1 == null || Object1.Length != Int16) - { - Object1 = new object[Int16]; - } - for (var j = 0; j < Int16; j++) - { - Int22[j] = oggClass3.method_6(16); - if (Int22[j] < 0 || Int22[j] >= Int2) - { - method_1(); - return -1; - } - Object1[j] = Class50.Class500[Int22[j]].vmethod_0(this, oggClass3); - if (Object1[j] == null) - { - method_1(); - return -1; - } - } - Int17 = oggClass3.method_6(6) + 1; - if (Int23 == null || Int23.Length != Int17) - { - Int23 = new int[Int17]; - } - if (Object2 == null || Object2.Length != Int17) - { - Object2 = new object[Int17]; - } - for (var k = 0; k < Int17; k++) - { - Int23[k] = oggClass3.method_6(16); - if (Int23[k] < 0 || Int23[k] >= Int3) - { - method_1(); - return -1; - } - Object2[k] = Class28.Class280[Int23[k]].vmethod_0(this, oggClass3); - if (Object2[k] == null) - { - method_1(); - return -1; - } - } - Int18 = oggClass3.method_6(6) + 1; - if (Int24 == null || Int24.Length != Int18) - { - Int24 = new int[Int18]; - } - if (Object3 == null || Object3.Length != Int18) - { - Object3 = new object[Int18]; - } - for (var l = 0; l < Int18; l++) - { - Int24[l] = oggClass3.method_6(16); - if (Int24[l] < 0 || Int24[l] >= Int4) - { - method_1(); - return -1; - } - Object3[l] = Class23.Class230[Int24[l]].vmethod_0(this, oggClass3); - if (Object3[l] == null) - { - method_1(); - return -1; - } - } - Int15 = oggClass3.method_6(6) + 1; - if (Int21 == null || Int21.Length != Int15) - { - Int21 = new int[Int15]; - } - if (Object0 == null || Object0.Length != Int15) - { - Object0 = new object[Int15]; - } - for (var m = 0; m < Int15; m++) - { - Int21[m] = oggClass3.method_6(16); - if (Int21[m] < 0 || Int21[m] >= Int5) - { - method_1(); - return -1; - } - Object0[m] = Class34.Class340[Int21[m]].vmethod_0(this, oggClass3); - if (Object0[m] == null) - { - method_1(); - return -1; - } - } - Int14 = oggClass3.method_6(6) + 1; - if (Class270 == null || Class270.Length != Int14) - { - Class270 = new Class27[Int14]; - } - for (var n = 0; n < Int14; n++) - { - Class270[n] = new Class27(); - Class270[n].Int0 = oggClass3.method_6(1); - Class270[n].Int1 = oggClass3.method_6(16); - Class270[n].Int2 = oggClass3.method_6(16); - Class270[n].Int3 = oggClass3.method_6(8); - if (Class270[n].Int1 >= Int6 || Class270[n].Int2 >= Int6 || Class270[n].Int3 >= Int15) - { - method_1(); - return -1; - } - } - if (oggClass3.method_6(1) != 1) - { - method_1(); - return -1; - } - return 0; - } - - public int method_4(Class47 class470, Class67 class670) - { - var @class = new OggClass3(); - if (class670 != null) - { - @class.method_4(class670.Byte0, class670.Int0, class670.Int1); - var array = new byte[6]; - var num = @class.method_6(8); - @class.method_5(array, 6); - if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105) - { - if (array[5] == 115) - { - switch (num) - { - case 1: - if (class670.Int2 == 0) - { - return -1; - } - if (Int9 != 0) - { - return -1; - } - return method_2(@class); - case 2: - case 4: - return -1; - case 3: - if (Int9 == 0) - { - return -1; - } - return class470.method_1(@class); - case 5: - if (Int9 != 0 && class470.Byte1 != null) - { - return method_3(@class); - } - return -1; - default: - return -1; - } - } - } - return -1; - } - return -1; - } - } -} + public Class27[] Class270; + + public int[] Int21; + + public object[] Object0; + + public int[] Int22; + + public object[] Object1; + + public int[] Int23; + + public object[] Object2; + + public int[] Int24; + + public object[] Object3; + + public OggClass2[] OggClass2; + + public Class70[] Class700 = new Class70[64]; + + public void method_0() + { + Int9 = 0; + } + + public void method_1() + { + for (var i = 0; i < Int14; i++) + { + Class270[i] = null; + } + Class270 = null; + for (var j = 0; j < Int15; j++) + { + Class34.Class340[Int21[j]].vmethod_2(Object0[j]); + } + Object0 = null; + for (var k = 0; k < Int16; k++) + { + Class50.Class500[Int22[k]].vmethod_2(Object1[k]); + } + Object1 = null; + for (var l = 0; l < Int17; l++) + { + Class28.Class280[Int23[l]].vmethod_2(Object2[l]); + } + Object2 = null; + for (var m = 0; m < Int18; m++) + { + Class23.Class230[Int24[m]].vmethod_2(Object3[m]); + } + Object3 = null; + for (var n = 0; n < Int19; n++) + { + if (OggClass2[n] != null) + { + OggClass2[n].method_2(); + OggClass2[n] = null; + } + } + OggClass2 = null; + for (var num = 0; num < Int20; num++) + { + Class700[num].method_0(); + } + } + + private int method_2(OggClass3 oggClass3) + { + Int7 = oggClass3.method_6(32); + if (Int7 != 0) + { + return -1; + } + Int8 = oggClass3.method_6(8); + Int9 = oggClass3.method_6(32); + Int10 = oggClass3.method_6(32); + Int11 = oggClass3.method_6(32); + Int12 = oggClass3.method_6(32); + Int13[0] = 1 << oggClass3.method_6(4); + Int13[1] = 1 << oggClass3.method_6(4); + if (Int9 >= 1 && Int8 >= 1 && Int13[0] >= 8 && Int13[1] >= Int13[0]) + { + if (oggClass3.method_6(1) == 1) + { + return 0; + } + } + method_1(); + return -1; + } + + private int method_3(OggClass3 oggClass3) + { + Int19 = oggClass3.method_6(8) + 1; + if (OggClass2 == null || OggClass2.Length != Int19) + { + OggClass2 = new OggClass2[Int19]; + } + for (var i = 0; i < Int19; i++) + { + OggClass2[i] = new OggClass2(); + if (OggClass2[i].method_0(oggClass3) != 0) + { + method_1(); + return -1; + } + } + Int16 = oggClass3.method_6(6) + 1; + if (Int22 == null || Int22.Length != Int16) + { + Int22 = new int[Int16]; + } + if (Object1 == null || Object1.Length != Int16) + { + Object1 = new object[Int16]; + } + for (var j = 0; j < Int16; j++) + { + Int22[j] = oggClass3.method_6(16); + if (Int22[j] < 0 || Int22[j] >= Int2) + { + method_1(); + return -1; + } + Object1[j] = Class50.Class500[Int22[j]].vmethod_0(this, oggClass3); + if (Object1[j] == null) + { + method_1(); + return -1; + } + } + Int17 = oggClass3.method_6(6) + 1; + if (Int23 == null || Int23.Length != Int17) + { + Int23 = new int[Int17]; + } + if (Object2 == null || Object2.Length != Int17) + { + Object2 = new object[Int17]; + } + for (var k = 0; k < Int17; k++) + { + Int23[k] = oggClass3.method_6(16); + if (Int23[k] < 0 || Int23[k] >= Int3) + { + method_1(); + return -1; + } + Object2[k] = Class28.Class280[Int23[k]].vmethod_0(this, oggClass3); + if (Object2[k] == null) + { + method_1(); + return -1; + } + } + Int18 = oggClass3.method_6(6) + 1; + if (Int24 == null || Int24.Length != Int18) + { + Int24 = new int[Int18]; + } + if (Object3 == null || Object3.Length != Int18) + { + Object3 = new object[Int18]; + } + for (var l = 0; l < Int18; l++) + { + Int24[l] = oggClass3.method_6(16); + if (Int24[l] < 0 || Int24[l] >= Int4) + { + method_1(); + return -1; + } + Object3[l] = Class23.Class230[Int24[l]].vmethod_0(this, oggClass3); + if (Object3[l] == null) + { + method_1(); + return -1; + } + } + Int15 = oggClass3.method_6(6) + 1; + if (Int21 == null || Int21.Length != Int15) + { + Int21 = new int[Int15]; + } + if (Object0 == null || Object0.Length != Int15) + { + Object0 = new object[Int15]; + } + for (var m = 0; m < Int15; m++) + { + Int21[m] = oggClass3.method_6(16); + if (Int21[m] < 0 || Int21[m] >= Int5) + { + method_1(); + return -1; + } + Object0[m] = Class34.Class340[Int21[m]].vmethod_0(this, oggClass3); + if (Object0[m] == null) + { + method_1(); + return -1; + } + } + Int14 = oggClass3.method_6(6) + 1; + if (Class270 == null || Class270.Length != Int14) + { + Class270 = new Class27[Int14]; + } + for (var n = 0; n < Int14; n++) + { + Class270[n] = new Class27(); + Class270[n].Int0 = oggClass3.method_6(1); + Class270[n].Int1 = oggClass3.method_6(16); + Class270[n].Int2 = oggClass3.method_6(16); + Class270[n].Int3 = oggClass3.method_6(8); + if (Class270[n].Int1 >= Int6 || Class270[n].Int2 >= Int6 || Class270[n].Int3 >= Int15) + { + method_1(); + return -1; + } + } + if (oggClass3.method_6(1) != 1) + { + method_1(); + return -1; + } + return 0; + } + + public int method_4(Class47 class470, Class67 class670) + { + var @class = new OggClass3(); + if (class670 != null) + { + @class.method_4(class670.Byte0, class670.Int0, class670.Int1); + var array = new byte[6]; + var num = @class.method_6(8); + @class.method_5(array, 6); + if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105) + { + if (array[5] == 115) + { + switch (num) + { + case 1: + if (class670.Int2 == 0) + { + return -1; + } + if (Int9 != 0) + { + return -1; + } + return method_2(@class); + case 2: + case 4: + return -1; + case 3: + if (Int9 == 0) + { + return -1; + } + return class470.method_1(@class); + case 5: + if (Int9 != 0 && class470.Byte1 != null) + { + return method_3(@class); + } + return -1; + default: + return -1; + } + } + } + return -1; + } + return -1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceH/OGGStream.cs b/GHNamespaceH/OGGStream.cs index dd4e819..1c4c62f 100644 --- a/GHNamespaceH/OGGStream.cs +++ b/GHNamespaceH/OGGStream.cs @@ -8,570 +8,567 @@ namespace GHNamespaceH { - public class OggStream : GenericAudioStream - { - private static readonly int Int2 = 8500; + public class OggStream : GenericAudioStream + { + private static readonly int Int2 = 8500; - private static int _int3; + private static int _int3; - private static int _int4 = 1; + private static int _int4 = 1; - private static readonly int Int5 = 2; + private static readonly int Int5 = 2; - private static readonly int Int6 = -1; + private static readonly int Int6 = -1; - private static readonly int Int7 = -2; + private static readonly int Int7 = -2; - private static int _int8 = -3; + private static int _int8 = -3; - private static readonly int Int9 = -128; + private static readonly int Int9 = -128; - private static readonly int Int10 = -129; + private static readonly int Int10 = -129; - private static int _int11 = -130; + private static int _int11 = -130; - private static int _int12 = -131; + private static int _int12 = -131; - private static readonly int Int13 = -132; + private static readonly int Int13 = -132; - private static int _int14 = -133; + private static int _int14 = -133; - private static int _int15 = -134; + private static int _int15 = -134; - private static int _int16 = -135; + private static int _int16 = -135; - private static int _int17 = -136; + private static int _int17 = -136; - private static int _int18 = -137; + private static int _int18 = -137; - private static int _int19 = -138; + private static int _int19 = -138; - private bool _bool0; + private bool _bool0; - private long _long0; + private long _long0; - private readonly Class52 _class520 = new Class52(); + private readonly Class52 _class520 = new Class52(); - private int _int20; + private int _int20; - private long[] _long1; + private long[] _long1; - private long[] _long2; + private long[] _long2; - private int[] _int21; + private int[] _int21; - private long[] _long3; + private long[] _long3; - private OggClass5[] _oggClass5; + private OggClass5[] _oggClass5; - private Class47[] _class470; + private Class47[] _class470; - private long _long4; + private long _long4; - private long _long5; + private long _long5; - private bool _bool1; + private bool _bool1; - private int _int22; + private int _int22; - private int _int23; + private int _int23; - private double _double0; + private double _double0; - private float _float0; + private float _float0; - private float _float1; + private float _float1; - private readonly Class56 _class560; + private readonly Class56 _class560; - private readonly OggClass1 _oggClass1; + private readonly OggClass1 _oggClass1; - private readonly OggClass6 _oggClass6; + private readonly OggClass6 _oggClass6; - public override bool CanRead => FileStream.CanRead; + public override bool CanRead => FileStream.CanRead; - public override bool CanSeek => FileStream.CanSeek; + public override bool CanSeek => FileStream.CanSeek; - public override bool CanWrite => FileStream.CanWrite; + public override bool CanWrite => FileStream.CanWrite; - public override long Length => _long5; + public override long Length => _long5; - public override long Position - { - get - { - return method_19() * WaveFormat0.short_1; - } - set - { - try - { - if (method_18(value / WaveFormat0.short_1) < 0) - { - method_17(Convert.ToInt32(value / _double0)); - } - } - catch - { - } - } - } - - private OggStream() - { - _class560 = new Class56(); - _oggClass1 = new OggClass1(); - _oggClass6 = new OggClass6(_oggClass1); - } - - public OggStream(string fileName) : this() - { - FileStream fileData = null; - try - { + public override long Position + { + get { return method_19() * WaveFormat0.short_1; } + set + { + try + { + if (method_18(value / WaveFormat0.short_1) < 0) + { + method_17(Convert.ToInt32(value / _double0)); + } + } + catch + { + } + } + } + + private OggStream() + { + _class560 = new Class56(); + _oggClass1 = new OggClass1(); + _oggClass6 = new OggClass6(_oggClass1); + } + + public OggStream(string fileName) : this() + { + FileStream fileData = null; + try + { fileData = new FileStream(fileName, FileMode.Open, FileAccess.Read); } - catch (Exception ex) - { - throw new Exception0("OggStream: " + ex.Message); - } + catch (Exception ex) + { + throw new Exception0("OggStream: " + ex.Message); + } var num = method_9(fileData, null, 0); if (num == -1) - { - throw new Exception0("OggStream: open return -1"); - } - } - - public OggStream(Stream stream1) : this(stream1, null, 0) - { - } - - public OggStream(Stream stream1, byte[] byte0, int int24) : this() - { - var num = method_9(stream1, byte0, int24); - if (num == -1) - { - throw new Exception0("OggStream: open return -1"); - } - } - - private int method_0(Class48 class480, long long6) - { - if (long6 > 0L) - { - long6 += _long0; - } - while (long6 <= 0L || _long0 < long6) - { - var num = _class520.method_3(class480); - if (num < 0) - { - _long0 -= num; - } - else - { - if (num != 0) - { - var result = (int)_long0; - _long0 += num; - return result; - } - if (long6 == 0L) - { - return Int6; - } - var num2 = method_7(); - if (num2 == 0) - { - return Int7; - } - if (num2 < 0) - { - return Int9; - } - } - } - return Int6; - } - - private int method_1(Class48 class480) - { - var num = _long0; - var num2 = -1; - int num3; - while (num2 == -1) - { - num -= Int2; - if (num < 0L) - { - num = 0L; - } - method_8(num); - while (_long0 < num + Int2) - { - num3 = method_0(class480, num + Int2 - _long0); - if (num3 == Int9) - { - return Int9; - } - if (num3 < 0) - { - break; - } - num2 = num3; - } - } - method_8(num2); - num3 = method_0(class480, Int2); - if (num3 < 0) - { - return Int10; - } - return num2; - } - - private int method_2(OggClass5 oggClass5, Class47 class471, int[] int24, Class48 class480) - { - var @class = new Class48(); - var class67 = new Class67(); - if (class480 == null) - { - var num = method_0(@class, Int2); - if (num == Int9) - { - return Int9; - } - if (num < 0) - { - return Int13; - } - class480 = @class; - } - if (int24 != null) - { - int24[0] = class480.method_5(); - } - _class560.method_1(class480.method_5()); - oggClass5.method_0(); - class471.method_0(); - var i = 0; - while (i < 3) - { - _class560.method_6(class480); - while (i < 3) - { - var num2 = _class560.method_5(class67); - if (num2 == 0) - { - break; - } - if (num2 == -1) - { - Console.Error.WriteLine("Corrupt header in logical bitstream."); - oggClass5.method_1(); - class471.method_2(); - _class560.method_2(); - return -1; - } - if (oggClass5.method_4(class471, class67) != 0) - { - Console.Error.WriteLine("Illegal header in logical bitstream."); - oggClass5.method_1(); - class471.method_2(); - _class560.method_2(); - return -1; - } - i++; - } - if (i < 3 && method_0(class480, 1L) < 0) - { - Console.Error.WriteLine("Missing header in logical bitstream."); - oggClass5.method_1(); - class471.method_2(); - _class560.method_2(); - return -1; - } - } - return 0; - } - - private void method_3(OggClass5 class491, Class47 class471, int int24) - { - var @class = new Class48(); + { + throw new Exception0("OggStream: open return -1"); + } + } + + public OggStream(Stream stream1) : this(stream1, null, 0) + { + } + + public OggStream(Stream stream1, byte[] byte0, int int24) : this() + { + var num = method_9(stream1, byte0, int24); + if (num == -1) + { + throw new Exception0("OggStream: open return -1"); + } + } + + private int method_0(Class48 class480, long long6) + { + if (long6 > 0L) + { + long6 += _long0; + } + while (long6 <= 0L || _long0 < long6) + { + var num = _class520.method_3(class480); + if (num < 0) + { + _long0 -= num; + } + else + { + if (num != 0) + { + var result = (int) _long0; + _long0 += num; + return result; + } + if (long6 == 0L) + { + return Int6; + } + var num2 = method_7(); + if (num2 == 0) + { + return Int7; + } + if (num2 < 0) + { + return Int9; + } + } + } + return Int6; + } + + private int method_1(Class48 class480) + { + var num = _long0; + var num2 = -1; + int num3; + while (num2 == -1) + { + num -= Int2; + if (num < 0L) + { + num = 0L; + } + method_8(num); + while (_long0 < num + Int2) + { + num3 = method_0(class480, num + Int2 - _long0); + if (num3 == Int9) + { + return Int9; + } + if (num3 < 0) + { + break; + } + num2 = num3; + } + } + method_8(num2); + num3 = method_0(class480, Int2); + if (num3 < 0) + { + return Int10; + } + return num2; + } + + private int method_2(OggClass5 oggClass5, Class47 class471, int[] int24, Class48 class480) + { + var @class = new Class48(); + var class67 = new Class67(); + if (class480 == null) + { + var num = method_0(@class, Int2); + if (num == Int9) + { + return Int9; + } + if (num < 0) + { + return Int13; + } + class480 = @class; + } + if (int24 != null) + { + int24[0] = class480.method_5(); + } + _class560.method_1(class480.method_5()); + oggClass5.method_0(); + class471.method_0(); + var i = 0; + while (i < 3) + { + _class560.method_6(class480); + while (i < 3) + { + var num2 = _class560.method_5(class67); + if (num2 == 0) + { + break; + } + if (num2 == -1) + { + Console.Error.WriteLine("Corrupt header in logical bitstream."); + oggClass5.method_1(); + class471.method_2(); + _class560.method_2(); + return -1; + } + if (oggClass5.method_4(class471, class67) != 0) + { + Console.Error.WriteLine("Illegal header in logical bitstream."); + oggClass5.method_1(); + class471.method_2(); + _class560.method_2(); + return -1; + } + i++; + } + if (i < 3 && method_0(class480, 1L) < 0) + { + Console.Error.WriteLine("Missing header in logical bitstream."); + oggClass5.method_1(); + class471.method_2(); + _class560.method_2(); + return -1; + } + } + return 0; + } + + private void method_3(OggClass5 class491, Class47 class471, int int24) + { + var @class = new Class48(); _oggClass5 = new OggClass5[_int20]; - _class470 = new Class47[_int20]; - _long2 = new long[_int20]; - _long3 = new long[_int20]; - _int21 = new int[_int20]; - var i = 0; - while (i < _int20) - { + _class470 = new Class47[_int20]; + _long2 = new long[_int20]; + _long3 = new long[_int20]; + _int21 = new int[_int20]; + var i = 0; + while (i < _int20) + { if (class491 != null && class471 != null && i == 0) - { - _oggClass5[i] = class491; - _class470[i] = class471; - _long2[i] = int24; - } - else - { - method_8(_long1[i]); - if (method_2(_oggClass5[i], _class470[i], null, null) == -1) - { - Console.Error.WriteLine("Error opening logical bitstream #" + (i + 1) + "\n"); - _long2[i] = -1L; - } - else - { - _long2[i] = _long0; - _class560.method_2(); - } - } + { + _oggClass5[i] = class491; + _class470[i] = class471; + _long2[i] = int24; + } + else + { + method_8(_long1[i]); + if (method_2(_oggClass5[i], _class470[i], null, null) == -1) + { + Console.Error.WriteLine("Error opening logical bitstream #" + (i + 1) + "\n"); + _long2[i] = -1L; + } + else + { + _long2[i] = _long0; + _class560.method_2(); + } + } var long_ = _long1[i + 1]; - method_8(long_); - long num2; + method_8(long_); + long num2; while (true) - { + { var num = method_1(@class); if (num == -1) - { - goto Block_6; - } + { + goto Block_6; + } num2 = @class.method_4(); if (num2 != -1L) - { - goto Block_5; - } + { + goto Block_5; + } } - IL_189: - i++; + IL_189: + i++; continue; - Block_5: + Block_5: _int21[i] = @class.method_5(); _long3[i] = num2; - goto IL_189; - Block_6: - Console.Error.WriteLine("Could not find last page of logical bitstream #" + i + "\n"); + goto IL_189; + Block_6: + Console.Error.WriteLine("Could not find last page of logical bitstream #" + i + "\n"); _oggClass5[i].method_1(); - _class470[i].method_2(); - goto IL_189; - } - } - - private int method_4() - { - if (_bool1) - { - return 1; - } + _class470[i].method_2(); + goto IL_189; + } + } + + private int method_4() + { + if (_bool1) + { + return 1; + } _oggClass1.method_1(_oggClass5[0]); _oggClass6.method_0(_oggClass1); _bool1 = true; - return 0; - } - - private void method_5() - { - _class560.method_2(); - _oggClass1.method_7(); - _oggClass6.method_1(); - _bool1 = false; - _float0 = 0f; - _float1 = 0f; - } - - private int method_6(int int24) - { + return 0; + } + + private void method_5() + { + _class560.method_2(); + _oggClass1.method_7(); + _oggClass6.method_1(); + _bool1 = false; + _float0 = 0f; + _float1 = 0f; + } + + private int method_6(int int24) + { var @class = new Class48(); - Class67 class2; - long num2; - while (true) - { + Class67 class2; + long num2; + while (true) + { if (_bool1) - { + { class2 = new Class67(); - var num = _class560.method_5(class2); - if (num > 0) - { - num2 = class2.Long0; - if (_oggClass6.method_2(class2) == 0) - { - goto Block_11; - } - } - } + var num = _class560.method_5(class2); + if (num > 0) + { + num2 = class2.Long0; + if (_oggClass6.method_2(class2) == 0) + { + goto Block_11; + } + } + } if (int24 == 0) - { - return 0; - } - if (method_0(@class, -1L) < 0) - { - return 0; - } + { + return 0; + } + if (method_0(@class, -1L) < 0) + { + return 0; + } _float0 += @class.Int1 << 3; - if (_bool1 && _int22 != @class.method_5()) - { + if (_bool1 && _int22 != @class.method_5()) + { method_5(); - } + } if (!_bool1) - { + { if (_bool0) - { + { _int22 = @class.method_5(); - var num3 = 0; - while (num3 < _int20 && _int21[num3] != _int22) - { - num3++; - } - if (num3 == _int20) - { - break; - } - _int23 = num3; - _class560.method_1(_int22); - _class560.method_7(); + var num3 = 0; + while (num3 < _int20 && _int21[num3] != _int22) + { + num3++; + } + if (num3 == _int20) + { + break; + } + _int23 = num3; + _class560.method_1(_int22); + _class560.method_7(); } - else - { + else + { var array = new int[1]; - var num4 = method_2(_oggClass5[0], _class470[0], array, @class); - _int22 = array[0]; - if (num4 != 0) - { - return num4; - } - _int23++; + var num4 = method_2(_oggClass5[0], _class470[0], array, @class); + _int22 = array[0]; + if (num4 != 0) + { + return num4; + } + _int23++; } method_4(); } _class560.method_6(@class); } - return -1; - Block_11: + return -1; + Block_11: var num5 = _oggClass1.method_3(); - _oggClass1.method_2(_oggClass6); - _float1 += _oggClass1.method_3() - num5; - _float0 += class2.Int1 * 8; + _oggClass1.method_2(_oggClass6); + _float1 += _oggClass1.method_3() - num5; + _float0 += class2.Int1 * 8; if (num2 != -1L && class2.Int3 == 0) - { - var num6 = _bool0 ? _int23 : 0; - var num7 = _oggClass1.method_3(); - num2 -= num7; - for (var i = 0; i < num6; i++) - { - num2 += _long3[i]; - } - _long4 = num2; - } - return 1; - } - - private static int smethod_0(Stream stream1, long long6, int int24) - { - if (stream1.CanSeek) - { - try - { - if (int24 == _int3) - { - stream1.Seek(long6, SeekOrigin.Begin); - } - else if (int24 == Int5) - { - stream1.Seek(stream1.Length - long6, SeekOrigin.Begin); - } - else - { - Console.Error.WriteLine("seek: " + int24 + " is not supported"); - } - } - catch (Exception ex) - { - Console.Error.WriteLine(ex.Message); - } - return 0; - } - int result; - try - { - if (int24 == 0) - { - stream1.Seek(0L, SeekOrigin.Begin); - } - stream1.Seek(long6, SeekOrigin.Begin); - return 0; - } - catch (Exception ex2) - { - Console.Error.WriteLine(ex2.Message); - result = -1; - } - return result; - } - - private static long smethod_1(Stream stream1) - { - try - { - if (stream1.CanSeek) - { - return stream1.Position; - } - } - catch (Exception ex) - { - Console.Error.WriteLine(ex.Message); - } - return 0L; - } - - private int method_7() - { - var offset = _class520.method_1(Int2); - var byte_ = _class520.Byte0; - var num = 0; - int result; - try - { - num = FileStream.Read(byte_, offset, Int2); - goto IL_51; - } - catch (Exception ex) - { - Console.Error.WriteLine(ex.Message); - result = Int9; - } - return result; - IL_51: - _class520.method_2(num); - if (num == -1) - { - num = 0; - } - return num; - } - - private void method_8(long long6) - { - smethod_0(FileStream, long6, _int3); - _long0 = long6; - _class520.method_4(); - } - - private int method_9(Stream fileStream, byte[] nullArray, int zero) - { - return method_10(fileStream, nullArray, zero); - } - - private int method_10(Stream fileStream, byte[] nullArray, int zero) - { + { + var num6 = _bool0 ? _int23 : 0; + var num7 = _oggClass1.method_3(); + num2 -= num7; + for (var i = 0; i < num6; i++) + { + num2 += _long3[i]; + } + _long4 = num2; + } + return 1; + } + + private static int smethod_0(Stream stream1, long long6, int int24) + { + if (stream1.CanSeek) + { + try + { + if (int24 == _int3) + { + stream1.Seek(long6, SeekOrigin.Begin); + } + else if (int24 == Int5) + { + stream1.Seek(stream1.Length - long6, SeekOrigin.Begin); + } + else + { + Console.Error.WriteLine("seek: " + int24 + " is not supported"); + } + } + catch (Exception ex) + { + Console.Error.WriteLine(ex.Message); + } + return 0; + } + int result; + try + { + if (int24 == 0) + { + stream1.Seek(0L, SeekOrigin.Begin); + } + stream1.Seek(long6, SeekOrigin.Begin); + return 0; + } + catch (Exception ex2) + { + Console.Error.WriteLine(ex2.Message); + result = -1; + } + return result; + } + + private static long smethod_1(Stream stream1) + { + try + { + if (stream1.CanSeek) + { + return stream1.Position; + } + } + catch (Exception ex) + { + Console.Error.WriteLine(ex.Message); + } + return 0L; + } + + private int method_7() + { + var offset = _class520.method_1(Int2); + var byte_ = _class520.Byte0; + var num = 0; + int result; + try + { + num = FileStream.Read(byte_, offset, Int2); + goto IL_51; + } + catch (Exception ex) + { + Console.Error.WriteLine(ex.Message); + result = Int9; + } + return result; + IL_51: + _class520.method_2(num); + if (num == -1) + { + num = 0; + } + return num; + } + + private void method_8(long long6) + { + smethod_0(FileStream, long6, _int3); + _long0 = long6; + _class520.method_4(); + } + + private int method_9(Stream fileStream, byte[] nullArray, int zero) + { + return method_10(fileStream, nullArray, zero); + } + + private int method_10(Stream fileStream, byte[] nullArray, int zero) + { FileStream = fileStream; _class520.method_5(); if (nullArray != null) - { + { var dstOffset = _class520.method_1(zero); Buffer.BlockCopy(nullArray, 0, _class520.Byte0, dstOffset, zero); - _class520.method_2(zero); - } + _class520.method_2(zero); + } int num; if (fileStream.CanSeek) { @@ -584,554 +581,552 @@ private int method_10(Stream fileStream, byte[] nullArray, int zero) //int num = stream_1.CanSeek ? this.method_11() : this.method_12(); var @class = method_21(-1); WaveFormat0 = new WaveFormat(@class.Int9, @class.Int8); - _double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (method_20(-1) / 8.0); + _double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (method_20(-1) / 8.0); _long5 = method_15(-1) * WaveFormat0.short_1; if (_long5 <= 0L) - { - _long5 = Convert.ToInt64(method_14(-1) * _double0); - } + { + _long5 = Convert.ToInt64(method_14(-1) * _double0); + } if (num != 0) - { - FileStream = null; - method_22(); - } + { + FileStream = null; + method_22(); + } return num; - } - - private int method_11() - { - var oggClass5 = new OggClass5(); - var class47 = new Class47(); - var @class = new Class48(); - var array = new int[1]; + } + + private int method_11() + { + var oggClass5 = new OggClass5(); + var class47 = new Class47(); + var @class = new Class48(); + var array = new int[1]; var num = method_2(oggClass5, class47, array, null); var num2 = array[0]; - var int_ = (int)_long0; - _class560.method_2(); + var int_ = (int) _long0; + _class560.method_2(); if (num == -1) - { - return -1; - } - _bool0 = true; + { + return -1; + } + _bool0 = true; smethod_0(FileStream, 0L, Int5); _long0 = smethod_1(FileStream); - var num3 = _long0; + var num3 = _long0; num3 = method_1(@class); if (@class.method_5() != num2) - { - if (method_13(0L, 0L, num3 + 1L, num2, 0) < 0) - { - method_22(); - return Int9; - } - } - else if (method_13(0L, num3, num3 + 1L, num2, 0) < 0) - { - method_22(); - return Int9; - } + { + if (method_13(0L, 0L, num3 + 1L, num2, 0) < 0) + { + method_22(); + return Int9; + } + } + else if (method_13(0L, num3, num3 + 1L, num2, 0) < 0) + { + method_22(); + return Int9; + } method_3(oggClass5, class47, int_); return method_17(0); - } - - private int method_12() - { - _int20 = 1; - _oggClass5 = new OggClass5[_int20]; - _oggClass5[0] = new OggClass5(); - _class470 = new Class47[_int20]; - _class470[0] = new Class47(); - var array = new int[1]; - if (method_2(_oggClass5[0], _class470[0], array, null) == -1) - { - return -1; - } - _int22 = array[0]; - method_4(); - return 0; - } - - private int method_13(long long6, long long7, long long8, int int24, int int25) - { - var num = long8; - var long9 = long8; - var @class = new Class48(); - int num3; - while (long7 < num) - { - long num2; - if (num - long7 < Int2) - { - num2 = long7; - } - else - { - num2 = (long7 + num) / 2L; - } - method_8(num2); - num3 = method_0(@class, -1L); - if (num3 == Int9) - { - return Int9; - } - if (num3 >= 0) - { - if (@class.method_5() == int24) - { - long7 = num3 + @class.Int1 + @class.Int3; - continue; - } - } - num = num2; - if (num3 >= 0) - { - long9 = num3; - } - } - method_8(long9); - num3 = method_0(@class, -1L); - if (num3 == Int9) - { - return Int9; - } - if (long7 < long8) - { - if (num3 != -1) - { - num3 = method_13(long9, _long0, long8, @class.method_5(), int25 + 1); - if (num3 == Int9) - { - return Int9; - } - goto IL_FF; - } - } - _int20 = int25 + 1; - _long1 = new long[int25 + 2]; - _long1[int25 + 1] = long7; - IL_FF: - _long1[int25] = long6; - return 0; - } - - public long method_14(int int24) - { - if (!_bool0 || int24 >= _int20) - { - return -1L; - } - if (int24 < 0) - { - var num = 0L; - for (var i = 0; i < _int20; i++) - { - num += method_14(i); - } - return num; - } - return _long1[int24 + 1] - _long1[int24]; - } - - public long method_15(int int24) - { - if (!_bool0 || int24 >= _int20) - { - return -1L; - } - if (int24 < 0) - { - var num = 0L; - for (var i = 0; i < _int20; i++) - { - num += method_15(i); - } - return num; - } - return _long3[int24]; - } - - public float method_16(int int24) - { - if (!_bool0 || int24 >= _int20) - { - return -1f; - } - if (int24 < 0) - { - var num = 0f; - for (var i = 0; i < _int20; i++) - { - num += method_16(i); - } - return num; - } - return _long3[int24] / (float)_oggClass5[int24].Int9; - } - - public int method_17(int int24) - { + } + + private int method_12() + { + _int20 = 1; + _oggClass5 = new OggClass5[_int20]; + _oggClass5[0] = new OggClass5(); + _class470 = new Class47[_int20]; + _class470[0] = new Class47(); + var array = new int[1]; + if (method_2(_oggClass5[0], _class470[0], array, null) == -1) + { + return -1; + } + _int22 = array[0]; + method_4(); + return 0; + } + + private int method_13(long long6, long long7, long long8, int int24, int int25) + { + var num = long8; + var long9 = long8; + var @class = new Class48(); + int num3; + while (long7 < num) + { + long num2; + if (num - long7 < Int2) + { + num2 = long7; + } + else + { + num2 = (long7 + num) / 2L; + } + method_8(num2); + num3 = method_0(@class, -1L); + if (num3 == Int9) + { + return Int9; + } + if (num3 >= 0) + { + if (@class.method_5() == int24) + { + long7 = num3 + @class.Int1 + @class.Int3; + continue; + } + } + num = num2; + if (num3 >= 0) + { + long9 = num3; + } + } + method_8(long9); + num3 = method_0(@class, -1L); + if (num3 == Int9) + { + return Int9; + } + if (long7 < long8) + { + if (num3 != -1) + { + num3 = method_13(long9, _long0, long8, @class.method_5(), int25 + 1); + if (num3 == Int9) + { + return Int9; + } + goto IL_FF; + } + } + _int20 = int25 + 1; + _long1 = new long[int25 + 2]; + _long1[int25 + 1] = long7; + IL_FF: + _long1[int25] = long6; + return 0; + } + + public long method_14(int int24) + { + if (!_bool0 || int24 >= _int20) + { + return -1L; + } + if (int24 < 0) + { + var num = 0L; + for (var i = 0; i < _int20; i++) + { + num += method_14(i); + } + return num; + } + return _long1[int24 + 1] - _long1[int24]; + } + + public long method_15(int int24) + { + if (!_bool0 || int24 >= _int20) + { + return -1L; + } + if (int24 < 0) + { + var num = 0L; + for (var i = 0; i < _int20; i++) + { + num += method_15(i); + } + return num; + } + return _long3[int24]; + } + + public float method_16(int int24) + { + if (!_bool0 || int24 >= _int20) + { + return -1f; + } + if (int24 < 0) + { + var num = 0f; + for (var i = 0; i < _int20; i++) + { + num += method_16(i); + } + return num; + } + return _long3[int24] / (float) _oggClass5[int24].Int9; + } + + public int method_17(int int24) + { if (!_bool0) - { - return -1; - } - if (int24 < 0 || int24 > _long1[_int20]) - { - _long4 = -1L; - method_5(); - return -1; - } - _long4 = -1L; - method_5(); - method_8(int24); + { + return -1; + } + if (int24 < 0 || int24 > _long1[_int20]) + { + _long4 = -1L; + method_5(); + return -1; + } + _long4 = -1L; + method_5(); + method_8(int24); switch (method_6(1)) - { - case -1: - _long4 = -1L; - method_5(); - return -1; - case 0: - _long4 = method_15(-1); - return 0; - default: - while (true) - { - switch (method_6(0)) - { - case -1: - goto IL_77; - case 0: - return 0; - } - } - - IL_77: - _long4 = -1L; - method_5(); - return -1; - } - } - - public int method_18(long long6) - { - var num = method_15(-1); - if (!_bool0) - { - return -1; - } - if (long6 < 0L || long6 > num) - { - _long4 = -1L; - method_5(); - return -1; - } - int i; - for (i = _int20 - 1; i >= 0; i--) - { - num -= _long3[i]; - if (long6 >= num) - { - break; - } - } - var num2 = long6 - num; - var num3 = _long1[i + 1]; - var num4 = _long1[i]; - var int_ = (int)num4; - var @class = new Class48(); - while (num4 < num3) - { - long num5; - if (num3 - num4 < Int2) - { - num5 = num4; - } - else - { - num5 = (num3 + num4) / 2L; - } - method_8(num5); - var num6 = method_0(@class, num3 - num5); - if (num6 == -1) - { - num3 = num5; - } - else - { - var num7 = @class.method_4(); - if (num7 < num2) - { - int_ = num6; - num4 = _long0; - } - else - { - num3 = num5; - } - } - } - if (method_17(int_) != 0) - { - _long4 = -1L; - method_5(); - return -1; - } - if (_long4 >= long6) - { - _long4 = -1L; - method_5(); - return -1; - } - if (long6 > method_15(-1)) - { - _long4 = -1L; - method_5(); - return -1; - } - while (_long4 < long6) - { - var num8 = (int)(long6 - _long4); - var num9 = _oggClass1.method_3(); - if (num9 > num8) - { - num9 = num8; - } - _oggClass1.method_6(num9); - _long4 += num9; - if (num9 < num8 && method_6(1) == 0) - { - _long4 = method_15(-1); - } - } - return 0; - } - - public long method_19() - { - if (_long4 >= 0L) - { - return _long4; - } - return 0L; - } - - public int method_20(int int24) - { - if (int24 >= _int20) - { - return -1; - } - if (!_bool0 && int24 != 0) - { - return method_20(0); - } - if (int24 < 0) - { - var num = 0L; - for (var i = 0; i < _int20; i++) - { - num += (_long1[i + 1] - _long2[i]) * 8L; - } - return (int)Math.Round(num / method_16(-1)); - } - if (_bool0) - { - return (int)Math.Round((_long1[int24 + 1] - _long2[int24]) * 8L / method_16(int24)); - } - if (_oggClass5[int24].Int11 > 0) - { - return _oggClass5[int24].Int11; - } - if (_oggClass5[int24].Int10 <= 0) - { - return -1; - } - if (_oggClass5[int24].Int12 > 0) - { - return (_oggClass5[int24].Int10 + _oggClass5[int24].Int12) / 2; - } - return _oggClass5[int24].Int10; - } - - public OggClass5 method_21(int int24) - { - if (_bool0) - { - if (int24 < 0) - { - if (!_bool1) - { - return null; - } - return _oggClass5[_int23]; - } - if (int24 >= _int20) - { - return null; - } - return _oggClass5[int24]; - } - if (!_bool1) - { - return null; - } - return _oggClass5[0]; - } - - private int method_22() - { - _oggClass6.method_1(); - _oggClass1.method_7(); - _class560.method_2(); - if (_oggClass5 != null && _int20 != 0) - { - for (var i = 0; i < _int20; i++) - { - _oggClass5[i].method_1(); - _class470[i].method_2(); - } - _oggClass5 = null; - _class470 = null; - } - if (_long2 != null) - { - _long2 = null; - } - if (_long3 != null) - { - _long3 = null; - } - if (_int21 != null) - { - _int21 = null; - } - if (_long1 != null) - { - _long1 = null; - } - _class520.method_0(); - return 0; - } - - public override void Flush() - { - FileStream.Flush(); - } - - public override void SetLength(long value) - { - throw new NotSupportedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException(); - } - - public override void Close() - { - method_22(); - FileStream.Close(); - } + { + case -1: + _long4 = -1L; + method_5(); + return -1; + case 0: + _long4 = method_15(-1); + return 0; + default: + while (true) + { + switch (method_6(0)) + { + case -1: + goto IL_77; + case 0: + return 0; + } + } + + IL_77: + _long4 = -1L; + method_5(); + return -1; + } + } + + public int method_18(long long6) + { + var num = method_15(-1); + if (!_bool0) + { + return -1; + } + if (long6 < 0L || long6 > num) + { + _long4 = -1L; + method_5(); + return -1; + } + int i; + for (i = _int20 - 1; i >= 0; i--) + { + num -= _long3[i]; + if (long6 >= num) + { + break; + } + } + var num2 = long6 - num; + var num3 = _long1[i + 1]; + var num4 = _long1[i]; + var int_ = (int) num4; + var @class = new Class48(); + while (num4 < num3) + { + long num5; + if (num3 - num4 < Int2) + { + num5 = num4; + } + else + { + num5 = (num3 + num4) / 2L; + } + method_8(num5); + var num6 = method_0(@class, num3 - num5); + if (num6 == -1) + { + num3 = num5; + } + else + { + var num7 = @class.method_4(); + if (num7 < num2) + { + int_ = num6; + num4 = _long0; + } + else + { + num3 = num5; + } + } + } + if (method_17(int_) != 0) + { + _long4 = -1L; + method_5(); + return -1; + } + if (_long4 >= long6) + { + _long4 = -1L; + method_5(); + return -1; + } + if (long6 > method_15(-1)) + { + _long4 = -1L; + method_5(); + return -1; + } + while (_long4 < long6) + { + var num8 = (int) (long6 - _long4); + var num9 = _oggClass1.method_3(); + if (num9 > num8) + { + num9 = num8; + } + _oggClass1.method_6(num9); + _long4 += num9; + if (num9 < num8 && method_6(1) == 0) + { + _long4 = method_15(-1); + } + } + return 0; + } + + public long method_19() + { + if (_long4 >= 0L) + { + return _long4; + } + return 0L; + } + + public int method_20(int int24) + { + if (int24 >= _int20) + { + return -1; + } + if (!_bool0 && int24 != 0) + { + return method_20(0); + } + if (int24 < 0) + { + var num = 0L; + for (var i = 0; i < _int20; i++) + { + num += (_long1[i + 1] - _long2[i]) * 8L; + } + return (int) Math.Round(num / method_16(-1)); + } + if (_bool0) + { + return (int) Math.Round((_long1[int24 + 1] - _long2[int24]) * 8L / method_16(int24)); + } + if (_oggClass5[int24].Int11 > 0) + { + return _oggClass5[int24].Int11; + } + if (_oggClass5[int24].Int10 <= 0) + { + return -1; + } + if (_oggClass5[int24].Int12 > 0) + { + return (_oggClass5[int24].Int10 + _oggClass5[int24].Int12) / 2; + } + return _oggClass5[int24].Int10; + } + + public OggClass5 method_21(int int24) + { + if (_bool0) + { + if (int24 < 0) + { + if (!_bool1) + { + return null; + } + return _oggClass5[_int23]; + } + if (int24 >= _int20) + { + return null; + } + return _oggClass5[int24]; + } + if (!_bool1) + { + return null; + } + return _oggClass5[0]; + } + + private int method_22() + { + _oggClass6.method_1(); + _oggClass1.method_7(); + _class560.method_2(); + if (_oggClass5 != null && _int20 != 0) + { + for (var i = 0; i < _int20; i++) + { + _oggClass5[i].method_1(); + _class470[i].method_2(); + } + _oggClass5 = null; + _class470 = null; + } + if (_long2 != null) + { + _long2 = null; + } + if (_long3 != null) + { + _long3 = null; + } + if (_int21 != null) + { + _int21 = null; + } + if (_long1 != null) + { + _long1 = null; + } + _class520.method_0(); + return 0; + } + + public override void Flush() + { + FileStream.Flush(); + } + + public override void SetLength(long value) + { + throw new NotSupportedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException(); + } + + public override void Close() + { + method_22(); + FileStream.Close(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Close(); - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - public override int vmethod_3(IntPtr intptr0, int int24) - { - int24 >>= 2; - var source = new float[int24]; - var num = vmethod_4(source, 0, int24); - if (num == 0) - { - return 0; - } - Marshal.Copy(source, 0, intptr0, num); - return num << 2; - } - - public override int Read(byte[] buffer, int offset, int count) - { - var array = new float[count >> 2]; - var num = vmethod_4(array, 0, array.Length) << 2; - Buffer.BlockCopy(array, 0, buffer, offset, num); - return num; - } - - public override int vmethod_4(float[] float2, int int24, int int25) - { - var num = int24; - var num2 = int24 + int25; - int short_ = WaveFormat0.short_0; - do - { - if (_bool1) - { - var num3 = _oggClass1.method_4(float2, num, num2); - if (num3 != 0) - { - _oggClass1.method_6(num3); - _long4 += num3; - num += num3 * short_; - if (num >= num2) - { - break; - } - } - } - } - while (method_6(1) >= 1); - return num - int24; - } - - public override float[][] vmethod_5(int int24) - { - var array = new float[WaveFormat0.short_0][]; - for (var i = 0; i < array.Length; i++) - { - array[i] = new float[int24]; - } - var num = 0; - do - { - if (_bool1) - { - var num2 = _oggClass1.method_5(array, num, int24); - if (num2 != 0) - { - num += num2; - _long4 += num2; - _oggClass1.method_6(num2); - if (num >= int24) - { - break; - } - } - } - } - while (method_6(1) >= 1); - if (num == 0) - { - return null; - } - if (num < int24) - { - for (var j = 0; j < array.Length; j++) - { - Array.Resize(ref array[j], num); - } - } - return array; - } - } -} + { + if (disposing) + { + Close(); + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + public override int vmethod_3(IntPtr intptr0, int int24) + { + int24 >>= 2; + var source = new float[int24]; + var num = vmethod_4(source, 0, int24); + if (num == 0) + { + return 0; + } + Marshal.Copy(source, 0, intptr0, num); + return num << 2; + } + + public override int Read(byte[] buffer, int offset, int count) + { + var array = new float[count >> 2]; + var num = vmethod_4(array, 0, array.Length) << 2; + Buffer.BlockCopy(array, 0, buffer, offset, num); + return num; + } + + public override int vmethod_4(float[] float2, int int24, int int25) + { + var num = int24; + var num2 = int24 + int25; + int short_ = WaveFormat0.short_0; + do + { + if (_bool1) + { + var num3 = _oggClass1.method_4(float2, num, num2); + if (num3 != 0) + { + _oggClass1.method_6(num3); + _long4 += num3; + num += num3 * short_; + if (num >= num2) + { + break; + } + } + } + } while (method_6(1) >= 1); + return num - int24; + } + + public override float[][] vmethod_5(int int24) + { + var array = new float[WaveFormat0.short_0][]; + for (var i = 0; i < array.Length; i++) + { + array[i] = new float[int24]; + } + var num = 0; + do + { + if (_bool1) + { + var num2 = _oggClass1.method_5(array, num, int24); + if (num2 != 0) + { + num += num2; + _long4 += num2; + _oggClass1.method_6(num2); + if (num >= int24) + { + break; + } + } + } + } while (method_6(1) >= 1); + if (num == 0) + { + return null; + } + if (num < int24) + { + for (var j = 0; j < array.Length; j++) + { + Array.Resize(ref array[j], num); + } + } + return array; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class101.cs b/GHNamespaceI/Class101.cs index 1966863..badffcf 100644 --- a/GHNamespaceI/Class101.cs +++ b/GHNamespaceI/Class101.cs @@ -1,37 +1,36 @@ namespace GHNamespaceI { - public class Class101 - { - private short _short0; + public class Class101 + { + private short _short0; - public Class101() - { - _short0 = -1; - } + public Class101() + { + _short0 = -1; + } - public void method_0(int int0, int int1) - { - var num = 1 << int1 - 1; - do - { - if ((_short0 & 32768) == 0 ^ (int0 & num) == 0) - { - _short0 = (short)(_short0 << 1); - _short0 ^= -32763; - } - else - { - _short0 = (short)(_short0 << 1); - } - } - while ((num >>= 1) != 0); - } + public void method_0(int int0, int int1) + { + var num = 1 << int1 - 1; + do + { + if ((_short0 & 32768) == 0 ^ (int0 & num) == 0) + { + _short0 = (short) (_short0 << 1); + _short0 ^= -32763; + } + else + { + _short0 = (short) (_short0 << 1); + } + } while ((num >>= 1) != 0); + } - public short method_1() - { - var result = _short0; - _short0 = -1; - return result; - } - } -} + public short method_1() + { + var result = _short0; + _short0 = -1; + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class102.cs b/GHNamespaceI/Class102.cs index 70e1492..ec5f07d 100644 --- a/GHNamespaceI/Class102.cs +++ b/GHNamespaceI/Class102.cs @@ -1,101 +1,101 @@ namespace GHNamespaceI { - public class Class102 - { - private static readonly int Int0 = 32767; + public class Class102 + { + private static readonly int Int0 = 32767; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private int _int3; + private int _int3; - private readonly int[] _int4 = new int[32768]; + private readonly int[] _int4 = new int[32768]; - public Class102() - { - _int1 = 0; - _int2 = 0; - _int3 = 0; - } + public Class102() + { + _int1 = 0; + _int2 = 0; + _int3 = 0; + } - public int method_0() - { - return _int2; - } + public int method_0() + { + return _int2; + } - public int method_1(int int5) - { - _int2 += int5; - var num = 0; - var num2 = _int3; - if (num2 + int5 < 32768) - { - while (int5-- > 0) - { - num <<= 1; - num |= ((_int4[num2++] != 0) ? 1 : 0); - } - } - else - { - while (int5-- > 0) - { - num <<= 1; - num |= ((_int4[num2] != 0) ? 1 : 0); - num2 = (num2 + 1 & Int0); - } - } - _int3 = num2; - return num; - } + public int method_1(int int5) + { + _int2 += int5; + var num = 0; + var num2 = _int3; + if (num2 + int5 < 32768) + { + while (int5-- > 0) + { + num <<= 1; + num |= ((_int4[num2++] != 0) ? 1 : 0); + } + } + else + { + while (int5-- > 0) + { + num <<= 1; + num |= ((_int4[num2] != 0) ? 1 : 0); + num2 = (num2 + 1 & Int0); + } + } + _int3 = num2; + return num; + } - public int method_2() - { - _int2++; - var result = _int4[_int3]; - _int3 = (_int3 + 1 & Int0); - return result; - } + public int method_2() + { + _int2++; + var result = _int4[_int3]; + _int3 = (_int3 + 1 & Int0); + return result; + } - public void method_3(int int5) - { - var num = _int1; - _int4[num++] = (int5 & 128); - _int4[num++] = (int5 & 64); - _int4[num++] = (int5 & 32); - _int4[num++] = (int5 & 16); - _int4[num++] = (int5 & 8); - _int4[num++] = (int5 & 4); - _int4[num++] = (int5 & 2); - _int4[num++] = (int5 & 1); - if (num == 32768) - { - _int1 = 0; - return; - } - _int1 = num; - } + public void method_3(int int5) + { + var num = _int1; + _int4[num++] = (int5 & 128); + _int4[num++] = (int5 & 64); + _int4[num++] = (int5 & 32); + _int4[num++] = (int5 & 16); + _int4[num++] = (int5 & 8); + _int4[num++] = (int5 & 4); + _int4[num++] = (int5 & 2); + _int4[num++] = (int5 & 1); + if (num == 32768) + { + _int1 = 0; + return; + } + _int1 = num; + } - public void method_4(int int5) - { - _int2 -= int5; - _int3 -= int5; - if (_int3 < 0) - { - _int3 += 32768; - } - } + public void method_4(int int5) + { + _int2 -= int5; + _int3 -= int5; + if (_int3 < 0) + { + _int3 += 32768; + } + } - public void method_5(int int5) - { - var num = int5 << 3; - _int2 -= num; - _int3 -= num; - if (_int3 < 0) - { - _int3 += 32768; - } - } - } -} + public void method_5(int int5) + { + var num = int5 << 3; + _int2 -= num; + _int3 -= num; + if (_int3 < 0) + { + _int3 += 32768; + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class103.cs b/GHNamespaceI/Class103.cs index 7938cc6..56cd917 100644 --- a/GHNamespaceI/Class103.cs +++ b/GHNamespaceI/Class103.cs @@ -1,139 +1,140 @@ namespace GHNamespaceI { - public class Class103 - { - private readonly char _char0 = ' '; + public class Class103 + { + private readonly char _char0 = ' '; - private readonly char _char1 = ' '; + private readonly char _char1 = ' '; - private readonly char _char2 = ' '; + private readonly char _char2 = ' '; - private readonly int _int0; + private readonly int _int0; - private readonly int _int1; + private readonly int _int1; - private readonly int _int2; + private readonly int _int2; - private readonly int[,] _int3; + private readonly int[,] _int3; - private readonly int _int4; + private readonly int _int4; - public static Class103[] Class1030; + public static Class103[] Class1030; - private static readonly int[,] Int5; + private static readonly int[,] Int5; - private static readonly int[,] Int6; + private static readonly int[,] Int6; - private static readonly int[,] Int7; + private static readonly int[,] Int7; - private static readonly int[,] Int8; + private static readonly int[,] Int8; - private static readonly int[,] Int9; + private static readonly int[,] Int9; - private static readonly int[,] Int10; + private static readonly int[,] Int10; - private static readonly int[,] Int11; + private static readonly int[,] Int11; - private static readonly int[,] Int12; + private static readonly int[,] Int12; - private static readonly int[,] Int13; + private static readonly int[,] Int13; - private static readonly int[,] Int14; + private static readonly int[,] Int14; - private static readonly int[,] Int15; + private static readonly int[,] Int15; - private static readonly int[,] Int16; + private static readonly int[,] Int16; - private static readonly int[,] Int17; + private static readonly int[,] Int17; - private static readonly int[,] Int18; + private static readonly int[,] Int18; - private static readonly int[,] Int19; + private static readonly int[,] Int19; - private static readonly int[,] Int20; + private static readonly int[,] Int20; - private static readonly int[,] Int21; + private static readonly int[,] Int21; - private static readonly int[,] Int22; + private static readonly int[,] Int22; - private static readonly int[,] Int23; + private static readonly int[,] Int23; - private static readonly int[,] Int24; + private static readonly int[,] Int24; - private Class103(string string0, int int25, int int26, int int27, int[,] int28, int int29) - { - _char0 = string0[0]; - _char1 = string0[1]; - _char2 = string0[2]; - _int0 = int25; - _int1 = int26; - _int2 = int27; - _int3 = int28; - _int4 = int29; - } + private Class103(string string0, int int25, int int26, int int27, int[,] int28, int int29) + { + _char0 = string0[0]; + _char1 = string0[1]; + _char2 = string0[2]; + _int0 = int25; + _int1 = int26; + _int2 = int27; + _int3 = int28; + _int4 = int29; + } - public static void smethod_0() - { - if (Class1030 != null) - { - return; - } - Class1030 = new Class103[34]; - Class1030[0] = new Class103("0 ", 0, 0, 0, Int5, 0); - Class1030[1] = new Class103("1 ", 2, 2, 0, Int6, 7); - Class1030[2] = new Class103("2 ", 3, 3, 0, Int7, 17); - Class1030[3] = new Class103("3 ", 3, 3, 0, Int8, 17); - Class1030[4] = new Class103("4 ", 0, 0, 0, Int9, 0); - Class1030[5] = new Class103("5 ", 4, 4, 0, Int10, 31); - Class1030[6] = new Class103("6 ", 4, 4, 0, Int11, 31); - Class1030[7] = new Class103("7 ", 6, 6, 0, Int12, 71); - Class1030[8] = new Class103("8 ", 6, 6, 0, Int13, 71); - Class1030[9] = new Class103("9 ", 6, 6, 0, Int14, 71); - Class1030[10] = new Class103("10 ", 8, 8, 0, Int15, 127); - Class1030[11] = new Class103("11 ", 8, 8, 0, Int16, 127); - Class1030[12] = new Class103("12 ", 8, 8, 0, Int17, 127); - Class1030[13] = new Class103("13 ", 16, 16, 0, Int18, 511); - Class1030[14] = new Class103("14 ", 0, 0, 0, Int19, 0); - Class1030[15] = new Class103("15 ", 16, 16, 0, Int20, 511); - Class1030[16] = new Class103("16 ", 16, 16, 1, Int21, 511); - Class1030[17] = new Class103("17 ", 16, 16, 2, Int21, 511); - Class1030[18] = new Class103("18 ", 16, 16, 3, Int21, 511); - Class1030[19] = new Class103("19 ", 16, 16, 4, Int21, 511); - Class1030[20] = new Class103("20 ", 16, 16, 6, Int21, 511); - Class1030[21] = new Class103("21 ", 16, 16, 8, Int21, 511); - Class1030[22] = new Class103("22 ", 16, 16, 10, Int21, 511); - Class1030[23] = new Class103("23 ", 16, 16, 13, Int21, 511); - Class1030[24] = new Class103("24 ", 16, 16, 4, Int22, 512); - Class1030[25] = new Class103("25 ", 16, 16, 5, Int22, 512); - Class1030[26] = new Class103("26 ", 16, 16, 6, Int22, 512); - Class1030[27] = new Class103("27 ", 16, 16, 7, Int22, 512); - Class1030[28] = new Class103("28 ", 16, 16, 8, Int22, 512); - Class1030[29] = new Class103("29 ", 16, 16, 9, Int22, 512); - Class1030[30] = new Class103("30 ", 16, 16, 11, Int22, 512); - Class1030[31] = new Class103("31 ", 16, 16, 13, Int22, 512); - Class1030[32] = new Class103("32 ", 1, 16, 0, Int23, 31); - Class1030[33] = new Class103("33 ", 1, 16, 0, Int24, 31); - } + public static void smethod_0() + { + if (Class1030 != null) + { + return; + } + Class1030 = new Class103[34]; + Class1030[0] = new Class103("0 ", 0, 0, 0, Int5, 0); + Class1030[1] = new Class103("1 ", 2, 2, 0, Int6, 7); + Class1030[2] = new Class103("2 ", 3, 3, 0, Int7, 17); + Class1030[3] = new Class103("3 ", 3, 3, 0, Int8, 17); + Class1030[4] = new Class103("4 ", 0, 0, 0, Int9, 0); + Class1030[5] = new Class103("5 ", 4, 4, 0, Int10, 31); + Class1030[6] = new Class103("6 ", 4, 4, 0, Int11, 31); + Class1030[7] = new Class103("7 ", 6, 6, 0, Int12, 71); + Class1030[8] = new Class103("8 ", 6, 6, 0, Int13, 71); + Class1030[9] = new Class103("9 ", 6, 6, 0, Int14, 71); + Class1030[10] = new Class103("10 ", 8, 8, 0, Int15, 127); + Class1030[11] = new Class103("11 ", 8, 8, 0, Int16, 127); + Class1030[12] = new Class103("12 ", 8, 8, 0, Int17, 127); + Class1030[13] = new Class103("13 ", 16, 16, 0, Int18, 511); + Class1030[14] = new Class103("14 ", 0, 0, 0, Int19, 0); + Class1030[15] = new Class103("15 ", 16, 16, 0, Int20, 511); + Class1030[16] = new Class103("16 ", 16, 16, 1, Int21, 511); + Class1030[17] = new Class103("17 ", 16, 16, 2, Int21, 511); + Class1030[18] = new Class103("18 ", 16, 16, 3, Int21, 511); + Class1030[19] = new Class103("19 ", 16, 16, 4, Int21, 511); + Class1030[20] = new Class103("20 ", 16, 16, 6, Int21, 511); + Class1030[21] = new Class103("21 ", 16, 16, 8, Int21, 511); + Class1030[22] = new Class103("22 ", 16, 16, 10, Int21, 511); + Class1030[23] = new Class103("23 ", 16, 16, 13, Int21, 511); + Class1030[24] = new Class103("24 ", 16, 16, 4, Int22, 512); + Class1030[25] = new Class103("25 ", 16, 16, 5, Int22, 512); + Class1030[26] = new Class103("26 ", 16, 16, 6, Int22, 512); + Class1030[27] = new Class103("27 ", 16, 16, 7, Int22, 512); + Class1030[28] = new Class103("28 ", 16, 16, 8, Int22, 512); + Class1030[29] = new Class103("29 ", 16, 16, 9, Int22, 512); + Class1030[30] = new Class103("30 ", 16, 16, 11, Int22, 512); + Class1030[31] = new Class103("31 ", 16, 16, 13, Int22, 512); + Class1030[32] = new Class103("32 ", 1, 16, 0, Int23, 31); + Class1030[33] = new Class103("33 ", 1, 16, 0, Int24, 31); + } - public static int smethod_1(Class103 class1031, int[] int25, int[] int26, int[] int27, int[] int28, Class102 class1020) - { - var num = 0; - var result = 1; - var num2 = -2147483648; - if (class1031._int3 == null) - { - return 2; - } - if (class1031._int4 == 0) - { - var arg261 = 0; - int26[0] = 0; - int25[arg261] = 0; - return 0; - } + public static int smethod_1(Class103 class1031, int[] int25, int[] int26, int[] int27, int[] int28, + Class102 class1020) + { + var num = 0; + var result = 1; + var num2 = -2147483648; + if (class1031._int3 == null) + { + return 2; + } + if (class1031._int4 == 0) + { + var arg261 = 0; + int26[0] = 0; + int25[arg261] = 0; + return 0; + } var ile4 = false; - for (; ; ) - { + for (;;) + { while (ile4 || class1031._int3[num, 0] != 0) { if (!ile4) @@ -211,11285 +212,11285 @@ public static int smethod_1(Class103 class1031, int[] int25, int[] int26, int[] result = 0; ile4 = true; } - //goto IL_E4; - } + //goto IL_E4; + } - static Class103() - { - // Note: this type is marked as 'beforefieldinit'. - var array = new int[1, 2]; - Int5 = array; - Int6 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 17 - } - }; - Int7 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 33 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 2 - }, - { - 0, - 34 - } - }; - Int8 = new[,] - { - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 33 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 2 - }, - { - 0, - 34 - } - }; - var array2 = new int[1, 2]; - Int9 = array2; - Int10 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 0, - 48 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 19 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 2, - 1 - }, - { - 0, - 35 - }, - { - 0, - 51 - } - }; - Int11 = new[,] - { - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 0, - 16 - }, - { - 0, - 17 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 33 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 2 - }, - { - 0, - 34 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 50 - }, - { - 2, - 1 - }, - { - 0, - 35 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 51 - } - }; - Int12 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 0, - 33 - }, - { - 18, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 0, - 48 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 50 - }, - { - 2, - 1 - }, - { - 0, - 35 - }, - { - 0, - 4 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 65 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 2, - 1 - }, - { - 0, - 66 - }, - { - 0, - 36 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 67 - }, - { - 0, - 80 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 52 - }, - { - 0, - 5 - }, - { - 0, - 81 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 21 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 53 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 83 - }, - { - 0, - 84 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 0, - 85 - } - }; - Int13 = new[,] - { - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 14, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 3 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 4 - }, - { - 2, - 1 - }, - { - 0, - 65 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 0, - 66 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 36 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 80 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 0, - 81 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 21 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 82 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 37 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 53 - }, - { - 2, - 1 - }, - { - 0, - 83 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 2, - 1 - }, - { - 0, - 84 - }, - { - 0, - 85 - } - }; - Int14 = new[,] - { - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 0, - 16 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 17 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 33 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 2 - }, - { - 0, - 34 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 3 - }, - { - 0, - 49 - }, - { - 2, - 1 - }, - { - 0, - 19 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 65 - }, - { - 0, - 20 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 51 - }, - { - 2, - 1 - }, - { - 0, - 66 - }, - { - 0, - 36 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 4 - }, - { - 0, - 80 - }, - { - 0, - 67 - }, - { - 2, - 1 - }, - { - 0, - 52 - }, - { - 0, - 81 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 21 - }, - { - 0, - 82 - }, - { - 2, - 1 - }, - { - 0, - 37 - }, - { - 0, - 68 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 84 - }, - { - 0, - 83 - }, - { - 2, - 1 - }, - { - 0, - 53 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 0, - 85 - } - }; - Int15 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 10, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 28, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 0, - 48 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 50 - }, - { - 2, - 1 - }, - { - 0, - 35 - }, - { - 0, - 64 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 65 - }, - { - 0, - 20 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 4 - }, - { - 0, - 51 - }, - { - 2, - 1 - }, - { - 0, - 66 - }, - { - 0, - 36 - }, - { - 28, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 80 - }, - { - 0, - 5 - }, - { - 0, - 96 - }, - { - 2, - 1 - }, - { - 0, - 97 - }, - { - 0, - 22 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 0, - 81 - }, - { - 2, - 1 - }, - { - 0, - 21 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 38 - }, - { - 0, - 54 - }, - { - 0, - 113 - }, - { - 20, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 23 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 83 - }, - { - 0, - 6 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 53 - }, - { - 0, - 69 - }, - { - 0, - 98 - }, - { - 2, - 1 - }, - { - 0, - 112 - }, - { - 2, - 1 - }, - { - 0, - 7 - }, - { - 0, - 100 - }, - { - 14, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 114 - }, - { - 0, - 39 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 99 - }, - { - 2, - 1 - }, - { - 0, - 84 - }, - { - 0, - 85 - }, - { - 2, - 1 - }, - { - 0, - 70 - }, - { - 0, - 115 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 55 - }, - { - 0, - 101 - }, - { - 2, - 1 - }, - { - 0, - 86 - }, - { - 0, - 116 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 71 - }, - { - 2, - 1 - }, - { - 0, - 102 - }, - { - 0, - 117 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 87 - }, - { - 0, - 118 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 119 - } - }; - Int16 = new[,] - { - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 0, - 18 - }, - { - 24, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 3 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 4 - }, - { - 2, - 1 - }, - { - 0, - 65 - }, - { - 0, - 20 - }, - { - 30, - 1 - }, - { - 16, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 66 - }, - { - 0, - 36 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 67 - }, - { - 0, - 80 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 52 - }, - { - 0, - 81 - }, - { - 0, - 97 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 22 - }, - { - 2, - 1 - }, - { - 0, - 6 - }, - { - 0, - 38 - }, - { - 2, - 1 - }, - { - 0, - 98 - }, - { - 2, - 1 - }, - { - 0, - 21 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 82 - }, - { - 16, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 37 - }, - { - 0, - 68 - }, - { - 0, - 96 - }, - { - 2, - 1 - }, - { - 0, - 99 - }, - { - 0, - 54 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 112 - }, - { - 0, - 23 - }, - { - 0, - 113 - }, - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 7 - }, - { - 0, - 100 - }, - { - 0, - 114 - }, - { - 2, - 1 - }, - { - 0, - 39 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 83 - }, - { - 0, - 53 - }, - { - 2, - 1 - }, - { - 0, - 84 - }, - { - 0, - 69 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 70 - }, - { - 0, - 115 - }, - { - 2, - 1 - }, - { - 0, - 55 - }, - { - 2, - 1 - }, - { - 0, - 101 - }, - { - 0, - 86 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 85 - }, - { - 0, - 87 - }, - { - 0, - 116 - }, - { - 2, - 1 - }, - { - 0, - 71 - }, - { - 0, - 102 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 118 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 119 - } - }; - Int17 = new[,] - { - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 16, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 0, - 49 - }, - { - 2, - 1 - }, - { - 0, - 19 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 64 - }, - { - 26, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 2, - 1 - }, - { - 0, - 65 - }, - { - 0, - 51 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 0, - 66 - }, - { - 2, - 1 - }, - { - 0, - 36 - }, - { - 2, - 1 - }, - { - 0, - 4 - }, - { - 0, - 80 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 2, - 1 - }, - { - 0, - 81 - }, - { - 0, - 21 - }, - { - 28, - 1 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 2, - 1 - }, - { - 0, - 83 - }, - { - 0, - 53 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 96 - }, - { - 0, - 22 - }, - { - 0, - 97 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 98 - }, - { - 0, - 38 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 6 - }, - { - 0, - 68 - }, - { - 2, - 1 - }, - { - 0, - 84 - }, - { - 0, - 69 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 99 - }, - { - 0, - 54 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 112 - }, - { - 0, - 7 - }, - { - 0, - 113 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 23 - }, - { - 0, - 100 - }, - { - 2, - 1 - }, - { - 0, - 70 - }, - { - 0, - 114 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 39 - }, - { - 2, - 1 - }, - { - 0, - 85 - }, - { - 0, - 115 - }, - { - 2, - 1 - }, - { - 0, - 55 - }, - { - 0, - 86 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 101 - }, - { - 0, - 116 - }, - { - 2, - 1 - }, - { - 0, - 71 - }, - { - 0, - 102 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 87 - }, - { - 2, - 1 - }, - { - 0, - 118 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 119 - } - }; - Int18 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 17 - }, - { - 28, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 0, - 48 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 49 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 19 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 4 - }, - { - 0, - 65 - }, - { - 70, - 1 - }, - { - 28, - 1 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 66 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 36 - }, - { - 0, - 80 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 81 - }, - { - 0, - 21 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 82 - }, - { - 2, - 1 - }, - { - 0, - 37 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 83 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 96 - }, - { - 0, - 6 - }, - { - 2, - 1 - }, - { - 0, - 97 - }, - { - 0, - 22 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 128 - }, - { - 0, - 8 - }, - { - 0, - 129 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 53 - }, - { - 0, - 98 - }, - { - 2, - 1 - }, - { - 0, - 38 - }, - { - 0, - 84 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 0, - 99 - }, - { - 2, - 1 - }, - { - 0, - 54 - }, - { - 0, - 112 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 7 - }, - { - 0, - 85 - }, - { - 0, - 113 - }, - { - 2, - 1 - }, - { - 0, - 23 - }, - { - 2, - 1 - }, - { - 0, - 39 - }, - { - 0, - 55 - }, - { - 72, - 1 - }, - { - 24, - 1 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 24 - }, - { - 0, - 130 - }, - { - 2, - 1 - }, - { - 0, - 40 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 100 - }, - { - 0, - 70 - }, - { - 0, - 114 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 132 - }, - { - 0, - 72 - }, - { - 2, - 1 - }, - { - 0, - 144 - }, - { - 0, - 9 - }, - { - 2, - 1 - }, - { - 0, - 145 - }, - { - 0, - 25 - }, - { - 24, - 1 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 115 - }, - { - 0, - 101 - }, - { - 2, - 1 - }, - { - 0, - 86 - }, - { - 0, - 116 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 71 - }, - { - 0, - 102 - }, - { - 0, - 131 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 56 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 87 - }, - { - 2, - 1 - }, - { - 0, - 146 - }, - { - 0, - 41 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 133 - }, - { - 2, - 1 - }, - { - 0, - 88 - }, - { - 0, - 57 - }, - { - 2, - 1 - }, - { - 0, - 147 - }, - { - 2, - 1 - }, - { - 0, - 73 - }, - { - 0, - 134 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 160 - }, - { - 2, - 1 - }, - { - 0, - 104 - }, - { - 0, - 10 - }, - { - 2, - 1 - }, - { - 0, - 161 - }, - { - 0, - 26 - }, - { - 68, - 1 - }, - { - 24, - 1 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 162 - }, - { - 0, - 42 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 149 - }, - { - 0, - 89 - }, - { - 2, - 1 - }, - { - 0, - 163 - }, - { - 0, - 58 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 74 - }, - { - 0, - 150 - }, - { - 2, - 1 - }, - { - 0, - 176 - }, - { - 0, - 11 - }, - { - 2, - 1 - }, - { - 0, - 177 - }, - { - 0, - 27 - }, - { - 20, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 178 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 118 - }, - { - 0, - 119 - }, - { - 0, - 148 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 135 - }, - { - 0, - 120 - }, - { - 0, - 164 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 105 - }, - { - 0, - 165 - }, - { - 0, - 43 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 90 - }, - { - 0, - 136 - }, - { - 0, - 179 - }, - { - 2, - 1 - }, - { - 0, - 59 - }, - { - 2, - 1 - }, - { - 0, - 121 - }, - { - 0, - 166 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 106 - }, - { - 0, - 180 - }, - { - 0, - 192 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 152 - }, - { - 0, - 193 - }, - { - 60, - 1 - }, - { - 22, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 28 - }, - { - 2, - 1 - }, - { - 0, - 137 - }, - { - 0, - 181 - }, - { - 2, - 1 - }, - { - 0, - 91 - }, - { - 0, - 194 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 44 - }, - { - 0, - 60 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 182 - }, - { - 0, - 107 - }, - { - 2, - 1 - }, - { - 0, - 196 - }, - { - 0, - 76 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 168 - }, - { - 0, - 138 - }, - { - 2, - 1 - }, - { - 0, - 208 - }, - { - 0, - 13 - }, - { - 2, - 1 - }, - { - 0, - 209 - }, - { - 2, - 1 - }, - { - 0, - 75 - }, - { - 2, - 1 - }, - { - 0, - 151 - }, - { - 0, - 167 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 195 - }, - { - 2, - 1 - }, - { - 0, - 122 - }, - { - 0, - 153 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 197 - }, - { - 0, - 92 - }, - { - 0, - 183 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 29 - }, - { - 0, - 210 - }, - { - 2, - 1 - }, - { - 0, - 45 - }, - { - 2, - 1 - }, - { - 0, - 123 - }, - { - 0, - 211 - }, - { - 52, - 1 - }, - { - 28, - 1 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 61 - }, - { - 0, - 198 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 108 - }, - { - 0, - 169 - }, - { - 2, - 1 - }, - { - 0, - 154 - }, - { - 0, - 212 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 184 - }, - { - 0, - 139 - }, - { - 2, - 1 - }, - { - 0, - 77 - }, - { - 0, - 199 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 124 - }, - { - 0, - 213 - }, - { - 2, - 1 - }, - { - 0, - 93 - }, - { - 0, - 224 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 225 - }, - { - 0, - 30 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 14 - }, - { - 0, - 46 - }, - { - 0, - 226 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 227 - }, - { - 0, - 109 - }, - { - 2, - 1 - }, - { - 0, - 140 - }, - { - 0, - 228 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 229 - }, - { - 0, - 186 - }, - { - 0, - 240 - }, - { - 38, - 1 - }, - { - 16, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 241 - }, - { - 0, - 31 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 170 - }, - { - 0, - 155 - }, - { - 0, - 185 - }, - { - 2, - 1 - }, - { - 0, - 62 - }, - { - 2, - 1 - }, - { - 0, - 214 - }, - { - 0, - 200 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 78 - }, - { - 2, - 1 - }, - { - 0, - 215 - }, - { - 0, - 125 - }, - { - 2, - 1 - }, - { - 0, - 171 - }, - { - 2, - 1 - }, - { - 0, - 94 - }, - { - 0, - 201 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 15 - }, - { - 2, - 1 - }, - { - 0, - 156 - }, - { - 0, - 110 - }, - { - 2, - 1 - }, - { - 0, - 242 - }, - { - 0, - 47 - }, - { - 32, - 1 - }, - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 216 - }, - { - 0, - 141 - }, - { - 0, - 63 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 243 - }, - { - 2, - 1 - }, - { - 0, - 230 - }, - { - 0, - 202 - }, - { - 2, - 1 - }, - { - 0, - 244 - }, - { - 0, - 79 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 187 - }, - { - 0, - 172 - }, - { - 2, - 1 - }, - { - 0, - 231 - }, - { - 0, - 245 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 217 - }, - { - 0, - 157 - }, - { - 2, - 1 - }, - { - 0, - 95 - }, - { - 0, - 232 - }, - { - 30, - 1 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 111 - }, - { - 2, - 1 - }, - { - 0, - 246 - }, - { - 0, - 203 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 188 - }, - { - 0, - 173 - }, - { - 0, - 218 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 247 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 126 - }, - { - 0, - 127 - }, - { - 0, - 142 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 158 - }, - { - 0, - 174 - }, - { - 0, - 204 - }, - { - 2, - 1 - }, - { - 0, - 248 - }, - { - 0, - 143 - }, - { - 18, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 219 - }, - { - 0, - 189 - }, - { - 2, - 1 - }, - { - 0, - 234 - }, - { - 0, - 249 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 159 - }, - { - 0, - 235 - }, - { - 2, - 1 - }, - { - 0, - 190 - }, - { - 2, - 1 - }, - { - 0, - 205 - }, - { - 0, - 250 - }, - { - 14, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 221 - }, - { - 0, - 236 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 233 - }, - { - 0, - 175 - }, - { - 0, - 220 - }, - { - 2, - 1 - }, - { - 0, - 206 - }, - { - 0, - 251 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 191 - }, - { - 0, - 222 - }, - { - 2, - 1 - }, - { - 0, - 207 - }, - { - 0, - 238 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 223 - }, - { - 0, - 239 - }, - { - 2, - 1 - }, - { - 0, - 255 - }, - { - 2, - 1 - }, - { - 0, - 237 - }, - { - 2, - 1 - }, - { - 0, - 253 - }, - { - 2, - 1 - }, - { - 0, - 252 - }, - { - 0, - 254 - } - }; - var array3 = new int[1, 2]; - Int19 = array3; - Int20 = new[,] - { - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 17 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 50, - 1 - }, - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 49 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 19 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 64 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 4 - }, - { - 0, - 20 - }, - { - 0, - 65 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 66 - }, - { - 2, - 1 - }, - { - 0, - 36 - }, - { - 0, - 67 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 52 - }, - { - 2, - 1 - }, - { - 0, - 80 - }, - { - 0, - 5 - }, - { - 2, - 1 - }, - { - 0, - 81 - }, - { - 0, - 21 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 83 - }, - { - 0, - 97 - }, - { - 90, - 1 - }, - { - 36, - 1 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 53 - }, - { - 2, - 1 - }, - { - 0, - 96 - }, - { - 0, - 6 - }, - { - 2, - 1 - }, - { - 0, - 22 - }, - { - 0, - 98 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 38 - }, - { - 0, - 84 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 0, - 99 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 54 - }, - { - 2, - 1 - }, - { - 0, - 112 - }, - { - 0, - 7 - }, - { - 2, - 1 - }, - { - 0, - 113 - }, - { - 0, - 85 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 23 - }, - { - 0, - 100 - }, - { - 2, - 1 - }, - { - 0, - 114 - }, - { - 0, - 39 - }, - { - 24, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 70 - }, - { - 0, - 115 - }, - { - 2, - 1 - }, - { - 0, - 55 - }, - { - 0, - 101 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 86 - }, - { - 0, - 128 - }, - { - 2, - 1 - }, - { - 0, - 8 - }, - { - 0, - 116 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 129 - }, - { - 0, - 24 - }, - { - 2, - 1 - }, - { - 0, - 130 - }, - { - 0, - 40 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 71 - }, - { - 0, - 102 - }, - { - 2, - 1 - }, - { - 0, - 131 - }, - { - 0, - 56 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 87 - }, - { - 2, - 1 - }, - { - 0, - 132 - }, - { - 0, - 72 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 144 - }, - { - 0, - 25 - }, - { - 0, - 145 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 146 - }, - { - 0, - 118 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 41 - }, - { - 92, - 1 - }, - { - 36, - 1 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 133 - }, - { - 0, - 88 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 9 - }, - { - 0, - 119 - }, - { - 0, - 147 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 57 - }, - { - 0, - 148 - }, - { - 2, - 1 - }, - { - 0, - 73 - }, - { - 0, - 134 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 104 - }, - { - 2, - 1 - }, - { - 0, - 160 - }, - { - 0, - 10 - }, - { - 2, - 1 - }, - { - 0, - 161 - }, - { - 0, - 26 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 162 - }, - { - 0, - 42 - }, - { - 2, - 1 - }, - { - 0, - 149 - }, - { - 0, - 89 - }, - { - 26, - 1 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 163 - }, - { - 2, - 1 - }, - { - 0, - 58 - }, - { - 0, - 135 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 120 - }, - { - 0, - 164 - }, - { - 2, - 1 - }, - { - 0, - 74 - }, - { - 0, - 150 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 105 - }, - { - 0, - 176 - }, - { - 0, - 177 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 27 - }, - { - 0, - 165 - }, - { - 0, - 178 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 90 - }, - { - 0, - 43 - }, - { - 2, - 1 - }, - { - 0, - 136 - }, - { - 0, - 151 - }, - { - 2, - 1 - }, - { - 0, - 179 - }, - { - 2, - 1 - }, - { - 0, - 121 - }, - { - 0, - 59 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 106 - }, - { - 0, - 180 - }, - { - 2, - 1 - }, - { - 0, - 75 - }, - { - 0, - 193 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 152 - }, - { - 0, - 137 - }, - { - 2, - 1 - }, - { - 0, - 28 - }, - { - 0, - 181 - }, - { - 80, - 1 - }, - { - 34, - 1 - }, - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 91 - }, - { - 0, - 44 - }, - { - 0, - 194 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 11 - }, - { - 0, - 192 - }, - { - 0, - 166 - }, - { - 2, - 1 - }, - { - 0, - 167 - }, - { - 0, - 122 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 195 - }, - { - 0, - 60 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 153 - }, - { - 0, - 182 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 107 - }, - { - 0, - 196 - }, - { - 2, - 1 - }, - { - 0, - 76 - }, - { - 0, - 168 - }, - { - 20, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 138 - }, - { - 0, - 197 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 208 - }, - { - 0, - 92 - }, - { - 0, - 209 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 183 - }, - { - 0, - 123 - }, - { - 2, - 1 - }, - { - 0, - 29 - }, - { - 2, - 1 - }, - { - 0, - 13 - }, - { - 0, - 45 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 210 - }, - { - 0, - 211 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 61 - }, - { - 0, - 198 - }, - { - 2, - 1 - }, - { - 0, - 108 - }, - { - 0, - 169 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 154 - }, - { - 0, - 184 - }, - { - 0, - 212 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 139 - }, - { - 0, - 77 - }, - { - 2, - 1 - }, - { - 0, - 199 - }, - { - 0, - 124 - }, - { - 68, - 1 - }, - { - 34, - 1 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 213 - }, - { - 0, - 93 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 224 - }, - { - 0, - 14 - }, - { - 0, - 225 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 30 - }, - { - 0, - 226 - }, - { - 2, - 1 - }, - { - 0, - 170 - }, - { - 0, - 46 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 185 - }, - { - 0, - 155 - }, - { - 2, - 1 - }, - { - 0, - 227 - }, - { - 0, - 214 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 109 - }, - { - 0, - 62 - }, - { - 2, - 1 - }, - { - 0, - 200 - }, - { - 0, - 140 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 228 - }, - { - 0, - 78 - }, - { - 2, - 1 - }, - { - 0, - 215 - }, - { - 0, - 125 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 229 - }, - { - 0, - 186 - }, - { - 2, - 1 - }, - { - 0, - 171 - }, - { - 0, - 94 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 201 - }, - { - 0, - 156 - }, - { - 2, - 1 - }, - { - 0, - 241 - }, - { - 0, - 31 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 240 - }, - { - 0, - 110 - }, - { - 0, - 242 - }, - { - 2, - 1 - }, - { - 0, - 47 - }, - { - 0, - 230 - }, - { - 38, - 1 - }, - { - 18, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 216 - }, - { - 0, - 243 - }, - { - 2, - 1 - }, - { - 0, - 63 - }, - { - 0, - 244 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 79 - }, - { - 2, - 1 - }, - { - 0, - 141 - }, - { - 0, - 217 - }, - { - 2, - 1 - }, - { - 0, - 187 - }, - { - 0, - 202 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 172 - }, - { - 0, - 231 - }, - { - 2, - 1 - }, - { - 0, - 126 - }, - { - 0, - 245 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 157 - }, - { - 0, - 95 - }, - { - 2, - 1 - }, - { - 0, - 232 - }, - { - 0, - 142 - }, - { - 2, - 1 - }, - { - 0, - 246 - }, - { - 0, - 203 - }, - { - 34, - 1 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 15 - }, - { - 0, - 174 - }, - { - 0, - 111 - }, - { - 2, - 1 - }, - { - 0, - 188 - }, - { - 0, - 218 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 173 - }, - { - 0, - 247 - }, - { - 2, - 1 - }, - { - 0, - 127 - }, - { - 0, - 233 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 158 - }, - { - 0, - 204 - }, - { - 2, - 1 - }, - { - 0, - 248 - }, - { - 0, - 143 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 219 - }, - { - 0, - 189 - }, - { - 2, - 1 - }, - { - 0, - 234 - }, - { - 0, - 249 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 159 - }, - { - 0, - 220 - }, - { - 2, - 1 - }, - { - 0, - 205 - }, - { - 0, - 235 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 190 - }, - { - 0, - 250 - }, - { - 2, - 1 - }, - { - 0, - 175 - }, - { - 0, - 221 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 236 - }, - { - 0, - 206 - }, - { - 0, - 251 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 191 - }, - { - 0, - 237 - }, - { - 2, - 1 - }, - { - 0, - 222 - }, - { - 0, - 252 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 207 - }, - { - 0, - 253 - }, - { - 0, - 238 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 223 - }, - { - 0, - 254 - }, - { - 2, - 1 - }, - { - 0, - 239 - }, - { - 0, - 255 - } - }; - Int21 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 16 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 17 - }, - { - 42, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 2, - 1 - }, - { - 0, - 33 - }, - { - 0, - 18 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 3 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 4 - }, - { - 0, - 65 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 2, - 1 - }, - { - 0, - 51 - }, - { - 0, - 66 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 36 - }, - { - 0, - 80 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 138, - 1 - }, - { - 40, - 1 - }, - { - 16, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 21 - }, - { - 0, - 81 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 53 - }, - { - 0, - 83 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 96 - }, - { - 0, - 6 - }, - { - 0, - 97 - }, - { - 2, - 1 - }, - { - 0, - 22 - }, - { - 0, - 98 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 38 - }, - { - 0, - 84 - }, - { - 2, - 1 - }, - { - 0, - 69 - }, - { - 0, - 99 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 54 - }, - { - 0, - 112 - }, - { - 0, - 113 - }, - { - 40, - 1 - }, - { - 18, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 23 - }, - { - 2, - 1 - }, - { - 0, - 7 - }, - { - 2, - 1 - }, - { - 0, - 85 - }, - { - 0, - 100 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 114 - }, - { - 0, - 39 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 70 - }, - { - 0, - 101 - }, - { - 0, - 115 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 55 - }, - { - 2, - 1 - }, - { - 0, - 86 - }, - { - 0, - 8 - }, - { - 2, - 1 - }, - { - 0, - 128 - }, - { - 0, - 129 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 24 - }, - { - 2, - 1 - }, - { - 0, - 116 - }, - { - 0, - 71 - }, - { - 2, - 1 - }, - { - 0, - 130 - }, - { - 2, - 1 - }, - { - 0, - 40 - }, - { - 0, - 102 - }, - { - 24, - 1 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 131 - }, - { - 0, - 56 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 132 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 72 - }, - { - 0, - 144 - }, - { - 0, - 145 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 25 - }, - { - 2, - 1 - }, - { - 0, - 9 - }, - { - 0, - 118 - }, - { - 2, - 1 - }, - { - 0, - 146 - }, - { - 0, - 41 - }, - { - 14, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 133 - }, - { - 0, - 88 - }, - { - 2, - 1 - }, - { - 0, - 147 - }, - { - 0, - 57 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 160 - }, - { - 0, - 10 - }, - { - 0, - 26 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 162 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 2, - 1 - }, - { - 0, - 87 - }, - { - 0, - 73 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 148 - }, - { - 2, - 1 - }, - { - 0, - 119 - }, - { - 0, - 134 - }, - { - 2, - 1 - }, - { - 0, - 161 - }, - { - 2, - 1 - }, - { - 0, - 104 - }, - { - 0, - 149 - }, - { - 220, - 1 - }, - { - 126, - 1 - }, - { - 50, - 1 - }, - { - 26, - 1 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 42 - }, - { - 2, - 1 - }, - { - 0, - 89 - }, - { - 0, - 58 - }, - { - 2, - 1 - }, - { - 0, - 163 - }, - { - 2, - 1 - }, - { - 0, - 135 - }, - { - 0, - 120 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 164 - }, - { - 0, - 74 - }, - { - 2, - 1 - }, - { - 0, - 150 - }, - { - 0, - 105 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 176 - }, - { - 0, - 11 - }, - { - 0, - 177 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 27 - }, - { - 0, - 178 - }, - { - 2, - 1 - }, - { - 0, - 43 - }, - { - 2, - 1 - }, - { - 0, - 165 - }, - { - 0, - 90 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 179 - }, - { - 2, - 1 - }, - { - 0, - 166 - }, - { - 0, - 106 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 180 - }, - { - 0, - 75 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 193 - }, - { - 30, - 1 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 181 - }, - { - 0, - 194 - }, - { - 0, - 44 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 167 - }, - { - 0, - 195 - }, - { - 2, - 1 - }, - { - 0, - 107 - }, - { - 0, - 196 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 29 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 136 - }, - { - 0, - 151 - }, - { - 0, - 59 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 209 - }, - { - 0, - 210 - }, - { - 2, - 1 - }, - { - 0, - 45 - }, - { - 0, - 211 - }, - { - 18, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 30 - }, - { - 0, - 46 - }, - { - 0, - 226 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 121 - }, - { - 0, - 152 - }, - { - 0, - 192 - }, - { - 2, - 1 - }, - { - 0, - 28 - }, - { - 2, - 1 - }, - { - 0, - 137 - }, - { - 0, - 91 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 60 - }, - { - 2, - 1 - }, - { - 0, - 122 - }, - { - 0, - 182 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 76 - }, - { - 0, - 153 - }, - { - 2, - 1 - }, - { - 0, - 168 - }, - { - 0, - 138 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 13 - }, - { - 2, - 1 - }, - { - 0, - 197 - }, - { - 0, - 92 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 61 - }, - { - 0, - 198 - }, - { - 2, - 1 - }, - { - 0, - 108 - }, - { - 0, - 154 - }, - { - 88, - 1 - }, - { - 86, - 1 - }, - { - 36, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 139 - }, - { - 0, - 77 - }, - { - 2, - 1 - }, - { - 0, - 199 - }, - { - 0, - 124 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 213 - }, - { - 0, - 93 - }, - { - 2, - 1 - }, - { - 0, - 224 - }, - { - 0, - 14 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 227 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 208 - }, - { - 0, - 183 - }, - { - 0, - 123 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 169 - }, - { - 0, - 184 - }, - { - 0, - 212 - }, - { - 2, - 1 - }, - { - 0, - 225 - }, - { - 2, - 1 - }, - { - 0, - 170 - }, - { - 0, - 185 - }, - { - 24, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 155 - }, - { - 0, - 214 - }, - { - 0, - 109 - }, - { - 2, - 1 - }, - { - 0, - 62 - }, - { - 0, - 200 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 140 - }, - { - 0, - 228 - }, - { - 0, - 78 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 215 - }, - { - 0, - 229 - }, - { - 2, - 1 - }, - { - 0, - 186 - }, - { - 0, - 171 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 156 - }, - { - 0, - 230 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 110 - }, - { - 0, - 216 - }, - { - 2, - 1 - }, - { - 0, - 141 - }, - { - 0, - 187 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 231 - }, - { - 0, - 157 - }, - { - 2, - 1 - }, - { - 0, - 232 - }, - { - 0, - 142 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 203 - }, - { - 0, - 188 - }, - { - 0, - 158 - }, - { - 0, - 241 - }, - { - 2, - 1 - }, - { - 0, - 31 - }, - { - 2, - 1 - }, - { - 0, - 15 - }, - { - 0, - 47 - }, - { - 66, - 1 - }, - { - 56, - 1 - }, - { - 2, - 1 - }, - { - 0, - 242 - }, - { - 52, - 1 - }, - { - 50, - 1 - }, - { - 20, - 1 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 189 - }, - { - 2, - 1 - }, - { - 0, - 94 - }, - { - 2, - 1 - }, - { - 0, - 125 - }, - { - 0, - 201 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 202 - }, - { - 2, - 1 - }, - { - 0, - 172 - }, - { - 0, - 126 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 218 - }, - { - 0, - 173 - }, - { - 0, - 204 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 174 - }, - { - 2, - 1 - }, - { - 0, - 219 - }, - { - 0, - 220 - }, - { - 2, - 1 - }, - { - 0, - 205 - }, - { - 0, - 190 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 235 - }, - { - 0, - 237 - }, - { - 0, - 238 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 217 - }, - { - 0, - 234 - }, - { - 0, - 233 - }, - { - 2, - 1 - }, - { - 0, - 222 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 221 - }, - { - 0, - 236 - }, - { - 0, - 206 - }, - { - 0, - 63 - }, - { - 0, - 240 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 243 - }, - { - 0, - 244 - }, - { - 2, - 1 - }, - { - 0, - 79 - }, - { - 2, - 1 - }, - { - 0, - 245 - }, - { - 0, - 95 - }, - { - 10, - 1 - }, - { - 2, - 1 - }, - { - 0, - 255 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 246 - }, - { - 0, - 111 - }, - { - 2, - 1 - }, - { - 0, - 247 - }, - { - 0, - 127 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 143 - }, - { - 2, - 1 - }, - { - 0, - 248 - }, - { - 0, - 249 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 159 - }, - { - 0, - 250 - }, - { - 0, - 175 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 251 - }, - { - 0, - 191 - }, - { - 2, - 1 - }, - { - 0, - 252 - }, - { - 0, - 207 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 253 - }, - { - 0, - 223 - }, - { - 2, - 1 - }, - { - 0, - 254 - }, - { - 0, - 239 - } - }; - Int22 = new[,] - { - { - 60, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 0, - 16 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 17 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 32 - }, - { - 0, - 2 - }, - { - 0, - 33 - }, - { - 2, - 1 - }, - { - 0, - 18 - }, - { - 2, - 1 - }, - { - 0, - 34 - }, - { - 2, - 1 - }, - { - 0, - 48 - }, - { - 0, - 3 - }, - { - 14, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 49 - }, - { - 0, - 19 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 50 - }, - { - 0, - 35 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 64 - }, - { - 0, - 4 - }, - { - 0, - 65 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 20 - }, - { - 0, - 51 - }, - { - 2, - 1 - }, - { - 0, - 66 - }, - { - 0, - 36 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 67 - }, - { - 0, - 52 - }, - { - 0, - 81 - }, - { - 6, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 80 - }, - { - 0, - 5 - }, - { - 0, - 21 - }, - { - 2, - 1 - }, - { - 0, - 82 - }, - { - 0, - 37 - }, - { - 250, - 1 - }, - { - 98, - 1 - }, - { - 34, - 1 - }, - { - 18, - 1 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 68 - }, - { - 0, - 83 - }, - { - 2, - 1 - }, - { - 0, - 53 - }, - { - 2, - 1 - }, - { - 0, - 96 - }, - { - 0, - 6 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 97 - }, - { - 0, - 22 - }, - { - 2, - 1 - }, - { - 0, - 98 - }, - { - 0, - 38 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 84 - }, - { - 0, - 69 - }, - { - 2, - 1 - }, - { - 0, - 99 - }, - { - 0, - 54 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 113 - }, - { - 0, - 85 - }, - { - 2, - 1 - }, - { - 0, - 100 - }, - { - 0, - 70 - }, - { - 32, - 1 - }, - { - 14, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 114 - }, - { - 2, - 1 - }, - { - 0, - 39 - }, - { - 0, - 55 - }, - { - 2, - 1 - }, - { - 0, - 115 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 112 - }, - { - 0, - 7 - }, - { - 0, - 23 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 101 - }, - { - 0, - 86 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 128 - }, - { - 0, - 8 - }, - { - 0, - 129 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 116 - }, - { - 0, - 71 - }, - { - 2, - 1 - }, - { - 0, - 24 - }, - { - 0, - 130 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 40 - }, - { - 0, - 102 - }, - { - 2, - 1 - }, - { - 0, - 131 - }, - { - 0, - 56 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 117 - }, - { - 0, - 87 - }, - { - 2, - 1 - }, - { - 0, - 132 - }, - { - 0, - 72 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 145 - }, - { - 0, - 25 - }, - { - 2, - 1 - }, - { - 0, - 146 - }, - { - 0, - 118 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 103 - }, - { - 0, - 41 - }, - { - 2, - 1 - }, - { - 0, - 133 - }, - { - 0, - 88 - }, - { - 92, - 1 - }, - { - 34, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 147 - }, - { - 0, - 57 - }, - { - 2, - 1 - }, - { - 0, - 148 - }, - { - 0, - 73 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 119 - }, - { - 0, - 134 - }, - { - 2, - 1 - }, - { - 0, - 104 - }, - { - 0, - 161 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 162 - }, - { - 0, - 42 - }, - { - 2, - 1 - }, - { - 0, - 149 - }, - { - 0, - 89 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 163 - }, - { - 0, - 58 - }, - { - 2, - 1 - }, - { - 0, - 135 - }, - { - 2, - 1 - }, - { - 0, - 120 - }, - { - 0, - 74 - }, - { - 22, - 1 - }, - { - 12, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 164 - }, - { - 0, - 150 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 105 - }, - { - 0, - 177 - }, - { - 2, - 1 - }, - { - 0, - 27 - }, - { - 0, - 165 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 178 - }, - { - 2, - 1 - }, - { - 0, - 90 - }, - { - 0, - 43 - }, - { - 2, - 1 - }, - { - 0, - 136 - }, - { - 0, - 179 - }, - { - 16, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 144 - }, - { - 2, - 1 - }, - { - 0, - 9 - }, - { - 0, - 160 - }, - { - 2, - 1 - }, - { - 0, - 151 - }, - { - 0, - 121 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 166 - }, - { - 0, - 106 - }, - { - 0, - 180 - }, - { - 12, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 26 - }, - { - 2, - 1 - }, - { - 0, - 10 - }, - { - 0, - 176 - }, - { - 2, - 1 - }, - { - 0, - 59 - }, - { - 2, - 1 - }, - { - 0, - 11 - }, - { - 0, - 192 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 75 - }, - { - 0, - 193 - }, - { - 2, - 1 - }, - { - 0, - 152 - }, - { - 0, - 137 - }, - { - 67, - 1 - }, - { - 34, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 28 - }, - { - 0, - 181 - }, - { - 2, - 1 - }, - { - 0, - 91 - }, - { - 0, - 194 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 44 - }, - { - 0, - 167 - }, - { - 2, - 1 - }, - { - 0, - 122 - }, - { - 0, - 195 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 60 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 208 - }, - { - 2, - 1 - }, - { - 0, - 182 - }, - { - 0, - 107 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 196 - }, - { - 0, - 76 - }, - { - 2, - 1 - }, - { - 0, - 153 - }, - { - 0, - 168 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 138 - }, - { - 0, - 197 - }, - { - 2, - 1 - }, - { - 0, - 92 - }, - { - 0, - 209 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 183 - }, - { - 0, - 123 - }, - { - 2, - 1 - }, - { - 0, - 29 - }, - { - 0, - 210 - }, - { - 9, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 45 - }, - { - 0, - 211 - }, - { - 2, - 1 - }, - { - 0, - 61 - }, - { - 0, - 198 - }, - { - 85, - 250 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 108 - }, - { - 0, - 169 - }, - { - 2, - 1 - }, - { - 0, - 154 - }, - { - 0, - 212 - }, - { - 32, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 184 - }, - { - 0, - 139 - }, - { - 2, - 1 - }, - { - 0, - 77 - }, - { - 0, - 199 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 124 - }, - { - 0, - 213 - }, - { - 2, - 1 - }, - { - 0, - 93 - }, - { - 0, - 225 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 30 - }, - { - 0, - 226 - }, - { - 2, - 1 - }, - { - 0, - 170 - }, - { - 0, - 185 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 155 - }, - { - 0, - 227 - }, - { - 2, - 1 - }, - { - 0, - 214 - }, - { - 0, - 109 - }, - { - 20, - 1 - }, - { - 10, - 1 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 62 - }, - { - 2, - 1 - }, - { - 0, - 46 - }, - { - 0, - 78 - }, - { - 2, - 1 - }, - { - 0, - 200 - }, - { - 0, - 140 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 228 - }, - { - 0, - 215 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 125 - }, - { - 0, - 171 - }, - { - 0, - 229 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 186 - }, - { - 0, - 94 - }, - { - 2, - 1 - }, - { - 0, - 201 - }, - { - 2, - 1 - }, - { - 0, - 156 - }, - { - 0, - 110 - }, - { - 8, - 1 - }, - { - 2, - 1 - }, - { - 0, - 230 - }, - { - 2, - 1 - }, - { - 0, - 13 - }, - { - 2, - 1 - }, - { - 0, - 224 - }, - { - 0, - 14 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 216 - }, - { - 0, - 141 - }, - { - 2, - 1 - }, - { - 0, - 187 - }, - { - 0, - 202 - }, - { - 74, - 1 - }, - { - 2, - 1 - }, - { - 0, - 255 - }, - { - 64, - 1 - }, - { - 58, - 1 - }, - { - 32, - 1 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 172 - }, - { - 0, - 231 - }, - { - 2, - 1 - }, - { - 0, - 126 - }, - { - 0, - 217 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 157 - }, - { - 0, - 232 - }, - { - 2, - 1 - }, - { - 0, - 142 - }, - { - 0, - 203 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 188 - }, - { - 0, - 218 - }, - { - 2, - 1 - }, - { - 0, - 173 - }, - { - 0, - 233 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 158 - }, - { - 0, - 204 - }, - { - 2, - 1 - }, - { - 0, - 219 - }, - { - 0, - 189 - }, - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 234 - }, - { - 0, - 174 - }, - { - 2, - 1 - }, - { - 0, - 220 - }, - { - 0, - 205 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 235 - }, - { - 0, - 190 - }, - { - 2, - 1 - }, - { - 0, - 221 - }, - { - 0, - 236 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 206 - }, - { - 0, - 237 - }, - { - 2, - 1 - }, - { - 0, - 222 - }, - { - 0, - 238 - }, - { - 0, - 15 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 240 - }, - { - 0, - 31 - }, - { - 0, - 241 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 242 - }, - { - 0, - 47 - }, - { - 2, - 1 - }, - { - 0, - 243 - }, - { - 0, - 63 - }, - { - 18, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 244 - }, - { - 0, - 79 - }, - { - 2, - 1 - }, - { - 0, - 245 - }, - { - 0, - 95 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 246 - }, - { - 0, - 111 - }, - { - 2, - 1 - }, - { - 0, - 247 - }, - { - 2, - 1 - }, - { - 0, - 127 - }, - { - 0, - 143 - }, - { - 10, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 248 - }, - { - 0, - 249 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 159 - }, - { - 0, - 175 - }, - { - 0, - 250 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 251 - }, - { - 0, - 191 - }, - { - 2, - 1 - }, - { - 0, - 252 - }, - { - 0, - 207 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 253 - }, - { - 0, - 223 - }, - { - 2, - 1 - }, - { - 0, - 254 - }, - { - 0, - 239 - } - }; - Int23 = new[,] - { - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 8 - }, - { - 0, - 4 - }, - { - 2, - 1 - }, - { - 0, - 1 - }, - { - 0, - 2 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 10 - }, - { - 2, - 1 - }, - { - 0, - 3 - }, - { - 0, - 6 - }, - { - 6, - 1 - }, - { - 2, - 1 - }, - { - 0, - 9 - }, - { - 2, - 1 - }, - { - 0, - 5 - }, - { - 0, - 7 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 14 - }, - { - 0, - 13 - }, - { - 2, - 1 - }, - { - 0, - 15 - }, - { - 0, - 11 - } - }; - Int24 = new[,] - { - { - 16, - 1 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 0 - }, - { - 0, - 1 - }, - { - 2, - 1 - }, - { - 0, - 2 - }, - { - 0, - 3 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 4 - }, - { - 0, - 5 - }, - { - 2, - 1 - }, - { - 0, - 6 - }, - { - 0, - 7 - }, - { - 8, - 1 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 8 - }, - { - 0, - 9 - }, - { - 2, - 1 - }, - { - 0, - 10 - }, - { - 0, - 11 - }, - { - 4, - 1 - }, - { - 2, - 1 - }, - { - 0, - 12 - }, - { - 0, - 13 - }, - { - 2, - 1 - }, - { - 0, - 14 - }, - { - 0, - 15 - } - }; - } - } -} + static Class103() + { + // Note: this type is marked as 'beforefieldinit'. + var array = new int[1, 2]; + Int5 = array; + Int6 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 17 + } + }; + Int7 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 33 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 2 + }, + { + 0, + 34 + } + }; + Int8 = new[,] + { + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 33 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 2 + }, + { + 0, + 34 + } + }; + var array2 = new int[1, 2]; + Int9 = array2; + Int10 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 0, + 48 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 19 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 2, + 1 + }, + { + 0, + 35 + }, + { + 0, + 51 + } + }; + Int11 = new[,] + { + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 0, + 16 + }, + { + 0, + 17 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 33 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 2 + }, + { + 0, + 34 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 50 + }, + { + 2, + 1 + }, + { + 0, + 35 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 51 + } + }; + Int12 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 0, + 33 + }, + { + 18, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 0, + 48 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 50 + }, + { + 2, + 1 + }, + { + 0, + 35 + }, + { + 0, + 4 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 65 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 2, + 1 + }, + { + 0, + 66 + }, + { + 0, + 36 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 67 + }, + { + 0, + 80 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 52 + }, + { + 0, + 5 + }, + { + 0, + 81 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 21 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 53 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 83 + }, + { + 0, + 84 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 0, + 85 + } + }; + Int13 = new[,] + { + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 14, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 3 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 4 + }, + { + 2, + 1 + }, + { + 0, + 65 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 0, + 66 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 36 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 80 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 0, + 81 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 21 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 82 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 37 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 53 + }, + { + 2, + 1 + }, + { + 0, + 83 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 2, + 1 + }, + { + 0, + 84 + }, + { + 0, + 85 + } + }; + Int14 = new[,] + { + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 0, + 16 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 17 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 33 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 2 + }, + { + 0, + 34 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 3 + }, + { + 0, + 49 + }, + { + 2, + 1 + }, + { + 0, + 19 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 65 + }, + { + 0, + 20 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 51 + }, + { + 2, + 1 + }, + { + 0, + 66 + }, + { + 0, + 36 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 4 + }, + { + 0, + 80 + }, + { + 0, + 67 + }, + { + 2, + 1 + }, + { + 0, + 52 + }, + { + 0, + 81 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 21 + }, + { + 0, + 82 + }, + { + 2, + 1 + }, + { + 0, + 37 + }, + { + 0, + 68 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 84 + }, + { + 0, + 83 + }, + { + 2, + 1 + }, + { + 0, + 53 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 0, + 85 + } + }; + Int15 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 10, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 28, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 0, + 48 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 50 + }, + { + 2, + 1 + }, + { + 0, + 35 + }, + { + 0, + 64 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 65 + }, + { + 0, + 20 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 4 + }, + { + 0, + 51 + }, + { + 2, + 1 + }, + { + 0, + 66 + }, + { + 0, + 36 + }, + { + 28, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 80 + }, + { + 0, + 5 + }, + { + 0, + 96 + }, + { + 2, + 1 + }, + { + 0, + 97 + }, + { + 0, + 22 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 0, + 81 + }, + { + 2, + 1 + }, + { + 0, + 21 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 38 + }, + { + 0, + 54 + }, + { + 0, + 113 + }, + { + 20, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 23 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 83 + }, + { + 0, + 6 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 53 + }, + { + 0, + 69 + }, + { + 0, + 98 + }, + { + 2, + 1 + }, + { + 0, + 112 + }, + { + 2, + 1 + }, + { + 0, + 7 + }, + { + 0, + 100 + }, + { + 14, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 114 + }, + { + 0, + 39 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 99 + }, + { + 2, + 1 + }, + { + 0, + 84 + }, + { + 0, + 85 + }, + { + 2, + 1 + }, + { + 0, + 70 + }, + { + 0, + 115 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 55 + }, + { + 0, + 101 + }, + { + 2, + 1 + }, + { + 0, + 86 + }, + { + 0, + 116 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 71 + }, + { + 2, + 1 + }, + { + 0, + 102 + }, + { + 0, + 117 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 87 + }, + { + 0, + 118 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 119 + } + }; + Int16 = new[,] + { + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 0, + 18 + }, + { + 24, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 3 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 4 + }, + { + 2, + 1 + }, + { + 0, + 65 + }, + { + 0, + 20 + }, + { + 30, + 1 + }, + { + 16, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 66 + }, + { + 0, + 36 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 67 + }, + { + 0, + 80 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 52 + }, + { + 0, + 81 + }, + { + 0, + 97 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 22 + }, + { + 2, + 1 + }, + { + 0, + 6 + }, + { + 0, + 38 + }, + { + 2, + 1 + }, + { + 0, + 98 + }, + { + 2, + 1 + }, + { + 0, + 21 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 82 + }, + { + 16, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 37 + }, + { + 0, + 68 + }, + { + 0, + 96 + }, + { + 2, + 1 + }, + { + 0, + 99 + }, + { + 0, + 54 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 112 + }, + { + 0, + 23 + }, + { + 0, + 113 + }, + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 7 + }, + { + 0, + 100 + }, + { + 0, + 114 + }, + { + 2, + 1 + }, + { + 0, + 39 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 83 + }, + { + 0, + 53 + }, + { + 2, + 1 + }, + { + 0, + 84 + }, + { + 0, + 69 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 70 + }, + { + 0, + 115 + }, + { + 2, + 1 + }, + { + 0, + 55 + }, + { + 2, + 1 + }, + { + 0, + 101 + }, + { + 0, + 86 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 85 + }, + { + 0, + 87 + }, + { + 0, + 116 + }, + { + 2, + 1 + }, + { + 0, + 71 + }, + { + 0, + 102 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 118 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 119 + } + }; + Int17 = new[,] + { + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 16, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 0, + 49 + }, + { + 2, + 1 + }, + { + 0, + 19 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 64 + }, + { + 26, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 2, + 1 + }, + { + 0, + 65 + }, + { + 0, + 51 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 0, + 66 + }, + { + 2, + 1 + }, + { + 0, + 36 + }, + { + 2, + 1 + }, + { + 0, + 4 + }, + { + 0, + 80 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 2, + 1 + }, + { + 0, + 81 + }, + { + 0, + 21 + }, + { + 28, + 1 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 2, + 1 + }, + { + 0, + 83 + }, + { + 0, + 53 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 96 + }, + { + 0, + 22 + }, + { + 0, + 97 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 98 + }, + { + 0, + 38 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 6 + }, + { + 0, + 68 + }, + { + 2, + 1 + }, + { + 0, + 84 + }, + { + 0, + 69 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 99 + }, + { + 0, + 54 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 112 + }, + { + 0, + 7 + }, + { + 0, + 113 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 23 + }, + { + 0, + 100 + }, + { + 2, + 1 + }, + { + 0, + 70 + }, + { + 0, + 114 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 39 + }, + { + 2, + 1 + }, + { + 0, + 85 + }, + { + 0, + 115 + }, + { + 2, + 1 + }, + { + 0, + 55 + }, + { + 0, + 86 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 101 + }, + { + 0, + 116 + }, + { + 2, + 1 + }, + { + 0, + 71 + }, + { + 0, + 102 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 87 + }, + { + 2, + 1 + }, + { + 0, + 118 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 119 + } + }; + Int18 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 17 + }, + { + 28, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 0, + 48 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 49 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 19 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 4 + }, + { + 0, + 65 + }, + { + 70, + 1 + }, + { + 28, + 1 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 66 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 36 + }, + { + 0, + 80 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 81 + }, + { + 0, + 21 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 82 + }, + { + 2, + 1 + }, + { + 0, + 37 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 83 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 96 + }, + { + 0, + 6 + }, + { + 2, + 1 + }, + { + 0, + 97 + }, + { + 0, + 22 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 128 + }, + { + 0, + 8 + }, + { + 0, + 129 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 53 + }, + { + 0, + 98 + }, + { + 2, + 1 + }, + { + 0, + 38 + }, + { + 0, + 84 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 0, + 99 + }, + { + 2, + 1 + }, + { + 0, + 54 + }, + { + 0, + 112 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 7 + }, + { + 0, + 85 + }, + { + 0, + 113 + }, + { + 2, + 1 + }, + { + 0, + 23 + }, + { + 2, + 1 + }, + { + 0, + 39 + }, + { + 0, + 55 + }, + { + 72, + 1 + }, + { + 24, + 1 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 24 + }, + { + 0, + 130 + }, + { + 2, + 1 + }, + { + 0, + 40 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 100 + }, + { + 0, + 70 + }, + { + 0, + 114 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 132 + }, + { + 0, + 72 + }, + { + 2, + 1 + }, + { + 0, + 144 + }, + { + 0, + 9 + }, + { + 2, + 1 + }, + { + 0, + 145 + }, + { + 0, + 25 + }, + { + 24, + 1 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 115 + }, + { + 0, + 101 + }, + { + 2, + 1 + }, + { + 0, + 86 + }, + { + 0, + 116 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 71 + }, + { + 0, + 102 + }, + { + 0, + 131 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 56 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 87 + }, + { + 2, + 1 + }, + { + 0, + 146 + }, + { + 0, + 41 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 133 + }, + { + 2, + 1 + }, + { + 0, + 88 + }, + { + 0, + 57 + }, + { + 2, + 1 + }, + { + 0, + 147 + }, + { + 2, + 1 + }, + { + 0, + 73 + }, + { + 0, + 134 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 160 + }, + { + 2, + 1 + }, + { + 0, + 104 + }, + { + 0, + 10 + }, + { + 2, + 1 + }, + { + 0, + 161 + }, + { + 0, + 26 + }, + { + 68, + 1 + }, + { + 24, + 1 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 162 + }, + { + 0, + 42 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 149 + }, + { + 0, + 89 + }, + { + 2, + 1 + }, + { + 0, + 163 + }, + { + 0, + 58 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 74 + }, + { + 0, + 150 + }, + { + 2, + 1 + }, + { + 0, + 176 + }, + { + 0, + 11 + }, + { + 2, + 1 + }, + { + 0, + 177 + }, + { + 0, + 27 + }, + { + 20, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 178 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 118 + }, + { + 0, + 119 + }, + { + 0, + 148 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 135 + }, + { + 0, + 120 + }, + { + 0, + 164 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 105 + }, + { + 0, + 165 + }, + { + 0, + 43 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 90 + }, + { + 0, + 136 + }, + { + 0, + 179 + }, + { + 2, + 1 + }, + { + 0, + 59 + }, + { + 2, + 1 + }, + { + 0, + 121 + }, + { + 0, + 166 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 106 + }, + { + 0, + 180 + }, + { + 0, + 192 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 152 + }, + { + 0, + 193 + }, + { + 60, + 1 + }, + { + 22, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 28 + }, + { + 2, + 1 + }, + { + 0, + 137 + }, + { + 0, + 181 + }, + { + 2, + 1 + }, + { + 0, + 91 + }, + { + 0, + 194 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 44 + }, + { + 0, + 60 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 182 + }, + { + 0, + 107 + }, + { + 2, + 1 + }, + { + 0, + 196 + }, + { + 0, + 76 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 168 + }, + { + 0, + 138 + }, + { + 2, + 1 + }, + { + 0, + 208 + }, + { + 0, + 13 + }, + { + 2, + 1 + }, + { + 0, + 209 + }, + { + 2, + 1 + }, + { + 0, + 75 + }, + { + 2, + 1 + }, + { + 0, + 151 + }, + { + 0, + 167 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 195 + }, + { + 2, + 1 + }, + { + 0, + 122 + }, + { + 0, + 153 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 197 + }, + { + 0, + 92 + }, + { + 0, + 183 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 29 + }, + { + 0, + 210 + }, + { + 2, + 1 + }, + { + 0, + 45 + }, + { + 2, + 1 + }, + { + 0, + 123 + }, + { + 0, + 211 + }, + { + 52, + 1 + }, + { + 28, + 1 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 61 + }, + { + 0, + 198 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 108 + }, + { + 0, + 169 + }, + { + 2, + 1 + }, + { + 0, + 154 + }, + { + 0, + 212 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 184 + }, + { + 0, + 139 + }, + { + 2, + 1 + }, + { + 0, + 77 + }, + { + 0, + 199 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 124 + }, + { + 0, + 213 + }, + { + 2, + 1 + }, + { + 0, + 93 + }, + { + 0, + 224 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 225 + }, + { + 0, + 30 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 14 + }, + { + 0, + 46 + }, + { + 0, + 226 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 227 + }, + { + 0, + 109 + }, + { + 2, + 1 + }, + { + 0, + 140 + }, + { + 0, + 228 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 229 + }, + { + 0, + 186 + }, + { + 0, + 240 + }, + { + 38, + 1 + }, + { + 16, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 241 + }, + { + 0, + 31 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 170 + }, + { + 0, + 155 + }, + { + 0, + 185 + }, + { + 2, + 1 + }, + { + 0, + 62 + }, + { + 2, + 1 + }, + { + 0, + 214 + }, + { + 0, + 200 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 78 + }, + { + 2, + 1 + }, + { + 0, + 215 + }, + { + 0, + 125 + }, + { + 2, + 1 + }, + { + 0, + 171 + }, + { + 2, + 1 + }, + { + 0, + 94 + }, + { + 0, + 201 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 15 + }, + { + 2, + 1 + }, + { + 0, + 156 + }, + { + 0, + 110 + }, + { + 2, + 1 + }, + { + 0, + 242 + }, + { + 0, + 47 + }, + { + 32, + 1 + }, + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 216 + }, + { + 0, + 141 + }, + { + 0, + 63 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 243 + }, + { + 2, + 1 + }, + { + 0, + 230 + }, + { + 0, + 202 + }, + { + 2, + 1 + }, + { + 0, + 244 + }, + { + 0, + 79 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 187 + }, + { + 0, + 172 + }, + { + 2, + 1 + }, + { + 0, + 231 + }, + { + 0, + 245 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 217 + }, + { + 0, + 157 + }, + { + 2, + 1 + }, + { + 0, + 95 + }, + { + 0, + 232 + }, + { + 30, + 1 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 111 + }, + { + 2, + 1 + }, + { + 0, + 246 + }, + { + 0, + 203 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 188 + }, + { + 0, + 173 + }, + { + 0, + 218 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 247 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 126 + }, + { + 0, + 127 + }, + { + 0, + 142 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 158 + }, + { + 0, + 174 + }, + { + 0, + 204 + }, + { + 2, + 1 + }, + { + 0, + 248 + }, + { + 0, + 143 + }, + { + 18, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 219 + }, + { + 0, + 189 + }, + { + 2, + 1 + }, + { + 0, + 234 + }, + { + 0, + 249 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 159 + }, + { + 0, + 235 + }, + { + 2, + 1 + }, + { + 0, + 190 + }, + { + 2, + 1 + }, + { + 0, + 205 + }, + { + 0, + 250 + }, + { + 14, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 221 + }, + { + 0, + 236 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 233 + }, + { + 0, + 175 + }, + { + 0, + 220 + }, + { + 2, + 1 + }, + { + 0, + 206 + }, + { + 0, + 251 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 191 + }, + { + 0, + 222 + }, + { + 2, + 1 + }, + { + 0, + 207 + }, + { + 0, + 238 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 223 + }, + { + 0, + 239 + }, + { + 2, + 1 + }, + { + 0, + 255 + }, + { + 2, + 1 + }, + { + 0, + 237 + }, + { + 2, + 1 + }, + { + 0, + 253 + }, + { + 2, + 1 + }, + { + 0, + 252 + }, + { + 0, + 254 + } + }; + var array3 = new int[1, 2]; + Int19 = array3; + Int20 = new[,] + { + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 17 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 50, + 1 + }, + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 49 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 19 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 64 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 4 + }, + { + 0, + 20 + }, + { + 0, + 65 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 66 + }, + { + 2, + 1 + }, + { + 0, + 36 + }, + { + 0, + 67 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 52 + }, + { + 2, + 1 + }, + { + 0, + 80 + }, + { + 0, + 5 + }, + { + 2, + 1 + }, + { + 0, + 81 + }, + { + 0, + 21 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 83 + }, + { + 0, + 97 + }, + { + 90, + 1 + }, + { + 36, + 1 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 53 + }, + { + 2, + 1 + }, + { + 0, + 96 + }, + { + 0, + 6 + }, + { + 2, + 1 + }, + { + 0, + 22 + }, + { + 0, + 98 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 38 + }, + { + 0, + 84 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 0, + 99 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 54 + }, + { + 2, + 1 + }, + { + 0, + 112 + }, + { + 0, + 7 + }, + { + 2, + 1 + }, + { + 0, + 113 + }, + { + 0, + 85 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 23 + }, + { + 0, + 100 + }, + { + 2, + 1 + }, + { + 0, + 114 + }, + { + 0, + 39 + }, + { + 24, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 70 + }, + { + 0, + 115 + }, + { + 2, + 1 + }, + { + 0, + 55 + }, + { + 0, + 101 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 86 + }, + { + 0, + 128 + }, + { + 2, + 1 + }, + { + 0, + 8 + }, + { + 0, + 116 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 129 + }, + { + 0, + 24 + }, + { + 2, + 1 + }, + { + 0, + 130 + }, + { + 0, + 40 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 71 + }, + { + 0, + 102 + }, + { + 2, + 1 + }, + { + 0, + 131 + }, + { + 0, + 56 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 87 + }, + { + 2, + 1 + }, + { + 0, + 132 + }, + { + 0, + 72 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 144 + }, + { + 0, + 25 + }, + { + 0, + 145 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 146 + }, + { + 0, + 118 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 41 + }, + { + 92, + 1 + }, + { + 36, + 1 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 133 + }, + { + 0, + 88 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 9 + }, + { + 0, + 119 + }, + { + 0, + 147 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 57 + }, + { + 0, + 148 + }, + { + 2, + 1 + }, + { + 0, + 73 + }, + { + 0, + 134 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 104 + }, + { + 2, + 1 + }, + { + 0, + 160 + }, + { + 0, + 10 + }, + { + 2, + 1 + }, + { + 0, + 161 + }, + { + 0, + 26 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 162 + }, + { + 0, + 42 + }, + { + 2, + 1 + }, + { + 0, + 149 + }, + { + 0, + 89 + }, + { + 26, + 1 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 163 + }, + { + 2, + 1 + }, + { + 0, + 58 + }, + { + 0, + 135 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 120 + }, + { + 0, + 164 + }, + { + 2, + 1 + }, + { + 0, + 74 + }, + { + 0, + 150 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 105 + }, + { + 0, + 176 + }, + { + 0, + 177 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 27 + }, + { + 0, + 165 + }, + { + 0, + 178 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 90 + }, + { + 0, + 43 + }, + { + 2, + 1 + }, + { + 0, + 136 + }, + { + 0, + 151 + }, + { + 2, + 1 + }, + { + 0, + 179 + }, + { + 2, + 1 + }, + { + 0, + 121 + }, + { + 0, + 59 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 106 + }, + { + 0, + 180 + }, + { + 2, + 1 + }, + { + 0, + 75 + }, + { + 0, + 193 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 152 + }, + { + 0, + 137 + }, + { + 2, + 1 + }, + { + 0, + 28 + }, + { + 0, + 181 + }, + { + 80, + 1 + }, + { + 34, + 1 + }, + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 91 + }, + { + 0, + 44 + }, + { + 0, + 194 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 11 + }, + { + 0, + 192 + }, + { + 0, + 166 + }, + { + 2, + 1 + }, + { + 0, + 167 + }, + { + 0, + 122 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 195 + }, + { + 0, + 60 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 153 + }, + { + 0, + 182 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 107 + }, + { + 0, + 196 + }, + { + 2, + 1 + }, + { + 0, + 76 + }, + { + 0, + 168 + }, + { + 20, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 138 + }, + { + 0, + 197 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 208 + }, + { + 0, + 92 + }, + { + 0, + 209 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 183 + }, + { + 0, + 123 + }, + { + 2, + 1 + }, + { + 0, + 29 + }, + { + 2, + 1 + }, + { + 0, + 13 + }, + { + 0, + 45 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 210 + }, + { + 0, + 211 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 61 + }, + { + 0, + 198 + }, + { + 2, + 1 + }, + { + 0, + 108 + }, + { + 0, + 169 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 154 + }, + { + 0, + 184 + }, + { + 0, + 212 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 139 + }, + { + 0, + 77 + }, + { + 2, + 1 + }, + { + 0, + 199 + }, + { + 0, + 124 + }, + { + 68, + 1 + }, + { + 34, + 1 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 213 + }, + { + 0, + 93 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 224 + }, + { + 0, + 14 + }, + { + 0, + 225 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 30 + }, + { + 0, + 226 + }, + { + 2, + 1 + }, + { + 0, + 170 + }, + { + 0, + 46 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 185 + }, + { + 0, + 155 + }, + { + 2, + 1 + }, + { + 0, + 227 + }, + { + 0, + 214 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 109 + }, + { + 0, + 62 + }, + { + 2, + 1 + }, + { + 0, + 200 + }, + { + 0, + 140 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 228 + }, + { + 0, + 78 + }, + { + 2, + 1 + }, + { + 0, + 215 + }, + { + 0, + 125 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 229 + }, + { + 0, + 186 + }, + { + 2, + 1 + }, + { + 0, + 171 + }, + { + 0, + 94 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 201 + }, + { + 0, + 156 + }, + { + 2, + 1 + }, + { + 0, + 241 + }, + { + 0, + 31 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 240 + }, + { + 0, + 110 + }, + { + 0, + 242 + }, + { + 2, + 1 + }, + { + 0, + 47 + }, + { + 0, + 230 + }, + { + 38, + 1 + }, + { + 18, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 216 + }, + { + 0, + 243 + }, + { + 2, + 1 + }, + { + 0, + 63 + }, + { + 0, + 244 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 79 + }, + { + 2, + 1 + }, + { + 0, + 141 + }, + { + 0, + 217 + }, + { + 2, + 1 + }, + { + 0, + 187 + }, + { + 0, + 202 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 172 + }, + { + 0, + 231 + }, + { + 2, + 1 + }, + { + 0, + 126 + }, + { + 0, + 245 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 157 + }, + { + 0, + 95 + }, + { + 2, + 1 + }, + { + 0, + 232 + }, + { + 0, + 142 + }, + { + 2, + 1 + }, + { + 0, + 246 + }, + { + 0, + 203 + }, + { + 34, + 1 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 15 + }, + { + 0, + 174 + }, + { + 0, + 111 + }, + { + 2, + 1 + }, + { + 0, + 188 + }, + { + 0, + 218 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 173 + }, + { + 0, + 247 + }, + { + 2, + 1 + }, + { + 0, + 127 + }, + { + 0, + 233 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 158 + }, + { + 0, + 204 + }, + { + 2, + 1 + }, + { + 0, + 248 + }, + { + 0, + 143 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 219 + }, + { + 0, + 189 + }, + { + 2, + 1 + }, + { + 0, + 234 + }, + { + 0, + 249 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 159 + }, + { + 0, + 220 + }, + { + 2, + 1 + }, + { + 0, + 205 + }, + { + 0, + 235 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 190 + }, + { + 0, + 250 + }, + { + 2, + 1 + }, + { + 0, + 175 + }, + { + 0, + 221 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 236 + }, + { + 0, + 206 + }, + { + 0, + 251 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 191 + }, + { + 0, + 237 + }, + { + 2, + 1 + }, + { + 0, + 222 + }, + { + 0, + 252 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 207 + }, + { + 0, + 253 + }, + { + 0, + 238 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 223 + }, + { + 0, + 254 + }, + { + 2, + 1 + }, + { + 0, + 239 + }, + { + 0, + 255 + } + }; + Int21 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 16 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 17 + }, + { + 42, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 2, + 1 + }, + { + 0, + 33 + }, + { + 0, + 18 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 3 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 4 + }, + { + 0, + 65 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 2, + 1 + }, + { + 0, + 51 + }, + { + 0, + 66 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 36 + }, + { + 0, + 80 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 138, + 1 + }, + { + 40, + 1 + }, + { + 16, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 21 + }, + { + 0, + 81 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 53 + }, + { + 0, + 83 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 96 + }, + { + 0, + 6 + }, + { + 0, + 97 + }, + { + 2, + 1 + }, + { + 0, + 22 + }, + { + 0, + 98 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 38 + }, + { + 0, + 84 + }, + { + 2, + 1 + }, + { + 0, + 69 + }, + { + 0, + 99 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 54 + }, + { + 0, + 112 + }, + { + 0, + 113 + }, + { + 40, + 1 + }, + { + 18, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 23 + }, + { + 2, + 1 + }, + { + 0, + 7 + }, + { + 2, + 1 + }, + { + 0, + 85 + }, + { + 0, + 100 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 114 + }, + { + 0, + 39 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 70 + }, + { + 0, + 101 + }, + { + 0, + 115 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 55 + }, + { + 2, + 1 + }, + { + 0, + 86 + }, + { + 0, + 8 + }, + { + 2, + 1 + }, + { + 0, + 128 + }, + { + 0, + 129 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 24 + }, + { + 2, + 1 + }, + { + 0, + 116 + }, + { + 0, + 71 + }, + { + 2, + 1 + }, + { + 0, + 130 + }, + { + 2, + 1 + }, + { + 0, + 40 + }, + { + 0, + 102 + }, + { + 24, + 1 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 131 + }, + { + 0, + 56 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 132 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 72 + }, + { + 0, + 144 + }, + { + 0, + 145 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 25 + }, + { + 2, + 1 + }, + { + 0, + 9 + }, + { + 0, + 118 + }, + { + 2, + 1 + }, + { + 0, + 146 + }, + { + 0, + 41 + }, + { + 14, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 133 + }, + { + 0, + 88 + }, + { + 2, + 1 + }, + { + 0, + 147 + }, + { + 0, + 57 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 160 + }, + { + 0, + 10 + }, + { + 0, + 26 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 162 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 2, + 1 + }, + { + 0, + 87 + }, + { + 0, + 73 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 148 + }, + { + 2, + 1 + }, + { + 0, + 119 + }, + { + 0, + 134 + }, + { + 2, + 1 + }, + { + 0, + 161 + }, + { + 2, + 1 + }, + { + 0, + 104 + }, + { + 0, + 149 + }, + { + 220, + 1 + }, + { + 126, + 1 + }, + { + 50, + 1 + }, + { + 26, + 1 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 42 + }, + { + 2, + 1 + }, + { + 0, + 89 + }, + { + 0, + 58 + }, + { + 2, + 1 + }, + { + 0, + 163 + }, + { + 2, + 1 + }, + { + 0, + 135 + }, + { + 0, + 120 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 164 + }, + { + 0, + 74 + }, + { + 2, + 1 + }, + { + 0, + 150 + }, + { + 0, + 105 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 176 + }, + { + 0, + 11 + }, + { + 0, + 177 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 27 + }, + { + 0, + 178 + }, + { + 2, + 1 + }, + { + 0, + 43 + }, + { + 2, + 1 + }, + { + 0, + 165 + }, + { + 0, + 90 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 179 + }, + { + 2, + 1 + }, + { + 0, + 166 + }, + { + 0, + 106 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 180 + }, + { + 0, + 75 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 193 + }, + { + 30, + 1 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 181 + }, + { + 0, + 194 + }, + { + 0, + 44 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 167 + }, + { + 0, + 195 + }, + { + 2, + 1 + }, + { + 0, + 107 + }, + { + 0, + 196 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 29 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 136 + }, + { + 0, + 151 + }, + { + 0, + 59 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 209 + }, + { + 0, + 210 + }, + { + 2, + 1 + }, + { + 0, + 45 + }, + { + 0, + 211 + }, + { + 18, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 30 + }, + { + 0, + 46 + }, + { + 0, + 226 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 121 + }, + { + 0, + 152 + }, + { + 0, + 192 + }, + { + 2, + 1 + }, + { + 0, + 28 + }, + { + 2, + 1 + }, + { + 0, + 137 + }, + { + 0, + 91 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 60 + }, + { + 2, + 1 + }, + { + 0, + 122 + }, + { + 0, + 182 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 76 + }, + { + 0, + 153 + }, + { + 2, + 1 + }, + { + 0, + 168 + }, + { + 0, + 138 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 13 + }, + { + 2, + 1 + }, + { + 0, + 197 + }, + { + 0, + 92 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 61 + }, + { + 0, + 198 + }, + { + 2, + 1 + }, + { + 0, + 108 + }, + { + 0, + 154 + }, + { + 88, + 1 + }, + { + 86, + 1 + }, + { + 36, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 139 + }, + { + 0, + 77 + }, + { + 2, + 1 + }, + { + 0, + 199 + }, + { + 0, + 124 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 213 + }, + { + 0, + 93 + }, + { + 2, + 1 + }, + { + 0, + 224 + }, + { + 0, + 14 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 227 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 208 + }, + { + 0, + 183 + }, + { + 0, + 123 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 169 + }, + { + 0, + 184 + }, + { + 0, + 212 + }, + { + 2, + 1 + }, + { + 0, + 225 + }, + { + 2, + 1 + }, + { + 0, + 170 + }, + { + 0, + 185 + }, + { + 24, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 155 + }, + { + 0, + 214 + }, + { + 0, + 109 + }, + { + 2, + 1 + }, + { + 0, + 62 + }, + { + 0, + 200 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 140 + }, + { + 0, + 228 + }, + { + 0, + 78 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 215 + }, + { + 0, + 229 + }, + { + 2, + 1 + }, + { + 0, + 186 + }, + { + 0, + 171 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 156 + }, + { + 0, + 230 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 110 + }, + { + 0, + 216 + }, + { + 2, + 1 + }, + { + 0, + 141 + }, + { + 0, + 187 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 231 + }, + { + 0, + 157 + }, + { + 2, + 1 + }, + { + 0, + 232 + }, + { + 0, + 142 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 203 + }, + { + 0, + 188 + }, + { + 0, + 158 + }, + { + 0, + 241 + }, + { + 2, + 1 + }, + { + 0, + 31 + }, + { + 2, + 1 + }, + { + 0, + 15 + }, + { + 0, + 47 + }, + { + 66, + 1 + }, + { + 56, + 1 + }, + { + 2, + 1 + }, + { + 0, + 242 + }, + { + 52, + 1 + }, + { + 50, + 1 + }, + { + 20, + 1 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 189 + }, + { + 2, + 1 + }, + { + 0, + 94 + }, + { + 2, + 1 + }, + { + 0, + 125 + }, + { + 0, + 201 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 202 + }, + { + 2, + 1 + }, + { + 0, + 172 + }, + { + 0, + 126 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 218 + }, + { + 0, + 173 + }, + { + 0, + 204 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 174 + }, + { + 2, + 1 + }, + { + 0, + 219 + }, + { + 0, + 220 + }, + { + 2, + 1 + }, + { + 0, + 205 + }, + { + 0, + 190 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 235 + }, + { + 0, + 237 + }, + { + 0, + 238 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 217 + }, + { + 0, + 234 + }, + { + 0, + 233 + }, + { + 2, + 1 + }, + { + 0, + 222 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 221 + }, + { + 0, + 236 + }, + { + 0, + 206 + }, + { + 0, + 63 + }, + { + 0, + 240 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 243 + }, + { + 0, + 244 + }, + { + 2, + 1 + }, + { + 0, + 79 + }, + { + 2, + 1 + }, + { + 0, + 245 + }, + { + 0, + 95 + }, + { + 10, + 1 + }, + { + 2, + 1 + }, + { + 0, + 255 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 246 + }, + { + 0, + 111 + }, + { + 2, + 1 + }, + { + 0, + 247 + }, + { + 0, + 127 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 143 + }, + { + 2, + 1 + }, + { + 0, + 248 + }, + { + 0, + 249 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 159 + }, + { + 0, + 250 + }, + { + 0, + 175 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 251 + }, + { + 0, + 191 + }, + { + 2, + 1 + }, + { + 0, + 252 + }, + { + 0, + 207 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 253 + }, + { + 0, + 223 + }, + { + 2, + 1 + }, + { + 0, + 254 + }, + { + 0, + 239 + } + }; + Int22 = new[,] + { + { + 60, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 0, + 16 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 17 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 32 + }, + { + 0, + 2 + }, + { + 0, + 33 + }, + { + 2, + 1 + }, + { + 0, + 18 + }, + { + 2, + 1 + }, + { + 0, + 34 + }, + { + 2, + 1 + }, + { + 0, + 48 + }, + { + 0, + 3 + }, + { + 14, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 49 + }, + { + 0, + 19 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 50 + }, + { + 0, + 35 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 64 + }, + { + 0, + 4 + }, + { + 0, + 65 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 20 + }, + { + 0, + 51 + }, + { + 2, + 1 + }, + { + 0, + 66 + }, + { + 0, + 36 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 67 + }, + { + 0, + 52 + }, + { + 0, + 81 + }, + { + 6, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 80 + }, + { + 0, + 5 + }, + { + 0, + 21 + }, + { + 2, + 1 + }, + { + 0, + 82 + }, + { + 0, + 37 + }, + { + 250, + 1 + }, + { + 98, + 1 + }, + { + 34, + 1 + }, + { + 18, + 1 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 68 + }, + { + 0, + 83 + }, + { + 2, + 1 + }, + { + 0, + 53 + }, + { + 2, + 1 + }, + { + 0, + 96 + }, + { + 0, + 6 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 97 + }, + { + 0, + 22 + }, + { + 2, + 1 + }, + { + 0, + 98 + }, + { + 0, + 38 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 84 + }, + { + 0, + 69 + }, + { + 2, + 1 + }, + { + 0, + 99 + }, + { + 0, + 54 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 113 + }, + { + 0, + 85 + }, + { + 2, + 1 + }, + { + 0, + 100 + }, + { + 0, + 70 + }, + { + 32, + 1 + }, + { + 14, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 114 + }, + { + 2, + 1 + }, + { + 0, + 39 + }, + { + 0, + 55 + }, + { + 2, + 1 + }, + { + 0, + 115 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 112 + }, + { + 0, + 7 + }, + { + 0, + 23 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 101 + }, + { + 0, + 86 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 128 + }, + { + 0, + 8 + }, + { + 0, + 129 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 116 + }, + { + 0, + 71 + }, + { + 2, + 1 + }, + { + 0, + 24 + }, + { + 0, + 130 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 40 + }, + { + 0, + 102 + }, + { + 2, + 1 + }, + { + 0, + 131 + }, + { + 0, + 56 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 117 + }, + { + 0, + 87 + }, + { + 2, + 1 + }, + { + 0, + 132 + }, + { + 0, + 72 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 145 + }, + { + 0, + 25 + }, + { + 2, + 1 + }, + { + 0, + 146 + }, + { + 0, + 118 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 103 + }, + { + 0, + 41 + }, + { + 2, + 1 + }, + { + 0, + 133 + }, + { + 0, + 88 + }, + { + 92, + 1 + }, + { + 34, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 147 + }, + { + 0, + 57 + }, + { + 2, + 1 + }, + { + 0, + 148 + }, + { + 0, + 73 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 119 + }, + { + 0, + 134 + }, + { + 2, + 1 + }, + { + 0, + 104 + }, + { + 0, + 161 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 162 + }, + { + 0, + 42 + }, + { + 2, + 1 + }, + { + 0, + 149 + }, + { + 0, + 89 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 163 + }, + { + 0, + 58 + }, + { + 2, + 1 + }, + { + 0, + 135 + }, + { + 2, + 1 + }, + { + 0, + 120 + }, + { + 0, + 74 + }, + { + 22, + 1 + }, + { + 12, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 164 + }, + { + 0, + 150 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 105 + }, + { + 0, + 177 + }, + { + 2, + 1 + }, + { + 0, + 27 + }, + { + 0, + 165 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 178 + }, + { + 2, + 1 + }, + { + 0, + 90 + }, + { + 0, + 43 + }, + { + 2, + 1 + }, + { + 0, + 136 + }, + { + 0, + 179 + }, + { + 16, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 144 + }, + { + 2, + 1 + }, + { + 0, + 9 + }, + { + 0, + 160 + }, + { + 2, + 1 + }, + { + 0, + 151 + }, + { + 0, + 121 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 166 + }, + { + 0, + 106 + }, + { + 0, + 180 + }, + { + 12, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 26 + }, + { + 2, + 1 + }, + { + 0, + 10 + }, + { + 0, + 176 + }, + { + 2, + 1 + }, + { + 0, + 59 + }, + { + 2, + 1 + }, + { + 0, + 11 + }, + { + 0, + 192 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 75 + }, + { + 0, + 193 + }, + { + 2, + 1 + }, + { + 0, + 152 + }, + { + 0, + 137 + }, + { + 67, + 1 + }, + { + 34, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 28 + }, + { + 0, + 181 + }, + { + 2, + 1 + }, + { + 0, + 91 + }, + { + 0, + 194 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 44 + }, + { + 0, + 167 + }, + { + 2, + 1 + }, + { + 0, + 122 + }, + { + 0, + 195 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 60 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 208 + }, + { + 2, + 1 + }, + { + 0, + 182 + }, + { + 0, + 107 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 196 + }, + { + 0, + 76 + }, + { + 2, + 1 + }, + { + 0, + 153 + }, + { + 0, + 168 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 138 + }, + { + 0, + 197 + }, + { + 2, + 1 + }, + { + 0, + 92 + }, + { + 0, + 209 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 183 + }, + { + 0, + 123 + }, + { + 2, + 1 + }, + { + 0, + 29 + }, + { + 0, + 210 + }, + { + 9, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 45 + }, + { + 0, + 211 + }, + { + 2, + 1 + }, + { + 0, + 61 + }, + { + 0, + 198 + }, + { + 85, + 250 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 108 + }, + { + 0, + 169 + }, + { + 2, + 1 + }, + { + 0, + 154 + }, + { + 0, + 212 + }, + { + 32, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 184 + }, + { + 0, + 139 + }, + { + 2, + 1 + }, + { + 0, + 77 + }, + { + 0, + 199 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 124 + }, + { + 0, + 213 + }, + { + 2, + 1 + }, + { + 0, + 93 + }, + { + 0, + 225 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 30 + }, + { + 0, + 226 + }, + { + 2, + 1 + }, + { + 0, + 170 + }, + { + 0, + 185 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 155 + }, + { + 0, + 227 + }, + { + 2, + 1 + }, + { + 0, + 214 + }, + { + 0, + 109 + }, + { + 20, + 1 + }, + { + 10, + 1 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 62 + }, + { + 2, + 1 + }, + { + 0, + 46 + }, + { + 0, + 78 + }, + { + 2, + 1 + }, + { + 0, + 200 + }, + { + 0, + 140 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 228 + }, + { + 0, + 215 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 125 + }, + { + 0, + 171 + }, + { + 0, + 229 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 186 + }, + { + 0, + 94 + }, + { + 2, + 1 + }, + { + 0, + 201 + }, + { + 2, + 1 + }, + { + 0, + 156 + }, + { + 0, + 110 + }, + { + 8, + 1 + }, + { + 2, + 1 + }, + { + 0, + 230 + }, + { + 2, + 1 + }, + { + 0, + 13 + }, + { + 2, + 1 + }, + { + 0, + 224 + }, + { + 0, + 14 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 216 + }, + { + 0, + 141 + }, + { + 2, + 1 + }, + { + 0, + 187 + }, + { + 0, + 202 + }, + { + 74, + 1 + }, + { + 2, + 1 + }, + { + 0, + 255 + }, + { + 64, + 1 + }, + { + 58, + 1 + }, + { + 32, + 1 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 172 + }, + { + 0, + 231 + }, + { + 2, + 1 + }, + { + 0, + 126 + }, + { + 0, + 217 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 157 + }, + { + 0, + 232 + }, + { + 2, + 1 + }, + { + 0, + 142 + }, + { + 0, + 203 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 188 + }, + { + 0, + 218 + }, + { + 2, + 1 + }, + { + 0, + 173 + }, + { + 0, + 233 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 158 + }, + { + 0, + 204 + }, + { + 2, + 1 + }, + { + 0, + 219 + }, + { + 0, + 189 + }, + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 234 + }, + { + 0, + 174 + }, + { + 2, + 1 + }, + { + 0, + 220 + }, + { + 0, + 205 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 235 + }, + { + 0, + 190 + }, + { + 2, + 1 + }, + { + 0, + 221 + }, + { + 0, + 236 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 206 + }, + { + 0, + 237 + }, + { + 2, + 1 + }, + { + 0, + 222 + }, + { + 0, + 238 + }, + { + 0, + 15 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 240 + }, + { + 0, + 31 + }, + { + 0, + 241 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 242 + }, + { + 0, + 47 + }, + { + 2, + 1 + }, + { + 0, + 243 + }, + { + 0, + 63 + }, + { + 18, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 244 + }, + { + 0, + 79 + }, + { + 2, + 1 + }, + { + 0, + 245 + }, + { + 0, + 95 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 246 + }, + { + 0, + 111 + }, + { + 2, + 1 + }, + { + 0, + 247 + }, + { + 2, + 1 + }, + { + 0, + 127 + }, + { + 0, + 143 + }, + { + 10, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 248 + }, + { + 0, + 249 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 159 + }, + { + 0, + 175 + }, + { + 0, + 250 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 251 + }, + { + 0, + 191 + }, + { + 2, + 1 + }, + { + 0, + 252 + }, + { + 0, + 207 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 253 + }, + { + 0, + 223 + }, + { + 2, + 1 + }, + { + 0, + 254 + }, + { + 0, + 239 + } + }; + Int23 = new[,] + { + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 8 + }, + { + 0, + 4 + }, + { + 2, + 1 + }, + { + 0, + 1 + }, + { + 0, + 2 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 10 + }, + { + 2, + 1 + }, + { + 0, + 3 + }, + { + 0, + 6 + }, + { + 6, + 1 + }, + { + 2, + 1 + }, + { + 0, + 9 + }, + { + 2, + 1 + }, + { + 0, + 5 + }, + { + 0, + 7 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 14 + }, + { + 0, + 13 + }, + { + 2, + 1 + }, + { + 0, + 15 + }, + { + 0, + 11 + } + }; + Int24 = new[,] + { + { + 16, + 1 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 0 + }, + { + 0, + 1 + }, + { + 2, + 1 + }, + { + 0, + 2 + }, + { + 0, + 3 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 4 + }, + { + 0, + 5 + }, + { + 2, + 1 + }, + { + 0, + 6 + }, + { + 0, + 7 + }, + { + 8, + 1 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 8 + }, + { + 0, + 9 + }, + { + 2, + 1 + }, + { + 0, + 10 + }, + { + 0, + 11 + }, + { + 4, + 1 + }, + { + 2, + 1 + }, + { + 0, + 12 + }, + { + 0, + 13 + }, + { + 2, + 1 + }, + { + 0, + 14 + }, + { + 0, + 15 + } + }; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class46.cs b/GHNamespaceI/Class46.cs index 5067156..d5512b6 100644 --- a/GHNamespaceI/Class46.cs +++ b/GHNamespaceI/Class46.cs @@ -2,12 +2,12 @@ namespace GHNamespaceI { - public class Class46 : Class45 - { - private readonly object _object0 = new object(); + public class Class46 : Class45 + { + private readonly object _object0 = new object(); - public override void vmethod_0(object object1) - { - } - } -} + public override void vmethod_0(object object1) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class78.cs b/GHNamespaceI/Class78.cs index 10e4ec6..35500e0 100644 --- a/GHNamespaceI/Class78.cs +++ b/GHNamespaceI/Class78.cs @@ -1,38 +1,38 @@ namespace GHNamespaceI { - public class Class78 - { - private byte[] _byte0; - - private int _int0; - - private int[] _int1; - - private long[] _long0; - - private int _int2; - - private readonly byte[] _byte1 = new byte[282]; - - public Class78() - { - method_0(); - } - - private void method_0() - { - _int0 = 16384; - _byte0 = new byte[_int0]; - _int2 = 1024; - _int1 = new int[_int2]; - _long0 = new long[_int2]; - } - - public void method_1() - { - _byte0 = null; - _int1 = null; - _long0 = null; - } - } -} + public class Class78 + { + private byte[] _byte0; + + private int _int0; + + private int[] _int1; + + private long[] _long0; + + private int _int2; + + private readonly byte[] _byte1 = new byte[282]; + + public Class78() + { + method_0(); + } + + private void method_0() + { + _int0 = 16384; + _byte0 = new byte[_int0]; + _int2 = 1024; + _int1 = new int[_int2]; + _long0 = new long[_int2]; + } + + public void method_1() + { + _byte0 = null; + _int1 = null; + _long0 = null; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class79.cs b/GHNamespaceI/Class79.cs index e6dcebc..f18b120 100644 --- a/GHNamespaceI/Class79.cs +++ b/GHNamespaceI/Class79.cs @@ -3,55 +3,55 @@ namespace GHNamespaceI { - [CompilerGenerated] - public class Class79 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] - public struct Struct16 - { - } + [CompilerGenerated] + public class Class79 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] + public struct Struct16 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] - public struct Struct17 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] + public struct Struct17 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 132)] - public struct Struct18 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 132)] + public struct Struct18 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 516)] - public struct Struct19 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 516)] + public struct Struct19 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 260)] - public struct Struct20 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 260)] + public struct Struct20 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 140)] - public struct Struct21 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 140)] + public struct Struct21 + { + } - public static Struct17 Struct170; + public static Struct17 Struct170; - public static Struct18 Struct180; + public static Struct18 Struct180; - public static Struct17 Struct171; + public static Struct17 Struct171; - public static Struct18 Struct181; + public static Struct18 Struct181; - public static Struct19 Struct190; + public static Struct19 Struct190; - public static Struct18 Struct182; + public static Struct18 Struct182; - public static Struct20 Struct200; + public static Struct20 Struct200; - public static Struct21 Struct210; + public static Struct21 Struct210; - public static Struct16 Struct160; - } -} + public static Struct16 Struct160; + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class80.cs b/GHNamespaceI/Class80.cs index 0d91ee2..ad9064f 100644 --- a/GHNamespaceI/Class80.cs +++ b/GHNamespaceI/Class80.cs @@ -2,1182 +2,1263 @@ namespace GHNamespaceI { - public class Class80 - { - private readonly float[] _float0; + public class Class80 + { + private readonly float[] _float0; - private readonly float[] _float1; + private readonly float[] _float1; - private float[] _float2; + private float[] _float2; - private int _int0; + private int _int0; - private readonly float[] _float3; + private readonly float[] _float3; - private readonly int _int1; + private readonly int _int1; - private float[] _float4; + private float[] _float4; - private readonly float[] _float5 = new float[32]; + private readonly float[] _float5 = new float[32]; - private static float[] _float6; + private static float[] _float6; - private static float[][] _float7; + private static float[][] _float7; - private static readonly float[] Float8 = { - 0f, - -0.000442505f, - 0.003250122f, - -0.007003784f, - 0.0310821533f, - -0.07862854f, - 0.100311279f, - -0.572036743f, - 1.144989f, - 0.572036743f, - 0.100311279f, - 0.07862854f, - 0.0310821533f, - 0.007003784f, - 0.003250122f, - 0.000442505f, - -1.5259E-05f, - -0.000473022f, - 0.003326416f, - -0.007919312f, - 0.0305175781f, - -0.08418274f, - 0.090927124f, - -0.6002197f, - 1.14428711f, - 0.543823242f, - 0.1088562f, - 0.07305908f, - 0.03147888f, - 0.006118774f, - 0.003173828f, - 0.000396729f, - -1.5259E-05f, - -0.000534058f, - 0.003387451f, - -0.008865356f, - 0.0297851563f, - -0.08970642f, - 0.08068848f, - -0.6282959f, - 1.14221191f, - 0.515609741f, - 0.116577148f, - 0.06752014f, - 0.03173828f, - 0.0052948f, - 0.003082275f, - 0.000366211f, - -1.5259E-05f, - -0.000579834f, - 0.003433228f, - -0.009841919f, - 0.0288848877f, - -0.09516907f, - 0.06959534f, - -0.6562195f, - 1.13876343f, - 0.487472534f, - 0.123474121f, - 0.06199646f, - 0.0318450928f, - 0.004486084f, - 0.002990723f, - 0.000320435f, - -1.5259E-05f, - -0.00062561f, - 0.003463745f, - -0.010848999f, - 0.0278015137f, - -0.100540161f, - 0.0576171875f, - -0.6839142f, - 1.13392639f, - 0.459472656f, - 0.129577637f, - 0.0565338135f, - 0.0318145752f, - 0.003723145f, - 0.00289917f, - 0.000289917f, - -1.5259E-05f, - -0.000686646f, - 0.003479004f, - -0.0118865967f, - 0.0265350342f, - -0.1058197f, - 0.0447845459f, - -0.71131897f, - 1.12774658f, - 0.431655884f, - 0.1348877f, - 0.0511322021f, - 0.0316619873f, - 0.003005981f, - 0.002792358f, - 0.000259399f, - -1.5259E-05f, - -0.000747681f, - 0.003479004f, - -0.0129394531f, - 0.02508545f, - -0.110946655f, - 0.0310821533f, - -0.7383728f, - 1.120224f, - 0.404083252f, - 0.139450073f, - 0.0458374023f, - 0.03138733f, - 0.002334595f, - 0.002685547f, - 0.000244141f, - -3.0518E-05f, - -0.000808716f, - 0.003463745f, - -0.0140228271f, - 0.0234222412f, - -0.115921021f, - 0.01651001f, - -0.7650299f, - 1.1113739f, - 0.376800537f, - 0.143264771f, - 0.0406341553f, - 0.03100586f, - 0.001693726f, - 0.002578735f, - 0.000213623f, - -3.0518E-05f, - -0.00088501f, - 0.003417969f, - -0.01512146f, - 0.0215759277f, - -0.120697021f, - 0.001068115f, - -0.791214f, - 1.10121155f, - 0.349868774f, - 0.1463623f, - 0.03555298f, - 0.0305328369f, - 0.001098633f, - 0.002456665f, - 0.000198364f, - -3.0518E-05f, - -0.000961304f, - 0.003372192f, - -0.0162353516f, - 0.01953125f, - -0.1252594f, - -0.0152282706f, - -0.816864f, - 1.08978271f, - 0.323318481f, - 0.1487732f, - 0.03060913f, - 0.0299377441f, - 0.000549316f, - 0.002349854f, - 0.000167847f, - -3.0518E-05f, - -0.001037598f, - 0.00328064f, - -0.0173492432f, - 0.01725769f, - -0.129562378f, - -0.03237915f, - -0.841949463f, - 1.07711792f, - 0.2972107f, - 0.150497437f, - 0.0258178711f, - 0.0292816162f, - 3.0518E-05f, - 0.002243042f, - 0.000152588f, - -4.5776E-05f, - -0.001113892f, - 0.003173828f, - -0.0184631348f, - 0.0148010254f, - -0.1335907f, - -0.0503540039f, - -0.8663635f, - 1.06321716f, - 0.2715912f, - 0.151596069f, - 0.0211792f, - 0.0285339355f, - -0.000442505f, - 0.002120972f, - 0.000137329f, - -4.5776E-05f, - -0.001205444f, - 0.003051758f, - -0.0195770264f, - 0.0121154794f, - -0.137298584f, - -0.06916809f, - -0.890090942f, - 1.04815674f, - 0.246505737f, - 0.152069092f, - 0.016708374f, - 0.02772522f, - -0.000869751f, - 0.00201416f, - 0.00012207f, - -6.1035E-05f, - -0.001296997f, - 0.002883911f, - -0.020690918f, - 0.009231567f, - -0.140670776f, - -0.0887756348f, - -0.9130554f, - 1.03193665f, - 0.221984863f, - 0.15196228f, - 0.0124206543f, - 0.02684021f, - -0.001266479f, - 0.001907349f, - 0.000106812f, - -6.1035E-05f, - -0.00138855f, - 0.002700806f, - -0.02178955f, - 0.006134033f, - -0.143676758f, - -0.109161377f, - -0.9351959f, - 1.01461792f, - 0.198059082f, - 0.151306152f, - 0.00831604f, - 0.0259094238f, - -0.001617432f, - 0.001785278f, - 0.000106812f, - -7.6294E-05f, - -0.001480103f, - 0.002487183f, - -0.022857666f, - 0.002822876f, - -0.1462555f, - -0.130310059f, - -0.956481934f, - 0.996246338f, - 0.174789429f, - 0.150115967f, - 0.004394531f, - 0.0249328613f, - -0.001937866f, - 0.001693726f, - 9.1553E-05f, - -7.6294E-05f, - -0.001586914f, - 0.002227783f, - -0.0239105225f, - -0.000686646f, - -0.148422241f, - -0.152206421f, - -0.9768524f, - 0.9768524f, - 0.152206421f, - 0.148422241f, - 0.000686646f, - 0.0239105225f, - -0.002227783f, - 0.001586914f, - 7.6294E-05f, - -9.1553E-05f, - -0.001693726f, - 0.001937866f, - -0.0249328613f, - -0.004394531f, - -0.150115967f, - -0.174789429f, - -0.996246338f, - 0.956481934f, - 0.130310059f, - 0.1462555f, - -0.002822876f, - 0.022857666f, - -0.002487183f, - 0.001480103f, - 7.6294E-05f, - -0.000106812f, - -0.001785278f, - 0.001617432f, - -0.0259094238f, - -0.00831604f, - -0.151306152f, - -0.198059082f, - -1.01461792f, - 0.9351959f, - 0.109161377f, - 0.143676758f, - -0.006134033f, - 0.02178955f, - -0.002700806f, - 0.00138855f, - 6.1035E-05f, - -0.000106812f, - -0.001907349f, - 0.001266479f, - -0.02684021f, - -0.0124206543f, - -0.15196228f, - -0.221984863f, - -1.03193665f, - 0.9130554f, - 0.0887756348f, - 0.140670776f, - -0.009231567f, - 0.020690918f, - -0.002883911f, - 0.001296997f, - 6.1035E-05f, - -0.00012207f, - -0.00201416f, - 0.000869751f, - -0.02772522f, - -0.016708374f, - -0.152069092f, - -0.246505737f, - -1.04815674f, - 0.890090942f, - 0.06916809f, - 0.137298584f, - -0.0121154794f, - 0.0195770264f, - -0.003051758f, - 0.001205444f, - 4.5776E-05f, - -0.000137329f, - -0.002120972f, - 0.000442505f, - -0.0285339355f, - -0.0211792f, - -0.151596069f, - -0.2715912f, - -1.06321716f, - 0.8663635f, - 0.0503540039f, - 0.1335907f, - -0.0148010254f, - 0.0184631348f, - -0.003173828f, - 0.001113892f, - 4.5776E-05f, - -0.000152588f, - -0.002243042f, - -3.0518E-05f, - -0.0292816162f, - -0.0258178711f, - -0.150497437f, - -0.2972107f, - -1.07711792f, - 0.841949463f, - 0.03237915f, - 0.129562378f, - -0.01725769f, - 0.0173492432f, - -0.00328064f, - 0.001037598f, - 3.0518E-05f, - -0.000167847f, - -0.002349854f, - -0.000549316f, - -0.0299377441f, - -0.03060913f, - -0.1487732f, - -0.323318481f, - -1.08978271f, - 0.816864f, - 0.0152282706f, - 0.1252594f, - -0.01953125f, - 0.0162353516f, - -0.003372192f, - 0.000961304f, - 3.0518E-05f, - -0.000198364f, - -0.002456665f, - -0.001098633f, - -0.0305328369f, - -0.03555298f, - -0.1463623f, - -0.349868774f, - -1.10121155f, - 0.791214f, - -0.001068115f, - 0.120697021f, - -0.0215759277f, - 0.01512146f, - -0.003417969f, - 0.00088501f, - 3.0518E-05f, - -0.000213623f, - -0.002578735f, - -0.001693726f, - -0.03100586f, - -0.0406341553f, - -0.143264771f, - -0.376800537f, - -1.1113739f, - 0.7650299f, - -0.01651001f, - 0.115921021f, - -0.0234222412f, - 0.0140228271f, - -0.003463745f, - 0.000808716f, - 3.0518E-05f, - -0.000244141f, - -0.002685547f, - -0.002334595f, - -0.03138733f, - -0.0458374023f, - -0.139450073f, - -0.404083252f, - -1.120224f, - 0.7383728f, - -0.0310821533f, - 0.110946655f, - -0.02508545f, - 0.0129394531f, - -0.003479004f, - 0.000747681f, - 1.5259E-05f, - -0.000259399f, - -0.002792358f, - -0.003005981f, - -0.0316619873f, - -0.0511322021f, - -0.1348877f, - -0.431655884f, - -1.12774658f, - 0.71131897f, - -0.0447845459f, - 0.1058197f, - -0.0265350342f, - 0.0118865967f, - -0.003479004f, - 0.000686646f, - 1.5259E-05f, - -0.000289917f, - -0.00289917f, - -0.003723145f, - -0.0318145752f, - -0.0565338135f, - -0.129577637f, - -0.459472656f, - -1.13392639f, - 0.6839142f, - -0.0576171875f, - 0.100540161f, - -0.0278015137f, - 0.010848999f, - -0.003463745f, - 0.00062561f, - 1.5259E-05f, - -0.000320435f, - -0.002990723f, - -0.004486084f, - -0.0318450928f, - -0.06199646f, - -0.123474121f, - -0.487472534f, - -1.13876343f, - 0.6562195f, - -0.06959534f, - 0.09516907f, - -0.0288848877f, - 0.009841919f, - -0.003433228f, - 0.000579834f, - 1.5259E-05f, - -0.000366211f, - -0.003082275f, - -0.0052948f, - -0.03173828f, - -0.06752014f, - -0.116577148f, - -0.515609741f, - -1.14221191f, - 0.6282959f, - -0.08068848f, - 0.08970642f, - -0.0297851563f, - 0.008865356f, - -0.003387451f, - 0.000534058f, - 1.5259E-05f, - -0.000396729f, - -0.003173828f, - -0.006118774f, - -0.03147888f, - -0.07305908f, - -0.1088562f, - -0.543823242f, - -1.14428711f, - 0.6002197f, - -0.090927124f, - 0.08418274f, - -0.0305175781f, - 0.007919312f, - -0.003326416f, - 0.000473022f, - 1.5259E-05f - }; + private static readonly float[] Float8 = + { + 0f, + -0.000442505f, + 0.003250122f, + -0.007003784f, + 0.0310821533f, + -0.07862854f, + 0.100311279f, + -0.572036743f, + 1.144989f, + 0.572036743f, + 0.100311279f, + 0.07862854f, + 0.0310821533f, + 0.007003784f, + 0.003250122f, + 0.000442505f, + -1.5259E-05f, + -0.000473022f, + 0.003326416f, + -0.007919312f, + 0.0305175781f, + -0.08418274f, + 0.090927124f, + -0.6002197f, + 1.14428711f, + 0.543823242f, + 0.1088562f, + 0.07305908f, + 0.03147888f, + 0.006118774f, + 0.003173828f, + 0.000396729f, + -1.5259E-05f, + -0.000534058f, + 0.003387451f, + -0.008865356f, + 0.0297851563f, + -0.08970642f, + 0.08068848f, + -0.6282959f, + 1.14221191f, + 0.515609741f, + 0.116577148f, + 0.06752014f, + 0.03173828f, + 0.0052948f, + 0.003082275f, + 0.000366211f, + -1.5259E-05f, + -0.000579834f, + 0.003433228f, + -0.009841919f, + 0.0288848877f, + -0.09516907f, + 0.06959534f, + -0.6562195f, + 1.13876343f, + 0.487472534f, + 0.123474121f, + 0.06199646f, + 0.0318450928f, + 0.004486084f, + 0.002990723f, + 0.000320435f, + -1.5259E-05f, + -0.00062561f, + 0.003463745f, + -0.010848999f, + 0.0278015137f, + -0.100540161f, + 0.0576171875f, + -0.6839142f, + 1.13392639f, + 0.459472656f, + 0.129577637f, + 0.0565338135f, + 0.0318145752f, + 0.003723145f, + 0.00289917f, + 0.000289917f, + -1.5259E-05f, + -0.000686646f, + 0.003479004f, + -0.0118865967f, + 0.0265350342f, + -0.1058197f, + 0.0447845459f, + -0.71131897f, + 1.12774658f, + 0.431655884f, + 0.1348877f, + 0.0511322021f, + 0.0316619873f, + 0.003005981f, + 0.002792358f, + 0.000259399f, + -1.5259E-05f, + -0.000747681f, + 0.003479004f, + -0.0129394531f, + 0.02508545f, + -0.110946655f, + 0.0310821533f, + -0.7383728f, + 1.120224f, + 0.404083252f, + 0.139450073f, + 0.0458374023f, + 0.03138733f, + 0.002334595f, + 0.002685547f, + 0.000244141f, + -3.0518E-05f, + -0.000808716f, + 0.003463745f, + -0.0140228271f, + 0.0234222412f, + -0.115921021f, + 0.01651001f, + -0.7650299f, + 1.1113739f, + 0.376800537f, + 0.143264771f, + 0.0406341553f, + 0.03100586f, + 0.001693726f, + 0.002578735f, + 0.000213623f, + -3.0518E-05f, + -0.00088501f, + 0.003417969f, + -0.01512146f, + 0.0215759277f, + -0.120697021f, + 0.001068115f, + -0.791214f, + 1.10121155f, + 0.349868774f, + 0.1463623f, + 0.03555298f, + 0.0305328369f, + 0.001098633f, + 0.002456665f, + 0.000198364f, + -3.0518E-05f, + -0.000961304f, + 0.003372192f, + -0.0162353516f, + 0.01953125f, + -0.1252594f, + -0.0152282706f, + -0.816864f, + 1.08978271f, + 0.323318481f, + 0.1487732f, + 0.03060913f, + 0.0299377441f, + 0.000549316f, + 0.002349854f, + 0.000167847f, + -3.0518E-05f, + -0.001037598f, + 0.00328064f, + -0.0173492432f, + 0.01725769f, + -0.129562378f, + -0.03237915f, + -0.841949463f, + 1.07711792f, + 0.2972107f, + 0.150497437f, + 0.0258178711f, + 0.0292816162f, + 3.0518E-05f, + 0.002243042f, + 0.000152588f, + -4.5776E-05f, + -0.001113892f, + 0.003173828f, + -0.0184631348f, + 0.0148010254f, + -0.1335907f, + -0.0503540039f, + -0.8663635f, + 1.06321716f, + 0.2715912f, + 0.151596069f, + 0.0211792f, + 0.0285339355f, + -0.000442505f, + 0.002120972f, + 0.000137329f, + -4.5776E-05f, + -0.001205444f, + 0.003051758f, + -0.0195770264f, + 0.0121154794f, + -0.137298584f, + -0.06916809f, + -0.890090942f, + 1.04815674f, + 0.246505737f, + 0.152069092f, + 0.016708374f, + 0.02772522f, + -0.000869751f, + 0.00201416f, + 0.00012207f, + -6.1035E-05f, + -0.001296997f, + 0.002883911f, + -0.020690918f, + 0.009231567f, + -0.140670776f, + -0.0887756348f, + -0.9130554f, + 1.03193665f, + 0.221984863f, + 0.15196228f, + 0.0124206543f, + 0.02684021f, + -0.001266479f, + 0.001907349f, + 0.000106812f, + -6.1035E-05f, + -0.00138855f, + 0.002700806f, + -0.02178955f, + 0.006134033f, + -0.143676758f, + -0.109161377f, + -0.9351959f, + 1.01461792f, + 0.198059082f, + 0.151306152f, + 0.00831604f, + 0.0259094238f, + -0.001617432f, + 0.001785278f, + 0.000106812f, + -7.6294E-05f, + -0.001480103f, + 0.002487183f, + -0.022857666f, + 0.002822876f, + -0.1462555f, + -0.130310059f, + -0.956481934f, + 0.996246338f, + 0.174789429f, + 0.150115967f, + 0.004394531f, + 0.0249328613f, + -0.001937866f, + 0.001693726f, + 9.1553E-05f, + -7.6294E-05f, + -0.001586914f, + 0.002227783f, + -0.0239105225f, + -0.000686646f, + -0.148422241f, + -0.152206421f, + -0.9768524f, + 0.9768524f, + 0.152206421f, + 0.148422241f, + 0.000686646f, + 0.0239105225f, + -0.002227783f, + 0.001586914f, + 7.6294E-05f, + -9.1553E-05f, + -0.001693726f, + 0.001937866f, + -0.0249328613f, + -0.004394531f, + -0.150115967f, + -0.174789429f, + -0.996246338f, + 0.956481934f, + 0.130310059f, + 0.1462555f, + -0.002822876f, + 0.022857666f, + -0.002487183f, + 0.001480103f, + 7.6294E-05f, + -0.000106812f, + -0.001785278f, + 0.001617432f, + -0.0259094238f, + -0.00831604f, + -0.151306152f, + -0.198059082f, + -1.01461792f, + 0.9351959f, + 0.109161377f, + 0.143676758f, + -0.006134033f, + 0.02178955f, + -0.002700806f, + 0.00138855f, + 6.1035E-05f, + -0.000106812f, + -0.001907349f, + 0.001266479f, + -0.02684021f, + -0.0124206543f, + -0.15196228f, + -0.221984863f, + -1.03193665f, + 0.9130554f, + 0.0887756348f, + 0.140670776f, + -0.009231567f, + 0.020690918f, + -0.002883911f, + 0.001296997f, + 6.1035E-05f, + -0.00012207f, + -0.00201416f, + 0.000869751f, + -0.02772522f, + -0.016708374f, + -0.152069092f, + -0.246505737f, + -1.04815674f, + 0.890090942f, + 0.06916809f, + 0.137298584f, + -0.0121154794f, + 0.0195770264f, + -0.003051758f, + 0.001205444f, + 4.5776E-05f, + -0.000137329f, + -0.002120972f, + 0.000442505f, + -0.0285339355f, + -0.0211792f, + -0.151596069f, + -0.2715912f, + -1.06321716f, + 0.8663635f, + 0.0503540039f, + 0.1335907f, + -0.0148010254f, + 0.0184631348f, + -0.003173828f, + 0.001113892f, + 4.5776E-05f, + -0.000152588f, + -0.002243042f, + -3.0518E-05f, + -0.0292816162f, + -0.0258178711f, + -0.150497437f, + -0.2972107f, + -1.07711792f, + 0.841949463f, + 0.03237915f, + 0.129562378f, + -0.01725769f, + 0.0173492432f, + -0.00328064f, + 0.001037598f, + 3.0518E-05f, + -0.000167847f, + -0.002349854f, + -0.000549316f, + -0.0299377441f, + -0.03060913f, + -0.1487732f, + -0.323318481f, + -1.08978271f, + 0.816864f, + 0.0152282706f, + 0.1252594f, + -0.01953125f, + 0.0162353516f, + -0.003372192f, + 0.000961304f, + 3.0518E-05f, + -0.000198364f, + -0.002456665f, + -0.001098633f, + -0.0305328369f, + -0.03555298f, + -0.1463623f, + -0.349868774f, + -1.10121155f, + 0.791214f, + -0.001068115f, + 0.120697021f, + -0.0215759277f, + 0.01512146f, + -0.003417969f, + 0.00088501f, + 3.0518E-05f, + -0.000213623f, + -0.002578735f, + -0.001693726f, + -0.03100586f, + -0.0406341553f, + -0.143264771f, + -0.376800537f, + -1.1113739f, + 0.7650299f, + -0.01651001f, + 0.115921021f, + -0.0234222412f, + 0.0140228271f, + -0.003463745f, + 0.000808716f, + 3.0518E-05f, + -0.000244141f, + -0.002685547f, + -0.002334595f, + -0.03138733f, + -0.0458374023f, + -0.139450073f, + -0.404083252f, + -1.120224f, + 0.7383728f, + -0.0310821533f, + 0.110946655f, + -0.02508545f, + 0.0129394531f, + -0.003479004f, + 0.000747681f, + 1.5259E-05f, + -0.000259399f, + -0.002792358f, + -0.003005981f, + -0.0316619873f, + -0.0511322021f, + -0.1348877f, + -0.431655884f, + -1.12774658f, + 0.71131897f, + -0.0447845459f, + 0.1058197f, + -0.0265350342f, + 0.0118865967f, + -0.003479004f, + 0.000686646f, + 1.5259E-05f, + -0.000289917f, + -0.00289917f, + -0.003723145f, + -0.0318145752f, + -0.0565338135f, + -0.129577637f, + -0.459472656f, + -1.13392639f, + 0.6839142f, + -0.0576171875f, + 0.100540161f, + -0.0278015137f, + 0.010848999f, + -0.003463745f, + 0.00062561f, + 1.5259E-05f, + -0.000320435f, + -0.002990723f, + -0.004486084f, + -0.0318450928f, + -0.06199646f, + -0.123474121f, + -0.487472534f, + -1.13876343f, + 0.6562195f, + -0.06959534f, + 0.09516907f, + -0.0288848877f, + 0.009841919f, + -0.003433228f, + 0.000579834f, + 1.5259E-05f, + -0.000366211f, + -0.003082275f, + -0.0052948f, + -0.03173828f, + -0.06752014f, + -0.116577148f, + -0.515609741f, + -1.14221191f, + 0.6282959f, + -0.08068848f, + 0.08970642f, + -0.0297851563f, + 0.008865356f, + -0.003387451f, + 0.000534058f, + 1.5259E-05f, + -0.000396729f, + -0.003173828f, + -0.006118774f, + -0.03147888f, + -0.07305908f, + -0.1088562f, + -0.543823242f, + -1.14428711f, + 0.6002197f, + -0.090927124f, + 0.08418274f, + -0.0305175781f, + 0.007919312f, + -0.003326416f, + 0.000473022f, + 1.5259E-05f + }; - public void method_0(float[] float9) - { - _float4 = float9; - if (_float4 == null) - { - _float4 = new float[32]; - for (var i = 0; i < 32; i++) - { - _float4[i] = 1f; - } - } - if (_float4.Length < 32) - { - throw new ArgumentException("Mp3 Synthesis Filter: EQ length."); - } - } + public void method_0(float[] float9) + { + _float4 = float9; + if (_float4 == null) + { + _float4 = new float[32]; + for (var i = 0; i < 32; i++) + { + _float4[i] = 1f; + } + } + if (_float4.Length < 32) + { + throw new ArgumentException("Mp3 Synthesis Filter: EQ length."); + } + } - public Class80(int int2, float[] float9) - { - if (_float6 == null) - { - _float6 = Float8; - _float7 = smethod_0(_float6, 16); - } - _float0 = new float[512]; - _float1 = new float[512]; - _float3 = new float[32]; - _int1 = int2; - method_0(float9); - method_1(); - } + public Class80(int int2, float[] float9) + { + if (_float6 == null) + { + _float6 = Float8; + _float7 = smethod_0(_float6, 16); + } + _float0 = new float[512]; + _float1 = new float[512]; + _float3 = new float[32]; + _int1 = int2; + method_0(float9); + method_1(); + } - public void method_1() - { - Array.Clear(_float0, 0, 512); - Array.Clear(_float1, 0, 512); - Array.Clear(_float3, 0, 32); - _float2 = _float0; - _int0 = 15; - } + public void method_1() + { + Array.Clear(_float0, 0, 512); + Array.Clear(_float1, 0, 512); + Array.Clear(_float3, 0, 32); + _float2 = _float0; + _int0 = 15; + } - public void method_2(float float9, int int2) - { - _float3[int2] = _float4[int2] * float9; - } + public void method_2(float float9, int int2) + { + _float3[int2] = _float4[int2] * float9; + } - public void method_3(float[] float9) - { - for (var i = 31; i >= 0; i--) - { - _float3[i] = float9[i] * _float4[i]; - } - } + public void method_3(float[] float9) + { + for (var i = 31; i >= 0; i--) + { + _float3[i] = float9[i] * _float4[i]; + } + } - private void method_4() - { - var array = _float3; - var num = array[0]; - var num2 = array[1]; - var num3 = array[2]; - var num4 = array[3]; - var num5 = array[4]; - var num6 = array[5]; - var num7 = array[6]; - var num8 = array[7]; - var num9 = array[8]; - var num10 = array[9]; - var num11 = array[10]; - var num12 = array[11]; - var num13 = array[12]; - var num14 = array[13]; - var num15 = array[14]; - var num16 = array[15]; - var num17 = array[16]; - var num18 = array[17]; - var num19 = array[18]; - var num20 = array[19]; - var num21 = array[20]; - var num22 = array[21]; - var num23 = array[22]; - var num24 = array[23]; - var num25 = array[24]; - var num26 = array[25]; - var num27 = array[26]; - var num28 = array[27]; - var num29 = array[28]; - var num30 = array[29]; - var num31 = array[30]; - var num32 = array[31]; - var num33 = num + num32; - var num34 = num2 + num31; - var num35 = num3 + num30; - var num36 = num4 + num29; - var num37 = num5 + num28; - var num38 = num6 + num27; - var num39 = num7 + num26; - var num40 = num8 + num25; - var num41 = num9 + num24; - var num42 = num10 + num23; - var num43 = num11 + num22; - var num44 = num12 + num21; - var num45 = num13 + num20; - var num46 = num14 + num19; - var num47 = num15 + num18; - var num48 = num16 + num17; - var num49 = num33 + num48; - var num50 = num34 + num47; - var num51 = num35 + num46; - var num52 = num36 + num45; - var num53 = num37 + num44; - var num54 = num38 + num43; - var num55 = num39 + num42; - var num56 = num40 + num41; - var num57 = (num33 - num48) * 0.5024193f; - var num58 = (num34 - num47) * 0.5224986f; - var num59 = (num35 - num46) * 0.566944063f; - var num60 = (num36 - num45) * 0.6468218f; - var num61 = (num37 - num44) * 0.7881546f; - var num62 = (num38 - num43) * 1.06067765f; - var num63 = (num39 - num42) * 1.72244716f; - var num64 = (num40 - num41) * 5.10114861f; - num33 = num49 + num56; - num34 = num50 + num55; - num35 = num51 + num54; - num36 = num52 + num53; - num37 = (num49 - num56) * 0.5097956f; - num38 = (num50 - num55) * 0.6013449f; - num39 = (num51 - num54) * 0.8999762f; - num40 = (num52 - num53) * 2.56291556f; - num41 = num57 + num64; - num42 = num58 + num63; - num43 = num59 + num62; - num44 = num60 + num61; - num45 = (num57 - num64) * 0.5097956f; - num46 = (num58 - num63) * 0.6013449f; - num47 = (num59 - num62) * 0.8999762f; - num48 = (num60 - num61) * 2.56291556f; - num49 = num33 + num36; - num50 = num34 + num35; - num51 = (num33 - num36) * 0.5411961f; - num52 = (num34 - num35) * 1.306563f; - num53 = num37 + num40; - num54 = num38 + num39; - num55 = (num37 - num40) * 0.5411961f; - num56 = (num38 - num39) * 1.306563f; - num57 = num41 + num44; - num58 = num42 + num43; - num59 = (num41 - num44) * 0.5411961f; - num60 = (num42 - num43) * 1.306563f; - num61 = num45 + num48; - num62 = num46 + num47; - num63 = (num45 - num48) * 0.5411961f; - num64 = (num46 - num47) * 1.306563f; - num33 = num49 + num50; - num34 = (num49 - num50) * 0.707106769f; - num35 = num51 + num52; - num36 = (num51 - num52) * 0.707106769f; - num37 = num53 + num54; - num38 = (num53 - num54) * 0.707106769f; - num39 = num55 + num56; - num40 = (num55 - num56) * 0.707106769f; - num41 = num57 + num58; - num42 = (num57 - num58) * 0.707106769f; - num43 = num59 + num60; - num44 = (num59 - num60) * 0.707106769f; - num45 = num61 + num62; - num46 = (num61 - num62) * 0.707106769f; - num47 = num63 + num64; - num48 = (num63 - num64) * 0.707106769f; - float num67; - float num66; - var num65 = -(num66 = (num67 = num40) + num38) - num39; - var num68 = -num39 - num40 - num37; - float num71; - float num70; - var num69 = (num70 = (num71 = num48) + num44) + num46; - float num73; - var num72 = -(num73 = num48 + num46 + num42) - num47; - float num75; - var num74 = (num75 = -num47 - num48 - num43 - num44) - num46; - var num76 = -num47 - num48 - num45 - num41; - var num77 = num75 - num45; - var num78 = -num33; - var num79 = num34; - float num81; - var num80 = -(num81 = num36) - num35; - num33 = (num - num32) * 0.500603f; - num34 = (num2 - num31) * 0.505470932f; - num35 = (num3 - num30) * 0.5154473f; - num36 = (num4 - num29) * 0.5310426f; - num37 = (num5 - num28) * 0.5531039f; - num38 = (num6 - num27) * 0.582935f; - num39 = (num7 - num26) * 0.6225041f; - num40 = (num8 - num25) * 0.6748083f; - num41 = (num9 - num24) * 0.7445363f; - num42 = (num10 - num23) * 0.8393496f; - num43 = (num11 - num22) * 0.9725682f; - num44 = (num12 - num21) * 1.16943991f; - num45 = (num13 - num20) * 1.4841646f; - num46 = (num14 - num19) * 2.057781f; - num47 = (num15 - num18) * 3.40760851f; - num48 = (num16 - num17) * 10.1900082f; - num49 = num33 + num48; - num50 = num34 + num47; - num51 = num35 + num46; - num52 = num36 + num45; - num53 = num37 + num44; - num54 = num38 + num43; - num55 = num39 + num42; - num56 = num40 + num41; - num57 = (num33 - num48) * 0.5024193f; - num58 = (num34 - num47) * 0.5224986f; - num59 = (num35 - num46) * 0.566944063f; - num60 = (num36 - num45) * 0.6468218f; - num61 = (num37 - num44) * 0.7881546f; - num62 = (num38 - num43) * 1.06067765f; - num63 = (num39 - num42) * 1.72244716f; - num64 = (num40 - num41) * 5.10114861f; - num33 = num49 + num56; - num34 = num50 + num55; - num35 = num51 + num54; - num36 = num52 + num53; - num37 = (num49 - num56) * 0.5097956f; - num38 = (num50 - num55) * 0.6013449f; - num39 = (num51 - num54) * 0.8999762f; - num40 = (num52 - num53) * 2.56291556f; - num41 = num57 + num64; - num42 = num58 + num63; - num43 = num59 + num62; - num44 = num60 + num61; - num45 = (num57 - num64) * 0.5097956f; - num46 = (num58 - num63) * 0.6013449f; - num47 = (num59 - num62) * 0.8999762f; - num48 = (num60 - num61) * 2.56291556f; - num49 = num33 + num36; - num50 = num34 + num35; - num51 = (num33 - num36) * 0.5411961f; - num52 = (num34 - num35) * 1.306563f; - num53 = num37 + num40; - num54 = num38 + num39; - num55 = (num37 - num40) * 0.5411961f; - num56 = (num38 - num39) * 1.306563f; - num57 = num41 + num44; - num58 = num42 + num43; - num59 = (num41 - num44) * 0.5411961f; - num60 = (num42 - num43) * 1.306563f; - num61 = num45 + num48; - num62 = num46 + num47; - num63 = (num45 - num48) * 0.5411961f; - num64 = (num46 - num47) * 1.306563f; - num33 = num49 + num50; - num34 = (num49 - num50) * 0.707106769f; - num35 = num51 + num52; - num36 = (num51 - num52) * 0.707106769f; - num37 = num53 + num54; - num38 = (num53 - num54) * 0.707106769f; - num39 = num55 + num56; - num40 = (num55 - num56) * 0.707106769f; - num41 = num57 + num58; - num42 = (num57 - num58) * 0.707106769f; - num43 = num59 + num60; - num44 = (num59 - num60) * 0.707106769f; - num45 = num61 + num62; - num46 = (num61 - num62) * 0.707106769f; - num47 = num63 + num64; - num48 = (num63 - num64) * 0.707106769f; - float num85; - float num84; - float num83; - var num82 = (num83 = (num84 = (num85 = num48) + num40) + num44) + num38 + num46; - float num87; - var num86 = (num87 = num48 + num44 + num36) + num46; - float num89; - var num88 = -(num89 = (num75 = num46 + num48 + num42) + num34) - num47; - float num91; - var num90 = -(num91 = num75 + num38 + num40) - num39 - num47; - var num92 = (num75 = -num43 - num44 - num47 - num48) - num46 - num35 - num36; - var num93 = num75 - num46 - num38 - num39 - num40; - var num94 = num75 - num45 - num35 - num36; - float num96; - var num95 = num75 - num45 - (num96 = num37 + num39 + num40); - var num97 = (num75 = -num41 - num45 - num47 - num48) - num33; - var num98 = num75 - num96; - var array2 = _float2; - var num99 = _int0; - array2[num99] = num79; - array2[16 + num99] = num89; - array2[32 + num99] = num73; - array2[48 + num99] = num91; - array2[64 + num99] = num66; - array2[80 + num99] = num82; - array2[96 + num99] = num69; - array2[112 + num99] = num86; - array2[128 + num99] = num81; - array2[144 + num99] = num87; - array2[160 + num99] = num70; - array2[176 + num99] = num83; - array2[192 + num99] = num67; - array2[208 + num99] = num84; - array2[224 + num99] = num71; - array2[240 + num99] = num85; - array2[256 + num99] = 0f; - array2[272 + num99] = -num85; - array2[288 + num99] = -num71; - array2[304 + num99] = -num84; - array2[320 + num99] = -num67; - array2[336 + num99] = -num83; - array2[352 + num99] = -num70; - array2[368 + num99] = -num87; - array2[384 + num99] = -num81; - array2[400 + num99] = -num86; - array2[416 + num99] = -num69; - array2[432 + num99] = -num82; - array2[448 + num99] = -num66; - array2[464 + num99] = -num91; - array2[480 + num99] = -num73; - array2[496 + num99] = -num89; - array2 = ((_float2 == _float0) ? _float1 : _float0); - array2[num99] = -num79; - array2[16 + num99] = num88; - array2[32 + num99] = num72; - array2[48 + num99] = num90; - array2[64 + num99] = num65; - array2[80 + num99] = num93; - array2[96 + num99] = num74; - array2[112 + num99] = num92; - array2[128 + num99] = num80; - array2[144 + num99] = num94; - array2[160 + num99] = num77; - array2[176 + num99] = num95; - array2[192 + num99] = num68; - array2[208 + num99] = num98; - array2[224 + num99] = num76; - array2[240 + num99] = num97; - array2[256 + num99] = num78; - array2[272 + num99] = num97; - array2[288 + num99] = num76; - array2[304 + num99] = num98; - array2[320 + num99] = num68; - array2[336 + num99] = num95; - array2[352 + num99] = num77; - array2[368 + num99] = num94; - array2[384 + num99] = num80; - array2[400 + num99] = num92; - array2[416 + num99] = num74; - array2[432 + num99] = num93; - array2[448 + num99] = num65; - array2[464 + num99] = num90; - array2[480 + num99] = num72; - array2[496 + num99] = num88; - } + private void method_4() + { + var array = _float3; + var num = array[0]; + var num2 = array[1]; + var num3 = array[2]; + var num4 = array[3]; + var num5 = array[4]; + var num6 = array[5]; + var num7 = array[6]; + var num8 = array[7]; + var num9 = array[8]; + var num10 = array[9]; + var num11 = array[10]; + var num12 = array[11]; + var num13 = array[12]; + var num14 = array[13]; + var num15 = array[14]; + var num16 = array[15]; + var num17 = array[16]; + var num18 = array[17]; + var num19 = array[18]; + var num20 = array[19]; + var num21 = array[20]; + var num22 = array[21]; + var num23 = array[22]; + var num24 = array[23]; + var num25 = array[24]; + var num26 = array[25]; + var num27 = array[26]; + var num28 = array[27]; + var num29 = array[28]; + var num30 = array[29]; + var num31 = array[30]; + var num32 = array[31]; + var num33 = num + num32; + var num34 = num2 + num31; + var num35 = num3 + num30; + var num36 = num4 + num29; + var num37 = num5 + num28; + var num38 = num6 + num27; + var num39 = num7 + num26; + var num40 = num8 + num25; + var num41 = num9 + num24; + var num42 = num10 + num23; + var num43 = num11 + num22; + var num44 = num12 + num21; + var num45 = num13 + num20; + var num46 = num14 + num19; + var num47 = num15 + num18; + var num48 = num16 + num17; + var num49 = num33 + num48; + var num50 = num34 + num47; + var num51 = num35 + num46; + var num52 = num36 + num45; + var num53 = num37 + num44; + var num54 = num38 + num43; + var num55 = num39 + num42; + var num56 = num40 + num41; + var num57 = (num33 - num48) * 0.5024193f; + var num58 = (num34 - num47) * 0.5224986f; + var num59 = (num35 - num46) * 0.566944063f; + var num60 = (num36 - num45) * 0.6468218f; + var num61 = (num37 - num44) * 0.7881546f; + var num62 = (num38 - num43) * 1.06067765f; + var num63 = (num39 - num42) * 1.72244716f; + var num64 = (num40 - num41) * 5.10114861f; + num33 = num49 + num56; + num34 = num50 + num55; + num35 = num51 + num54; + num36 = num52 + num53; + num37 = (num49 - num56) * 0.5097956f; + num38 = (num50 - num55) * 0.6013449f; + num39 = (num51 - num54) * 0.8999762f; + num40 = (num52 - num53) * 2.56291556f; + num41 = num57 + num64; + num42 = num58 + num63; + num43 = num59 + num62; + num44 = num60 + num61; + num45 = (num57 - num64) * 0.5097956f; + num46 = (num58 - num63) * 0.6013449f; + num47 = (num59 - num62) * 0.8999762f; + num48 = (num60 - num61) * 2.56291556f; + num49 = num33 + num36; + num50 = num34 + num35; + num51 = (num33 - num36) * 0.5411961f; + num52 = (num34 - num35) * 1.306563f; + num53 = num37 + num40; + num54 = num38 + num39; + num55 = (num37 - num40) * 0.5411961f; + num56 = (num38 - num39) * 1.306563f; + num57 = num41 + num44; + num58 = num42 + num43; + num59 = (num41 - num44) * 0.5411961f; + num60 = (num42 - num43) * 1.306563f; + num61 = num45 + num48; + num62 = num46 + num47; + num63 = (num45 - num48) * 0.5411961f; + num64 = (num46 - num47) * 1.306563f; + num33 = num49 + num50; + num34 = (num49 - num50) * 0.707106769f; + num35 = num51 + num52; + num36 = (num51 - num52) * 0.707106769f; + num37 = num53 + num54; + num38 = (num53 - num54) * 0.707106769f; + num39 = num55 + num56; + num40 = (num55 - num56) * 0.707106769f; + num41 = num57 + num58; + num42 = (num57 - num58) * 0.707106769f; + num43 = num59 + num60; + num44 = (num59 - num60) * 0.707106769f; + num45 = num61 + num62; + num46 = (num61 - num62) * 0.707106769f; + num47 = num63 + num64; + num48 = (num63 - num64) * 0.707106769f; + float num67; + float num66; + var num65 = -(num66 = (num67 = num40) + num38) - num39; + var num68 = -num39 - num40 - num37; + float num71; + float num70; + var num69 = (num70 = (num71 = num48) + num44) + num46; + float num73; + var num72 = -(num73 = num48 + num46 + num42) - num47; + float num75; + var num74 = (num75 = -num47 - num48 - num43 - num44) - num46; + var num76 = -num47 - num48 - num45 - num41; + var num77 = num75 - num45; + var num78 = -num33; + var num79 = num34; + float num81; + var num80 = -(num81 = num36) - num35; + num33 = (num - num32) * 0.500603f; + num34 = (num2 - num31) * 0.505470932f; + num35 = (num3 - num30) * 0.5154473f; + num36 = (num4 - num29) * 0.5310426f; + num37 = (num5 - num28) * 0.5531039f; + num38 = (num6 - num27) * 0.582935f; + num39 = (num7 - num26) * 0.6225041f; + num40 = (num8 - num25) * 0.6748083f; + num41 = (num9 - num24) * 0.7445363f; + num42 = (num10 - num23) * 0.8393496f; + num43 = (num11 - num22) * 0.9725682f; + num44 = (num12 - num21) * 1.16943991f; + num45 = (num13 - num20) * 1.4841646f; + num46 = (num14 - num19) * 2.057781f; + num47 = (num15 - num18) * 3.40760851f; + num48 = (num16 - num17) * 10.1900082f; + num49 = num33 + num48; + num50 = num34 + num47; + num51 = num35 + num46; + num52 = num36 + num45; + num53 = num37 + num44; + num54 = num38 + num43; + num55 = num39 + num42; + num56 = num40 + num41; + num57 = (num33 - num48) * 0.5024193f; + num58 = (num34 - num47) * 0.5224986f; + num59 = (num35 - num46) * 0.566944063f; + num60 = (num36 - num45) * 0.6468218f; + num61 = (num37 - num44) * 0.7881546f; + num62 = (num38 - num43) * 1.06067765f; + num63 = (num39 - num42) * 1.72244716f; + num64 = (num40 - num41) * 5.10114861f; + num33 = num49 + num56; + num34 = num50 + num55; + num35 = num51 + num54; + num36 = num52 + num53; + num37 = (num49 - num56) * 0.5097956f; + num38 = (num50 - num55) * 0.6013449f; + num39 = (num51 - num54) * 0.8999762f; + num40 = (num52 - num53) * 2.56291556f; + num41 = num57 + num64; + num42 = num58 + num63; + num43 = num59 + num62; + num44 = num60 + num61; + num45 = (num57 - num64) * 0.5097956f; + num46 = (num58 - num63) * 0.6013449f; + num47 = (num59 - num62) * 0.8999762f; + num48 = (num60 - num61) * 2.56291556f; + num49 = num33 + num36; + num50 = num34 + num35; + num51 = (num33 - num36) * 0.5411961f; + num52 = (num34 - num35) * 1.306563f; + num53 = num37 + num40; + num54 = num38 + num39; + num55 = (num37 - num40) * 0.5411961f; + num56 = (num38 - num39) * 1.306563f; + num57 = num41 + num44; + num58 = num42 + num43; + num59 = (num41 - num44) * 0.5411961f; + num60 = (num42 - num43) * 1.306563f; + num61 = num45 + num48; + num62 = num46 + num47; + num63 = (num45 - num48) * 0.5411961f; + num64 = (num46 - num47) * 1.306563f; + num33 = num49 + num50; + num34 = (num49 - num50) * 0.707106769f; + num35 = num51 + num52; + num36 = (num51 - num52) * 0.707106769f; + num37 = num53 + num54; + num38 = (num53 - num54) * 0.707106769f; + num39 = num55 + num56; + num40 = (num55 - num56) * 0.707106769f; + num41 = num57 + num58; + num42 = (num57 - num58) * 0.707106769f; + num43 = num59 + num60; + num44 = (num59 - num60) * 0.707106769f; + num45 = num61 + num62; + num46 = (num61 - num62) * 0.707106769f; + num47 = num63 + num64; + num48 = (num63 - num64) * 0.707106769f; + float num85; + float num84; + float num83; + var num82 = (num83 = (num84 = (num85 = num48) + num40) + num44) + num38 + num46; + float num87; + var num86 = (num87 = num48 + num44 + num36) + num46; + float num89; + var num88 = -(num89 = (num75 = num46 + num48 + num42) + num34) - num47; + float num91; + var num90 = -(num91 = num75 + num38 + num40) - num39 - num47; + var num92 = (num75 = -num43 - num44 - num47 - num48) - num46 - num35 - num36; + var num93 = num75 - num46 - num38 - num39 - num40; + var num94 = num75 - num45 - num35 - num36; + float num96; + var num95 = num75 - num45 - (num96 = num37 + num39 + num40); + var num97 = (num75 = -num41 - num45 - num47 - num48) - num33; + var num98 = num75 - num96; + var array2 = _float2; + var num99 = _int0; + array2[num99] = num79; + array2[16 + num99] = num89; + array2[32 + num99] = num73; + array2[48 + num99] = num91; + array2[64 + num99] = num66; + array2[80 + num99] = num82; + array2[96 + num99] = num69; + array2[112 + num99] = num86; + array2[128 + num99] = num81; + array2[144 + num99] = num87; + array2[160 + num99] = num70; + array2[176 + num99] = num83; + array2[192 + num99] = num67; + array2[208 + num99] = num84; + array2[224 + num99] = num71; + array2[240 + num99] = num85; + array2[256 + num99] = 0f; + array2[272 + num99] = -num85; + array2[288 + num99] = -num71; + array2[304 + num99] = -num84; + array2[320 + num99] = -num67; + array2[336 + num99] = -num83; + array2[352 + num99] = -num70; + array2[368 + num99] = -num87; + array2[384 + num99] = -num81; + array2[400 + num99] = -num86; + array2[416 + num99] = -num69; + array2[432 + num99] = -num82; + array2[448 + num99] = -num66; + array2[464 + num99] = -num91; + array2[480 + num99] = -num73; + array2[496 + num99] = -num89; + array2 = ((_float2 == _float0) ? _float1 : _float0); + array2[num99] = -num79; + array2[16 + num99] = num88; + array2[32 + num99] = num72; + array2[48 + num99] = num90; + array2[64 + num99] = num65; + array2[80 + num99] = num93; + array2[96 + num99] = num74; + array2[112 + num99] = num92; + array2[128 + num99] = num80; + array2[144 + num99] = num94; + array2[160 + num99] = num77; + array2[176 + num99] = num95; + array2[192 + num99] = num68; + array2[208 + num99] = num98; + array2[224 + num99] = num76; + array2[240 + num99] = num97; + array2[256 + num99] = num78; + array2[272 + num99] = num97; + array2[288 + num99] = num76; + array2[304 + num99] = num98; + array2[320 + num99] = num68; + array2[336 + num99] = num95; + array2[352 + num99] = num77; + array2[368 + num99] = num94; + array2[384 + num99] = num80; + array2[400 + num99] = num92; + array2[416 + num99] = num74; + array2[432 + num99] = num93; + array2[448 + num99] = num65; + array2[464 + num99] = num90; + array2[480 + num99] = num72; + array2[496 + num99] = num88; + } - private void method_5() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[num] * array2[0] + array[15 + num] * array2[1] + array[14 + num] * array2[2] + array[13 + num] * array2[3] + array[12 + num] * array2[4] + array[11 + num] * array2[5] + array[10 + num] * array2[6] + array[9 + num] * array2[7] + array[8 + num] * array2[8] + array[7 + num] * array2[9] + array[6 + num] * array2[10] + array[5 + num] * array2[11] + array[4 + num] * array2[12] + array[3 + num] * array2[13] + array[2 + num] * array2[14] + array[1 + num] * array2[15]; - num += 16; - } - } + private void method_5() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[num] * array2[0] + array[15 + num] * array2[1] + array[14 + num] * array2[2] + + array[13 + num] * array2[3] + array[12 + num] * array2[4] + array[11 + num] * array2[5] + + array[10 + num] * array2[6] + array[9 + num] * array2[7] + array[8 + num] * array2[8] + + array[7 + num] * array2[9] + array[6 + num] * array2[10] + array[5 + num] * array2[11] + + array[4 + num] * array2[12] + array[3 + num] * array2[13] + array[2 + num] * array2[14] + + array[1 + num] * array2[15]; + num += 16; + } + } - private void method_6() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[1 + num] * array2[0] + array[num] * array2[1] + array[15 + num] * array2[2] + array[14 + num] * array2[3] + array[13 + num] * array2[4] + array[12 + num] * array2[5] + array[11 + num] * array2[6] + array[10 + num] * array2[7] + array[9 + num] * array2[8] + array[8 + num] * array2[9] + array[7 + num] * array2[10] + array[6 + num] * array2[11] + array[5 + num] * array2[12] + array[4 + num] * array2[13] + array[3 + num] * array2[14] + array[2 + num] * array2[15]; - num += 16; - } - } + private void method_6() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[1 + num] * array2[0] + array[num] * array2[1] + array[15 + num] * array2[2] + + array[14 + num] * array2[3] + array[13 + num] * array2[4] + array[12 + num] * array2[5] + + array[11 + num] * array2[6] + array[10 + num] * array2[7] + array[9 + num] * array2[8] + + array[8 + num] * array2[9] + array[7 + num] * array2[10] + array[6 + num] * array2[11] + + array[5 + num] * array2[12] + array[4 + num] * array2[13] + array[3 + num] * array2[14] + + array[2 + num] * array2[15]; + num += 16; + } + } - private void method_7() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[2 + num] * array2[0] + array[1 + num] * array2[1] + array[num] * array2[2] + array[15 + num] * array2[3] + array[14 + num] * array2[4] + array[13 + num] * array2[5] + array[12 + num] * array2[6] + array[11 + num] * array2[7] + array[10 + num] * array2[8] + array[9 + num] * array2[9] + array[8 + num] * array2[10] + array[7 + num] * array2[11] + array[6 + num] * array2[12] + array[5 + num] * array2[13] + array[4 + num] * array2[14] + array[3 + num] * array2[15]; - num += 16; - } - } + private void method_7() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[2 + num] * array2[0] + array[1 + num] * array2[1] + array[num] * array2[2] + + array[15 + num] * array2[3] + array[14 + num] * array2[4] + array[13 + num] * array2[5] + + array[12 + num] * array2[6] + array[11 + num] * array2[7] + array[10 + num] * array2[8] + + array[9 + num] * array2[9] + array[8 + num] * array2[10] + array[7 + num] * array2[11] + + array[6 + num] * array2[12] + array[5 + num] * array2[13] + array[4 + num] * array2[14] + + array[3 + num] * array2[15]; + num += 16; + } + } - private void method_8() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[3 + num] * array2[0] + array[2 + num] * array2[1] + array[1 + num] * array2[2] + array[num] * array2[3] + array[15 + num] * array2[4] + array[14 + num] * array2[5] + array[13 + num] * array2[6] + array[12 + num] * array2[7] + array[11 + num] * array2[8] + array[10 + num] * array2[9] + array[9 + num] * array2[10] + array[8 + num] * array2[11] + array[7 + num] * array2[12] + array[6 + num] * array2[13] + array[5 + num] * array2[14] + array[4 + num] * array2[15]; - num += 16; - } - } + private void method_8() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[3 + num] * array2[0] + array[2 + num] * array2[1] + array[1 + num] * array2[2] + + array[num] * array2[3] + array[15 + num] * array2[4] + array[14 + num] * array2[5] + + array[13 + num] * array2[6] + array[12 + num] * array2[7] + array[11 + num] * array2[8] + + array[10 + num] * array2[9] + array[9 + num] * array2[10] + array[8 + num] * array2[11] + + array[7 + num] * array2[12] + array[6 + num] * array2[13] + array[5 + num] * array2[14] + + array[4 + num] * array2[15]; + num += 16; + } + } - private void method_9() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[4 + num] * array2[0] + array[3 + num] * array2[1] + array[2 + num] * array2[2] + array[1 + num] * array2[3] + array[num] * array2[4] + array[15 + num] * array2[5] + array[14 + num] * array2[6] + array[13 + num] * array2[7] + array[12 + num] * array2[8] + array[11 + num] * array2[9] + array[10 + num] * array2[10] + array[9 + num] * array2[11] + array[8 + num] * array2[12] + array[7 + num] * array2[13] + array[6 + num] * array2[14] + array[5 + num] * array2[15]; - num += 16; - } - } + private void method_9() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[4 + num] * array2[0] + array[3 + num] * array2[1] + array[2 + num] * array2[2] + + array[1 + num] * array2[3] + array[num] * array2[4] + array[15 + num] * array2[5] + + array[14 + num] * array2[6] + array[13 + num] * array2[7] + array[12 + num] * array2[8] + + array[11 + num] * array2[9] + array[10 + num] * array2[10] + array[9 + num] * array2[11] + + array[8 + num] * array2[12] + array[7 + num] * array2[13] + array[6 + num] * array2[14] + + array[5 + num] * array2[15]; + num += 16; + } + } - private void method_10() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[5 + num] * array2[0] + array[4 + num] * array2[1] + array[3 + num] * array2[2] + array[2 + num] * array2[3] + array[1 + num] * array2[4] + array[num] * array2[5] + array[15 + num] * array2[6] + array[14 + num] * array2[7] + array[13 + num] * array2[8] + array[12 + num] * array2[9] + array[11 + num] * array2[10] + array[10 + num] * array2[11] + array[9 + num] * array2[12] + array[8 + num] * array2[13] + array[7 + num] * array2[14] + array[6 + num] * array2[15]; - num += 16; - } - } + private void method_10() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[5 + num] * array2[0] + array[4 + num] * array2[1] + array[3 + num] * array2[2] + + array[2 + num] * array2[3] + array[1 + num] * array2[4] + array[num] * array2[5] + + array[15 + num] * array2[6] + array[14 + num] * array2[7] + array[13 + num] * array2[8] + + array[12 + num] * array2[9] + array[11 + num] * array2[10] + array[10 + num] * array2[11] + + array[9 + num] * array2[12] + array[8 + num] * array2[13] + array[7 + num] * array2[14] + + array[6 + num] * array2[15]; + num += 16; + } + } - private void method_11() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[6 + num] * array2[0] + array[5 + num] * array2[1] + array[4 + num] * array2[2] + array[3 + num] * array2[3] + array[2 + num] * array2[4] + array[1 + num] * array2[5] + array[num] * array2[6] + array[15 + num] * array2[7] + array[14 + num] * array2[8] + array[13 + num] * array2[9] + array[12 + num] * array2[10] + array[11 + num] * array2[11] + array[10 + num] * array2[12] + array[9 + num] * array2[13] + array[8 + num] * array2[14] + array[7 + num] * array2[15]; - num += 16; - } - } + private void method_11() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[6 + num] * array2[0] + array[5 + num] * array2[1] + array[4 + num] * array2[2] + + array[3 + num] * array2[3] + array[2 + num] * array2[4] + array[1 + num] * array2[5] + + array[num] * array2[6] + array[15 + num] * array2[7] + array[14 + num] * array2[8] + + array[13 + num] * array2[9] + array[12 + num] * array2[10] + array[11 + num] * array2[11] + + array[10 + num] * array2[12] + array[9 + num] * array2[13] + array[8 + num] * array2[14] + + array[7 + num] * array2[15]; + num += 16; + } + } - private void method_12() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[7 + num] * array2[0] + array[6 + num] * array2[1] + array[5 + num] * array2[2] + array[4 + num] * array2[3] + array[3 + num] * array2[4] + array[2 + num] * array2[5] + array[1 + num] * array2[6] + array[num] * array2[7] + array[15 + num] * array2[8] + array[14 + num] * array2[9] + array[13 + num] * array2[10] + array[12 + num] * array2[11] + array[11 + num] * array2[12] + array[10 + num] * array2[13] + array[9 + num] * array2[14] + array[8 + num] * array2[15]; - num += 16; - } - } + private void method_12() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[7 + num] * array2[0] + array[6 + num] * array2[1] + array[5 + num] * array2[2] + + array[4 + num] * array2[3] + array[3 + num] * array2[4] + array[2 + num] * array2[5] + + array[1 + num] * array2[6] + array[num] * array2[7] + array[15 + num] * array2[8] + + array[14 + num] * array2[9] + array[13 + num] * array2[10] + array[12 + num] * array2[11] + + array[11 + num] * array2[12] + array[10 + num] * array2[13] + array[9 + num] * array2[14] + + array[8 + num] * array2[15]; + num += 16; + } + } - private void method_13() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[8 + num] * array2[0] + array[7 + num] * array2[1] + array[6 + num] * array2[2] + array[5 + num] * array2[3] + array[4 + num] * array2[4] + array[3 + num] * array2[5] + array[2 + num] * array2[6] + array[1 + num] * array2[7] + array[num] * array2[8] + array[15 + num] * array2[9] + array[14 + num] * array2[10] + array[13 + num] * array2[11] + array[12 + num] * array2[12] + array[11 + num] * array2[13] + array[10 + num] * array2[14] + array[9 + num] * array2[15]; - num += 16; - } - } + private void method_13() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[8 + num] * array2[0] + array[7 + num] * array2[1] + array[6 + num] * array2[2] + + array[5 + num] * array2[3] + array[4 + num] * array2[4] + array[3 + num] * array2[5] + + array[2 + num] * array2[6] + array[1 + num] * array2[7] + array[num] * array2[8] + + array[15 + num] * array2[9] + array[14 + num] * array2[10] + array[13 + num] * array2[11] + + array[12 + num] * array2[12] + array[11 + num] * array2[13] + + array[10 + num] * array2[14] + array[9 + num] * array2[15]; + num += 16; + } + } - private void method_14() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[9 + num] * array2[0] + array[8 + num] * array2[1] + array[7 + num] * array2[2] + array[6 + num] * array2[3] + array[5 + num] * array2[4] + array[4 + num] * array2[5] + array[3 + num] * array2[6] + array[2 + num] * array2[7] + array[1 + num] * array2[8] + array[num] * array2[9] + array[15 + num] * array2[10] + array[14 + num] * array2[11] + array[13 + num] * array2[12] + array[12 + num] * array2[13] + array[11 + num] * array2[14] + array[10 + num] * array2[15]; - num += 16; - } - } + private void method_14() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[9 + num] * array2[0] + array[8 + num] * array2[1] + array[7 + num] * array2[2] + + array[6 + num] * array2[3] + array[5 + num] * array2[4] + array[4 + num] * array2[5] + + array[3 + num] * array2[6] + array[2 + num] * array2[7] + array[1 + num] * array2[8] + + array[num] * array2[9] + array[15 + num] * array2[10] + array[14 + num] * array2[11] + + array[13 + num] * array2[12] + array[12 + num] * array2[13] + + array[11 + num] * array2[14] + array[10 + num] * array2[15]; + num += 16; + } + } - private void method_15() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[10 + num] * array2[0] + array[9 + num] * array2[1] + array[8 + num] * array2[2] + array[7 + num] * array2[3] + array[6 + num] * array2[4] + array[5 + num] * array2[5] + array[4 + num] * array2[6] + array[3 + num] * array2[7] + array[2 + num] * array2[8] + array[1 + num] * array2[9] + array[num] * array2[10] + array[15 + num] * array2[11] + array[14 + num] * array2[12] + array[13 + num] * array2[13] + array[12 + num] * array2[14] + array[11 + num] * array2[15]; - num += 16; - } - } + private void method_15() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[10 + num] * array2[0] + array[9 + num] * array2[1] + array[8 + num] * array2[2] + + array[7 + num] * array2[3] + array[6 + num] * array2[4] + array[5 + num] * array2[5] + + array[4 + num] * array2[6] + array[3 + num] * array2[7] + array[2 + num] * array2[8] + + array[1 + num] * array2[9] + array[num] * array2[10] + array[15 + num] * array2[11] + + array[14 + num] * array2[12] + array[13 + num] * array2[13] + + array[12 + num] * array2[14] + array[11 + num] * array2[15]; + num += 16; + } + } - private void method_16() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[11 + num] * array2[0] + array[10 + num] * array2[1] + array[9 + num] * array2[2] + array[8 + num] * array2[3] + array[7 + num] * array2[4] + array[6 + num] * array2[5] + array[5 + num] * array2[6] + array[4 + num] * array2[7] + array[3 + num] * array2[8] + array[2 + num] * array2[9] + array[1 + num] * array2[10] + array[num] * array2[11] + array[15 + num] * array2[12] + array[14 + num] * array2[13] + array[13 + num] * array2[14] + array[12 + num] * array2[15]; - num += 16; - } - } + private void method_16() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[11 + num] * array2[0] + array[10 + num] * array2[1] + array[9 + num] * array2[2] + + array[8 + num] * array2[3] + array[7 + num] * array2[4] + array[6 + num] * array2[5] + + array[5 + num] * array2[6] + array[4 + num] * array2[7] + array[3 + num] * array2[8] + + array[2 + num] * array2[9] + array[1 + num] * array2[10] + array[num] * array2[11] + + array[15 + num] * array2[12] + array[14 + num] * array2[13] + + array[13 + num] * array2[14] + array[12 + num] * array2[15]; + num += 16; + } + } - private void method_17() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[12 + num] * array2[0] + array[11 + num] * array2[1] + array[10 + num] * array2[2] + array[9 + num] * array2[3] + array[8 + num] * array2[4] + array[7 + num] * array2[5] + array[6 + num] * array2[6] + array[5 + num] * array2[7] + array[4 + num] * array2[8] + array[3 + num] * array2[9] + array[2 + num] * array2[10] + array[1 + num] * array2[11] + array[num] * array2[12] + array[15 + num] * array2[13] + array[14 + num] * array2[14] + array[13 + num] * array2[15]; - num += 16; - } - } + private void method_17() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[12 + num] * array2[0] + array[11 + num] * array2[1] + array[10 + num] * array2[2] + + array[9 + num] * array2[3] + array[8 + num] * array2[4] + array[7 + num] * array2[5] + + array[6 + num] * array2[6] + array[5 + num] * array2[7] + array[4 + num] * array2[8] + + array[3 + num] * array2[9] + array[2 + num] * array2[10] + array[1 + num] * array2[11] + + array[num] * array2[12] + array[15 + num] * array2[13] + array[14 + num] * array2[14] + + array[13 + num] * array2[15]; + num += 16; + } + } - private void method_18() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[13 + num] * array2[0] + array[12 + num] * array2[1] + array[11 + num] * array2[2] + array[10 + num] * array2[3] + array[9 + num] * array2[4] + array[8 + num] * array2[5] + array[7 + num] * array2[6] + array[6 + num] * array2[7] + array[5 + num] * array2[8] + array[4 + num] * array2[9] + array[3 + num] * array2[10] + array[2 + num] * array2[11] + array[1 + num] * array2[12] + array[num] * array2[13] + array[15 + num] * array2[14] + array[14 + num] * array2[15]; - num += 16; - } - } + private void method_18() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[13 + num] * array2[0] + array[12 + num] * array2[1] + array[11 + num] * array2[2] + + array[10 + num] * array2[3] + array[9 + num] * array2[4] + array[8 + num] * array2[5] + + array[7 + num] * array2[6] + array[6 + num] * array2[7] + array[5 + num] * array2[8] + + array[4 + num] * array2[9] + array[3 + num] * array2[10] + array[2 + num] * array2[11] + + array[1 + num] * array2[12] + array[num] * array2[13] + array[15 + num] * array2[14] + + array[14 + num] * array2[15]; + num += 16; + } + } - private void method_19() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[14 + num] * array2[0] + array[13 + num] * array2[1] + array[12 + num] * array2[2] + array[11 + num] * array2[3] + array[10 + num] * array2[4] + array[9 + num] * array2[5] + array[8 + num] * array2[6] + array[7 + num] * array2[7] + array[6 + num] * array2[8] + array[5 + num] * array2[9] + array[4 + num] * array2[10] + array[3 + num] * array2[11] + array[2 + num] * array2[12] + array[1 + num] * array2[13] + array[num] * array2[14] + array[15 + num] * array2[15]; - num += 16; - } - } + private void method_19() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[14 + num] * array2[0] + array[13 + num] * array2[1] + array[12 + num] * array2[2] + + array[11 + num] * array2[3] + array[10 + num] * array2[4] + array[9 + num] * array2[5] + + array[8 + num] * array2[6] + array[7 + num] * array2[7] + array[6 + num] * array2[8] + + array[5 + num] * array2[9] + array[4 + num] * array2[10] + array[3 + num] * array2[11] + + array[2 + num] * array2[12] + array[1 + num] * array2[13] + array[num] * array2[14] + + array[15 + num] * array2[15]; + num += 16; + } + } - private void method_20() - { - var array = _float2; - var num = 0; - for (var i = 0; i < 32; i++) - { - var array2 = _float7[i]; - _float5[i] = array[15 + num] * array2[0] + array[14 + num] * array2[1] + array[13 + num] * array2[2] + array[12 + num] * array2[3] + array[11 + num] * array2[4] + array[10 + num] * array2[5] + array[9 + num] * array2[6] + array[8 + num] * array2[7] + array[7 + num] * array2[8] + array[6 + num] * array2[9] + array[5 + num] * array2[10] + array[4 + num] * array2[11] + array[3 + num] * array2[12] + array[2 + num] * array2[13] + array[1 + num] * array2[14] + array[num] * array2[15]; - num += 16; - } - } + private void method_20() + { + var array = _float2; + var num = 0; + for (var i = 0; i < 32; i++) + { + var array2 = _float7[i]; + _float5[i] = array[15 + num] * array2[0] + array[14 + num] * array2[1] + array[13 + num] * array2[2] + + array[12 + num] * array2[3] + array[11 + num] * array2[4] + array[10 + num] * array2[5] + + array[9 + num] * array2[6] + array[8 + num] * array2[7] + array[7 + num] * array2[8] + + array[6 + num] * array2[9] + array[5 + num] * array2[10] + array[4 + num] * array2[11] + + array[3 + num] * array2[12] + array[2 + num] * array2[13] + array[1 + num] * array2[14] + + array[num] * array2[15]; + num += 16; + } + } - private void method_21(Class84 class840) - { - switch (_int0) - { - case 0: - method_5(); - break; - case 1: - method_6(); - break; - case 2: - method_7(); - break; - case 3: - method_8(); - break; - case 4: - method_9(); - break; - case 5: - method_10(); - break; - case 6: - method_11(); - break; - case 7: - method_12(); - break; - case 8: - method_13(); - break; - case 9: - method_14(); - break; - case 10: - method_15(); - break; - case 11: - method_16(); - break; - case 12: - method_17(); - break; - case 13: - method_18(); - break; - case 14: - method_19(); - break; - case 15: - method_20(); - break; - } - if (class840 != null) - { - class840.method_4(_int1, _float5); - } - } + private void method_21(Class84 class840) + { + switch (_int0) + { + case 0: + method_5(); + break; + case 1: + method_6(); + break; + case 2: + method_7(); + break; + case 3: + method_8(); + break; + case 4: + method_9(); + break; + case 5: + method_10(); + break; + case 6: + method_11(); + break; + case 7: + method_12(); + break; + case 8: + method_13(); + break; + case 9: + method_14(); + break; + case 10: + method_15(); + break; + case 11: + method_16(); + break; + case 12: + method_17(); + break; + case 13: + method_18(); + break; + case 14: + method_19(); + break; + case 15: + method_20(); + break; + } + if (class840 != null) + { + class840.method_4(_int1, _float5); + } + } - public void method_22(Class84 class840) - { - method_4(); - method_21(class840); - _int0 = (_int0 + 1 & 15); - _float2 = ((_float2 == _float0) ? _float1 : _float0); - Array.Clear(_float3, 0, 32); - } + public void method_22(Class84 class840) + { + method_4(); + method_21(class840); + _int0 = (_int0 + 1 & 15); + _float2 = ((_float2 == _float0) ? _float1 : _float0); + Array.Clear(_float3, 0, 32); + } - private static float[][] smethod_0(float[] float9, int int2) - { - var num = float9.Length / int2; - var array = new float[num][]; - for (var i = 0; i < num; i++) - { - array[i] = smethod_1(float9, i * int2, int2); - } - return array; - } + private static float[][] smethod_0(float[] float9, int int2) + { + var num = float9.Length / int2; + var array = new float[num][]; + for (var i = 0; i < num; i++) + { + array[i] = smethod_1(float9, i * int2, int2); + } + return array; + } - private static float[] smethod_1(float[] float9, int int2, int int3) - { - if (int2 + int3 > float9.Length) - { - int3 = float9.Length - int2; - } - if (int3 < 0) - { - int3 = 0; - } - var array = new float[int3]; - for (var i = 0; i < int3; i++) - { - array[i] = float9[int2 + i]; - } - return array; - } - } -} + private static float[] smethod_1(float[] float9, int int2, int int3) + { + if (int2 + int3 > float9.Length) + { + int3 = float9.Length - int2; + } + if (int3 < 0) + { + int3 = 0; + } + var array = new float[int3]; + for (var i = 0; i < int3; i++) + { + array[i] = float9[int2 + i]; + } + return array; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class82.cs b/GHNamespaceI/Class82.cs index f6388b0..23d5ecf 100644 --- a/GHNamespaceI/Class82.cs +++ b/GHNamespaceI/Class82.cs @@ -5,431 +5,434 @@ namespace GHNamespaceI { - public class Class82 - { - private int _int0; - - private byte[] _byte0; - - public static byte Byte1; - - public static byte Byte2 = 1; - - private int[] _int1; - - private int _int2; - - private byte[] _byte3; - - private int _int3; - - private int _int4; - - private int _int5; - - private bool _bool0; - - private readonly int[] _int6 = { - 0, - 1, - 3, - 7, - 15, - 31, - 63, - 127, - 255, - 511, - 1023, - 2047, - 4095, - 8191, - 16383, - 32767, - 65535, - 131071 - }; - - private readonly ZzStreamClass106 _class1060; - - private ZzSoundClass _class1070; - - private byte[] _byte4; - - private Class101[] _class1010; - - private bool _bool1 = true; - - private void method_0() - { - _class1010 = new Class101[1]; - _byte4 = new byte[4]; - _byte3 = new byte[1732]; - _int1 = new int[433]; - _class1070 = new ZzSoundClass(); - } - - public Class82(Stream stream0, int int7) : this(new ZzStreamClass106(stream0, int7)) - { - } - - public Class82(ZzStreamClass106 class1061) - { - method_0(); - if (class1061 == null) - { - throw new NullReferenceException("in"); - } - method_17(class1061.method_0()); - _class1060 = class1061; - method_7(); - } - - public void method_1() - { - try - { - _class1060.method_3(); - } - catch (IOException exception) - { - throw new BitstreamException(BitstreamError.StreamError, exception); - } - } - - public int method_2() - { - return _int0; - } - - public ZzSoundClass method_3() - { - ZzSoundClass @class = null; - try - { - @class = method_4(); - if (_bool1) - { - @class.method_2(_byte3); - _bool1 = false; - } - } - catch (BitstreamException ex) - { - if (ex.Error == BitstreamError.InvalidFrame) - { - try - { - method_7(); - @class = method_4(); - goto IL_7A; - } - catch (BitstreamException ex2) - { - if (ex2.Error != BitstreamError.StreamEof) - { - throw new BitstreamException(ex2.Error, ex2); - } - goto IL_7A; - } - } - if (ex.Error != BitstreamError.StreamEof) - { - throw new BitstreamException(ex.Error, ex); - } - IL_7A:; - } - return @class; - } - - private ZzSoundClass method_4() - { - if (_int2 == -1) - { - method_5(); - } - return _class1070; - } - - private void method_5() - { - _class1070.method_1(this, _class1010); - } - - public void method_6() - { - if (_int3 == -1 && _int4 == -1 && _int2 > 0) - { - try - { - _class1060.IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(_int2); - } - catch (IOException) - { - throw new BitstreamException(BitstreamError.StreamError); - } - } - } - - public void method_7() - { - _int2 = -1; - _int3 = -1; - _int4 = -1; - } - - public bool method_8(int int7) - { - var num = method_16(_byte4, 0, 4); - var int8 = (_byte4[0] << 24 & -16777216) | (_byte4[1] << 16 & 16711680) | (_byte4[2] << 8 & 65280) | _byte4[3] & 255; - try - { - _class1060.IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(num); - } - catch (IOException) - { - } - var result = false; - var num2 = num; - if (num2 != 0) - { - if (num2 == 4) - { - result = method_10(int8, int7, _int5); - } - } - else - { - result = true; - } - return result; - } - - public int method_9(byte byte5) - { - var num = method_16(_byte4, 0, 3); - if (num != 3) - { - throw new BitstreamException(BitstreamError.StreamEof, null); - } - var num2 = (_byte4[0] << 16 & 16711680) | (_byte4[1] << 8 & 65280) | _byte4[2] & 255; - while (true) - { - num2 <<= 8; - if (method_16(_byte4, 3, 1) != 1) - { - break; - } - num2 |= _byte4[3] & 255; - if (method_10(num2, byte5, _int5)) - { - return num2; - } - } - throw new BitstreamException(BitstreamError.StreamEof, null); - } - - public bool method_10(int int7, int int8, int int9) - { - bool flag; - if (int8 == Byte1) - { - flag = ((int7 & 4292870144L) == 4292870144L); - } - else - { - flag = ((int7 & 4292870144L) == 4292870144L && (int7 & 192) == 192 == _bool0); - } - if (flag) - { - flag = ((int7 >> 10 & 3) != 3); - } - if (flag) - { - flag = ((int7 >> 17 & 3) != 0); - } - if (flag) - { - flag = ((int7 >> 19 & 3) != 1); - } - return flag; - } - - public int method_11(int int7) - { - var result = method_15(_byte3, 0, int7); - _int2 = int7; - _int3 = -1; - _int4 = -1; - return result; - } - - public void method_12() - { - var num = 0; - var array = _byte3; - var num2 = _int2; - for (var i = 0; i < num2; i += 4) - { - byte b = 0; - byte b2 = 0; - byte b3 = 0; - var b4 = array[i]; - if (i + 1 < num2) - { - b = array[i + 1]; - } - if (i + 2 < num2) - { - b2 = array[i + 2]; - } - if (i + 3 < num2) - { - b3 = array[i + 3]; - } - _int1[num++] = ((b4 << 24 & -16777216) | (b << 16 & 16711680) | (b2 << 8 & 65280) | b3 & 255); - } - _int3 = 0; - _int4 = 0; - } - - public int method_13(int int7) - { - var num = _int4 + int7; - if (_int3 < 0) - { - _int3 = 0; - } - int num4; - if (num <= 32) - { - var num2 = _int1[_int3]; - var num3 = 32 - num; - num4 = (num2 >> num3 & _int6[int7]); - if ((_int4 += int7) == 32) - { - _int4 = 0; - _int3++; - } - return num4; - } - var num5 = _int1[_int3] & 65535; - _int3++; - var num6 = _int1[_int3] & -65536; - num4 = ((num5 << 16 & -65536) | (num6 >> 16 & 65535)); - var num7 = 48 - num; - num4 >>= num7; - num4 &= _int6[int7]; - _int4 = num - 32; - return num4; - } - - public void method_14(int int7) - { - _int5 = (int7 & -193); - _bool0 = ((int7 & 192) == 192); - } - - private int method_15(byte[] byte5, int int7, int int8) - { - var num = 0; - try - { - while (int8 > 0) - { - var num2 = _class1060.method_1(byte5, int7, int8); - if (num2 == -1 || num2 == 0) - { - while (int8-- > 0) - { - byte5[int7++] = 0; - } - break; - } - num += num2; - int7 += num2; - int8 -= num2; - } - } - catch (IOException exception) - { - throw new BitstreamException(BitstreamError.StreamError, exception); - } - return num; - } - - private int method_16(byte[] byte5, int int7, int int8) - { - var num = 0; - try - { - while (int8 > 0) - { - var num2 = _class1060.method_1(byte5, int7, int8); - if (num2 == -1 || num2 == 0) - { - break; - } - num += num2; - int7 += num2; - int8 -= num2; - } - } - catch (IOException exception) - { - throw new BitstreamException(BitstreamError.StreamError, exception); - } - return num; - } - - private void method_17(Stream stream0) - { - var position = 0L; - var num = -1; - try - { - position = stream0.Position; - num = smethod_0(stream0); - _int0 = num; - } - catch (IOException) - { - } - finally - { - try - { - stream0.Position = position; - } - catch (IOException) - { - } - } - try - { - if (num > 0) - { - _byte0 = new byte[num]; - stream0.Read(_byte0, 0, _byte0.Length); - } - } - catch (IOException) - { - } - } - - private static int smethod_0(Stream stream0) - { - var array = new byte[4]; - var num = -10; - stream0.Read(array, 0, 3); - if (array[0] == 73 && array[1] == 68 && array[2] == 51) - { - stream0.Read(array, 0, 3); - stream0.Read(array, 0, 4); - num = (array[0] << 21) + (array[1] << 14) + (array[2] << 7) + array[3]; - } - return num + 10; - } - } -} + public class Class82 + { + private int _int0; + + private byte[] _byte0; + + public static byte Byte1; + + public static byte Byte2 = 1; + + private int[] _int1; + + private int _int2; + + private byte[] _byte3; + + private int _int3; + + private int _int4; + + private int _int5; + + private bool _bool0; + + private readonly int[] _int6 = + { + 0, + 1, + 3, + 7, + 15, + 31, + 63, + 127, + 255, + 511, + 1023, + 2047, + 4095, + 8191, + 16383, + 32767, + 65535, + 131071 + }; + + private readonly ZzStreamClass106 _class1060; + + private ZzSoundClass _class1070; + + private byte[] _byte4; + + private Class101[] _class1010; + + private bool _bool1 = true; + + private void method_0() + { + _class1010 = new Class101[1]; + _byte4 = new byte[4]; + _byte3 = new byte[1732]; + _int1 = new int[433]; + _class1070 = new ZzSoundClass(); + } + + public Class82(Stream stream0, int int7) : this(new ZzStreamClass106(stream0, int7)) + { + } + + public Class82(ZzStreamClass106 class1061) + { + method_0(); + if (class1061 == null) + { + throw new NullReferenceException("in"); + } + method_17(class1061.method_0()); + _class1060 = class1061; + method_7(); + } + + public void method_1() + { + try + { + _class1060.method_3(); + } + catch (IOException exception) + { + throw new BitstreamException(BitstreamError.StreamError, exception); + } + } + + public int method_2() + { + return _int0; + } + + public ZzSoundClass method_3() + { + ZzSoundClass @class = null; + try + { + @class = method_4(); + if (_bool1) + { + @class.method_2(_byte3); + _bool1 = false; + } + } + catch (BitstreamException ex) + { + if (ex.Error == BitstreamError.InvalidFrame) + { + try + { + method_7(); + @class = method_4(); + goto IL_7A; + } + catch (BitstreamException ex2) + { + if (ex2.Error != BitstreamError.StreamEof) + { + throw new BitstreamException(ex2.Error, ex2); + } + goto IL_7A; + } + } + if (ex.Error != BitstreamError.StreamEof) + { + throw new BitstreamException(ex.Error, ex); + } + IL_7A: + ; + } + return @class; + } + + private ZzSoundClass method_4() + { + if (_int2 == -1) + { + method_5(); + } + return _class1070; + } + + private void method_5() + { + _class1070.method_1(this, _class1010); + } + + public void method_6() + { + if (_int3 == -1 && _int4 == -1 && _int2 > 0) + { + try + { + _class1060.IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(_int2); + } + catch (IOException) + { + throw new BitstreamException(BitstreamError.StreamError); + } + } + } + + public void method_7() + { + _int2 = -1; + _int3 = -1; + _int4 = -1; + } + + public bool method_8(int int7) + { + var num = method_16(_byte4, 0, 4); + var int8 = (_byte4[0] << 24 & -16777216) | (_byte4[1] << 16 & 16711680) | (_byte4[2] << 8 & 65280) | + _byte4[3] & 255; + try + { + _class1060.IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(num); + } + catch (IOException) + { + } + var result = false; + var num2 = num; + if (num2 != 0) + { + if (num2 == 4) + { + result = method_10(int8, int7, _int5); + } + } + else + { + result = true; + } + return result; + } + + public int method_9(byte byte5) + { + var num = method_16(_byte4, 0, 3); + if (num != 3) + { + throw new BitstreamException(BitstreamError.StreamEof, null); + } + var num2 = (_byte4[0] << 16 & 16711680) | (_byte4[1] << 8 & 65280) | _byte4[2] & 255; + while (true) + { + num2 <<= 8; + if (method_16(_byte4, 3, 1) != 1) + { + break; + } + num2 |= _byte4[3] & 255; + if (method_10(num2, byte5, _int5)) + { + return num2; + } + } + throw new BitstreamException(BitstreamError.StreamEof, null); + } + + public bool method_10(int int7, int int8, int int9) + { + bool flag; + if (int8 == Byte1) + { + flag = ((int7 & 4292870144L) == 4292870144L); + } + else + { + flag = ((int7 & 4292870144L) == 4292870144L && (int7 & 192) == 192 == _bool0); + } + if (flag) + { + flag = ((int7 >> 10 & 3) != 3); + } + if (flag) + { + flag = ((int7 >> 17 & 3) != 0); + } + if (flag) + { + flag = ((int7 >> 19 & 3) != 1); + } + return flag; + } + + public int method_11(int int7) + { + var result = method_15(_byte3, 0, int7); + _int2 = int7; + _int3 = -1; + _int4 = -1; + return result; + } + + public void method_12() + { + var num = 0; + var array = _byte3; + var num2 = _int2; + for (var i = 0; i < num2; i += 4) + { + byte b = 0; + byte b2 = 0; + byte b3 = 0; + var b4 = array[i]; + if (i + 1 < num2) + { + b = array[i + 1]; + } + if (i + 2 < num2) + { + b2 = array[i + 2]; + } + if (i + 3 < num2) + { + b3 = array[i + 3]; + } + _int1[num++] = ((b4 << 24 & -16777216) | (b << 16 & 16711680) | (b2 << 8 & 65280) | b3 & 255); + } + _int3 = 0; + _int4 = 0; + } + + public int method_13(int int7) + { + var num = _int4 + int7; + if (_int3 < 0) + { + _int3 = 0; + } + int num4; + if (num <= 32) + { + var num2 = _int1[_int3]; + var num3 = 32 - num; + num4 = (num2 >> num3 & _int6[int7]); + if ((_int4 += int7) == 32) + { + _int4 = 0; + _int3++; + } + return num4; + } + var num5 = _int1[_int3] & 65535; + _int3++; + var num6 = _int1[_int3] & -65536; + num4 = ((num5 << 16 & -65536) | (num6 >> 16 & 65535)); + var num7 = 48 - num; + num4 >>= num7; + num4 &= _int6[int7]; + _int4 = num - 32; + return num4; + } + + public void method_14(int int7) + { + _int5 = (int7 & -193); + _bool0 = ((int7 & 192) == 192); + } + + private int method_15(byte[] byte5, int int7, int int8) + { + var num = 0; + try + { + while (int8 > 0) + { + var num2 = _class1060.method_1(byte5, int7, int8); + if (num2 == -1 || num2 == 0) + { + while (int8-- > 0) + { + byte5[int7++] = 0; + } + break; + } + num += num2; + int7 += num2; + int8 -= num2; + } + } + catch (IOException exception) + { + throw new BitstreamException(BitstreamError.StreamError, exception); + } + return num; + } + + private int method_16(byte[] byte5, int int7, int int8) + { + var num = 0; + try + { + while (int8 > 0) + { + var num2 = _class1060.method_1(byte5, int7, int8); + if (num2 == -1 || num2 == 0) + { + break; + } + num += num2; + int7 += num2; + int8 -= num2; + } + } + catch (IOException exception) + { + throw new BitstreamException(BitstreamError.StreamError, exception); + } + return num; + } + + private void method_17(Stream stream0) + { + var position = 0L; + var num = -1; + try + { + position = stream0.Position; + num = smethod_0(stream0); + _int0 = num; + } + catch (IOException) + { + } + finally + { + try + { + stream0.Position = position; + } + catch (IOException) + { + } + } + try + { + if (num > 0) + { + _byte0 = new byte[num]; + stream0.Read(_byte0, 0, _byte0.Length); + } + } + catch (IOException) + { + } + } + + private static int smethod_0(Stream stream0) + { + var array = new byte[4]; + var num = -10; + stream0.Read(array, 0, 3); + if (array[0] == 73 && array[1] == 68 && array[2] == 51) + { + stream0.Read(array, 0, 3); + stream0.Read(array, 0, 4); + num = (array[0] << 21) + (array[1] << 14) + (array[2] << 7) + array[3]; + } + return num + 10; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class83.cs b/GHNamespaceI/Class83.cs index 34125a1..d8b323c 100644 --- a/GHNamespaceI/Class83.cs +++ b/GHNamespaceI/Class83.cs @@ -1,64 +1,64 @@ namespace GHNamespaceI { - public class Class83 - { - private readonly byte[] _byte0; + public class Class83 + { + private readonly byte[] _byte0; - private readonly int[] _int0; + private readonly int[] _int0; - private readonly int _int1; + private readonly int _int1; - public int Int2; + public int Int2; - private readonly double _double0; + private readonly double _double0; - public Class83(byte[] byte1, int int3) - { - _byte0 = byte1; - Int2 = int3; - _double0 = 1.0 / byte1.Length; - } + public Class83(byte[] byte1, int int3) + { + _byte0 = byte1; + Int2 = int3; + _double0 = 1.0 / byte1.Length; + } - public Class83(int[] int3, short short0) - { - _int0 = int3; - _int1 = short0; - _double0 = 1.0 / int3.Length; - } + public Class83(int[] int3, short short0) + { + _int0 = int3; + _int1 = short0; + _double0 = 1.0 / int3.Length; + } - public int method_0(double double1) - { - var num = 0; - var num2 = 0; - var num3 = 0.0; - if (_byte0 == null) - { - while (num3 <= double1) - { - num2 += _int0[num++]; - num3 += _double0; - } - return num2 - (int)(_int0[num - 1] * ((num3 - double1) / _double0 + 0.5 / _int1)); - } - if (double1 == 0.0) - { - return 0; - } - if (double1 == 1.0) - { - return Int2; - } - num3 = double1 * 100.0; - num = (int)num3; - if (num >= _byte0.Length - 1) - { - return (int)(_byte0[_byte0.Length - 1] / 256.0 * Int2); - } - if (num == num3) - { - return (int)(_byte0[num] / 256.0 * Int2); - } - return (int)((_byte0[num] + (num3 - num) * (_byte0[num + 1] - _byte0[num])) / 256.0 * Int2); - } - } -} + public int method_0(double double1) + { + var num = 0; + var num2 = 0; + var num3 = 0.0; + if (_byte0 == null) + { + while (num3 <= double1) + { + num2 += _int0[num++]; + num3 += _double0; + } + return num2 - (int) (_int0[num - 1] * ((num3 - double1) / _double0 + 0.5 / _int1)); + } + if (double1 == 0.0) + { + return 0; + } + if (double1 == 1.0) + { + return Int2; + } + num3 = double1 * 100.0; + num = (int) num3; + if (num >= _byte0.Length - 1) + { + return (int) (_byte0[_byte0.Length - 1] / 256.0 * Int2); + } + if (num == num3) + { + return (int) (_byte0[num] / 256.0 * Int2); + } + return (int) ((_byte0[num] + (num3 - num) * (_byte0[num + 1] - _byte0[num])) / 256.0 * Int2); + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class84.cs b/GHNamespaceI/Class84.cs index 04144ca..5abf0aa 100644 --- a/GHNamespaceI/Class84.cs +++ b/GHNamespaceI/Class84.cs @@ -2,130 +2,130 @@ namespace GHNamespaceI { - public class Class84 - { - private readonly int[] _int0; + public class Class84 + { + private readonly int[] _int0; - private readonly int _int1; + private readonly int _int1; - private readonly int _int2; + private readonly int _int2; - private readonly float[][] _float0; + private readonly float[][] _float0; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - public int method_0() - { - return _int4 - _int3; - } + public int method_0() + { + return _int4 - _int3; + } - public Class84(int int5) - { - _int1 = int5; - _int2 = _int1 << 2; - _int0 = new int[_int1]; - _float0 = new float[_int1][]; - for (var i = 0; i < _int1; i++) - { - _float0[i] = new float[1152]; - } - method_6(); - } + public Class84(int int5) + { + _int1 = int5; + _int2 = _int1 << 2; + _int0 = new int[_int1]; + _float0 = new float[_int1][]; + for (var i = 0; i < _int1; i++) + { + _float0[i] = new float[1152]; + } + method_6(); + } - public int method_1(float[] float1, int int5, int int6) - { - int6 <<= 2; - var num = method_0(); - var num2 = (int6 > num) ? num : (int6 - int6 % _int2); - if (_int1 == 1) - { - Buffer.BlockCopy(_float0[0], _int3, float1, int5 << 2, num2); - } - else - { - var num3 = _int3 / _int2; - var num4 = num2 / _int2 + num3; - for (var i = 0; i < _int1; i++) - { - var array = _float0[i]; - var j = num3; - var num5 = int5 + i; - while (j < num4) - { - float1[num5] = array[j]; - j++; - num5 += _int1; - } - } - } - _int3 += num2; - return num2 >> 2; - } + public int method_1(float[] float1, int int5, int int6) + { + int6 <<= 2; + var num = method_0(); + var num2 = (int6 > num) ? num : (int6 - int6 % _int2); + if (_int1 == 1) + { + Buffer.BlockCopy(_float0[0], _int3, float1, int5 << 2, num2); + } + else + { + var num3 = _int3 / _int2; + var num4 = num2 / _int2 + num3; + for (var i = 0; i < _int1; i++) + { + var array = _float0[i]; + var j = num3; + var num5 = int5 + i; + while (j < num4) + { + float1[num5] = array[j]; + j++; + num5 += _int1; + } + } + } + _int3 += num2; + return num2 >> 2; + } - public int method_2(byte[] byte0, int int5, int int6) - { - var num = method_0(); - var num2 = (int6 > num) ? num : int6; - if (_int1 == 1) - { - Buffer.BlockCopy(_float0[0], _int3, byte0, int5, num2); - } - else - { - var array = new float[num2 >> 2]; - method_1(array, 0, array.Length); - Buffer.BlockCopy(array, 0, byte0, int5, num2); - } - _int3 += num2; - return num2; - } + public int method_2(byte[] byte0, int int5, int int6) + { + var num = method_0(); + var num2 = (int6 > num) ? num : int6; + if (_int1 == 1) + { + Buffer.BlockCopy(_float0[0], _int3, byte0, int5, num2); + } + else + { + var array = new float[num2 >> 2]; + method_1(array, 0, array.Length); + Buffer.BlockCopy(array, 0, byte0, int5, num2); + } + _int3 += num2; + return num2; + } - public int method_3(float[][] float1, int int5, int int6) - { - int5 <<= 2; - int6 <<= 2; - var num = method_0(); - var num2 = (int6 > num) ? num : (int6 - int6 % _int2); - if (_int1 == 1) - { - Buffer.BlockCopy(_float0[0], _int3, float1[0], int5, num2); - } - else - { - var srcOffset = _int3 / _int1; - var count = num2 / _int1; - int5 /= _int1; - for (var i = 0; i < float1.Length; i++) - { - Buffer.BlockCopy(_float0[i], srcOffset, float1[i], int5, count); - } - } - _int3 += num2; - return num2 >> 2; - } + public int method_3(float[][] float1, int int5, int int6) + { + int5 <<= 2; + int6 <<= 2; + var num = method_0(); + var num2 = (int6 > num) ? num : (int6 - int6 % _int2); + if (_int1 == 1) + { + Buffer.BlockCopy(_float0[0], _int3, float1[0], int5, num2); + } + else + { + var srcOffset = _int3 / _int1; + var count = num2 / _int1; + int5 /= _int1; + for (var i = 0; i < float1.Length; i++) + { + Buffer.BlockCopy(_float0[i], srcOffset, float1[i], int5, count); + } + } + _int3 += num2; + return num2 >> 2; + } - public void method_4(int int5, float[] float1) - { - if (int5 < _int1 && _int0[int5] < 4608) - { - Buffer.BlockCopy(float1, 0, _float0[int5], _int0[int5], 128); - _int0[int5] += 128; - } - } + public void method_4(int int5, float[] float1) + { + if (int5 < _int1 && _int0[int5] < 4608) + { + Buffer.BlockCopy(float1, 0, _float0[int5], _int0[int5], 128); + _int0[int5] += 128; + } + } - public void method_5() - { - _int3 = 0; - _int4 = _int0[0] * _int1; - } + public void method_5() + { + _int3 = 0; + _int4 = _int0[0] * _int1; + } - public void method_6() - { - _int3 = 0; - _int4 = 0; - Array.Clear(_int0, 0, _int1); - } - } -} + public void method_6() + { + _int3 = 0; + _int4 = 0; + Array.Clear(_int0, 0, _int1); + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class85.cs b/GHNamespaceI/Class85.cs index 960c42d..a27955b 100644 --- a/GHNamespaceI/Class85.cs +++ b/GHNamespaceI/Class85.cs @@ -3,3821 +3,3858 @@ namespace GHNamespaceI { - public class Class85 : INterface7 - { - public class Class86 - { - public int[] Int0; + public class Class85 : INterface7 + { + public class Class86 + { + public int[] Int0; - public int[] Int1; + public int[] Int1; - public Class86() - { - Int0 = new int[23]; - Int1 = new int[14]; - } + public Class86() + { + Int0 = new int[23]; + Int1 = new int[14]; + } - public Class86(int[] int2, int[] int3) - { - Int0 = int2; - Int1 = int3; - } - } + public Class86(int[] int2, int[] int3) + { + Int0 = int2; + Int1 = int3; + } + } - public class Class87 - { - public int Int0; + public class Class87 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - public int Int5; + public int Int5; - public int Int6; + public int Int6; - public int[] Int7; + public int[] Int7; - public int[] Int8; + public int[] Int8; - public int Int9; + public int Int9; - public int Int10; + public int Int10; - public int Int11; + public int Int11; - public int Int12; + public int Int12; - public int Int13; + public int Int13; - public Class87() - { - Int7 = new int[3]; - Int8 = new int[3]; - } - } + public Class87() + { + Int7 = new int[3]; + Int8 = new int[3]; + } + } - public class Class88 - { - public int[] Int0; + public class Class88 + { + public int[] Int0; - public Class87[] Class870; + public Class87[] Class870; - public Class88() - { - Int0 = new int[4]; - Class870 = new Class87[2]; - Class870[0] = new Class87(); - Class870[1] = new Class87(); - } - } + public Class88() + { + Int0 = new int[4]; + Class870 = new Class87[2]; + Class870[0] = new Class87(); + Class870[1] = new Class87(); + } + } - public class Class89 - { - public int Int0; + public class Class89 + { + public int Int0; - public int Int1; + public int Int1; - public Class88[] Class880; + public Class88[] Class880; - public Class89() - { - Class880 = new Class88[2]; - Class880[0] = new Class88(); - Class880[1] = new Class88(); - } - } + public Class89() + { + Class880 = new Class88[2]; + Class880[0] = new Class88(); + Class880[1] = new Class88(); + } + } - public class Class90 - { - public int[] Int0; + public class Class90 + { + public int[] Int0; - public int[,] Int1; + public int[,] Int1; - public Class90() - { - Int0 = new int[23]; - Int1 = new int[3, 13]; - } - } + public Class90() + { + Int0 = new int[23]; + Int1 = new int[3, 13]; + } + } - public class Class91 - { - private Class85 _class850; + public class Class91 + { + private Class85 _class850; - public int[] Int0; + public int[] Int0; - public int[] Int1; + public int[] Int1; - private void method_0(Class85 class851) - { - _class850 = class851; - } + private void method_0(Class85 class851) + { + _class850 = class851; + } - public Class91(Class85 class851, int[] int2, int[] int3) - { - method_0(class851); - Int0 = int2; - Int1 = int3; - } - } + public Class91(Class85 class851, int[] int2, int[] int3) + { + method_0(class851); + Int0 = int2; + Int1 = int3; + } + } - public double Double0 = 1.3333333333333333; + public double Double0 = 1.3333333333333333; - public int[] Int0; + public int[] Int0; - private int _int1; + private int _int1; - private readonly int[] _int2; + private readonly int[] _int2; - private readonly float[][,] _float0; + private readonly float[][,] _float0; - private readonly float[][,] _float1; + private readonly float[][,] _float1; - private readonly float[] _float2; + private readonly float[] _float2; - private readonly float[,] _float3; + private readonly float[,] _float3; - private readonly float[,] _float4; + private readonly float[,] _float4; - private readonly int[] _int3; + private readonly int[] _int3; - private readonly Class82 _class820; + private readonly Class82 _class820; - private readonly ZzSoundClass _class1070; + private readonly ZzSoundClass _class1070; - private readonly Class80 _class800; + private readonly Class80 _class800; - private readonly Class80 _class801; + private readonly Class80 _class801; - private readonly Class84 _class840; + private readonly Class84 _class840; - private readonly Enum4 _enum40; + private readonly Enum4 _enum40; - private readonly Class102 _class1020; + private readonly Class102 _class1020; - private readonly Class89 _class890; + private readonly Class89 _class890; - private readonly Class90[] _class900; + private readonly Class90[] _class900; - private readonly Class90[] _class901; + private readonly Class90[] _class901; - private readonly int _int4; + private readonly int _int4; - private int _int5; + private int _int5; - private int _int6; + private int _int6; - private readonly int _int7; + private readonly int _int7; - private readonly int _int8; + private readonly int _int8; - private readonly int _int9; + private readonly int _int9; - private readonly int _int10; + private readonly int _int10; - private readonly float[] _float5 = new float[32]; + private readonly float[] _float5 = new float[32]; - private readonly float[] _float6 = new float[32]; + private readonly float[] _float6 = new float[32]; - private readonly int[] _int11 = new int[4]; + private readonly int[] _int11 = new int[4]; - public readonly int[] Int12; + public readonly int[] Int12; - public readonly int[] Int13; + public readonly int[] Int13; - public readonly int[] Int14; + public readonly int[] Int14; - public readonly int[] Int15; + public readonly int[] Int15; - public int[] Int16; + public int[] Int16; - public float[] Float7; - - public readonly float[] Float8; - - public readonly float[] Float9; - - private int _int17; - - private static readonly int[,] Int18 = { - { - 0, - 0, - 0, - 0, - 3, - 1, - 1, - 1, - 2, - 2, - 2, - 3, - 3, - 3, - 4, - 4 - }, - { - 0, - 1, - 2, - 3, - 0, - 1, - 2, - 3, - 1, - 2, - 3, - 1, - 2, - 3, - 2, - 3 - } - }; - - public static readonly int[] Int19 = { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 2, - 2, - 3, - 3, - 3, - 2, - 0 - }; - - private readonly Class86[] _class860; - - public static readonly float[] Float10 = { - 1f, - 0.707106769f, - 0.5f, - 0.353553385f, - 0.25f, - 0.176776692f, - 0.125f, - 0.0883883461f, - 0.0625f, - 0.0441941731f, - 0.03125f, - 0.0220970865f, - 0.015625f, - 0.0110485433f, - 0.0078125f, - 0.00552427163f, - 0.00390625f, - 0.00276213582f, - 0.001953125f, - 0.00138106791f, - 0.0009765625f, - 0.000690533954f, - 0.00048828125f, - 0.000345266977f, - 0.000244140625f, - 0.000172633489f, - 0.000122070313f, - 8.63167443E-05f, - 6.10351563E-05f, - 4.31583721E-05f, - 3.05175781E-05f, - 2.15791861E-05f, - 1.52587891E-05f, - 1.0789593E-05f, - 7.62939453E-06f, - 5.39479652E-06f, - 3.81469727E-06f, - 2.69739826E-06f, - 1.90734863E-06f, - 1.34869913E-06f, - 9.536743E-07f, - 6.74349565E-07f, - 4.76837158E-07f, - 3.37174782E-07f, - 2.38418579E-07f, - 1.68587391E-07f, - 1.1920929E-07f, - 8.42936956E-08f, - 5.96046448E-08f, - 4.21468478E-08f, - 2.98023224E-08f, - 2.10734239E-08f, - 1.49011612E-08f, - 1.05367119E-08f, - 7.450581E-09f, - 5.268356E-09f, - 3.7252903E-09f, - 2.634178E-09f, - 1.86264515E-09f, - 1.317089E-09f, - 9.313226E-10f, - 6.585445E-10f, - 4.656613E-10f, - 3.29272248E-10f - }; - - public static readonly float[] Float11 = smethod_0(); - - public static readonly float[][] Float12 = { - new[] - { - 1f, - 0.8408964f, - 0.707106769f, - 0.594603539f, - 0.5f, - 0.4204482f, - 0.353553385f, - 0.297301769f, - 0.25f, - 0.2102241f, - 0.176776692f, - 0.148650885f, - 0.125f, - 0.105112053f, - 0.0883883461f, - 0.07432544f, - 0.0625f, - 0.0525560267f, - 0.0441941731f, - 0.03716272f, - 0.03125f, - 0.0262780134f, - 0.0220970865f, - 0.01858136f, - 0.015625f, - 0.0131390067f, - 0.0110485433f, - 0.00929068f, - 0.0078125f, - 0.00656950334f, - 0.00552427163f, - 0.00464534f - }, - new[] - { - 1f, - 0.707106769f, - 0.5f, - 0.353553385f, - 0.25f, - 0.176776692f, - 0.125f, - 0.0883883461f, - 0.0625f, - 0.0441941731f, - 0.03125f, - 0.0220970865f, - 0.015625f, - 0.0110485433f, - 0.0078125f, - 0.00552427163f, - 0.00390625f, - 0.00276213582f, - 0.001953125f, - 0.00138106791f, - 0.0009765625f, - 0.000690533954f, - 0.00048828125f, - 0.000345266977f, - 0.000244140625f, - 0.000172633489f, - 0.000122070313f, - 8.63167443E-05f, - 6.10351563E-05f, - 4.31583721E-05f, - 3.05175781E-05f, - 2.15791861E-05f - } - }; - - public static readonly float[] Float13 = { - 0f, - 0.2679492f, - 0.577350259f, - 1f, - 1.73205078f, - 3.732051f, - 1E+11f, - -3.732051f, - -1.73205078f, - -1f, - -0.577350259f, - -0.2679492f, - 0f, - 0.2679492f, - 0.577350259f, - 1f - }; - - private static readonly int[] Int20 = { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 4, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 6, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 7, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 8, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 9, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 11, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 12, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 13, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 15, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 18, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 19, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 20, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 21, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 22, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 23, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 24, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 25, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 26, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 27, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 29, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 30, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31, - 31 - }; - - private static readonly int[] Int21 = { - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17 - }; - - private static int[][] _int22; - - private static readonly float[] Float14 = { - 0.8574929f, - 0.881742f, - 0.949628651f, - 0.9833146f, - 0.9955178f, - 0.9991606f, - 0.9998992f, - 0.999993145f - }; - - private static readonly float[] Float15 = { - -0.51449573f, - -0.471731961f, - -0.31337744f, - -0.1819132f, - -0.09457419f, - -0.0409655832f, - -0.0141985686f, - -0.00369997462f - }; - - public static readonly float[][] Float16 = { - new[] - { - -0.0161412153f, - -0.05360318f, - -0.100707136f, - -0.16280818f, - -0.5f, - -0.383887351f, - -0.6206114f, - -1.16597557f, - -3.87207532f, - -4.225629f, - -1.519529f, - -0.974164844f, - -0.737440765f, - -1.20710683f, - -0.5163616f, - -0.454260528f, - -0.407156557f, - -0.3696946f, - -0.3387627f, - -0.312422216f, - -0.289395869f, - -0.268800825f, - -0.5f, - -0.232514173f, - -0.215967149f, - -0.200049788f, - -0.184494928f, - -0.169058457f, - -0.153503612f, - -0.137586251f, - -0.121039219f, - -0.207106784f, - -0.0847525746f, - -0.06415752f, - -0.0411311723f, - -0.0147907054f - }, - new[] - { - -0.0161412153f, - -0.05360318f, - -0.100707136f, - -0.16280818f, - -0.5f, - -0.383887351f, - -0.6206114f, - -1.16597557f, - -3.87207532f, - -4.225629f, - -1.519529f, - -0.974164844f, - -0.737440765f, - -1.20710683f, - -0.5163616f, - -0.454260528f, - -0.407156557f, - -0.3696946f, - -0.33908543f, - -0.3151181f, - -0.296422273f, - -0.28184548f, - -0.5411961f, - -0.2621323f, - -0.25387916f, - -0.2329629f, - -0.198527291f, - -0.152335346f, - -0.0964964f, - -0.03342383f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f - }, - new[] - { - -0.0483008f, - -0.157156572f, - -0.283250451f, - -0.429537475f, - -1.20710683f, - -0.8242648f, - -1.14517486f, - -1.769529f, - -4.54702234f, - -3.489053f, - -0.7329629f, - -0.150765151f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0f - }, - new[] - { - 0f, - 0f, - 0f, - 0f, - 0f, - 0f, - -0.150765136f, - -0.7329629f, - -3.489053f, - -4.54702234f, - -1.769529f, - -1.14517486f, - -0.8313774f, - -1.306563f, - -0.541420162f, - -0.465289742f, - -0.4106699f, - -0.3700468f, - -0.3387627f, - -0.312422216f, - -0.289395869f, - -0.268800825f, - -0.5f, - -0.232514173f, - -0.215967149f, - -0.200049788f, - -0.184494928f, - -0.169058457f, - -0.153503612f, - -0.137586251f, - -0.121039219f, - -0.207106784f, - -0.0847525746f, - -0.06415752f, - -0.0411311723f, - -0.0147907054f - } - }; - - public Class91 Class910; - - public static readonly int[,,] Int23 = { - { - { - 6, - 5, - 5, - 5 - }, - { - 9, - 9, - 9, - 9 - }, - { - 6, - 9, - 9, - 9 - } - }, - { - { - 6, - 5, - 7, - 3 - }, - { - 9, - 9, - 12, - 6 - }, - { - 6, - 9, - 12, - 6 - } - }, - { - { - 11, - 10, - 0, - 0 - }, - { - 18, - 18, - 0, - 0 - }, - { - 15, - 18, - 0, - 0 - } - }, - { - { - 7, - 7, - 7, - 0 - }, - { - 12, - 12, - 12, - 0 - }, - { - 6, - 15, - 12, - 0 - } - }, - { - { - 6, - 6, - 6, - 3 - }, - { - 12, - 9, - 9, - 6 - }, - { - 6, - 12, - 9, - 6 - } - }, - { - { - 8, - 8, - 5, - 0 - }, - { - 15, - 12, - 9, - 0 - }, - { - 6, - 18, - 9, - 0 - } - } - }; - - public Class85(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803, Class84 class841, Enum4 enum41) - { - var array = new int[1]; - Int12 = array; - var array2 = new int[1]; - Int13 = array2; - var array3 = new int[1]; - Int14 = array3; - var array4 = new int[1]; - Int15 = array4; - Int16 = new int[576]; - Float7 = new float[576]; - Float8 = new float[18]; - Float9 = new float[36]; - //base..ctor(); - Class103.smethod_0(); - _int2 = new int[580]; - _float0 = new float[2][,]; - _float0[0] = new float[32, 18]; - _float0[1] = new float[32, 18]; - _float1 = new float[2][,]; - _float1[0] = new float[32, 18]; - _float1[1] = new float[32, 18]; - _float2 = new float[576]; - _float3 = new float[2, 576]; - _float4 = new float[2, 576]; - _int3 = new int[2]; - _class900 = new Class90[2]; - _class900[0] = new Class90(); - _class900[1] = new Class90(); - _class901 = _class900; - _class860 = new Class86[9]; - int[] array5 = { - 0, - 6, - 12, - 18, - 24, - 30, - 36, - 44, - 54, - 66, - 80, - 96, - 116, - 140, - 168, - 200, - 238, - 284, - 336, - 396, - 464, - 522, - 576 - }; - int[] array6 = { - 0, - 4, - 8, - 12, - 18, - 24, - 32, - 42, - 56, - 74, - 100, - 132, - 174, - 192 - }; - int[] array7 = { - 0, - 6, - 12, - 18, - 24, - 30, - 36, - 44, - 54, - 66, - 80, - 96, - 114, - 136, - 162, - 194, - 232, - 278, - 330, - 394, - 464, - 540, - 576 - }; - int[] array8 = { - 0, - 4, - 8, - 12, - 18, - 26, - 36, - 48, - 62, - 80, - 104, - 136, - 180, - 192 - }; - int[] array9 = { - 0, - 6, - 12, - 18, - 24, - 30, - 36, - 44, - 54, - 66, - 80, - 96, - 116, - 140, - 168, - 200, - 238, - 284, - 336, - 396, - 464, - 522, - 576 - }; - int[] array10 = { - 0, - 4, - 8, - 12, - 18, - 26, - 36, - 48, - 62, - 80, - 104, - 134, - 174, - 192 - }; - int[] array11 = { - 0, - 4, - 8, - 12, - 16, - 20, - 24, - 30, - 36, - 44, - 52, - 62, - 74, - 90, - 110, - 134, - 162, - 196, - 238, - 288, - 342, - 418, - 576 - }; - int[] array12 = { - 0, - 4, - 8, - 12, - 16, - 22, - 30, - 40, - 52, - 66, - 84, - 106, - 136, - 192 - }; - int[] array13 = { - 0, - 4, - 8, - 12, - 16, - 20, - 24, - 30, - 36, - 42, - 50, - 60, - 72, - 88, - 106, - 128, - 156, - 190, - 230, - 276, - 330, - 384, - 576 - }; - int[] array14 = { - 0, - 4, - 8, - 12, - 16, - 22, - 28, - 38, - 50, - 64, - 80, - 100, - 126, - 192 - }; - int[] array15 = { - 0, - 4, - 8, - 12, - 16, - 20, - 24, - 30, - 36, - 44, - 54, - 66, - 82, - 102, - 126, - 156, - 194, - 240, - 296, - 364, - 448, - 550, - 576 - }; - int[] array16 = { - 0, - 4, - 8, - 12, - 16, - 22, - 30, - 42, - 58, - 78, - 104, - 138, - 180, - 192 - }; - int[] array17 = { - 0, - 6, - 12, - 18, - 24, - 30, - 36, - 44, - 54, - 66, - 80, - 96, - 116, - 140, - 168, - 200, - 238, - 284, - 336, - 396, - 464, - 522, - 576 - }; - int[] array18 = { - 0, - 4, - 8, - 12, - 18, - 26, - 36, - 48, - 62, - 80, - 104, - 134, - 174, - 192 - }; - int[] array19 = { - 0, - 6, - 12, - 18, - 24, - 30, - 36, - 44, - 54, - 66, - 80, - 96, - 116, - 140, - 168, - 200, - 238, - 284, - 336, - 396, - 464, - 522, - 576 - }; - int[] array20 = { - 0, - 4, - 8, - 12, - 18, - 26, - 36, - 48, - 62, - 80, - 104, - 134, - 174, - 192 - }; - int[] array21 = { - 0, - 12, - 24, - 36, - 48, - 60, - 72, - 88, - 108, - 132, - 160, - 192, - 232, - 280, - 336, - 400, - 476, - 566, - 568, - 570, - 572, - 574, - 576 - }; - int[] array22 = { - 0, - 8, - 16, - 24, - 36, - 52, - 72, - 96, - 124, - 160, - 162, - 164, - 166, - 192 - }; - _class860[0] = new Class86(array5, array6); - _class860[1] = new Class86(array7, array8); - _class860[2] = new Class86(array9, array10); - _class860[3] = new Class86(array11, array12); - _class860[4] = new Class86(array13, array14); - _class860[5] = new Class86(array15, array16); - _class860[6] = new Class86(array17, array18); - _class860[7] = new Class86(array19, array20); - _class860[8] = new Class86(array21, array22); - if (_int22 == null) - { - _int22 = new int[9][]; - for (var i = 0; i < 9; i++) - { - _int22[i] = smethod_1(_class860[i].Int1); - } - } - int[] array23 = { - 0, - 6, - 11, - 16, - 21 - }; - int[] array24 = { - 0, - 6, - 12 - }; - Class910 = new Class91(this, array23, array24); - Int0 = new int[54]; - _class820 = class821; - _class1070 = class1071; - _class800 = class802; - _class801 = class803; - _class840 = class841; - _enum40 = enum41; - _int5 = 0; - _int7 = ((_class1070.method_8() == Enum5.Const3) ? 1 : 2); - _int4 = ((_class1070.method_3() == Enum3.Const1) ? 2 : 1); - _int10 = _class1070.method_6() + ((_class1070.method_3() == Enum3.Const1) ? 3 : ((_class1070.method_3() == Enum3.Const2) ? 6 : 0)); - if (_int7 == 2) - { - switch (_enum40) - { - case Enum4.Const0: - IL_4E3: - _int8 = 0; - _int9 = 1; - goto IL_521; - case Enum4.Const1: - case Enum4.Const3: - _int9 = 0; - _int8 = 0; - goto IL_521; - case Enum4.Const2: - _int9 = 1; - _int8 = 1; - goto IL_521; - } - // goto IL_4E3 + public float[] Float7; + + public readonly float[] Float8; + + public readonly float[] Float9; + + private int _int17; + + private static readonly int[,] Int18 = + { + { + 0, + 0, + 0, + 0, + 3, + 1, + 1, + 1, + 2, + 2, + 2, + 3, + 3, + 3, + 4, + 4 + }, + { + 0, + 1, + 2, + 3, + 0, + 1, + 2, + 3, + 1, + 2, + 3, + 1, + 2, + 3, + 2, + 3 + } + }; + + public static readonly int[] Int19 = + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 3, + 3, + 3, + 2, + 0 + }; + + private readonly Class86[] _class860; + + public static readonly float[] Float10 = + { + 1f, + 0.707106769f, + 0.5f, + 0.353553385f, + 0.25f, + 0.176776692f, + 0.125f, + 0.0883883461f, + 0.0625f, + 0.0441941731f, + 0.03125f, + 0.0220970865f, + 0.015625f, + 0.0110485433f, + 0.0078125f, + 0.00552427163f, + 0.00390625f, + 0.00276213582f, + 0.001953125f, + 0.00138106791f, + 0.0009765625f, + 0.000690533954f, + 0.00048828125f, + 0.000345266977f, + 0.000244140625f, + 0.000172633489f, + 0.000122070313f, + 8.63167443E-05f, + 6.10351563E-05f, + 4.31583721E-05f, + 3.05175781E-05f, + 2.15791861E-05f, + 1.52587891E-05f, + 1.0789593E-05f, + 7.62939453E-06f, + 5.39479652E-06f, + 3.81469727E-06f, + 2.69739826E-06f, + 1.90734863E-06f, + 1.34869913E-06f, + 9.536743E-07f, + 6.74349565E-07f, + 4.76837158E-07f, + 3.37174782E-07f, + 2.38418579E-07f, + 1.68587391E-07f, + 1.1920929E-07f, + 8.42936956E-08f, + 5.96046448E-08f, + 4.21468478E-08f, + 2.98023224E-08f, + 2.10734239E-08f, + 1.49011612E-08f, + 1.05367119E-08f, + 7.450581E-09f, + 5.268356E-09f, + 3.7252903E-09f, + 2.634178E-09f, + 1.86264515E-09f, + 1.317089E-09f, + 9.313226E-10f, + 6.585445E-10f, + 4.656613E-10f, + 3.29272248E-10f + }; + + public static readonly float[] Float11 = smethod_0(); + + public static readonly float[][] Float12 = + { + new[] + { + 1f, + 0.8408964f, + 0.707106769f, + 0.594603539f, + 0.5f, + 0.4204482f, + 0.353553385f, + 0.297301769f, + 0.25f, + 0.2102241f, + 0.176776692f, + 0.148650885f, + 0.125f, + 0.105112053f, + 0.0883883461f, + 0.07432544f, + 0.0625f, + 0.0525560267f, + 0.0441941731f, + 0.03716272f, + 0.03125f, + 0.0262780134f, + 0.0220970865f, + 0.01858136f, + 0.015625f, + 0.0131390067f, + 0.0110485433f, + 0.00929068f, + 0.0078125f, + 0.00656950334f, + 0.00552427163f, + 0.00464534f + }, + new[] + { + 1f, + 0.707106769f, + 0.5f, + 0.353553385f, + 0.25f, + 0.176776692f, + 0.125f, + 0.0883883461f, + 0.0625f, + 0.0441941731f, + 0.03125f, + 0.0220970865f, + 0.015625f, + 0.0110485433f, + 0.0078125f, + 0.00552427163f, + 0.00390625f, + 0.00276213582f, + 0.001953125f, + 0.00138106791f, + 0.0009765625f, + 0.000690533954f, + 0.00048828125f, + 0.000345266977f, + 0.000244140625f, + 0.000172633489f, + 0.000122070313f, + 8.63167443E-05f, + 6.10351563E-05f, + 4.31583721E-05f, + 3.05175781E-05f, + 2.15791861E-05f + } + }; + + public static readonly float[] Float13 = + { + 0f, + 0.2679492f, + 0.577350259f, + 1f, + 1.73205078f, + 3.732051f, + 1E+11f, + -3.732051f, + -1.73205078f, + -1f, + -0.577350259f, + -0.2679492f, + 0f, + 0.2679492f, + 0.577350259f, + 1f + }; + + private static readonly int[] Int20 = + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 5, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 6, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 8, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 9, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 10, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 11, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 13, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 15, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 18, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 19, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 20, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 21, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 22, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 23, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 24, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 25, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 26, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 27, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 28, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 29, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31, + 31 + }; + + private static readonly int[] Int21 = + { + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17 + }; + + private static int[][] _int22; + + private static readonly float[] Float14 = + { + 0.8574929f, + 0.881742f, + 0.949628651f, + 0.9833146f, + 0.9955178f, + 0.9991606f, + 0.9998992f, + 0.999993145f + }; + + private static readonly float[] Float15 = + { + -0.51449573f, + -0.471731961f, + -0.31337744f, + -0.1819132f, + -0.09457419f, + -0.0409655832f, + -0.0141985686f, + -0.00369997462f + }; + + public static readonly float[][] Float16 = + { + new[] + { + -0.0161412153f, + -0.05360318f, + -0.100707136f, + -0.16280818f, + -0.5f, + -0.383887351f, + -0.6206114f, + -1.16597557f, + -3.87207532f, + -4.225629f, + -1.519529f, + -0.974164844f, + -0.737440765f, + -1.20710683f, + -0.5163616f, + -0.454260528f, + -0.407156557f, + -0.3696946f, + -0.3387627f, + -0.312422216f, + -0.289395869f, + -0.268800825f, + -0.5f, + -0.232514173f, + -0.215967149f, + -0.200049788f, + -0.184494928f, + -0.169058457f, + -0.153503612f, + -0.137586251f, + -0.121039219f, + -0.207106784f, + -0.0847525746f, + -0.06415752f, + -0.0411311723f, + -0.0147907054f + }, + new[] + { + -0.0161412153f, + -0.05360318f, + -0.100707136f, + -0.16280818f, + -0.5f, + -0.383887351f, + -0.6206114f, + -1.16597557f, + -3.87207532f, + -4.225629f, + -1.519529f, + -0.974164844f, + -0.737440765f, + -1.20710683f, + -0.5163616f, + -0.454260528f, + -0.407156557f, + -0.3696946f, + -0.33908543f, + -0.3151181f, + -0.296422273f, + -0.28184548f, + -0.5411961f, + -0.2621323f, + -0.25387916f, + -0.2329629f, + -0.198527291f, + -0.152335346f, + -0.0964964f, + -0.03342383f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f + }, + new[] + { + -0.0483008f, + -0.157156572f, + -0.283250451f, + -0.429537475f, + -1.20710683f, + -0.8242648f, + -1.14517486f, + -1.769529f, + -4.54702234f, + -3.489053f, + -0.7329629f, + -0.150765151f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0f + }, + new[] + { + 0f, + 0f, + 0f, + 0f, + 0f, + 0f, + -0.150765136f, + -0.7329629f, + -3.489053f, + -4.54702234f, + -1.769529f, + -1.14517486f, + -0.8313774f, + -1.306563f, + -0.541420162f, + -0.465289742f, + -0.4106699f, + -0.3700468f, + -0.3387627f, + -0.312422216f, + -0.289395869f, + -0.268800825f, + -0.5f, + -0.232514173f, + -0.215967149f, + -0.200049788f, + -0.184494928f, + -0.169058457f, + -0.153503612f, + -0.137586251f, + -0.121039219f, + -0.207106784f, + -0.0847525746f, + -0.06415752f, + -0.0411311723f, + -0.0147907054f + } + }; + + public Class91 Class910; + + public static readonly int[,,] Int23 = + { + { + { + 6, + 5, + 5, + 5 + }, + { + 9, + 9, + 9, + 9 + }, + { + 6, + 9, + 9, + 9 + } + }, + { + { + 6, + 5, + 7, + 3 + }, + { + 9, + 9, + 12, + 6 + }, + { + 6, + 9, + 12, + 6 + } + }, + { + { + 11, + 10, + 0, + 0 + }, + { + 18, + 18, + 0, + 0 + }, + { + 15, + 18, + 0, + 0 + } + }, + { + { + 7, + 7, + 7, + 0 + }, + { + 12, + 12, + 12, + 0 + }, + { + 6, + 15, + 12, + 0 + } + }, + { + { + 6, + 6, + 6, + 3 + }, + { + 12, + 9, + 9, + 6 + }, + { + 6, + 12, + 9, + 6 + } + }, + { + { + 8, + 8, + 5, + 0 + }, + { + 15, + 12, + 9, + 0 + }, + { + 6, + 18, + 9, + 0 + } + } + }; + + public Class85(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803, Class84 class841, + Enum4 enum41) + { + var array = new int[1]; + Int12 = array; + var array2 = new int[1]; + Int13 = array2; + var array3 = new int[1]; + Int14 = array3; + var array4 = new int[1]; + Int15 = array4; + Int16 = new int[576]; + Float7 = new float[576]; + Float8 = new float[18]; + Float9 = new float[36]; + //base..ctor(); + Class103.smethod_0(); + _int2 = new int[580]; + _float0 = new float[2][,]; + _float0[0] = new float[32, 18]; + _float0[1] = new float[32, 18]; + _float1 = new float[2][,]; + _float1[0] = new float[32, 18]; + _float1[1] = new float[32, 18]; + _float2 = new float[576]; + _float3 = new float[2, 576]; + _float4 = new float[2, 576]; + _int3 = new int[2]; + _class900 = new Class90[2]; + _class900[0] = new Class90(); + _class900[1] = new Class90(); + _class901 = _class900; + _class860 = new Class86[9]; + int[] array5 = + { + 0, + 6, + 12, + 18, + 24, + 30, + 36, + 44, + 54, + 66, + 80, + 96, + 116, + 140, + 168, + 200, + 238, + 284, + 336, + 396, + 464, + 522, + 576 + }; + int[] array6 = + { + 0, + 4, + 8, + 12, + 18, + 24, + 32, + 42, + 56, + 74, + 100, + 132, + 174, + 192 + }; + int[] array7 = + { + 0, + 6, + 12, + 18, + 24, + 30, + 36, + 44, + 54, + 66, + 80, + 96, + 114, + 136, + 162, + 194, + 232, + 278, + 330, + 394, + 464, + 540, + 576 + }; + int[] array8 = + { + 0, + 4, + 8, + 12, + 18, + 26, + 36, + 48, + 62, + 80, + 104, + 136, + 180, + 192 + }; + int[] array9 = + { + 0, + 6, + 12, + 18, + 24, + 30, + 36, + 44, + 54, + 66, + 80, + 96, + 116, + 140, + 168, + 200, + 238, + 284, + 336, + 396, + 464, + 522, + 576 + }; + int[] array10 = + { + 0, + 4, + 8, + 12, + 18, + 26, + 36, + 48, + 62, + 80, + 104, + 134, + 174, + 192 + }; + int[] array11 = + { + 0, + 4, + 8, + 12, + 16, + 20, + 24, + 30, + 36, + 44, + 52, + 62, + 74, + 90, + 110, + 134, + 162, + 196, + 238, + 288, + 342, + 418, + 576 + }; + int[] array12 = + { + 0, + 4, + 8, + 12, + 16, + 22, + 30, + 40, + 52, + 66, + 84, + 106, + 136, + 192 + }; + int[] array13 = + { + 0, + 4, + 8, + 12, + 16, + 20, + 24, + 30, + 36, + 42, + 50, + 60, + 72, + 88, + 106, + 128, + 156, + 190, + 230, + 276, + 330, + 384, + 576 + }; + int[] array14 = + { + 0, + 4, + 8, + 12, + 16, + 22, + 28, + 38, + 50, + 64, + 80, + 100, + 126, + 192 + }; + int[] array15 = + { + 0, + 4, + 8, + 12, + 16, + 20, + 24, + 30, + 36, + 44, + 54, + 66, + 82, + 102, + 126, + 156, + 194, + 240, + 296, + 364, + 448, + 550, + 576 + }; + int[] array16 = + { + 0, + 4, + 8, + 12, + 16, + 22, + 30, + 42, + 58, + 78, + 104, + 138, + 180, + 192 + }; + int[] array17 = + { + 0, + 6, + 12, + 18, + 24, + 30, + 36, + 44, + 54, + 66, + 80, + 96, + 116, + 140, + 168, + 200, + 238, + 284, + 336, + 396, + 464, + 522, + 576 + }; + int[] array18 = + { + 0, + 4, + 8, + 12, + 18, + 26, + 36, + 48, + 62, + 80, + 104, + 134, + 174, + 192 + }; + int[] array19 = + { + 0, + 6, + 12, + 18, + 24, + 30, + 36, + 44, + 54, + 66, + 80, + 96, + 116, + 140, + 168, + 200, + 238, + 284, + 336, + 396, + 464, + 522, + 576 + }; + int[] array20 = + { + 0, + 4, + 8, + 12, + 18, + 26, + 36, + 48, + 62, + 80, + 104, + 134, + 174, + 192 + }; + int[] array21 = + { + 0, + 12, + 24, + 36, + 48, + 60, + 72, + 88, + 108, + 132, + 160, + 192, + 232, + 280, + 336, + 400, + 476, + 566, + 568, + 570, + 572, + 574, + 576 + }; + int[] array22 = + { + 0, + 8, + 16, + 24, + 36, + 52, + 72, + 96, + 124, + 160, + 162, + 164, + 166, + 192 + }; + _class860[0] = new Class86(array5, array6); + _class860[1] = new Class86(array7, array8); + _class860[2] = new Class86(array9, array10); + _class860[3] = new Class86(array11, array12); + _class860[4] = new Class86(array13, array14); + _class860[5] = new Class86(array15, array16); + _class860[6] = new Class86(array17, array18); + _class860[7] = new Class86(array19, array20); + _class860[8] = new Class86(array21, array22); + if (_int22 == null) + { + _int22 = new int[9][]; + for (var i = 0; i < 9; i++) + { + _int22[i] = smethod_1(_class860[i].Int1); + } + } + int[] array23 = + { + 0, + 6, + 11, + 16, + 21 + }; + int[] array24 = + { + 0, + 6, + 12 + }; + Class910 = new Class91(this, array23, array24); + Int0 = new int[54]; + _class820 = class821; + _class1070 = class1071; + _class800 = class802; + _class801 = class803; + _class840 = class841; + _enum40 = enum41; + _int5 = 0; + _int7 = ((_class1070.method_8() == Enum5.Const3) ? 1 : 2); + _int4 = ((_class1070.method_3() == Enum3.Const1) ? 2 : 1); + _int10 = _class1070.method_6() + ((_class1070.method_3() == Enum3.Const1) + ? 3 + : ((_class1070.method_3() == Enum3.Const2) ? 6 : 0)); + if (_int7 == 2) + { + switch (_enum40) + { + case Enum4.Const0: + IL_4E3: + _int8 = 0; + _int9 = 1; + goto IL_521; + case Enum4.Const1: + case Enum4.Const3: + _int9 = 0; + _int8 = 0; + goto IL_521; + case Enum4.Const2: + _int9 = 1; + _int8 = 1; + goto IL_521; + } + // goto IL_4E3 _int8 = 0; _int9 = 1; goto IL_521; - } - _int9 = 0; - _int8 = 0; - IL_521: - Array.Clear(_float3, 0, 1152); - var arg54B0 = _int3; - var arg54B1 = 0; - _int3[1] = 576; - arg54B0[arg54B1] = 576; - _class1020 = new Class102(); - _class890 = new Class89(); - } - - public void imethod_0() - { - method_0(); - } - - public void method_0() - { - var num = _class1070.method_13(); - method_1(); - for (var i = 0; i < num; i++) - { - _class1020.method_3(_class820.method_13(8)); - } - var num2 = _class1020.method_0() >> 3; - int num3; - if ((num3 = (_class1020.method_0() & 7)) != 0) - { - _class1020.method_1(8 - num3); - num2++; - } - var j = _int5 - num2 - _class890.Int0; - _int5 += num; - if (j < 0) - { - return; - } - if (num2 > 4096) - { - _int5 -= 4096; - _class1020.method_5(4096); - } - while (j > 0) - { - _class1020.method_1(8); - j--; - } - for (var k = 0; k < _int4; k++) - { - int l; - for (l = 0; l < _int7; l++) - { - _int6 = _class1020.method_0(); - if (_class1070.method_3() == Enum3.Const1) - { - method_2(l, k); - } - else - { - method_4(l, k); - } - method_5(l, k); - method_7(_float0[l], l, k); - } - method_9(k); - if (_enum40 == Enum4.Const3 && _int7 > 1) - { - method_12(); - } - l = _int8; - while (l <= _int9) - { - method_8(_float1[l], l, k); - method_10(l, k); - method_11(l, k); - for (var m = 18; m < 576; m += 36) - { - for (var n = 1; n < 18; n += 2) - { - _float2[m + n] = -_float2[m + n]; - } - } - if (l == 0) - { - goto IL_241; - } - if (_enum40 == Enum4.Const2) - { - goto IL_241; - } - for (var n = 0; n < 18; n++) - { - var num4 = 0; - for (var m = 0; m < 576; m += 18) - { - _float6[num4] = _float2[m + n]; - num4++; - } - _class801.method_3(_float6); - _class801.method_22(_class840); - } - IL_2A7: - l++; - continue; - IL_241: - for (var n = 0; n < 18; n++) - { - var num4 = 0; - for (var m = 0; m < 576; m += 18) - { - _float5[num4] = _float2[m + n]; - num4++; - } - _class800.method_3(_float5); - _class800.method_22(_class840); - } - goto IL_2A7; - } - } - _int17++; - _class840.method_5(); - } - - private bool method_1() - { - if (_class1070.method_3() == Enum3.Const1) - { - _class890.Int0 = _class820.method_13(9); - _class890.Int1 = ((_int7 == 1) ? _class820.method_13(5) : _class820.method_13(3)); - for (var i = 0; i < _int7; i++) - { - _class890.Class880[i].Int0[0] = _class820.method_13(1); - _class890.Class880[i].Int0[1] = _class820.method_13(1); - _class890.Class880[i].Int0[2] = _class820.method_13(1); - _class890.Class880[i].Int0[3] = _class820.method_13(1); - } - for (var j = 0; j < 2; j++) - { - for (var i = 0; i < _int7; i++) - { - _class890.Class880[i].Class870[j].Int0 = _class820.method_13(12); - _class890.Class880[i].Class870[j].Int1 = _class820.method_13(9); - _class890.Class880[i].Class870[j].Int2 = _class820.method_13(8); - _class890.Class880[i].Class870[j].Int3 = _class820.method_13(4); - _class890.Class880[i].Class870[j].Int4 = _class820.method_13(1); - if (_class890.Class880[i].Class870[j].Int4 != 0) - { - _class890.Class880[i].Class870[j].Int5 = _class820.method_13(2); - _class890.Class880[i].Class870[j].Int6 = _class820.method_13(1); - _class890.Class880[i].Class870[j].Int7[0] = _class820.method_13(5); - _class890.Class880[i].Class870[j].Int7[1] = _class820.method_13(5); - _class890.Class880[i].Class870[j].Int8[0] = _class820.method_13(3); - _class890.Class880[i].Class870[j].Int8[1] = _class820.method_13(3); - _class890.Class880[i].Class870[j].Int8[2] = _class820.method_13(3); - if (_class890.Class880[i].Class870[j].Int5 == 0) - { - return false; - } - if (_class890.Class880[i].Class870[j].Int5 == 2 && _class890.Class880[i].Class870[j].Int6 == 0) - { - _class890.Class880[i].Class870[j].Int9 = 8; - } - else - { - _class890.Class880[i].Class870[j].Int9 = 7; - } - _class890.Class880[i].Class870[j].Int10 = 20 - _class890.Class880[i].Class870[j].Int9; - } - else - { - _class890.Class880[i].Class870[j].Int7[0] = _class820.method_13(5); - _class890.Class880[i].Class870[j].Int7[1] = _class820.method_13(5); - _class890.Class880[i].Class870[j].Int7[2] = _class820.method_13(5); - _class890.Class880[i].Class870[j].Int9 = _class820.method_13(4); - _class890.Class880[i].Class870[j].Int10 = _class820.method_13(3); - _class890.Class880[i].Class870[j].Int5 = 0; - } - _class890.Class880[i].Class870[j].Int11 = _class820.method_13(1); - _class890.Class880[i].Class870[j].Int12 = _class820.method_13(1); - _class890.Class880[i].Class870[j].Int13 = _class820.method_13(1); - } - } - } - else - { - _class890.Int0 = _class820.method_13(8); - _class890.Int1 = ((_int7 == 1) ? _class820.method_13(1) : _class820.method_13(2)); - for (var i = 0; i < _int7; i++) - { - _class890.Class880[i].Class870[0].Int0 = _class820.method_13(12); - _class890.Class880[i].Class870[0].Int1 = _class820.method_13(9); - _class890.Class880[i].Class870[0].Int2 = _class820.method_13(8); - _class890.Class880[i].Class870[0].Int3 = _class820.method_13(9); - _class890.Class880[i].Class870[0].Int4 = _class820.method_13(1); - if (_class890.Class880[i].Class870[0].Int4 != 0) - { - _class890.Class880[i].Class870[0].Int5 = _class820.method_13(2); - _class890.Class880[i].Class870[0].Int6 = _class820.method_13(1); - _class890.Class880[i].Class870[0].Int7[0] = _class820.method_13(5); - _class890.Class880[i].Class870[0].Int7[1] = _class820.method_13(5); - _class890.Class880[i].Class870[0].Int8[0] = _class820.method_13(3); - _class890.Class880[i].Class870[0].Int8[1] = _class820.method_13(3); - _class890.Class880[i].Class870[0].Int8[2] = _class820.method_13(3); - if (_class890.Class880[i].Class870[0].Int5 == 0) - { - return false; - } - if (_class890.Class880[i].Class870[0].Int5 == 2 && _class890.Class880[i].Class870[0].Int6 == 0) - { - _class890.Class880[i].Class870[0].Int9 = 8; - } - else - { - _class890.Class880[i].Class870[0].Int9 = 7; - _class890.Class880[i].Class870[0].Int10 = 20 - _class890.Class880[i].Class870[0].Int9; - } - } - else - { - _class890.Class880[i].Class870[0].Int7[0] = _class820.method_13(5); - _class890.Class880[i].Class870[0].Int7[1] = _class820.method_13(5); - _class890.Class880[i].Class870[0].Int7[2] = _class820.method_13(5); - _class890.Class880[i].Class870[0].Int9 = _class820.method_13(4); - _class890.Class880[i].Class870[0].Int10 = _class820.method_13(3); - _class890.Class880[i].Class870[0].Int5 = 0; - } - _class890.Class880[i].Class870[0].Int12 = _class820.method_13(1); - _class890.Class880[i].Class870[0].Int13 = _class820.method_13(1); - } - } - return true; - } - - private void method_2(int int24, int int25) - { - var @class = _class890.Class880[int24].Class870[int25]; - var num = @class.Int3; - var num2 = Int18[0, num]; - var num3 = Int18[1, num]; - if (@class.Int4 == 0 || @class.Int5 != 2) - { - if (_class890.Class880[int24].Int0[0] == 0 || int25 == 0) - { - _class901[int24].Int0[0] = _class1020.method_1(num2); - _class901[int24].Int0[1] = _class1020.method_1(num2); - _class901[int24].Int0[2] = _class1020.method_1(num2); - _class901[int24].Int0[3] = _class1020.method_1(num2); - _class901[int24].Int0[4] = _class1020.method_1(num2); - _class901[int24].Int0[5] = _class1020.method_1(num2); - } - if (_class890.Class880[int24].Int0[1] == 0 || int25 == 0) - { - _class901[int24].Int0[6] = _class1020.method_1(num2); - _class901[int24].Int0[7] = _class1020.method_1(num2); - _class901[int24].Int0[8] = _class1020.method_1(num2); - _class901[int24].Int0[9] = _class1020.method_1(num2); - _class901[int24].Int0[10] = _class1020.method_1(num2); - } - if (_class890.Class880[int24].Int0[2] == 0 || int25 == 0) - { - _class901[int24].Int0[11] = _class1020.method_1(num3); - _class901[int24].Int0[12] = _class1020.method_1(num3); - _class901[int24].Int0[13] = _class1020.method_1(num3); - _class901[int24].Int0[14] = _class1020.method_1(num3); - _class901[int24].Int0[15] = _class1020.method_1(num3); - } - if (_class890.Class880[int24].Int0[3] == 0 || int25 == 0) - { - _class901[int24].Int0[16] = _class1020.method_1(num3); - _class901[int24].Int0[17] = _class1020.method_1(num3); - _class901[int24].Int0[18] = _class1020.method_1(num3); - _class901[int24].Int0[19] = _class1020.method_1(num3); - _class901[int24].Int0[20] = _class1020.method_1(num3); - } - _class901[int24].Int0[21] = 0; - _class901[int24].Int0[22] = 0; - return; - } - if (@class.Int6 != 0) - { - int i; - for (i = 0; i < 8; i++) - { - _class901[int24].Int0[i] = _class1020.method_1(Int18[0, @class.Int3]); - } - for (i = 3; i < 6; i++) - { - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, i] = _class1020.method_1(Int18[0, @class.Int3]); - } - } - for (i = 6; i < 12; i++) - { - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, i] = _class1020.method_1(Int18[1, @class.Int3]); - } - } - i = 12; - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, i] = 0; - } - return; - } - _class901[int24].Int1[0, 0] = _class1020.method_1(num2); - _class901[int24].Int1[1, 0] = _class1020.method_1(num2); - _class901[int24].Int1[2, 0] = _class1020.method_1(num2); - _class901[int24].Int1[0, 1] = _class1020.method_1(num2); - _class901[int24].Int1[1, 1] = _class1020.method_1(num2); - _class901[int24].Int1[2, 1] = _class1020.method_1(num2); - _class901[int24].Int1[0, 2] = _class1020.method_1(num2); - _class901[int24].Int1[1, 2] = _class1020.method_1(num2); - _class901[int24].Int1[2, 2] = _class1020.method_1(num2); - _class901[int24].Int1[0, 3] = _class1020.method_1(num2); - _class901[int24].Int1[1, 3] = _class1020.method_1(num2); - _class901[int24].Int1[2, 3] = _class1020.method_1(num2); - _class901[int24].Int1[0, 4] = _class1020.method_1(num2); - _class901[int24].Int1[1, 4] = _class1020.method_1(num2); - _class901[int24].Int1[2, 4] = _class1020.method_1(num2); - _class901[int24].Int1[0, 5] = _class1020.method_1(num2); - _class901[int24].Int1[1, 5] = _class1020.method_1(num2); - _class901[int24].Int1[2, 5] = _class1020.method_1(num2); - _class901[int24].Int1[0, 6] = _class1020.method_1(num3); - _class901[int24].Int1[1, 6] = _class1020.method_1(num3); - _class901[int24].Int1[2, 6] = _class1020.method_1(num3); - _class901[int24].Int1[0, 7] = _class1020.method_1(num3); - _class901[int24].Int1[1, 7] = _class1020.method_1(num3); - _class901[int24].Int1[2, 7] = _class1020.method_1(num3); - _class901[int24].Int1[0, 8] = _class1020.method_1(num3); - _class901[int24].Int1[1, 8] = _class1020.method_1(num3); - _class901[int24].Int1[2, 8] = _class1020.method_1(num3); - _class901[int24].Int1[0, 9] = _class1020.method_1(num3); - _class901[int24].Int1[1, 9] = _class1020.method_1(num3); - _class901[int24].Int1[2, 9] = _class1020.method_1(num3); - _class901[int24].Int1[0, 10] = _class1020.method_1(num3); - _class901[int24].Int1[1, 10] = _class1020.method_1(num3); - _class901[int24].Int1[2, 10] = _class1020.method_1(num3); - _class901[int24].Int1[0, 11] = _class1020.method_1(num3); - _class901[int24].Int1[1, 11] = _class1020.method_1(num3); - _class901[int24].Int1[2, 11] = _class1020.method_1(num3); - _class901[int24].Int1[0, 12] = 0; - _class901[int24].Int1[1, 12] = 0; - _class901[int24].Int1[2, 12] = 0; - } - - private void method_3(int int24, int int25) - { - var num = _class1070.method_14(); - var num2 = 0; - var @class = _class890.Class880[int24].Class870[int25]; - var num3 = @class.Int3; - int num4; - if (@class.Int5 == 2) - { - if (@class.Int6 == 0) - { - num4 = 1; - } - else - { - num4 = ((@class.Int6 == 1) ? 2 : 0); - } - } - else - { - num4 = 0; - } - if ((num != 1 && num != 3) || int24 != 1) - { - if (num3 < 400) - { - _int11[0] = Math.DivRem(num3 >> 4, 5, out _int11[1]); - _int11[2] = (num3 & 15) >> 2; - _int11[3] = (num3 & 3); - _class890.Class880[int24].Class870[int25].Int11 = 0; - num2 = 0; - } - else if (num3 < 500) - { - _int11[0] = Math.DivRem(num3 - 400 >> 2, 5, out _int11[1]); - _int11[2] = (num3 - 400 & 3); - _int11[3] = 0; - _class890.Class880[int24].Class870[int25].Int11 = 0; - num2 = 1; - } - else if (num3 < 512) - { - _int11[0] = Math.DivRem(num3 - 500, 3, out _int11[1]); - _int11[2] = 0; - _int11[3] = 0; - _class890.Class880[int24].Class870[int25].Int11 = 1; - num2 = 2; - } - } - if ((num == 1 || num == 3) && int24 == 1) - { - var num5 = num3 >> 1; - if (num5 < 180) - { - int a; - _int11[0] = Math.DivRem(num5, 36, out a); - _int11[1] = Math.DivRem(a, 6, out _int11[2]); - _int11[3] = 0; - _class890.Class880[int24].Class870[int25].Int11 = 0; - num2 = 3; - } - else if (num5 < 244) - { - var num6 = num5 - 180; - _int11[0] = (num6 & 63) >> 4; - _int11[1] = (num6 & 15) >> 2; - _int11[2] = (num6 & 3); - _int11[3] = 0; - _class890.Class880[int24].Class870[int25].Int11 = 0; - num2 = 4; - } - else if (num5 < 255) - { - _int11[0] = Math.DivRem(num5 - 244, 3, out _int11[1]); - _int11[2] = 0; - _int11[3] = 0; - _class890.Class880[int24].Class870[int25].Int11 = 0; - num2 = 5; - } - } - for (var i = 0; i < 45; i++) - { - Int0[i] = 0; - } - var num7 = 0; - for (var j = 0; j < 4; j++) - { - for (var k = 0; k < Int23[num2, num4, j]; k++) - { - Int0[num7++] = ((_int11[j] == 0) ? 0 : _class1020.method_1(_int11[j])); - } - } - } - - private void method_4(int int24, int int25) - { - var num = 0; - var @class = _class890.Class880[int24].Class870[int25]; - method_3(int24, int25); - if (@class.Int4 == 0 || @class.Int5 != 2) - { - for (var i = 0; i < 21; i++) - { - _class901[int24].Int0[i] = Int0[num++]; - } - _class901[int24].Int0[21] = 0; - _class901[int24].Int0[22] = 0; - return; - } - if (@class.Int6 != 0) - { - for (var i = 0; i < 8; i++) - { - _class901[int24].Int0[i] = Int0[num++]; - } - for (var i = 3; i < 12; i++) - { - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, i] = Int0[num++]; - } - } - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, 12] = 0; - } - return; - } - for (var i = 0; i < 12; i++) - { - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, i] = Int0[num++]; - } - } - for (var j = 0; j < 3; j++) - { - _class901[int24].Int1[j, 12] = 0; - } - } - - private void method_5(int int24, int int25) - { - Int12[0] = 0; - Int13[0] = 0; - Int14[0] = 0; - Int15[0] = 0; - var num = _int6 + _class890.Class880[int24].Class870[int25].Int0; - int num2; - int num3; - if (_class890.Class880[int24].Class870[int25].Int4 != 0 && _class890.Class880[int24].Class870[int25].Int5 == 2) - { - num2 = ((_int10 == 8) ? 72 : 36); - num3 = 576; - } - else - { - var num4 = _class890.Class880[int24].Class870[int25].Int9 + 1; - var num5 = num4 + _class890.Class880[int24].Class870[int25].Int10 + 1; - if (num5 > _class860[_int10].Int0.Length - 1) - { - num5 = _class860[_int10].Int0.Length - 1; - } - num2 = _class860[_int10].Int0[num4]; - num3 = _class860[_int10].Int0[num5]; - } - var i = 0; - var num6 = 0; - Class103 class103; - while (num6 < _class890.Class880[int24].Class870[int25].Int1 << 1 && i < _int2.Length) - { - if (num6 < num2) - { - class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[0]]; - } - else if (num6 < num3) - { - class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[1]]; - } - else - { - class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[2]]; - } - Class103.smethod_1(class103, Int12, Int13, Int14, Int15, _class1020); - _int2[i++] = Int12[0]; - _int2[i++] = Int13[0]; - _int1 = _int1 + Int12[0] + Int13[0]; - num6 += 2; - } - class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int13 + 32]; - var num7 = _class1020.method_0(); - while (num7 < num && i < 576) - { - Class103.smethod_1(class103, Int12, Int13, Int14, Int15, _class1020); - _int2[i++] = Int14[0]; - _int2[i++] = Int15[0]; - _int2[i++] = Int12[0]; - _int2[i++] = Int13[0]; - _int1 = _int1 + Int14[0] + Int15[0] + Int12[0] + Int13[0]; - num7 = _class1020.method_0(); - } - if (num7 > num) - { - _class1020.method_4(num7 - num); - i -= 4; - } - num7 = _class1020.method_0(); - if (num7 < num) - { - _class1020.method_1(num - num7); - } - _int3[int24] = ((i < 576) ? i : 576); - if (i < 0) - { - i = 0; - } - while (i < 576) - { - _int2[i] = 0; - i++; - } - } - - private void method_6(int int24, int int25, int int26) - { - if (int24 == 0) - { - _float4[0, int26] = 1f; - _float4[1, int26] = 1f; - return; - } - if ((int24 & 1) != 0) - { - _float4[0, int26] = Float12[int25][int24 + 1 >> 1]; - _float4[1, int26] = 1f; - return; - } - _float4[0, int26] = 1f; - _float4[1, int26] = Float12[int25][int24 >> 1]; - } - - private void method_7(float[,] float17, int int24, int int25) - { - var @class = _class890.Class880[int24].Class870[int25]; - var num = 0; - var num2 = 0; - var num3 = 0; - var num4 = 0; - int num5; - if (@class.Int4 != 0 && @class.Int5 == 2) - { - if (@class.Int6 != 0) - { - num5 = _class860[_int10].Int0[1]; - } - else - { - num3 = _class860[_int10].Int1[1]; - num5 = (num3 << 2) - num3; - num2 = 0; - } - } - else - { - num5 = _class860[_int10].Int0[1]; - } - var num6 = (float)Math.Pow(2.0, 0.25 * (@class.Int2 - 210.0)); - for (var i = 0; i < _int3[int24]; i++) - { - var num7 = i % 18; - var num8 = (i - num7) / 18; - if (_int2[i] == 0) - { - float17[num8, num7] = 0f; - } - else - { - var num9 = _int2[i]; - if (num9 < Float11.Length) - { - if (_int2[i] > 0) - { - float17[num8, num7] = num6 * Float11[num9]; - } - else if (-num9 < Float11.Length) - { - float17[num8, num7] = -num6 * Float11[-num9]; - } - else - { - float17[num8, num7] = -num6 * (float)Math.Pow(-(double)num9, Double0); - } - } - else if (_int2[i] > 0) - { - float17[num8, num7] = num6 * (float)Math.Pow(num9, Double0); - } - else - { - float17[num8, num7] = -num6 * (float)Math.Pow(-(double)num9, Double0); - } - } - } - for (var i = 0; i < _int3[int24]; i++) - { - var num10 = i % 18; - var num11 = (i - num10) / 18; - if (num4 == num5) - { - if (@class.Int4 != 0 && @class.Int5 == 2) - { - if (@class.Int6 != 0) - { - if (num4 == _class860[_int10].Int0[8]) - { - num5 = _class860[_int10].Int1[4]; - num5 = (num5 << 2) - num5; - num = 3; - num3 = _class860[_int10].Int1[4] - _class860[_int10].Int1[3]; - num2 = _class860[_int10].Int1[3]; - num2 = (num2 << 2) - num2; - } - else if (num4 < _class860[_int10].Int0[8]) - { - num5 = _class860[_int10].Int0[++num + 1]; - } - else - { - num5 = _class860[_int10].Int1[++num + 1]; - num5 = (num5 << 2) - num5; - num2 = _class860[_int10].Int1[num]; - num3 = _class860[_int10].Int1[num + 1] - num2; - num2 = (num2 << 2) - num2; - } - } - else - { - num5 = _class860[_int10].Int1[++num + 1]; - num5 = (num5 << 2) - num5; - num2 = _class860[_int10].Int1[num]; - num3 = _class860[_int10].Int1[num + 1] - num2; - num2 = (num2 << 2) - num2; - } - } - else - { - num5 = _class860[_int10].Int0[++num + 1]; - } - } - if (@class.Int4 != 0 && ((@class.Int5 == 2 && @class.Int6 == 0) || (@class.Int5 == 2 && @class.Int6 != 0 && i >= 36))) - { - var num12 = (num4 - num2) / num3; - var num13 = _class901[int24].Int1[num12, num] << @class.Int12; - num13 += @class.Int8[num12] << 2; - float17[num11, num10] *= Float10[num13]; - } - else - { - var num14 = _class901[int24].Int0[num]; - if (@class.Int11 != 0) - { - num14 += Int19[num]; - } - num14 <<= @class.Int12; - float17[num11, num10] *= Float10[num14]; - } - num4++; - } - for (var i = _int3[int24]; i < 576; i++) - { - var num15 = i % 18; - var num16 = (i - num15) / 18; - if (num15 < 0) - { - num15 = 0; - } - if (num16 < 0) - { - num16 = 0; - } - float17[num16, num15] = 0f; - } - } - - private void method_8(float[,] float17, int int24, int int25) - { - var @class = _class890.Class880[int24].Class870[int25]; - if (@class.Int4 == 0 || @class.Int5 != 2) - { - for (var i = 0; i < 576; i++) - { - var num = i % 18; - var num2 = (i - num) / 18; - _float2[i] = float17[num2, num]; - } - return; - } - Array.Clear(_float2, 0, 576); - if (@class.Int6 != 0) - { - for (var i = 0; i < 36; i++) - { - var num3 = i % 18; - var num4 = (i - num3) / 18; - _float2[i] = float17[num4, num3]; - } - for (var j = 3; j < 13; j++) - { - var num5 = _class860[_int10].Int1[j]; - var num6 = _class860[_int10].Int1[j + 1] - num5; - var num7 = (num5 << 2) - num5; - var k = 0; - var num8 = 0; - while (k < num6) - { - var num9 = num7 + k; - var num10 = num7 + num8; - var num11 = num9 % 18; - var num12 = (num9 - num11) / 18; - _float2[num10] = float17[num12, num11]; - num9 += num6; - num10++; - num11 = num9 % 18; - num12 = (num9 - num11) / 18; - _float2[num10] = float17[num12, num11]; - num9 += num6; - num10++; - num11 = num9 % 18; - num12 = (num9 - num11) / 18; - _float2[num10] = float17[num12, num11]; - k++; - num8 += 3; - } - } - return; - } - for (var i = 0; i < 576; i++) - { - var num13 = _int22[_int10][i]; - var num14 = num13 % 18; - var num15 = (num13 - num14) / 18; - _float2[i] = float17[num15, num14]; - } - } - - private void method_9(int int24) - { - if (_int7 == 1) - { - Array.Copy(_float0[0], 0, _float1[0], 0, 576); - return; - } - var @class = _class890.Class880[0].Class870[int24]; - var num = _class1070.method_14(); - var flag = _class1070.method_8() == Enum5.Const1 && (num & 2) != 0; - var flag2 = _class1070.method_8() == Enum5.Const1 && (num & 1) != 0; - var flag3 = _class1070.method_3() == Enum3.Const0 || _class1070.method_3() == Enum3.Const2; - var int25 = @class.Int3 & 1; - int i; - for (i = 0; i < 576; i++) - { - Int16[i] = 7; - } - Array.Clear(Float7, 0, 576); - if (flag2) - { - if (@class.Int4 != 0 && @class.Int5 == 2) - { - if (@class.Int6 != 0) - { - var num2 = 0; - for (var j = 0; j < 3; j++) - { - var num3 = 2; - int k; - for (k = 12; k >= 3; k--) - { - i = _class860[_int10].Int1[k]; - var l = _class860[_int10].Int1[k + 1] - i; - i = (i << 2) - i + (j + 1) * l - 1; - while (l > 0) - { - if (_float0[1][Int20[i], Int21[i]] != 0f) - { - num3 = k; - k = -10; - l = -10; - } - l--; - i--; - } - } - k = num3 + 1; - if (k > num2) - { - num2 = k; - } - int num4; - int m; - while (k < 12) - { - num4 = _class860[_int10].Int1[k]; - m = _class860[_int10].Int1[k + 1] - num4; - i = (num4 << 2) - num4 + j * m; - while (m > 0) - { - Int16[i] = _class901[1].Int1[j, k]; - if (Int16[i] != 7) - { - if (flag3) - { - method_6(Int16[i], int25, i); - } - else - { - Float7[i] = Float13[Int16[i]]; - } - } - i++; - m--; - } - k++; - } - k = _class860[_int10].Int1[10]; - m = _class860[_int10].Int1[11] - k; - k = (k << 2) - k + j * m; - num4 = _class860[_int10].Int1[11]; - m = _class860[_int10].Int1[12] - num4; - i = (num4 << 2) - num4 + j * m; - while (m > 0) - { - Int16[i] = Int16[k]; - if (flag3) - { - _float4[0, i] = _float4[0, k]; - _float4[1, i] = _float4[1, k]; - } - else - { - Float7[i] = Float7[k]; - } - i++; - m--; - } - } - if (num2 <= 3) - { - i = 2; - var n = 17; - var m = -1; - while (i >= 0) - { - if (_float0[1][i, n] != 0f) - { - m = (i << 4) + (i << 1) + n; - i = -1; - } - else - { - n--; - if (n < 0) - { - i--; - n = 17; - } - } - } - i = 0; - while (_class860[_int10].Int0[i] <= m) - { - i++; - } - var k = i; - i = _class860[_int10].Int0[i]; - while (k < 8) - { - for (m = _class860[_int10].Int0[k + 1] - _class860[_int10].Int0[k]; m > 0; m--) - { - Int16[i] = _class901[1].Int0[k]; - if (Int16[i] != 7) - { - if (flag3) - { - method_6(Int16[i], int25, i); - } - else - { - Float7[i] = Float13[Int16[i]]; - } - } - i++; - } - k++; - } - } - } - else - { - for (var num5 = 0; num5 < 3; num5++) - { - var num6 = -1; - int k; - int num4; - for (k = 12; k >= 0; k--) - { - num4 = _class860[_int10].Int1[k]; - var l = _class860[_int10].Int1[k + 1] - num4; - i = (num4 << 2) - num4 + (num5 + 1) * l - 1; - while (l > 0) - { - if (_float0[1][Int20[i], Int21[i]] != 0f) - { - num6 = k; - k = -10; - l = -10; - } - l--; - i--; - } - } - int m; - for (k = num6 + 1; k < 12; k++) - { - num4 = _class860[_int10].Int1[k]; - m = _class860[_int10].Int1[k + 1] - num4; - i = (num4 << 2) - num4 + num5 * m; - while (m > 0) - { - Int16[i] = _class901[1].Int1[num5, k]; - if (Int16[i] != 7) - { - if (flag3) - { - method_6(Int16[i], int25, i); - } - else - { - Float7[i] = Float13[Int16[i]]; - } - } - i++; - m--; - } - } - num4 = _class860[_int10].Int1[10]; - var num7 = _class860[_int10].Int1[11]; - m = num7 - num4; - k = (num4 << 2) - num4 + num5 * m; - m = _class860[_int10].Int1[12] - num7; - i = (num7 << 2) - num7 + num5 * m; - while (m > 0) - { - Int16[i] = Int16[k]; - if (flag3) - { - _float4[0, i] = _float4[0, k]; - _float4[1, i] = _float4[1, k]; - } - else - { - Float7[i] = Float7[k]; - } - i++; - m--; - } - } - } - } - else - { - i = 31; - var n = 17; - var m = 0; - while (i >= 0) - { - if (_float0[1][i, n] != 0f) - { - m = (i << 4) + (i << 1) + n; - i = -1; - } - else - { - n--; - if (n < 0) - { - i--; - n = 17; - } - } - } - i = 0; - while (_class860[_int10].Int0[i] <= m) - { - i++; - } - var k = i; - i = _class860[_int10].Int0[i]; - while (k < 21) - { - for (m = _class860[_int10].Int0[k + 1] - _class860[_int10].Int0[k]; m > 0; m--) - { - Int16[i] = _class901[1].Int0[k]; - if (Int16[i] != 7) - { - if (flag3) - { - method_6(Int16[i], int25, i); - } - else - { - Float7[i] = Float13[Int16[i]]; - } - } - i++; - } - k++; - } - k = _class860[_int10].Int0[20]; - m = 576 - _class860[_int10].Int0[21]; - while (m > 0 && i < 576) - { - Int16[i] = Int16[k]; - if (flag3) - { - _float4[0, i] = _float4[0, k]; - _float4[1, i] = _float4[1, k]; - } - else - { - Float7[i] = Float7[k]; - } - i++; - m--; - } - } - } - i = 0; - for (var m = 0; m < 32; m++) - { - for (var n = 0; n < 18; n++) - { - if (Int16[i] == 7) - { - if (flag) - { - _float1[0][m, n] = (_float0[0][m, n] + _float0[1][m, n]) * 0.707106769f; - _float1[1][m, n] = (_float0[0][m, n] - _float0[1][m, n]) * 0.707106769f; - } - else - { - _float1[0][m, n] = _float0[0][m, n]; - _float1[1][m, n] = _float0[1][m, n]; - } - } - else if (flag2) - { - if (flag3) - { - _float1[0][m, n] = _float0[0][m, n] * _float4[0, i]; - _float1[1][m, n] = _float0[0][m, n] * _float4[1, i]; - } - else - { - _float1[1][m, n] = _float0[0][m, n] / (1f + Float7[i]); - _float1[0][m, n] = _float1[1][m, n] * Float7[i]; - } - } - i++; - } - } - } - - private void method_10(int int24, int int25) - { - var @class = _class890.Class880[int24].Class870[int25]; - if (@class.Int4 != 0 && @class.Int5 == 2 && @class.Int6 == 0) - { - return; - } - int num; - if (@class.Int4 != 0 && @class.Int6 != 0 && @class.Int5 == 2) - { - num = 18; - } - else - { - num = 558; - } - for (var i = 0; i < num; i += 18) - { - for (var j = 0; j < 8; j++) - { - var num2 = i + 17 - j; - var num3 = i + 18 + j; - var num4 = _float2[num2]; - var num5 = _float2[num3]; - _float2[num2] = num4 * Float14[j] - num5 * Float15[j]; - _float2[num3] = num5 * Float14[j] + num4 * Float15[j]; - } - } - } - - private void method_11(int int24, int int25) - { - var @class = _class890.Class880[int24].Class870[int25]; - for (var i = 0; i < 576; i += 18) - { - var int26 = (@class.Int4 == 0 || @class.Int6 == 0 || i >= 36) ? @class.Int5 : 0; - var array = _float2; - for (var j = 0; j < 18; j++) - { - Float8[j] = array[j + i]; - } - method_13(Float8, Float9, int26); - for (var k = 0; k < 18; k++) - { - array[k + i] = Float8[k]; - } - var array2 = _float3; - array[i] = Float9[0] + array2[int24, i]; - array2[int24, i] = Float9[18]; - array[1 + i] = Float9[1] + array2[int24, i + 1]; - array2[int24, i + 1] = Float9[19]; - array[2 + i] = Float9[2] + array2[int24, i + 2]; - array2[int24, i + 2] = Float9[20]; - array[3 + i] = Float9[3] + array2[int24, i + 3]; - array2[int24, i + 3] = Float9[21]; - array[4 + i] = Float9[4] + array2[int24, i + 4]; - array2[int24, i + 4] = Float9[22]; - array[5 + i] = Float9[5] + array2[int24, i + 5]; - array2[int24, i + 5] = Float9[23]; - array[6 + i] = Float9[6] + array2[int24, i + 6]; - array2[int24, i + 6] = Float9[24]; - array[7 + i] = Float9[7] + array2[int24, i + 7]; - array2[int24, i + 7] = Float9[25]; - array[8 + i] = Float9[8] + array2[int24, i + 8]; - array2[int24, i + 8] = Float9[26]; - array[9 + i] = Float9[9] + array2[int24, i + 9]; - array2[int24, i + 9] = Float9[27]; - array[10 + i] = Float9[10] + array2[int24, i + 10]; - array2[int24, i + 10] = Float9[28]; - array[11 + i] = Float9[11] + array2[int24, i + 11]; - array2[int24, i + 11] = Float9[29]; - array[12 + i] = Float9[12] + array2[int24, i + 12]; - array2[int24, i + 12] = Float9[30]; - array[13 + i] = Float9[13] + array2[int24, i + 13]; - array2[int24, i + 13] = Float9[31]; - array[14 + i] = Float9[14] + array2[int24, i + 14]; - array2[int24, i + 14] = Float9[32]; - array[15 + i] = Float9[15] + array2[int24, i + 15]; - array2[int24, i + 15] = Float9[33]; - array[16 + i] = Float9[16] + array2[int24, i + 16]; - array2[int24, i + 16] = Float9[34]; - array[17 + i] = Float9[17] + array2[int24, i + 17]; - array2[int24, i + 17] = Float9[35]; - } - } - - private void method_12() - { - for (var i = 0; i < 18; i++) - { - for (var j = 0; j < 18; j += 3) - { - _float1[0][i, j] = (_float1[0][i, j] + _float1[1][i, j]) * 0.5f; - _float1[0][i, j + 1] = (_float1[0][i, j + 1] + _float1[1][i, j + 1]) * 0.5f; - _float1[0][i, j + 2] = (_float1[0][i, j + 2] + _float1[1][i, j + 2]) * 0.5f; - } - } - } - - public void method_13(float[] float17, float[] float18, int int24) - { - float num5; - float num6; - float num7; - float num8; - float num9; - float num10; - float num12; - float num13; - float num14; - float num15; - float num16; - float num17; - if (int24 == 2) - { - Array.Clear(float18, 0, 36); - var num = 0; - for (var i = 0; i < 3; i++) - { - float17[15 + i] += float17[12 + i]; - float17[12 + i] += float17[9 + i]; - float17[9 + i] += float17[6 + i]; - float17[6 + i] += float17[3 + i]; - float17[3 + i] += float17[i]; - float17[15 + i] += float17[9 + i]; - float17[9 + i] += float17[3 + i]; - var num2 = float17[12 + i] * 0.5f; - var num3 = float17[6 + i] * 0.8660254f; - var num4 = float17[i] + num2; - num5 = float17[i] - float17[12 + i]; - num6 = num4 + num3; - num7 = num4 - num3; - num2 = float17[15 + i] * 0.5f; - num3 = float17[9 + i] * 0.8660254f; - num4 = float17[3 + i] + num2; - num8 = float17[3 + i] - float17[15 + i]; - num9 = num4 + num3; - num10 = num4 - num3; - num10 *= 1.93185163f; - num8 *= 0.707106769f; - num9 *= 0.5176381f; - var num11 = num6; - num6 += num9; - num9 = num11 - num9; - num11 = num5; - num5 += num8; - num8 = num11 - num8; - num11 = num7; - num7 += num10; - num10 = num11 - num10; - num6 *= 0.5043145f; - num5 *= 0.5411961f; - num7 *= 0.6302362f; - num10 *= 0.8213398f; - num8 *= 1.306563f; - num9 *= 3.830649f; - num12 = -num6 * 0.7933533f; - num13 = -num6 * 0.6087614f; - num14 = -num5 * 0.9238795f; - num15 = -num5 * 0.382683426f; - num16 = -num7 * 0.9914449f; - num17 = -num7 * 0.130526185f; - num6 = num10; - num5 = num8 * 0.382683426f; - num7 = num9 * 0.6087614f; - num10 = -num9 * 0.7933533f; - num8 = -num8 * 0.9238795f; - num9 = -num6 * 0.9914449f; - num6 *= 0.130526185f; - float18[num + 6] += num6; - float18[num + 7] += num5; - float18[num + 8] += num7; - float18[num + 9] += num10; - float18[num + 10] += num8; - float18[num + 11] += num9; - float18[num + 12] += num16; - float18[num + 13] += num14; - float18[num + 14] += num12; - float18[num + 15] += num13; - float18[num + 16] += num15; - float18[num + 17] += num17; - num += 6; - } - return; - } - float17[17] += float17[16]; - float17[16] += float17[15]; - float17[15] += float17[14]; - float17[14] += float17[13]; - float17[13] += float17[12]; - float17[12] += float17[11]; - float17[11] += float17[10]; - float17[10] += float17[9]; - float17[9] += float17[8]; - float17[8] += float17[7]; - float17[7] += float17[6]; - float17[6] += float17[5]; - float17[5] += float17[4]; - float17[4] += float17[3]; - float17[3] += float17[2]; - float17[2] += float17[1]; - float17[1] += float17[0]; - float17[17] += float17[15]; - float17[15] += float17[13]; - float17[13] += float17[11]; - float17[11] += float17[9]; - float17[9] += float17[7]; - float17[7] += float17[5]; - float17[5] += float17[3]; - float17[3] += float17[1]; - var num18 = float17[0] + float17[0]; - var num19 = num18 + float17[12]; - var num20 = num19 + float17[4] * 1.87938523f + float17[8] * 1.53208888f + float17[16] * 0.347296357f; - var num21 = num18 + float17[4] - float17[8] - float17[12] - float17[12] - float17[16]; - var num22 = num19 - float17[4] * 0.347296357f - float17[8] * 1.87938523f + float17[16] * 1.53208888f; - var num23 = num19 - float17[4] * 1.53208888f + float17[8] * 0.347296357f - float17[16] * 1.87938523f; - var num24 = float17[0] - float17[4] + float17[8] - float17[12] + float17[16]; - var num25 = float17[6] * 1.73205078f; - var num26 = float17[2] * 1.96961546f + num25 + float17[10] * 1.28557527f + float17[14] * 0.6840403f; - var num27 = (float17[2] - float17[10] - float17[14]) * 1.73205078f; - var num28 = float17[2] * 1.28557527f - num25 - float17[10] * 0.6840403f + float17[14] * 1.96961546f; - var num29 = float17[2] * 0.6840403f - num25 + float17[10] * 1.96961546f - float17[14] * 1.28557527f; - var num30 = float17[1] + float17[1]; - var num31 = num30 + float17[13]; - var num32 = num31 + float17[5] * 1.87938523f + float17[9] * 1.53208888f + float17[17] * 0.347296357f; - var num33 = num30 + float17[5] - float17[9] - float17[13] - float17[13] - float17[17]; - var num34 = num31 - float17[5] * 0.347296357f - float17[9] * 1.87938523f + float17[17] * 1.53208888f; - var num35 = num31 - float17[5] * 1.53208888f + float17[9] * 0.347296357f - float17[17] * 1.87938523f; - var num36 = (float17[1] - float17[5] + float17[9] - float17[13] + float17[17]) * 0.707106769f; - var num37 = float17[7] * 1.73205078f; - var num38 = float17[3] * 1.96961546f + num37 + float17[11] * 1.28557527f + float17[15] * 0.6840403f; - var num39 = (float17[3] - float17[11] - float17[15]) * 1.73205078f; - var num40 = float17[3] * 1.28557527f - num37 - float17[11] * 0.6840403f + float17[15] * 1.96961546f; - var num41 = float17[3] * 0.6840403f - num37 + float17[11] * 1.96961546f - float17[15] * 1.28557527f; - var num42 = num20 + num26; - var num43 = (num32 + num38) * 0.5019099f; - num6 = num42 + num43; - var num44 = num42 - num43; - num42 = num21 + num27; - num43 = (num33 + num39) * 0.5176381f; - num5 = num42 + num43; - var num45 = num42 - num43; - num42 = num22 + num28; - num43 = (num34 + num40) * 0.551688969f; - num7 = num42 + num43; - var num46 = num42 - num43; - num42 = num23 + num29; - num43 = (num35 + num41) * 0.610387266f; - num10 = num42 + num43; - var num47 = num42 - num43; - num8 = num24 + num36; - var num48 = num24 - num36; - num42 = num23 - num29; - num43 = (num35 - num41) * 0.8717234f; - num9 = num42 + num43; - var num49 = num42 - num43; - num42 = num22 - num28; - num43 = (num34 - num40) * 1.18310082f; - num16 = num42 + num43; - num17 = num42 - num43; - num42 = num21 - num27; - num43 = (num33 - num39) * 1.93185163f; - num14 = num42 + num43; - num15 = num42 - num43; - num42 = num20 - num26; - num43 = (num32 - num38) * 5.73685646f; - num12 = num42 + num43; - num13 = num42 - num43; - var array = Float16[int24]; - float18[0] = -num13 * array[0]; - float18[1] = -num15 * array[1]; - float18[2] = -num17 * array[2]; - float18[3] = -num49 * array[3]; - float18[4] = -num48 * array[4]; - float18[5] = -num47 * array[5]; - float18[6] = -num46 * array[6]; - float18[7] = -num45 * array[7]; - float18[8] = -num44 * array[8]; - float18[9] = num44 * array[9]; - float18[10] = num45 * array[10]; - float18[11] = num46 * array[11]; - float18[12] = num47 * array[12]; - float18[13] = num48 * array[13]; - float18[14] = num49 * array[14]; - float18[15] = num17 * array[15]; - float18[16] = num15 * array[16]; - float18[17] = num13 * array[17]; - float18[18] = num12 * array[18]; - float18[19] = num14 * array[19]; - float18[20] = num16 * array[20]; - float18[21] = num9 * array[21]; - float18[22] = num8 * array[22]; - float18[23] = num10 * array[23]; - float18[24] = num7 * array[24]; - float18[25] = num5 * array[25]; - float18[26] = num6 * array[26]; - float18[27] = num6 * array[27]; - float18[28] = num5 * array[28]; - float18[29] = num7 * array[29]; - float18[30] = num10 * array[30]; - float18[31] = num8 * array[31]; - float18[32] = num9 * array[32]; - float18[33] = num16 * array[33]; - float18[34] = num14 * array[34]; - float18[35] = num12 * array[35]; - } - - private static float[] smethod_0() - { - var array = new float[8192]; - var y = 1.3333333333333333; - for (var i = 0; i < 8192; i++) - { - array[i] = (float)Math.Pow(i, y); - } - return array; - } - - public static int[] smethod_1(int[] int24) - { - var num = 0; - var array = new int[576]; - for (var i = 0; i < 13; i++) - { - var num2 = int24[i]; - var num3 = int24[i + 1]; - for (var j = 0; j < 3; j++) - { - for (var k = num2; k < num3; k++) - { - array[3 * k + j] = num++; - } - } - } - return array; - } - } -} + } + _int9 = 0; + _int8 = 0; + IL_521: + Array.Clear(_float3, 0, 1152); + var arg54B0 = _int3; + var arg54B1 = 0; + _int3[1] = 576; + arg54B0[arg54B1] = 576; + _class1020 = new Class102(); + _class890 = new Class89(); + } + + public void imethod_0() + { + method_0(); + } + + public void method_0() + { + var num = _class1070.method_13(); + method_1(); + for (var i = 0; i < num; i++) + { + _class1020.method_3(_class820.method_13(8)); + } + var num2 = _class1020.method_0() >> 3; + int num3; + if ((num3 = (_class1020.method_0() & 7)) != 0) + { + _class1020.method_1(8 - num3); + num2++; + } + var j = _int5 - num2 - _class890.Int0; + _int5 += num; + if (j < 0) + { + return; + } + if (num2 > 4096) + { + _int5 -= 4096; + _class1020.method_5(4096); + } + while (j > 0) + { + _class1020.method_1(8); + j--; + } + for (var k = 0; k < _int4; k++) + { + int l; + for (l = 0; l < _int7; l++) + { + _int6 = _class1020.method_0(); + if (_class1070.method_3() == Enum3.Const1) + { + method_2(l, k); + } + else + { + method_4(l, k); + } + method_5(l, k); + method_7(_float0[l], l, k); + } + method_9(k); + if (_enum40 == Enum4.Const3 && _int7 > 1) + { + method_12(); + } + l = _int8; + while (l <= _int9) + { + method_8(_float1[l], l, k); + method_10(l, k); + method_11(l, k); + for (var m = 18; m < 576; m += 36) + { + for (var n = 1; n < 18; n += 2) + { + _float2[m + n] = -_float2[m + n]; + } + } + if (l == 0) + { + goto IL_241; + } + if (_enum40 == Enum4.Const2) + { + goto IL_241; + } + for (var n = 0; n < 18; n++) + { + var num4 = 0; + for (var m = 0; m < 576; m += 18) + { + _float6[num4] = _float2[m + n]; + num4++; + } + _class801.method_3(_float6); + _class801.method_22(_class840); + } + IL_2A7: + l++; + continue; + IL_241: + for (var n = 0; n < 18; n++) + { + var num4 = 0; + for (var m = 0; m < 576; m += 18) + { + _float5[num4] = _float2[m + n]; + num4++; + } + _class800.method_3(_float5); + _class800.method_22(_class840); + } + goto IL_2A7; + } + } + _int17++; + _class840.method_5(); + } + + private bool method_1() + { + if (_class1070.method_3() == Enum3.Const1) + { + _class890.Int0 = _class820.method_13(9); + _class890.Int1 = ((_int7 == 1) ? _class820.method_13(5) : _class820.method_13(3)); + for (var i = 0; i < _int7; i++) + { + _class890.Class880[i].Int0[0] = _class820.method_13(1); + _class890.Class880[i].Int0[1] = _class820.method_13(1); + _class890.Class880[i].Int0[2] = _class820.method_13(1); + _class890.Class880[i].Int0[3] = _class820.method_13(1); + } + for (var j = 0; j < 2; j++) + { + for (var i = 0; i < _int7; i++) + { + _class890.Class880[i].Class870[j].Int0 = _class820.method_13(12); + _class890.Class880[i].Class870[j].Int1 = _class820.method_13(9); + _class890.Class880[i].Class870[j].Int2 = _class820.method_13(8); + _class890.Class880[i].Class870[j].Int3 = _class820.method_13(4); + _class890.Class880[i].Class870[j].Int4 = _class820.method_13(1); + if (_class890.Class880[i].Class870[j].Int4 != 0) + { + _class890.Class880[i].Class870[j].Int5 = _class820.method_13(2); + _class890.Class880[i].Class870[j].Int6 = _class820.method_13(1); + _class890.Class880[i].Class870[j].Int7[0] = _class820.method_13(5); + _class890.Class880[i].Class870[j].Int7[1] = _class820.method_13(5); + _class890.Class880[i].Class870[j].Int8[0] = _class820.method_13(3); + _class890.Class880[i].Class870[j].Int8[1] = _class820.method_13(3); + _class890.Class880[i].Class870[j].Int8[2] = _class820.method_13(3); + if (_class890.Class880[i].Class870[j].Int5 == 0) + { + return false; + } + if (_class890.Class880[i].Class870[j].Int5 == 2 && + _class890.Class880[i].Class870[j].Int6 == 0) + { + _class890.Class880[i].Class870[j].Int9 = 8; + } + else + { + _class890.Class880[i].Class870[j].Int9 = 7; + } + _class890.Class880[i].Class870[j].Int10 = 20 - _class890.Class880[i].Class870[j].Int9; + } + else + { + _class890.Class880[i].Class870[j].Int7[0] = _class820.method_13(5); + _class890.Class880[i].Class870[j].Int7[1] = _class820.method_13(5); + _class890.Class880[i].Class870[j].Int7[2] = _class820.method_13(5); + _class890.Class880[i].Class870[j].Int9 = _class820.method_13(4); + _class890.Class880[i].Class870[j].Int10 = _class820.method_13(3); + _class890.Class880[i].Class870[j].Int5 = 0; + } + _class890.Class880[i].Class870[j].Int11 = _class820.method_13(1); + _class890.Class880[i].Class870[j].Int12 = _class820.method_13(1); + _class890.Class880[i].Class870[j].Int13 = _class820.method_13(1); + } + } + } + else + { + _class890.Int0 = _class820.method_13(8); + _class890.Int1 = ((_int7 == 1) ? _class820.method_13(1) : _class820.method_13(2)); + for (var i = 0; i < _int7; i++) + { + _class890.Class880[i].Class870[0].Int0 = _class820.method_13(12); + _class890.Class880[i].Class870[0].Int1 = _class820.method_13(9); + _class890.Class880[i].Class870[0].Int2 = _class820.method_13(8); + _class890.Class880[i].Class870[0].Int3 = _class820.method_13(9); + _class890.Class880[i].Class870[0].Int4 = _class820.method_13(1); + if (_class890.Class880[i].Class870[0].Int4 != 0) + { + _class890.Class880[i].Class870[0].Int5 = _class820.method_13(2); + _class890.Class880[i].Class870[0].Int6 = _class820.method_13(1); + _class890.Class880[i].Class870[0].Int7[0] = _class820.method_13(5); + _class890.Class880[i].Class870[0].Int7[1] = _class820.method_13(5); + _class890.Class880[i].Class870[0].Int8[0] = _class820.method_13(3); + _class890.Class880[i].Class870[0].Int8[1] = _class820.method_13(3); + _class890.Class880[i].Class870[0].Int8[2] = _class820.method_13(3); + if (_class890.Class880[i].Class870[0].Int5 == 0) + { + return false; + } + if (_class890.Class880[i].Class870[0].Int5 == 2 && _class890.Class880[i].Class870[0].Int6 == 0) + { + _class890.Class880[i].Class870[0].Int9 = 8; + } + else + { + _class890.Class880[i].Class870[0].Int9 = 7; + _class890.Class880[i].Class870[0].Int10 = 20 - _class890.Class880[i].Class870[0].Int9; + } + } + else + { + _class890.Class880[i].Class870[0].Int7[0] = _class820.method_13(5); + _class890.Class880[i].Class870[0].Int7[1] = _class820.method_13(5); + _class890.Class880[i].Class870[0].Int7[2] = _class820.method_13(5); + _class890.Class880[i].Class870[0].Int9 = _class820.method_13(4); + _class890.Class880[i].Class870[0].Int10 = _class820.method_13(3); + _class890.Class880[i].Class870[0].Int5 = 0; + } + _class890.Class880[i].Class870[0].Int12 = _class820.method_13(1); + _class890.Class880[i].Class870[0].Int13 = _class820.method_13(1); + } + } + return true; + } + + private void method_2(int int24, int int25) + { + var @class = _class890.Class880[int24].Class870[int25]; + var num = @class.Int3; + var num2 = Int18[0, num]; + var num3 = Int18[1, num]; + if (@class.Int4 == 0 || @class.Int5 != 2) + { + if (_class890.Class880[int24].Int0[0] == 0 || int25 == 0) + { + _class901[int24].Int0[0] = _class1020.method_1(num2); + _class901[int24].Int0[1] = _class1020.method_1(num2); + _class901[int24].Int0[2] = _class1020.method_1(num2); + _class901[int24].Int0[3] = _class1020.method_1(num2); + _class901[int24].Int0[4] = _class1020.method_1(num2); + _class901[int24].Int0[5] = _class1020.method_1(num2); + } + if (_class890.Class880[int24].Int0[1] == 0 || int25 == 0) + { + _class901[int24].Int0[6] = _class1020.method_1(num2); + _class901[int24].Int0[7] = _class1020.method_1(num2); + _class901[int24].Int0[8] = _class1020.method_1(num2); + _class901[int24].Int0[9] = _class1020.method_1(num2); + _class901[int24].Int0[10] = _class1020.method_1(num2); + } + if (_class890.Class880[int24].Int0[2] == 0 || int25 == 0) + { + _class901[int24].Int0[11] = _class1020.method_1(num3); + _class901[int24].Int0[12] = _class1020.method_1(num3); + _class901[int24].Int0[13] = _class1020.method_1(num3); + _class901[int24].Int0[14] = _class1020.method_1(num3); + _class901[int24].Int0[15] = _class1020.method_1(num3); + } + if (_class890.Class880[int24].Int0[3] == 0 || int25 == 0) + { + _class901[int24].Int0[16] = _class1020.method_1(num3); + _class901[int24].Int0[17] = _class1020.method_1(num3); + _class901[int24].Int0[18] = _class1020.method_1(num3); + _class901[int24].Int0[19] = _class1020.method_1(num3); + _class901[int24].Int0[20] = _class1020.method_1(num3); + } + _class901[int24].Int0[21] = 0; + _class901[int24].Int0[22] = 0; + return; + } + if (@class.Int6 != 0) + { + int i; + for (i = 0; i < 8; i++) + { + _class901[int24].Int0[i] = _class1020.method_1(Int18[0, @class.Int3]); + } + for (i = 3; i < 6; i++) + { + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, i] = _class1020.method_1(Int18[0, @class.Int3]); + } + } + for (i = 6; i < 12; i++) + { + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, i] = _class1020.method_1(Int18[1, @class.Int3]); + } + } + i = 12; + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, i] = 0; + } + return; + } + _class901[int24].Int1[0, 0] = _class1020.method_1(num2); + _class901[int24].Int1[1, 0] = _class1020.method_1(num2); + _class901[int24].Int1[2, 0] = _class1020.method_1(num2); + _class901[int24].Int1[0, 1] = _class1020.method_1(num2); + _class901[int24].Int1[1, 1] = _class1020.method_1(num2); + _class901[int24].Int1[2, 1] = _class1020.method_1(num2); + _class901[int24].Int1[0, 2] = _class1020.method_1(num2); + _class901[int24].Int1[1, 2] = _class1020.method_1(num2); + _class901[int24].Int1[2, 2] = _class1020.method_1(num2); + _class901[int24].Int1[0, 3] = _class1020.method_1(num2); + _class901[int24].Int1[1, 3] = _class1020.method_1(num2); + _class901[int24].Int1[2, 3] = _class1020.method_1(num2); + _class901[int24].Int1[0, 4] = _class1020.method_1(num2); + _class901[int24].Int1[1, 4] = _class1020.method_1(num2); + _class901[int24].Int1[2, 4] = _class1020.method_1(num2); + _class901[int24].Int1[0, 5] = _class1020.method_1(num2); + _class901[int24].Int1[1, 5] = _class1020.method_1(num2); + _class901[int24].Int1[2, 5] = _class1020.method_1(num2); + _class901[int24].Int1[0, 6] = _class1020.method_1(num3); + _class901[int24].Int1[1, 6] = _class1020.method_1(num3); + _class901[int24].Int1[2, 6] = _class1020.method_1(num3); + _class901[int24].Int1[0, 7] = _class1020.method_1(num3); + _class901[int24].Int1[1, 7] = _class1020.method_1(num3); + _class901[int24].Int1[2, 7] = _class1020.method_1(num3); + _class901[int24].Int1[0, 8] = _class1020.method_1(num3); + _class901[int24].Int1[1, 8] = _class1020.method_1(num3); + _class901[int24].Int1[2, 8] = _class1020.method_1(num3); + _class901[int24].Int1[0, 9] = _class1020.method_1(num3); + _class901[int24].Int1[1, 9] = _class1020.method_1(num3); + _class901[int24].Int1[2, 9] = _class1020.method_1(num3); + _class901[int24].Int1[0, 10] = _class1020.method_1(num3); + _class901[int24].Int1[1, 10] = _class1020.method_1(num3); + _class901[int24].Int1[2, 10] = _class1020.method_1(num3); + _class901[int24].Int1[0, 11] = _class1020.method_1(num3); + _class901[int24].Int1[1, 11] = _class1020.method_1(num3); + _class901[int24].Int1[2, 11] = _class1020.method_1(num3); + _class901[int24].Int1[0, 12] = 0; + _class901[int24].Int1[1, 12] = 0; + _class901[int24].Int1[2, 12] = 0; + } + + private void method_3(int int24, int int25) + { + var num = _class1070.method_14(); + var num2 = 0; + var @class = _class890.Class880[int24].Class870[int25]; + var num3 = @class.Int3; + int num4; + if (@class.Int5 == 2) + { + if (@class.Int6 == 0) + { + num4 = 1; + } + else + { + num4 = ((@class.Int6 == 1) ? 2 : 0); + } + } + else + { + num4 = 0; + } + if ((num != 1 && num != 3) || int24 != 1) + { + if (num3 < 400) + { + _int11[0] = Math.DivRem(num3 >> 4, 5, out _int11[1]); + _int11[2] = (num3 & 15) >> 2; + _int11[3] = (num3 & 3); + _class890.Class880[int24].Class870[int25].Int11 = 0; + num2 = 0; + } + else if (num3 < 500) + { + _int11[0] = Math.DivRem(num3 - 400 >> 2, 5, out _int11[1]); + _int11[2] = (num3 - 400 & 3); + _int11[3] = 0; + _class890.Class880[int24].Class870[int25].Int11 = 0; + num2 = 1; + } + else if (num3 < 512) + { + _int11[0] = Math.DivRem(num3 - 500, 3, out _int11[1]); + _int11[2] = 0; + _int11[3] = 0; + _class890.Class880[int24].Class870[int25].Int11 = 1; + num2 = 2; + } + } + if ((num == 1 || num == 3) && int24 == 1) + { + var num5 = num3 >> 1; + if (num5 < 180) + { + int a; + _int11[0] = Math.DivRem(num5, 36, out a); + _int11[1] = Math.DivRem(a, 6, out _int11[2]); + _int11[3] = 0; + _class890.Class880[int24].Class870[int25].Int11 = 0; + num2 = 3; + } + else if (num5 < 244) + { + var num6 = num5 - 180; + _int11[0] = (num6 & 63) >> 4; + _int11[1] = (num6 & 15) >> 2; + _int11[2] = (num6 & 3); + _int11[3] = 0; + _class890.Class880[int24].Class870[int25].Int11 = 0; + num2 = 4; + } + else if (num5 < 255) + { + _int11[0] = Math.DivRem(num5 - 244, 3, out _int11[1]); + _int11[2] = 0; + _int11[3] = 0; + _class890.Class880[int24].Class870[int25].Int11 = 0; + num2 = 5; + } + } + for (var i = 0; i < 45; i++) + { + Int0[i] = 0; + } + var num7 = 0; + for (var j = 0; j < 4; j++) + { + for (var k = 0; k < Int23[num2, num4, j]; k++) + { + Int0[num7++] = ((_int11[j] == 0) ? 0 : _class1020.method_1(_int11[j])); + } + } + } + + private void method_4(int int24, int int25) + { + var num = 0; + var @class = _class890.Class880[int24].Class870[int25]; + method_3(int24, int25); + if (@class.Int4 == 0 || @class.Int5 != 2) + { + for (var i = 0; i < 21; i++) + { + _class901[int24].Int0[i] = Int0[num++]; + } + _class901[int24].Int0[21] = 0; + _class901[int24].Int0[22] = 0; + return; + } + if (@class.Int6 != 0) + { + for (var i = 0; i < 8; i++) + { + _class901[int24].Int0[i] = Int0[num++]; + } + for (var i = 3; i < 12; i++) + { + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, i] = Int0[num++]; + } + } + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, 12] = 0; + } + return; + } + for (var i = 0; i < 12; i++) + { + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, i] = Int0[num++]; + } + } + for (var j = 0; j < 3; j++) + { + _class901[int24].Int1[j, 12] = 0; + } + } + + private void method_5(int int24, int int25) + { + Int12[0] = 0; + Int13[0] = 0; + Int14[0] = 0; + Int15[0] = 0; + var num = _int6 + _class890.Class880[int24].Class870[int25].Int0; + int num2; + int num3; + if (_class890.Class880[int24].Class870[int25].Int4 != 0 && + _class890.Class880[int24].Class870[int25].Int5 == 2) + { + num2 = ((_int10 == 8) ? 72 : 36); + num3 = 576; + } + else + { + var num4 = _class890.Class880[int24].Class870[int25].Int9 + 1; + var num5 = num4 + _class890.Class880[int24].Class870[int25].Int10 + 1; + if (num5 > _class860[_int10].Int0.Length - 1) + { + num5 = _class860[_int10].Int0.Length - 1; + } + num2 = _class860[_int10].Int0[num4]; + num3 = _class860[_int10].Int0[num5]; + } + var i = 0; + var num6 = 0; + Class103 class103; + while (num6 < _class890.Class880[int24].Class870[int25].Int1 << 1 && i < _int2.Length) + { + if (num6 < num2) + { + class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[0]]; + } + else if (num6 < num3) + { + class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[1]]; + } + else + { + class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int7[2]]; + } + Class103.smethod_1(class103, Int12, Int13, Int14, Int15, _class1020); + _int2[i++] = Int12[0]; + _int2[i++] = Int13[0]; + _int1 = _int1 + Int12[0] + Int13[0]; + num6 += 2; + } + class103 = Class103.Class1030[_class890.Class880[int24].Class870[int25].Int13 + 32]; + var num7 = _class1020.method_0(); + while (num7 < num && i < 576) + { + Class103.smethod_1(class103, Int12, Int13, Int14, Int15, _class1020); + _int2[i++] = Int14[0]; + _int2[i++] = Int15[0]; + _int2[i++] = Int12[0]; + _int2[i++] = Int13[0]; + _int1 = _int1 + Int14[0] + Int15[0] + Int12[0] + Int13[0]; + num7 = _class1020.method_0(); + } + if (num7 > num) + { + _class1020.method_4(num7 - num); + i -= 4; + } + num7 = _class1020.method_0(); + if (num7 < num) + { + _class1020.method_1(num - num7); + } + _int3[int24] = ((i < 576) ? i : 576); + if (i < 0) + { + i = 0; + } + while (i < 576) + { + _int2[i] = 0; + i++; + } + } + + private void method_6(int int24, int int25, int int26) + { + if (int24 == 0) + { + _float4[0, int26] = 1f; + _float4[1, int26] = 1f; + return; + } + if ((int24 & 1) != 0) + { + _float4[0, int26] = Float12[int25][int24 + 1 >> 1]; + _float4[1, int26] = 1f; + return; + } + _float4[0, int26] = 1f; + _float4[1, int26] = Float12[int25][int24 >> 1]; + } + + private void method_7(float[,] float17, int int24, int int25) + { + var @class = _class890.Class880[int24].Class870[int25]; + var num = 0; + var num2 = 0; + var num3 = 0; + var num4 = 0; + int num5; + if (@class.Int4 != 0 && @class.Int5 == 2) + { + if (@class.Int6 != 0) + { + num5 = _class860[_int10].Int0[1]; + } + else + { + num3 = _class860[_int10].Int1[1]; + num5 = (num3 << 2) - num3; + num2 = 0; + } + } + else + { + num5 = _class860[_int10].Int0[1]; + } + var num6 = (float) Math.Pow(2.0, 0.25 * (@class.Int2 - 210.0)); + for (var i = 0; i < _int3[int24]; i++) + { + var num7 = i % 18; + var num8 = (i - num7) / 18; + if (_int2[i] == 0) + { + float17[num8, num7] = 0f; + } + else + { + var num9 = _int2[i]; + if (num9 < Float11.Length) + { + if (_int2[i] > 0) + { + float17[num8, num7] = num6 * Float11[num9]; + } + else if (-num9 < Float11.Length) + { + float17[num8, num7] = -num6 * Float11[-num9]; + } + else + { + float17[num8, num7] = -num6 * (float) Math.Pow(-(double) num9, Double0); + } + } + else if (_int2[i] > 0) + { + float17[num8, num7] = num6 * (float) Math.Pow(num9, Double0); + } + else + { + float17[num8, num7] = -num6 * (float) Math.Pow(-(double) num9, Double0); + } + } + } + for (var i = 0; i < _int3[int24]; i++) + { + var num10 = i % 18; + var num11 = (i - num10) / 18; + if (num4 == num5) + { + if (@class.Int4 != 0 && @class.Int5 == 2) + { + if (@class.Int6 != 0) + { + if (num4 == _class860[_int10].Int0[8]) + { + num5 = _class860[_int10].Int1[4]; + num5 = (num5 << 2) - num5; + num = 3; + num3 = _class860[_int10].Int1[4] - _class860[_int10].Int1[3]; + num2 = _class860[_int10].Int1[3]; + num2 = (num2 << 2) - num2; + } + else if (num4 < _class860[_int10].Int0[8]) + { + num5 = _class860[_int10].Int0[++num + 1]; + } + else + { + num5 = _class860[_int10].Int1[++num + 1]; + num5 = (num5 << 2) - num5; + num2 = _class860[_int10].Int1[num]; + num3 = _class860[_int10].Int1[num + 1] - num2; + num2 = (num2 << 2) - num2; + } + } + else + { + num5 = _class860[_int10].Int1[++num + 1]; + num5 = (num5 << 2) - num5; + num2 = _class860[_int10].Int1[num]; + num3 = _class860[_int10].Int1[num + 1] - num2; + num2 = (num2 << 2) - num2; + } + } + else + { + num5 = _class860[_int10].Int0[++num + 1]; + } + } + if (@class.Int4 != 0 && ((@class.Int5 == 2 && @class.Int6 == 0) || + (@class.Int5 == 2 && @class.Int6 != 0 && i >= 36))) + { + var num12 = (num4 - num2) / num3; + var num13 = _class901[int24].Int1[num12, num] << @class.Int12; + num13 += @class.Int8[num12] << 2; + float17[num11, num10] *= Float10[num13]; + } + else + { + var num14 = _class901[int24].Int0[num]; + if (@class.Int11 != 0) + { + num14 += Int19[num]; + } + num14 <<= @class.Int12; + float17[num11, num10] *= Float10[num14]; + } + num4++; + } + for (var i = _int3[int24]; i < 576; i++) + { + var num15 = i % 18; + var num16 = (i - num15) / 18; + if (num15 < 0) + { + num15 = 0; + } + if (num16 < 0) + { + num16 = 0; + } + float17[num16, num15] = 0f; + } + } + + private void method_8(float[,] float17, int int24, int int25) + { + var @class = _class890.Class880[int24].Class870[int25]; + if (@class.Int4 == 0 || @class.Int5 != 2) + { + for (var i = 0; i < 576; i++) + { + var num = i % 18; + var num2 = (i - num) / 18; + _float2[i] = float17[num2, num]; + } + return; + } + Array.Clear(_float2, 0, 576); + if (@class.Int6 != 0) + { + for (var i = 0; i < 36; i++) + { + var num3 = i % 18; + var num4 = (i - num3) / 18; + _float2[i] = float17[num4, num3]; + } + for (var j = 3; j < 13; j++) + { + var num5 = _class860[_int10].Int1[j]; + var num6 = _class860[_int10].Int1[j + 1] - num5; + var num7 = (num5 << 2) - num5; + var k = 0; + var num8 = 0; + while (k < num6) + { + var num9 = num7 + k; + var num10 = num7 + num8; + var num11 = num9 % 18; + var num12 = (num9 - num11) / 18; + _float2[num10] = float17[num12, num11]; + num9 += num6; + num10++; + num11 = num9 % 18; + num12 = (num9 - num11) / 18; + _float2[num10] = float17[num12, num11]; + num9 += num6; + num10++; + num11 = num9 % 18; + num12 = (num9 - num11) / 18; + _float2[num10] = float17[num12, num11]; + k++; + num8 += 3; + } + } + return; + } + for (var i = 0; i < 576; i++) + { + var num13 = _int22[_int10][i]; + var num14 = num13 % 18; + var num15 = (num13 - num14) / 18; + _float2[i] = float17[num15, num14]; + } + } + + private void method_9(int int24) + { + if (_int7 == 1) + { + Array.Copy(_float0[0], 0, _float1[0], 0, 576); + return; + } + var @class = _class890.Class880[0].Class870[int24]; + var num = _class1070.method_14(); + var flag = _class1070.method_8() == Enum5.Const1 && (num & 2) != 0; + var flag2 = _class1070.method_8() == Enum5.Const1 && (num & 1) != 0; + var flag3 = _class1070.method_3() == Enum3.Const0 || _class1070.method_3() == Enum3.Const2; + var int25 = @class.Int3 & 1; + int i; + for (i = 0; i < 576; i++) + { + Int16[i] = 7; + } + Array.Clear(Float7, 0, 576); + if (flag2) + { + if (@class.Int4 != 0 && @class.Int5 == 2) + { + if (@class.Int6 != 0) + { + var num2 = 0; + for (var j = 0; j < 3; j++) + { + var num3 = 2; + int k; + for (k = 12; k >= 3; k--) + { + i = _class860[_int10].Int1[k]; + var l = _class860[_int10].Int1[k + 1] - i; + i = (i << 2) - i + (j + 1) * l - 1; + while (l > 0) + { + if (_float0[1][Int20[i], Int21[i]] != 0f) + { + num3 = k; + k = -10; + l = -10; + } + l--; + i--; + } + } + k = num3 + 1; + if (k > num2) + { + num2 = k; + } + int num4; + int m; + while (k < 12) + { + num4 = _class860[_int10].Int1[k]; + m = _class860[_int10].Int1[k + 1] - num4; + i = (num4 << 2) - num4 + j * m; + while (m > 0) + { + Int16[i] = _class901[1].Int1[j, k]; + if (Int16[i] != 7) + { + if (flag3) + { + method_6(Int16[i], int25, i); + } + else + { + Float7[i] = Float13[Int16[i]]; + } + } + i++; + m--; + } + k++; + } + k = _class860[_int10].Int1[10]; + m = _class860[_int10].Int1[11] - k; + k = (k << 2) - k + j * m; + num4 = _class860[_int10].Int1[11]; + m = _class860[_int10].Int1[12] - num4; + i = (num4 << 2) - num4 + j * m; + while (m > 0) + { + Int16[i] = Int16[k]; + if (flag3) + { + _float4[0, i] = _float4[0, k]; + _float4[1, i] = _float4[1, k]; + } + else + { + Float7[i] = Float7[k]; + } + i++; + m--; + } + } + if (num2 <= 3) + { + i = 2; + var n = 17; + var m = -1; + while (i >= 0) + { + if (_float0[1][i, n] != 0f) + { + m = (i << 4) + (i << 1) + n; + i = -1; + } + else + { + n--; + if (n < 0) + { + i--; + n = 17; + } + } + } + i = 0; + while (_class860[_int10].Int0[i] <= m) + { + i++; + } + var k = i; + i = _class860[_int10].Int0[i]; + while (k < 8) + { + for (m = _class860[_int10].Int0[k + 1] - _class860[_int10].Int0[k]; m > 0; m--) + { + Int16[i] = _class901[1].Int0[k]; + if (Int16[i] != 7) + { + if (flag3) + { + method_6(Int16[i], int25, i); + } + else + { + Float7[i] = Float13[Int16[i]]; + } + } + i++; + } + k++; + } + } + } + else + { + for (var num5 = 0; num5 < 3; num5++) + { + var num6 = -1; + int k; + int num4; + for (k = 12; k >= 0; k--) + { + num4 = _class860[_int10].Int1[k]; + var l = _class860[_int10].Int1[k + 1] - num4; + i = (num4 << 2) - num4 + (num5 + 1) * l - 1; + while (l > 0) + { + if (_float0[1][Int20[i], Int21[i]] != 0f) + { + num6 = k; + k = -10; + l = -10; + } + l--; + i--; + } + } + int m; + for (k = num6 + 1; k < 12; k++) + { + num4 = _class860[_int10].Int1[k]; + m = _class860[_int10].Int1[k + 1] - num4; + i = (num4 << 2) - num4 + num5 * m; + while (m > 0) + { + Int16[i] = _class901[1].Int1[num5, k]; + if (Int16[i] != 7) + { + if (flag3) + { + method_6(Int16[i], int25, i); + } + else + { + Float7[i] = Float13[Int16[i]]; + } + } + i++; + m--; + } + } + num4 = _class860[_int10].Int1[10]; + var num7 = _class860[_int10].Int1[11]; + m = num7 - num4; + k = (num4 << 2) - num4 + num5 * m; + m = _class860[_int10].Int1[12] - num7; + i = (num7 << 2) - num7 + num5 * m; + while (m > 0) + { + Int16[i] = Int16[k]; + if (flag3) + { + _float4[0, i] = _float4[0, k]; + _float4[1, i] = _float4[1, k]; + } + else + { + Float7[i] = Float7[k]; + } + i++; + m--; + } + } + } + } + else + { + i = 31; + var n = 17; + var m = 0; + while (i >= 0) + { + if (_float0[1][i, n] != 0f) + { + m = (i << 4) + (i << 1) + n; + i = -1; + } + else + { + n--; + if (n < 0) + { + i--; + n = 17; + } + } + } + i = 0; + while (_class860[_int10].Int0[i] <= m) + { + i++; + } + var k = i; + i = _class860[_int10].Int0[i]; + while (k < 21) + { + for (m = _class860[_int10].Int0[k + 1] - _class860[_int10].Int0[k]; m > 0; m--) + { + Int16[i] = _class901[1].Int0[k]; + if (Int16[i] != 7) + { + if (flag3) + { + method_6(Int16[i], int25, i); + } + else + { + Float7[i] = Float13[Int16[i]]; + } + } + i++; + } + k++; + } + k = _class860[_int10].Int0[20]; + m = 576 - _class860[_int10].Int0[21]; + while (m > 0 && i < 576) + { + Int16[i] = Int16[k]; + if (flag3) + { + _float4[0, i] = _float4[0, k]; + _float4[1, i] = _float4[1, k]; + } + else + { + Float7[i] = Float7[k]; + } + i++; + m--; + } + } + } + i = 0; + for (var m = 0; m < 32; m++) + { + for (var n = 0; n < 18; n++) + { + if (Int16[i] == 7) + { + if (flag) + { + _float1[0][m, n] = (_float0[0][m, n] + _float0[1][m, n]) * 0.707106769f; + _float1[1][m, n] = (_float0[0][m, n] - _float0[1][m, n]) * 0.707106769f; + } + else + { + _float1[0][m, n] = _float0[0][m, n]; + _float1[1][m, n] = _float0[1][m, n]; + } + } + else if (flag2) + { + if (flag3) + { + _float1[0][m, n] = _float0[0][m, n] * _float4[0, i]; + _float1[1][m, n] = _float0[0][m, n] * _float4[1, i]; + } + else + { + _float1[1][m, n] = _float0[0][m, n] / (1f + Float7[i]); + _float1[0][m, n] = _float1[1][m, n] * Float7[i]; + } + } + i++; + } + } + } + + private void method_10(int int24, int int25) + { + var @class = _class890.Class880[int24].Class870[int25]; + if (@class.Int4 != 0 && @class.Int5 == 2 && @class.Int6 == 0) + { + return; + } + int num; + if (@class.Int4 != 0 && @class.Int6 != 0 && @class.Int5 == 2) + { + num = 18; + } + else + { + num = 558; + } + for (var i = 0; i < num; i += 18) + { + for (var j = 0; j < 8; j++) + { + var num2 = i + 17 - j; + var num3 = i + 18 + j; + var num4 = _float2[num2]; + var num5 = _float2[num3]; + _float2[num2] = num4 * Float14[j] - num5 * Float15[j]; + _float2[num3] = num5 * Float14[j] + num4 * Float15[j]; + } + } + } + + private void method_11(int int24, int int25) + { + var @class = _class890.Class880[int24].Class870[int25]; + for (var i = 0; i < 576; i += 18) + { + var int26 = (@class.Int4 == 0 || @class.Int6 == 0 || i >= 36) ? @class.Int5 : 0; + var array = _float2; + for (var j = 0; j < 18; j++) + { + Float8[j] = array[j + i]; + } + method_13(Float8, Float9, int26); + for (var k = 0; k < 18; k++) + { + array[k + i] = Float8[k]; + } + var array2 = _float3; + array[i] = Float9[0] + array2[int24, i]; + array2[int24, i] = Float9[18]; + array[1 + i] = Float9[1] + array2[int24, i + 1]; + array2[int24, i + 1] = Float9[19]; + array[2 + i] = Float9[2] + array2[int24, i + 2]; + array2[int24, i + 2] = Float9[20]; + array[3 + i] = Float9[3] + array2[int24, i + 3]; + array2[int24, i + 3] = Float9[21]; + array[4 + i] = Float9[4] + array2[int24, i + 4]; + array2[int24, i + 4] = Float9[22]; + array[5 + i] = Float9[5] + array2[int24, i + 5]; + array2[int24, i + 5] = Float9[23]; + array[6 + i] = Float9[6] + array2[int24, i + 6]; + array2[int24, i + 6] = Float9[24]; + array[7 + i] = Float9[7] + array2[int24, i + 7]; + array2[int24, i + 7] = Float9[25]; + array[8 + i] = Float9[8] + array2[int24, i + 8]; + array2[int24, i + 8] = Float9[26]; + array[9 + i] = Float9[9] + array2[int24, i + 9]; + array2[int24, i + 9] = Float9[27]; + array[10 + i] = Float9[10] + array2[int24, i + 10]; + array2[int24, i + 10] = Float9[28]; + array[11 + i] = Float9[11] + array2[int24, i + 11]; + array2[int24, i + 11] = Float9[29]; + array[12 + i] = Float9[12] + array2[int24, i + 12]; + array2[int24, i + 12] = Float9[30]; + array[13 + i] = Float9[13] + array2[int24, i + 13]; + array2[int24, i + 13] = Float9[31]; + array[14 + i] = Float9[14] + array2[int24, i + 14]; + array2[int24, i + 14] = Float9[32]; + array[15 + i] = Float9[15] + array2[int24, i + 15]; + array2[int24, i + 15] = Float9[33]; + array[16 + i] = Float9[16] + array2[int24, i + 16]; + array2[int24, i + 16] = Float9[34]; + array[17 + i] = Float9[17] + array2[int24, i + 17]; + array2[int24, i + 17] = Float9[35]; + } + } + + private void method_12() + { + for (var i = 0; i < 18; i++) + { + for (var j = 0; j < 18; j += 3) + { + _float1[0][i, j] = (_float1[0][i, j] + _float1[1][i, j]) * 0.5f; + _float1[0][i, j + 1] = (_float1[0][i, j + 1] + _float1[1][i, j + 1]) * 0.5f; + _float1[0][i, j + 2] = (_float1[0][i, j + 2] + _float1[1][i, j + 2]) * 0.5f; + } + } + } + + public void method_13(float[] float17, float[] float18, int int24) + { + float num5; + float num6; + float num7; + float num8; + float num9; + float num10; + float num12; + float num13; + float num14; + float num15; + float num16; + float num17; + if (int24 == 2) + { + Array.Clear(float18, 0, 36); + var num = 0; + for (var i = 0; i < 3; i++) + { + float17[15 + i] += float17[12 + i]; + float17[12 + i] += float17[9 + i]; + float17[9 + i] += float17[6 + i]; + float17[6 + i] += float17[3 + i]; + float17[3 + i] += float17[i]; + float17[15 + i] += float17[9 + i]; + float17[9 + i] += float17[3 + i]; + var num2 = float17[12 + i] * 0.5f; + var num3 = float17[6 + i] * 0.8660254f; + var num4 = float17[i] + num2; + num5 = float17[i] - float17[12 + i]; + num6 = num4 + num3; + num7 = num4 - num3; + num2 = float17[15 + i] * 0.5f; + num3 = float17[9 + i] * 0.8660254f; + num4 = float17[3 + i] + num2; + num8 = float17[3 + i] - float17[15 + i]; + num9 = num4 + num3; + num10 = num4 - num3; + num10 *= 1.93185163f; + num8 *= 0.707106769f; + num9 *= 0.5176381f; + var num11 = num6; + num6 += num9; + num9 = num11 - num9; + num11 = num5; + num5 += num8; + num8 = num11 - num8; + num11 = num7; + num7 += num10; + num10 = num11 - num10; + num6 *= 0.5043145f; + num5 *= 0.5411961f; + num7 *= 0.6302362f; + num10 *= 0.8213398f; + num8 *= 1.306563f; + num9 *= 3.830649f; + num12 = -num6 * 0.7933533f; + num13 = -num6 * 0.6087614f; + num14 = -num5 * 0.9238795f; + num15 = -num5 * 0.382683426f; + num16 = -num7 * 0.9914449f; + num17 = -num7 * 0.130526185f; + num6 = num10; + num5 = num8 * 0.382683426f; + num7 = num9 * 0.6087614f; + num10 = -num9 * 0.7933533f; + num8 = -num8 * 0.9238795f; + num9 = -num6 * 0.9914449f; + num6 *= 0.130526185f; + float18[num + 6] += num6; + float18[num + 7] += num5; + float18[num + 8] += num7; + float18[num + 9] += num10; + float18[num + 10] += num8; + float18[num + 11] += num9; + float18[num + 12] += num16; + float18[num + 13] += num14; + float18[num + 14] += num12; + float18[num + 15] += num13; + float18[num + 16] += num15; + float18[num + 17] += num17; + num += 6; + } + return; + } + float17[17] += float17[16]; + float17[16] += float17[15]; + float17[15] += float17[14]; + float17[14] += float17[13]; + float17[13] += float17[12]; + float17[12] += float17[11]; + float17[11] += float17[10]; + float17[10] += float17[9]; + float17[9] += float17[8]; + float17[8] += float17[7]; + float17[7] += float17[6]; + float17[6] += float17[5]; + float17[5] += float17[4]; + float17[4] += float17[3]; + float17[3] += float17[2]; + float17[2] += float17[1]; + float17[1] += float17[0]; + float17[17] += float17[15]; + float17[15] += float17[13]; + float17[13] += float17[11]; + float17[11] += float17[9]; + float17[9] += float17[7]; + float17[7] += float17[5]; + float17[5] += float17[3]; + float17[3] += float17[1]; + var num18 = float17[0] + float17[0]; + var num19 = num18 + float17[12]; + var num20 = num19 + float17[4] * 1.87938523f + float17[8] * 1.53208888f + float17[16] * 0.347296357f; + var num21 = num18 + float17[4] - float17[8] - float17[12] - float17[12] - float17[16]; + var num22 = num19 - float17[4] * 0.347296357f - float17[8] * 1.87938523f + float17[16] * 1.53208888f; + var num23 = num19 - float17[4] * 1.53208888f + float17[8] * 0.347296357f - float17[16] * 1.87938523f; + var num24 = float17[0] - float17[4] + float17[8] - float17[12] + float17[16]; + var num25 = float17[6] * 1.73205078f; + var num26 = float17[2] * 1.96961546f + num25 + float17[10] * 1.28557527f + float17[14] * 0.6840403f; + var num27 = (float17[2] - float17[10] - float17[14]) * 1.73205078f; + var num28 = float17[2] * 1.28557527f - num25 - float17[10] * 0.6840403f + float17[14] * 1.96961546f; + var num29 = float17[2] * 0.6840403f - num25 + float17[10] * 1.96961546f - float17[14] * 1.28557527f; + var num30 = float17[1] + float17[1]; + var num31 = num30 + float17[13]; + var num32 = num31 + float17[5] * 1.87938523f + float17[9] * 1.53208888f + float17[17] * 0.347296357f; + var num33 = num30 + float17[5] - float17[9] - float17[13] - float17[13] - float17[17]; + var num34 = num31 - float17[5] * 0.347296357f - float17[9] * 1.87938523f + float17[17] * 1.53208888f; + var num35 = num31 - float17[5] * 1.53208888f + float17[9] * 0.347296357f - float17[17] * 1.87938523f; + var num36 = (float17[1] - float17[5] + float17[9] - float17[13] + float17[17]) * 0.707106769f; + var num37 = float17[7] * 1.73205078f; + var num38 = float17[3] * 1.96961546f + num37 + float17[11] * 1.28557527f + float17[15] * 0.6840403f; + var num39 = (float17[3] - float17[11] - float17[15]) * 1.73205078f; + var num40 = float17[3] * 1.28557527f - num37 - float17[11] * 0.6840403f + float17[15] * 1.96961546f; + var num41 = float17[3] * 0.6840403f - num37 + float17[11] * 1.96961546f - float17[15] * 1.28557527f; + var num42 = num20 + num26; + var num43 = (num32 + num38) * 0.5019099f; + num6 = num42 + num43; + var num44 = num42 - num43; + num42 = num21 + num27; + num43 = (num33 + num39) * 0.5176381f; + num5 = num42 + num43; + var num45 = num42 - num43; + num42 = num22 + num28; + num43 = (num34 + num40) * 0.551688969f; + num7 = num42 + num43; + var num46 = num42 - num43; + num42 = num23 + num29; + num43 = (num35 + num41) * 0.610387266f; + num10 = num42 + num43; + var num47 = num42 - num43; + num8 = num24 + num36; + var num48 = num24 - num36; + num42 = num23 - num29; + num43 = (num35 - num41) * 0.8717234f; + num9 = num42 + num43; + var num49 = num42 - num43; + num42 = num22 - num28; + num43 = (num34 - num40) * 1.18310082f; + num16 = num42 + num43; + num17 = num42 - num43; + num42 = num21 - num27; + num43 = (num33 - num39) * 1.93185163f; + num14 = num42 + num43; + num15 = num42 - num43; + num42 = num20 - num26; + num43 = (num32 - num38) * 5.73685646f; + num12 = num42 + num43; + num13 = num42 - num43; + var array = Float16[int24]; + float18[0] = -num13 * array[0]; + float18[1] = -num15 * array[1]; + float18[2] = -num17 * array[2]; + float18[3] = -num49 * array[3]; + float18[4] = -num48 * array[4]; + float18[5] = -num47 * array[5]; + float18[6] = -num46 * array[6]; + float18[7] = -num45 * array[7]; + float18[8] = -num44 * array[8]; + float18[9] = num44 * array[9]; + float18[10] = num45 * array[10]; + float18[11] = num46 * array[11]; + float18[12] = num47 * array[12]; + float18[13] = num48 * array[13]; + float18[14] = num49 * array[14]; + float18[15] = num17 * array[15]; + float18[16] = num15 * array[16]; + float18[17] = num13 * array[17]; + float18[18] = num12 * array[18]; + float18[19] = num14 * array[19]; + float18[20] = num16 * array[20]; + float18[21] = num9 * array[21]; + float18[22] = num8 * array[22]; + float18[23] = num10 * array[23]; + float18[24] = num7 * array[24]; + float18[25] = num5 * array[25]; + float18[26] = num6 * array[26]; + float18[27] = num6 * array[27]; + float18[28] = num5 * array[28]; + float18[29] = num7 * array[29]; + float18[30] = num10 * array[30]; + float18[31] = num8 * array[31]; + float18[32] = num9 * array[32]; + float18[33] = num16 * array[33]; + float18[34] = num14 * array[34]; + float18[35] = num12 * array[35]; + } + + private static float[] smethod_0() + { + var array = new float[8192]; + var y = 1.3333333333333333; + for (var i = 0; i < 8192; i++) + { + array[i] = (float) Math.Pow(i, y); + } + return array; + } + + public static int[] smethod_1(int[] int24) + { + var num = 0; + var array = new int[576]; + for (var i = 0; i < 13; i++) + { + var num2 = int24[i]; + var num3 = int24[i + 1]; + for (var j = 0; j < 3; j++) + { + for (var k = num2; k < num3; k++) + { + array[3 * k + j] = num++; + } + } + } + return array; + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class92.cs b/GHNamespaceI/Class92.cs index cfc3458..1a3a269 100644 --- a/GHNamespaceI/Class92.cs +++ b/GHNamespaceI/Class92.cs @@ -3,462 +3,464 @@ namespace GHNamespaceI { - public class Class92 : INterface7 - { - public abstract class Class94 - { - public static readonly float[] Float0 = { - 2f, - 1.587401f, - 1.25992107f, - 1f, - 0.7937005f, - 0.629960537f, - 0.5f, - 0.396850258f, - 0.314980268f, - 0.25f, - 0.198425129f, - 0.157490134f, - 0.125f, - 0.0992125645f, - 0.07874507f, - 0.0625f, - 0.0496062823f, - 0.0393725336f, - 0.03125f, - 0.0248031411f, - 0.0196862668f, - 0.015625f, - 0.0124015706f, - 0.009843133f, - 0.0078125f, - 0.00620078528f, - 0.00492156669f, - 0.00390625f, - 0.00310039264f, - 0.00246078335f, - 0.001953125f, - 0.00155019632f, - 0.00123039167f, - 0.0009765625f, - 0.00077509816f, - 0.000615195837f, - 0.00048828125f, - 0.00038754908f, - 0.000307597918f, - 0.000244140625f, - 0.00019377454f, - 0.000153798959f, - 0.000122070313f, - 9.688727E-05f, - 7.689948E-05f, - 6.10351563E-05f, - 4.8443635E-05f, - 3.844974E-05f, - 3.05175781E-05f, - 2.42218175E-05f, - 1.922487E-05f, - 1.52587891E-05f, - 1.21109088E-05f, - 9.612435E-06f, - 7.62939453E-06f, - 6.05545438E-06f, - 4.80621748E-06f, - 3.81469727E-06f, - 3.02772719E-06f, - 2.40310874E-06f, - 1.90734863E-06f, - 1.51386359E-06f, - 1.20155437E-06f, - 0f - }; - - public abstract void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010); - - public abstract void vmethod_1(Class82 class820, ZzSoundClass class1070); - - public abstract bool vmethod_2(Class82 class820); - - public abstract bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801); - } - - public class Class95 : Class94 - { - public static readonly float[] Float1 = { - 0f, - 0.6666667f, - 0.2857143f, - 0.13333334f, - 0.06451613f, - 0.0317460336f, - 0.0157480314f, - 0.007843138f, - 0.0039138943f, - 0.00195503421f, - 0.0009770396f, - 0.0004884005f, - 0.000244170427f, - 0.000122077763f, - 6.103702E-05f - }; - - public static readonly float[] Float2 = { - 0f, - -0.6666667f, - -0.857142866f, - -0.933333337f, - -0.9677419f, - -0.984127f, - -0.992126f, - -0.996078432f, - -0.99804306f, - -0.9990225f, - -0.9995115f, - -0.9997558f, - -0.9998779f, - -0.999938965f, - -0.9999695f - }; - - public readonly int Int0; - - public int Int1; - - public int Int2; - - public float Float3; - - public int Int3; - - public float Float4; - - public float Float5; - - public float Float6; - - public Class95(int int4) - { - Int0 = int4; - Int1 = 0; - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - if ((Int2 = class820.method_13(4)) == 15) - { - throw new DecoderException(DecoderError.IllegalSubbandAllocation, null); - } - if (class1010 != null) - { - class1010.method_0(Int2, 4); - } - if (Int2 != 0) - { - Int3 = Int2 + 1; - Float5 = Float1[Int2]; - Float6 = Float2[Int2]; - } - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - if (Int2 != 0) - { - Float3 = Float0[class820.method_13(6)]; - } - } - - public override bool vmethod_2(Class82 class820) - { - if (Int2 != 0) - { - Float4 = class820.method_13(Int3); - } - if (++Int1 == 12) - { - Int1 = 0; - return true; - } - return false; - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - if (Int2 != 0 && enum40 != Enum4.Const2) - { - var float_ = (Float4 * Float5 + Float6) * Float3; - class800.method_2(float_, Int0); - } - return true; - } - } - - public class Class96 : Class95 - { - public float Float7; - - public Class96(int int4) : base(int4) - { - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - base.vmethod_0(class820, class1070, class1010); - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - if (Int2 == 0) - { - return; - } - Float3 = Float0[class820.method_13(6)]; - Float7 = Float0[class820.method_13(6)]; - } - - public override bool vmethod_2(Class82 class820) - { - return base.vmethod_2(class820); - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - if (Int2 != 0) - { - Float4 = Float4 * Float5 + Float6; - switch (enum40) - { - case Enum4.Const0: - class800.method_2(Float4 * Float3, Int0); - class801.method_2(Float4 * Float7, Int0); - break; - case Enum4.Const1: - class800.method_2(Float4 * Float3, Int0); - break; - default: - class800.method_2(Float4 * Float7, Int0); - break; - } - } - return true; - } - } - - public class Class97 : Class95 - { - public int Int4; - - public float Float7; - - public int Int5; - - public float Float8; - - public float Float9; - - public float Float10; - - public Class97(int int6) : base(int6) - { - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - Int2 = class820.method_13(4); - Int4 = class820.method_13(4); - if (class1010 != null) - { - class1010.method_0(Int2, 4); - class1010.method_0(Int4, 4); - } - if (Int2 != 0) - { - Int3 = Int2 + 1; - Float5 = Float1[Int2]; - Float6 = Float2[Int2]; - } - if (Int4 != 0) - { - Int5 = Int4 + 1; - Float9 = Float1[Int4]; - Float10 = Float2[Int4]; - } - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - if (Int2 != 0) - { - Float3 = Float0[class820.method_13(6)]; - } - if (Int4 != 0) - { - Float7 = Float0[class820.method_13(6)]; - } - } - - public override bool vmethod_2(Class82 class820) - { - var result = base.vmethod_2(class820); - if (Int4 != 0) - { - Float8 = class820.method_13(Int5); - } - return result; - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - base.vmethod_3(enum40, class800, class801); - if (Int4 != 0 && enum40 != Enum4.Const1) - { - var num = (Float8 * Float9 + Float10) * Float7; - if (enum40 == Enum4.Const0) - { - class801.method_2(num, Int0); - } - else - { - class800.method_2(num, Int0); - } - } - return true; - } - } - - public Class82 Class820; - - public ZzSoundClass Class1070; - - public Class80 Class800; - - public Class80 Class801; - - public Class84 Class840; - - public Enum4 Enum40; - - public Enum5 Enum50; - - public int Int0; - - public Class94[] Class940; - - public readonly Class101 Class1010; - - public Class92() - { - Class1010 = new Class101(); - } - - public virtual void vmethod_0(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803, Class84 class841, Enum4 enum41) - { - Class820 = class821; - Class1070 = class1071; - Class800 = class802; - Class801 = class803; - Class840 = class841; - Enum40 = enum41; - } - - public virtual void imethod_0() - { - try - { - Int0 = Class1070.method_25(); - Class940 = new Class94[32]; - Enum50 = Class1070.method_8(); - vmethod_1(); - vmethod_2(); - vmethod_3(); - if (Class1010 != null || Class1070.method_12()) - { - vmethod_4(); - vmethod_5(); - } - } - catch - { - } - } - - public virtual void vmethod_1() - { - if (Enum50 == Enum5.Const3) - { - for (var i = 0; i < Int0; i++) - { - Class940[i] = new Class95(i); - } - return; - } - if (Enum50 == Enum5.Const1) - { - int i; - for (i = 0; i < Class1070.method_26(); i++) - { - Class940[i] = new Class97(i); - } - while (i < Int0) - { - Class940[i] = new Class96(i); - i++; - } - return; - } - for (var i = 0; i < Int0; i++) - { - Class940[i] = new Class97(i); - } - } - - public virtual void vmethod_2() - { - for (var i = 0; i < Int0; i++) - { - Class940[i].vmethod_0(Class820, Class1070, Class1010); - } - } - - public virtual void vmethod_3() - { - } - - public virtual void vmethod_4() - { - for (var i = 0; i < Int0; i++) - { - Class940[i].vmethod_1(Class820, Class1070); - } - } - - public virtual void vmethod_5() - { - var flag = false; - var flag2 = false; - var @enum = Class1070.method_8(); - do - { - for (var i = 0; i < Int0; i++) - { - flag = Class940[i].vmethod_2(Class820); - } - do - { - for (var i = 0; i < Int0; i++) - { - flag2 = Class940[i].vmethod_3(Enum40, Class800, Class801); - } - Class800.method_22(Class840); - if (Enum40 == Enum4.Const0 && @enum != Enum5.Const3) - { - Class801.method_22(Class840); - } - } - while (!flag2); - } - while (!flag); - } - } -} + public class Class92 : INterface7 + { + public abstract class Class94 + { + public static readonly float[] Float0 = + { + 2f, + 1.587401f, + 1.25992107f, + 1f, + 0.7937005f, + 0.629960537f, + 0.5f, + 0.396850258f, + 0.314980268f, + 0.25f, + 0.198425129f, + 0.157490134f, + 0.125f, + 0.0992125645f, + 0.07874507f, + 0.0625f, + 0.0496062823f, + 0.0393725336f, + 0.03125f, + 0.0248031411f, + 0.0196862668f, + 0.015625f, + 0.0124015706f, + 0.009843133f, + 0.0078125f, + 0.00620078528f, + 0.00492156669f, + 0.00390625f, + 0.00310039264f, + 0.00246078335f, + 0.001953125f, + 0.00155019632f, + 0.00123039167f, + 0.0009765625f, + 0.00077509816f, + 0.000615195837f, + 0.00048828125f, + 0.00038754908f, + 0.000307597918f, + 0.000244140625f, + 0.00019377454f, + 0.000153798959f, + 0.000122070313f, + 9.688727E-05f, + 7.689948E-05f, + 6.10351563E-05f, + 4.8443635E-05f, + 3.844974E-05f, + 3.05175781E-05f, + 2.42218175E-05f, + 1.922487E-05f, + 1.52587891E-05f, + 1.21109088E-05f, + 9.612435E-06f, + 7.62939453E-06f, + 6.05545438E-06f, + 4.80621748E-06f, + 3.81469727E-06f, + 3.02772719E-06f, + 2.40310874E-06f, + 1.90734863E-06f, + 1.51386359E-06f, + 1.20155437E-06f, + 0f + }; + + public abstract void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010); + + public abstract void vmethod_1(Class82 class820, ZzSoundClass class1070); + + public abstract bool vmethod_2(Class82 class820); + + public abstract bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801); + } + + public class Class95 : Class94 + { + public static readonly float[] Float1 = + { + 0f, + 0.6666667f, + 0.2857143f, + 0.13333334f, + 0.06451613f, + 0.0317460336f, + 0.0157480314f, + 0.007843138f, + 0.0039138943f, + 0.00195503421f, + 0.0009770396f, + 0.0004884005f, + 0.000244170427f, + 0.000122077763f, + 6.103702E-05f + }; + + public static readonly float[] Float2 = + { + 0f, + -0.6666667f, + -0.857142866f, + -0.933333337f, + -0.9677419f, + -0.984127f, + -0.992126f, + -0.996078432f, + -0.99804306f, + -0.9990225f, + -0.9995115f, + -0.9997558f, + -0.9998779f, + -0.999938965f, + -0.9999695f + }; + + public readonly int Int0; + + public int Int1; + + public int Int2; + + public float Float3; + + public int Int3; + + public float Float4; + + public float Float5; + + public float Float6; + + public Class95(int int4) + { + Int0 = int4; + Int1 = 0; + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + if ((Int2 = class820.method_13(4)) == 15) + { + throw new DecoderException(DecoderError.IllegalSubbandAllocation, null); + } + if (class1010 != null) + { + class1010.method_0(Int2, 4); + } + if (Int2 != 0) + { + Int3 = Int2 + 1; + Float5 = Float1[Int2]; + Float6 = Float2[Int2]; + } + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + if (Int2 != 0) + { + Float3 = Float0[class820.method_13(6)]; + } + } + + public override bool vmethod_2(Class82 class820) + { + if (Int2 != 0) + { + Float4 = class820.method_13(Int3); + } + if (++Int1 == 12) + { + Int1 = 0; + return true; + } + return false; + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + if (Int2 != 0 && enum40 != Enum4.Const2) + { + var float_ = (Float4 * Float5 + Float6) * Float3; + class800.method_2(float_, Int0); + } + return true; + } + } + + public class Class96 : Class95 + { + public float Float7; + + public Class96(int int4) : base(int4) + { + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + base.vmethod_0(class820, class1070, class1010); + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + if (Int2 == 0) + { + return; + } + Float3 = Float0[class820.method_13(6)]; + Float7 = Float0[class820.method_13(6)]; + } + + public override bool vmethod_2(Class82 class820) + { + return base.vmethod_2(class820); + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + if (Int2 != 0) + { + Float4 = Float4 * Float5 + Float6; + switch (enum40) + { + case Enum4.Const0: + class800.method_2(Float4 * Float3, Int0); + class801.method_2(Float4 * Float7, Int0); + break; + case Enum4.Const1: + class800.method_2(Float4 * Float3, Int0); + break; + default: + class800.method_2(Float4 * Float7, Int0); + break; + } + } + return true; + } + } + + public class Class97 : Class95 + { + public int Int4; + + public float Float7; + + public int Int5; + + public float Float8; + + public float Float9; + + public float Float10; + + public Class97(int int6) : base(int6) + { + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + Int2 = class820.method_13(4); + Int4 = class820.method_13(4); + if (class1010 != null) + { + class1010.method_0(Int2, 4); + class1010.method_0(Int4, 4); + } + if (Int2 != 0) + { + Int3 = Int2 + 1; + Float5 = Float1[Int2]; + Float6 = Float2[Int2]; + } + if (Int4 != 0) + { + Int5 = Int4 + 1; + Float9 = Float1[Int4]; + Float10 = Float2[Int4]; + } + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + if (Int2 != 0) + { + Float3 = Float0[class820.method_13(6)]; + } + if (Int4 != 0) + { + Float7 = Float0[class820.method_13(6)]; + } + } + + public override bool vmethod_2(Class82 class820) + { + var result = base.vmethod_2(class820); + if (Int4 != 0) + { + Float8 = class820.method_13(Int5); + } + return result; + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + base.vmethod_3(enum40, class800, class801); + if (Int4 != 0 && enum40 != Enum4.Const1) + { + var num = (Float8 * Float9 + Float10) * Float7; + if (enum40 == Enum4.Const0) + { + class801.method_2(num, Int0); + } + else + { + class800.method_2(num, Int0); + } + } + return true; + } + } + + public Class82 Class820; + + public ZzSoundClass Class1070; + + public Class80 Class800; + + public Class80 Class801; + + public Class84 Class840; + + public Enum4 Enum40; + + public Enum5 Enum50; + + public int Int0; + + public Class94[] Class940; + + public readonly Class101 Class1010; + + public Class92() + { + Class1010 = new Class101(); + } + + public virtual void vmethod_0(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803, + Class84 class841, Enum4 enum41) + { + Class820 = class821; + Class1070 = class1071; + Class800 = class802; + Class801 = class803; + Class840 = class841; + Enum40 = enum41; + } + + public virtual void imethod_0() + { + try + { + Int0 = Class1070.method_25(); + Class940 = new Class94[32]; + Enum50 = Class1070.method_8(); + vmethod_1(); + vmethod_2(); + vmethod_3(); + if (Class1010 != null || Class1070.method_12()) + { + vmethod_4(); + vmethod_5(); + } + } + catch + { + } + } + + public virtual void vmethod_1() + { + if (Enum50 == Enum5.Const3) + { + for (var i = 0; i < Int0; i++) + { + Class940[i] = new Class95(i); + } + return; + } + if (Enum50 == Enum5.Const1) + { + int i; + for (i = 0; i < Class1070.method_26(); i++) + { + Class940[i] = new Class97(i); + } + while (i < Int0) + { + Class940[i] = new Class96(i); + i++; + } + return; + } + for (var i = 0; i < Int0; i++) + { + Class940[i] = new Class97(i); + } + } + + public virtual void vmethod_2() + { + for (var i = 0; i < Int0; i++) + { + Class940[i].vmethod_0(Class820, Class1070, Class1010); + } + } + + public virtual void vmethod_3() + { + } + + public virtual void vmethod_4() + { + for (var i = 0; i < Int0; i++) + { + Class940[i].vmethod_1(Class820, Class1070); + } + } + + public virtual void vmethod_5() + { + var flag = false; + var flag2 = false; + var @enum = Class1070.method_8(); + do + { + for (var i = 0; i < Int0; i++) + { + flag = Class940[i].vmethod_2(Class820); + } + do + { + for (var i = 0; i < Int0; i++) + { + flag2 = Class940[i].vmethod_3(Enum40, Class800, Class801); + } + Class800.method_22(Class840); + if (Enum40 == Enum4.Const0 && @enum != Enum5.Const3) + { + Class801.method_22(Class840); + } + } while (!flag2); + } while (!flag); + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Class93.cs b/GHNamespaceI/Class93.cs index cee8f4e..7741ef9 100644 --- a/GHNamespaceI/Class93.cs +++ b/GHNamespaceI/Class93.cs @@ -2,3626 +2,3627 @@ namespace GHNamespaceI { - public class Class93 : Class92 - { - public class Class98 : Class94 - { - public static readonly float[] Float1; + public class Class93 : Class92 + { + public class Class98 : Class94 + { + public static readonly float[] Float1; - public static readonly float[] Float2; + public static readonly float[] Float2; - public static readonly float[] Float3; + public static readonly float[] Float3; - public static readonly int[] Int0; + public static readonly int[] Int0; - public static readonly float[][] Float4; + public static readonly float[][] Float4; - public static readonly float[] Float5; + public static readonly float[] Float5; - public static readonly float[] Float6; + public static readonly float[] Float6; - public static readonly float[] Float7; + public static readonly float[] Float7; - public static readonly float[][] Float8; + public static readonly float[][] Float8; - public static readonly int[] Int1; + public static readonly int[] Int1; - public static readonly float[] Float9; + public static readonly float[] Float9; - public static readonly float[] Float10; + public static readonly float[] Float10; - public static readonly float[] Float11; + public static readonly float[] Float11; - public static readonly int[] Int2; + public static readonly int[] Int2; - public static readonly float[] Float12; + public static readonly float[] Float12; - public static readonly float[] Float13; + public static readonly float[] Float13; - public static readonly float[] Float14; + public static readonly float[] Float14; - public static readonly int[] Int3; + public static readonly int[] Int3; - public static readonly float[] Float15; + public static readonly float[] Float15; - public static readonly float[] Float16; + public static readonly float[] Float16; - public static readonly float[] Float17; + public static readonly float[] Float17; - public static readonly int[] Int4; + public static readonly int[] Int4; - public static readonly float[][] Float18; + public static readonly float[][] Float18; - public static readonly float[] Float19; + public static readonly float[] Float19; - public static readonly float[] Float20; + public static readonly float[] Float20; - public static readonly float[] Float21; + public static readonly float[] Float21; - public readonly int Int5; + public readonly int Int5; - public int Int6; + public int Int6; - public int Int7; + public int Int7; - public float Float22; + public float Float22; - public float Float23; + public float Float23; - public float Float24; + public float Float24; - public readonly int[] Int8; + public readonly int[] Int8; - public readonly float[][] Float25; - - public readonly float[] Float26; - - public int Int9; - - public int Int10; - - public readonly float[] Float27; - - public readonly float[] Float28; - - public readonly float[] Float29; - - public Class98(int int11) - { - var array = new int[1]; - Int8 = array; - Float25 = new float[2][]; - var array2 = new float[1]; - Float26 = array2; - Float27 = new float[3]; - var array3 = new float[1]; - Float28 = array3; - var array4 = new float[1]; - Float29 = array4; - //base..ctor(); - Int5 = int11; - Int10 = 0; - Int9 = 0; - } - - public virtual int vmethod_4(ZzSoundClass class1070) - { - if (class1070.method_3() == Enum3.Const1) - { - var num = class1070.method_5(); - if (class1070.method_8() != Enum5.Const3) - { - if (num == 4) - { - num = 1; - } - else - { - num -= 4; - } - } - if (num != 1) - { - if (num != 2) - { - if (Int5 <= 10) - { - return 4; - } - if (Int5 > 22) - { - return 2; - } - return 3; - } - } - if (Int5 > 1) - { - return 3; - } - return 4; - } - if (Int5 <= 3) - { - return 4; - } - if (Int5 > 10) - { - return 2; - } - return 3; - } - - public virtual void vmethod_5(ZzSoundClass class1070, int int11, int int12, float[] float30, int[] int13, float[] float31, float[] float32) - { - var num = class1070.method_5(); - if (class1070.method_8() != Enum5.Const3) - { - if (num == 4) - { - num = 1; - } - else - { - num -= 4; - } - } - if (num != 1) - { - if (num != 2) - { - if (Int5 <= 2) - { - Float25[int12] = Float4[int11]; - float30[0] = Float5[int11]; - int13[0] = Int0[int11]; - float31[0] = Float6[int11]; - float32[0] = Float7[int11]; - return; - } - Float25[int12] = Float8[int11]; - if (Int5 <= 10) - { - float30[0] = Float9[int11]; - int13[0] = Int1[int11]; - float31[0] = Float10[int11]; - float32[0] = Float11[int11]; - return; - } - if (Int5 <= 22) - { - float30[0] = Float12[int11]; - int13[0] = Int2[int11]; - float31[0] = Float13[int11]; - float32[0] = Float14[int11]; - return; - } - float30[0] = Float15[int11]; - int13[0] = Int3[int11]; - float31[0] = Float16[int11]; - float32[0] = Float17[int11]; - return; - } - } - Float25[int12] = Float18[int11]; - float30[0] = Float19[int11]; - int13[0] = Int4[int11]; - float31[0] = Float20[int11]; - float32[0] = Float21[int11]; - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - var num = vmethod_4(class1070); - Int6 = class820.method_13(num); - if (class1010 != null) - { - class1010.method_0(Int6, num); - } - } - - public virtual void vmethod_6(Class82 class820, Class101 class1010) - { - if (Int6 == 0) - { - return; - } - Int7 = class820.method_13(2); - if (class1010 != null) - { - class1010.method_0(Int7, 2); - } - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - if (Int6 == 0) - { - return; - } - switch (Int7) - { - case 0: - Float22 = Float0[class820.method_13(6)]; - Float23 = Float0[class820.method_13(6)]; - Float24 = Float0[class820.method_13(6)]; - break; - case 1: - Float22 = (Float23 = Float0[class820.method_13(6)]); - Float24 = Float0[class820.method_13(6)]; - break; - case 2: - Float22 = (Float23 = (Float24 = Float0[class820.method_13(6)])); - break; - case 3: - Float22 = Float0[class820.method_13(6)]; - Float23 = (Float24 = Float0[class820.method_13(6)]); - break; - } - vmethod_5(class1070, Int6, 0, Float26, Int8, Float28, Float29); - } - - public override bool vmethod_2(Class82 class820) - { - if (Int6 != 0) - { - if (Float25[0] != null) - { - var num = class820.method_13(Int8[0]); - num += num << 1; - var array = Float27; - var array2 = Float25[0]; - var num2 = 0; - var num3 = num; - if (num3 > array2.Length - 3) - { - num3 = array2.Length - 3; - } - array[num2] = array2[num3]; - num3++; - num2++; - array[num2] = array2[num3]; - num3++; - num2++; - array[num2] = array2[num3]; - } - else - { - Float27[0] = class820.method_13(Int8[0]) * Float26[0] - 1f; - Float27[1] = class820.method_13(Int8[0]) * Float26[0] - 1f; - Float27[2] = class820.method_13(Int8[0]) * Float26[0] - 1f; - } - } - Int10 = 0; - return ++Int9 == 12; - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - if (Int6 != 0 && enum40 != Enum4.Const2) - { - var num = Float27[Int10]; - if (Float25[0] == null) - { - num = (num + Float29[0]) * Float28[0]; - } - if (Int9 <= 4) - { - num *= Float22; - } - else if (Int9 <= 8) - { - num *= Float23; - } - else - { - num *= Float24; - } - class800.method_2(num, Int5); - } - return ++Int10 == 3; - } - - static Class98() - { - Float1 = new[] - { - -0.6666667f, - -0.6666667f, - -0.6666667f, - 0f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - -0.6666667f, - -0.6666667f, - 0f, - -0.6666667f, - 0f, - 0f, - -0.6666667f, - 0.6666667f, - 0f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - 0f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - -0.6666667f, - -0.6666667f, - -0.6666667f, - 0f, - 0f, - -0.6666667f, - 0f, - 0.6666667f, - -0.6666667f, - 0f, - -0.6666667f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0.6666667f, - 0f, - 0f, - -0.6666667f, - 0.6666667f, - 0f, - 0f, - 0.6666667f, - 0f, - 0.6666667f, - 0.6666667f, - 0f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - 0f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - 0f, - 0.6666667f, - 0f, - 0f, - 0.6666667f, - 0.6666667f, - 0f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - 0f, - 0.6666667f, - 0.6666667f, - 0.6666667f, - 0.6666667f, - 0.6666667f - }; - Float2 = new[] - { - -0.8f, - -0.8f, - -0.8f, - -0.4f, - -0.8f, - -0.8f, - 0f, - -0.8f, - -0.8f, - 0.4f, - -0.8f, - -0.8f, - 0.8f, - -0.8f, - -0.8f, - -0.8f, - -0.4f, - -0.8f, - -0.4f, - -0.4f, - -0.8f, - 0f, - -0.4f, - -0.8f, - 0.4f, - -0.4f, - -0.8f, - 0.8f, - -0.4f, - -0.8f, - -0.8f, - 0f, - -0.8f, - -0.4f, - 0f, - -0.8f, - 0f, - 0f, - -0.8f, - 0.4f, - 0f, - -0.8f, - 0.8f, - 0f, - -0.8f, - -0.8f, - 0.4f, - -0.8f, - -0.4f, - 0.4f, - -0.8f, - 0f, - 0.4f, - -0.8f, - 0.4f, - 0.4f, - -0.8f, - 0.8f, - 0.4f, - -0.8f, - -0.8f, - 0.8f, - -0.8f, - -0.4f, - 0.8f, - -0.8f, - 0f, - 0.8f, - -0.8f, - 0.4f, - 0.8f, - -0.8f, - 0.8f, - 0.8f, - -0.8f, - -0.8f, - -0.8f, - -0.4f, - -0.4f, - -0.8f, - -0.4f, - 0f, - -0.8f, - -0.4f, - 0.4f, - -0.8f, - -0.4f, - 0.8f, - -0.8f, - -0.4f, - -0.8f, - -0.4f, - -0.4f, - -0.4f, - -0.4f, - -0.4f, - 0f, - -0.4f, - -0.4f, - 0.4f, - -0.4f, - -0.4f, - 0.8f, - -0.4f, - -0.4f, - -0.8f, - 0f, - -0.4f, - -0.4f, - 0f, - -0.4f, - 0f, - 0f, - -0.4f, - 0.4f, - 0f, - -0.4f, - 0.8f, - 0f, - -0.4f, - -0.8f, - 0.4f, - -0.4f, - -0.4f, - 0.4f, - -0.4f, - 0f, - 0.4f, - -0.4f, - 0.4f, - 0.4f, - -0.4f, - 0.8f, - 0.4f, - -0.4f, - -0.8f, - 0.8f, - -0.4f, - -0.4f, - 0.8f, - -0.4f, - 0f, - 0.8f, - -0.4f, - 0.4f, - 0.8f, - -0.4f, - 0.8f, - 0.8f, - -0.4f, - -0.8f, - -0.8f, - 0f, - -0.4f, - -0.8f, - 0f, - 0f, - -0.8f, - 0f, - 0.4f, - -0.8f, - 0f, - 0.8f, - -0.8f, - 0f, - -0.8f, - -0.4f, - 0f, - -0.4f, - -0.4f, - 0f, - 0f, - -0.4f, - 0f, - 0.4f, - -0.4f, - 0f, - 0.8f, - -0.4f, - 0f, - -0.8f, - 0f, - 0f, - -0.4f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0.4f, - 0f, - 0f, - 0.8f, - 0f, - 0f, - -0.8f, - 0.4f, - 0f, - -0.4f, - 0.4f, - 0f, - 0f, - 0.4f, - 0f, - 0.4f, - 0.4f, - 0f, - 0.8f, - 0.4f, - 0f, - -0.8f, - 0.8f, - 0f, - -0.4f, - 0.8f, - 0f, - 0f, - 0.8f, - 0f, - 0.4f, - 0.8f, - 0f, - 0.8f, - 0.8f, - 0f, - -0.8f, - -0.8f, - 0.4f, - -0.4f, - -0.8f, - 0.4f, - 0f, - -0.8f, - 0.4f, - 0.4f, - -0.8f, - 0.4f, - 0.8f, - -0.8f, - 0.4f, - -0.8f, - -0.4f, - 0.4f, - -0.4f, - -0.4f, - 0.4f, - 0f, - -0.4f, - 0.4f, - 0.4f, - -0.4f, - 0.4f, - 0.8f, - -0.4f, - 0.4f, - -0.8f, - 0f, - 0.4f, - -0.4f, - 0f, - 0.4f, - 0f, - 0f, - 0.4f, - 0.4f, - 0f, - 0.4f, - 0.8f, - 0f, - 0.4f, - -0.8f, - 0.4f, - 0.4f, - -0.4f, - 0.4f, - 0.4f, - 0f, - 0.4f, - 0.4f, - 0.4f, - 0.4f, - 0.4f, - 0.8f, - 0.4f, - 0.4f, - -0.8f, - 0.8f, - 0.4f, - -0.4f, - 0.8f, - 0.4f, - 0f, - 0.8f, - 0.4f, - 0.4f, - 0.8f, - 0.4f, - 0.8f, - 0.8f, - 0.4f, - -0.8f, - -0.8f, - 0.8f, - -0.4f, - -0.8f, - 0.8f, - 0f, - -0.8f, - 0.8f, - 0.4f, - -0.8f, - 0.8f, - 0.8f, - -0.8f, - 0.8f, - -0.8f, - -0.4f, - 0.8f, - -0.4f, - -0.4f, - 0.8f, - 0f, - -0.4f, - 0.8f, - 0.4f, - -0.4f, - 0.8f, - 0.8f, - -0.4f, - 0.8f, - -0.8f, - 0f, - 0.8f, - -0.4f, - 0f, - 0.8f, - 0f, - 0f, - 0.8f, - 0.4f, - 0f, - 0.8f, - 0.8f, - 0f, - 0.8f, - -0.8f, - 0.4f, - 0.8f, - -0.4f, - 0.4f, - 0.8f, - 0f, - 0.4f, - 0.8f, - 0.4f, - 0.4f, - 0.8f, - 0.8f, - 0.4f, - 0.8f, - -0.8f, - 0.8f, - 0.8f, - -0.4f, - 0.8f, - 0.8f, - 0f, - 0.8f, - 0.8f, - 0.4f, - 0.8f, - 0.8f, - 0.8f, - 0.8f, - 0.8f - }; - Float3 = new[] - { - -0.8888889f, - -0.8888889f, - -0.8888889f, - -0.6666667f, - -0.8888889f, - -0.8888889f, - -0.444444448f, - -0.8888889f, - -0.8888889f, - -0.222222224f, - -0.8888889f, - -0.8888889f, - 0f, - -0.8888889f, - -0.8888889f, - 0.222222224f, - -0.8888889f, - -0.8888889f, - 0.444444448f, - -0.8888889f, - -0.8888889f, - 0.6666667f, - -0.8888889f, - -0.8888889f, - 0.8888889f, - -0.8888889f, - -0.8888889f, - -0.8888889f, - -0.6666667f, - -0.8888889f, - -0.6666667f, - -0.6666667f, - -0.8888889f, - -0.444444448f, - -0.6666667f, - -0.8888889f, - -0.222222224f, - -0.6666667f, - -0.8888889f, - 0f, - -0.6666667f, - -0.8888889f, - 0.222222224f, - -0.6666667f, - -0.8888889f, - 0.444444448f, - -0.6666667f, - -0.8888889f, - 0.6666667f, - -0.6666667f, - -0.8888889f, - 0.8888889f, - -0.6666667f, - -0.8888889f, - -0.8888889f, - -0.444444448f, - -0.8888889f, - -0.6666667f, - -0.444444448f, - -0.8888889f, - -0.444444448f, - -0.444444448f, - -0.8888889f, - -0.222222224f, - -0.444444448f, - -0.8888889f, - 0f, - -0.444444448f, - -0.8888889f, - 0.222222224f, - -0.444444448f, - -0.8888889f, - 0.444444448f, - -0.444444448f, - -0.8888889f, - 0.6666667f, - -0.444444448f, - -0.8888889f, - 0.8888889f, - -0.444444448f, - -0.8888889f, - -0.8888889f, - -0.222222224f, - -0.8888889f, - -0.6666667f, - -0.222222224f, - -0.8888889f, - -0.444444448f, - -0.222222224f, - -0.8888889f, - -0.222222224f, - -0.222222224f, - -0.8888889f, - 0f, - -0.222222224f, - -0.8888889f, - 0.222222224f, - -0.222222224f, - -0.8888889f, - 0.444444448f, - -0.222222224f, - -0.8888889f, - 0.6666667f, - -0.222222224f, - -0.8888889f, - 0.8888889f, - -0.222222224f, - -0.8888889f, - -0.8888889f, - 0f, - -0.8888889f, - -0.6666667f, - 0f, - -0.8888889f, - -0.444444448f, - 0f, - -0.8888889f, - -0.222222224f, - 0f, - -0.8888889f, - 0f, - 0f, - -0.8888889f, - 0.222222224f, - 0f, - -0.8888889f, - 0.444444448f, - 0f, - -0.8888889f, - 0.6666667f, - 0f, - -0.8888889f, - 0.8888889f, - 0f, - -0.8888889f, - -0.8888889f, - 0.222222224f, - -0.8888889f, - -0.6666667f, - 0.222222224f, - -0.8888889f, - -0.444444448f, - 0.222222224f, - -0.8888889f, - -0.222222224f, - 0.222222224f, - -0.8888889f, - 0f, - 0.222222224f, - -0.8888889f, - 0.222222224f, - 0.222222224f, - -0.8888889f, - 0.444444448f, - 0.222222224f, - -0.8888889f, - 0.6666667f, - 0.222222224f, - -0.8888889f, - 0.8888889f, - 0.222222224f, - -0.8888889f, - -0.8888889f, - 0.444444448f, - -0.8888889f, - -0.6666667f, - 0.444444448f, - -0.8888889f, - -0.444444448f, - 0.444444448f, - -0.8888889f, - -0.222222224f, - 0.444444448f, - -0.8888889f, - 0f, - 0.444444448f, - -0.8888889f, - 0.222222224f, - 0.444444448f, - -0.8888889f, - 0.444444448f, - 0.444444448f, - -0.8888889f, - 0.6666667f, - 0.444444448f, - -0.8888889f, - 0.8888889f, - 0.444444448f, - -0.8888889f, - -0.8888889f, - 0.6666667f, - -0.8888889f, - -0.6666667f, - 0.6666667f, - -0.8888889f, - -0.444444448f, - 0.6666667f, - -0.8888889f, - -0.222222224f, - 0.6666667f, - -0.8888889f, - 0f, - 0.6666667f, - -0.8888889f, - 0.222222224f, - 0.6666667f, - -0.8888889f, - 0.444444448f, - 0.6666667f, - -0.8888889f, - 0.6666667f, - 0.6666667f, - -0.8888889f, - 0.8888889f, - 0.6666667f, - -0.8888889f, - -0.8888889f, - 0.8888889f, - -0.8888889f, - -0.6666667f, - 0.8888889f, - -0.8888889f, - -0.444444448f, - 0.8888889f, - -0.8888889f, - -0.222222224f, - 0.8888889f, - -0.8888889f, - 0f, - 0.8888889f, - -0.8888889f, - 0.222222224f, - 0.8888889f, - -0.8888889f, - 0.444444448f, - 0.8888889f, - -0.8888889f, - 0.6666667f, - 0.8888889f, - -0.8888889f, - 0.8888889f, - 0.8888889f, - -0.8888889f, - -0.8888889f, - -0.8888889f, - -0.6666667f, - -0.6666667f, - -0.8888889f, - -0.6666667f, - -0.444444448f, - -0.8888889f, - -0.6666667f, - -0.222222224f, - -0.8888889f, - -0.6666667f, - 0f, - -0.8888889f, - -0.6666667f, - 0.222222224f, - -0.8888889f, - -0.6666667f, - 0.444444448f, - -0.8888889f, - -0.6666667f, - 0.6666667f, - -0.8888889f, - -0.6666667f, - 0.8888889f, - -0.8888889f, - -0.6666667f, - -0.8888889f, - -0.6666667f, - -0.6666667f, - -0.6666667f, - -0.6666667f, - -0.6666667f, - -0.444444448f, - -0.6666667f, - -0.6666667f, - -0.222222224f, - -0.6666667f, - -0.6666667f, - 0f, - -0.6666667f, - -0.6666667f, - 0.222222224f, - -0.6666667f, - -0.6666667f, - 0.444444448f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - -0.6666667f, - 0.8888889f, - -0.6666667f, - -0.6666667f, - -0.8888889f, - -0.444444448f, - -0.6666667f, - -0.6666667f, - -0.444444448f, - -0.6666667f, - -0.444444448f, - -0.444444448f, - -0.6666667f, - -0.222222224f, - -0.444444448f, - -0.6666667f, - 0f, - -0.444444448f, - -0.6666667f, - 0.222222224f, - -0.444444448f, - -0.6666667f, - 0.444444448f, - -0.444444448f, - -0.6666667f, - 0.6666667f, - -0.444444448f, - -0.6666667f, - 0.8888889f, - -0.444444448f, - -0.6666667f, - -0.8888889f, - -0.222222224f, - -0.6666667f, - -0.6666667f, - -0.222222224f, - -0.6666667f, - -0.444444448f, - -0.222222224f, - -0.6666667f, - -0.222222224f, - -0.222222224f, - -0.6666667f, - 0f, - -0.222222224f, - -0.6666667f, - 0.222222224f, - -0.222222224f, - -0.6666667f, - 0.444444448f, - -0.222222224f, - -0.6666667f, - 0.6666667f, - -0.222222224f, - -0.6666667f, - 0.8888889f, - -0.222222224f, - -0.6666667f, - -0.8888889f, - 0f, - -0.6666667f, - -0.6666667f, - 0f, - -0.6666667f, - -0.444444448f, - 0f, - -0.6666667f, - -0.222222224f, - 0f, - -0.6666667f, - 0f, - 0f, - -0.6666667f, - 0.222222224f, - 0f, - -0.6666667f, - 0.444444448f, - 0f, - -0.6666667f, - 0.6666667f, - 0f, - -0.6666667f, - 0.8888889f, - 0f, - -0.6666667f, - -0.8888889f, - 0.222222224f, - -0.6666667f, - -0.6666667f, - 0.222222224f, - -0.6666667f, - -0.444444448f, - 0.222222224f, - -0.6666667f, - -0.222222224f, - 0.222222224f, - -0.6666667f, - 0f, - 0.222222224f, - -0.6666667f, - 0.222222224f, - 0.222222224f, - -0.6666667f, - 0.444444448f, - 0.222222224f, - -0.6666667f, - 0.6666667f, - 0.222222224f, - -0.6666667f, - 0.8888889f, - 0.222222224f, - -0.6666667f, - -0.8888889f, - 0.444444448f, - -0.6666667f, - -0.6666667f, - 0.444444448f, - -0.6666667f, - -0.444444448f, - 0.444444448f, - -0.6666667f, - -0.222222224f, - 0.444444448f, - -0.6666667f, - 0f, - 0.444444448f, - -0.6666667f, - 0.222222224f, - 0.444444448f, - -0.6666667f, - 0.444444448f, - 0.444444448f, - -0.6666667f, - 0.6666667f, - 0.444444448f, - -0.6666667f, - 0.8888889f, - 0.444444448f, - -0.6666667f, - -0.8888889f, - 0.6666667f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - -0.444444448f, - 0.6666667f, - -0.6666667f, - -0.222222224f, - 0.6666667f, - -0.6666667f, - 0f, - 0.6666667f, - -0.6666667f, - 0.222222224f, - 0.6666667f, - -0.6666667f, - 0.444444448f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - -0.6666667f, - 0.8888889f, - 0.6666667f, - -0.6666667f, - -0.8888889f, - 0.8888889f, - -0.6666667f, - -0.6666667f, - 0.8888889f, - -0.6666667f, - -0.444444448f, - 0.8888889f, - -0.6666667f, - -0.222222224f, - 0.8888889f, - -0.6666667f, - 0f, - 0.8888889f, - -0.6666667f, - 0.222222224f, - 0.8888889f, - -0.6666667f, - 0.444444448f, - 0.8888889f, - -0.6666667f, - 0.6666667f, - 0.8888889f, - -0.6666667f, - 0.8888889f, - 0.8888889f, - -0.6666667f, - -0.8888889f, - -0.8888889f, - -0.444444448f, - -0.6666667f, - -0.8888889f, - -0.444444448f, - -0.444444448f, - -0.8888889f, - -0.444444448f, - -0.222222224f, - -0.8888889f, - -0.444444448f, - 0f, - -0.8888889f, - -0.444444448f, - 0.222222224f, - -0.8888889f, - -0.444444448f, - 0.444444448f, - -0.8888889f, - -0.444444448f, - 0.6666667f, - -0.8888889f, - -0.444444448f, - 0.8888889f, - -0.8888889f, - -0.444444448f, - -0.8888889f, - -0.6666667f, - -0.444444448f, - -0.6666667f, - -0.6666667f, - -0.444444448f, - -0.444444448f, - -0.6666667f, - -0.444444448f, - -0.222222224f, - -0.6666667f, - -0.444444448f, - 0f, - -0.6666667f, - -0.444444448f, - 0.222222224f, - -0.6666667f, - -0.444444448f, - 0.444444448f, - -0.6666667f, - -0.444444448f, - 0.6666667f, - -0.6666667f, - -0.444444448f, - 0.8888889f, - -0.6666667f, - -0.444444448f, - -0.8888889f, - -0.444444448f, - -0.444444448f, - -0.6666667f, - -0.444444448f, - -0.444444448f, - -0.444444448f, - -0.444444448f, - -0.444444448f, - -0.222222224f, - -0.444444448f, - -0.444444448f, - 0f, - -0.444444448f, - -0.444444448f, - 0.222222224f, - -0.444444448f, - -0.444444448f, - 0.444444448f, - -0.444444448f, - -0.444444448f, - 0.6666667f, - -0.444444448f, - -0.444444448f, - 0.8888889f, - -0.444444448f, - -0.444444448f, - -0.8888889f, - -0.222222224f, - -0.444444448f, - -0.6666667f, - -0.222222224f, - -0.444444448f, - -0.444444448f, - -0.222222224f, - -0.444444448f, - -0.222222224f, - -0.222222224f, - -0.444444448f, - 0f, - -0.222222224f, - -0.444444448f, - 0.222222224f, - -0.222222224f, - -0.444444448f, - 0.444444448f, - -0.222222224f, - -0.444444448f, - 0.6666667f, - -0.222222224f, - -0.444444448f, - 0.8888889f, - -0.222222224f, - -0.444444448f, - -0.8888889f, - 0f, - -0.444444448f, - -0.6666667f, - 0f, - -0.444444448f, - -0.444444448f, - 0f, - -0.444444448f, - -0.222222224f, - 0f, - -0.444444448f, - 0f, - 0f, - -0.444444448f, - 0.222222224f, - 0f, - -0.444444448f, - 0.444444448f, - 0f, - -0.444444448f, - 0.6666667f, - 0f, - -0.444444448f, - 0.8888889f, - 0f, - -0.444444448f, - -0.8888889f, - 0.222222224f, - -0.444444448f, - -0.6666667f, - 0.222222224f, - -0.444444448f, - -0.444444448f, - 0.222222224f, - -0.444444448f, - -0.222222224f, - 0.222222224f, - -0.444444448f, - 0f, - 0.222222224f, - -0.444444448f, - 0.222222224f, - 0.222222224f, - -0.444444448f, - 0.444444448f, - 0.222222224f, - -0.444444448f, - 0.6666667f, - 0.222222224f, - -0.444444448f, - 0.8888889f, - 0.222222224f, - -0.444444448f, - -0.8888889f, - 0.444444448f, - -0.444444448f, - -0.6666667f, - 0.444444448f, - -0.444444448f, - -0.444444448f, - 0.444444448f, - -0.444444448f, - -0.222222224f, - 0.444444448f, - -0.444444448f, - 0f, - 0.444444448f, - -0.444444448f, - 0.222222224f, - 0.444444448f, - -0.444444448f, - 0.444444448f, - 0.444444448f, - -0.444444448f, - 0.6666667f, - 0.444444448f, - -0.444444448f, - 0.8888889f, - 0.444444448f, - -0.444444448f, - -0.8888889f, - 0.6666667f, - -0.444444448f, - -0.6666667f, - 0.6666667f, - -0.444444448f, - -0.444444448f, - 0.6666667f, - -0.444444448f, - -0.222222224f, - 0.6666667f, - -0.444444448f, - 0f, - 0.6666667f, - -0.444444448f, - 0.222222224f, - 0.6666667f, - -0.444444448f, - 0.444444448f, - 0.6666667f, - -0.444444448f, - 0.6666667f, - 0.6666667f, - -0.444444448f, - 0.8888889f, - 0.6666667f, - -0.444444448f, - -0.8888889f, - 0.8888889f, - -0.444444448f, - -0.6666667f, - 0.8888889f, - -0.444444448f, - -0.444444448f, - 0.8888889f, - -0.444444448f, - -0.222222224f, - 0.8888889f, - -0.444444448f, - 0f, - 0.8888889f, - -0.444444448f, - 0.222222224f, - 0.8888889f, - -0.444444448f, - 0.444444448f, - 0.8888889f, - -0.444444448f, - 0.6666667f, - 0.8888889f, - -0.444444448f, - 0.8888889f, - 0.8888889f, - -0.444444448f, - -0.8888889f, - -0.8888889f, - -0.222222224f, - -0.6666667f, - -0.8888889f, - -0.222222224f, - -0.444444448f, - -0.8888889f, - -0.222222224f, - -0.222222224f, - -0.8888889f, - -0.222222224f, - 0f, - -0.8888889f, - -0.222222224f, - 0.222222224f, - -0.8888889f, - -0.222222224f, - 0.444444448f, - -0.8888889f, - -0.222222224f, - 0.6666667f, - -0.8888889f, - -0.222222224f, - 0.8888889f, - -0.8888889f, - -0.222222224f, - -0.8888889f, - -0.6666667f, - -0.222222224f, - -0.6666667f, - -0.6666667f, - -0.222222224f, - -0.444444448f, - -0.6666667f, - -0.222222224f, - -0.222222224f, - -0.6666667f, - -0.222222224f, - 0f, - -0.6666667f, - -0.222222224f, - 0.222222224f, - -0.6666667f, - -0.222222224f, - 0.444444448f, - -0.6666667f, - -0.222222224f, - 0.6666667f, - -0.6666667f, - -0.222222224f, - 0.8888889f, - -0.6666667f, - -0.222222224f, - -0.8888889f, - -0.444444448f, - -0.222222224f, - -0.6666667f, - -0.444444448f, - -0.222222224f, - -0.444444448f, - -0.444444448f, - -0.222222224f, - -0.222222224f, - -0.444444448f, - -0.222222224f, - 0f, - -0.444444448f, - -0.222222224f, - 0.222222224f, - -0.444444448f, - -0.222222224f, - 0.444444448f, - -0.444444448f, - -0.222222224f, - 0.6666667f, - -0.444444448f, - -0.222222224f, - 0.8888889f, - -0.444444448f, - -0.222222224f, - -0.8888889f, - -0.222222224f, - -0.222222224f, - -0.6666667f, - -0.222222224f, - -0.222222224f, - -0.444444448f, - -0.222222224f, - -0.222222224f, - -0.222222224f, - -0.222222224f, - -0.222222224f, - 0f, - -0.222222224f, - -0.222222224f, - 0.222222224f, - -0.222222224f, - -0.222222224f, - 0.444444448f, - -0.222222224f, - -0.222222224f, - 0.6666667f, - -0.222222224f, - -0.222222224f, - 0.8888889f, - -0.222222224f, - -0.222222224f, - -0.8888889f, - 0f, - -0.222222224f, - -0.6666667f, - 0f, - -0.222222224f, - -0.444444448f, - 0f, - -0.222222224f, - -0.222222224f, - 0f, - -0.222222224f, - 0f, - 0f, - -0.222222224f, - 0.222222224f, - 0f, - -0.222222224f, - 0.444444448f, - 0f, - -0.222222224f, - 0.6666667f, - 0f, - -0.222222224f, - 0.8888889f, - 0f, - -0.222222224f, - -0.8888889f, - 0.222222224f, - -0.222222224f, - -0.6666667f, - 0.222222224f, - -0.222222224f, - -0.444444448f, - 0.222222224f, - -0.222222224f, - -0.222222224f, - 0.222222224f, - -0.222222224f, - 0f, - 0.222222224f, - -0.222222224f, - 0.222222224f, - 0.222222224f, - -0.222222224f, - 0.444444448f, - 0.222222224f, - -0.222222224f, - 0.6666667f, - 0.222222224f, - -0.222222224f, - 0.8888889f, - 0.222222224f, - -0.222222224f, - -0.8888889f, - 0.444444448f, - -0.222222224f, - -0.6666667f, - 0.444444448f, - -0.222222224f, - -0.444444448f, - 0.444444448f, - -0.222222224f, - -0.222222224f, - 0.444444448f, - -0.222222224f, - 0f, - 0.444444448f, - -0.222222224f, - 0.222222224f, - 0.444444448f, - -0.222222224f, - 0.444444448f, - 0.444444448f, - -0.222222224f, - 0.6666667f, - 0.444444448f, - -0.222222224f, - 0.8888889f, - 0.444444448f, - -0.222222224f, - -0.8888889f, - 0.6666667f, - -0.222222224f, - -0.6666667f, - 0.6666667f, - -0.222222224f, - -0.444444448f, - 0.6666667f, - -0.222222224f, - -0.222222224f, - 0.6666667f, - -0.222222224f, - 0f, - 0.6666667f, - -0.222222224f, - 0.222222224f, - 0.6666667f, - -0.222222224f, - 0.444444448f, - 0.6666667f, - -0.222222224f, - 0.6666667f, - 0.6666667f, - -0.222222224f, - 0.8888889f, - 0.6666667f, - -0.222222224f, - -0.8888889f, - 0.8888889f, - -0.222222224f, - -0.6666667f, - 0.8888889f, - -0.222222224f, - -0.444444448f, - 0.8888889f, - -0.222222224f, - -0.222222224f, - 0.8888889f, - -0.222222224f, - 0f, - 0.8888889f, - -0.222222224f, - 0.222222224f, - 0.8888889f, - -0.222222224f, - 0.444444448f, - 0.8888889f, - -0.222222224f, - 0.6666667f, - 0.8888889f, - -0.222222224f, - 0.8888889f, - 0.8888889f, - -0.222222224f, - -0.8888889f, - -0.8888889f, - 0f, - -0.6666667f, - -0.8888889f, - 0f, - -0.444444448f, - -0.8888889f, - 0f, - -0.222222224f, - -0.8888889f, - 0f, - 0f, - -0.8888889f, - 0f, - 0.222222224f, - -0.8888889f, - 0f, - 0.444444448f, - -0.8888889f, - 0f, - 0.6666667f, - -0.8888889f, - 0f, - 0.8888889f, - -0.8888889f, - 0f, - -0.8888889f, - -0.6666667f, - 0f, - -0.6666667f, - -0.6666667f, - 0f, - -0.444444448f, - -0.6666667f, - 0f, - -0.222222224f, - -0.6666667f, - 0f, - 0f, - -0.6666667f, - 0f, - 0.222222224f, - -0.6666667f, - 0f, - 0.444444448f, - -0.6666667f, - 0f, - 0.6666667f, - -0.6666667f, - 0f, - 0.8888889f, - -0.6666667f, - 0f, - -0.8888889f, - -0.444444448f, - 0f, - -0.6666667f, - -0.444444448f, - 0f, - -0.444444448f, - -0.444444448f, - 0f, - -0.222222224f, - -0.444444448f, - 0f, - 0f, - -0.444444448f, - 0f, - 0.222222224f, - -0.444444448f, - 0f, - 0.444444448f, - -0.444444448f, - 0f, - 0.6666667f, - -0.444444448f, - 0f, - 0.8888889f, - -0.444444448f, - 0f, - -0.8888889f, - -0.222222224f, - 0f, - -0.6666667f, - -0.222222224f, - 0f, - -0.444444448f, - -0.222222224f, - 0f, - -0.222222224f, - -0.222222224f, - 0f, - 0f, - -0.222222224f, - 0f, - 0.222222224f, - -0.222222224f, - 0f, - 0.444444448f, - -0.222222224f, - 0f, - 0.6666667f, - -0.222222224f, - 0f, - 0.8888889f, - -0.222222224f, - 0f, - -0.8888889f, - 0f, - 0f, - -0.6666667f, - 0f, - 0f, - -0.444444448f, - 0f, - 0f, - -0.222222224f, - 0f, - 0f, - 0f, - 0f, - 0f, - 0.222222224f, - 0f, - 0f, - 0.444444448f, - 0f, - 0f, - 0.6666667f, - 0f, - 0f, - 0.8888889f, - 0f, - 0f, - -0.8888889f, - 0.222222224f, - 0f, - -0.6666667f, - 0.222222224f, - 0f, - -0.444444448f, - 0.222222224f, - 0f, - -0.222222224f, - 0.222222224f, - 0f, - 0f, - 0.222222224f, - 0f, - 0.222222224f, - 0.222222224f, - 0f, - 0.444444448f, - 0.222222224f, - 0f, - 0.6666667f, - 0.222222224f, - 0f, - 0.8888889f, - 0.222222224f, - 0f, - -0.8888889f, - 0.444444448f, - 0f, - -0.6666667f, - 0.444444448f, - 0f, - -0.444444448f, - 0.444444448f, - 0f, - -0.222222224f, - 0.444444448f, - 0f, - 0f, - 0.444444448f, - 0f, - 0.222222224f, - 0.444444448f, - 0f, - 0.444444448f, - 0.444444448f, - 0f, - 0.6666667f, - 0.444444448f, - 0f, - 0.8888889f, - 0.444444448f, - 0f, - -0.8888889f, - 0.6666667f, - 0f, - -0.6666667f, - 0.6666667f, - 0f, - -0.444444448f, - 0.6666667f, - 0f, - -0.222222224f, - 0.6666667f, - 0f, - 0f, - 0.6666667f, - 0f, - 0.222222224f, - 0.6666667f, - 0f, - 0.444444448f, - 0.6666667f, - 0f, - 0.6666667f, - 0.6666667f, - 0f, - 0.8888889f, - 0.6666667f, - 0f, - -0.8888889f, - 0.8888889f, - 0f, - -0.6666667f, - 0.8888889f, - 0f, - -0.444444448f, - 0.8888889f, - 0f, - -0.222222224f, - 0.8888889f, - 0f, - 0f, - 0.8888889f, - 0f, - 0.222222224f, - 0.8888889f, - 0f, - 0.444444448f, - 0.8888889f, - 0f, - 0.6666667f, - 0.8888889f, - 0f, - 0.8888889f, - 0.8888889f, - 0f, - -0.8888889f, - -0.8888889f, - 0.222222224f, - -0.6666667f, - -0.8888889f, - 0.222222224f, - -0.444444448f, - -0.8888889f, - 0.222222224f, - -0.222222224f, - -0.8888889f, - 0.222222224f, - 0f, - -0.8888889f, - 0.222222224f, - 0.222222224f, - -0.8888889f, - 0.222222224f, - 0.444444448f, - -0.8888889f, - 0.222222224f, - 0.6666667f, - -0.8888889f, - 0.222222224f, - 0.8888889f, - -0.8888889f, - 0.222222224f, - -0.8888889f, - -0.6666667f, - 0.222222224f, - -0.6666667f, - -0.6666667f, - 0.222222224f, - -0.444444448f, - -0.6666667f, - 0.222222224f, - -0.222222224f, - -0.6666667f, - 0.222222224f, - 0f, - -0.6666667f, - 0.222222224f, - 0.222222224f, - -0.6666667f, - 0.222222224f, - 0.444444448f, - -0.6666667f, - 0.222222224f, - 0.6666667f, - -0.6666667f, - 0.222222224f, - 0.8888889f, - -0.6666667f, - 0.222222224f, - -0.8888889f, - -0.444444448f, - 0.222222224f, - -0.6666667f, - -0.444444448f, - 0.222222224f, - -0.444444448f, - -0.444444448f, - 0.222222224f, - -0.222222224f, - -0.444444448f, - 0.222222224f, - 0f, - -0.444444448f, - 0.222222224f, - 0.222222224f, - -0.444444448f, - 0.222222224f, - 0.444444448f, - -0.444444448f, - 0.222222224f, - 0.6666667f, - -0.444444448f, - 0.222222224f, - 0.8888889f, - -0.444444448f, - 0.222222224f, - -0.8888889f, - -0.222222224f, - 0.222222224f, - -0.6666667f, - -0.222222224f, - 0.222222224f, - -0.444444448f, - -0.222222224f, - 0.222222224f, - -0.222222224f, - -0.222222224f, - 0.222222224f, - 0f, - -0.222222224f, - 0.222222224f, - 0.222222224f, - -0.222222224f, - 0.222222224f, - 0.444444448f, - -0.222222224f, - 0.222222224f, - 0.6666667f, - -0.222222224f, - 0.222222224f, - 0.8888889f, - -0.222222224f, - 0.222222224f, - -0.8888889f, - 0f, - 0.222222224f, - -0.6666667f, - 0f, - 0.222222224f, - -0.444444448f, - 0f, - 0.222222224f, - -0.222222224f, - 0f, - 0.222222224f, - 0f, - 0f, - 0.222222224f, - 0.222222224f, - 0f, - 0.222222224f, - 0.444444448f, - 0f, - 0.222222224f, - 0.6666667f, - 0f, - 0.222222224f, - 0.8888889f, - 0f, - 0.222222224f, - -0.8888889f, - 0.222222224f, - 0.222222224f, - -0.6666667f, - 0.222222224f, - 0.222222224f, - -0.444444448f, - 0.222222224f, - 0.222222224f, - -0.222222224f, - 0.222222224f, - 0.222222224f, - 0f, - 0.222222224f, - 0.222222224f, - 0.222222224f, - 0.222222224f, - 0.222222224f, - 0.444444448f, - 0.222222224f, - 0.222222224f, - 0.6666667f, - 0.222222224f, - 0.222222224f, - 0.8888889f, - 0.222222224f, - 0.222222224f, - -0.8888889f, - 0.444444448f, - 0.222222224f, - -0.6666667f, - 0.444444448f, - 0.222222224f, - -0.444444448f, - 0.444444448f, - 0.222222224f, - -0.222222224f, - 0.444444448f, - 0.222222224f, - 0f, - 0.444444448f, - 0.222222224f, - 0.222222224f, - 0.444444448f, - 0.222222224f, - 0.444444448f, - 0.444444448f, - 0.222222224f, - 0.6666667f, - 0.444444448f, - 0.222222224f, - 0.8888889f, - 0.444444448f, - 0.222222224f, - -0.8888889f, - 0.6666667f, - 0.222222224f, - -0.6666667f, - 0.6666667f, - 0.222222224f, - -0.444444448f, - 0.6666667f, - 0.222222224f, - -0.222222224f, - 0.6666667f, - 0.222222224f, - 0f, - 0.6666667f, - 0.222222224f, - 0.222222224f, - 0.6666667f, - 0.222222224f, - 0.444444448f, - 0.6666667f, - 0.222222224f, - 0.6666667f, - 0.6666667f, - 0.222222224f, - 0.8888889f, - 0.6666667f, - 0.222222224f, - -0.8888889f, - 0.8888889f, - 0.222222224f, - -0.6666667f, - 0.8888889f, - 0.222222224f, - -0.444444448f, - 0.8888889f, - 0.222222224f, - -0.222222224f, - 0.8888889f, - 0.222222224f, - 0f, - 0.8888889f, - 0.222222224f, - 0.222222224f, - 0.8888889f, - 0.222222224f, - 0.444444448f, - 0.8888889f, - 0.222222224f, - 0.6666667f, - 0.8888889f, - 0.222222224f, - 0.8888889f, - 0.8888889f, - 0.222222224f, - -0.8888889f, - -0.8888889f, - 0.444444448f, - -0.6666667f, - -0.8888889f, - 0.444444448f, - -0.444444448f, - -0.8888889f, - 0.444444448f, - -0.222222224f, - -0.8888889f, - 0.444444448f, - 0f, - -0.8888889f, - 0.444444448f, - 0.222222224f, - -0.8888889f, - 0.444444448f, - 0.444444448f, - -0.8888889f, - 0.444444448f, - 0.6666667f, - -0.8888889f, - 0.444444448f, - 0.8888889f, - -0.8888889f, - 0.444444448f, - -0.8888889f, - -0.6666667f, - 0.444444448f, - -0.6666667f, - -0.6666667f, - 0.444444448f, - -0.444444448f, - -0.6666667f, - 0.444444448f, - -0.222222224f, - -0.6666667f, - 0.444444448f, - 0f, - -0.6666667f, - 0.444444448f, - 0.222222224f, - -0.6666667f, - 0.444444448f, - 0.444444448f, - -0.6666667f, - 0.444444448f, - 0.6666667f, - -0.6666667f, - 0.444444448f, - 0.8888889f, - -0.6666667f, - 0.444444448f, - -0.8888889f, - -0.444444448f, - 0.444444448f, - -0.6666667f, - -0.444444448f, - 0.444444448f, - -0.444444448f, - -0.444444448f, - 0.444444448f, - -0.222222224f, - -0.444444448f, - 0.444444448f, - 0f, - -0.444444448f, - 0.444444448f, - 0.222222224f, - -0.444444448f, - 0.444444448f, - 0.444444448f, - -0.444444448f, - 0.444444448f, - 0.6666667f, - -0.444444448f, - 0.444444448f, - 0.8888889f, - -0.444444448f, - 0.444444448f, - -0.8888889f, - -0.222222224f, - 0.444444448f, - -0.6666667f, - -0.222222224f, - 0.444444448f, - -0.444444448f, - -0.222222224f, - 0.444444448f, - -0.222222224f, - -0.222222224f, - 0.444444448f, - 0f, - -0.222222224f, - 0.444444448f, - 0.222222224f, - -0.222222224f, - 0.444444448f, - 0.444444448f, - -0.222222224f, - 0.444444448f, - 0.6666667f, - -0.222222224f, - 0.444444448f, - 0.8888889f, - -0.222222224f, - 0.444444448f, - -0.8888889f, - 0f, - 0.444444448f, - -0.6666667f, - 0f, - 0.444444448f, - -0.444444448f, - 0f, - 0.444444448f, - -0.222222224f, - 0f, - 0.444444448f, - 0f, - 0f, - 0.444444448f, - 0.222222224f, - 0f, - 0.444444448f, - 0.444444448f, - 0f, - 0.444444448f, - 0.6666667f, - 0f, - 0.444444448f, - 0.8888889f, - 0f, - 0.444444448f, - -0.8888889f, - 0.222222224f, - 0.444444448f, - -0.6666667f, - 0.222222224f, - 0.444444448f, - -0.444444448f, - 0.222222224f, - 0.444444448f, - -0.222222224f, - 0.222222224f, - 0.444444448f, - 0f, - 0.222222224f, - 0.444444448f, - 0.222222224f, - 0.222222224f, - 0.444444448f, - 0.444444448f, - 0.222222224f, - 0.444444448f, - 0.6666667f, - 0.222222224f, - 0.444444448f, - 0.8888889f, - 0.222222224f, - 0.444444448f, - -0.8888889f, - 0.444444448f, - 0.444444448f, - -0.6666667f, - 0.444444448f, - 0.444444448f, - -0.444444448f, - 0.444444448f, - 0.444444448f, - -0.222222224f, - 0.444444448f, - 0.444444448f, - 0f, - 0.444444448f, - 0.444444448f, - 0.222222224f, - 0.444444448f, - 0.444444448f, - 0.444444448f, - 0.444444448f, - 0.444444448f, - 0.6666667f, - 0.444444448f, - 0.444444448f, - 0.8888889f, - 0.444444448f, - 0.444444448f, - -0.8888889f, - 0.6666667f, - 0.444444448f, - -0.6666667f, - 0.6666667f, - 0.444444448f, - -0.444444448f, - 0.6666667f, - 0.444444448f, - -0.222222224f, - 0.6666667f, - 0.444444448f, - 0f, - 0.6666667f, - 0.444444448f, - 0.222222224f, - 0.6666667f, - 0.444444448f, - 0.444444448f, - 0.6666667f, - 0.444444448f, - 0.6666667f, - 0.6666667f, - 0.444444448f, - 0.8888889f, - 0.6666667f, - 0.444444448f, - -0.8888889f, - 0.8888889f, - 0.444444448f, - -0.6666667f, - 0.8888889f, - 0.444444448f, - -0.444444448f, - 0.8888889f, - 0.444444448f, - -0.222222224f, - 0.8888889f, - 0.444444448f, - 0f, - 0.8888889f, - 0.444444448f, - 0.222222224f, - 0.8888889f, - 0.444444448f, - 0.444444448f, - 0.8888889f, - 0.444444448f, - 0.6666667f, - 0.8888889f, - 0.444444448f, - 0.8888889f, - 0.8888889f, - 0.444444448f, - -0.8888889f, - -0.8888889f, - 0.6666667f, - -0.6666667f, - -0.8888889f, - 0.6666667f, - -0.444444448f, - -0.8888889f, - 0.6666667f, - -0.222222224f, - -0.8888889f, - 0.6666667f, - 0f, - -0.8888889f, - 0.6666667f, - 0.222222224f, - -0.8888889f, - 0.6666667f, - 0.444444448f, - -0.8888889f, - 0.6666667f, - 0.6666667f, - -0.8888889f, - 0.6666667f, - 0.8888889f, - -0.8888889f, - 0.6666667f, - -0.8888889f, - -0.6666667f, - 0.6666667f, - -0.6666667f, - -0.6666667f, - 0.6666667f, - -0.444444448f, - -0.6666667f, - 0.6666667f, - -0.222222224f, - -0.6666667f, - 0.6666667f, - 0f, - -0.6666667f, - 0.6666667f, - 0.222222224f, - -0.6666667f, - 0.6666667f, - 0.444444448f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - 0.8888889f, - -0.6666667f, - 0.6666667f, - -0.8888889f, - -0.444444448f, - 0.6666667f, - -0.6666667f, - -0.444444448f, - 0.6666667f, - -0.444444448f, - -0.444444448f, - 0.6666667f, - -0.222222224f, - -0.444444448f, - 0.6666667f, - 0f, - -0.444444448f, - 0.6666667f, - 0.222222224f, - -0.444444448f, - 0.6666667f, - 0.444444448f, - -0.444444448f, - 0.6666667f, - 0.6666667f, - -0.444444448f, - 0.6666667f, - 0.8888889f, - -0.444444448f, - 0.6666667f, - -0.8888889f, - -0.222222224f, - 0.6666667f, - -0.6666667f, - -0.222222224f, - 0.6666667f, - -0.444444448f, - -0.222222224f, - 0.6666667f, - -0.222222224f, - -0.222222224f, - 0.6666667f, - 0f, - -0.222222224f, - 0.6666667f, - 0.222222224f, - -0.222222224f, - 0.6666667f, - 0.444444448f, - -0.222222224f, - 0.6666667f, - 0.6666667f, - -0.222222224f, - 0.6666667f, - 0.8888889f, - -0.222222224f, - 0.6666667f, - -0.8888889f, - 0f, - 0.6666667f, - -0.6666667f, - 0f, - 0.6666667f, - -0.444444448f, - 0f, - 0.6666667f, - -0.222222224f, - 0f, - 0.6666667f, - 0f, - 0f, - 0.6666667f, - 0.222222224f, - 0f, - 0.6666667f, - 0.444444448f, - 0f, - 0.6666667f, - 0.6666667f, - 0f, - 0.6666667f, - 0.8888889f, - 0f, - 0.6666667f, - -0.8888889f, - 0.222222224f, - 0.6666667f, - -0.6666667f, - 0.222222224f, - 0.6666667f, - -0.444444448f, - 0.222222224f, - 0.6666667f, - -0.222222224f, - 0.222222224f, - 0.6666667f, - 0f, - 0.222222224f, - 0.6666667f, - 0.222222224f, - 0.222222224f, - 0.6666667f, - 0.444444448f, - 0.222222224f, - 0.6666667f, - 0.6666667f, - 0.222222224f, - 0.6666667f, - 0.8888889f, - 0.222222224f, - 0.6666667f, - -0.8888889f, - 0.444444448f, - 0.6666667f, - -0.6666667f, - 0.444444448f, - 0.6666667f, - -0.444444448f, - 0.444444448f, - 0.6666667f, - -0.222222224f, - 0.444444448f, - 0.6666667f, - 0f, - 0.444444448f, - 0.6666667f, - 0.222222224f, - 0.444444448f, - 0.6666667f, - 0.444444448f, - 0.444444448f, - 0.6666667f, - 0.6666667f, - 0.444444448f, - 0.6666667f, - 0.8888889f, - 0.444444448f, - 0.6666667f, - -0.8888889f, - 0.6666667f, - 0.6666667f, - -0.6666667f, - 0.6666667f, - 0.6666667f, - -0.444444448f, - 0.6666667f, - 0.6666667f, - -0.222222224f, - 0.6666667f, - 0.6666667f, - 0f, - 0.6666667f, - 0.6666667f, - 0.222222224f, - 0.6666667f, - 0.6666667f, - 0.444444448f, - 0.6666667f, - 0.6666667f, - 0.6666667f, - 0.6666667f, - 0.6666667f, - 0.8888889f, - 0.6666667f, - 0.6666667f, - -0.8888889f, - 0.8888889f, - 0.6666667f, - -0.6666667f, - 0.8888889f, - 0.6666667f, - -0.444444448f, - 0.8888889f, - 0.6666667f, - -0.222222224f, - 0.8888889f, - 0.6666667f, - 0f, - 0.8888889f, - 0.6666667f, - 0.222222224f, - 0.8888889f, - 0.6666667f, - 0.444444448f, - 0.8888889f, - 0.6666667f, - 0.6666667f, - 0.8888889f, - 0.6666667f, - 0.8888889f, - 0.8888889f, - 0.6666667f, - -0.8888889f, - -0.8888889f, - 0.8888889f, - -0.6666667f, - -0.8888889f, - 0.8888889f, - -0.444444448f, - -0.8888889f, - 0.8888889f, - -0.222222224f, - -0.8888889f, - 0.8888889f, - 0f, - -0.8888889f, - 0.8888889f, - 0.222222224f, - -0.8888889f, - 0.8888889f, - 0.444444448f, - -0.8888889f, - 0.8888889f, - 0.6666667f, - -0.8888889f, - 0.8888889f, - 0.8888889f, - -0.8888889f, - 0.8888889f, - -0.8888889f, - -0.6666667f, - 0.8888889f, - -0.6666667f, - -0.6666667f, - 0.8888889f, - -0.444444448f, - -0.6666667f, - 0.8888889f, - -0.222222224f, - -0.6666667f, - 0.8888889f, - 0f, - -0.6666667f, - 0.8888889f, - 0.222222224f, - -0.6666667f, - 0.8888889f, - 0.444444448f, - -0.6666667f, - 0.8888889f, - 0.6666667f, - -0.6666667f, - 0.8888889f, - 0.8888889f, - -0.6666667f, - 0.8888889f, - -0.8888889f, - -0.444444448f, - 0.8888889f, - -0.6666667f, - -0.444444448f, - 0.8888889f, - -0.444444448f, - -0.444444448f, - 0.8888889f, - -0.222222224f, - -0.444444448f, - 0.8888889f, - 0f, - -0.444444448f, - 0.8888889f, - 0.222222224f, - -0.444444448f, - 0.8888889f, - 0.444444448f, - -0.444444448f, - 0.8888889f, - 0.6666667f, - -0.444444448f, - 0.8888889f, - 0.8888889f, - -0.444444448f, - 0.8888889f, - -0.8888889f, - -0.222222224f, - 0.8888889f, - -0.6666667f, - -0.222222224f, - 0.8888889f, - -0.444444448f, - -0.222222224f, - 0.8888889f, - -0.222222224f, - -0.222222224f, - 0.8888889f, - 0f, - -0.222222224f, - 0.8888889f, - 0.222222224f, - -0.222222224f, - 0.8888889f, - 0.444444448f, - -0.222222224f, - 0.8888889f, - 0.6666667f, - -0.222222224f, - 0.8888889f, - 0.8888889f, - -0.222222224f, - 0.8888889f, - -0.8888889f, - 0f, - 0.8888889f, - -0.6666667f, - 0f, - 0.8888889f, - -0.444444448f, - 0f, - 0.8888889f, - -0.222222224f, - 0f, - 0.8888889f, - 0f, - 0f, - 0.8888889f, - 0.222222224f, - 0f, - 0.8888889f, - 0.444444448f, - 0f, - 0.8888889f, - 0.6666667f, - 0f, - 0.8888889f, - 0.8888889f, - 0f, - 0.8888889f, - -0.8888889f, - 0.222222224f, - 0.8888889f, - -0.6666667f, - 0.222222224f, - 0.8888889f, - -0.444444448f, - 0.222222224f, - 0.8888889f, - -0.222222224f, - 0.222222224f, - 0.8888889f, - 0f, - 0.222222224f, - 0.8888889f, - 0.222222224f, - 0.222222224f, - 0.8888889f, - 0.444444448f, - 0.222222224f, - 0.8888889f, - 0.6666667f, - 0.222222224f, - 0.8888889f, - 0.8888889f, - 0.222222224f, - 0.8888889f, - -0.8888889f, - 0.444444448f, - 0.8888889f, - -0.6666667f, - 0.444444448f, - 0.8888889f, - -0.444444448f, - 0.444444448f, - 0.8888889f, - -0.222222224f, - 0.444444448f, - 0.8888889f, - 0f, - 0.444444448f, - 0.8888889f, - 0.222222224f, - 0.444444448f, - 0.8888889f, - 0.444444448f, - 0.444444448f, - 0.8888889f, - 0.6666667f, - 0.444444448f, - 0.8888889f, - 0.8888889f, - 0.444444448f, - 0.8888889f, - -0.8888889f, - 0.6666667f, - 0.8888889f, - -0.6666667f, - 0.6666667f, - 0.8888889f, - -0.444444448f, - 0.6666667f, - 0.8888889f, - -0.222222224f, - 0.6666667f, - 0.8888889f, - 0f, - 0.6666667f, - 0.8888889f, - 0.222222224f, - 0.6666667f, - 0.8888889f, - 0.444444448f, - 0.6666667f, - 0.8888889f, - 0.6666667f, - 0.6666667f, - 0.8888889f, - 0.8888889f, - 0.6666667f, - 0.8888889f, - -0.8888889f, - 0.8888889f, - 0.8888889f, - -0.6666667f, - 0.8888889f, - 0.8888889f, - -0.444444448f, - 0.8888889f, - 0.8888889f, - -0.222222224f, - 0.8888889f, - 0.8888889f, - 0f, - 0.8888889f, - 0.8888889f, - 0.222222224f, - 0.8888889f, - 0.8888889f, - 0.444444448f, - 0.8888889f, - 0.8888889f, - 0.6666667f, - 0.8888889f, - 0.8888889f, - 0.8888889f, - 0.8888889f, - 0.8888889f - }; - Int0 = new[] - { - 0, - 5, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16 - }; - Float5 = new[] - { - 0f, - 0.5f, - 0.25f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 0.000122070313f, - 6.10351563E-05f, - 3.05175781E-05f - }; - Float6 = new[] - { - 0f, - 1.33333337f, - 1.14285719f, - 1.06666672f, - 1.032258f, - 1.01587307f, - 1.007874f, - 1.00392163f, - 1.00195694f, - 1.00097752f, - 1.00048852f, - 1.00024426f, - 1.00012207f, - 1.000061f, - 1.00003052f, - 1.00001526f - }; - Float7 = new[] - { - 0f, - 0.5f, - 0.25f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 0.000122070313f, - 6.103516E-05f, - 3.051758E-05f - }; - Int1 = new[] - { - 0, - 5, - 7, - 3, - 10, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 16 - }; - Float9 = new[] - { - 0f, - 0.5f, - 0.25f, - 0.25f, - 0.125f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 3.05175781E-05f - }; - Float10 = new[] - { - 0f, - 1.33333337f, - 1.6f, - 1.14285719f, - 1.77777779f, - 1.06666672f, - 1.032258f, - 1.01587307f, - 1.007874f, - 1.00392163f, - 1.00195694f, - 1.00097752f, - 1.00048852f, - 1.00024426f, - 1.00012207f, - 1.00001526f - }; - Float11 = new[] - { - 0f, - 0.5f, - 0.5f, - 0.25f, - 0.5f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 3.051758E-05f - }; - Int2 = new[] - { - 0, - 5, - 7, - 3, - 10, - 4, - 5, - 16 - }; - Float12 = new[] - { - 0f, - 0.5f, - 0.25f, - 0.25f, - 0.125f, - 0.125f, - 0.0625f, - 3.05175781E-05f - }; - Float13 = new[] - { - 0f, - 1.33333337f, - 1.6f, - 1.14285719f, - 1.77777779f, - 1.06666672f, - 1.032258f, - 1.00001526f - }; - Float14 = new[] - { - 0f, - 0.5f, - 0.5f, - 0.25f, - 0.5f, - 0.125f, - 0.0625f, - 3.051758E-05f - }; - Int3 = new[] - { - 0, - 5, - 7, - 16 - }; - Float15 = new[] - { - 0f, - 0.5f, - 0.25f, - 3.05175781E-05f - }; - Float16 = new[] - { - 0f, - 1.33333337f, - 1.6f, - 1.00001526f - }; - Float17 = new[] - { - 0f, - 0.5f, - 0.5f, - 3.051758E-05f - }; - Int4 = new[] - { - 0, - 5, - 7, - 10, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15 - }; - Float19 = new[] - { - 0f, - 0.5f, - 0.25f, - 0.125f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 0.000122070313f, - 6.10351563E-05f - }; - Float20 = new[] - { - 0f, - 1.33333337f, - 1.6f, - 1.77777779f, - 1.06666672f, - 1.032258f, - 1.01587307f, - 1.007874f, - 1.00392163f, - 1.00195694f, - 1.00097752f, - 1.00048852f, - 1.00024426f, - 1.00012207f, - 1.000061f, - 1.00003052f - }; - Float21 = new[] - { - 0f, - 0.5f, - 0.5f, - 0.5f, - 0.125f, - 0.0625f, - 0.03125f, - 0.015625f, - 0.0078125f, - 0.00390625f, - 0.001953125f, - 0.0009765625f, - 0.00048828125f, - 0.000244140625f, - 0.000122070313f, - 6.103516E-05f - }; - var array = new float[16][]; - array[1] = Float1; - Float4 = array; - var array2 = new float[16][]; - array2[1] = Float1; - array2[2] = Float2; - array2[4] = Float3; - Float8 = array2; - var array3 = new float[16][]; - array3[1] = Float1; - array3[2] = Float2; - array3[3] = Float3; - Float18 = array3; - } - } - - public class Class99 : Class98 - { - public int Int11; - - public float Float30; - - public float Float31; - - public float Float32; - - public Class99(int int12) : base(int12) - { - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - base.vmethod_0(class820, class1070, class1010); - } - - public override void vmethod_6(Class82 class820, Class101 class1010) - { - if (Int6 == 0) - { - return; - } - Int7 = class820.method_13(2); - Int11 = class820.method_13(2); - if (class1010 != null) - { - class1010.method_0(Int7, 2); - class1010.method_0(Int11, 2); - } - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - if (Int6 == 0) - { - return; - } - base.vmethod_1(class820, class1070); - switch (Int11) - { - case 0: - Float30 = Float0[class820.method_13(6)]; - Float31 = Float0[class820.method_13(6)]; - Float32 = Float0[class820.method_13(6)]; - return; - case 1: - Float30 = (Float31 = Float0[class820.method_13(6)]); - Float32 = Float0[class820.method_13(6)]; - return; - case 2: - Float30 = (Float31 = (Float32 = Float0[class820.method_13(6)])); - return; - case 3: - Float30 = Float0[class820.method_13(6)]; - Float31 = (Float32 = Float0[class820.method_13(6)]); - return; - default: - return; - } - } - - public override bool vmethod_2(Class82 class820) - { - return base.vmethod_2(class820); - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - if (Int6 != 0) - { - var num = Float27[Int10]; - if (Float25[0] == null) - { - num = (num + Float29[0]) * Float28[0]; - } - if (enum40 == Enum4.Const0) - { - var num2 = num; - if (Int9 <= 4) - { - num *= Float22; - num2 *= Float30; - } - else if (Int9 <= 8) - { - num *= Float23; - num2 *= Float31; - } - else - { - num *= Float24; - num2 *= Float32; - } - class800.method_2(num, Int5); - class801.method_2(num2, Int5); - } - else if (enum40 == Enum4.Const1) - { - if (Int9 <= 4) - { - num *= Float22; - } - else if (Int9 <= 8) - { - num *= Float23; - } - else - { - num *= Float24; - } - class800.method_2(num, Int5); - } - else - { - if (Int9 <= 4) - { - num *= Float30; - } - else if (Int9 <= 8) - { - num *= Float31; - } - else - { - num *= Float32; - } - class800.method_2(num, Int5); - } - } - return ++Int10 == 3; - } - } - - public class Class100 : Class98 - { - public int Int11; - - public int Int12; - - public float Float30; - - public float Float31; - - public float Float32; - - public int[] Int13; - - public float[] Float33; - - public float[] Float34; - - public float[] Float35; - - public float[] Float36; - - public Class100(int int14) : base(int14) - { - var array = new int[1]; - Int13 = array; - var array2 = new float[1]; - Float33 = array2; - var array3 = new float[1]; - Float35 = array3; - var array4 = new float[1]; - Float36 = array4; - //base..ctor(int_14); - Float34 = new float[3]; - } - - public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) - { - var num = vmethod_4(class1070); - Int6 = class820.method_13(num); - Int11 = class820.method_13(num); - if (class1010 != null) - { - class1010.method_0(Int6, num); - class1010.method_0(Int11, num); - } - } - - public override void vmethod_6(Class82 class820, Class101 class1010) - { - if (Int6 != 0) - { - Int7 = class820.method_13(2); - if (class1010 != null) - { - class1010.method_0(Int7, 2); - } - } - if (Int11 != 0) - { - Int12 = class820.method_13(2); - if (class1010 != null) - { - class1010.method_0(Int12, 2); - } - } - } - - public override void vmethod_1(Class82 class820, ZzSoundClass class1070) - { - base.vmethod_1(class820, class1070); - if (Int11 != 0) - { - switch (Int12) - { - case 0: - Float30 = Float0[class820.method_13(6)]; - Float31 = Float0[class820.method_13(6)]; - Float32 = Float0[class820.method_13(6)]; - break; - case 1: - Float30 = (Float31 = Float0[class820.method_13(6)]); - Float32 = Float0[class820.method_13(6)]; - break; - case 2: - Float30 = (Float31 = (Float32 = Float0[class820.method_13(6)])); - break; - case 3: - Float30 = Float0[class820.method_13(6)]; - Float31 = (Float32 = Float0[class820.method_13(6)]); - break; - } - vmethod_5(class1070, Int11, 1, Float33, Int13, Float35, Float36); - } - } - - public override bool vmethod_2(Class82 class820) - { - var result = base.vmethod_2(class820); - if (Int11 != 0) - { - if (Float25[1] != null) - { - var num = class820.method_13(Int13[0]); - num += num << 1; - var array = Float34; - var array2 = Float25[1]; - var num2 = num; - array[0] = array2[num2++]; - array[1] = array2[num2++]; - array[2] = array2[num2]; - } - else - { - Float34[0] = class820.method_13(Int13[0]) * Float33[0] - 1f; - Float34[1] = class820.method_13(Int13[0]) * Float33[0] - 1f; - Float34[2] = class820.method_13(Int13[0]) * Float33[0] - 1f; - } - } - return result; - } - - public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) - { - var result = base.vmethod_3(enum40, class800, class801); - if (Int11 != 0 && enum40 != Enum4.Const1) - { - var num = Float34[Int10 - 1]; - if (Float25[1] == null) - { - num = (num + Float36[0]) * Float35[0]; - } - if (Int9 <= 4) - { - num *= Float30; - } - else if (Int9 <= 8) - { - num *= Float31; - } - else - { - num *= Float32; - } - if (enum40 == Enum4.Const0) - { - class801.method_2(num, Int5); - } - else - { - class800.method_2(num, Int5); - } - } - return result; - } - } - - public override void vmethod_1() - { - switch (Enum50) - { - case Enum5.Const1: - { - int i; - for (i = 0; i < Class1070.method_26(); i++) - { - Class940[i] = new Class100(i); - } - while (i < Int0) - { - Class940[i] = new Class99(i); - i++; - } - return; - } - case Enum5.Const3: - for (var i = 0; i < Int0; i++) - { - Class940[i] = new Class98(i); - } - return; - } - for (var i = 0; i < Int0; i++) - { - Class940[i] = new Class100(i); - } - } - - public override void vmethod_3() - { - for (var i = 0; i < Int0; i++) - { - ((Class98)Class940[i]).vmethod_6(Class820, Class1010); - } - } - } -} + public readonly float[][] Float25; + + public readonly float[] Float26; + + public int Int9; + + public int Int10; + + public readonly float[] Float27; + + public readonly float[] Float28; + + public readonly float[] Float29; + + public Class98(int int11) + { + var array = new int[1]; + Int8 = array; + Float25 = new float[2][]; + var array2 = new float[1]; + Float26 = array2; + Float27 = new float[3]; + var array3 = new float[1]; + Float28 = array3; + var array4 = new float[1]; + Float29 = array4; + //base..ctor(); + Int5 = int11; + Int10 = 0; + Int9 = 0; + } + + public virtual int vmethod_4(ZzSoundClass class1070) + { + if (class1070.method_3() == Enum3.Const1) + { + var num = class1070.method_5(); + if (class1070.method_8() != Enum5.Const3) + { + if (num == 4) + { + num = 1; + } + else + { + num -= 4; + } + } + if (num != 1) + { + if (num != 2) + { + if (Int5 <= 10) + { + return 4; + } + if (Int5 > 22) + { + return 2; + } + return 3; + } + } + if (Int5 > 1) + { + return 3; + } + return 4; + } + if (Int5 <= 3) + { + return 4; + } + if (Int5 > 10) + { + return 2; + } + return 3; + } + + public virtual void vmethod_5(ZzSoundClass class1070, int int11, int int12, float[] float30, int[] int13, + float[] float31, float[] float32) + { + var num = class1070.method_5(); + if (class1070.method_8() != Enum5.Const3) + { + if (num == 4) + { + num = 1; + } + else + { + num -= 4; + } + } + if (num != 1) + { + if (num != 2) + { + if (Int5 <= 2) + { + Float25[int12] = Float4[int11]; + float30[0] = Float5[int11]; + int13[0] = Int0[int11]; + float31[0] = Float6[int11]; + float32[0] = Float7[int11]; + return; + } + Float25[int12] = Float8[int11]; + if (Int5 <= 10) + { + float30[0] = Float9[int11]; + int13[0] = Int1[int11]; + float31[0] = Float10[int11]; + float32[0] = Float11[int11]; + return; + } + if (Int5 <= 22) + { + float30[0] = Float12[int11]; + int13[0] = Int2[int11]; + float31[0] = Float13[int11]; + float32[0] = Float14[int11]; + return; + } + float30[0] = Float15[int11]; + int13[0] = Int3[int11]; + float31[0] = Float16[int11]; + float32[0] = Float17[int11]; + return; + } + } + Float25[int12] = Float18[int11]; + float30[0] = Float19[int11]; + int13[0] = Int4[int11]; + float31[0] = Float20[int11]; + float32[0] = Float21[int11]; + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + var num = vmethod_4(class1070); + Int6 = class820.method_13(num); + if (class1010 != null) + { + class1010.method_0(Int6, num); + } + } + + public virtual void vmethod_6(Class82 class820, Class101 class1010) + { + if (Int6 == 0) + { + return; + } + Int7 = class820.method_13(2); + if (class1010 != null) + { + class1010.method_0(Int7, 2); + } + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + if (Int6 == 0) + { + return; + } + switch (Int7) + { + case 0: + Float22 = Float0[class820.method_13(6)]; + Float23 = Float0[class820.method_13(6)]; + Float24 = Float0[class820.method_13(6)]; + break; + case 1: + Float22 = (Float23 = Float0[class820.method_13(6)]); + Float24 = Float0[class820.method_13(6)]; + break; + case 2: + Float22 = (Float23 = (Float24 = Float0[class820.method_13(6)])); + break; + case 3: + Float22 = Float0[class820.method_13(6)]; + Float23 = (Float24 = Float0[class820.method_13(6)]); + break; + } + vmethod_5(class1070, Int6, 0, Float26, Int8, Float28, Float29); + } + + public override bool vmethod_2(Class82 class820) + { + if (Int6 != 0) + { + if (Float25[0] != null) + { + var num = class820.method_13(Int8[0]); + num += num << 1; + var array = Float27; + var array2 = Float25[0]; + var num2 = 0; + var num3 = num; + if (num3 > array2.Length - 3) + { + num3 = array2.Length - 3; + } + array[num2] = array2[num3]; + num3++; + num2++; + array[num2] = array2[num3]; + num3++; + num2++; + array[num2] = array2[num3]; + } + else + { + Float27[0] = class820.method_13(Int8[0]) * Float26[0] - 1f; + Float27[1] = class820.method_13(Int8[0]) * Float26[0] - 1f; + Float27[2] = class820.method_13(Int8[0]) * Float26[0] - 1f; + } + } + Int10 = 0; + return ++Int9 == 12; + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + if (Int6 != 0 && enum40 != Enum4.Const2) + { + var num = Float27[Int10]; + if (Float25[0] == null) + { + num = (num + Float29[0]) * Float28[0]; + } + if (Int9 <= 4) + { + num *= Float22; + } + else if (Int9 <= 8) + { + num *= Float23; + } + else + { + num *= Float24; + } + class800.method_2(num, Int5); + } + return ++Int10 == 3; + } + + static Class98() + { + Float1 = new[] + { + -0.6666667f, + -0.6666667f, + -0.6666667f, + 0f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + -0.6666667f, + -0.6666667f, + 0f, + -0.6666667f, + 0f, + 0f, + -0.6666667f, + 0.6666667f, + 0f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + 0f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + -0.6666667f, + -0.6666667f, + -0.6666667f, + 0f, + 0f, + -0.6666667f, + 0f, + 0.6666667f, + -0.6666667f, + 0f, + -0.6666667f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0.6666667f, + 0f, + 0f, + -0.6666667f, + 0.6666667f, + 0f, + 0f, + 0.6666667f, + 0f, + 0.6666667f, + 0.6666667f, + 0f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + 0f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + 0f, + 0.6666667f, + 0f, + 0f, + 0.6666667f, + 0.6666667f, + 0f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + 0f, + 0.6666667f, + 0.6666667f, + 0.6666667f, + 0.6666667f, + 0.6666667f + }; + Float2 = new[] + { + -0.8f, + -0.8f, + -0.8f, + -0.4f, + -0.8f, + -0.8f, + 0f, + -0.8f, + -0.8f, + 0.4f, + -0.8f, + -0.8f, + 0.8f, + -0.8f, + -0.8f, + -0.8f, + -0.4f, + -0.8f, + -0.4f, + -0.4f, + -0.8f, + 0f, + -0.4f, + -0.8f, + 0.4f, + -0.4f, + -0.8f, + 0.8f, + -0.4f, + -0.8f, + -0.8f, + 0f, + -0.8f, + -0.4f, + 0f, + -0.8f, + 0f, + 0f, + -0.8f, + 0.4f, + 0f, + -0.8f, + 0.8f, + 0f, + -0.8f, + -0.8f, + 0.4f, + -0.8f, + -0.4f, + 0.4f, + -0.8f, + 0f, + 0.4f, + -0.8f, + 0.4f, + 0.4f, + -0.8f, + 0.8f, + 0.4f, + -0.8f, + -0.8f, + 0.8f, + -0.8f, + -0.4f, + 0.8f, + -0.8f, + 0f, + 0.8f, + -0.8f, + 0.4f, + 0.8f, + -0.8f, + 0.8f, + 0.8f, + -0.8f, + -0.8f, + -0.8f, + -0.4f, + -0.4f, + -0.8f, + -0.4f, + 0f, + -0.8f, + -0.4f, + 0.4f, + -0.8f, + -0.4f, + 0.8f, + -0.8f, + -0.4f, + -0.8f, + -0.4f, + -0.4f, + -0.4f, + -0.4f, + -0.4f, + 0f, + -0.4f, + -0.4f, + 0.4f, + -0.4f, + -0.4f, + 0.8f, + -0.4f, + -0.4f, + -0.8f, + 0f, + -0.4f, + -0.4f, + 0f, + -0.4f, + 0f, + 0f, + -0.4f, + 0.4f, + 0f, + -0.4f, + 0.8f, + 0f, + -0.4f, + -0.8f, + 0.4f, + -0.4f, + -0.4f, + 0.4f, + -0.4f, + 0f, + 0.4f, + -0.4f, + 0.4f, + 0.4f, + -0.4f, + 0.8f, + 0.4f, + -0.4f, + -0.8f, + 0.8f, + -0.4f, + -0.4f, + 0.8f, + -0.4f, + 0f, + 0.8f, + -0.4f, + 0.4f, + 0.8f, + -0.4f, + 0.8f, + 0.8f, + -0.4f, + -0.8f, + -0.8f, + 0f, + -0.4f, + -0.8f, + 0f, + 0f, + -0.8f, + 0f, + 0.4f, + -0.8f, + 0f, + 0.8f, + -0.8f, + 0f, + -0.8f, + -0.4f, + 0f, + -0.4f, + -0.4f, + 0f, + 0f, + -0.4f, + 0f, + 0.4f, + -0.4f, + 0f, + 0.8f, + -0.4f, + 0f, + -0.8f, + 0f, + 0f, + -0.4f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0.4f, + 0f, + 0f, + 0.8f, + 0f, + 0f, + -0.8f, + 0.4f, + 0f, + -0.4f, + 0.4f, + 0f, + 0f, + 0.4f, + 0f, + 0.4f, + 0.4f, + 0f, + 0.8f, + 0.4f, + 0f, + -0.8f, + 0.8f, + 0f, + -0.4f, + 0.8f, + 0f, + 0f, + 0.8f, + 0f, + 0.4f, + 0.8f, + 0f, + 0.8f, + 0.8f, + 0f, + -0.8f, + -0.8f, + 0.4f, + -0.4f, + -0.8f, + 0.4f, + 0f, + -0.8f, + 0.4f, + 0.4f, + -0.8f, + 0.4f, + 0.8f, + -0.8f, + 0.4f, + -0.8f, + -0.4f, + 0.4f, + -0.4f, + -0.4f, + 0.4f, + 0f, + -0.4f, + 0.4f, + 0.4f, + -0.4f, + 0.4f, + 0.8f, + -0.4f, + 0.4f, + -0.8f, + 0f, + 0.4f, + -0.4f, + 0f, + 0.4f, + 0f, + 0f, + 0.4f, + 0.4f, + 0f, + 0.4f, + 0.8f, + 0f, + 0.4f, + -0.8f, + 0.4f, + 0.4f, + -0.4f, + 0.4f, + 0.4f, + 0f, + 0.4f, + 0.4f, + 0.4f, + 0.4f, + 0.4f, + 0.8f, + 0.4f, + 0.4f, + -0.8f, + 0.8f, + 0.4f, + -0.4f, + 0.8f, + 0.4f, + 0f, + 0.8f, + 0.4f, + 0.4f, + 0.8f, + 0.4f, + 0.8f, + 0.8f, + 0.4f, + -0.8f, + -0.8f, + 0.8f, + -0.4f, + -0.8f, + 0.8f, + 0f, + -0.8f, + 0.8f, + 0.4f, + -0.8f, + 0.8f, + 0.8f, + -0.8f, + 0.8f, + -0.8f, + -0.4f, + 0.8f, + -0.4f, + -0.4f, + 0.8f, + 0f, + -0.4f, + 0.8f, + 0.4f, + -0.4f, + 0.8f, + 0.8f, + -0.4f, + 0.8f, + -0.8f, + 0f, + 0.8f, + -0.4f, + 0f, + 0.8f, + 0f, + 0f, + 0.8f, + 0.4f, + 0f, + 0.8f, + 0.8f, + 0f, + 0.8f, + -0.8f, + 0.4f, + 0.8f, + -0.4f, + 0.4f, + 0.8f, + 0f, + 0.4f, + 0.8f, + 0.4f, + 0.4f, + 0.8f, + 0.8f, + 0.4f, + 0.8f, + -0.8f, + 0.8f, + 0.8f, + -0.4f, + 0.8f, + 0.8f, + 0f, + 0.8f, + 0.8f, + 0.4f, + 0.8f, + 0.8f, + 0.8f, + 0.8f, + 0.8f + }; + Float3 = new[] + { + -0.8888889f, + -0.8888889f, + -0.8888889f, + -0.6666667f, + -0.8888889f, + -0.8888889f, + -0.444444448f, + -0.8888889f, + -0.8888889f, + -0.222222224f, + -0.8888889f, + -0.8888889f, + 0f, + -0.8888889f, + -0.8888889f, + 0.222222224f, + -0.8888889f, + -0.8888889f, + 0.444444448f, + -0.8888889f, + -0.8888889f, + 0.6666667f, + -0.8888889f, + -0.8888889f, + 0.8888889f, + -0.8888889f, + -0.8888889f, + -0.8888889f, + -0.6666667f, + -0.8888889f, + -0.6666667f, + -0.6666667f, + -0.8888889f, + -0.444444448f, + -0.6666667f, + -0.8888889f, + -0.222222224f, + -0.6666667f, + -0.8888889f, + 0f, + -0.6666667f, + -0.8888889f, + 0.222222224f, + -0.6666667f, + -0.8888889f, + 0.444444448f, + -0.6666667f, + -0.8888889f, + 0.6666667f, + -0.6666667f, + -0.8888889f, + 0.8888889f, + -0.6666667f, + -0.8888889f, + -0.8888889f, + -0.444444448f, + -0.8888889f, + -0.6666667f, + -0.444444448f, + -0.8888889f, + -0.444444448f, + -0.444444448f, + -0.8888889f, + -0.222222224f, + -0.444444448f, + -0.8888889f, + 0f, + -0.444444448f, + -0.8888889f, + 0.222222224f, + -0.444444448f, + -0.8888889f, + 0.444444448f, + -0.444444448f, + -0.8888889f, + 0.6666667f, + -0.444444448f, + -0.8888889f, + 0.8888889f, + -0.444444448f, + -0.8888889f, + -0.8888889f, + -0.222222224f, + -0.8888889f, + -0.6666667f, + -0.222222224f, + -0.8888889f, + -0.444444448f, + -0.222222224f, + -0.8888889f, + -0.222222224f, + -0.222222224f, + -0.8888889f, + 0f, + -0.222222224f, + -0.8888889f, + 0.222222224f, + -0.222222224f, + -0.8888889f, + 0.444444448f, + -0.222222224f, + -0.8888889f, + 0.6666667f, + -0.222222224f, + -0.8888889f, + 0.8888889f, + -0.222222224f, + -0.8888889f, + -0.8888889f, + 0f, + -0.8888889f, + -0.6666667f, + 0f, + -0.8888889f, + -0.444444448f, + 0f, + -0.8888889f, + -0.222222224f, + 0f, + -0.8888889f, + 0f, + 0f, + -0.8888889f, + 0.222222224f, + 0f, + -0.8888889f, + 0.444444448f, + 0f, + -0.8888889f, + 0.6666667f, + 0f, + -0.8888889f, + 0.8888889f, + 0f, + -0.8888889f, + -0.8888889f, + 0.222222224f, + -0.8888889f, + -0.6666667f, + 0.222222224f, + -0.8888889f, + -0.444444448f, + 0.222222224f, + -0.8888889f, + -0.222222224f, + 0.222222224f, + -0.8888889f, + 0f, + 0.222222224f, + -0.8888889f, + 0.222222224f, + 0.222222224f, + -0.8888889f, + 0.444444448f, + 0.222222224f, + -0.8888889f, + 0.6666667f, + 0.222222224f, + -0.8888889f, + 0.8888889f, + 0.222222224f, + -0.8888889f, + -0.8888889f, + 0.444444448f, + -0.8888889f, + -0.6666667f, + 0.444444448f, + -0.8888889f, + -0.444444448f, + 0.444444448f, + -0.8888889f, + -0.222222224f, + 0.444444448f, + -0.8888889f, + 0f, + 0.444444448f, + -0.8888889f, + 0.222222224f, + 0.444444448f, + -0.8888889f, + 0.444444448f, + 0.444444448f, + -0.8888889f, + 0.6666667f, + 0.444444448f, + -0.8888889f, + 0.8888889f, + 0.444444448f, + -0.8888889f, + -0.8888889f, + 0.6666667f, + -0.8888889f, + -0.6666667f, + 0.6666667f, + -0.8888889f, + -0.444444448f, + 0.6666667f, + -0.8888889f, + -0.222222224f, + 0.6666667f, + -0.8888889f, + 0f, + 0.6666667f, + -0.8888889f, + 0.222222224f, + 0.6666667f, + -0.8888889f, + 0.444444448f, + 0.6666667f, + -0.8888889f, + 0.6666667f, + 0.6666667f, + -0.8888889f, + 0.8888889f, + 0.6666667f, + -0.8888889f, + -0.8888889f, + 0.8888889f, + -0.8888889f, + -0.6666667f, + 0.8888889f, + -0.8888889f, + -0.444444448f, + 0.8888889f, + -0.8888889f, + -0.222222224f, + 0.8888889f, + -0.8888889f, + 0f, + 0.8888889f, + -0.8888889f, + 0.222222224f, + 0.8888889f, + -0.8888889f, + 0.444444448f, + 0.8888889f, + -0.8888889f, + 0.6666667f, + 0.8888889f, + -0.8888889f, + 0.8888889f, + 0.8888889f, + -0.8888889f, + -0.8888889f, + -0.8888889f, + -0.6666667f, + -0.6666667f, + -0.8888889f, + -0.6666667f, + -0.444444448f, + -0.8888889f, + -0.6666667f, + -0.222222224f, + -0.8888889f, + -0.6666667f, + 0f, + -0.8888889f, + -0.6666667f, + 0.222222224f, + -0.8888889f, + -0.6666667f, + 0.444444448f, + -0.8888889f, + -0.6666667f, + 0.6666667f, + -0.8888889f, + -0.6666667f, + 0.8888889f, + -0.8888889f, + -0.6666667f, + -0.8888889f, + -0.6666667f, + -0.6666667f, + -0.6666667f, + -0.6666667f, + -0.6666667f, + -0.444444448f, + -0.6666667f, + -0.6666667f, + -0.222222224f, + -0.6666667f, + -0.6666667f, + 0f, + -0.6666667f, + -0.6666667f, + 0.222222224f, + -0.6666667f, + -0.6666667f, + 0.444444448f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + -0.6666667f, + 0.8888889f, + -0.6666667f, + -0.6666667f, + -0.8888889f, + -0.444444448f, + -0.6666667f, + -0.6666667f, + -0.444444448f, + -0.6666667f, + -0.444444448f, + -0.444444448f, + -0.6666667f, + -0.222222224f, + -0.444444448f, + -0.6666667f, + 0f, + -0.444444448f, + -0.6666667f, + 0.222222224f, + -0.444444448f, + -0.6666667f, + 0.444444448f, + -0.444444448f, + -0.6666667f, + 0.6666667f, + -0.444444448f, + -0.6666667f, + 0.8888889f, + -0.444444448f, + -0.6666667f, + -0.8888889f, + -0.222222224f, + -0.6666667f, + -0.6666667f, + -0.222222224f, + -0.6666667f, + -0.444444448f, + -0.222222224f, + -0.6666667f, + -0.222222224f, + -0.222222224f, + -0.6666667f, + 0f, + -0.222222224f, + -0.6666667f, + 0.222222224f, + -0.222222224f, + -0.6666667f, + 0.444444448f, + -0.222222224f, + -0.6666667f, + 0.6666667f, + -0.222222224f, + -0.6666667f, + 0.8888889f, + -0.222222224f, + -0.6666667f, + -0.8888889f, + 0f, + -0.6666667f, + -0.6666667f, + 0f, + -0.6666667f, + -0.444444448f, + 0f, + -0.6666667f, + -0.222222224f, + 0f, + -0.6666667f, + 0f, + 0f, + -0.6666667f, + 0.222222224f, + 0f, + -0.6666667f, + 0.444444448f, + 0f, + -0.6666667f, + 0.6666667f, + 0f, + -0.6666667f, + 0.8888889f, + 0f, + -0.6666667f, + -0.8888889f, + 0.222222224f, + -0.6666667f, + -0.6666667f, + 0.222222224f, + -0.6666667f, + -0.444444448f, + 0.222222224f, + -0.6666667f, + -0.222222224f, + 0.222222224f, + -0.6666667f, + 0f, + 0.222222224f, + -0.6666667f, + 0.222222224f, + 0.222222224f, + -0.6666667f, + 0.444444448f, + 0.222222224f, + -0.6666667f, + 0.6666667f, + 0.222222224f, + -0.6666667f, + 0.8888889f, + 0.222222224f, + -0.6666667f, + -0.8888889f, + 0.444444448f, + -0.6666667f, + -0.6666667f, + 0.444444448f, + -0.6666667f, + -0.444444448f, + 0.444444448f, + -0.6666667f, + -0.222222224f, + 0.444444448f, + -0.6666667f, + 0f, + 0.444444448f, + -0.6666667f, + 0.222222224f, + 0.444444448f, + -0.6666667f, + 0.444444448f, + 0.444444448f, + -0.6666667f, + 0.6666667f, + 0.444444448f, + -0.6666667f, + 0.8888889f, + 0.444444448f, + -0.6666667f, + -0.8888889f, + 0.6666667f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + -0.444444448f, + 0.6666667f, + -0.6666667f, + -0.222222224f, + 0.6666667f, + -0.6666667f, + 0f, + 0.6666667f, + -0.6666667f, + 0.222222224f, + 0.6666667f, + -0.6666667f, + 0.444444448f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + -0.6666667f, + 0.8888889f, + 0.6666667f, + -0.6666667f, + -0.8888889f, + 0.8888889f, + -0.6666667f, + -0.6666667f, + 0.8888889f, + -0.6666667f, + -0.444444448f, + 0.8888889f, + -0.6666667f, + -0.222222224f, + 0.8888889f, + -0.6666667f, + 0f, + 0.8888889f, + -0.6666667f, + 0.222222224f, + 0.8888889f, + -0.6666667f, + 0.444444448f, + 0.8888889f, + -0.6666667f, + 0.6666667f, + 0.8888889f, + -0.6666667f, + 0.8888889f, + 0.8888889f, + -0.6666667f, + -0.8888889f, + -0.8888889f, + -0.444444448f, + -0.6666667f, + -0.8888889f, + -0.444444448f, + -0.444444448f, + -0.8888889f, + -0.444444448f, + -0.222222224f, + -0.8888889f, + -0.444444448f, + 0f, + -0.8888889f, + -0.444444448f, + 0.222222224f, + -0.8888889f, + -0.444444448f, + 0.444444448f, + -0.8888889f, + -0.444444448f, + 0.6666667f, + -0.8888889f, + -0.444444448f, + 0.8888889f, + -0.8888889f, + -0.444444448f, + -0.8888889f, + -0.6666667f, + -0.444444448f, + -0.6666667f, + -0.6666667f, + -0.444444448f, + -0.444444448f, + -0.6666667f, + -0.444444448f, + -0.222222224f, + -0.6666667f, + -0.444444448f, + 0f, + -0.6666667f, + -0.444444448f, + 0.222222224f, + -0.6666667f, + -0.444444448f, + 0.444444448f, + -0.6666667f, + -0.444444448f, + 0.6666667f, + -0.6666667f, + -0.444444448f, + 0.8888889f, + -0.6666667f, + -0.444444448f, + -0.8888889f, + -0.444444448f, + -0.444444448f, + -0.6666667f, + -0.444444448f, + -0.444444448f, + -0.444444448f, + -0.444444448f, + -0.444444448f, + -0.222222224f, + -0.444444448f, + -0.444444448f, + 0f, + -0.444444448f, + -0.444444448f, + 0.222222224f, + -0.444444448f, + -0.444444448f, + 0.444444448f, + -0.444444448f, + -0.444444448f, + 0.6666667f, + -0.444444448f, + -0.444444448f, + 0.8888889f, + -0.444444448f, + -0.444444448f, + -0.8888889f, + -0.222222224f, + -0.444444448f, + -0.6666667f, + -0.222222224f, + -0.444444448f, + -0.444444448f, + -0.222222224f, + -0.444444448f, + -0.222222224f, + -0.222222224f, + -0.444444448f, + 0f, + -0.222222224f, + -0.444444448f, + 0.222222224f, + -0.222222224f, + -0.444444448f, + 0.444444448f, + -0.222222224f, + -0.444444448f, + 0.6666667f, + -0.222222224f, + -0.444444448f, + 0.8888889f, + -0.222222224f, + -0.444444448f, + -0.8888889f, + 0f, + -0.444444448f, + -0.6666667f, + 0f, + -0.444444448f, + -0.444444448f, + 0f, + -0.444444448f, + -0.222222224f, + 0f, + -0.444444448f, + 0f, + 0f, + -0.444444448f, + 0.222222224f, + 0f, + -0.444444448f, + 0.444444448f, + 0f, + -0.444444448f, + 0.6666667f, + 0f, + -0.444444448f, + 0.8888889f, + 0f, + -0.444444448f, + -0.8888889f, + 0.222222224f, + -0.444444448f, + -0.6666667f, + 0.222222224f, + -0.444444448f, + -0.444444448f, + 0.222222224f, + -0.444444448f, + -0.222222224f, + 0.222222224f, + -0.444444448f, + 0f, + 0.222222224f, + -0.444444448f, + 0.222222224f, + 0.222222224f, + -0.444444448f, + 0.444444448f, + 0.222222224f, + -0.444444448f, + 0.6666667f, + 0.222222224f, + -0.444444448f, + 0.8888889f, + 0.222222224f, + -0.444444448f, + -0.8888889f, + 0.444444448f, + -0.444444448f, + -0.6666667f, + 0.444444448f, + -0.444444448f, + -0.444444448f, + 0.444444448f, + -0.444444448f, + -0.222222224f, + 0.444444448f, + -0.444444448f, + 0f, + 0.444444448f, + -0.444444448f, + 0.222222224f, + 0.444444448f, + -0.444444448f, + 0.444444448f, + 0.444444448f, + -0.444444448f, + 0.6666667f, + 0.444444448f, + -0.444444448f, + 0.8888889f, + 0.444444448f, + -0.444444448f, + -0.8888889f, + 0.6666667f, + -0.444444448f, + -0.6666667f, + 0.6666667f, + -0.444444448f, + -0.444444448f, + 0.6666667f, + -0.444444448f, + -0.222222224f, + 0.6666667f, + -0.444444448f, + 0f, + 0.6666667f, + -0.444444448f, + 0.222222224f, + 0.6666667f, + -0.444444448f, + 0.444444448f, + 0.6666667f, + -0.444444448f, + 0.6666667f, + 0.6666667f, + -0.444444448f, + 0.8888889f, + 0.6666667f, + -0.444444448f, + -0.8888889f, + 0.8888889f, + -0.444444448f, + -0.6666667f, + 0.8888889f, + -0.444444448f, + -0.444444448f, + 0.8888889f, + -0.444444448f, + -0.222222224f, + 0.8888889f, + -0.444444448f, + 0f, + 0.8888889f, + -0.444444448f, + 0.222222224f, + 0.8888889f, + -0.444444448f, + 0.444444448f, + 0.8888889f, + -0.444444448f, + 0.6666667f, + 0.8888889f, + -0.444444448f, + 0.8888889f, + 0.8888889f, + -0.444444448f, + -0.8888889f, + -0.8888889f, + -0.222222224f, + -0.6666667f, + -0.8888889f, + -0.222222224f, + -0.444444448f, + -0.8888889f, + -0.222222224f, + -0.222222224f, + -0.8888889f, + -0.222222224f, + 0f, + -0.8888889f, + -0.222222224f, + 0.222222224f, + -0.8888889f, + -0.222222224f, + 0.444444448f, + -0.8888889f, + -0.222222224f, + 0.6666667f, + -0.8888889f, + -0.222222224f, + 0.8888889f, + -0.8888889f, + -0.222222224f, + -0.8888889f, + -0.6666667f, + -0.222222224f, + -0.6666667f, + -0.6666667f, + -0.222222224f, + -0.444444448f, + -0.6666667f, + -0.222222224f, + -0.222222224f, + -0.6666667f, + -0.222222224f, + 0f, + -0.6666667f, + -0.222222224f, + 0.222222224f, + -0.6666667f, + -0.222222224f, + 0.444444448f, + -0.6666667f, + -0.222222224f, + 0.6666667f, + -0.6666667f, + -0.222222224f, + 0.8888889f, + -0.6666667f, + -0.222222224f, + -0.8888889f, + -0.444444448f, + -0.222222224f, + -0.6666667f, + -0.444444448f, + -0.222222224f, + -0.444444448f, + -0.444444448f, + -0.222222224f, + -0.222222224f, + -0.444444448f, + -0.222222224f, + 0f, + -0.444444448f, + -0.222222224f, + 0.222222224f, + -0.444444448f, + -0.222222224f, + 0.444444448f, + -0.444444448f, + -0.222222224f, + 0.6666667f, + -0.444444448f, + -0.222222224f, + 0.8888889f, + -0.444444448f, + -0.222222224f, + -0.8888889f, + -0.222222224f, + -0.222222224f, + -0.6666667f, + -0.222222224f, + -0.222222224f, + -0.444444448f, + -0.222222224f, + -0.222222224f, + -0.222222224f, + -0.222222224f, + -0.222222224f, + 0f, + -0.222222224f, + -0.222222224f, + 0.222222224f, + -0.222222224f, + -0.222222224f, + 0.444444448f, + -0.222222224f, + -0.222222224f, + 0.6666667f, + -0.222222224f, + -0.222222224f, + 0.8888889f, + -0.222222224f, + -0.222222224f, + -0.8888889f, + 0f, + -0.222222224f, + -0.6666667f, + 0f, + -0.222222224f, + -0.444444448f, + 0f, + -0.222222224f, + -0.222222224f, + 0f, + -0.222222224f, + 0f, + 0f, + -0.222222224f, + 0.222222224f, + 0f, + -0.222222224f, + 0.444444448f, + 0f, + -0.222222224f, + 0.6666667f, + 0f, + -0.222222224f, + 0.8888889f, + 0f, + -0.222222224f, + -0.8888889f, + 0.222222224f, + -0.222222224f, + -0.6666667f, + 0.222222224f, + -0.222222224f, + -0.444444448f, + 0.222222224f, + -0.222222224f, + -0.222222224f, + 0.222222224f, + -0.222222224f, + 0f, + 0.222222224f, + -0.222222224f, + 0.222222224f, + 0.222222224f, + -0.222222224f, + 0.444444448f, + 0.222222224f, + -0.222222224f, + 0.6666667f, + 0.222222224f, + -0.222222224f, + 0.8888889f, + 0.222222224f, + -0.222222224f, + -0.8888889f, + 0.444444448f, + -0.222222224f, + -0.6666667f, + 0.444444448f, + -0.222222224f, + -0.444444448f, + 0.444444448f, + -0.222222224f, + -0.222222224f, + 0.444444448f, + -0.222222224f, + 0f, + 0.444444448f, + -0.222222224f, + 0.222222224f, + 0.444444448f, + -0.222222224f, + 0.444444448f, + 0.444444448f, + -0.222222224f, + 0.6666667f, + 0.444444448f, + -0.222222224f, + 0.8888889f, + 0.444444448f, + -0.222222224f, + -0.8888889f, + 0.6666667f, + -0.222222224f, + -0.6666667f, + 0.6666667f, + -0.222222224f, + -0.444444448f, + 0.6666667f, + -0.222222224f, + -0.222222224f, + 0.6666667f, + -0.222222224f, + 0f, + 0.6666667f, + -0.222222224f, + 0.222222224f, + 0.6666667f, + -0.222222224f, + 0.444444448f, + 0.6666667f, + -0.222222224f, + 0.6666667f, + 0.6666667f, + -0.222222224f, + 0.8888889f, + 0.6666667f, + -0.222222224f, + -0.8888889f, + 0.8888889f, + -0.222222224f, + -0.6666667f, + 0.8888889f, + -0.222222224f, + -0.444444448f, + 0.8888889f, + -0.222222224f, + -0.222222224f, + 0.8888889f, + -0.222222224f, + 0f, + 0.8888889f, + -0.222222224f, + 0.222222224f, + 0.8888889f, + -0.222222224f, + 0.444444448f, + 0.8888889f, + -0.222222224f, + 0.6666667f, + 0.8888889f, + -0.222222224f, + 0.8888889f, + 0.8888889f, + -0.222222224f, + -0.8888889f, + -0.8888889f, + 0f, + -0.6666667f, + -0.8888889f, + 0f, + -0.444444448f, + -0.8888889f, + 0f, + -0.222222224f, + -0.8888889f, + 0f, + 0f, + -0.8888889f, + 0f, + 0.222222224f, + -0.8888889f, + 0f, + 0.444444448f, + -0.8888889f, + 0f, + 0.6666667f, + -0.8888889f, + 0f, + 0.8888889f, + -0.8888889f, + 0f, + -0.8888889f, + -0.6666667f, + 0f, + -0.6666667f, + -0.6666667f, + 0f, + -0.444444448f, + -0.6666667f, + 0f, + -0.222222224f, + -0.6666667f, + 0f, + 0f, + -0.6666667f, + 0f, + 0.222222224f, + -0.6666667f, + 0f, + 0.444444448f, + -0.6666667f, + 0f, + 0.6666667f, + -0.6666667f, + 0f, + 0.8888889f, + -0.6666667f, + 0f, + -0.8888889f, + -0.444444448f, + 0f, + -0.6666667f, + -0.444444448f, + 0f, + -0.444444448f, + -0.444444448f, + 0f, + -0.222222224f, + -0.444444448f, + 0f, + 0f, + -0.444444448f, + 0f, + 0.222222224f, + -0.444444448f, + 0f, + 0.444444448f, + -0.444444448f, + 0f, + 0.6666667f, + -0.444444448f, + 0f, + 0.8888889f, + -0.444444448f, + 0f, + -0.8888889f, + -0.222222224f, + 0f, + -0.6666667f, + -0.222222224f, + 0f, + -0.444444448f, + -0.222222224f, + 0f, + -0.222222224f, + -0.222222224f, + 0f, + 0f, + -0.222222224f, + 0f, + 0.222222224f, + -0.222222224f, + 0f, + 0.444444448f, + -0.222222224f, + 0f, + 0.6666667f, + -0.222222224f, + 0f, + 0.8888889f, + -0.222222224f, + 0f, + -0.8888889f, + 0f, + 0f, + -0.6666667f, + 0f, + 0f, + -0.444444448f, + 0f, + 0f, + -0.222222224f, + 0f, + 0f, + 0f, + 0f, + 0f, + 0.222222224f, + 0f, + 0f, + 0.444444448f, + 0f, + 0f, + 0.6666667f, + 0f, + 0f, + 0.8888889f, + 0f, + 0f, + -0.8888889f, + 0.222222224f, + 0f, + -0.6666667f, + 0.222222224f, + 0f, + -0.444444448f, + 0.222222224f, + 0f, + -0.222222224f, + 0.222222224f, + 0f, + 0f, + 0.222222224f, + 0f, + 0.222222224f, + 0.222222224f, + 0f, + 0.444444448f, + 0.222222224f, + 0f, + 0.6666667f, + 0.222222224f, + 0f, + 0.8888889f, + 0.222222224f, + 0f, + -0.8888889f, + 0.444444448f, + 0f, + -0.6666667f, + 0.444444448f, + 0f, + -0.444444448f, + 0.444444448f, + 0f, + -0.222222224f, + 0.444444448f, + 0f, + 0f, + 0.444444448f, + 0f, + 0.222222224f, + 0.444444448f, + 0f, + 0.444444448f, + 0.444444448f, + 0f, + 0.6666667f, + 0.444444448f, + 0f, + 0.8888889f, + 0.444444448f, + 0f, + -0.8888889f, + 0.6666667f, + 0f, + -0.6666667f, + 0.6666667f, + 0f, + -0.444444448f, + 0.6666667f, + 0f, + -0.222222224f, + 0.6666667f, + 0f, + 0f, + 0.6666667f, + 0f, + 0.222222224f, + 0.6666667f, + 0f, + 0.444444448f, + 0.6666667f, + 0f, + 0.6666667f, + 0.6666667f, + 0f, + 0.8888889f, + 0.6666667f, + 0f, + -0.8888889f, + 0.8888889f, + 0f, + -0.6666667f, + 0.8888889f, + 0f, + -0.444444448f, + 0.8888889f, + 0f, + -0.222222224f, + 0.8888889f, + 0f, + 0f, + 0.8888889f, + 0f, + 0.222222224f, + 0.8888889f, + 0f, + 0.444444448f, + 0.8888889f, + 0f, + 0.6666667f, + 0.8888889f, + 0f, + 0.8888889f, + 0.8888889f, + 0f, + -0.8888889f, + -0.8888889f, + 0.222222224f, + -0.6666667f, + -0.8888889f, + 0.222222224f, + -0.444444448f, + -0.8888889f, + 0.222222224f, + -0.222222224f, + -0.8888889f, + 0.222222224f, + 0f, + -0.8888889f, + 0.222222224f, + 0.222222224f, + -0.8888889f, + 0.222222224f, + 0.444444448f, + -0.8888889f, + 0.222222224f, + 0.6666667f, + -0.8888889f, + 0.222222224f, + 0.8888889f, + -0.8888889f, + 0.222222224f, + -0.8888889f, + -0.6666667f, + 0.222222224f, + -0.6666667f, + -0.6666667f, + 0.222222224f, + -0.444444448f, + -0.6666667f, + 0.222222224f, + -0.222222224f, + -0.6666667f, + 0.222222224f, + 0f, + -0.6666667f, + 0.222222224f, + 0.222222224f, + -0.6666667f, + 0.222222224f, + 0.444444448f, + -0.6666667f, + 0.222222224f, + 0.6666667f, + -0.6666667f, + 0.222222224f, + 0.8888889f, + -0.6666667f, + 0.222222224f, + -0.8888889f, + -0.444444448f, + 0.222222224f, + -0.6666667f, + -0.444444448f, + 0.222222224f, + -0.444444448f, + -0.444444448f, + 0.222222224f, + -0.222222224f, + -0.444444448f, + 0.222222224f, + 0f, + -0.444444448f, + 0.222222224f, + 0.222222224f, + -0.444444448f, + 0.222222224f, + 0.444444448f, + -0.444444448f, + 0.222222224f, + 0.6666667f, + -0.444444448f, + 0.222222224f, + 0.8888889f, + -0.444444448f, + 0.222222224f, + -0.8888889f, + -0.222222224f, + 0.222222224f, + -0.6666667f, + -0.222222224f, + 0.222222224f, + -0.444444448f, + -0.222222224f, + 0.222222224f, + -0.222222224f, + -0.222222224f, + 0.222222224f, + 0f, + -0.222222224f, + 0.222222224f, + 0.222222224f, + -0.222222224f, + 0.222222224f, + 0.444444448f, + -0.222222224f, + 0.222222224f, + 0.6666667f, + -0.222222224f, + 0.222222224f, + 0.8888889f, + -0.222222224f, + 0.222222224f, + -0.8888889f, + 0f, + 0.222222224f, + -0.6666667f, + 0f, + 0.222222224f, + -0.444444448f, + 0f, + 0.222222224f, + -0.222222224f, + 0f, + 0.222222224f, + 0f, + 0f, + 0.222222224f, + 0.222222224f, + 0f, + 0.222222224f, + 0.444444448f, + 0f, + 0.222222224f, + 0.6666667f, + 0f, + 0.222222224f, + 0.8888889f, + 0f, + 0.222222224f, + -0.8888889f, + 0.222222224f, + 0.222222224f, + -0.6666667f, + 0.222222224f, + 0.222222224f, + -0.444444448f, + 0.222222224f, + 0.222222224f, + -0.222222224f, + 0.222222224f, + 0.222222224f, + 0f, + 0.222222224f, + 0.222222224f, + 0.222222224f, + 0.222222224f, + 0.222222224f, + 0.444444448f, + 0.222222224f, + 0.222222224f, + 0.6666667f, + 0.222222224f, + 0.222222224f, + 0.8888889f, + 0.222222224f, + 0.222222224f, + -0.8888889f, + 0.444444448f, + 0.222222224f, + -0.6666667f, + 0.444444448f, + 0.222222224f, + -0.444444448f, + 0.444444448f, + 0.222222224f, + -0.222222224f, + 0.444444448f, + 0.222222224f, + 0f, + 0.444444448f, + 0.222222224f, + 0.222222224f, + 0.444444448f, + 0.222222224f, + 0.444444448f, + 0.444444448f, + 0.222222224f, + 0.6666667f, + 0.444444448f, + 0.222222224f, + 0.8888889f, + 0.444444448f, + 0.222222224f, + -0.8888889f, + 0.6666667f, + 0.222222224f, + -0.6666667f, + 0.6666667f, + 0.222222224f, + -0.444444448f, + 0.6666667f, + 0.222222224f, + -0.222222224f, + 0.6666667f, + 0.222222224f, + 0f, + 0.6666667f, + 0.222222224f, + 0.222222224f, + 0.6666667f, + 0.222222224f, + 0.444444448f, + 0.6666667f, + 0.222222224f, + 0.6666667f, + 0.6666667f, + 0.222222224f, + 0.8888889f, + 0.6666667f, + 0.222222224f, + -0.8888889f, + 0.8888889f, + 0.222222224f, + -0.6666667f, + 0.8888889f, + 0.222222224f, + -0.444444448f, + 0.8888889f, + 0.222222224f, + -0.222222224f, + 0.8888889f, + 0.222222224f, + 0f, + 0.8888889f, + 0.222222224f, + 0.222222224f, + 0.8888889f, + 0.222222224f, + 0.444444448f, + 0.8888889f, + 0.222222224f, + 0.6666667f, + 0.8888889f, + 0.222222224f, + 0.8888889f, + 0.8888889f, + 0.222222224f, + -0.8888889f, + -0.8888889f, + 0.444444448f, + -0.6666667f, + -0.8888889f, + 0.444444448f, + -0.444444448f, + -0.8888889f, + 0.444444448f, + -0.222222224f, + -0.8888889f, + 0.444444448f, + 0f, + -0.8888889f, + 0.444444448f, + 0.222222224f, + -0.8888889f, + 0.444444448f, + 0.444444448f, + -0.8888889f, + 0.444444448f, + 0.6666667f, + -0.8888889f, + 0.444444448f, + 0.8888889f, + -0.8888889f, + 0.444444448f, + -0.8888889f, + -0.6666667f, + 0.444444448f, + -0.6666667f, + -0.6666667f, + 0.444444448f, + -0.444444448f, + -0.6666667f, + 0.444444448f, + -0.222222224f, + -0.6666667f, + 0.444444448f, + 0f, + -0.6666667f, + 0.444444448f, + 0.222222224f, + -0.6666667f, + 0.444444448f, + 0.444444448f, + -0.6666667f, + 0.444444448f, + 0.6666667f, + -0.6666667f, + 0.444444448f, + 0.8888889f, + -0.6666667f, + 0.444444448f, + -0.8888889f, + -0.444444448f, + 0.444444448f, + -0.6666667f, + -0.444444448f, + 0.444444448f, + -0.444444448f, + -0.444444448f, + 0.444444448f, + -0.222222224f, + -0.444444448f, + 0.444444448f, + 0f, + -0.444444448f, + 0.444444448f, + 0.222222224f, + -0.444444448f, + 0.444444448f, + 0.444444448f, + -0.444444448f, + 0.444444448f, + 0.6666667f, + -0.444444448f, + 0.444444448f, + 0.8888889f, + -0.444444448f, + 0.444444448f, + -0.8888889f, + -0.222222224f, + 0.444444448f, + -0.6666667f, + -0.222222224f, + 0.444444448f, + -0.444444448f, + -0.222222224f, + 0.444444448f, + -0.222222224f, + -0.222222224f, + 0.444444448f, + 0f, + -0.222222224f, + 0.444444448f, + 0.222222224f, + -0.222222224f, + 0.444444448f, + 0.444444448f, + -0.222222224f, + 0.444444448f, + 0.6666667f, + -0.222222224f, + 0.444444448f, + 0.8888889f, + -0.222222224f, + 0.444444448f, + -0.8888889f, + 0f, + 0.444444448f, + -0.6666667f, + 0f, + 0.444444448f, + -0.444444448f, + 0f, + 0.444444448f, + -0.222222224f, + 0f, + 0.444444448f, + 0f, + 0f, + 0.444444448f, + 0.222222224f, + 0f, + 0.444444448f, + 0.444444448f, + 0f, + 0.444444448f, + 0.6666667f, + 0f, + 0.444444448f, + 0.8888889f, + 0f, + 0.444444448f, + -0.8888889f, + 0.222222224f, + 0.444444448f, + -0.6666667f, + 0.222222224f, + 0.444444448f, + -0.444444448f, + 0.222222224f, + 0.444444448f, + -0.222222224f, + 0.222222224f, + 0.444444448f, + 0f, + 0.222222224f, + 0.444444448f, + 0.222222224f, + 0.222222224f, + 0.444444448f, + 0.444444448f, + 0.222222224f, + 0.444444448f, + 0.6666667f, + 0.222222224f, + 0.444444448f, + 0.8888889f, + 0.222222224f, + 0.444444448f, + -0.8888889f, + 0.444444448f, + 0.444444448f, + -0.6666667f, + 0.444444448f, + 0.444444448f, + -0.444444448f, + 0.444444448f, + 0.444444448f, + -0.222222224f, + 0.444444448f, + 0.444444448f, + 0f, + 0.444444448f, + 0.444444448f, + 0.222222224f, + 0.444444448f, + 0.444444448f, + 0.444444448f, + 0.444444448f, + 0.444444448f, + 0.6666667f, + 0.444444448f, + 0.444444448f, + 0.8888889f, + 0.444444448f, + 0.444444448f, + -0.8888889f, + 0.6666667f, + 0.444444448f, + -0.6666667f, + 0.6666667f, + 0.444444448f, + -0.444444448f, + 0.6666667f, + 0.444444448f, + -0.222222224f, + 0.6666667f, + 0.444444448f, + 0f, + 0.6666667f, + 0.444444448f, + 0.222222224f, + 0.6666667f, + 0.444444448f, + 0.444444448f, + 0.6666667f, + 0.444444448f, + 0.6666667f, + 0.6666667f, + 0.444444448f, + 0.8888889f, + 0.6666667f, + 0.444444448f, + -0.8888889f, + 0.8888889f, + 0.444444448f, + -0.6666667f, + 0.8888889f, + 0.444444448f, + -0.444444448f, + 0.8888889f, + 0.444444448f, + -0.222222224f, + 0.8888889f, + 0.444444448f, + 0f, + 0.8888889f, + 0.444444448f, + 0.222222224f, + 0.8888889f, + 0.444444448f, + 0.444444448f, + 0.8888889f, + 0.444444448f, + 0.6666667f, + 0.8888889f, + 0.444444448f, + 0.8888889f, + 0.8888889f, + 0.444444448f, + -0.8888889f, + -0.8888889f, + 0.6666667f, + -0.6666667f, + -0.8888889f, + 0.6666667f, + -0.444444448f, + -0.8888889f, + 0.6666667f, + -0.222222224f, + -0.8888889f, + 0.6666667f, + 0f, + -0.8888889f, + 0.6666667f, + 0.222222224f, + -0.8888889f, + 0.6666667f, + 0.444444448f, + -0.8888889f, + 0.6666667f, + 0.6666667f, + -0.8888889f, + 0.6666667f, + 0.8888889f, + -0.8888889f, + 0.6666667f, + -0.8888889f, + -0.6666667f, + 0.6666667f, + -0.6666667f, + -0.6666667f, + 0.6666667f, + -0.444444448f, + -0.6666667f, + 0.6666667f, + -0.222222224f, + -0.6666667f, + 0.6666667f, + 0f, + -0.6666667f, + 0.6666667f, + 0.222222224f, + -0.6666667f, + 0.6666667f, + 0.444444448f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + 0.8888889f, + -0.6666667f, + 0.6666667f, + -0.8888889f, + -0.444444448f, + 0.6666667f, + -0.6666667f, + -0.444444448f, + 0.6666667f, + -0.444444448f, + -0.444444448f, + 0.6666667f, + -0.222222224f, + -0.444444448f, + 0.6666667f, + 0f, + -0.444444448f, + 0.6666667f, + 0.222222224f, + -0.444444448f, + 0.6666667f, + 0.444444448f, + -0.444444448f, + 0.6666667f, + 0.6666667f, + -0.444444448f, + 0.6666667f, + 0.8888889f, + -0.444444448f, + 0.6666667f, + -0.8888889f, + -0.222222224f, + 0.6666667f, + -0.6666667f, + -0.222222224f, + 0.6666667f, + -0.444444448f, + -0.222222224f, + 0.6666667f, + -0.222222224f, + -0.222222224f, + 0.6666667f, + 0f, + -0.222222224f, + 0.6666667f, + 0.222222224f, + -0.222222224f, + 0.6666667f, + 0.444444448f, + -0.222222224f, + 0.6666667f, + 0.6666667f, + -0.222222224f, + 0.6666667f, + 0.8888889f, + -0.222222224f, + 0.6666667f, + -0.8888889f, + 0f, + 0.6666667f, + -0.6666667f, + 0f, + 0.6666667f, + -0.444444448f, + 0f, + 0.6666667f, + -0.222222224f, + 0f, + 0.6666667f, + 0f, + 0f, + 0.6666667f, + 0.222222224f, + 0f, + 0.6666667f, + 0.444444448f, + 0f, + 0.6666667f, + 0.6666667f, + 0f, + 0.6666667f, + 0.8888889f, + 0f, + 0.6666667f, + -0.8888889f, + 0.222222224f, + 0.6666667f, + -0.6666667f, + 0.222222224f, + 0.6666667f, + -0.444444448f, + 0.222222224f, + 0.6666667f, + -0.222222224f, + 0.222222224f, + 0.6666667f, + 0f, + 0.222222224f, + 0.6666667f, + 0.222222224f, + 0.222222224f, + 0.6666667f, + 0.444444448f, + 0.222222224f, + 0.6666667f, + 0.6666667f, + 0.222222224f, + 0.6666667f, + 0.8888889f, + 0.222222224f, + 0.6666667f, + -0.8888889f, + 0.444444448f, + 0.6666667f, + -0.6666667f, + 0.444444448f, + 0.6666667f, + -0.444444448f, + 0.444444448f, + 0.6666667f, + -0.222222224f, + 0.444444448f, + 0.6666667f, + 0f, + 0.444444448f, + 0.6666667f, + 0.222222224f, + 0.444444448f, + 0.6666667f, + 0.444444448f, + 0.444444448f, + 0.6666667f, + 0.6666667f, + 0.444444448f, + 0.6666667f, + 0.8888889f, + 0.444444448f, + 0.6666667f, + -0.8888889f, + 0.6666667f, + 0.6666667f, + -0.6666667f, + 0.6666667f, + 0.6666667f, + -0.444444448f, + 0.6666667f, + 0.6666667f, + -0.222222224f, + 0.6666667f, + 0.6666667f, + 0f, + 0.6666667f, + 0.6666667f, + 0.222222224f, + 0.6666667f, + 0.6666667f, + 0.444444448f, + 0.6666667f, + 0.6666667f, + 0.6666667f, + 0.6666667f, + 0.6666667f, + 0.8888889f, + 0.6666667f, + 0.6666667f, + -0.8888889f, + 0.8888889f, + 0.6666667f, + -0.6666667f, + 0.8888889f, + 0.6666667f, + -0.444444448f, + 0.8888889f, + 0.6666667f, + -0.222222224f, + 0.8888889f, + 0.6666667f, + 0f, + 0.8888889f, + 0.6666667f, + 0.222222224f, + 0.8888889f, + 0.6666667f, + 0.444444448f, + 0.8888889f, + 0.6666667f, + 0.6666667f, + 0.8888889f, + 0.6666667f, + 0.8888889f, + 0.8888889f, + 0.6666667f, + -0.8888889f, + -0.8888889f, + 0.8888889f, + -0.6666667f, + -0.8888889f, + 0.8888889f, + -0.444444448f, + -0.8888889f, + 0.8888889f, + -0.222222224f, + -0.8888889f, + 0.8888889f, + 0f, + -0.8888889f, + 0.8888889f, + 0.222222224f, + -0.8888889f, + 0.8888889f, + 0.444444448f, + -0.8888889f, + 0.8888889f, + 0.6666667f, + -0.8888889f, + 0.8888889f, + 0.8888889f, + -0.8888889f, + 0.8888889f, + -0.8888889f, + -0.6666667f, + 0.8888889f, + -0.6666667f, + -0.6666667f, + 0.8888889f, + -0.444444448f, + -0.6666667f, + 0.8888889f, + -0.222222224f, + -0.6666667f, + 0.8888889f, + 0f, + -0.6666667f, + 0.8888889f, + 0.222222224f, + -0.6666667f, + 0.8888889f, + 0.444444448f, + -0.6666667f, + 0.8888889f, + 0.6666667f, + -0.6666667f, + 0.8888889f, + 0.8888889f, + -0.6666667f, + 0.8888889f, + -0.8888889f, + -0.444444448f, + 0.8888889f, + -0.6666667f, + -0.444444448f, + 0.8888889f, + -0.444444448f, + -0.444444448f, + 0.8888889f, + -0.222222224f, + -0.444444448f, + 0.8888889f, + 0f, + -0.444444448f, + 0.8888889f, + 0.222222224f, + -0.444444448f, + 0.8888889f, + 0.444444448f, + -0.444444448f, + 0.8888889f, + 0.6666667f, + -0.444444448f, + 0.8888889f, + 0.8888889f, + -0.444444448f, + 0.8888889f, + -0.8888889f, + -0.222222224f, + 0.8888889f, + -0.6666667f, + -0.222222224f, + 0.8888889f, + -0.444444448f, + -0.222222224f, + 0.8888889f, + -0.222222224f, + -0.222222224f, + 0.8888889f, + 0f, + -0.222222224f, + 0.8888889f, + 0.222222224f, + -0.222222224f, + 0.8888889f, + 0.444444448f, + -0.222222224f, + 0.8888889f, + 0.6666667f, + -0.222222224f, + 0.8888889f, + 0.8888889f, + -0.222222224f, + 0.8888889f, + -0.8888889f, + 0f, + 0.8888889f, + -0.6666667f, + 0f, + 0.8888889f, + -0.444444448f, + 0f, + 0.8888889f, + -0.222222224f, + 0f, + 0.8888889f, + 0f, + 0f, + 0.8888889f, + 0.222222224f, + 0f, + 0.8888889f, + 0.444444448f, + 0f, + 0.8888889f, + 0.6666667f, + 0f, + 0.8888889f, + 0.8888889f, + 0f, + 0.8888889f, + -0.8888889f, + 0.222222224f, + 0.8888889f, + -0.6666667f, + 0.222222224f, + 0.8888889f, + -0.444444448f, + 0.222222224f, + 0.8888889f, + -0.222222224f, + 0.222222224f, + 0.8888889f, + 0f, + 0.222222224f, + 0.8888889f, + 0.222222224f, + 0.222222224f, + 0.8888889f, + 0.444444448f, + 0.222222224f, + 0.8888889f, + 0.6666667f, + 0.222222224f, + 0.8888889f, + 0.8888889f, + 0.222222224f, + 0.8888889f, + -0.8888889f, + 0.444444448f, + 0.8888889f, + -0.6666667f, + 0.444444448f, + 0.8888889f, + -0.444444448f, + 0.444444448f, + 0.8888889f, + -0.222222224f, + 0.444444448f, + 0.8888889f, + 0f, + 0.444444448f, + 0.8888889f, + 0.222222224f, + 0.444444448f, + 0.8888889f, + 0.444444448f, + 0.444444448f, + 0.8888889f, + 0.6666667f, + 0.444444448f, + 0.8888889f, + 0.8888889f, + 0.444444448f, + 0.8888889f, + -0.8888889f, + 0.6666667f, + 0.8888889f, + -0.6666667f, + 0.6666667f, + 0.8888889f, + -0.444444448f, + 0.6666667f, + 0.8888889f, + -0.222222224f, + 0.6666667f, + 0.8888889f, + 0f, + 0.6666667f, + 0.8888889f, + 0.222222224f, + 0.6666667f, + 0.8888889f, + 0.444444448f, + 0.6666667f, + 0.8888889f, + 0.6666667f, + 0.6666667f, + 0.8888889f, + 0.8888889f, + 0.6666667f, + 0.8888889f, + -0.8888889f, + 0.8888889f, + 0.8888889f, + -0.6666667f, + 0.8888889f, + 0.8888889f, + -0.444444448f, + 0.8888889f, + 0.8888889f, + -0.222222224f, + 0.8888889f, + 0.8888889f, + 0f, + 0.8888889f, + 0.8888889f, + 0.222222224f, + 0.8888889f, + 0.8888889f, + 0.444444448f, + 0.8888889f, + 0.8888889f, + 0.6666667f, + 0.8888889f, + 0.8888889f, + 0.8888889f, + 0.8888889f, + 0.8888889f + }; + Int0 = new[] + { + 0, + 5, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16 + }; + Float5 = new[] + { + 0f, + 0.5f, + 0.25f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 0.000122070313f, + 6.10351563E-05f, + 3.05175781E-05f + }; + Float6 = new[] + { + 0f, + 1.33333337f, + 1.14285719f, + 1.06666672f, + 1.032258f, + 1.01587307f, + 1.007874f, + 1.00392163f, + 1.00195694f, + 1.00097752f, + 1.00048852f, + 1.00024426f, + 1.00012207f, + 1.000061f, + 1.00003052f, + 1.00001526f + }; + Float7 = new[] + { + 0f, + 0.5f, + 0.25f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 0.000122070313f, + 6.103516E-05f, + 3.051758E-05f + }; + Int1 = new[] + { + 0, + 5, + 7, + 3, + 10, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 16 + }; + Float9 = new[] + { + 0f, + 0.5f, + 0.25f, + 0.25f, + 0.125f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 3.05175781E-05f + }; + Float10 = new[] + { + 0f, + 1.33333337f, + 1.6f, + 1.14285719f, + 1.77777779f, + 1.06666672f, + 1.032258f, + 1.01587307f, + 1.007874f, + 1.00392163f, + 1.00195694f, + 1.00097752f, + 1.00048852f, + 1.00024426f, + 1.00012207f, + 1.00001526f + }; + Float11 = new[] + { + 0f, + 0.5f, + 0.5f, + 0.25f, + 0.5f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 3.051758E-05f + }; + Int2 = new[] + { + 0, + 5, + 7, + 3, + 10, + 4, + 5, + 16 + }; + Float12 = new[] + { + 0f, + 0.5f, + 0.25f, + 0.25f, + 0.125f, + 0.125f, + 0.0625f, + 3.05175781E-05f + }; + Float13 = new[] + { + 0f, + 1.33333337f, + 1.6f, + 1.14285719f, + 1.77777779f, + 1.06666672f, + 1.032258f, + 1.00001526f + }; + Float14 = new[] + { + 0f, + 0.5f, + 0.5f, + 0.25f, + 0.5f, + 0.125f, + 0.0625f, + 3.051758E-05f + }; + Int3 = new[] + { + 0, + 5, + 7, + 16 + }; + Float15 = new[] + { + 0f, + 0.5f, + 0.25f, + 3.05175781E-05f + }; + Float16 = new[] + { + 0f, + 1.33333337f, + 1.6f, + 1.00001526f + }; + Float17 = new[] + { + 0f, + 0.5f, + 0.5f, + 3.051758E-05f + }; + Int4 = new[] + { + 0, + 5, + 7, + 10, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15 + }; + Float19 = new[] + { + 0f, + 0.5f, + 0.25f, + 0.125f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 0.000122070313f, + 6.10351563E-05f + }; + Float20 = new[] + { + 0f, + 1.33333337f, + 1.6f, + 1.77777779f, + 1.06666672f, + 1.032258f, + 1.01587307f, + 1.007874f, + 1.00392163f, + 1.00195694f, + 1.00097752f, + 1.00048852f, + 1.00024426f, + 1.00012207f, + 1.000061f, + 1.00003052f + }; + Float21 = new[] + { + 0f, + 0.5f, + 0.5f, + 0.5f, + 0.125f, + 0.0625f, + 0.03125f, + 0.015625f, + 0.0078125f, + 0.00390625f, + 0.001953125f, + 0.0009765625f, + 0.00048828125f, + 0.000244140625f, + 0.000122070313f, + 6.103516E-05f + }; + var array = new float[16][]; + array[1] = Float1; + Float4 = array; + var array2 = new float[16][]; + array2[1] = Float1; + array2[2] = Float2; + array2[4] = Float3; + Float8 = array2; + var array3 = new float[16][]; + array3[1] = Float1; + array3[2] = Float2; + array3[3] = Float3; + Float18 = array3; + } + } + + public class Class99 : Class98 + { + public int Int11; + + public float Float30; + + public float Float31; + + public float Float32; + + public Class99(int int12) : base(int12) + { + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + base.vmethod_0(class820, class1070, class1010); + } + + public override void vmethod_6(Class82 class820, Class101 class1010) + { + if (Int6 == 0) + { + return; + } + Int7 = class820.method_13(2); + Int11 = class820.method_13(2); + if (class1010 != null) + { + class1010.method_0(Int7, 2); + class1010.method_0(Int11, 2); + } + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + if (Int6 == 0) + { + return; + } + base.vmethod_1(class820, class1070); + switch (Int11) + { + case 0: + Float30 = Float0[class820.method_13(6)]; + Float31 = Float0[class820.method_13(6)]; + Float32 = Float0[class820.method_13(6)]; + return; + case 1: + Float30 = (Float31 = Float0[class820.method_13(6)]); + Float32 = Float0[class820.method_13(6)]; + return; + case 2: + Float30 = (Float31 = (Float32 = Float0[class820.method_13(6)])); + return; + case 3: + Float30 = Float0[class820.method_13(6)]; + Float31 = (Float32 = Float0[class820.method_13(6)]); + return; + default: + return; + } + } + + public override bool vmethod_2(Class82 class820) + { + return base.vmethod_2(class820); + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + if (Int6 != 0) + { + var num = Float27[Int10]; + if (Float25[0] == null) + { + num = (num + Float29[0]) * Float28[0]; + } + if (enum40 == Enum4.Const0) + { + var num2 = num; + if (Int9 <= 4) + { + num *= Float22; + num2 *= Float30; + } + else if (Int9 <= 8) + { + num *= Float23; + num2 *= Float31; + } + else + { + num *= Float24; + num2 *= Float32; + } + class800.method_2(num, Int5); + class801.method_2(num2, Int5); + } + else if (enum40 == Enum4.Const1) + { + if (Int9 <= 4) + { + num *= Float22; + } + else if (Int9 <= 8) + { + num *= Float23; + } + else + { + num *= Float24; + } + class800.method_2(num, Int5); + } + else + { + if (Int9 <= 4) + { + num *= Float30; + } + else if (Int9 <= 8) + { + num *= Float31; + } + else + { + num *= Float32; + } + class800.method_2(num, Int5); + } + } + return ++Int10 == 3; + } + } + + public class Class100 : Class98 + { + public int Int11; + + public int Int12; + + public float Float30; + + public float Float31; + + public float Float32; + + public int[] Int13; + + public float[] Float33; + + public float[] Float34; + + public float[] Float35; + + public float[] Float36; + + public Class100(int int14) : base(int14) + { + var array = new int[1]; + Int13 = array; + var array2 = new float[1]; + Float33 = array2; + var array3 = new float[1]; + Float35 = array3; + var array4 = new float[1]; + Float36 = array4; + //base..ctor(int_14); + Float34 = new float[3]; + } + + public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010) + { + var num = vmethod_4(class1070); + Int6 = class820.method_13(num); + Int11 = class820.method_13(num); + if (class1010 != null) + { + class1010.method_0(Int6, num); + class1010.method_0(Int11, num); + } + } + + public override void vmethod_6(Class82 class820, Class101 class1010) + { + if (Int6 != 0) + { + Int7 = class820.method_13(2); + if (class1010 != null) + { + class1010.method_0(Int7, 2); + } + } + if (Int11 != 0) + { + Int12 = class820.method_13(2); + if (class1010 != null) + { + class1010.method_0(Int12, 2); + } + } + } + + public override void vmethod_1(Class82 class820, ZzSoundClass class1070) + { + base.vmethod_1(class820, class1070); + if (Int11 != 0) + { + switch (Int12) + { + case 0: + Float30 = Float0[class820.method_13(6)]; + Float31 = Float0[class820.method_13(6)]; + Float32 = Float0[class820.method_13(6)]; + break; + case 1: + Float30 = (Float31 = Float0[class820.method_13(6)]); + Float32 = Float0[class820.method_13(6)]; + break; + case 2: + Float30 = (Float31 = (Float32 = Float0[class820.method_13(6)])); + break; + case 3: + Float30 = Float0[class820.method_13(6)]; + Float31 = (Float32 = Float0[class820.method_13(6)]); + break; + } + vmethod_5(class1070, Int11, 1, Float33, Int13, Float35, Float36); + } + } + + public override bool vmethod_2(Class82 class820) + { + var result = base.vmethod_2(class820); + if (Int11 != 0) + { + if (Float25[1] != null) + { + var num = class820.method_13(Int13[0]); + num += num << 1; + var array = Float34; + var array2 = Float25[1]; + var num2 = num; + array[0] = array2[num2++]; + array[1] = array2[num2++]; + array[2] = array2[num2]; + } + else + { + Float34[0] = class820.method_13(Int13[0]) * Float33[0] - 1f; + Float34[1] = class820.method_13(Int13[0]) * Float33[0] - 1f; + Float34[2] = class820.method_13(Int13[0]) * Float33[0] - 1f; + } + } + return result; + } + + public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) + { + var result = base.vmethod_3(enum40, class800, class801); + if (Int11 != 0 && enum40 != Enum4.Const1) + { + var num = Float34[Int10 - 1]; + if (Float25[1] == null) + { + num = (num + Float36[0]) * Float35[0]; + } + if (Int9 <= 4) + { + num *= Float30; + } + else if (Int9 <= 8) + { + num *= Float31; + } + else + { + num *= Float32; + } + if (enum40 == Enum4.Const0) + { + class801.method_2(num, Int5); + } + else + { + class800.method_2(num, Int5); + } + } + return result; + } + } + + public override void vmethod_1() + { + switch (Enum50) + { + case Enum5.Const1: + { + int i; + for (i = 0; i < Class1070.method_26(); i++) + { + Class940[i] = new Class100(i); + } + while (i < Int0) + { + Class940[i] = new Class99(i); + i++; + } + return; + } + case Enum5.Const3: + for (var i = 0; i < Int0; i++) + { + Class940[i] = new Class98(i); + } + return; + } + for (var i = 0; i < Int0; i++) + { + Class940[i] = new Class100(i); + } + } + + public override void vmethod_3() + { + for (var i = 0; i < Int0; i++) + { + ((Class98) Class940[i]).vmethod_6(Class820, Class1010); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/Enum3.cs b/GHNamespaceI/Enum3.cs index 1116f5b..aa74e37 100644 --- a/GHNamespaceI/Enum3.cs +++ b/GHNamespaceI/Enum3.cs @@ -1,9 +1,9 @@ namespace GHNamespaceI { - public enum Enum3 - { - Const0, - Const1, - Const2 - } -} + public enum Enum3 + { + Const0, + Const1, + Const2 + } +} \ No newline at end of file diff --git a/GHNamespaceI/Enum4.cs b/GHNamespaceI/Enum4.cs index a655582..a78c889 100644 --- a/GHNamespaceI/Enum4.cs +++ b/GHNamespaceI/Enum4.cs @@ -1,10 +1,10 @@ namespace GHNamespaceI { - public enum Enum4 - { - Const0, - Const1, - Const2, - Const3 - } -} + public enum Enum4 + { + Const0, + Const1, + Const2, + Const3 + } +} \ No newline at end of file diff --git a/GHNamespaceI/Enum5.cs b/GHNamespaceI/Enum5.cs index c0e9d14..2f93351 100644 --- a/GHNamespaceI/Enum5.cs +++ b/GHNamespaceI/Enum5.cs @@ -1,10 +1,10 @@ namespace GHNamespaceI { - public enum Enum5 - { - Const0, - Const1, - Const2, - Const3 - } -} + public enum Enum5 + { + Const0, + Const1, + Const2, + Const3 + } +} \ No newline at end of file diff --git a/GHNamespaceI/Interface7.cs b/GHNamespaceI/Interface7.cs index 259a096..8cc51be 100644 --- a/GHNamespaceI/Interface7.cs +++ b/GHNamespaceI/Interface7.cs @@ -1,7 +1,7 @@ namespace GHNamespaceI { - public interface INterface7 - { - void imethod_0(); - } -} + public interface INterface7 + { + void imethod_0(); + } +} \ No newline at end of file diff --git a/GHNamespaceI/MP3Class.cs b/GHNamespaceI/MP3Class.cs index d690721..6593d69 100644 --- a/GHNamespaceI/MP3Class.cs +++ b/GHNamespaceI/MP3Class.cs @@ -8,340 +8,335 @@ namespace GHNamespaceI { - public class Mp3Class : GenericAudioStream - { - private readonly int _int2; + public class Mp3Class : GenericAudioStream + { + private readonly int _int2; - private readonly double _double0; + private readonly double _double0; - private readonly long _long0; + private readonly long _long0; - private long _long1; + private long _long1; - private ZzSoundClass _class1070; + private ZzSoundClass _class1070; - private readonly ZzSoundClass81[] _class810; + private readonly ZzSoundClass81[] _class810; - private readonly Class82 _class820; + private readonly Class82 _class820; - private int _int3 = -1; + private int _int3 = -1; - private readonly int _int4 = -1; + private readonly int _int4 = -1; - private readonly short _short0 = -1; + private readonly short _short0 = -1; - private readonly object _object0 = new object(); + private readonly object _object0 = new object(); - public override bool CanRead => FileStream.CanRead; + public override bool CanRead => FileStream.CanRead; - public override bool CanSeek => FileStream.CanSeek; + public override bool CanSeek => FileStream.CanSeek; - public override bool CanWrite => FileStream.CanWrite; + public override bool CanWrite => FileStream.CanWrite; - public override long Length => _long0; + public override long Length => _long0; - public override long Position - { - get - { - return _long1; - } - set - { - lock (_object0) - { - _long1 = value; - FileStream.Position = _int2; - _class820.method_6(); - _class820.method_7(); - for (var i = 0; i < _class810.Length; i++) - { - _class810[i].method_0().method_6(); - } - if (_long1 != 0L) - { - var num = (long)(value / _double0 + _int2); - var @class = _class820.method_3(); - while (FileStream.Position + @class.Int12 * _class810.Length < num) - { - for (var j = 0; j < _class810.Length; j++) - { - _class820.method_7(); - @class = _class820.method_3(); - if (@class == null) - { - return; - } - } - } - try - { - _int3 = @class.method_21(); - _class810[0].method_5(@class, _class820); - } - finally - { - _class820.method_7(); - } - for (var k = 1; k < _class810.Length; k++) - { - if (!method_1(k)) - { - break; - } - } - } - } - } - } + public override long Position + { + get { return _long1; } + set + { + lock (_object0) + { + _long1 = value; + FileStream.Position = _int2; + _class820.method_6(); + _class820.method_7(); + for (var i = 0; i < _class810.Length; i++) + { + _class810[i].method_0().method_6(); + } + if (_long1 != 0L) + { + var num = (long) (value / _double0 + _int2); + var @class = _class820.method_3(); + while (FileStream.Position + @class.Int12 * _class810.Length < num) + { + for (var j = 0; j < _class810.Length; j++) + { + _class820.method_7(); + @class = _class820.method_3(); + if (@class == null) + { + return; + } + } + } + try + { + _int3 = @class.method_21(); + _class810[0].method_5(@class, _class820); + } + finally + { + _class820.method_7(); + } + for (var k = 1; k < _class810.Length; k++) + { + if (!method_1(k)) + { + break; + } + } + } + } + } + } - public Mp3Class(Stream stream1, int int5, Enum4 enum40) : this(stream1, int5, enum40, 4096) - { - } + public Mp3Class(Stream stream1, int int5, Enum4 enum40) : this(stream1, int5, enum40, 4096) + { + } - public Mp3Class(Stream stream1, int int5, Enum4 enum40, int int6) - { - _class810 = new ZzSoundClass81[int5]; - for (var i = 0; i < _class810.Length; i++) - { - _class810[i] = new ZzSoundClass81(new Class104(enum40)); - } - FileStream = stream1; - _class820 = new Class82(FileStream, int6); - _int2 = _class820.method_2(); - _long0 = -1L; - _class1070 = null; - if (!method_0()) - { - throw new Mp3Exception("Mp3 Decoder: Cannot read header."); - } - _short0 = 0; - for (var j = 0; j < _class810.Length; j++) - { - _short0 += (short)_class810[j].method_2(); - } - _int4 = _class810[0].method_1(); - WaveFormat0 = new WaveFormat(_int4, _short0); - _double0 = WaveFormat0.int_0 * (WaveFormat0.short_1 / _class810.Length) / (_int3 / 8.0); - _long1 = 0L; - if (_class1070 != null && _class1070.method_10()) - { - _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2) / _class810.Length) * (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); - } - if (_long0 <= 0L) - { - _long0 = (long)((FileStream.Length - _int2) * _double0); - } - } + public Mp3Class(Stream stream1, int int5, Enum4 enum40, int int6) + { + _class810 = new ZzSoundClass81[int5]; + for (var i = 0; i < _class810.Length; i++) + { + _class810[i] = new ZzSoundClass81(new Class104(enum40)); + } + FileStream = stream1; + _class820 = new Class82(FileStream, int6); + _int2 = _class820.method_2(); + _long0 = -1L; + _class1070 = null; + if (!method_0()) + { + throw new Mp3Exception("Mp3 Decoder: Cannot read header."); + } + _short0 = 0; + for (var j = 0; j < _class810.Length; j++) + { + _short0 += (short) _class810[j].method_2(); + } + _int4 = _class810[0].method_1(); + WaveFormat0 = new WaveFormat(_int4, _short0); + _double0 = WaveFormat0.int_0 * (WaveFormat0.short_1 / _class810.Length) / (_int3 / 8.0); + _long1 = 0L; + if (_class1070 != null && _class1070.method_10()) + { + _long0 = Convert.ToInt64(_class1070.method_18((int) (FileStream.Length - _int2) / _class810.Length) * + (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); + } + if (_long0 <= 0L) + { + _long0 = (long) ((FileStream.Length - _int2) * _double0); + } + } - public override void Flush() - { - FileStream.Flush(); - } + public override void Flush() + { + FileStream.Flush(); + } - public override void SetLength(long value) - { - throw new NotSupportedException(); - } + public override void SetLength(long value) + { + throw new NotSupportedException(); + } - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException(); - } + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException(); + } - public override void Close() - { - _class820.method_1(); - FileStream.Close(); - } + public override void Close() + { + _class820.method_1(); + FileStream.Close(); + } - public override int vmethod_3(IntPtr intptr0, int int5) - { - int5 >>= 2; - var array = new float[int5]; - var num = vmethod_4(array, 0, int5); - Marshal.Copy(array, 0, intptr0, num); - return num << 2; - } + public override int vmethod_3(IntPtr intptr0, int int5) + { + int5 >>= 2; + var array = new float[int5]; + var num = vmethod_4(array, 0, int5); + Marshal.Copy(array, 0, intptr0, num); + return num << 2; + } - public override int Read(byte[] buffer, int offset, int count) - { - if (_class810.Length == 1) - { - int result; - lock (_object0) - { - var num = 0; - do - { - if (_class810[0].method_0().method_0() <= 0) - { - if (!method_1(0)) - { - break; - } - } - num += _class810[0].method_0().method_2(buffer, offset + num, count - num); - } - while (num < count); - _long1 += num; - result = num; - } - return result; - } - count >>= 2; - var array = new float[count]; - var num2 = vmethod_4(array, 0, count); - Buffer.BlockCopy(array, 0, buffer, offset, num2); - return num2 << 2; - } + public override int Read(byte[] buffer, int offset, int count) + { + if (_class810.Length == 1) + { + int result; + lock (_object0) + { + var num = 0; + do + { + if (_class810[0].method_0().method_0() <= 0) + { + if (!method_1(0)) + { + break; + } + } + num += _class810[0].method_0().method_2(buffer, offset + num, count - num); + } while (num < count); + _long1 += num; + result = num; + } + return result; + } + count >>= 2; + var array = new float[count]; + var num2 = vmethod_4(array, 0, count); + Buffer.BlockCopy(array, 0, buffer, offset, num2); + return num2 << 2; + } - public override int vmethod_4(float[] float0, int int5, int int6) - { - if (_class810.Length == 1) - { - int result; - lock (_object0) - { - var num = 0; - do - { - if (_class810[0].method_0().method_0() <= 0) - { - if (!method_1(0)) - { - break; - } - } - num += _class810[0].method_0().method_1(float0, int5 + num, int6 - num); - } - while (num < int6); - _long1 += (long)num << 2; - result = num; - } - return result; - } - var array = vmethod_5(int6 / WaveFormat0.short_0); - if (array == null) - { - return 0; - } - var num2 = 0; - var array2 = array; - for (var i = 0; i < array2.Length; i++) - { - var array3 = array2[i]; - num2 = Math.Max(array3.Length, num2); - } - num2 *= WaveFormat0.short_0; - var num3 = array.Length; - for (var j = 0; j < num3; j++) - { - var array4 = array[j]; - var k = 0; - var num4 = int5 + j; - while (k < array4.Length) - { - float0[num4] = array4[k]; - k++; - num4 += num3; - } - } - return num2; - } + public override int vmethod_4(float[] float0, int int5, int int6) + { + if (_class810.Length == 1) + { + int result; + lock (_object0) + { + var num = 0; + do + { + if (_class810[0].method_0().method_0() <= 0) + { + if (!method_1(0)) + { + break; + } + } + num += _class810[0].method_0().method_1(float0, int5 + num, int6 - num); + } while (num < int6); + _long1 += (long) num << 2; + result = num; + } + return result; + } + var array = vmethod_5(int6 / WaveFormat0.short_0); + if (array == null) + { + return 0; + } + var num2 = 0; + var array2 = array; + for (var i = 0; i < array2.Length; i++) + { + var array3 = array2[i]; + num2 = Math.Max(array3.Length, num2); + } + num2 *= WaveFormat0.short_0; + var num3 = array.Length; + for (var j = 0; j < num3; j++) + { + var array4 = array[j]; + var k = 0; + var num4 = int5 + j; + while (k < array4.Length) + { + float0[num4] = array4[k]; + k++; + num4 += num3; + } + } + return num2; + } - public override float[][] vmethod_5(int int5) - { - float[][] result; - lock (_object0) - { - int num = vmethod_0().short_0; - var array = new float[num][]; - for (var i = 0; i < num; i++) - { - array[i] = new float[int5]; - } - int5 *= num; - var num2 = 0; - do - { - if (_class810[0].method_0().method_0() <= 0) - { - if (!method_0()) - { - break; - } - } - var num3 = 0; - var int6 = num2 / _class810.Length; - var int7 = (int5 - num2) / _class810.Length; - for (var j = 0; j < _class810.Length; j++) - { - var array2 = new float[_class810[j].method_2()][]; - var k = 0; - while (k < array2.Length) - { - array2[k] = array[num3]; - k++; - num3++; - } - num2 += _class810[j].method_0().method_3(array2, int6, int7); - } - } - while (num2 < int5); - _long1 += (long)num2 << 2; - result = array; - } - return result; - } + public override float[][] vmethod_5(int int5) + { + float[][] result; + lock (_object0) + { + int num = vmethod_0().short_0; + var array = new float[num][]; + for (var i = 0; i < num; i++) + { + array[i] = new float[int5]; + } + int5 *= num; + var num2 = 0; + do + { + if (_class810[0].method_0().method_0() <= 0) + { + if (!method_0()) + { + break; + } + } + var num3 = 0; + var int6 = num2 / _class810.Length; + var int7 = (int5 - num2) / _class810.Length; + for (var j = 0; j < _class810.Length; j++) + { + var array2 = new float[_class810[j].method_2()][]; + var k = 0; + while (k < array2.Length) + { + array2[k] = array[num3]; + k++; + num3++; + } + num2 += _class810[j].method_0().method_3(array2, int6, int7); + } + } while (num2 < int5); + _long1 += (long) num2 << 2; + result = array; + } + return result; + } - public bool method_0() - { - for (var i = 0; i < _class810.Length; i++) - { - if (!method_1(i)) - { - return false; - } - } - return true; - } + public bool method_0() + { + for (var i = 0; i < _class810.Length; i++) + { + if (!method_1(i)) + { + return false; + } + } + return true; + } - public bool method_1(int int5) - { - var @class = _class820.method_3(); - if (@class == null) - { - return false; - } - if (_class1070 == null) - { - _class1070 = @class; - } - try - { - _int3 = @class.method_21(); - _class810[int5].method_5(@class, _class820); - } - finally - { - _class820.method_7(); - } - return true; - } + public bool method_1(int int5) + { + var @class = _class820.method_3(); + if (@class == null) + { + return false; + } + if (_class1070 == null) + { + _class1070 = @class; + } + try + { + _int3 = @class.method_21(); + _class810[int5].method_5(@class, _class820); + } + finally + { + _class820.method_7(); + } + return true; + } - protected override void Dispose(bool disposing) - { - if (disposing) - { - Close(); - } - } + protected override void Dispose(bool disposing) + { + if (disposing) + { + Close(); + } + } - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - } -} + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/MP3Stream.cs b/GHNamespaceI/MP3Stream.cs index 36a0010..7328d9b 100644 --- a/GHNamespaceI/MP3Stream.cs +++ b/GHNamespaceI/MP3Stream.cs @@ -8,258 +8,253 @@ namespace GHNamespaceI { - public class Mp3Stream : GenericAudioStream - { - private readonly int _int2; + public class Mp3Stream : GenericAudioStream + { + private readonly int _int2; - private readonly double _double0; + private readonly double _double0; - private readonly long _long0; + private readonly long _long0; - private long _long1; + private long _long1; - private ZzSoundClass _class1070; + private ZzSoundClass _class1070; - private readonly Class83 _class830; + private readonly Class83 _class830; - private readonly ZzSoundClass81 _class810; + private readonly ZzSoundClass81 _class810; - private readonly Class82 _class820; + private readonly Class82 _class820; - private int _int3 = -1; + private int _int3 = -1; - private readonly int _int4 = -1; + private readonly int _int4 = -1; - private readonly short _short0 = -1; + private readonly short _short0 = -1; - private readonly object _object0 = new object(); + private readonly object _object0 = new object(); - public override bool CanRead => FileStream.CanRead; + public override bool CanRead => FileStream.CanRead; - public override bool CanSeek => FileStream.CanSeek; + public override bool CanSeek => FileStream.CanSeek; - public override bool CanWrite => FileStream.CanWrite; + public override bool CanWrite => FileStream.CanWrite; - public override long Length => _long0; + public override long Length => _long0; - public override long Position - { - get - { - return _long1; - } - set - { - lock (_object0) - { - _long1 = value; - if (_long1 == 0L) - { - FileStream.Position = _int2; - } - else if (_class830 != null) - { - FileStream.Position = _int2 + _class830.method_0(value / (double)_long0); - } - else - { - FileStream.Position = (long)(value / _double0 + _int2); - } - _class820.method_6(); - _class820.method_7(); - _class810.method_0().method_6(); - } - } - } + public override long Position + { + get { return _long1; } + set + { + lock (_object0) + { + _long1 = value; + if (_long1 == 0L) + { + FileStream.Position = _int2; + } + else if (_class830 != null) + { + FileStream.Position = _int2 + _class830.method_0(value / (double) _long0); + } + else + { + FileStream.Position = (long) (value / _double0 + _int2); + } + _class820.method_6(); + _class820.method_7(); + _class810.method_0().method_6(); + } + } + } - public Mp3Stream(string string0) : this(File.OpenRead(string0)) - { - } + public Mp3Stream(string string0) : this(File.OpenRead(string0)) + { + } - public Mp3Stream(Stream stream1) : this(stream1, Enum4.Const0, 4096) - { - } + public Mp3Stream(Stream stream1) : this(stream1, Enum4.Const0, 4096) + { + } - public Mp3Stream(Stream stream1, Enum4 enum40) : this(stream1, enum40, 4096) - { - } + public Mp3Stream(Stream stream1, Enum4 enum40) : this(stream1, enum40, 4096) + { + } - public Mp3Stream(Stream stream1, Enum4 enum40, int int5) - { + public Mp3Stream(Stream stream1, Enum4 enum40, int int5) + { _class810 = new ZzSoundClass81(new Class104(enum40)); - FileStream = stream1; - _class820 = new Class82(FileStream, int5); - _int2 = _class820.method_2(); - _long0 = -1L; - _class1070 = null; - if (!method_0()) - { - throw new Mp3Exception("Mp3 Decoder: Cannot read header."); - } - _short0 = (short)_class810.method_2(); - _int4 = _class810.method_1(); - WaveFormat0 = new WaveFormat(_int4, _short0); - _double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int3 / 8.0); - _long1 = 0L; - if (_class1070 != null && _class1070.method_10()) - { - _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2)) * (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); - _class830 = _class1070.method_11(); - if (_class830 != null && _class830.Int2 == -1) - { - _class830.Int2 = (int)(FileStream.Length - _int2); - } - } - if (_long0 <= 0L) - { - _long0 = (long)((FileStream.Length - _int2) * _double0); - } - } - - public override void Flush() - { - FileStream.Flush(); - } - - public override void SetLength(long value) - { - throw new NotSupportedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException(); - } - - public override void Close() - { - _class820.method_1(); - FileStream.Close(); - } - - public override int vmethod_3(IntPtr intptr0, int int5) - { - int5 >>= 2; - var array = new float[int5]; - var num = vmethod_4(array, 0, int5); - Marshal.Copy(array, 0, intptr0, num); - return num << 2; - } - - public override int vmethod_4(float[] float0, int int5, int int6) - { - int result; - lock (_object0) - { - var num = 0; - do - { - if (_class810.method_0().method_0() <= 0) - { - if (!method_0()) - { - break; - } - } - num += _class810.method_0().method_1(float0, int5 + num, int6 - num); - } - while (num < int6); - _long1 += (long)num << 2; - result = num; - } - return result; - } - - public override float[][] vmethod_5(int int5) - { - float[][] result; - lock (_object0) - { - int num = vmethod_0().short_0; - var array = new float[num][]; - for (var i = 0; i < num; i++) - { - array[i] = new float[int5]; - } - int5 *= num; - var num2 = 0; - do - { - if (_class810.method_0().method_0() <= 0) - { - if (!method_0()) - { - break; - } - } - num2 += _class810.method_0().method_3(array, num2, int5 - num2); - } - while (num2 < int5); - _long1 += (long)num2 << 2; - result = array; - } - return result; - } - - public override int Read(byte[] buffer, int offset, int count) - { - int result; - lock (_object0) - { - var num = 0; - do - { - if (_class810.method_0().method_0() <= 0) - { - if (!method_0()) - { - break; - } - } - num += _class810.method_0().method_2(buffer, offset + num, count - num); - } - while (num < count); - _long1 += num; - result = num; - } - return result; - } - - public bool method_0() - { - var @class = _class820.method_3(); - if (@class == null) - { - return false; - } - if (_class1070 == null) - { - _class1070 = @class; - } - try - { - _int3 = @class.method_21(); - _class810.method_5(@class, _class820); - } - finally - { - _class820.method_7(); - } - return true; - } - - protected override void Dispose(bool disposing) - { - if (disposing) - { - Close(); - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - } -} + FileStream = stream1; + _class820 = new Class82(FileStream, int5); + _int2 = _class820.method_2(); + _long0 = -1L; + _class1070 = null; + if (!method_0()) + { + throw new Mp3Exception("Mp3 Decoder: Cannot read header."); + } + _short0 = (short) _class810.method_2(); + _int4 = _class810.method_1(); + WaveFormat0 = new WaveFormat(_int4, _short0); + _double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int3 / 8.0); + _long1 = 0L; + if (_class1070 != null && _class1070.method_10()) + { + _long0 = Convert.ToInt64(_class1070.method_18((int) (FileStream.Length - _int2)) * + (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); + _class830 = _class1070.method_11(); + if (_class830 != null && _class830.Int2 == -1) + { + _class830.Int2 = (int) (FileStream.Length - _int2); + } + } + if (_long0 <= 0L) + { + _long0 = (long) ((FileStream.Length - _int2) * _double0); + } + } + + public override void Flush() + { + FileStream.Flush(); + } + + public override void SetLength(long value) + { + throw new NotSupportedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException(); + } + + public override void Close() + { + _class820.method_1(); + FileStream.Close(); + } + + public override int vmethod_3(IntPtr intptr0, int int5) + { + int5 >>= 2; + var array = new float[int5]; + var num = vmethod_4(array, 0, int5); + Marshal.Copy(array, 0, intptr0, num); + return num << 2; + } + + public override int vmethod_4(float[] float0, int int5, int int6) + { + int result; + lock (_object0) + { + var num = 0; + do + { + if (_class810.method_0().method_0() <= 0) + { + if (!method_0()) + { + break; + } + } + num += _class810.method_0().method_1(float0, int5 + num, int6 - num); + } while (num < int6); + _long1 += (long) num << 2; + result = num; + } + return result; + } + + public override float[][] vmethod_5(int int5) + { + float[][] result; + lock (_object0) + { + int num = vmethod_0().short_0; + var array = new float[num][]; + for (var i = 0; i < num; i++) + { + array[i] = new float[int5]; + } + int5 *= num; + var num2 = 0; + do + { + if (_class810.method_0().method_0() <= 0) + { + if (!method_0()) + { + break; + } + } + num2 += _class810.method_0().method_3(array, num2, int5 - num2); + } while (num2 < int5); + _long1 += (long) num2 << 2; + result = array; + } + return result; + } + + public override int Read(byte[] buffer, int offset, int count) + { + int result; + lock (_object0) + { + var num = 0; + do + { + if (_class810.method_0().method_0() <= 0) + { + if (!method_0()) + { + break; + } + } + num += _class810.method_0().method_2(buffer, offset + num, count - num); + } while (num < count); + _long1 += num; + result = num; + } + return result; + } + + public bool method_0() + { + var @class = _class820.method_3(); + if (@class == null) + { + return false; + } + if (_class1070 == null) + { + _class1070 = @class; + } + try + { + _int3 = @class.method_21(); + _class810.method_5(@class, _class820); + } + finally + { + _class820.method_7(); + } + return true; + } + + protected override void Dispose(bool disposing) + { + if (disposing) + { + Close(); + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceI/zzSoundClass81.cs b/GHNamespaceI/zzSoundClass81.cs index 1eb62c5..48138ba 100644 --- a/GHNamespaceI/zzSoundClass81.cs +++ b/GHNamespaceI/zzSoundClass81.cs @@ -3,133 +3,136 @@ namespace GHNamespaceI { - public class ZzSoundClass81 - { - private static readonly Class104 Class1040 = new Class104(); - - private Class84 _class840; - - private Class80 _class800; - - private Class80 _class801; - - private Class85 _class850; - - private Class93 _class930; - - private Class92 _class920; - - private int _int0; - - private int _int1; - - private readonly Class105 _class1050 = new Class105(); - - private readonly Class104 _class1041; - - private bool _bool0; - - public Class84 method_0() - { - return _class840; - } - - public int method_1() - { - return _int0; - } - - public int method_2() - { - return _int1; - } - - public ZzSoundClass81() : this(null) - { - } - - public ZzSoundClass81(Class104 class1042) - { - if (class1042 == null) - { - class1042 = Class1040; - } - _class1041 = class1042; - var @class = _class1041.method_1(); - if (@class != null) - { - _class1050.method_2(@class); - } - } - - private void method_3(ZzSoundClass class1070) - { - var @enum = class1070.method_8(); - class1070.method_4(); - var num = (@enum == Enum5.Const3 || _class1041.method_0() != Enum4.Const0) ? 1 : 2; - if (_class840 == null) - { - _class840 = new Class84(num); - } - var float_ = _class1050.method_0(); - _class800 = new Class80(0, float_); - if (num == 2) - { - _class801 = new Class80(1, float_); - } - _int1 = num; - _int0 = class1070.method_7(); - _bool0 = true; - } - - private INterface7 method_4(ZzSoundClass class1070, Class82 class820, int int2) - { - INterface7 @interface = null; - switch (int2) - { - case 1: - if (_class920 == null) - { - _class920 = new Class92(); - _class920.vmethod_0(class820, class1070, _class800, _class801, _class840, _class1041.method_0()); - } - @interface = _class920; - break; - case 2: - if (_class930 == null) - { - _class930 = new Class93(); - _class930.vmethod_0(class820, class1070, _class800, _class801, _class840, _class1041.method_0()); - } - @interface = _class930; - break; - case 3: - if (_class850 == null) - { - _class850 = new Class85(class820, class1070, _class800, _class801, _class840, _class1041.method_0()); - } - @interface = _class850; - break; - } - if (@interface == null) - { - throw new DecoderException(DecoderError.UnsupportedLayer, null); - } - return @interface; - } - - public Class84 method_5(ZzSoundClass class1070, Class82 class820) - { - if (!_bool0) - { - method_3(class1070); - } - var int_ = class1070.method_4(); - _class840.method_6(); - var @interface = method_4(class1070, class820, int_); - @interface.imethod_0(); - _class840.method_5(); - return _class840; - } - } -} + public class ZzSoundClass81 + { + private static readonly Class104 Class1040 = new Class104(); + + private Class84 _class840; + + private Class80 _class800; + + private Class80 _class801; + + private Class85 _class850; + + private Class93 _class930; + + private Class92 _class920; + + private int _int0; + + private int _int1; + + private readonly Class105 _class1050 = new Class105(); + + private readonly Class104 _class1041; + + private bool _bool0; + + public Class84 method_0() + { + return _class840; + } + + public int method_1() + { + return _int0; + } + + public int method_2() + { + return _int1; + } + + public ZzSoundClass81() : this(null) + { + } + + public ZzSoundClass81(Class104 class1042) + { + if (class1042 == null) + { + class1042 = Class1040; + } + _class1041 = class1042; + var @class = _class1041.method_1(); + if (@class != null) + { + _class1050.method_2(@class); + } + } + + private void method_3(ZzSoundClass class1070) + { + var @enum = class1070.method_8(); + class1070.method_4(); + var num = (@enum == Enum5.Const3 || _class1041.method_0() != Enum4.Const0) ? 1 : 2; + if (_class840 == null) + { + _class840 = new Class84(num); + } + var float_ = _class1050.method_0(); + _class800 = new Class80(0, float_); + if (num == 2) + { + _class801 = new Class80(1, float_); + } + _int1 = num; + _int0 = class1070.method_7(); + _bool0 = true; + } + + private INterface7 method_4(ZzSoundClass class1070, Class82 class820, int int2) + { + INterface7 @interface = null; + switch (int2) + { + case 1: + if (_class920 == null) + { + _class920 = new Class92(); + _class920.vmethod_0(class820, class1070, _class800, _class801, _class840, + _class1041.method_0()); + } + @interface = _class920; + break; + case 2: + if (_class930 == null) + { + _class930 = new Class93(); + _class930.vmethod_0(class820, class1070, _class800, _class801, _class840, + _class1041.method_0()); + } + @interface = _class930; + break; + case 3: + if (_class850 == null) + { + _class850 = new Class85(class820, class1070, _class800, _class801, _class840, + _class1041.method_0()); + } + @interface = _class850; + break; + } + if (@interface == null) + { + throw new DecoderException(DecoderError.UnsupportedLayer, null); + } + return @interface; + } + + public Class84 method_5(ZzSoundClass class1070, Class82 class820) + { + if (!_bool0) + { + method_3(class1070); + } + var int_ = class1070.method_4(); + _class840.method_6(); + var @interface = method_4(class1070, class820, int_); + @interface.imethod_0(); + _class840.method_5(); + return _class840; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/AC3Class1.cs b/GHNamespaceJ/AC3Class1.cs index 6e26fd4..17d59fc 100644 --- a/GHNamespaceJ/AC3Class1.cs +++ b/GHNamespaceJ/AC3Class1.cs @@ -4,1559 +4,1555 @@ namespace GHNamespaceJ { - public class Ac3Class1 - { - public int Int0; + public class Ac3Class1 + { + public int Int0; - private static double _double0; + private static double _double0; - private static double _double1; + private static double _double1; - private static readonly double Double2; + private static readonly double Double2; - private static readonly double Double3; + private static readonly double Double3; - private static readonly double Double4; + private static readonly double Double4; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - private int _int5; + private int _int5; - private int _int6; + private int _int6; - private int _int7; + private int _int7; - private double _double5; + private double _double5; - private double _double6; + private double _double6; - private bool _bool0; + private bool _bool0; - private int _int8; + private int _int8; - private double _double7 = 200.0; + private double _double7 = 200.0; - public bool Bool1; + public bool Bool1; - private double _double8; + private double _double8; - private int _int9; + private int _int9; - private bool _bool2; + private bool _bool2; - private int _int10; + private int _int10; - private int _int11; + private int _int11; - private int _int12; + private int _int12; - private int _int13; + private int _int13; - private int _int14; + private int _int14; - private readonly double[][] _double9 = new double[5][]; + private readonly double[][] _double9 = new double[5][]; - private int _int15; + private int _int15; - private readonly int[] _int16 = new int[5]; + private readonly int[] _int16 = new int[5]; - private readonly byte[] _byte0 = new byte[256]; + private readonly byte[] _byte0 = new byte[256]; - private readonly byte[][] _byte1 = new byte[5][]; + private readonly byte[][] _byte1 = new byte[5][]; - private readonly byte[] _byte2 = new byte[256]; + private readonly byte[] _byte2 = new byte[256]; - private readonly byte[] _byte3 = new byte[256]; + private readonly byte[] _byte3 = new byte[256]; - private readonly byte[][] _byte4 = new byte[5][]; + private readonly byte[][] _byte4 = new byte[5][]; - private readonly byte[] _byte5 = new byte[256]; + private readonly byte[] _byte5 = new byte[256]; - private int _int17; + private int _int17; - private int _int18; + private int _int18; - private int _int19; + private int _int19; - private readonly int[] _int20 = new int[50]; + private readonly int[] _int20 = new int[50]; - private readonly int[] _int21 = new int[5]; + private readonly int[] _int21 = new int[5]; - private readonly int[] _int22 = new int[5]; + private readonly int[] _int22 = new int[5]; - private readonly int[][] _int23 = new int[5][]; + private readonly int[][] _int23 = new int[5][]; - private int _int24; + private int _int24; - private int _int25; + private int _int25; - private readonly int[] _int26 = new int[50]; + private readonly int[] _int26 = new int[50]; - private int _int27; + private int _int27; - private int _int28; + private int _int28; - private int _int29; + private int _int29; - private int _int30 = 1; + private int _int30 = 1; - private readonly Class113 _class1130 = new Class113(); + private readonly Class113 _class1130 = new Class113(); - private readonly double[] _double10 = new double[3584]; + private readonly double[] _double10 = new double[3584]; - private bool _bool3; + private bool _bool3; - public Class115 Class1150 = new Class115(); + public Class115 Class1150 = new Class115(); - public static readonly int[] Int31; + public static readonly int[] Int31; - public static readonly int[] Int32; + public static readonly int[] Int32; - public static readonly int[] Int33; + public static readonly int[] Int33; - public static readonly double[] Double11; + public static readonly double[] Double11; - public static readonly double[] Double12; + public static readonly double[] Double12; - public byte[] Byte6; + public byte[] Byte6; - public byte[] Byte7; + public byte[] Byte7; - public byte[] Byte8; + public byte[] Byte8; - public int[] Int34; + public int[] Int34; - public double[] Double13; + public double[] Double13; - public double[] Double14; + public double[] Double14; - public double[] Double15; + public double[] Double15; - public double[] Double16; + public double[] Double16; - public double[] Double17; + public double[] Double17; - public double[] Double18; + public double[] Double18; - public double[] Double19; + public double[] Double19; - public double[] Double20; + public double[] Double20; - public double[] Double21; + public double[] Double21; - public double[] Double22; + public double[] Double22; - public double[] Double23; + public double[] Double23; - public Class110 Class1100 = new Class110(); + public Class110 Class1100 = new Class110(); - public static readonly int[] Int35; + public static readonly int[] Int35; - public static readonly int[] Int36; + public static readonly int[] Int36; - public static readonly int[] Int37; + public static readonly int[] Int37; - private static readonly int[] Int38; + private static readonly int[] Int38; - private static readonly int[] Int39; + private static readonly int[] Int39; - private static readonly int[] Int40; + private static readonly int[] Int40; - private static readonly int[][] Int41; + private static readonly int[][] Int41; - private static readonly int[] Int42; + private static readonly int[] Int42; - private static readonly byte[] Byte9; + private static readonly byte[] Byte9; - private static readonly int[] Int43; + private static readonly int[] Int43; - private static readonly int[] Int44; + private static readonly int[] Int44; - private bool _bool4 = true; + private bool _bool4 = true; - public Ac3Class1() - { - method_0(); - } + public Ac3Class1() + { + method_0(); + } - private void method_0() - { - for (var i = 0; i < 5; i++) - { - _double9[i] = new double[18]; - } - for (var j = 0; j < 5; j++) - { - _byte1[j] = new byte[256]; - } - for (var k = 0; k < 5; k++) - { - _byte4[k] = new byte[256]; - } - for (var l = 0; l < 5; l++) - { - _int23[l] = new int[50]; - } - Byte6 = Class114.smethod_0(); - Byte7 = Class114.smethod_1(); - Byte8 = Class114.smethod_2(); - Int34 = Class114.smethod_3(); - Double13 = Class114.smethod_4(); - Double14 = Class114.smethod_5(); - Double15 = Class114.smethod_6(); - Double16 = Class114.smethod_7(); - Double17 = Class114.smethod_8(); - Double18 = Class114.smethod_9(); - Double19 = Class114.smethod_10(); - Double20 = Class114.smethod_11(); - Double21 = Class114.smethod_12(); - Double22 = Class114.smethod_13(); - Double23 = Class114.smethod_14(); - } - - private bool method_1() - { - while (Class1150.method_3(16) != 2935) - { - Class1150.method_2(8); - if (Class1150.method_1() <= 56) - { - return false; - } - } - Class1150.method_2(16); - Class1150.method_2(16); - var num = Class1150.method_2(8); - var num2 = Class1150.method_2(8); - var num3 = Class1150.method_2(8); - var num4 = Int31[num2 >> 3]; - var num5 = num3 >> 5; - Int1 = ((((num3 & 248) == 80) ? 10 : num5) | (((num3 & Int33[num5]) != 0) ? 16 : 0)); - var num6 = num & 63; - if (num6 >= 38) - { - throw new Ac3Exception("Unknown rate"); - } - Int3 = Int32[num6 >> 1] * 1000 >> num4; - var num7 = num & 192; - if (num7 != 0) - { - if (num7 != 64) - { - if (num7 != 128) - { - throw new Ac3Exception("Unrecognised sample rate multiplier"); - } - Int2 = 32000 >> num4; - Int4 = 6 * Int32[num6 >> 1]; - } - else - { - Int2 = 44100 >> num4; - Int4 = 2 * (320 * Int32[num6 >> 1] / 147 + (num6 & 1)); - } - } - else - { - Int2 = 48000 >> num4; - Int4 = 4 * Int32[num6 >> 1]; - } - Class1150.vmethod_3(Class1150.vmethod_0() - 56); - return true; - } - - private void method_2() - { - Class1150.method_2(32); - _int5 = Class1150.method_2(3); - Class1150.method_2(5); - var num = Class1150.method_2(5); - if (num >= Int31.Length) - { - throw new FfMpegException("Illegal half rate"); - } - _int6 = Int31[num]; - Class1150.method_2(3); - _int7 = Class1150.method_2(3); - if (_int7 == 2) - { - Class1150.method_2(2); - } - _double5 = 0.0; - if ((_int7 & 1) != 0 && _int7 != 1) - { - _double5 = Double11[Class1150.method_2(2)]; - } - _double6 = 0.0; - if ((_int7 & 4) != 0) - { - _double6 = Double12[Class1150.method_2(2)]; - } - _bool0 = Class1150.vmethod_1(); - _double7 = 2.0; - method_10(_int7); - _double7 *= 2.0; - _double8 = _double7; - Bool1 = false; - var flag = _int7 == 0; - do - { - Class1150.method_2(5); - if (Class1150.vmethod_1()) - { - Class1150.method_2(8); - } - if (Class1150.vmethod_1()) - { - _int8 = Class1150.method_2(8); - } - if (Class1150.vmethod_1()) - { - Class1150.method_2(7); - } - } - while (!(flag = !flag)); - Class1150.method_2(2); - if (Class1150.vmethod_1()) - { - Class1150.method_2(14); - } - if (Class1150.vmethod_1()) - { - Class1150.method_2(14); - } - if (Class1150.vmethod_1()) - { - var num2 = Class1150.method_2(6); - Class1150.vmethod_3(Class1150.vmethod_0() + num2 * 8); - } - } - - private void method_3() - { - var num = Int35[_int7]; - var array = new bool[5]; - for (var i = 0; i < num; i++) - { - array[i] = Class1150.vmethod_1(); - } - var array2 = new bool[5]; - for (var j = 0; j < num; j++) - { - array2[j] = Class1150.vmethod_1(); - } - var flag = _int7 == 0; - do - { - if (Class1150.vmethod_1()) - { - var num2 = method_8(8); - if (Bool1) - { - _double8 = (((num2 & 31) | 32) << 13) * Double13[2 - (num2 >> 5)] * _double7; - } - } - } - while (!(flag = !flag)); - if (Class1150.vmethod_1()) - { - _int9 = 0; - if (Class1150.vmethod_1()) - { - for (var k = 0; k < num; k++) - { - _int9 |= Class1150.method_2(1) << k; - } - switch (_int7) - { - case 0: - case 1: - throw new Ac3Exception("Invalid mode"); - case 2: - _bool2 = Class1150.vmethod_1(); - break; - } - var num3 = Class1150.method_2(4); - var num4 = Class1150.method_2(4); - if (num4 + 3 - num3 < 0) - { - throw new Ac3Exception("Invalid values"); - } - _int10 = num4 + 3 - num3; - _int11 = Int36[num3]; - _int12 = num3 * 12 + 37; - _int13 = num4 * 12 + 73; - _int14 = 0; - var num5 = _int10; - for (var l = 0; l < num5 - 1; l++) - { - if (Class1150.vmethod_1()) - { - _int14 |= 1 << l; - _int10--; - } - } - } - } - if (_int9 != 0) - { - var flag2 = false; - for (var m = 0; m < num; m++) - { - if ((_int9 >> m & 1) != 0 && Class1150.vmethod_1()) - { - flag2 = true; - var num6 = 3 * Class1150.method_2(2); - for (var n = 0; n < _int10; n++) - { - var num7 = Class1150.method_2(4); - var num8 = Class1150.method_2(4); - if (num7 == 15) - { - num8 <<= 14; - } - else - { - num8 = (num8 | 16) << 13; - } - _double9[m][n] = num8 * Double13[num7 + num6]; - } - } - } - if (_int7 == 2 && _bool2 && flag2) - { - for (var num9 = 0; num9 < _int10; num9++) - { - if (Class1150.vmethod_1()) - { - _double9[1][num9] = -_double9[1][num9]; - } - } - } - } - if (_int7 == 2 && Class1150.vmethod_1()) - { - _int15 = 0; - var num10 = (_int9 != 0) ? _int12 : 253; - var num11 = 0; - do - { - _int15 |= Class1150.method_2(1) << num11; - } - while (Int37[num11++] < num10); - } - var num12 = 0; - var num13 = 0; - if (_int9 != 0) - { - num12 = Class1150.method_2(2); - } - var array3 = new int[5]; - for (var num14 = 0; num14 < num; num14++) - { - array3[num14] = Class1150.method_2(2); - } - if (_bool0) - { - num13 = Class1150.method_2(1); - } - for (var num15 = 0; num15 < num; num15++) - { - if (array3[num15] != 0) - { - if ((_int9 >> num15 & 1) != 0) - { - _int16[num15] = _int12; - } - else - { - var num16 = Class1150.method_2(6); - if (num16 > 60) - { - throw new Ac3Exception("chbwcod too large"); - } - _int16[num15] = num16 * 3 + 73; - } - } - } - var num17 = 0; - if (num12 != 0) - { - num17 = 64; - var int_ = (_int13 - _int12) / (3 << num12 - 1); - var byte_ = (byte)(Class1150.method_2(4) << 1); - method_13(num12, int_, byte_, _byte0, _int12); - } - for (var num18 = 0; num18 < num; num18++) - { - if (array3[num18] != 0) - { - num17 |= 1 << num18; - var num19 = 3 << array3[num18] - 1; - var int2 = (_int16[num18] + num19 - 4) / num19; - _byte1[num18][0] = (byte)Class1150.method_2(4); - method_13(array3[num18], int2, _byte1[num18][0], _byte1[num18], 1); - Class1150.method_2(2); - } - } - if (num13 != 0) - { - num17 |= 32; - _byte2[0] = (byte)Class1150.method_2(4); - method_13(num13, 2, _byte2[0], _byte2, 1); - } - if (Class1150.vmethod_1()) - { - num17 = 127; - _int17 = Class1150.method_2(11); - } - if (Class1150.vmethod_1()) - { - num17 = 127; - _int27 = Class1150.method_2(6); - if (_int9 != 0) - { - _int18 = Class1150.method_2(7); - } - for (var num20 = 0; num20 < num; num20++) - { - _int21[num20] = Class1150.method_2(7); - } - if (_bool0) - { - _int24 = Class1150.method_2(7); - } - } - if (_int9 != 0 && Class1150.vmethod_1()) - { - num17 |= 64; - _int28 = 9 - Class1150.method_2(3); - _int29 = 9 - Class1150.method_2(3); - } - if (Class1150.vmethod_1()) - { - num17 = 127; - if (_int9 != 0) - { - _int19 = Class1150.method_2(2); - } - for (var num21 = 0; num21 < num; num21++) - { - _int22[num21] = Class1150.method_2(2); - } - if (_int9 != 0 && _int19 == 1) - { - method_12(_int20); - } - for (var num22 = 0; num22 < num; num22++) - { - if (_int22[num22] == 1) - { - method_12(_int23[num22]); - } - } - } - if (num17 != 0) - { - if (method_5(num)) - { - for (var num23 = 0; num23 < _byte3.Length; num23++) - { - _byte3[num23] = 0; - } - for (var num24 = 0; num24 < num; num24++) - { - for (var num25 = 0; num25 < _byte4[num24].Length; num25++) - { - _byte4[num24][num25] = 0; - } - } - for (var num26 = 0; num26 < _byte5.Length; num26++) - { - _byte5[num26] = 0; - } - } - else - { - if (_int9 != 0 && (num17 & 64) != 0) - { - method_4(_int18, _int19, _int20, _int11, _int12, _int13, _int28 << 8, _int29 << 8, _byte0, _byte3); - } - for (var num27 = 0; num27 < num; num27++) - { - if ((num17 & 1 << num27) != 0) - { - method_4(_int21[num27], _int22[num27], _int23[num27], 0, 0, _int16[num27], 0, 0, _byte1[num27], _byte4[num27]); - } - } - if (_bool0 && (num17 & 32) != 0) - { - _int25 = 2; - method_4(_int24, _int25, _int26, 0, 0, 7, 0, 0, _byte2, _byte5); - } - } - } - if (Class1150.vmethod_1()) - { - var num28 = Class1150.method_2(9); - Class1150.vmethod_3(Class1150.vmethod_0() + num28 * 8); - } - var num29 = 256; - var array4 = new double[5]; - method_11(array4, _int7, _double8, _double5, _double6); - var flag3 = false; - _class1130.Int0 = -1; - _class1130.Int1 = -1; - _class1130.Int2 = -1; - for (var num30 = 0; num30 < num; num30++) - { - method_7(_double10, num29 + 256 * num30, _byte1[num30], _byte4[num30], _class1130, array4[num30], array2[num30], _int16[num30]); - int num31; - if ((_int9 >> num30 & 1) != 0) - { - if (!flag3) - { - flag3 = true; - method_9(num, array4, _double10, num29, _class1130, array2); - } - num31 = _int13; - } - else - { - num31 = _int16[num30]; - } - do - { - _double10[num29 + 256 * num30 + num31] = 0.0; - } - while (++num31 < 256); - } - if (_int7 == 2) - { - var num32 = 0; - var num31 = 13; - var num33 = (_int16[0] < _int16[1]) ? _int16[0] : _int16[1]; - var num34 = _int15; - do - { - if ((num34 & 1) == 0) - { - num34 >>= 1; - num31 = Int37[num32++]; - } - else - { - num34 >>= 1; - var num35 = Int37[num32++]; - if (num35 > num33) - { - num35 = num33; - } - do - { - var num36 = _double10[num29 + num31]; - var num37 = _double10[num29 + num31 + 256]; - _double10[num29 + num31] = num36 + num37; - _double10[num29 + num31 + 256] = num36 - num37; - } - while (++num31 < num35); - } - } - while (num31 < num33); - } - if (_bool0) - { - method_7(_double10, num29 - 256, _byte2, _byte5, _class1130, 0.0, false, 7); - for (var num38 = 7; num38 < 256; num38++) - { - _double10[num29 - 256 + num38] = 0.0; - } - Class1100.vmethod_0(_double10, num29 - 256, num29 - 256 + 1536, Int0); - } - var num39 = 0; - if (2 < num) - { - num39 = 1; - while (num39 < num && array[num39] == array[0]) - { - num39++; - } - } - if (num39 < num) - { - if (_bool3) - { - _bool3 = false; - } - for (num39 = 0; num39 < num; num39++) - { - if (array4[num39] != 0.0) - { - if (array[num39]) - { - Class1100.vmethod_1(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, Int0); - } - else - { - Class1100.vmethod_0(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, Int0); - } - } - else - { - for (var num31 = 0; num31 < 256; num31++) - { - _double10[num29 + 256 * num39 + num31] = 0.0; - } - } - } - return; - } - var num40 = 0; - if (!_bool3) - { - _bool3 = true; - } - if (array[0]) - { - for (num39 = 0; num39 < num; num39++) - { - Class1100.vmethod_1(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, num40); - } - return; - } - for (num39 = 0; num39 < num; num39++) - { - Class1100.vmethod_0(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, num40); - } - } - - private void method_4(int int45, int int46, int[] int47, int int48, int int49, int int50, int int51, int int52, byte[] byte10, byte[] byte11) - { - var num = 63 + 20 * (_int17 >> 7 & 3) >> _int6; - var num2 = 128 + 128 * (int45 & 7); - var num3 = 15 + 2 * (_int17 >> 9) >> _int6; - var num4 = Int38[_int17 >> 5 & 3]; - var num5 = Int39[_int17 >> 3 & 3]; - var array = Int41[_int5]; - if (int46 == 2) - { - int47 = Int42; - } - var num6 = Int40[_int17 & 7]; - var num7 = 960 - 64 * _int27 - 4 * (int45 >> 3) + num6; - num6 >>= 5; - var i = int48; - var j = int49; - if (int49 == 0) - { - var k = 0; - j = int50 - 1; - int num8; - while (true) - { - if (i < j) - { - if (byte10[i + 1] == byte10[i] - 2) - { - k = 384; - } - else if (k != 0 && byte10[i + 1] > byte10[i]) - { - k -= 64; - } - } - num8 = 128 * byte10[i]; - var num9 = num8 + num2 + k; - if (num8 > num5) - { - num9 -= num8 - num5 >> 2; - } - if (num9 > array[i >> _int6]) - { - num9 = array[i >> _int6]; - } - num9 -= num7 + 128 * int47[i]; - num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); - num9 -= num6; - byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; - i++; - if (i >= 3) - { - if (i >= 7) - { - break; - } - if (byte10[i] <= byte10[i - 1]) - { - break; - } - } - } - int51 = num8 + num2; - int52 = num8 + num4; - while (i < 7) - { - if (i < j) - { - if (byte10[i + 1] == byte10[i] - 2) - { - k = 384; - } - else if (k != 0 && byte10[i + 1] > byte10[i]) - { - k -= 64; - } - } - num8 = 128 * byte10[i]; - int51 += num; - if (int51 > num8 + num2) - { - int51 = num8 + num2; - } - int52 += num3; - if (int52 > num8 + num4) - { - int52 = num8 + num4; - } - var num9 = (int51 + k < int52) ? (int51 + k) : int52; - if (num8 > num5) - { - num9 -= num8 - num5 >> 2; - } - if (num9 > array[i >> _int6]) - { - num9 = array[i >> _int6]; - } - num9 -= num7 + 128 * int47[i]; - num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); - num9 -= num6; - byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; - i++; - } - if (int50 == 7) - { - return; - } - do - { - if (byte10[i + 1] == byte10[i] - 2) - { - k = 320; - } - else if (k != 0 && byte10[i + 1] > byte10[i]) - { - k -= 64; - } - num8 = 128 * byte10[i]; - int51 += num; - if (int51 > num8 + num2) - { - int51 = num8 + num2; - } - int52 += num3; - if (int52 > num8 + num4) - { - int52 = num8 + num4; - } - var num9 = (int51 + k < int52) ? (int51 + k) : int52; - if (num8 > num5) - { - num9 -= num8 - num5 >> 2; - } - if (num9 > array[i >> _int6]) - { - num9 = array[i >> _int6]; - } - num9 -= num7 + 128 * int47[i]; - num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); - num9 -= num6; - byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; - i++; - } - while (i < 20); - while (k > 128) - { - k -= 128; - num8 = 128 * byte10[i]; - int51 += num; - if (int51 > num8 + num2) - { - int51 = num8 + num2; - } - int52 += num3; - if (int52 > num8 + num4) - { - int52 = num8 + num4; - } - var num9 = (int51 + k < int52) ? (int51 + k) : int52; - if (num8 > num5) - { - num9 -= num8 - num5 >> 2; - } - if (num9 > array[i >> _int6]) - { - num9 = array[i >> _int6]; - } - num9 -= num7 + 128 * int47[i]; - num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); - num9 -= num6; - byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; - i++; - } - j = i; - } - do - { - var num10 = j; - var num11 = (Int43[i - 20] < int50) ? Int43[i - 20] : int50; - var num8 = 128 * byte10[j++]; - while (j < num11) - { - var num12 = 128 * byte10[j++]; - var num13 = num12 - num8; - switch (num13 >> 9) - { - case -6: - case -5: - case -4: - case -3: - case -2: - num8 = num12; - break; - case -1: - num8 = num12 + Int44[-num13 >> 1]; - break; - case 0: - num8 += Int44[num13 >> 1]; - break; - } - } - int51 += num; - if (int51 > num8 + num2) - { - int51 = num8 + num2; - } - int52 += num3; - if (int52 > num8 + num4) - { - int52 = num8 + num4; - } - var num9 = (int51 < int52) ? int51 : int52; - if (num8 > num5) - { - num9 -= num8 - num5 >> 2; - } - if (num9 > array[i >> _int6]) - { - num9 = array[i >> _int6]; - } - num9 -= num7 + 128 * int47[i]; - num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); - num9 -= num6; - i++; - j = num10; - do - { - byte11[j] = Byte9[156 + num9 + 4 * byte10[j]]; - } - while (++j < num11); - } - while (j < int50); - } - - private bool method_5(int int45) - { - if (_int27 == 0 && (_int9 == 0 || _int18 >> 3 == 0) && (!_bool0 || _int24 >> 3 == 0)) - { - for (var i = 0; i < int45; i++) - { - if (_int21[i] >> 3 != 0) - { - return false; - } - } - return true; - } - return false; - } - - private int method_6() - { - var num = Int34[_int30 >> 8] ^ _int30 << 8; - if ((num & 32768) != 0) - { - num |= -65536; - } - else - { - num &= 65535; - } - _int30 = (num & 65535); - return num; - } - - private void method_7(double[] double24, int int45, byte[] byte10, byte[] byte11, Class113 class1131, double double25, bool bool5, int int46) - { - var array = new double[25]; - for (var i = 0; i <= 24; i++) - { - array[i] = Double13[i] * double25; - } - var j = 0; - while (j < int46) - { - int num = byte11[j]; - switch (num) - { - case -3: - if (class1131.Int2 == 0) - { - double24[int45 + j] = class1131.vmethod_2()[0] * array[byte10[j]]; - class1131.Int2 = -1; - } - else - { - var num2 = Class1150.method_2(7); - class1131.Int2 = 0; - class1131.vmethod_2()[0] = Double22[num2]; - double24[int45 + j] = Double21[num2] * array[byte10[j]]; - } - break; - case -2: - if (class1131.Int1 >= 0) - { - double24[int45 + j] = class1131.vmethod_1()[class1131.Int1] * array[byte10[j]]; - class1131.Int1--; - } - else - { - var num3 = Class1150.method_2(7); - class1131.Int1 = 1; - class1131.vmethod_1()[0] = Double19[num3]; - class1131.vmethod_1()[1] = Double18[num3]; - double24[int45 + j] = Double17[num3] * array[byte10[j]]; - } - break; - case -1: - if (class1131.Int0 >= 0) - { - double24[int45 + j] = class1131.vmethod_0()[class1131.Int0] * array[byte10[j]]; - class1131.Int0--; - } - else - { - var num4 = Class1150.method_2(5); - class1131.Int0 = 1; - class1131.vmethod_0()[0] = Double16[num4]; - class1131.vmethod_0()[1] = Double15[num4]; - double24[int45 + j] = Double14[num4] * array[byte10[j]]; - } - break; - case 0: - if (bool5) - { - var num5 = method_6(); - double24[int45 + j] = num5 * array[byte10[j]] * Double2; - } - else - { - double24[int45 + j] = 0.0; - } - break; - case 1: - case 2: - goto IL_216; - case 3: - double24[int45 + j] = Double20[Class1150.method_2(3)] * array[byte10[j]]; - break; - case 4: - double24[int45 + j] = Double23[Class1150.method_2(4)] * array[byte10[j]]; - break; - default: - goto IL_216; - } - IL_275: - j++; - continue; - IL_216: - var num6 = method_8(num); - double24[int45 + j] = (num6 << 16 - num) * array[byte10[j]]; - goto IL_275; - } - } - - private int method_8(int int45) - { - var num = Class1150.method_2(int45); - if ((num & 1 << int45 - 1) != 0) - { - num |= -1 << int45; - } - return num; - } - - private void method_9(int int45, double[] double24, double[] double25, int int46, Class113 class1131, bool[] bool5) - { - var array = new double[5]; - var array2 = _byte0; - var array3 = _byte3; - var num = 0; - var num2 = _int14; - var i = _int12; - while (i < _int13) - { - var num3 = i + 12; - while ((num2 & 1) != 0) - { - num2 >>= 1; - num3 += 12; - } - num2 >>= 1; - for (var j = 0; j < int45; j++) - { - array[j] = _double9[j][num] * double24[j]; - } - num++; - while (i < num3) - { - int num4 = array3[i]; - double num5; - switch (num4) - { - case -3: - if (class1131.Int2 == 0) - { - num5 = class1131.vmethod_2()[0]; - class1131.Int2 = -1; - } - else - { - var num6 = Class1150.method_2(7); - class1131.Int2 = 0; - class1131.vmethod_2()[0] = Double22[num6]; - num5 = Double21[num6]; - } - break; - case -2: - if (class1131.Int1 >= 0) - { - num5 = class1131.vmethod_1()[class1131.Int1]; - class1131.Int1--; - } - else - { - var num7 = Class1150.method_2(7); - class1131.Int1 = 1; - class1131.vmethod_1()[0] = Double19[num7]; - class1131.vmethod_1()[1] = Double18[num7]; - num5 = Double17[num7]; - } - break; - case -1: - if (class1131.Int0 >= 0) - { - num5 = class1131.vmethod_0()[class1131.Int0]; - class1131.Int0--; - } - else - { - var num8 = Class1150.method_2(5); - class1131.Int0 = 1; - class1131.vmethod_0()[0] = Double16[num8]; - class1131.vmethod_0()[1] = Double15[num8]; - num5 = Double14[num8]; - } - break; - case 0: - num5 = Double2 * Double13[array2[i]]; - for (var k = 0; k < int45; k++) - { - if ((_int9 >> k & 1) != 0) - { - if (bool5[k]) - { - double25[int46 + i + k * 256] = num5 * array[k] * method_6(); - } - else - { - double25[int46 + i + k * 256] = 0.0; - } - } - } - i++; - break; - case 1: - case 2: - goto IL_27D; - case 3: - num5 = Double20[Class1150.method_2(3)]; - break; - case 4: - num5 = Double23[Class1150.method_2(4)]; - break; - default: - goto IL_27D; - } - IL_2BF: - if (num4 != 0) - { - num5 *= Double13[array2[i]]; - for (var l = 0; l < int45; l++) - { - if ((_int9 >> l & 1) != 0) - { - double25[int46 + i + l * 256] = num5 * array[l]; - } - } - i++; - } - continue; - IL_27D: - num5 = method_8(num4) << 16 - num4; - goto IL_2BF; - } - } - } - - private void method_10(int int45) - { - } - - private void method_11(double[] double24, int int45, double double25, double double26, double double27) - { - switch (int45) - { - case 2: - double24[0] = double25; - double24[1] = double25; - double24[2] = double25; - double24[3] = double25; - double24[4] = double25; - return; - case 3: - double24[0] = double25; - double24[1] = double25 * double26; - double24[2] = double25; - double24[3] = double25; - double24[4] = double25; - return; - case 4: - double24[0] = double25; - double24[1] = double25; - double24[2] = double25 * double27 * Double2; - double24[3] = double25; - double24[4] = double25; - return; - case 5: - double24[0] = double25; - double24[1] = double25 * double26; - double24[2] = double25; - double24[3] = double25 * double27 * Double2; - double24[4] = double25; - return; - case 6: - double24[0] = double25; - double24[1] = double25; - double24[2] = double25 * double27; - double24[3] = double25 * double27; - double24[4] = double25; - return; - case 7: - double24[0] = double25; - double24[1] = double25 * double26; - double24[2] = double25; - double24[3] = double25 * double27; - double24[4] = double25 * double27; - return; - default: - return; - } - } - - private void method_12(int[] int45) - { - for (var i = 0; i < int45.Length; i++) - { - int45[i] = 0; - } - var num = Class1150.method_2(3); - var num2 = 0; - do - { - num2 += Class1150.method_2(5); - var num3 = Class1150.method_2(4); - var num4 = Class1150.method_2(3); - num4 -= ((num4 < 4) ? 4 : 3); - while (num3-- != 0) - { - int45[num2++] = num4; - } - } - while (num-- != 0); - } - - private void method_13(int int45, int int46, byte byte10, byte[] byte11, int int47) - { - while (int46-- != 0) - { - var num = Class1150.method_2(7); - byte10 += Byte6[num]; - if ((255 & byte10) <= 24) - { - switch (int45) - { - case 1: - goto IL_67; - case 2: - goto IL_5C; - case 3: - byte11[int47++] = byte10; - byte11[int47++] = byte10; - goto IL_5C; - } - IL_72: - byte10 += Byte7[num]; - if ((255 & byte10) <= 24) - { - switch (int45) - { - case 1: - goto IL_C6; - case 2: - goto IL_BB; - case 3: - byte11[int47++] = byte10; - byte11[int47++] = byte10; - goto IL_BB; - } - IL_D1: - byte10 += Byte8[num]; - if ((255 & byte10) <= 24) - { - switch (int45) - { - case 1: - break; - case 2: - goto IL_117; - case 3: - byte11[int47++] = byte10; - byte11[int47++] = byte10; - goto IL_117; - default: - continue; - } - IL_122: - byte11[int47++] = byte10; - continue; - IL_117: - byte11[int47++] = byte10; - goto IL_122; - } - throw new Ac3Exception("Exponent too large"); - IL_C6: - byte11[int47++] = byte10; - goto IL_D1; - IL_BB: - byte11[int47++] = byte10; - goto IL_C6; - } - throw new Ac3Exception("Exponent too large"); - IL_67: - byte11[int47++] = byte10; - goto IL_72; - IL_5C: - byte11[int47++] = byte10; - goto IL_67; - } - throw new Ac3Exception("Exponent too large"); - } - } - - public virtual int vmethod_0(byte[] byte10, Stream stream0) - { - try - { - var num = byte10.Length; - Class1150.vmethod_2(byte10, 0, num); - while (Class1150.method_1() > 56) - { - if (_bool4) - { - Class1150.vmethod_3(Class1150.vmethod_0() & -8); - if (!method_1()) - { - continue; - } - _bool4 = false; - } - if (Class1150.method_1() < Int4 * 8) - { - break; - } - var num2 = Class1150.vmethod_0(); - method_2(); - while (Class1150.vmethod_0() - num2 < (Int4 - 7) * 8) - { - method_3(); - Class1100.vmethod_2(_double10, 2, stream0); - } - _bool4 = true; - } - } - catch - { - _bool4 = true; - Class1150.vmethod_3(Class1150.vmethod_0() + Class1150.method_1()); - } - return 0; - } - - static Ac3Class1() - { - _double0 = 2.0; - _double1 = 1.4142135623730951; - Double2 = 0.70710678118654757; - Double3 = 0.59460355750136051; - Double4 = 0.5; - Int31 = new[] - { - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 2, - 3 - }; - Int32 = new[] - { - 32, - 40, - 48, - 56, - 64, - 80, - 96, - 112, - 128, - 160, - 192, - 224, - 256, - 320, - 384, - 448, - 512, - 576, - 640 - }; - Int33 = new[] - { - 16, - 16, - 4, - 4, - 4, - 1, - 4, - 1 - }; - Double11 = new[] - { - Double2, - Double3, - Double4, - Double3 - }; - Double12 = new[] - { - Double2, - Double4, - 0.0, - Double4 - }; - Int35 = new[] - { - 2, - 1, - 2, - 3, - 3, - 4, - 4, - 5, - 1, - 1, - 2 - }; - Int36 = new[] - { - 31, - 35, - 37, - 39, - 41, - 42, - 43, - 44, - 45, - 45, - 46, - 46, - 47, - 47, - 48, - 48 - }; - Int37 = new[] - { - 25, - 37, - 61, - 253 - }; - Int38 = new[] - { - 1344, - 1240, - 1144, - 1040 - }; - Int39 = new[] - { - 3072, - 1280, - 768, - 256 - }; - Int40 = new[] - { - 2320, - 2384, - 2448, - 2512, - 2576, - 2704, - 2832, - 5120 - }; - Int42 = new int[50]; - Int41 = Class114.smethod_15(); - Byte9 = Class114.smethod_16(); - Int43 = Class114.smethod_17(); - Int44 = Class114.smethod_18(); - } - } -} + private void method_0() + { + for (var i = 0; i < 5; i++) + { + _double9[i] = new double[18]; + } + for (var j = 0; j < 5; j++) + { + _byte1[j] = new byte[256]; + } + for (var k = 0; k < 5; k++) + { + _byte4[k] = new byte[256]; + } + for (var l = 0; l < 5; l++) + { + _int23[l] = new int[50]; + } + Byte6 = Class114.smethod_0(); + Byte7 = Class114.smethod_1(); + Byte8 = Class114.smethod_2(); + Int34 = Class114.smethod_3(); + Double13 = Class114.smethod_4(); + Double14 = Class114.smethod_5(); + Double15 = Class114.smethod_6(); + Double16 = Class114.smethod_7(); + Double17 = Class114.smethod_8(); + Double18 = Class114.smethod_9(); + Double19 = Class114.smethod_10(); + Double20 = Class114.smethod_11(); + Double21 = Class114.smethod_12(); + Double22 = Class114.smethod_13(); + Double23 = Class114.smethod_14(); + } + + private bool method_1() + { + while (Class1150.method_3(16) != 2935) + { + Class1150.method_2(8); + if (Class1150.method_1() <= 56) + { + return false; + } + } + Class1150.method_2(16); + Class1150.method_2(16); + var num = Class1150.method_2(8); + var num2 = Class1150.method_2(8); + var num3 = Class1150.method_2(8); + var num4 = Int31[num2 >> 3]; + var num5 = num3 >> 5; + Int1 = ((((num3 & 248) == 80) ? 10 : num5) | (((num3 & Int33[num5]) != 0) ? 16 : 0)); + var num6 = num & 63; + if (num6 >= 38) + { + throw new Ac3Exception("Unknown rate"); + } + Int3 = Int32[num6 >> 1] * 1000 >> num4; + var num7 = num & 192; + if (num7 != 0) + { + if (num7 != 64) + { + if (num7 != 128) + { + throw new Ac3Exception("Unrecognised sample rate multiplier"); + } + Int2 = 32000 >> num4; + Int4 = 6 * Int32[num6 >> 1]; + } + else + { + Int2 = 44100 >> num4; + Int4 = 2 * (320 * Int32[num6 >> 1] / 147 + (num6 & 1)); + } + } + else + { + Int2 = 48000 >> num4; + Int4 = 4 * Int32[num6 >> 1]; + } + Class1150.vmethod_3(Class1150.vmethod_0() - 56); + return true; + } + + private void method_2() + { + Class1150.method_2(32); + _int5 = Class1150.method_2(3); + Class1150.method_2(5); + var num = Class1150.method_2(5); + if (num >= Int31.Length) + { + throw new FfMpegException("Illegal half rate"); + } + _int6 = Int31[num]; + Class1150.method_2(3); + _int7 = Class1150.method_2(3); + if (_int7 == 2) + { + Class1150.method_2(2); + } + _double5 = 0.0; + if ((_int7 & 1) != 0 && _int7 != 1) + { + _double5 = Double11[Class1150.method_2(2)]; + } + _double6 = 0.0; + if ((_int7 & 4) != 0) + { + _double6 = Double12[Class1150.method_2(2)]; + } + _bool0 = Class1150.vmethod_1(); + _double7 = 2.0; + method_10(_int7); + _double7 *= 2.0; + _double8 = _double7; + Bool1 = false; + var flag = _int7 == 0; + do + { + Class1150.method_2(5); + if (Class1150.vmethod_1()) + { + Class1150.method_2(8); + } + if (Class1150.vmethod_1()) + { + _int8 = Class1150.method_2(8); + } + if (Class1150.vmethod_1()) + { + Class1150.method_2(7); + } + } while (!(flag = !flag)); + Class1150.method_2(2); + if (Class1150.vmethod_1()) + { + Class1150.method_2(14); + } + if (Class1150.vmethod_1()) + { + Class1150.method_2(14); + } + if (Class1150.vmethod_1()) + { + var num2 = Class1150.method_2(6); + Class1150.vmethod_3(Class1150.vmethod_0() + num2 * 8); + } + } + + private void method_3() + { + var num = Int35[_int7]; + var array = new bool[5]; + for (var i = 0; i < num; i++) + { + array[i] = Class1150.vmethod_1(); + } + var array2 = new bool[5]; + for (var j = 0; j < num; j++) + { + array2[j] = Class1150.vmethod_1(); + } + var flag = _int7 == 0; + do + { + if (Class1150.vmethod_1()) + { + var num2 = method_8(8); + if (Bool1) + { + _double8 = (((num2 & 31) | 32) << 13) * Double13[2 - (num2 >> 5)] * _double7; + } + } + } while (!(flag = !flag)); + if (Class1150.vmethod_1()) + { + _int9 = 0; + if (Class1150.vmethod_1()) + { + for (var k = 0; k < num; k++) + { + _int9 |= Class1150.method_2(1) << k; + } + switch (_int7) + { + case 0: + case 1: + throw new Ac3Exception("Invalid mode"); + case 2: + _bool2 = Class1150.vmethod_1(); + break; + } + var num3 = Class1150.method_2(4); + var num4 = Class1150.method_2(4); + if (num4 + 3 - num3 < 0) + { + throw new Ac3Exception("Invalid values"); + } + _int10 = num4 + 3 - num3; + _int11 = Int36[num3]; + _int12 = num3 * 12 + 37; + _int13 = num4 * 12 + 73; + _int14 = 0; + var num5 = _int10; + for (var l = 0; l < num5 - 1; l++) + { + if (Class1150.vmethod_1()) + { + _int14 |= 1 << l; + _int10--; + } + } + } + } + if (_int9 != 0) + { + var flag2 = false; + for (var m = 0; m < num; m++) + { + if ((_int9 >> m & 1) != 0 && Class1150.vmethod_1()) + { + flag2 = true; + var num6 = 3 * Class1150.method_2(2); + for (var n = 0; n < _int10; n++) + { + var num7 = Class1150.method_2(4); + var num8 = Class1150.method_2(4); + if (num7 == 15) + { + num8 <<= 14; + } + else + { + num8 = (num8 | 16) << 13; + } + _double9[m][n] = num8 * Double13[num7 + num6]; + } + } + } + if (_int7 == 2 && _bool2 && flag2) + { + for (var num9 = 0; num9 < _int10; num9++) + { + if (Class1150.vmethod_1()) + { + _double9[1][num9] = -_double9[1][num9]; + } + } + } + } + if (_int7 == 2 && Class1150.vmethod_1()) + { + _int15 = 0; + var num10 = (_int9 != 0) ? _int12 : 253; + var num11 = 0; + do + { + _int15 |= Class1150.method_2(1) << num11; + } while (Int37[num11++] < num10); + } + var num12 = 0; + var num13 = 0; + if (_int9 != 0) + { + num12 = Class1150.method_2(2); + } + var array3 = new int[5]; + for (var num14 = 0; num14 < num; num14++) + { + array3[num14] = Class1150.method_2(2); + } + if (_bool0) + { + num13 = Class1150.method_2(1); + } + for (var num15 = 0; num15 < num; num15++) + { + if (array3[num15] != 0) + { + if ((_int9 >> num15 & 1) != 0) + { + _int16[num15] = _int12; + } + else + { + var num16 = Class1150.method_2(6); + if (num16 > 60) + { + throw new Ac3Exception("chbwcod too large"); + } + _int16[num15] = num16 * 3 + 73; + } + } + } + var num17 = 0; + if (num12 != 0) + { + num17 = 64; + var int_ = (_int13 - _int12) / (3 << num12 - 1); + var byte_ = (byte) (Class1150.method_2(4) << 1); + method_13(num12, int_, byte_, _byte0, _int12); + } + for (var num18 = 0; num18 < num; num18++) + { + if (array3[num18] != 0) + { + num17 |= 1 << num18; + var num19 = 3 << array3[num18] - 1; + var int2 = (_int16[num18] + num19 - 4) / num19; + _byte1[num18][0] = (byte) Class1150.method_2(4); + method_13(array3[num18], int2, _byte1[num18][0], _byte1[num18], 1); + Class1150.method_2(2); + } + } + if (num13 != 0) + { + num17 |= 32; + _byte2[0] = (byte) Class1150.method_2(4); + method_13(num13, 2, _byte2[0], _byte2, 1); + } + if (Class1150.vmethod_1()) + { + num17 = 127; + _int17 = Class1150.method_2(11); + } + if (Class1150.vmethod_1()) + { + num17 = 127; + _int27 = Class1150.method_2(6); + if (_int9 != 0) + { + _int18 = Class1150.method_2(7); + } + for (var num20 = 0; num20 < num; num20++) + { + _int21[num20] = Class1150.method_2(7); + } + if (_bool0) + { + _int24 = Class1150.method_2(7); + } + } + if (_int9 != 0 && Class1150.vmethod_1()) + { + num17 |= 64; + _int28 = 9 - Class1150.method_2(3); + _int29 = 9 - Class1150.method_2(3); + } + if (Class1150.vmethod_1()) + { + num17 = 127; + if (_int9 != 0) + { + _int19 = Class1150.method_2(2); + } + for (var num21 = 0; num21 < num; num21++) + { + _int22[num21] = Class1150.method_2(2); + } + if (_int9 != 0 && _int19 == 1) + { + method_12(_int20); + } + for (var num22 = 0; num22 < num; num22++) + { + if (_int22[num22] == 1) + { + method_12(_int23[num22]); + } + } + } + if (num17 != 0) + { + if (method_5(num)) + { + for (var num23 = 0; num23 < _byte3.Length; num23++) + { + _byte3[num23] = 0; + } + for (var num24 = 0; num24 < num; num24++) + { + for (var num25 = 0; num25 < _byte4[num24].Length; num25++) + { + _byte4[num24][num25] = 0; + } + } + for (var num26 = 0; num26 < _byte5.Length; num26++) + { + _byte5[num26] = 0; + } + } + else + { + if (_int9 != 0 && (num17 & 64) != 0) + { + method_4(_int18, _int19, _int20, _int11, _int12, _int13, _int28 << 8, _int29 << 8, _byte0, + _byte3); + } + for (var num27 = 0; num27 < num; num27++) + { + if ((num17 & 1 << num27) != 0) + { + method_4(_int21[num27], _int22[num27], _int23[num27], 0, 0, _int16[num27], 0, 0, + _byte1[num27], _byte4[num27]); + } + } + if (_bool0 && (num17 & 32) != 0) + { + _int25 = 2; + method_4(_int24, _int25, _int26, 0, 0, 7, 0, 0, _byte2, _byte5); + } + } + } + if (Class1150.vmethod_1()) + { + var num28 = Class1150.method_2(9); + Class1150.vmethod_3(Class1150.vmethod_0() + num28 * 8); + } + var num29 = 256; + var array4 = new double[5]; + method_11(array4, _int7, _double8, _double5, _double6); + var flag3 = false; + _class1130.Int0 = -1; + _class1130.Int1 = -1; + _class1130.Int2 = -1; + for (var num30 = 0; num30 < num; num30++) + { + method_7(_double10, num29 + 256 * num30, _byte1[num30], _byte4[num30], _class1130, array4[num30], + array2[num30], _int16[num30]); + int num31; + if ((_int9 >> num30 & 1) != 0) + { + if (!flag3) + { + flag3 = true; + method_9(num, array4, _double10, num29, _class1130, array2); + } + num31 = _int13; + } + else + { + num31 = _int16[num30]; + } + do + { + _double10[num29 + 256 * num30 + num31] = 0.0; + } while (++num31 < 256); + } + if (_int7 == 2) + { + var num32 = 0; + var num31 = 13; + var num33 = (_int16[0] < _int16[1]) ? _int16[0] : _int16[1]; + var num34 = _int15; + do + { + if ((num34 & 1) == 0) + { + num34 >>= 1; + num31 = Int37[num32++]; + } + else + { + num34 >>= 1; + var num35 = Int37[num32++]; + if (num35 > num33) + { + num35 = num33; + } + do + { + var num36 = _double10[num29 + num31]; + var num37 = _double10[num29 + num31 + 256]; + _double10[num29 + num31] = num36 + num37; + _double10[num29 + num31 + 256] = num36 - num37; + } while (++num31 < num35); + } + } while (num31 < num33); + } + if (_bool0) + { + method_7(_double10, num29 - 256, _byte2, _byte5, _class1130, 0.0, false, 7); + for (var num38 = 7; num38 < 256; num38++) + { + _double10[num29 - 256 + num38] = 0.0; + } + Class1100.vmethod_0(_double10, num29 - 256, num29 - 256 + 1536, Int0); + } + var num39 = 0; + if (2 < num) + { + num39 = 1; + while (num39 < num && array[num39] == array[0]) + { + num39++; + } + } + if (num39 < num) + { + if (_bool3) + { + _bool3 = false; + } + for (num39 = 0; num39 < num; num39++) + { + if (array4[num39] != 0.0) + { + if (array[num39]) + { + Class1100.vmethod_1(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, Int0); + } + else + { + Class1100.vmethod_0(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, Int0); + } + } + else + { + for (var num31 = 0; num31 < 256; num31++) + { + _double10[num29 + 256 * num39 + num31] = 0.0; + } + } + } + return; + } + var num40 = 0; + if (!_bool3) + { + _bool3 = true; + } + if (array[0]) + { + for (num39 = 0; num39 < num; num39++) + { + Class1100.vmethod_1(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, num40); + } + return; + } + for (num39 = 0; num39 < num; num39++) + { + Class1100.vmethod_0(_double10, num29 + 256 * num39, num29 + 1536 + 256 * num39, num40); + } + } + + private void method_4(int int45, int int46, int[] int47, int int48, int int49, int int50, int int51, int int52, + byte[] byte10, byte[] byte11) + { + var num = 63 + 20 * (_int17 >> 7 & 3) >> _int6; + var num2 = 128 + 128 * (int45 & 7); + var num3 = 15 + 2 * (_int17 >> 9) >> _int6; + var num4 = Int38[_int17 >> 5 & 3]; + var num5 = Int39[_int17 >> 3 & 3]; + var array = Int41[_int5]; + if (int46 == 2) + { + int47 = Int42; + } + var num6 = Int40[_int17 & 7]; + var num7 = 960 - 64 * _int27 - 4 * (int45 >> 3) + num6; + num6 >>= 5; + var i = int48; + var j = int49; + if (int49 == 0) + { + var k = 0; + j = int50 - 1; + int num8; + while (true) + { + if (i < j) + { + if (byte10[i + 1] == byte10[i] - 2) + { + k = 384; + } + else if (k != 0 && byte10[i + 1] > byte10[i]) + { + k -= 64; + } + } + num8 = 128 * byte10[i]; + var num9 = num8 + num2 + k; + if (num8 > num5) + { + num9 -= num8 - num5 >> 2; + } + if (num9 > array[i >> _int6]) + { + num9 = array[i >> _int6]; + } + num9 -= num7 + 128 * int47[i]; + num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); + num9 -= num6; + byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; + i++; + if (i >= 3) + { + if (i >= 7) + { + break; + } + if (byte10[i] <= byte10[i - 1]) + { + break; + } + } + } + int51 = num8 + num2; + int52 = num8 + num4; + while (i < 7) + { + if (i < j) + { + if (byte10[i + 1] == byte10[i] - 2) + { + k = 384; + } + else if (k != 0 && byte10[i + 1] > byte10[i]) + { + k -= 64; + } + } + num8 = 128 * byte10[i]; + int51 += num; + if (int51 > num8 + num2) + { + int51 = num8 + num2; + } + int52 += num3; + if (int52 > num8 + num4) + { + int52 = num8 + num4; + } + var num9 = (int51 + k < int52) ? (int51 + k) : int52; + if (num8 > num5) + { + num9 -= num8 - num5 >> 2; + } + if (num9 > array[i >> _int6]) + { + num9 = array[i >> _int6]; + } + num9 -= num7 + 128 * int47[i]; + num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); + num9 -= num6; + byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; + i++; + } + if (int50 == 7) + { + return; + } + do + { + if (byte10[i + 1] == byte10[i] - 2) + { + k = 320; + } + else if (k != 0 && byte10[i + 1] > byte10[i]) + { + k -= 64; + } + num8 = 128 * byte10[i]; + int51 += num; + if (int51 > num8 + num2) + { + int51 = num8 + num2; + } + int52 += num3; + if (int52 > num8 + num4) + { + int52 = num8 + num4; + } + var num9 = (int51 + k < int52) ? (int51 + k) : int52; + if (num8 > num5) + { + num9 -= num8 - num5 >> 2; + } + if (num9 > array[i >> _int6]) + { + num9 = array[i >> _int6]; + } + num9 -= num7 + 128 * int47[i]; + num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); + num9 -= num6; + byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; + i++; + } while (i < 20); + while (k > 128) + { + k -= 128; + num8 = 128 * byte10[i]; + int51 += num; + if (int51 > num8 + num2) + { + int51 = num8 + num2; + } + int52 += num3; + if (int52 > num8 + num4) + { + int52 = num8 + num4; + } + var num9 = (int51 + k < int52) ? (int51 + k) : int52; + if (num8 > num5) + { + num9 -= num8 - num5 >> 2; + } + if (num9 > array[i >> _int6]) + { + num9 = array[i >> _int6]; + } + num9 -= num7 + 128 * int47[i]; + num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); + num9 -= num6; + byte11[i] = Byte9[156 + num9 + 4 * byte10[i]]; + i++; + } + j = i; + } + do + { + var num10 = j; + var num11 = (Int43[i - 20] < int50) ? Int43[i - 20] : int50; + var num8 = 128 * byte10[j++]; + while (j < num11) + { + var num12 = 128 * byte10[j++]; + var num13 = num12 - num8; + switch (num13 >> 9) + { + case -6: + case -5: + case -4: + case -3: + case -2: + num8 = num12; + break; + case -1: + num8 = num12 + Int44[-num13 >> 1]; + break; + case 0: + num8 += Int44[num13 >> 1]; + break; + } + } + int51 += num; + if (int51 > num8 + num2) + { + int51 = num8 + num2; + } + int52 += num3; + if (int52 > num8 + num4) + { + int52 = num8 + num4; + } + var num9 = (int51 < int52) ? int51 : int52; + if (num8 > num5) + { + num9 -= num8 - num5 >> 2; + } + if (num9 > array[i >> _int6]) + { + num9 = array[i >> _int6]; + } + num9 -= num7 + 128 * int47[i]; + num9 = ((num9 > 0) ? 0 : (-num9 >> 5)); + num9 -= num6; + i++; + j = num10; + do + { + byte11[j] = Byte9[156 + num9 + 4 * byte10[j]]; + } while (++j < num11); + } while (j < int50); + } + + private bool method_5(int int45) + { + if (_int27 == 0 && (_int9 == 0 || _int18 >> 3 == 0) && (!_bool0 || _int24 >> 3 == 0)) + { + for (var i = 0; i < int45; i++) + { + if (_int21[i] >> 3 != 0) + { + return false; + } + } + return true; + } + return false; + } + + private int method_6() + { + var num = Int34[_int30 >> 8] ^ _int30 << 8; + if ((num & 32768) != 0) + { + num |= -65536; + } + else + { + num &= 65535; + } + _int30 = (num & 65535); + return num; + } + + private void method_7(double[] double24, int int45, byte[] byte10, byte[] byte11, Class113 class1131, + double double25, bool bool5, int int46) + { + var array = new double[25]; + for (var i = 0; i <= 24; i++) + { + array[i] = Double13[i] * double25; + } + var j = 0; + while (j < int46) + { + int num = byte11[j]; + switch (num) + { + case -3: + if (class1131.Int2 == 0) + { + double24[int45 + j] = class1131.vmethod_2()[0] * array[byte10[j]]; + class1131.Int2 = -1; + } + else + { + var num2 = Class1150.method_2(7); + class1131.Int2 = 0; + class1131.vmethod_2()[0] = Double22[num2]; + double24[int45 + j] = Double21[num2] * array[byte10[j]]; + } + break; + case -2: + if (class1131.Int1 >= 0) + { + double24[int45 + j] = class1131.vmethod_1()[class1131.Int1] * array[byte10[j]]; + class1131.Int1--; + } + else + { + var num3 = Class1150.method_2(7); + class1131.Int1 = 1; + class1131.vmethod_1()[0] = Double19[num3]; + class1131.vmethod_1()[1] = Double18[num3]; + double24[int45 + j] = Double17[num3] * array[byte10[j]]; + } + break; + case -1: + if (class1131.Int0 >= 0) + { + double24[int45 + j] = class1131.vmethod_0()[class1131.Int0] * array[byte10[j]]; + class1131.Int0--; + } + else + { + var num4 = Class1150.method_2(5); + class1131.Int0 = 1; + class1131.vmethod_0()[0] = Double16[num4]; + class1131.vmethod_0()[1] = Double15[num4]; + double24[int45 + j] = Double14[num4] * array[byte10[j]]; + } + break; + case 0: + if (bool5) + { + var num5 = method_6(); + double24[int45 + j] = num5 * array[byte10[j]] * Double2; + } + else + { + double24[int45 + j] = 0.0; + } + break; + case 1: + case 2: + goto IL_216; + case 3: + double24[int45 + j] = Double20[Class1150.method_2(3)] * array[byte10[j]]; + break; + case 4: + double24[int45 + j] = Double23[Class1150.method_2(4)] * array[byte10[j]]; + break; + default: + goto IL_216; + } + IL_275: + j++; + continue; + IL_216: + var num6 = method_8(num); + double24[int45 + j] = (num6 << 16 - num) * array[byte10[j]]; + goto IL_275; + } + } + + private int method_8(int int45) + { + var num = Class1150.method_2(int45); + if ((num & 1 << int45 - 1) != 0) + { + num |= -1 << int45; + } + return num; + } + + private void method_9(int int45, double[] double24, double[] double25, int int46, Class113 class1131, + bool[] bool5) + { + var array = new double[5]; + var array2 = _byte0; + var array3 = _byte3; + var num = 0; + var num2 = _int14; + var i = _int12; + while (i < _int13) + { + var num3 = i + 12; + while ((num2 & 1) != 0) + { + num2 >>= 1; + num3 += 12; + } + num2 >>= 1; + for (var j = 0; j < int45; j++) + { + array[j] = _double9[j][num] * double24[j]; + } + num++; + while (i < num3) + { + int num4 = array3[i]; + double num5; + switch (num4) + { + case -3: + if (class1131.Int2 == 0) + { + num5 = class1131.vmethod_2()[0]; + class1131.Int2 = -1; + } + else + { + var num6 = Class1150.method_2(7); + class1131.Int2 = 0; + class1131.vmethod_2()[0] = Double22[num6]; + num5 = Double21[num6]; + } + break; + case -2: + if (class1131.Int1 >= 0) + { + num5 = class1131.vmethod_1()[class1131.Int1]; + class1131.Int1--; + } + else + { + var num7 = Class1150.method_2(7); + class1131.Int1 = 1; + class1131.vmethod_1()[0] = Double19[num7]; + class1131.vmethod_1()[1] = Double18[num7]; + num5 = Double17[num7]; + } + break; + case -1: + if (class1131.Int0 >= 0) + { + num5 = class1131.vmethod_0()[class1131.Int0]; + class1131.Int0--; + } + else + { + var num8 = Class1150.method_2(5); + class1131.Int0 = 1; + class1131.vmethod_0()[0] = Double16[num8]; + class1131.vmethod_0()[1] = Double15[num8]; + num5 = Double14[num8]; + } + break; + case 0: + num5 = Double2 * Double13[array2[i]]; + for (var k = 0; k < int45; k++) + { + if ((_int9 >> k & 1) != 0) + { + if (bool5[k]) + { + double25[int46 + i + k * 256] = num5 * array[k] * method_6(); + } + else + { + double25[int46 + i + k * 256] = 0.0; + } + } + } + i++; + break; + case 1: + case 2: + goto IL_27D; + case 3: + num5 = Double20[Class1150.method_2(3)]; + break; + case 4: + num5 = Double23[Class1150.method_2(4)]; + break; + default: + goto IL_27D; + } + IL_2BF: + if (num4 != 0) + { + num5 *= Double13[array2[i]]; + for (var l = 0; l < int45; l++) + { + if ((_int9 >> l & 1) != 0) + { + double25[int46 + i + l * 256] = num5 * array[l]; + } + } + i++; + } + continue; + IL_27D: + num5 = method_8(num4) << 16 - num4; + goto IL_2BF; + } + } + } + + private void method_10(int int45) + { + } + + private void method_11(double[] double24, int int45, double double25, double double26, double double27) + { + switch (int45) + { + case 2: + double24[0] = double25; + double24[1] = double25; + double24[2] = double25; + double24[3] = double25; + double24[4] = double25; + return; + case 3: + double24[0] = double25; + double24[1] = double25 * double26; + double24[2] = double25; + double24[3] = double25; + double24[4] = double25; + return; + case 4: + double24[0] = double25; + double24[1] = double25; + double24[2] = double25 * double27 * Double2; + double24[3] = double25; + double24[4] = double25; + return; + case 5: + double24[0] = double25; + double24[1] = double25 * double26; + double24[2] = double25; + double24[3] = double25 * double27 * Double2; + double24[4] = double25; + return; + case 6: + double24[0] = double25; + double24[1] = double25; + double24[2] = double25 * double27; + double24[3] = double25 * double27; + double24[4] = double25; + return; + case 7: + double24[0] = double25; + double24[1] = double25 * double26; + double24[2] = double25; + double24[3] = double25 * double27; + double24[4] = double25 * double27; + return; + default: + return; + } + } + + private void method_12(int[] int45) + { + for (var i = 0; i < int45.Length; i++) + { + int45[i] = 0; + } + var num = Class1150.method_2(3); + var num2 = 0; + do + { + num2 += Class1150.method_2(5); + var num3 = Class1150.method_2(4); + var num4 = Class1150.method_2(3); + num4 -= ((num4 < 4) ? 4 : 3); + while (num3-- != 0) + { + int45[num2++] = num4; + } + } while (num-- != 0); + } + + private void method_13(int int45, int int46, byte byte10, byte[] byte11, int int47) + { + while (int46-- != 0) + { + var num = Class1150.method_2(7); + byte10 += Byte6[num]; + if ((255 & byte10) <= 24) + { + switch (int45) + { + case 1: + goto IL_67; + case 2: + goto IL_5C; + case 3: + byte11[int47++] = byte10; + byte11[int47++] = byte10; + goto IL_5C; + } + IL_72: + byte10 += Byte7[num]; + if ((255 & byte10) <= 24) + { + switch (int45) + { + case 1: + goto IL_C6; + case 2: + goto IL_BB; + case 3: + byte11[int47++] = byte10; + byte11[int47++] = byte10; + goto IL_BB; + } + IL_D1: + byte10 += Byte8[num]; + if ((255 & byte10) <= 24) + { + switch (int45) + { + case 1: + break; + case 2: + goto IL_117; + case 3: + byte11[int47++] = byte10; + byte11[int47++] = byte10; + goto IL_117; + default: + continue; + } + IL_122: + byte11[int47++] = byte10; + continue; + IL_117: + byte11[int47++] = byte10; + goto IL_122; + } + throw new Ac3Exception("Exponent too large"); + IL_C6: + byte11[int47++] = byte10; + goto IL_D1; + IL_BB: + byte11[int47++] = byte10; + goto IL_C6; + } + throw new Ac3Exception("Exponent too large"); + IL_67: + byte11[int47++] = byte10; + goto IL_72; + IL_5C: + byte11[int47++] = byte10; + goto IL_67; + } + throw new Ac3Exception("Exponent too large"); + } + } + + public virtual int vmethod_0(byte[] byte10, Stream stream0) + { + try + { + var num = byte10.Length; + Class1150.vmethod_2(byte10, 0, num); + while (Class1150.method_1() > 56) + { + if (_bool4) + { + Class1150.vmethod_3(Class1150.vmethod_0() & -8); + if (!method_1()) + { + continue; + } + _bool4 = false; + } + if (Class1150.method_1() < Int4 * 8) + { + break; + } + var num2 = Class1150.vmethod_0(); + method_2(); + while (Class1150.vmethod_0() - num2 < (Int4 - 7) * 8) + { + method_3(); + Class1100.vmethod_2(_double10, 2, stream0); + } + _bool4 = true; + } + } + catch + { + _bool4 = true; + Class1150.vmethod_3(Class1150.vmethod_0() + Class1150.method_1()); + } + return 0; + } + + static Ac3Class1() + { + _double0 = 2.0; + _double1 = 1.4142135623730951; + Double2 = 0.70710678118654757; + Double3 = 0.59460355750136051; + Double4 = 0.5; + Int31 = new[] + { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 3 + }; + Int32 = new[] + { + 32, + 40, + 48, + 56, + 64, + 80, + 96, + 112, + 128, + 160, + 192, + 224, + 256, + 320, + 384, + 448, + 512, + 576, + 640 + }; + Int33 = new[] + { + 16, + 16, + 4, + 4, + 4, + 1, + 4, + 1 + }; + Double11 = new[] + { + Double2, + Double3, + Double4, + Double3 + }; + Double12 = new[] + { + Double2, + Double4, + 0.0, + Double4 + }; + Int35 = new[] + { + 2, + 1, + 2, + 3, + 3, + 4, + 4, + 5, + 1, + 1, + 2 + }; + Int36 = new[] + { + 31, + 35, + 37, + 39, + 41, + 42, + 43, + 44, + 45, + 45, + 46, + 46, + 47, + 47, + 48, + 48 + }; + Int37 = new[] + { + 25, + 37, + 61, + 253 + }; + Int38 = new[] + { + 1344, + 1240, + 1144, + 1040 + }; + Int39 = new[] + { + 3072, + 1280, + 768, + 256 + }; + Int40 = new[] + { + 2320, + 2384, + 2448, + 2512, + 2576, + 2704, + 2832, + 5120 + }; + Int42 = new int[50]; + Int41 = Class114.smethod_15(); + Byte9 = Class114.smethod_16(); + Int43 = Class114.smethod_17(); + Int44 = Class114.smethod_18(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/AC3Stream.cs b/GHNamespaceJ/AC3Stream.cs index 1b7afaf..9999fa1 100644 --- a/GHNamespaceJ/AC3Stream.cs +++ b/GHNamespaceJ/AC3Stream.cs @@ -6,155 +6,154 @@ namespace GHNamespaceJ { - public class Ac3Stream : GenericAudioStream - { - public int Int2; - - public double Double0; - - private bool _bool0; - - private int _int3; - - private readonly object _object0 = new object(); - - private readonly Ac3Class1 _class1110 = new Ac3Class1(); - - private int _int4 = -1; - - private int _int5 = -1; - - private short _short0 = -1; - - private MemoryStream _memoryStream0; - - public override bool CanRead => FileStream.CanRead; - - public override bool CanSeek => FileStream.CanSeek; - - public override bool CanWrite => FileStream.CanWrite; - - public override long Length => (long)((FileStream.Length - Int2) * Double0); - - public override long Position - { - get => (long)((FileStream.Position - Int2) * Double0) - _memoryStream0.Length + _memoryStream0.Position; - set - { - FileStream.Position = (long)(value / Double0 + Int2); - _memoryStream0.Position = _memoryStream0.Length; - } - } - - public Ac3Stream(string string0) : this(File.OpenRead(string0)) - { - } - - public Ac3Stream(Stream stream1) : this(stream1, 4096) - { - } - - public Ac3Stream(Stream stream1, int int6) : this(stream1, int6, true) - { - } - - public Ac3Stream(Stream stream1, int int6, bool bool1) - { - _int3 = (bool1 ? 2 : 4); - FileStream = stream1; - _bool0 = bool1; - _memoryStream0 = new MemoryStream(); - if (!method_0()) - { - throw new Exception("Ac3 Decoder: Cannot read header."); - } - Int2 = (int)stream1.Position; - WaveFormat0 = (bool1 ? new WaveFormat(_int5, 16, _short0) : new WaveFormat(_int5, _short0)); - Double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int4 / 8.0); - } - - public override Class16 vmethod_1() - { - return new Class16(WaveFormat0, (uint)Position, (uint)Length); - } - - public override void Flush() - { - FileStream.Flush(); - } - - public override long Seek(long offset, SeekOrigin origin) - { - return FileStream.Seek((long)(offset / Double0) + ((origin == SeekOrigin.Begin) ? Int2 : 0), origin); - } - - public override void SetLength(long value) - { - throw new InvalidOperationException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new InvalidOperationException(); - } - - public override int Read(byte[] buffer, int offset, int count) - { - int result; - lock (_object0) - { - var num = 0; - do - { - if (_memoryStream0.Position == _memoryStream0.Length) - { - if (!method_0()) - { - break; - } - } - num += _memoryStream0.Read(buffer, offset + num, count - num); - } - while (num < count); - result = num; - } - return result; - } - - public override void Close() - { - FileStream.Close(); - } - - public bool method_0() - { - var array = new byte[1792]; - FileStream.Read(array, 0, 1792); - _memoryStream0 = new MemoryStream(); - _class1110.vmethod_0(array, _memoryStream0); - _short0 = 2; - _int5 = _class1110.Int2; - _int4 = _class1110.Int3 / 1000; - if (_memoryStream0.Length == 0L) - { - return false; - } - _memoryStream0.Position = 0L; - return true; - } + public class Ac3Stream : GenericAudioStream + { + public int Int2; + + public double Double0; + + private bool _bool0; + + private int _int3; + + private readonly object _object0 = new object(); + + private readonly Ac3Class1 _class1110 = new Ac3Class1(); + + private int _int4 = -1; + + private int _int5 = -1; + + private short _short0 = -1; + + private MemoryStream _memoryStream0; + + public override bool CanRead => FileStream.CanRead; + + public override bool CanSeek => FileStream.CanSeek; + + public override bool CanWrite => FileStream.CanWrite; + + public override long Length => (long) ((FileStream.Length - Int2) * Double0); + + public override long Position + { + get => (long) ((FileStream.Position - Int2) * Double0) - _memoryStream0.Length + _memoryStream0.Position; + set + { + FileStream.Position = (long) (value / Double0 + Int2); + _memoryStream0.Position = _memoryStream0.Length; + } + } + + public Ac3Stream(string string0) : this(File.OpenRead(string0)) + { + } + + public Ac3Stream(Stream stream1) : this(stream1, 4096) + { + } + + public Ac3Stream(Stream stream1, int int6) : this(stream1, int6, true) + { + } + + public Ac3Stream(Stream stream1, int int6, bool bool1) + { + _int3 = (bool1 ? 2 : 4); + FileStream = stream1; + _bool0 = bool1; + _memoryStream0 = new MemoryStream(); + if (!method_0()) + { + throw new Exception("Ac3 Decoder: Cannot read header."); + } + Int2 = (int) stream1.Position; + WaveFormat0 = (bool1 ? new WaveFormat(_int5, 16, _short0) : new WaveFormat(_int5, _short0)); + Double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int4 / 8.0); + } + + public override Class16 vmethod_1() + { + return new Class16(WaveFormat0, (uint) Position, (uint) Length); + } + + public override void Flush() + { + FileStream.Flush(); + } + + public override long Seek(long offset, SeekOrigin origin) + { + return FileStream.Seek((long) (offset / Double0) + ((origin == SeekOrigin.Begin) ? Int2 : 0), origin); + } + + public override void SetLength(long value) + { + throw new InvalidOperationException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new InvalidOperationException(); + } + + public override int Read(byte[] buffer, int offset, int count) + { + int result; + lock (_object0) + { + var num = 0; + do + { + if (_memoryStream0.Position == _memoryStream0.Length) + { + if (!method_0()) + { + break; + } + } + num += _memoryStream0.Read(buffer, offset + num, count - num); + } while (num < count); + result = num; + } + return result; + } + + public override void Close() + { + FileStream.Close(); + } + + public bool method_0() + { + var array = new byte[1792]; + FileStream.Read(array, 0, 1792); + _memoryStream0 = new MemoryStream(); + _class1110.vmethod_0(array, _memoryStream0); + _short0 = 2; + _int5 = _class1110.Int2; + _int4 = _class1110.Int3 / 1000; + if (_memoryStream0.Length == 0L) + { + return false; + } + _memoryStream0.Position = 0L; + return true; + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Close(); - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - } -} + { + if (disposing) + { + Close(); + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class104.cs b/GHNamespaceJ/Class104.cs index 9eeb0d3..2db7adc 100644 --- a/GHNamespaceJ/Class104.cs +++ b/GHNamespaceJ/Class104.cs @@ -2,34 +2,34 @@ namespace GHNamespaceJ { - public class Class104 - { - private readonly Enum4 _enum40; + public class Class104 + { + private readonly Enum4 _enum40; - private readonly Class105 _class1050; + private readonly Class105 _class1050; - public Class104() : this(Enum4.Const0, Class105.Class1050) - { - } + public Class104() : this(Enum4.Const0, Class105.Class1050) + { + } - public Class104(Enum4 enum41) : this(enum41, Class105.Class1050) - { - } + public Class104(Enum4 enum41) : this(enum41, Class105.Class1050) + { + } - public Class104(Enum4 enum41, Class105 class1051) - { - _enum40 = enum41; - _class1050 = class1051; - } + public Class104(Enum4 enum41, Class105 class1051) + { + _enum40 = enum41; + _class1050 = class1051; + } - public Enum4 method_0() - { - return _enum40; - } + public Enum4 method_0() + { + return _enum40; + } - public Class105 method_1() - { - return _class1050; - } - } -} + public Class105 method_1() + { + return _class1050; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class105.cs b/GHNamespaceJ/Class105.cs index 0202414..449b7d3 100644 --- a/GHNamespaceJ/Class105.cs +++ b/GHNamespaceJ/Class105.cs @@ -2,79 +2,79 @@ namespace GHNamespaceJ { - public class Class105 - { - public static readonly float Float0 = float.NegativeInfinity; + public class Class105 + { + public static readonly float Float0 = float.NegativeInfinity; - public static readonly Class105 Class1050 = new Class105(); + public static readonly Class105 Class1050 = new Class105(); public static readonly int Num1 = 32; - private readonly float[] _float1 = new float[Num1]; + private readonly float[] _float1 = new float[Num1]; - public float[] method_0() - { - var array = new float[Num1]; - var i = 0; - var num = Num1; - while (i < num) - { - array[i] = smethod_1(_float1[i]); - i++; - } - return array; - } + public float[] method_0() + { + var array = new float[Num1]; + var i = 0; + var num = Num1; + while (i < num) + { + array[i] = smethod_1(_float1[i]); + i++; + } + return array; + } - public void method_1(float[] float2) - { - method_3(); - var num = (float2.Length > Num1) ? Num1 : float2.Length; - for (var i = 0; i < num; i++) - { - _float1[i] = smethod_0(float2[i]); - } - } + public void method_1(float[] float2) + { + method_3(); + var num = (float2.Length > Num1) ? Num1 : float2.Length; + for (var i = 0; i < num; i++) + { + _float1[i] = smethod_0(float2[i]); + } + } - public void method_2(Class105 class1051) - { - if (class1051 != this) - { - method_1(class1051._float1); - } - } + public void method_2(Class105 class1051) + { + if (class1051 != this) + { + method_1(class1051._float1); + } + } - public void method_3() - { - for (var i = 0; i < Num1; i++) - { - _float1[i] = 0f; - } - } + public void method_3() + { + for (var i = 0; i < Num1; i++) + { + _float1[i] = 0f; + } + } - private static float smethod_0(float float2) - { - if (float2 == Float0) - { - return float2; - } - if (float2 > 1f) - { - return 1f; - } - if (float2 < -1f) - { - return -1f; - } - return float2; - } + private static float smethod_0(float float2) + { + if (float2 == Float0) + { + return float2; + } + if (float2 > 1f) + { + return 1f; + } + if (float2 < -1f) + { + return -1f; + } + return float2; + } - public static float smethod_1(float float2) - { - if (float2 == Float0) - { - return 0f; - } - return (float)Math.Pow(2.0, float2); - } - } -} + public static float smethod_1(float float2) + { + if (float2 == Float0) + { + return 0f; + } + return (float) Math.Pow(2.0, float2); + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class108.cs b/GHNamespaceJ/Class108.cs index 54381da..1664ddf 100644 --- a/GHNamespaceJ/Class108.cs +++ b/GHNamespaceJ/Class108.cs @@ -3,307 +3,307 @@ namespace GHNamespaceJ { - [CompilerGenerated] - public class Class108 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2048)] - public struct Struct22 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 72)] - public struct Struct23 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 92)] - public struct Struct24 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 56)] - public struct Struct25 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 20)] - public struct Struct26 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] - public struct Struct27 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 88)] - public struct Struct28 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] - public struct Struct29 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] - public struct Struct30 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2304)] - public struct Struct31 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] - public struct Struct32 - { - } - - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 144)] - public struct Struct33 - { - } + [CompilerGenerated] + public class Class108 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2048)] + public struct Struct22 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 72)] + public struct Struct23 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 92)] + public struct Struct24 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 56)] + public struct Struct25 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 20)] + public struct Struct26 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] + public struct Struct27 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 88)] + public struct Struct28 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] + public struct Struct29 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] + public struct Struct30 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2304)] + public struct Struct31 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] + public struct Struct32 + { + } + + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 144)] + public struct Struct33 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 288)] - public struct Struct34 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 288)] + public struct Struct34 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 60)] - public struct Struct35 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 60)] + public struct Struct35 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 324)] - public struct Struct36 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 324)] + public struct Struct36 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1500)] - public struct Struct37 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1500)] + public struct Struct37 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 8748)] - public struct Struct38 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 8748)] + public struct Struct38 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] - public struct Struct39 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] + public struct Struct39 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 136)] - public struct Struct40 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 136)] + public struct Struct40 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 248)] - public struct Struct41 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 248)] + public struct Struct41 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 568)] - public struct Struct42 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 568)] + public struct Struct42 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1016)] - public struct Struct43 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1016)] + public struct Struct43 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 4088)] - public struct Struct44 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 4088)] + public struct Struct44 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 4096)] - public struct Struct45 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 4096)] + public struct Struct45 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 36)] - public struct Struct46 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 36)] + public struct Struct46 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 576)] - public struct Struct47 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 576)] + public struct Struct47 + { + } - public static Struct22 Struct220; + public static Struct22 Struct220; - public static Struct23 Struct230; + public static Struct23 Struct230; - public static Struct24 Struct240; + public static Struct24 Struct240; - public static Struct25 Struct250; + public static Struct25 Struct250; - public static Struct24 Struct241; + public static Struct24 Struct241; - public static Struct25 Struct251; + public static Struct25 Struct251; - public static Struct24 Struct242; + public static Struct24 Struct242; - public static Struct25 Struct252; + public static Struct25 Struct252; - public static Struct24 Struct243; + public static Struct24 Struct243; - public static Struct25 Struct253; + public static Struct25 Struct253; - public static Struct24 Struct244; + public static Struct24 Struct244; - public static Struct25 Struct254; + public static Struct25 Struct254; - public static Struct24 Struct245; + public static Struct24 Struct245; - public static Struct25 Struct255; + public static Struct25 Struct255; - public static Struct24 Struct246; + public static Struct24 Struct246; - public static Struct25 Struct256; + public static Struct25 Struct256; - public static Struct24 Struct247; + public static Struct24 Struct247; - public static Struct25 Struct257; + public static Struct25 Struct257; - public static Struct24 Struct248; + public static Struct24 Struct248; - public static Struct25 Struct258; + public static Struct25 Struct258; - public static Struct26 Struct260; + public static Struct26 Struct260; - public static Struct27 Struct270; + public static Struct27 Struct270; - public static Struct28 Struct280; + public static Struct28 Struct280; - public static Struct29 Struct290; + public static Struct29 Struct290; - public static Struct27 Struct271; + public static Struct27 Struct271; - public static Struct27 Struct272; + public static Struct27 Struct272; - public static Struct30 Struct300; + public static Struct30 Struct300; - public static Struct31 Struct310; + public static Struct31 Struct310; - public static Struct31 Struct311; + public static Struct31 Struct311; - public static Struct32 Struct320; + public static Struct32 Struct320; - public static Struct32 Struct321; + public static Struct32 Struct321; - public static Struct33 Struct330; + public static Struct33 Struct330; - public static Struct33 Struct331; + public static Struct33 Struct331; - public static Struct33 Struct332; + public static Struct33 Struct332; - public static Struct33 Struct333; + public static Struct33 Struct333; - public static Struct34 Struct340; + public static Struct34 Struct340; - public static Struct29 Struct291; + public static Struct29 Struct291; - public static Struct35 Struct350; + public static Struct35 Struct350; - public static Struct35 Struct351; + public static Struct35 Struct351; - public static Struct36 Struct360; + public static Struct36 Struct360; - public static Struct37 Struct370; + public static Struct37 Struct370; - public static Struct38 Struct380; + public static Struct38 Struct380; - public static Struct30 Struct301; + public static Struct30 Struct301; - public static Struct30 Struct302; + public static Struct30 Struct302; - public static Struct30 Struct303; + public static Struct30 Struct303; - public static Struct30 Struct304; + public static Struct30 Struct304; - public static Struct30 Struct305; + public static Struct30 Struct305; - public static Struct30 Struct306; + public static Struct30 Struct306; - public static Struct30 Struct307; + public static Struct30 Struct307; - public static Struct30 Struct308; + public static Struct30 Struct308; - public static Struct32 Struct322; + public static Struct32 Struct322; - public static Struct32 Struct323; + public static Struct32 Struct323; - public static Struct32 Struct324; + public static Struct32 Struct324; - public static Struct32 Struct325; + public static Struct32 Struct325; - public static Struct39 Struct390; + public static Struct39 Struct390; - public static Struct39 Struct391; + public static Struct39 Struct391; - public static Struct39 Struct392; + public static Struct39 Struct392; - public static Struct39 Struct393; + public static Struct39 Struct393; - public static Struct30 Struct309; + public static Struct30 Struct309; - public static Struct30 Struct3010; + public static Struct30 Struct3010; - public static Struct30 Struct3011; + public static Struct30 Struct3011; - public static Struct30 Struct3012; + public static Struct30 Struct3012; - public static Struct25 Struct259; + public static Struct25 Struct259; - public static Struct40 Struct400; + public static Struct40 Struct400; - public static Struct40 Struct401; + public static Struct40 Struct401; - public static Struct41 Struct410; + public static Struct41 Struct410; - public static Struct41 Struct411; + public static Struct41 Struct411; - public static Struct42 Struct420; + public static Struct42 Struct420; - public static Struct42 Struct421; + public static Struct42 Struct421; - public static Struct42 Struct422; + public static Struct42 Struct422; - public static Struct43 Struct430; + public static Struct43 Struct430; - public static Struct43 Struct431; + public static Struct43 Struct431; - public static Struct43 Struct432; + public static Struct43 Struct432; - public static Struct44 Struct440; + public static Struct44 Struct440; - public static Struct44 Struct441; + public static Struct44 Struct441; - public static Struct44 Struct442; + public static Struct44 Struct442; - public static Struct45 Struct450; + public static Struct45 Struct450; - public static Struct41 Struct412; + public static Struct41 Struct412; - public static Struct41 Struct413; + public static Struct41 Struct413; - public static Struct32 Struct326; + public static Struct32 Struct326; - public static Struct46 Struct460; + public static Struct46 Struct460; - public static Struct39 Struct394; + public static Struct39 Struct394; - public static Struct39 Struct395; + public static Struct39 Struct395; - public static Struct39 Struct396; + public static Struct39 Struct396; - public static Struct47 Struct470; - } -} + public static Struct47 Struct470; + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class110.cs b/GHNamespaceJ/Class110.cs index 95f2e52..cd9ad55 100644 --- a/GHNamespaceJ/Class110.cs +++ b/GHNamespaceJ/Class110.cs @@ -3,734 +3,738 @@ namespace GHNamespaceJ { - public class Class110 - { - public static readonly double Double0 = 16384.0 * Math.Sqrt(2.0); + public class Class110 + { + public static readonly double Double0 = 16384.0 * Math.Sqrt(2.0); - private static readonly int[] Int0 = { - 0, - 64, - 32, - 96, - 16, - 80, - 48, - 112, - 8, - 72, - 40, - 104, - 24, - 88, - 56, - 120, - 4, - 68, - 36, - 100, - 20, - 84, - 52, - 116, - 12, - 76, - 44, - 108, - 28, - 92, - 60, - 124, - 2, - 66, - 34, - 98, - 18, - 82, - 50, - 114, - 10, - 74, - 42, - 106, - 26, - 90, - 58, - 122, - 6, - 70, - 38, - 102, - 22, - 86, - 54, - 118, - 14, - 78, - 46, - 110, - 30, - 94, - 62, - 126, - 1, - 65, - 33, - 97, - 17, - 81, - 49, - 113, - 9, - 73, - 41, - 105, - 25, - 89, - 57, - 121, - 5, - 69, - 37, - 101, - 21, - 85, - 53, - 117, - 13, - 77, - 45, - 109, - 29, - 93, - 61, - 125, - 3, - 67, - 35, - 99, - 19, - 83, - 51, - 115, - 11, - 75, - 43, - 107, - 27, - 91, - 59, - 123, - 7, - 71, - 39, - 103, - 23, - 87, - 55, - 119, - 15, - 79, - 47, - 111, - 31, - 95, - 63, - 127 - }; + private static readonly int[] Int0 = + { + 0, + 64, + 32, + 96, + 16, + 80, + 48, + 112, + 8, + 72, + 40, + 104, + 24, + 88, + 56, + 120, + 4, + 68, + 36, + 100, + 20, + 84, + 52, + 116, + 12, + 76, + 44, + 108, + 28, + 92, + 60, + 124, + 2, + 66, + 34, + 98, + 18, + 82, + 50, + 114, + 10, + 74, + 42, + 106, + 26, + 90, + 58, + 122, + 6, + 70, + 38, + 102, + 22, + 86, + 54, + 118, + 14, + 78, + 46, + 110, + 30, + 94, + 62, + 126, + 1, + 65, + 33, + 97, + 17, + 81, + 49, + 113, + 9, + 73, + 41, + 105, + 25, + 89, + 57, + 121, + 5, + 69, + 37, + 101, + 21, + 85, + 53, + 117, + 13, + 77, + 45, + 109, + 29, + 93, + 61, + 125, + 3, + 67, + 35, + 99, + 19, + 83, + 51, + 115, + 11, + 75, + 43, + 107, + 27, + 91, + 59, + 123, + 7, + 71, + 39, + 103, + 23, + 87, + 55, + 119, + 15, + 79, + 47, + 111, + 31, + 95, + 63, + 127 + }; - private static readonly int[] Int1 = { - 0, - 32, - 16, - 48, - 8, - 40, - 24, - 56, - 4, - 36, - 20, - 52, - 12, - 44, - 28, - 60, - 2, - 34, - 18, - 50, - 10, - 42, - 26, - 58, - 6, - 38, - 22, - 54, - 14, - 46, - 30, - 62, - 1, - 33, - 17, - 49, - 9, - 41, - 25, - 57, - 5, - 37, - 21, - 53, - 13, - 45, - 29, - 61, - 3, - 35, - 19, - 51, - 11, - 43, - 27, - 59, - 7, - 39, - 23, - 55, - 15, - 47, - 31, - 63 - }; + private static readonly int[] Int1 = + { + 0, + 32, + 16, + 48, + 8, + 40, + 24, + 56, + 4, + 36, + 20, + 52, + 12, + 44, + 28, + 60, + 2, + 34, + 18, + 50, + 10, + 42, + 26, + 58, + 6, + 38, + 22, + 54, + 14, + 46, + 30, + 62, + 1, + 33, + 17, + 49, + 9, + 41, + 25, + 57, + 5, + 37, + 21, + 53, + 13, + 45, + 29, + 61, + 3, + 35, + 19, + 51, + 11, + 43, + 27, + 59, + 7, + 39, + 23, + 55, + 15, + 47, + 31, + 63 + }; - private static readonly double[] Double1 = { - 0.00014, - 0.00024, - 0.00037, - 0.00051, - 0.00067, - 0.00086, - 0.00107, - 0.0013, - 0.00157, - 0.00187, - 0.0022, - 0.00256, - 0.00297, - 0.00341, - 0.0039, - 0.00443, - 0.00501, - 0.00564, - 0.00632, - 0.00706, - 0.00785, - 0.00871, - 0.00962, - 0.01061, - 0.01166, - 0.01279, - 0.01399, - 0.01526, - 0.01662, - 0.01806, - 0.01959, - 0.02121, - 0.02292, - 0.02472, - 0.02662, - 0.02863, - 0.03073, - 0.03294, - 0.03527, - 0.0377, - 0.04025, - 0.04292, - 0.04571, - 0.04862, - 0.05165, - 0.05481, - 0.0581, - 0.06153, - 0.06508, - 0.06878, - 0.07261, - 0.07658, - 0.08069, - 0.08495, - 0.08935, - 0.09389, - 0.09859, - 0.10343, - 0.10842, - 0.11356, - 0.11885, - 0.12429, - 0.12988, - 0.13563, - 0.14152, - 0.14757, - 0.15376, - 0.16011, - 0.16661, - 0.17325, - 0.18005, - 0.18699, - 0.19407, - 0.2013, - 0.20867, - 0.21618, - 0.22382, - 0.23161, - 0.23952, - 0.24757, - 0.25574, - 0.26404, - 0.27246, - 0.281, - 0.28965, - 0.29841, - 0.30729, - 0.31626, - 0.32533, - 0.3345, - 0.34376, - 0.35311, - 0.36253, - 0.37204, - 0.38161, - 0.39126, - 0.40096, - 0.41072, - 0.42054, - 0.4304, - 0.4403, - 0.45023, - 0.4602, - 0.47019, - 0.4802, - 0.49022, - 0.50025, - 0.51028, - 0.52031, - 0.53033, - 0.54033, - 0.55031, - 0.56026, - 0.57019, - 0.58007, - 0.58991, - 0.5997, - 0.60944, - 0.61912, - 0.62873, - 0.63827, - 0.64774, - 0.65713, - 0.66643, - 0.67564, - 0.68476, - 0.69377, - 0.70269, - 0.7115, - 0.72019, - 0.72877, - 0.73723, - 0.74557, - 0.75378, - 0.76186, - 0.76981, - 0.77762, - 0.7853, - 0.79283, - 0.80022, - 0.80747, - 0.81457, - 0.82151, - 0.82831, - 0.83496, - 0.84145, - 0.84779, - 0.85398, - 0.86001, - 0.86588, - 0.8716, - 0.87716, - 0.88257, - 0.88782, - 0.89291, - 0.89785, - 0.90264, - 0.90728, - 0.91176, - 0.9161, - 0.92028, - 0.92432, - 0.92822, - 0.93197, - 0.93558, - 0.93906, - 0.9424, - 0.9456, - 0.94867, - 0.95162, - 0.95444, - 0.95713, - 0.95971, - 0.96217, - 0.96451, - 0.96674, - 0.96887, - 0.97089, - 0.97281, - 0.97463, - 0.97635, - 0.97799, - 0.97953, - 0.98099, - 0.98236, - 0.98366, - 0.98488, - 0.98602, - 0.9871, - 0.98811, - 0.98905, - 0.98994, - 0.99076, - 0.99153, - 0.99225, - 0.99291, - 0.99353, - 0.99411, - 0.99464, - 0.99513, - 0.99558, - 0.996, - 0.99639, - 0.99674, - 0.99706, - 0.99736, - 0.99763, - 0.99788, - 0.99811, - 0.99831, - 0.9985, - 0.99867, - 0.99882, - 0.99895, - 0.99908, - 0.99919, - 0.99929, - 0.99938, - 0.99946, - 0.99953, - 0.99959, - 0.99965, - 0.99969, - 0.99974, - 0.99978, - 0.99981, - 0.99984, - 0.99986, - 0.99988, - 0.9999, - 0.99992, - 0.99993, - 0.99994, - 0.99995, - 0.99996, - 0.99997, - 0.99998, - 0.99998, - 0.99998, - 0.99999, - 0.99999, - 0.99999, - 0.99999, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0, - 1.0 - }; + private static readonly double[] Double1 = + { + 0.00014, + 0.00024, + 0.00037, + 0.00051, + 0.00067, + 0.00086, + 0.00107, + 0.0013, + 0.00157, + 0.00187, + 0.0022, + 0.00256, + 0.00297, + 0.00341, + 0.0039, + 0.00443, + 0.00501, + 0.00564, + 0.00632, + 0.00706, + 0.00785, + 0.00871, + 0.00962, + 0.01061, + 0.01166, + 0.01279, + 0.01399, + 0.01526, + 0.01662, + 0.01806, + 0.01959, + 0.02121, + 0.02292, + 0.02472, + 0.02662, + 0.02863, + 0.03073, + 0.03294, + 0.03527, + 0.0377, + 0.04025, + 0.04292, + 0.04571, + 0.04862, + 0.05165, + 0.05481, + 0.0581, + 0.06153, + 0.06508, + 0.06878, + 0.07261, + 0.07658, + 0.08069, + 0.08495, + 0.08935, + 0.09389, + 0.09859, + 0.10343, + 0.10842, + 0.11356, + 0.11885, + 0.12429, + 0.12988, + 0.13563, + 0.14152, + 0.14757, + 0.15376, + 0.16011, + 0.16661, + 0.17325, + 0.18005, + 0.18699, + 0.19407, + 0.2013, + 0.20867, + 0.21618, + 0.22382, + 0.23161, + 0.23952, + 0.24757, + 0.25574, + 0.26404, + 0.27246, + 0.281, + 0.28965, + 0.29841, + 0.30729, + 0.31626, + 0.32533, + 0.3345, + 0.34376, + 0.35311, + 0.36253, + 0.37204, + 0.38161, + 0.39126, + 0.40096, + 0.41072, + 0.42054, + 0.4304, + 0.4403, + 0.45023, + 0.4602, + 0.47019, + 0.4802, + 0.49022, + 0.50025, + 0.51028, + 0.52031, + 0.53033, + 0.54033, + 0.55031, + 0.56026, + 0.57019, + 0.58007, + 0.58991, + 0.5997, + 0.60944, + 0.61912, + 0.62873, + 0.63827, + 0.64774, + 0.65713, + 0.66643, + 0.67564, + 0.68476, + 0.69377, + 0.70269, + 0.7115, + 0.72019, + 0.72877, + 0.73723, + 0.74557, + 0.75378, + 0.76186, + 0.76981, + 0.77762, + 0.7853, + 0.79283, + 0.80022, + 0.80747, + 0.81457, + 0.82151, + 0.82831, + 0.83496, + 0.84145, + 0.84779, + 0.85398, + 0.86001, + 0.86588, + 0.8716, + 0.87716, + 0.88257, + 0.88782, + 0.89291, + 0.89785, + 0.90264, + 0.90728, + 0.91176, + 0.9161, + 0.92028, + 0.92432, + 0.92822, + 0.93197, + 0.93558, + 0.93906, + 0.9424, + 0.9456, + 0.94867, + 0.95162, + 0.95444, + 0.95713, + 0.95971, + 0.96217, + 0.96451, + 0.96674, + 0.96887, + 0.97089, + 0.97281, + 0.97463, + 0.97635, + 0.97799, + 0.97953, + 0.98099, + 0.98236, + 0.98366, + 0.98488, + 0.98602, + 0.9871, + 0.98811, + 0.98905, + 0.98994, + 0.99076, + 0.99153, + 0.99225, + 0.99291, + 0.99353, + 0.99411, + 0.99464, + 0.99513, + 0.99558, + 0.996, + 0.99639, + 0.99674, + 0.99706, + 0.99736, + 0.99763, + 0.99788, + 0.99811, + 0.99831, + 0.9985, + 0.99867, + 0.99882, + 0.99895, + 0.99908, + 0.99919, + 0.99929, + 0.99938, + 0.99946, + 0.99953, + 0.99959, + 0.99965, + 0.99969, + 0.99974, + 0.99978, + 0.99981, + 0.99984, + 0.99986, + 0.99988, + 0.9999, + 0.99992, + 0.99993, + 0.99994, + 0.99995, + 0.99996, + 0.99997, + 0.99998, + 0.99998, + 0.99998, + 0.99999, + 0.99999, + 0.99999, + 0.99999, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0, + 1.0 + }; - private readonly double[] _double2 = new double[128]; + private readonly double[] _double2 = new double[128]; - private readonly double[] _double3 = new double[128]; + private readonly double[] _double3 = new double[128]; - private readonly double[] _double4 = new double[64]; + private readonly double[] _double4 = new double[64]; - private readonly double[] _double5 = new double[64]; + private readonly double[] _double5 = new double[64]; - private readonly double[] _double6 = new double[64]; + private readonly double[] _double6 = new double[64]; - private readonly double[] _double7 = new double[64]; + private readonly double[] _double7 = new double[64]; - private readonly double[] _double8 = new double[128]; + private readonly double[] _double8 = new double[128]; - private readonly double[] _double9 = new double[128]; + private readonly double[] _double9 = new double[128]; - private readonly double[] _double10 = new double[64]; + private readonly double[] _double10 = new double[64]; - private readonly double[] _double11 = new double[64]; + private readonly double[] _double11 = new double[64]; - private readonly double[][] _double12 = new double[8][]; + private readonly double[][] _double12 = new double[8][]; - private readonly double[][] _double13 = new double[8][]; + private readonly double[][] _double13 = new double[8][]; - private void method_0() - { - for (var i = 0; i < 8; i++) - { - _double12[i] = new double[256]; - } - for (var j = 0; j < 8; j++) - { - _double13[j] = new double[256]; - } - } + private void method_0() + { + for (var i = 0; i < 8; i++) + { + _double12[i] = new double[256]; + } + for (var j = 0; j < 8; j++) + { + _double13[j] = new double[256]; + } + } - private void method_1(double[] double14, double[] double15, int int2, int int3) - { - var num = double14[int2]; - var num2 = double15[int2]; - double14[int2] = double14[int3]; - double15[int2] = double15[int3]; - double14[int3] = num; - double15[int3] = num2; - } + private void method_1(double[] double14, double[] double15, int int2, int int3) + { + var num = double14[int2]; + var num2 = double15[int2]; + double14[int2] = double14[int3]; + double15[int2] = double15[int3]; + double14[int3] = num; + double15[int3] = num2; + } - public virtual void vmethod_0(double[] double14, int int2, int int3, double double15) - { - for (var i = 0; i < 128; i++) - { - _double2[i] = double14[int2 + 256 - 2 * i - 1] * _double8[i] - double14[int2 + 2 * i] * _double9[i]; - _double3[i] = -1.0 * (double14[int2 + 2 * i] * _double8[i] + double14[int2 + 256 - 2 * i - 1] * _double9[i]); - } - for (var j = 0; j < 128; j++) - { - var num = Int0[j]; - if (num < j) - { - method_1(_double2, _double3, j, num); - } - } - for (var k = 0; k < 7; k++) - { - int num2; - if (k != 0) - { - num2 = 1 << k; - } - else - { - num2 = 1; - } - var num3 = 1 << k + 1; - for (var l = 0; l < num2; l++) - { - for (var m = 0; m < 128; m += num3) - { - var num4 = l + m; - var num5 = num4 + num2; - var num6 = _double2[num4]; - var num7 = _double3[num4]; - var num8 = _double2[num5] * _double12[k][l] - _double3[num5] * _double13[k][l]; - var num9 = _double3[num5] * _double12[k][l] + _double2[num5] * _double13[k][l]; - _double2[num4] = num6 + num8; - _double3[num4] = num7 + num9; - _double2[num5] = num6 - num8; - _double3[num5] = num7 - num9; - } - } - } - for (var n = 0; n < 128; n++) - { - var num6 = _double2[n]; - var num7 = -1.0 * _double3[n]; - _double2[n] = num6 * _double8[n] - num7 * _double9[n]; - _double3[n] = num6 * _double9[n] + num7 * _double8[n]; - } - var num10 = int2; - var num11 = int3; - var num12 = 0; - for (var num13 = 0; num13 < 64; num13++) - { - double14[num10++] = -_double3[64 + num13] * Double1[num12++] + double14[num11++] + double15; - double14[num10++] = _double2[64 - num13 - 1] * Double1[num12++] + double14[num11++] + double15; - } - for (var num14 = 0; num14 < 64; num14++) - { - double14[num10++] = -_double2[num14] * Double1[num12++] + double14[num11++] + double15; - double14[num10++] = _double3[128 - num14 - 1] * Double1[num12++] + double14[num11++] + double15; - } - num11 = int3; - for (var num15 = 0; num15 < 64; num15++) - { - double14[num11++] = -_double2[64 + num15] * Double1[--num12]; - double14[num11++] = _double3[64 - num15 - 1] * Double1[--num12]; - } - for (var num16 = 0; num16 < 64; num16++) - { - double14[num11++] = _double3[num16] * Double1[--num12]; - double14[num11++] = -_double2[128 - num16 - 1] * Double1[--num12]; - } - } + public virtual void vmethod_0(double[] double14, int int2, int int3, double double15) + { + for (var i = 0; i < 128; i++) + { + _double2[i] = double14[int2 + 256 - 2 * i - 1] * _double8[i] - double14[int2 + 2 * i] * _double9[i]; + _double3[i] = -1.0 * (double14[int2 + 2 * i] * _double8[i] + + double14[int2 + 256 - 2 * i - 1] * _double9[i]); + } + for (var j = 0; j < 128; j++) + { + var num = Int0[j]; + if (num < j) + { + method_1(_double2, _double3, j, num); + } + } + for (var k = 0; k < 7; k++) + { + int num2; + if (k != 0) + { + num2 = 1 << k; + } + else + { + num2 = 1; + } + var num3 = 1 << k + 1; + for (var l = 0; l < num2; l++) + { + for (var m = 0; m < 128; m += num3) + { + var num4 = l + m; + var num5 = num4 + num2; + var num6 = _double2[num4]; + var num7 = _double3[num4]; + var num8 = _double2[num5] * _double12[k][l] - _double3[num5] * _double13[k][l]; + var num9 = _double3[num5] * _double12[k][l] + _double2[num5] * _double13[k][l]; + _double2[num4] = num6 + num8; + _double3[num4] = num7 + num9; + _double2[num5] = num6 - num8; + _double3[num5] = num7 - num9; + } + } + } + for (var n = 0; n < 128; n++) + { + var num6 = _double2[n]; + var num7 = -1.0 * _double3[n]; + _double2[n] = num6 * _double8[n] - num7 * _double9[n]; + _double3[n] = num6 * _double9[n] + num7 * _double8[n]; + } + var num10 = int2; + var num11 = int3; + var num12 = 0; + for (var num13 = 0; num13 < 64; num13++) + { + double14[num10++] = -_double3[64 + num13] * Double1[num12++] + double14[num11++] + double15; + double14[num10++] = _double2[64 - num13 - 1] * Double1[num12++] + double14[num11++] + double15; + } + for (var num14 = 0; num14 < 64; num14++) + { + double14[num10++] = -_double2[num14] * Double1[num12++] + double14[num11++] + double15; + double14[num10++] = _double3[128 - num14 - 1] * Double1[num12++] + double14[num11++] + double15; + } + num11 = int3; + for (var num15 = 0; num15 < 64; num15++) + { + double14[num11++] = -_double2[64 + num15] * Double1[--num12]; + double14[num11++] = _double3[64 - num15 - 1] * Double1[--num12]; + } + for (var num16 = 0; num16 < 64; num16++) + { + double14[num11++] = _double3[num16] * Double1[--num12]; + double14[num11++] = -_double2[128 - num16 - 1] * Double1[--num12]; + } + } - public virtual void vmethod_1(double[] double14, int int2, int int3, double double15) - { - for (var i = 0; i < 64; i++) - { - var num = 2 * (128 - 2 * i - 1); - var num2 = 2 * (2 * i); - _double4[i] = double14[num] * _double10[i] - double14[num2] * _double11[i]; - _double5[i] = -1.0 * (double14[num2] * _double10[i] + double14[num] * _double11[i]); - _double6[i] = double14[num + 1] * _double10[i] - double14[num2 + 1] * _double11[i]; - _double7[i] = -1.0 * (double14[num2 + 1] * _double10[i] + double14[num + 1] * _double11[i]); - } - for (var j = 0; j < 64; j++) - { - var num3 = Int1[j]; - if (num3 < j) - { - method_1(_double4, _double5, j, num3); - method_1(_double6, _double7, j, num3); - } - } - for (var k = 0; k < 6; k++) - { - var num4 = 1 << k; - var num5 = 1 << k + 1; - if (k != 0) - { - num4 = 1 << k; - } - else - { - num4 = 1; - } - for (var l = 0; l < num4; l++) - { - for (var m = 0; m < 64; m += num5) - { - var num6 = l + m; - var num7 = num6 + num4; - var num8 = _double4[num6]; - var num9 = _double5[num6]; - var num10 = _double4[num7] * _double12[k][l] - _double5[num7] * _double13[k][l]; - var num11 = _double5[num7] * _double12[k][l] + _double4[num7] * _double13[k][l]; - _double4[num6] = num8 + num10; - _double5[num6] = num9 + num11; - _double4[num7] = num8 - num10; - _double5[num7] = num9 - num11; - num8 = _double6[num6]; - num9 = _double7[num6]; - num10 = _double6[num7] * _double12[k][l] - _double7[num7] * _double13[k][l]; - num11 = _double7[num7] * _double12[k][l] + _double6[num7] * _double13[k][l]; - _double6[num6] = num8 + num10; - _double7[num6] = num9 + num11; - _double6[num7] = num8 - num10; - _double7[num7] = num9 - num11; - } - } - } - for (var n = 0; n < 64; n++) - { - var num8 = _double4[n]; - var num9 = -_double5[n]; - _double4[n] = num8 * _double10[n] - num9 * _double11[n]; - _double5[n] = num8 * _double11[n] + num9 * _double10[n]; - num8 = _double6[n]; - num9 = -_double7[n]; - _double6[n] = num8 * _double10[n] - num9 * _double11[n]; - _double7[n] = num8 * _double11[n] + num9 * _double10[n]; - } - var num12 = int2; - var num13 = int3; - var num14 = 0; - for (var num15 = 0; num15 < 64; num15++) - { - double14[num12++] = -_double5[num15] * Double1[num14++] + double14[num13++] + double15; - double14[num12++] = _double4[64 - num15 - 1] * Double1[num14++] + double14[num13++] + double15; - } - for (var num16 = 0; num16 < 64; num16++) - { - double14[num12++] = -_double4[num16] * Double1[num14++] + double14[num13++] + double15; - double14[num12++] = _double5[64 - num16 - 1] * Double1[num14++] + double14[num13++] + double15; - } - num13 = int3; - for (var num17 = 0; num17 < 64; num17++) - { - double14[num13++] = -_double6[num17] * Double1[--num14]; - double14[num13++] = _double7[64 - num17 - 1] * Double1[--num14]; - } - for (var num18 = 0; num18 < 64; num18++) - { - double14[num13++] = _double7[num18] * Double1[--num14]; - double14[num13++] = -_double6[64 - num18 - 1] * Double1[--num14]; - } - } + public virtual void vmethod_1(double[] double14, int int2, int int3, double double15) + { + for (var i = 0; i < 64; i++) + { + var num = 2 * (128 - 2 * i - 1); + var num2 = 2 * (2 * i); + _double4[i] = double14[num] * _double10[i] - double14[num2] * _double11[i]; + _double5[i] = -1.0 * (double14[num2] * _double10[i] + double14[num] * _double11[i]); + _double6[i] = double14[num + 1] * _double10[i] - double14[num2 + 1] * _double11[i]; + _double7[i] = -1.0 * (double14[num2 + 1] * _double10[i] + double14[num + 1] * _double11[i]); + } + for (var j = 0; j < 64; j++) + { + var num3 = Int1[j]; + if (num3 < j) + { + method_1(_double4, _double5, j, num3); + method_1(_double6, _double7, j, num3); + } + } + for (var k = 0; k < 6; k++) + { + var num4 = 1 << k; + var num5 = 1 << k + 1; + if (k != 0) + { + num4 = 1 << k; + } + else + { + num4 = 1; + } + for (var l = 0; l < num4; l++) + { + for (var m = 0; m < 64; m += num5) + { + var num6 = l + m; + var num7 = num6 + num4; + var num8 = _double4[num6]; + var num9 = _double5[num6]; + var num10 = _double4[num7] * _double12[k][l] - _double5[num7] * _double13[k][l]; + var num11 = _double5[num7] * _double12[k][l] + _double4[num7] * _double13[k][l]; + _double4[num6] = num8 + num10; + _double5[num6] = num9 + num11; + _double4[num7] = num8 - num10; + _double5[num7] = num9 - num11; + num8 = _double6[num6]; + num9 = _double7[num6]; + num10 = _double6[num7] * _double12[k][l] - _double7[num7] * _double13[k][l]; + num11 = _double7[num7] * _double12[k][l] + _double6[num7] * _double13[k][l]; + _double6[num6] = num8 + num10; + _double7[num6] = num9 + num11; + _double6[num7] = num8 - num10; + _double7[num7] = num9 - num11; + } + } + } + for (var n = 0; n < 64; n++) + { + var num8 = _double4[n]; + var num9 = -_double5[n]; + _double4[n] = num8 * _double10[n] - num9 * _double11[n]; + _double5[n] = num8 * _double11[n] + num9 * _double10[n]; + num8 = _double6[n]; + num9 = -_double7[n]; + _double6[n] = num8 * _double10[n] - num9 * _double11[n]; + _double7[n] = num8 * _double11[n] + num9 * _double10[n]; + } + var num12 = int2; + var num13 = int3; + var num14 = 0; + for (var num15 = 0; num15 < 64; num15++) + { + double14[num12++] = -_double5[num15] * Double1[num14++] + double14[num13++] + double15; + double14[num12++] = _double4[64 - num15 - 1] * Double1[num14++] + double14[num13++] + double15; + } + for (var num16 = 0; num16 < 64; num16++) + { + double14[num12++] = -_double4[num16] * Double1[num14++] + double14[num13++] + double15; + double14[num12++] = _double5[64 - num16 - 1] * Double1[num14++] + double14[num13++] + double15; + } + num13 = int3; + for (var num17 = 0; num17 < 64; num17++) + { + double14[num13++] = -_double6[num17] * Double1[--num14]; + double14[num13++] = _double7[64 - num17 - 1] * Double1[--num14]; + } + for (var num18 = 0; num18 < 64; num18++) + { + double14[num13++] = _double7[num18] * Double1[--num14]; + double14[num13++] = -_double6[64 - num18 - 1] * Double1[--num14]; + } + } - public Class110() - { - method_0(); - for (var i = 0; i < 128; i++) - { - _double8[i] = -Math.Cos(0.0015339807878856412 * (8 * i + 1)); - _double9[i] = -Math.Sin(0.0015339807878856412 * (8 * i + 1)); - } - for (var i = 0; i < 64; i++) - { - _double10[i] = -Math.Cos(0.0030679615757712823 * (8 * i + 1)); - _double11[i] = -Math.Sin(0.0030679615757712823 * (8 * i + 1)); - } - for (var i = 0; i < 7; i++) - { - var num = 1 << i; - for (var j = 0; j < num; j++) - { - _double12[i][j] = Math.Cos(-3.1415926535897931 * j / num); - _double13[i][j] = Math.Sin(-3.1415926535897931 * j / num); - } - } - } + public Class110() + { + method_0(); + for (var i = 0; i < 128; i++) + { + _double8[i] = -Math.Cos(0.0015339807878856412 * (8 * i + 1)); + _double9[i] = -Math.Sin(0.0015339807878856412 * (8 * i + 1)); + } + for (var i = 0; i < 64; i++) + { + _double10[i] = -Math.Cos(0.0030679615757712823 * (8 * i + 1)); + _double11[i] = -Math.Sin(0.0030679615757712823 * (8 * i + 1)); + } + for (var i = 0; i < 7; i++) + { + var num = 1 << i; + for (var j = 0; j < num; j++) + { + _double12[i][j] = Math.Cos(-3.1415926535897931 * j / num); + _double13[i][j] = Math.Sin(-3.1415926535897931 * j / num); + } + } + } - public virtual void vmethod_2(double[] double14, int int2, Stream stream0) - { - if (int2 > 2) - { - int2 = 2; - } - var num = 0; - var array = new byte[int2 * 256 * 2]; - for (var i = 0; i < 256; i++) - { - for (var j = 0; j < int2; j++) - { - var num2 = (int)(Double0 * double14[i + 256 * j + 256]); - if (num2 > 32767) - { - num2 = 32767; - } - if (num2 < -32768) - { - num2 = -32768; - } - array[num++] = (byte)(num2 & 255); - array[num++] = (byte)(num2 >> 8 & 255); - } - } - stream0.Write(array, 0, array.Length); - } - } -} + public virtual void vmethod_2(double[] double14, int int2, Stream stream0) + { + if (int2 > 2) + { + int2 = 2; + } + var num = 0; + var array = new byte[int2 * 256 * 2]; + for (var i = 0; i < 256; i++) + { + for (var j = 0; j < int2; j++) + { + var num2 = (int) (Double0 * double14[i + 256 * j + 256]); + if (num2 > 32767) + { + num2 = 32767; + } + if (num2 < -32768) + { + num2 = -32768; + } + array[num++] = (byte) (num2 & 255); + array[num++] = (byte) (num2 >> 8 & 255); + } + } + stream0.Write(array, 0, array.Length); + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class112.cs b/GHNamespaceJ/Class112.cs index decd50b..f5b4dc1 100644 --- a/GHNamespaceJ/Class112.cs +++ b/GHNamespaceJ/Class112.cs @@ -2,99 +2,99 @@ namespace GHNamespaceJ { - public class Class112 : ICloneable - { - public long Long0 = -1L; + public class Class112 : ICloneable + { + public long Long0 = -1L; - public long Long1 = -1L; + public long Long1 = -1L; - public int Int0; + public int Int0; - public object Object0; + public object Object0; - public object Object1; + public object Object1; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public long Long2 = Long3; + public long Long2 = Long3; - public static readonly long Long3 = 9223372036854775806L; + public static readonly long Long3 = 9223372036854775806L; - public virtual object Clone() - { - return new Class112 - { - Long1 = Long1, - Int0 = Int0, - Object1 = smethod_0(Object1, true), - Int1 = Int1, - Int2 = Int2, - Long2 = Long2, - Long0 = Long0, - Object0 = smethod_0(Object0, true) - }; - } + public virtual object Clone() + { + return new Class112 + { + Long1 = Long1, + Int0 = Int0, + Object1 = smethod_0(Object1, true), + Int1 = Int1, + Int2 = Int2, + Long2 = Long2, + Long0 = Long0, + Object0 = smethod_0(Object0, true) + }; + } - private static object smethod_0(object object2, bool bool0) - { - if (object2 == null) - { - return null; - } - if (!object2.GetType().IsArray) - { - throw new ArgumentException(); - } - int num; - object obj; - if (object2.GetType() == typeof(byte[])) - { - num = ((byte[])object2).Length; - obj = new byte[num]; - } - else if (object2.GetType() == typeof(int[])) - { - num = ((int[])object2).Length; - obj = new int[num]; - } - else if (object2.GetType() == typeof(short[])) - { - num = ((short[])object2).Length; - obj = new short[num]; - } - else if (!bool0 && object2.GetType() == typeof(float[])) - { - num = ((float[])object2).Length; - obj = new float[num]; - } - else if (!bool0 && object2.GetType() == typeof(double[])) - { - num = ((double[])object2).Length; - obj = new double[num]; - } - else if (!bool0 && object2.GetType() == typeof(bool[])) - { - num = ((bool[])object2).Length; - obj = new bool[num]; - } - else if (!bool0 && object2.GetType() == typeof(long[])) - { - num = ((long[])object2).Length; - obj = new long[num]; - } - else - { - if (bool0 || object2.GetType() != typeof(char[])) - { - return object2; - } - num = ((char[])object2).Length; - obj = new char[num]; - } - Array.Copy((Array)object2, 0, (Array)obj, 0, num); - return obj; - } - } -} + private static object smethod_0(object object2, bool bool0) + { + if (object2 == null) + { + return null; + } + if (!object2.GetType().IsArray) + { + throw new ArgumentException(); + } + int num; + object obj; + if (object2.GetType() == typeof(byte[])) + { + num = ((byte[]) object2).Length; + obj = new byte[num]; + } + else if (object2.GetType() == typeof(int[])) + { + num = ((int[]) object2).Length; + obj = new int[num]; + } + else if (object2.GetType() == typeof(short[])) + { + num = ((short[]) object2).Length; + obj = new short[num]; + } + else if (!bool0 && object2.GetType() == typeof(float[])) + { + num = ((float[]) object2).Length; + obj = new float[num]; + } + else if (!bool0 && object2.GetType() == typeof(double[])) + { + num = ((double[]) object2).Length; + obj = new double[num]; + } + else if (!bool0 && object2.GetType() == typeof(bool[])) + { + num = ((bool[]) object2).Length; + obj = new bool[num]; + } + else if (!bool0 && object2.GetType() == typeof(long[])) + { + num = ((long[]) object2).Length; + obj = new long[num]; + } + else + { + if (bool0 || object2.GetType() != typeof(char[])) + { + return object2; + } + num = ((char[]) object2).Length; + obj = new char[num]; + } + Array.Copy((Array) object2, 0, (Array) obj, 0, num); + return obj; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class113.cs b/GHNamespaceJ/Class113.cs index 9972b51..ca3499c 100644 --- a/GHNamespaceJ/Class113.cs +++ b/GHNamespaceJ/Class113.cs @@ -1,34 +1,34 @@ namespace GHNamespaceJ { - public class Class113 - { - public int Int0; + public class Class113 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - private readonly double[] _double0 = new double[256]; + private readonly double[] _double0 = new double[256]; - private readonly double[] _double1 = new double[256]; + private readonly double[] _double1 = new double[256]; - private readonly double[] _double2 = new double[256]; + private readonly double[] _double2 = new double[256]; - private readonly double[] _double3 = new double[256]; + private readonly double[] _double3 = new double[256]; - public virtual double[] vmethod_0() - { - return _double0; - } + public virtual double[] vmethod_0() + { + return _double0; + } - public virtual double[] vmethod_1() - { - return _double1; - } + public virtual double[] vmethod_1() + { + return _double1; + } - public virtual double[] vmethod_2() - { - return _double3; - } - } -} + public virtual double[] vmethod_2() + { + return _double3; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class114.cs b/GHNamespaceJ/Class114.cs index 788a023..a90af10 100644 --- a/GHNamespaceJ/Class114.cs +++ b/GHNamespaceJ/Class114.cs @@ -1,2320 +1,2321 @@ namespace GHNamespaceJ { - public class Class114 - { - public static byte[] smethod_0() - { - return new byte[] - { - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 25, - 25, - 25 - }; - } + public class Class114 + { + public static byte[] smethod_0() + { + return new byte[] + { + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 25, + 25, + 25 + }; + } - public static byte[] smethod_1() - { - return new byte[] - { - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 126, - 126, - 126, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 25, - 25, - 25 - }; - } + public static byte[] smethod_1() + { + return new byte[] + { + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 126, + 126, + 126, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 25, + 25, + 25 + }; + } - public static byte[] smethod_2() - { - return new byte[] - { - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 126, - 127, - 0, - 1, - 2, - 25, - 25, - 25 - }; - } + public static byte[] smethod_2() + { + return new byte[] + { + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 126, + 127, + 0, + 1, + 2, + 25, + 25, + 25 + }; + } - public static int[] smethod_3() - { - int[] array = { - 0, - 40977, - 57395, - 16418, - 24695, - 49254, - 32836, - 8277, - 49390, - 24831, - 8413, - 32972, - 41113, - 136, - 16554, - 57531, - 8653, - 33244, - 49662, - 25071, - 16826, - 57771, - 41353, - 408, - 57635, - 16690, - 272, - 41217, - 33108, - 8517, - 24935, - 49526, - 17306, - 58251, - 41897, - 952, - 9197, - 33788, - 50142, - 25551, - 33652, - 9061, - 25415, - 50006, - 58115, - 17170, - 816, - 41761, - 25175, - 49734, - 33380, - 8821, - 544, - 41521, - 57875, - 16898, - 41657, - 680, - 17034, - 58011, - 49870, - 25311, - 8957, - 33516, - 34612, - 10021, - 26375, - 50966, - 59203, - 18258, - 1904, - 42849, - 18394, - 59339, - 42985, - 2040, - 10157, - 34748, - 51102, - 26511, - 42745, - 1768, - 18122, - 59099, - 50830, - 26271, - 9917, - 34476, - 26135, - 50694, - 34340, - 9781, - 1632, - 42609, - 58963, - 17986, - 50350, - 25791, - 9373, - 33932, - 42201, - 1224, - 17642, - 58619, - 1088, - 42065, - 58483, - 17506, - 25655, - 50214, - 33796, - 9237, - 58723, - 17778, - 1360, - 42305, - 34068, - 9477, - 25895, - 50486, - 9613, - 34204, - 50622, - 26031, - 17914, - 58859, - 42441, - 1496, - 44665, - 3688, - 20042, - 61019, - 52750, - 28191, - 11837, - 36396, - 28311, - 52870, - 36516, - 11957, - 3808, - 44785, - 61139, - 20162, - 36788, - 12197, - 28551, - 53142, - 61379, - 20434, - 4080, - 45025, - 20314, - 61259, - 44905, - 3960, - 12077, - 36668, - 53022, - 28431, - 60899, - 19954, - 3536, - 44481, - 36244, - 11653, - 28071, - 52662, - 11533, - 36124, - 52542, - 27951, - 19834, - 60779, - 44361, - 3416, - 52270, - 27711, - 11293, - 35852, - 44121, - 3144, - 19562, - 60539, - 3264, - 44241, - 60659, - 19682, - 27831, - 52390, - 35972, - 11413, - 10573, - 35164, - 51582, - 26991, - 18746, - 59691, - 43273, - 2328, - 59811, - 18866, - 2448, - 43393, - 35284, - 10693, - 27111, - 51702, - 2176, - 43153, - 59571, - 18594, - 26871, - 51430, - 35012, - 10453, - 51310, - 26751, - 10333, - 34892, - 43033, - 2056, - 18474, - 59451, - 27351, - 51910, - 35556, - 10997, - 2720, - 43697, - 60051, - 19074, - 43577, - 2600, - 18954, - 59931, - 51790, - 27231, - 10877, - 35436, - 19226, - 60171, - 43817, - 2872, - 11117, - 35708, - 52062, - 27471, - 35828, - 11237, - 27591, - 52182, - 60291, - 19346, - 2992, - 43937 - }; - for (var i = 0; i < array.Length; i++) - { - if ((array[i] & 32768) != 0) - { - array[i] |= -65536; - } - } - return array; - } + public static int[] smethod_3() + { + int[] array = + { + 0, + 40977, + 57395, + 16418, + 24695, + 49254, + 32836, + 8277, + 49390, + 24831, + 8413, + 32972, + 41113, + 136, + 16554, + 57531, + 8653, + 33244, + 49662, + 25071, + 16826, + 57771, + 41353, + 408, + 57635, + 16690, + 272, + 41217, + 33108, + 8517, + 24935, + 49526, + 17306, + 58251, + 41897, + 952, + 9197, + 33788, + 50142, + 25551, + 33652, + 9061, + 25415, + 50006, + 58115, + 17170, + 816, + 41761, + 25175, + 49734, + 33380, + 8821, + 544, + 41521, + 57875, + 16898, + 41657, + 680, + 17034, + 58011, + 49870, + 25311, + 8957, + 33516, + 34612, + 10021, + 26375, + 50966, + 59203, + 18258, + 1904, + 42849, + 18394, + 59339, + 42985, + 2040, + 10157, + 34748, + 51102, + 26511, + 42745, + 1768, + 18122, + 59099, + 50830, + 26271, + 9917, + 34476, + 26135, + 50694, + 34340, + 9781, + 1632, + 42609, + 58963, + 17986, + 50350, + 25791, + 9373, + 33932, + 42201, + 1224, + 17642, + 58619, + 1088, + 42065, + 58483, + 17506, + 25655, + 50214, + 33796, + 9237, + 58723, + 17778, + 1360, + 42305, + 34068, + 9477, + 25895, + 50486, + 9613, + 34204, + 50622, + 26031, + 17914, + 58859, + 42441, + 1496, + 44665, + 3688, + 20042, + 61019, + 52750, + 28191, + 11837, + 36396, + 28311, + 52870, + 36516, + 11957, + 3808, + 44785, + 61139, + 20162, + 36788, + 12197, + 28551, + 53142, + 61379, + 20434, + 4080, + 45025, + 20314, + 61259, + 44905, + 3960, + 12077, + 36668, + 53022, + 28431, + 60899, + 19954, + 3536, + 44481, + 36244, + 11653, + 28071, + 52662, + 11533, + 36124, + 52542, + 27951, + 19834, + 60779, + 44361, + 3416, + 52270, + 27711, + 11293, + 35852, + 44121, + 3144, + 19562, + 60539, + 3264, + 44241, + 60659, + 19682, + 27831, + 52390, + 35972, + 11413, + 10573, + 35164, + 51582, + 26991, + 18746, + 59691, + 43273, + 2328, + 59811, + 18866, + 2448, + 43393, + 35284, + 10693, + 27111, + 51702, + 2176, + 43153, + 59571, + 18594, + 26871, + 51430, + 35012, + 10453, + 51310, + 26751, + 10333, + 34892, + 43033, + 2056, + 18474, + 59451, + 27351, + 51910, + 35556, + 10997, + 2720, + 43697, + 60051, + 19074, + 43577, + 2600, + 18954, + 59931, + 51790, + 27231, + 10877, + 35436, + 19226, + 60171, + 43817, + 2872, + 11117, + 35708, + 52062, + 27471, + 35828, + 11237, + 27591, + 52182, + 60291, + 19346, + 2992, + 43937 + }; + for (var i = 0; i < array.Length; i++) + { + if ((array[i] & 32768) != 0) + { + array[i] |= -65536; + } + } + return array; + } - public static double[] smethod_4() - { - return new[] - { - 3.0517578125E-05, - 1.52587890625E-05, - 7.62939453125E-06, - 3.814697265625E-06, - 1.9073486328125E-06, - 9.5367431640625E-07, - 4.76837158203125E-07, - 2.384185791015625E-07, - 1.1920928955078125E-07, - 5.9604644775390625E-08, - 2.9802322387695313E-08, - 1.4901161193847656E-08, - 7.4505805969238281E-09, - 3.7252902984619141E-09, - 1.862645149230957E-09, - 9.3132257461547852E-10, - 4.6566128730773926E-10, - 2.3283064365386963E-10, - 1.1641532182693481E-10, - 5.8207660913467407E-11, - 2.9103830456733704E-11, - 1.4551915228366852E-11, - 7.2759576141834259E-12, - 3.637978807091713E-12, - 1.8189894035458565E-12 - }; - } + public static double[] smethod_4() + { + return new[] + { + 3.0517578125E-05, + 1.52587890625E-05, + 7.62939453125E-06, + 3.814697265625E-06, + 1.9073486328125E-06, + 9.5367431640625E-07, + 4.76837158203125E-07, + 2.384185791015625E-07, + 1.1920928955078125E-07, + 5.9604644775390625E-08, + 2.9802322387695313E-08, + 1.4901161193847656E-08, + 7.4505805969238281E-09, + 3.7252902984619141E-09, + 1.862645149230957E-09, + 9.3132257461547852E-10, + 4.6566128730773926E-10, + 2.3283064365386963E-10, + 1.1641532182693481E-10, + 5.8207660913467407E-11, + 2.9103830456733704E-11, + 1.4551915228366852E-11, + 7.2759576141834259E-12, + 3.637978807091713E-12, + 1.8189894035458565E-12 + }; + } - public static double[] smethod_5() - { - var num = -21845.333333333332; - var num2 = 0.0; - var num3 = 21845.333333333332; - var array = new double[32]; - array[0] = num; - array[1] = num; - array[2] = num; - array[3] = num; - array[4] = num; - array[5] = num; - array[6] = num; - array[7] = num; - array[8] = num; - array[9] = num2; - array[10] = num2; - array[11] = num2; - array[12] = num2; - array[13] = num2; - array[14] = num2; - array[15] = num2; - array[16] = num2; - array[17] = num2; - array[18] = num3; - array[19] = num3; - array[20] = num3; - array[21] = num3; - array[22] = num3; - array[23] = num3; - array[24] = num3; - array[25] = num3; - array[26] = num3; - return array; - } + public static double[] smethod_5() + { + var num = -21845.333333333332; + var num2 = 0.0; + var num3 = 21845.333333333332; + var array = new double[32]; + array[0] = num; + array[1] = num; + array[2] = num; + array[3] = num; + array[4] = num; + array[5] = num; + array[6] = num; + array[7] = num; + array[8] = num; + array[9] = num2; + array[10] = num2; + array[11] = num2; + array[12] = num2; + array[13] = num2; + array[14] = num2; + array[15] = num2; + array[16] = num2; + array[17] = num2; + array[18] = num3; + array[19] = num3; + array[20] = num3; + array[21] = num3; + array[22] = num3; + array[23] = num3; + array[24] = num3; + array[25] = num3; + array[26] = num3; + return array; + } - public static double[] smethod_6() - { - var num = -21845.333333333332; - var num2 = 0.0; - var num3 = 21845.333333333332; - var array = new double[32]; - array[0] = num; - array[1] = num; - array[2] = num; - array[3] = num2; - array[4] = num2; - array[5] = num2; - array[6] = num3; - array[7] = num3; - array[8] = num3; - array[9] = num; - array[10] = num; - array[11] = num; - array[12] = num2; - array[13] = num2; - array[14] = num2; - array[15] = num3; - array[16] = num3; - array[17] = num3; - array[18] = num; - array[19] = num; - array[20] = num; - array[21] = num2; - array[22] = num2; - array[23] = num2; - array[24] = num3; - array[25] = num3; - array[26] = num3; - return array; - } + public static double[] smethod_6() + { + var num = -21845.333333333332; + var num2 = 0.0; + var num3 = 21845.333333333332; + var array = new double[32]; + array[0] = num; + array[1] = num; + array[2] = num; + array[3] = num2; + array[4] = num2; + array[5] = num2; + array[6] = num3; + array[7] = num3; + array[8] = num3; + array[9] = num; + array[10] = num; + array[11] = num; + array[12] = num2; + array[13] = num2; + array[14] = num2; + array[15] = num3; + array[16] = num3; + array[17] = num3; + array[18] = num; + array[19] = num; + array[20] = num; + array[21] = num2; + array[22] = num2; + array[23] = num2; + array[24] = num3; + array[25] = num3; + array[26] = num3; + return array; + } - public static double[] smethod_7() - { - var num = -21845.333333333332; - var num2 = 0.0; - var num3 = 21845.333333333332; - var array = new double[32]; - array[0] = num; - array[1] = num2; - array[2] = num3; - array[3] = num; - array[4] = num2; - array[5] = num3; - array[6] = num; - array[7] = num2; - array[8] = num3; - array[9] = num; - array[10] = num2; - array[11] = num3; - array[12] = num; - array[13] = num2; - array[14] = num3; - array[15] = num; - array[16] = num2; - array[17] = num3; - array[18] = num; - array[19] = num2; - array[20] = num3; - array[21] = num; - array[22] = num2; - array[23] = num3; - array[24] = num; - array[25] = num2; - array[26] = num3; - return array; - } + public static double[] smethod_7() + { + var num = -21845.333333333332; + var num2 = 0.0; + var num3 = 21845.333333333332; + var array = new double[32]; + array[0] = num; + array[1] = num2; + array[2] = num3; + array[3] = num; + array[4] = num2; + array[5] = num3; + array[6] = num; + array[7] = num2; + array[8] = num3; + array[9] = num; + array[10] = num2; + array[11] = num3; + array[12] = num; + array[13] = num2; + array[14] = num3; + array[15] = num; + array[16] = num2; + array[17] = num3; + array[18] = num; + array[19] = num2; + array[20] = num3; + array[21] = num; + array[22] = num2; + array[23] = num3; + array[24] = num; + array[25] = num2; + array[26] = num3; + return array; + } - public static double[] smethod_8() - { - var num = -26214.4; - var num2 = -13107.2; - var num3 = 0.0; - var num4 = 13107.2; - var num5 = 26214.4; - var array = new double[128]; - array[0] = num; - array[1] = num; - array[2] = num; - array[3] = num; - array[4] = num; - array[5] = num; - array[6] = num; - array[7] = num; - array[8] = num; - array[9] = num; - array[10] = num; - array[11] = num; - array[12] = num; - array[13] = num; - array[14] = num; - array[15] = num; - array[16] = num; - array[17] = num; - array[18] = num; - array[19] = num; - array[20] = num; - array[21] = num; - array[22] = num; - array[23] = num; - array[24] = num; - array[25] = num2; - array[26] = num2; - array[27] = num2; - array[28] = num2; - array[29] = num2; - array[30] = num2; - array[31] = num2; - array[32] = num2; - array[33] = num2; - array[34] = num2; - array[35] = num2; - array[36] = num2; - array[37] = num2; - array[38] = num2; - array[39] = num2; - array[40] = num2; - array[41] = num2; - array[42] = num2; - array[43] = num2; - array[44] = num2; - array[45] = num2; - array[46] = num2; - array[47] = num2; - array[48] = num2; - array[49] = num2; - array[50] = num3; - array[51] = num3; - array[52] = num3; - array[53] = num3; - array[54] = num3; - array[55] = num3; - array[56] = num3; - array[57] = num3; - array[58] = num3; - array[59] = num3; - array[60] = num3; - array[61] = num3; - array[62] = num3; - array[63] = num3; - array[64] = num3; - array[65] = num3; - array[66] = num3; - array[67] = num3; - array[68] = num3; - array[69] = num3; - array[70] = num3; - array[71] = num3; - array[72] = num3; - array[73] = num3; - array[74] = num3; - array[75] = num4; - array[76] = num4; - array[77] = num4; - array[78] = num4; - array[79] = num4; - array[80] = num4; - array[81] = num4; - array[82] = num4; - array[83] = num4; - array[84] = num4; - array[85] = num4; - array[86] = num4; - array[87] = num4; - array[88] = num4; - array[89] = num4; - array[90] = num4; - array[91] = num4; - array[92] = num4; - array[93] = num4; - array[94] = num4; - array[95] = num4; - array[96] = num4; - array[97] = num4; - array[98] = num4; - array[99] = num4; - array[100] = num5; - array[101] = num5; - array[102] = num5; - array[103] = num5; - array[104] = num5; - array[105] = num5; - array[106] = num5; - array[107] = num5; - array[108] = num5; - array[109] = num5; - array[110] = num5; - array[111] = num5; - array[112] = num5; - array[113] = num5; - array[114] = num5; - array[115] = num5; - array[116] = num5; - array[117] = num5; - array[118] = num5; - array[119] = num5; - array[120] = num5; - array[121] = num5; - array[122] = num5; - array[123] = num5; - array[124] = num5; - return array; - } + public static double[] smethod_8() + { + var num = -26214.4; + var num2 = -13107.2; + var num3 = 0.0; + var num4 = 13107.2; + var num5 = 26214.4; + var array = new double[128]; + array[0] = num; + array[1] = num; + array[2] = num; + array[3] = num; + array[4] = num; + array[5] = num; + array[6] = num; + array[7] = num; + array[8] = num; + array[9] = num; + array[10] = num; + array[11] = num; + array[12] = num; + array[13] = num; + array[14] = num; + array[15] = num; + array[16] = num; + array[17] = num; + array[18] = num; + array[19] = num; + array[20] = num; + array[21] = num; + array[22] = num; + array[23] = num; + array[24] = num; + array[25] = num2; + array[26] = num2; + array[27] = num2; + array[28] = num2; + array[29] = num2; + array[30] = num2; + array[31] = num2; + array[32] = num2; + array[33] = num2; + array[34] = num2; + array[35] = num2; + array[36] = num2; + array[37] = num2; + array[38] = num2; + array[39] = num2; + array[40] = num2; + array[41] = num2; + array[42] = num2; + array[43] = num2; + array[44] = num2; + array[45] = num2; + array[46] = num2; + array[47] = num2; + array[48] = num2; + array[49] = num2; + array[50] = num3; + array[51] = num3; + array[52] = num3; + array[53] = num3; + array[54] = num3; + array[55] = num3; + array[56] = num3; + array[57] = num3; + array[58] = num3; + array[59] = num3; + array[60] = num3; + array[61] = num3; + array[62] = num3; + array[63] = num3; + array[64] = num3; + array[65] = num3; + array[66] = num3; + array[67] = num3; + array[68] = num3; + array[69] = num3; + array[70] = num3; + array[71] = num3; + array[72] = num3; + array[73] = num3; + array[74] = num3; + array[75] = num4; + array[76] = num4; + array[77] = num4; + array[78] = num4; + array[79] = num4; + array[80] = num4; + array[81] = num4; + array[82] = num4; + array[83] = num4; + array[84] = num4; + array[85] = num4; + array[86] = num4; + array[87] = num4; + array[88] = num4; + array[89] = num4; + array[90] = num4; + array[91] = num4; + array[92] = num4; + array[93] = num4; + array[94] = num4; + array[95] = num4; + array[96] = num4; + array[97] = num4; + array[98] = num4; + array[99] = num4; + array[100] = num5; + array[101] = num5; + array[102] = num5; + array[103] = num5; + array[104] = num5; + array[105] = num5; + array[106] = num5; + array[107] = num5; + array[108] = num5; + array[109] = num5; + array[110] = num5; + array[111] = num5; + array[112] = num5; + array[113] = num5; + array[114] = num5; + array[115] = num5; + array[116] = num5; + array[117] = num5; + array[118] = num5; + array[119] = num5; + array[120] = num5; + array[121] = num5; + array[122] = num5; + array[123] = num5; + array[124] = num5; + return array; + } - public static double[] smethod_9() - { - var num = -26214.4; - var num2 = -13107.2; - var num3 = 0.0; - var num4 = 13107.2; - var num5 = 26214.4; - var array = new double[128]; - array[0] = num; - array[1] = num; - array[2] = num; - array[3] = num; - array[4] = num; - array[5] = num2; - array[6] = num2; - array[7] = num2; - array[8] = num2; - array[9] = num2; - array[10] = num3; - array[11] = num3; - array[12] = num3; - array[13] = num3; - array[14] = num3; - array[15] = num4; - array[16] = num4; - array[17] = num4; - array[18] = num4; - array[19] = num4; - array[20] = num5; - array[21] = num5; - array[22] = num5; - array[23] = num5; - array[24] = num5; - array[25] = num; - array[26] = num; - array[27] = num; - array[28] = num; - array[29] = num; - array[30] = num2; - array[31] = num2; - array[32] = num2; - array[33] = num2; - array[34] = num2; - array[35] = num3; - array[36] = num3; - array[37] = num3; - array[38] = num3; - array[39] = num3; - array[40] = num4; - array[41] = num4; - array[42] = num4; - array[43] = num4; - array[44] = num4; - array[45] = num5; - array[46] = num5; - array[47] = num5; - array[48] = num5; - array[49] = num5; - array[50] = num; - array[51] = num; - array[52] = num; - array[53] = num; - array[54] = num; - array[55] = num2; - array[56] = num2; - array[57] = num2; - array[58] = num2; - array[59] = num2; - array[60] = num3; - array[61] = num3; - array[62] = num3; - array[63] = num3; - array[64] = num3; - array[65] = num4; - array[66] = num4; - array[67] = num4; - array[68] = num4; - array[69] = num4; - array[70] = num5; - array[71] = num5; - array[72] = num5; - array[73] = num5; - array[74] = num5; - array[75] = num; - array[76] = num; - array[77] = num; - array[78] = num; - array[79] = num; - array[80] = num2; - array[81] = num2; - array[82] = num2; - array[83] = num2; - array[84] = num2; - array[85] = num3; - array[86] = num3; - array[87] = num3; - array[88] = num3; - array[89] = num3; - array[90] = num4; - array[91] = num4; - array[92] = num4; - array[93] = num4; - array[94] = num4; - array[95] = num5; - array[96] = num5; - array[97] = num5; - array[98] = num5; - array[99] = num5; - array[100] = num; - array[101] = num; - array[102] = num; - array[103] = num; - array[104] = num; - array[105] = num2; - array[106] = num2; - array[107] = num2; - array[108] = num2; - array[109] = num2; - array[110] = num3; - array[111] = num3; - array[112] = num3; - array[113] = num3; - array[114] = num3; - array[115] = num4; - array[116] = num4; - array[117] = num4; - array[118] = num4; - array[119] = num4; - array[120] = num5; - array[121] = num5; - array[122] = num5; - array[123] = num5; - array[124] = num5; - return array; - } + public static double[] smethod_9() + { + var num = -26214.4; + var num2 = -13107.2; + var num3 = 0.0; + var num4 = 13107.2; + var num5 = 26214.4; + var array = new double[128]; + array[0] = num; + array[1] = num; + array[2] = num; + array[3] = num; + array[4] = num; + array[5] = num2; + array[6] = num2; + array[7] = num2; + array[8] = num2; + array[9] = num2; + array[10] = num3; + array[11] = num3; + array[12] = num3; + array[13] = num3; + array[14] = num3; + array[15] = num4; + array[16] = num4; + array[17] = num4; + array[18] = num4; + array[19] = num4; + array[20] = num5; + array[21] = num5; + array[22] = num5; + array[23] = num5; + array[24] = num5; + array[25] = num; + array[26] = num; + array[27] = num; + array[28] = num; + array[29] = num; + array[30] = num2; + array[31] = num2; + array[32] = num2; + array[33] = num2; + array[34] = num2; + array[35] = num3; + array[36] = num3; + array[37] = num3; + array[38] = num3; + array[39] = num3; + array[40] = num4; + array[41] = num4; + array[42] = num4; + array[43] = num4; + array[44] = num4; + array[45] = num5; + array[46] = num5; + array[47] = num5; + array[48] = num5; + array[49] = num5; + array[50] = num; + array[51] = num; + array[52] = num; + array[53] = num; + array[54] = num; + array[55] = num2; + array[56] = num2; + array[57] = num2; + array[58] = num2; + array[59] = num2; + array[60] = num3; + array[61] = num3; + array[62] = num3; + array[63] = num3; + array[64] = num3; + array[65] = num4; + array[66] = num4; + array[67] = num4; + array[68] = num4; + array[69] = num4; + array[70] = num5; + array[71] = num5; + array[72] = num5; + array[73] = num5; + array[74] = num5; + array[75] = num; + array[76] = num; + array[77] = num; + array[78] = num; + array[79] = num; + array[80] = num2; + array[81] = num2; + array[82] = num2; + array[83] = num2; + array[84] = num2; + array[85] = num3; + array[86] = num3; + array[87] = num3; + array[88] = num3; + array[89] = num3; + array[90] = num4; + array[91] = num4; + array[92] = num4; + array[93] = num4; + array[94] = num4; + array[95] = num5; + array[96] = num5; + array[97] = num5; + array[98] = num5; + array[99] = num5; + array[100] = num; + array[101] = num; + array[102] = num; + array[103] = num; + array[104] = num; + array[105] = num2; + array[106] = num2; + array[107] = num2; + array[108] = num2; + array[109] = num2; + array[110] = num3; + array[111] = num3; + array[112] = num3; + array[113] = num3; + array[114] = num3; + array[115] = num4; + array[116] = num4; + array[117] = num4; + array[118] = num4; + array[119] = num4; + array[120] = num5; + array[121] = num5; + array[122] = num5; + array[123] = num5; + array[124] = num5; + return array; + } - public static double[] smethod_10() - { - var num = -26214.4; - var num2 = -13107.2; - var num3 = 0.0; - var num4 = 13107.2; - var num5 = 26214.4; - var array = new double[128]; - array[0] = num; - array[1] = num2; - array[2] = num3; - array[3] = num4; - array[4] = num5; - array[5] = num; - array[6] = num2; - array[7] = num3; - array[8] = num4; - array[9] = num5; - array[10] = num; - array[11] = num2; - array[12] = num3; - array[13] = num4; - array[14] = num5; - array[15] = num; - array[16] = num2; - array[17] = num3; - array[18] = num4; - array[19] = num5; - array[20] = num; - array[21] = num2; - array[22] = num3; - array[23] = num4; - array[24] = num5; - array[25] = num; - array[26] = num2; - array[27] = num3; - array[28] = num4; - array[29] = num5; - array[30] = num; - array[31] = num2; - array[32] = num3; - array[33] = num4; - array[34] = num5; - array[35] = num; - array[36] = num2; - array[37] = num3; - array[38] = num4; - array[39] = num5; - array[40] = num; - array[41] = num2; - array[42] = num3; - array[43] = num4; - array[44] = num5; - array[45] = num; - array[46] = num2; - array[47] = num3; - array[48] = num4; - array[49] = num5; - array[50] = num; - array[51] = num2; - array[52] = num3; - array[53] = num4; - array[54] = num5; - array[55] = num; - array[56] = num2; - array[57] = num3; - array[58] = num4; - array[59] = num5; - array[60] = num; - array[61] = num2; - array[62] = num3; - array[63] = num4; - array[64] = num5; - array[65] = num; - array[66] = num2; - array[67] = num3; - array[68] = num4; - array[69] = num5; - array[70] = num; - array[71] = num2; - array[72] = num3; - array[73] = num4; - array[74] = num5; - array[75] = num; - array[76] = num2; - array[77] = num3; - array[78] = num4; - array[79] = num5; - array[80] = num; - array[81] = num2; - array[82] = num3; - array[83] = num4; - array[84] = num5; - array[85] = num; - array[86] = num2; - array[87] = num3; - array[88] = num4; - array[89] = num5; - array[90] = num; - array[91] = num2; - array[92] = num3; - array[93] = num4; - array[94] = num5; - array[95] = num; - array[96] = num2; - array[97] = num3; - array[98] = num4; - array[99] = num5; - array[100] = num; - array[101] = num2; - array[102] = num3; - array[103] = num4; - array[104] = num5; - array[105] = num; - array[106] = num2; - array[107] = num3; - array[108] = num4; - array[109] = num5; - array[110] = num; - array[111] = num2; - array[112] = num3; - array[113] = num4; - array[114] = num5; - array[115] = num; - array[116] = num2; - array[117] = num3; - array[118] = num4; - array[119] = num5; - array[120] = num; - array[121] = num2; - array[122] = num3; - array[123] = num4; - array[124] = num5; - return array; - } + public static double[] smethod_10() + { + var num = -26214.4; + var num2 = -13107.2; + var num3 = 0.0; + var num4 = 13107.2; + var num5 = 26214.4; + var array = new double[128]; + array[0] = num; + array[1] = num2; + array[2] = num3; + array[3] = num4; + array[4] = num5; + array[5] = num; + array[6] = num2; + array[7] = num3; + array[8] = num4; + array[9] = num5; + array[10] = num; + array[11] = num2; + array[12] = num3; + array[13] = num4; + array[14] = num5; + array[15] = num; + array[16] = num2; + array[17] = num3; + array[18] = num4; + array[19] = num5; + array[20] = num; + array[21] = num2; + array[22] = num3; + array[23] = num4; + array[24] = num5; + array[25] = num; + array[26] = num2; + array[27] = num3; + array[28] = num4; + array[29] = num5; + array[30] = num; + array[31] = num2; + array[32] = num3; + array[33] = num4; + array[34] = num5; + array[35] = num; + array[36] = num2; + array[37] = num3; + array[38] = num4; + array[39] = num5; + array[40] = num; + array[41] = num2; + array[42] = num3; + array[43] = num4; + array[44] = num5; + array[45] = num; + array[46] = num2; + array[47] = num3; + array[48] = num4; + array[49] = num5; + array[50] = num; + array[51] = num2; + array[52] = num3; + array[53] = num4; + array[54] = num5; + array[55] = num; + array[56] = num2; + array[57] = num3; + array[58] = num4; + array[59] = num5; + array[60] = num; + array[61] = num2; + array[62] = num3; + array[63] = num4; + array[64] = num5; + array[65] = num; + array[66] = num2; + array[67] = num3; + array[68] = num4; + array[69] = num5; + array[70] = num; + array[71] = num2; + array[72] = num3; + array[73] = num4; + array[74] = num5; + array[75] = num; + array[76] = num2; + array[77] = num3; + array[78] = num4; + array[79] = num5; + array[80] = num; + array[81] = num2; + array[82] = num3; + array[83] = num4; + array[84] = num5; + array[85] = num; + array[86] = num2; + array[87] = num3; + array[88] = num4; + array[89] = num5; + array[90] = num; + array[91] = num2; + array[92] = num3; + array[93] = num4; + array[94] = num5; + array[95] = num; + array[96] = num2; + array[97] = num3; + array[98] = num4; + array[99] = num5; + array[100] = num; + array[101] = num2; + array[102] = num3; + array[103] = num4; + array[104] = num5; + array[105] = num; + array[106] = num2; + array[107] = num3; + array[108] = num4; + array[109] = num5; + array[110] = num; + array[111] = num2; + array[112] = num3; + array[113] = num4; + array[114] = num5; + array[115] = num; + array[116] = num2; + array[117] = num3; + array[118] = num4; + array[119] = num5; + array[120] = num; + array[121] = num2; + array[122] = num3; + array[123] = num4; + array[124] = num5; + return array; + } - public static double[] smethod_11() - { - return new[] - { - -28086.857142857141, - -18724.571428571428, - -9362.2857142857138, - 0.0, - 9362.2857142857138, - 18724.571428571428, - 28086.857142857141, - 0.0 - }; - } + public static double[] smethod_11() + { + return new[] + { + -28086.857142857141, + -18724.571428571428, + -9362.2857142857138, + 0.0, + 9362.2857142857138, + 18724.571428571428, + 28086.857142857141, + 0.0 + }; + } - public static double[] smethod_12() - { - var num = -29789.090909090908; - var num2 = -23831.272727272728; - var num3 = -17873.454545454544; - var num4 = -11915.636363636364; - var num5 = -5957.818181818182; - var num6 = 0.0; - var num7 = 5957.818181818182; - var num8 = 11915.636363636364; - var num9 = 17873.454545454544; - var num10 = 23831.272727272728; - var num11 = 29789.090909090908; - var array = new double[128]; - array[0] = num; - array[1] = num; - array[2] = num; - array[3] = num; - array[4] = num; - array[5] = num; - array[6] = num; - array[7] = num; - array[8] = num; - array[9] = num; - array[10] = num; - array[11] = num2; - array[12] = num2; - array[13] = num2; - array[14] = num2; - array[15] = num2; - array[16] = num2; - array[17] = num2; - array[18] = num2; - array[19] = num2; - array[20] = num2; - array[21] = num2; - array[22] = num3; - array[23] = num3; - array[24] = num3; - array[25] = num3; - array[26] = num3; - array[27] = num3; - array[28] = num3; - array[29] = num3; - array[30] = num3; - array[31] = num3; - array[32] = num3; - array[33] = num4; - array[34] = num4; - array[35] = num4; - array[36] = num4; - array[37] = num4; - array[38] = num4; - array[39] = num4; - array[40] = num4; - array[41] = num4; - array[42] = num4; - array[43] = num4; - array[44] = num5; - array[45] = num5; - array[46] = num5; - array[47] = num5; - array[48] = num5; - array[49] = num5; - array[50] = num5; - array[51] = num5; - array[52] = num5; - array[53] = num5; - array[54] = num5; - array[55] = num6; - array[56] = num6; - array[57] = num6; - array[58] = num6; - array[59] = num6; - array[60] = num6; - array[61] = num6; - array[62] = num6; - array[63] = num6; - array[64] = num6; - array[65] = num6; - array[66] = num7; - array[67] = num7; - array[68] = num7; - array[69] = num7; - array[70] = num7; - array[71] = num7; - array[72] = num7; - array[73] = num7; - array[74] = num7; - array[75] = num7; - array[76] = num7; - array[77] = num8; - array[78] = num8; - array[79] = num8; - array[80] = num8; - array[81] = num8; - array[82] = num8; - array[83] = num8; - array[84] = num8; - array[85] = num8; - array[86] = num8; - array[87] = num8; - array[88] = num9; - array[89] = num9; - array[90] = num9; - array[91] = num9; - array[92] = num9; - array[93] = num9; - array[94] = num9; - array[95] = num9; - array[96] = num9; - array[97] = num9; - array[98] = num9; - array[99] = num10; - array[100] = num10; - array[101] = num10; - array[102] = num10; - array[103] = num10; - array[104] = num10; - array[105] = num10; - array[106] = num10; - array[107] = num10; - array[108] = num10; - array[109] = num10; - array[110] = num11; - array[111] = num11; - array[112] = num11; - array[113] = num11; - array[114] = num11; - array[115] = num11; - array[116] = num11; - array[117] = num11; - array[118] = num11; - array[119] = num11; - array[120] = num11; - return array; - } + public static double[] smethod_12() + { + var num = -29789.090909090908; + var num2 = -23831.272727272728; + var num3 = -17873.454545454544; + var num4 = -11915.636363636364; + var num5 = -5957.818181818182; + var num6 = 0.0; + var num7 = 5957.818181818182; + var num8 = 11915.636363636364; + var num9 = 17873.454545454544; + var num10 = 23831.272727272728; + var num11 = 29789.090909090908; + var array = new double[128]; + array[0] = num; + array[1] = num; + array[2] = num; + array[3] = num; + array[4] = num; + array[5] = num; + array[6] = num; + array[7] = num; + array[8] = num; + array[9] = num; + array[10] = num; + array[11] = num2; + array[12] = num2; + array[13] = num2; + array[14] = num2; + array[15] = num2; + array[16] = num2; + array[17] = num2; + array[18] = num2; + array[19] = num2; + array[20] = num2; + array[21] = num2; + array[22] = num3; + array[23] = num3; + array[24] = num3; + array[25] = num3; + array[26] = num3; + array[27] = num3; + array[28] = num3; + array[29] = num3; + array[30] = num3; + array[31] = num3; + array[32] = num3; + array[33] = num4; + array[34] = num4; + array[35] = num4; + array[36] = num4; + array[37] = num4; + array[38] = num4; + array[39] = num4; + array[40] = num4; + array[41] = num4; + array[42] = num4; + array[43] = num4; + array[44] = num5; + array[45] = num5; + array[46] = num5; + array[47] = num5; + array[48] = num5; + array[49] = num5; + array[50] = num5; + array[51] = num5; + array[52] = num5; + array[53] = num5; + array[54] = num5; + array[55] = num6; + array[56] = num6; + array[57] = num6; + array[58] = num6; + array[59] = num6; + array[60] = num6; + array[61] = num6; + array[62] = num6; + array[63] = num6; + array[64] = num6; + array[65] = num6; + array[66] = num7; + array[67] = num7; + array[68] = num7; + array[69] = num7; + array[70] = num7; + array[71] = num7; + array[72] = num7; + array[73] = num7; + array[74] = num7; + array[75] = num7; + array[76] = num7; + array[77] = num8; + array[78] = num8; + array[79] = num8; + array[80] = num8; + array[81] = num8; + array[82] = num8; + array[83] = num8; + array[84] = num8; + array[85] = num8; + array[86] = num8; + array[87] = num8; + array[88] = num9; + array[89] = num9; + array[90] = num9; + array[91] = num9; + array[92] = num9; + array[93] = num9; + array[94] = num9; + array[95] = num9; + array[96] = num9; + array[97] = num9; + array[98] = num9; + array[99] = num10; + array[100] = num10; + array[101] = num10; + array[102] = num10; + array[103] = num10; + array[104] = num10; + array[105] = num10; + array[106] = num10; + array[107] = num10; + array[108] = num10; + array[109] = num10; + array[110] = num11; + array[111] = num11; + array[112] = num11; + array[113] = num11; + array[114] = num11; + array[115] = num11; + array[116] = num11; + array[117] = num11; + array[118] = num11; + array[119] = num11; + array[120] = num11; + return array; + } - public static double[] smethod_13() - { - var num = -29789.090909090908; - var num2 = -23831.272727272728; - var num3 = -17873.454545454544; - var num4 = -11915.636363636364; - var num5 = -5957.818181818182; - var num6 = 0.0; - var num7 = 5957.818181818182; - var num8 = 11915.636363636364; - var num9 = 17873.454545454544; - var num10 = 23831.272727272728; - var num11 = 29789.090909090908; - var array = new double[128]; - array[0] = num; - array[1] = num2; - array[2] = num3; - array[3] = num4; - array[4] = num5; - array[5] = num6; - array[6] = num7; - array[7] = num8; - array[8] = num9; - array[9] = num10; - array[10] = num11; - array[11] = num; - array[12] = num2; - array[13] = num3; - array[14] = num4; - array[15] = num5; - array[16] = num6; - array[17] = num7; - array[18] = num8; - array[19] = num9; - array[20] = num10; - array[21] = num11; - array[22] = num; - array[23] = num2; - array[24] = num3; - array[25] = num4; - array[26] = num5; - array[27] = num6; - array[28] = num7; - array[29] = num8; - array[30] = num9; - array[31] = num10; - array[32] = num11; - array[33] = num; - array[34] = num2; - array[35] = num3; - array[36] = num4; - array[37] = num5; - array[38] = num6; - array[39] = num7; - array[40] = num8; - array[41] = num9; - array[42] = num10; - array[43] = num11; - array[44] = num; - array[45] = num2; - array[46] = num3; - array[47] = num4; - array[48] = num5; - array[49] = num6; - array[50] = num7; - array[51] = num8; - array[52] = num9; - array[53] = num10; - array[54] = num11; - array[55] = num; - array[56] = num2; - array[57] = num3; - array[58] = num4; - array[59] = num5; - array[60] = num6; - array[61] = num7; - array[62] = num8; - array[63] = num9; - array[64] = num10; - array[65] = num11; - array[66] = num; - array[67] = num2; - array[68] = num3; - array[69] = num4; - array[70] = num5; - array[71] = num6; - array[72] = num7; - array[73] = num8; - array[74] = num9; - array[75] = num10; - array[76] = num11; - array[77] = num; - array[78] = num2; - array[79] = num3; - array[80] = num4; - array[81] = num5; - array[82] = num6; - array[83] = num7; - array[84] = num8; - array[85] = num9; - array[86] = num10; - array[87] = num11; - array[88] = num; - array[89] = num2; - array[90] = num3; - array[91] = num4; - array[92] = num5; - array[93] = num6; - array[94] = num7; - array[95] = num8; - array[96] = num9; - array[97] = num10; - array[98] = num11; - array[99] = num; - array[100] = num2; - array[101] = num3; - array[102] = num4; - array[103] = num5; - array[104] = num6; - array[105] = num7; - array[106] = num8; - array[107] = num9; - array[108] = num10; - array[109] = num11; - array[110] = num; - array[111] = num2; - array[112] = num3; - array[113] = num4; - array[114] = num5; - array[115] = num6; - array[116] = num7; - array[117] = num8; - array[118] = num9; - array[119] = num10; - array[120] = num11; - return array; - } + public static double[] smethod_13() + { + var num = -29789.090909090908; + var num2 = -23831.272727272728; + var num3 = -17873.454545454544; + var num4 = -11915.636363636364; + var num5 = -5957.818181818182; + var num6 = 0.0; + var num7 = 5957.818181818182; + var num8 = 11915.636363636364; + var num9 = 17873.454545454544; + var num10 = 23831.272727272728; + var num11 = 29789.090909090908; + var array = new double[128]; + array[0] = num; + array[1] = num2; + array[2] = num3; + array[3] = num4; + array[4] = num5; + array[5] = num6; + array[6] = num7; + array[7] = num8; + array[8] = num9; + array[9] = num10; + array[10] = num11; + array[11] = num; + array[12] = num2; + array[13] = num3; + array[14] = num4; + array[15] = num5; + array[16] = num6; + array[17] = num7; + array[18] = num8; + array[19] = num9; + array[20] = num10; + array[21] = num11; + array[22] = num; + array[23] = num2; + array[24] = num3; + array[25] = num4; + array[26] = num5; + array[27] = num6; + array[28] = num7; + array[29] = num8; + array[30] = num9; + array[31] = num10; + array[32] = num11; + array[33] = num; + array[34] = num2; + array[35] = num3; + array[36] = num4; + array[37] = num5; + array[38] = num6; + array[39] = num7; + array[40] = num8; + array[41] = num9; + array[42] = num10; + array[43] = num11; + array[44] = num; + array[45] = num2; + array[46] = num3; + array[47] = num4; + array[48] = num5; + array[49] = num6; + array[50] = num7; + array[51] = num8; + array[52] = num9; + array[53] = num10; + array[54] = num11; + array[55] = num; + array[56] = num2; + array[57] = num3; + array[58] = num4; + array[59] = num5; + array[60] = num6; + array[61] = num7; + array[62] = num8; + array[63] = num9; + array[64] = num10; + array[65] = num11; + array[66] = num; + array[67] = num2; + array[68] = num3; + array[69] = num4; + array[70] = num5; + array[71] = num6; + array[72] = num7; + array[73] = num8; + array[74] = num9; + array[75] = num10; + array[76] = num11; + array[77] = num; + array[78] = num2; + array[79] = num3; + array[80] = num4; + array[81] = num5; + array[82] = num6; + array[83] = num7; + array[84] = num8; + array[85] = num9; + array[86] = num10; + array[87] = num11; + array[88] = num; + array[89] = num2; + array[90] = num3; + array[91] = num4; + array[92] = num5; + array[93] = num6; + array[94] = num7; + array[95] = num8; + array[96] = num9; + array[97] = num10; + array[98] = num11; + array[99] = num; + array[100] = num2; + array[101] = num3; + array[102] = num4; + array[103] = num5; + array[104] = num6; + array[105] = num7; + array[106] = num8; + array[107] = num9; + array[108] = num10; + array[109] = num11; + array[110] = num; + array[111] = num2; + array[112] = num3; + array[113] = num4; + array[114] = num5; + array[115] = num6; + array[116] = num7; + array[117] = num8; + array[118] = num9; + array[119] = num10; + array[120] = num11; + return array; + } - public static double[] smethod_14() - { - return new[] - { - -30583.466666666667, - -26214.4, - -21845.333333333332, - -17476.266666666666, - -13107.2, - -8738.1333333333332, - -4369.0666666666666, - 0.0, - 4369.0666666666666, - 8738.1333333333332, - 13107.2, - 17476.266666666666, - 21845.333333333332, - 26214.4, - 30583.466666666667, - 0.0 - }; - } + public static double[] smethod_14() + { + return new[] + { + -30583.466666666667, + -26214.4, + -21845.333333333332, + -17476.266666666666, + -13107.2, + -8738.1333333333332, + -4369.0666666666666, + 0.0, + 4369.0666666666666, + 8738.1333333333332, + 13107.2, + 17476.266666666666, + 21845.333333333332, + 26214.4, + 30583.466666666667, + 0.0 + }; + } - public static int[][] smethod_15() - { - return new[] - { - new[] - { - 1840, - 1840, - 1984, - 2048, - 2080, - 2112, - 2128, - 2128, - 2144, - 2144, - 2144, - 2144, - 2144, - 2160, - 2160, - 2160, - 2176, - 2176, - 2192, - 2192, - 2208, - 2208, - 2224, - 2224, - 2240, - 2240, - 2256, - 2272, - 2288, - 2304, - 2320, - 2320, - 2320, - 2320, - 2304, - 2288, - 2240, - 2160, - 2080, - 2016, - 1952, - 1904, - 1888, - 1952, - 1984, - 1984, - 1760, - 1024, - 960, - 960 - }, - new[] - { - 1808, - 1808, - 1952, - 2032, - 2080, - 2096, - 2112, - 2128, - 2128, - 2144, - 2144, - 2144, - 2144, - 2144, - 2160, - 2160, - 2160, - 2176, - 2176, - 2176, - 2192, - 2192, - 2208, - 2208, - 2224, - 2224, - 2240, - 2240, - 2272, - 2288, - 2304, - 2320, - 2320, - 2320, - 2320, - 2304, - 2272, - 2224, - 2160, - 2080, - 2016, - 1968, - 1888, - 1904, - 1952, - 1984, - 1920, - 1488, - 960, - 960 - }, - new[] - { - 1664, - 1664, - 1872, - 1968, - 2016, - 2064, - 2080, - 2096, - 2112, - 2128, - 2128, - 2128, - 2144, - 2144, - 2144, - 2144, - 2144, - 2144, - 2144, - 2144, - 2160, - 2160, - 2160, - 2160, - 2176, - 2176, - 2176, - 2192, - 2208, - 2224, - 2240, - 2256, - 2272, - 2288, - 2304, - 2320, - 2320, - 2320, - 2304, - 2288, - 2256, - 2224, - 2112, - 2032, - 1936, - 1888, - 1952, - 1984, - 1968, - 1824 - } - }; - } + public static int[][] smethod_15() + { + return new[] + { + new[] + { + 1840, + 1840, + 1984, + 2048, + 2080, + 2112, + 2128, + 2128, + 2144, + 2144, + 2144, + 2144, + 2144, + 2160, + 2160, + 2160, + 2176, + 2176, + 2192, + 2192, + 2208, + 2208, + 2224, + 2224, + 2240, + 2240, + 2256, + 2272, + 2288, + 2304, + 2320, + 2320, + 2320, + 2320, + 2304, + 2288, + 2240, + 2160, + 2080, + 2016, + 1952, + 1904, + 1888, + 1952, + 1984, + 1984, + 1760, + 1024, + 960, + 960 + }, + new[] + { + 1808, + 1808, + 1952, + 2032, + 2080, + 2096, + 2112, + 2128, + 2128, + 2144, + 2144, + 2144, + 2144, + 2144, + 2160, + 2160, + 2160, + 2176, + 2176, + 2176, + 2192, + 2192, + 2208, + 2208, + 2224, + 2224, + 2240, + 2240, + 2272, + 2288, + 2304, + 2320, + 2320, + 2320, + 2320, + 2304, + 2272, + 2224, + 2160, + 2080, + 2016, + 1968, + 1888, + 1904, + 1952, + 1984, + 1920, + 1488, + 960, + 960 + }, + new[] + { + 1664, + 1664, + 1872, + 1968, + 2016, + 2064, + 2080, + 2096, + 2112, + 2128, + 2128, + 2128, + 2144, + 2144, + 2144, + 2144, + 2144, + 2144, + 2144, + 2144, + 2160, + 2160, + 2160, + 2160, + 2176, + 2176, + 2176, + 2192, + 2208, + 2224, + 2240, + 2256, + 2272, + 2288, + 2304, + 2320, + 2320, + 2320, + 2304, + 2288, + 2256, + 2224, + 2112, + 2032, + 1936, + 1888, + 1952, + 1984, + 1968, + 1824 + } + }; + } - public static byte[] smethod_16() - { - return new byte[] - { - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 16, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 14, - 12, - 12, - 12, - 12, - 11, - 11, - 11, - 11, - 10, - 10, - 10, - 10, - 9, - 9, - 9, - 9, - 8, - 8, - 8, - 8, - 7, - 7, - 7, - 7, - 6, - 6, - 6, - 6, - 5, - 5, - 5, - 5, - 4, - 4, - 125, - 125, - 3, - 3, - 3, - 126, - 126, - 127, - 127, - 127, - 127, - 127, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - }; - } + public static byte[] smethod_16() + { + return new byte[] + { + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 14, + 12, + 12, + 12, + 12, + 11, + 11, + 11, + 11, + 10, + 10, + 10, + 10, + 9, + 9, + 9, + 9, + 8, + 8, + 8, + 8, + 7, + 7, + 7, + 7, + 6, + 6, + 6, + 6, + 5, + 5, + 5, + 5, + 4, + 4, + 125, + 125, + 3, + 3, + 3, + 126, + 126, + 127, + 127, + 127, + 127, + 127, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + }; + } - public static int[] smethod_17() - { - return new[] - { - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 31, - 34, - 37, - 40, - 43, - 46, - 49, - 55, - 61, - 67, - 73, - 79, - 85, - 97, - 109, - 121, - 133, - 157, - 181, - 205, - 229, - 253 - }; - } + public static int[] smethod_17() + { + return new[] + { + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 31, + 34, + 37, + 40, + 43, + 46, + 49, + 55, + 61, + 67, + 73, + 79, + 85, + 97, + 109, + 121, + 133, + 157, + 181, + 205, + 229, + 253 + }; + } - public static int[] smethod_18() - { - return new[] - { - -64, - -63, - -62, - -61, - -60, - -59, - -58, - -57, - -56, - -55, - -54, - -53, - -52, - -52, - -51, - -50, - -49, - -48, - -47, - -47, - -46, - -45, - -44, - -44, - -43, - -42, - -41, - -41, - -40, - -39, - -38, - -38, - -37, - -36, - -36, - -35, - -35, - -34, - -33, - -33, - -32, - -32, - -31, - -30, - -30, - -29, - -29, - -28, - -28, - -27, - -27, - -26, - -26, - -25, - -25, - -24, - -24, - -23, - -23, - -22, - -22, - -21, - -21, - -21, - -20, - -20, - -19, - -19, - -19, - -18, - -18, - -18, - -17, - -17, - -17, - -16, - -16, - -16, - -15, - -15, - -15, - -14, - -14, - -14, - -13, - -13, - -13, - -13, - -12, - -12, - -12, - -12, - -11, - -11, - -11, - -11, - -10, - -10, - -10, - -10, - -10, - -9, - -9, - -9, - -9, - -9, - -8, - -8, - -8, - -8, - -8, - -8, - -7, - -7, - -7, - -7, - -7, - -7, - -6, - -6, - -6, - -6, - -6, - -6, - -6, - -6, - -5, - -5, - -5, - -5, - -5, - -5, - -5, - -5, - -4, - -4, - -4, - -4, - -4, - -4, - -4, - -4, - -4, - -4, - -4, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -3, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -2, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - }; - } - } -} + public static int[] smethod_18() + { + return new[] + { + -64, + -63, + -62, + -61, + -60, + -59, + -58, + -57, + -56, + -55, + -54, + -53, + -52, + -52, + -51, + -50, + -49, + -48, + -47, + -47, + -46, + -45, + -44, + -44, + -43, + -42, + -41, + -41, + -40, + -39, + -38, + -38, + -37, + -36, + -36, + -35, + -35, + -34, + -33, + -33, + -32, + -32, + -31, + -30, + -30, + -29, + -29, + -28, + -28, + -27, + -27, + -26, + -26, + -25, + -25, + -24, + -24, + -23, + -23, + -22, + -22, + -21, + -21, + -21, + -20, + -20, + -19, + -19, + -19, + -18, + -18, + -18, + -17, + -17, + -17, + -16, + -16, + -16, + -15, + -15, + -15, + -14, + -14, + -14, + -13, + -13, + -13, + -13, + -12, + -12, + -12, + -12, + -11, + -11, + -11, + -11, + -10, + -10, + -10, + -10, + -10, + -9, + -9, + -9, + -9, + -9, + -8, + -8, + -8, + -8, + -8, + -8, + -7, + -7, + -7, + -7, + -7, + -7, + -6, + -6, + -6, + -6, + -6, + -6, + -6, + -6, + -5, + -5, + -5, + -5, + -5, + -5, + -5, + -5, + -4, + -4, + -4, + -4, + -4, + -4, + -4, + -4, + -4, + -4, + -4, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -3, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -2, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + }; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class115.cs b/GHNamespaceJ/Class115.cs index 041df1b..0b62366 100644 --- a/GHNamespaceJ/Class115.cs +++ b/GHNamespaceJ/Class115.cs @@ -2,89 +2,89 @@ namespace GHNamespaceJ { - public class Class115 - { - private byte[] _byte0 = new byte[2048]; + public class Class115 + { + private byte[] _byte0 = new byte[2048]; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - public virtual int vmethod_0() - { - return _int0; - } + public virtual int vmethod_0() + { + return _int0; + } - public virtual bool vmethod_1() - { - return (_byte0[_int0 >> 3] << (_int0++ & 7) & 128) != 0; - } + public virtual bool vmethod_1() + { + return (_byte0[_int0 >> 3] << (_int0++ & 7) & 128) != 0; + } - public virtual void vmethod_2(byte[] byte1, int int2, int int3) - { - if (vmethod_0() > 4096) - { - method_0((vmethod_0() - 4096) / 8); - } - if (_byte0.Length - _int1 / 8 < int3 + 8) - { - var dst = new byte[(_byte0.Length + int3) * 2]; - Buffer.BlockCopy(_byte0, 0, dst, 0, _int1 / 8); - Buffer.BlockCopy(byte1, int2, dst, _int1 / 8, int3); - _byte0 = dst; - } - else - { - Buffer.BlockCopy(byte1, int2, _byte0, _int1 / 8, int3); - } - _int1 += int3 * 8; - } + public virtual void vmethod_2(byte[] byte1, int int2, int int3) + { + if (vmethod_0() > 4096) + { + method_0((vmethod_0() - 4096) / 8); + } + if (_byte0.Length - _int1 / 8 < int3 + 8) + { + var dst = new byte[(_byte0.Length + int3) * 2]; + Buffer.BlockCopy(_byte0, 0, dst, 0, _int1 / 8); + Buffer.BlockCopy(byte1, int2, dst, _int1 / 8, int3); + _byte0 = dst; + } + else + { + Buffer.BlockCopy(byte1, int2, _byte0, _int1 / 8, int3); + } + _int1 += int3 * 8; + } - public void method_0(int int2) - { - Buffer.BlockCopy(_byte0, int2, _byte0, 0, _byte0.Length - int2); - _int1 -= int2 * 8; - _int0 -= int2 * 8; - } + public void method_0(int int2) + { + Buffer.BlockCopy(_byte0, int2, _byte0, 0, _byte0.Length - int2); + _int1 -= int2 * 8; + _int0 -= int2 * 8; + } - public virtual void vmethod_3(int int2) - { - _int0 = int2; - } + public virtual void vmethod_3(int int2) + { + _int0 = int2; + } - public int method_1() - { - return _int1 - _int0; - } + public int method_1() + { + return _int1 - _int0; + } - public int method_2(int int2) - { - var num = _int0 >> 3; - int num2 = _byte0[num++]; - int i; - for (i = int2 - (8 - (_int0 & 7)); i > 0; i -= 8) - { - num2 = (num2 << 8 | _byte0[num++] & 255); - } - num2 = (num2 >> -i & (1 << int2) - 1); - _int0 += int2; - if (method_1() < 0) - { - throw new ApplicationException("Buffer underflow"); - } - return num2; - } + public int method_2(int int2) + { + var num = _int0 >> 3; + int num2 = _byte0[num++]; + int i; + for (i = int2 - (8 - (_int0 & 7)); i > 0; i -= 8) + { + num2 = (num2 << 8 | _byte0[num++] & 255); + } + num2 = (num2 >> -i & (1 << int2) - 1); + _int0 += int2; + if (method_1() < 0) + { + throw new ApplicationException("Buffer underflow"); + } + return num2; + } - public int method_3(int int2) - { - var num = _int0 >> 3; - int num2 = _byte0[num++]; - int i; - for (i = int2 - (8 - (_int0 & 7)); i > 0; i -= 8) - { - num2 = (num2 << 8 | _byte0[num++] & 255); - } - return num2 >> -i & (1 << int2) - 1; - } - } -} + public int method_3(int int2) + { + var num = _int0 >> 3; + int num2 = _byte0[num++]; + int i; + for (i = int2 - (8 - (_int0 & 7)); i > 0; i -= 8) + { + num2 = (num2 << 8 | _byte0[num++] & 255); + } + return num2 >> -i & (1 << int2) - 1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Class116.cs b/GHNamespaceJ/Class116.cs index 498b537..be47a96 100644 --- a/GHNamespaceJ/Class116.cs +++ b/GHNamespaceJ/Class116.cs @@ -3,127 +3,127 @@ namespace GHNamespaceJ { - [CompilerGenerated] - public class Class116 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 512)] - public struct Struct48 - { - } + [CompilerGenerated] + public class Class116 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 512)] + public struct Struct48 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] - public struct Struct49 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] + public struct Struct49 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2048)] - public struct Struct50 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 2048)] + public struct Struct50 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 48)] - public struct Struct51 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 48)] + public struct Struct51 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] - public struct Struct52 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 76)] + public struct Struct52 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] - public struct Struct53 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 32)] + public struct Struct53 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 44)] - public struct Struct54 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 44)] + public struct Struct54 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] - public struct Struct55 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 64)] + public struct Struct55 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] - public struct Struct56 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 16)] + public struct Struct56 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] - public struct Struct57 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 128)] + public struct Struct57 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] - public struct Struct58 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 1024)] + public struct Struct58 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 200)] - public struct Struct59 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 200)] + public struct Struct59 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 305)] - public struct Struct60 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 305)] + public struct Struct60 + { + } - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] - public struct Struct61 - { - } + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 120)] + public struct Struct61 + { + } - public static Struct48 Struct480; + public static Struct48 Struct480; - public static Struct49 Struct490; + public static Struct49 Struct490; - public static Struct50 Struct500; + public static Struct50 Struct500; - public static Struct51 Struct510; + public static Struct51 Struct510; - public static Struct52 Struct520; + public static Struct52 Struct520; - public static Struct53 Struct530; + public static Struct53 Struct530; - public static Struct54 Struct540; + public static Struct54 Struct540; - public static Struct55 Struct550; + public static Struct55 Struct550; - public static Struct56 Struct560; + public static Struct56 Struct560; - public static Struct56 Struct561; + public static Struct56 Struct561; - public static Struct56 Struct562; + public static Struct56 Struct562; - public static Struct53 Struct531; + public static Struct53 Struct531; - public static Struct57 Struct570; + public static Struct57 Struct570; - public static Struct57 Struct571; + public static Struct57 Struct571; - public static Struct57 Struct572; + public static Struct57 Struct572; - public static Struct58 Struct580; + public static Struct58 Struct580; - public static Struct59 Struct590; + public static Struct59 Struct590; - public static Struct55 Struct551; + public static Struct55 Struct551; - public static Struct57 Struct573; + public static Struct57 Struct573; - public static Struct59 Struct591; + public static Struct59 Struct591; - public static Struct59 Struct592; + public static Struct59 Struct592; - public static Struct59 Struct593; + public static Struct59 Struct593; - public static Struct60 Struct600; + public static Struct60 Struct600; - public static Struct61 Struct610; + public static Struct61 Struct610; - public static Struct58 Struct581; - } -} + public static Struct58 Struct581; + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Enum6.cs b/GHNamespaceJ/Enum6.cs index c64466c..61aa372 100644 --- a/GHNamespaceJ/Enum6.cs +++ b/GHNamespaceJ/Enum6.cs @@ -1,12 +1,12 @@ namespace GHNamespaceJ { - public enum Enum6 - { - Const0 = 0x1007, - Const1, - Const2, - Const3 = 0x1010, - Const4, - Const5 = 0x20003 - } -} + public enum Enum6 + { + Const0 = 0x1007, + Const1, + Const2, + Const3 = 0x1010, + Const4, + Const5 = 0x20003 + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Enum7.cs b/GHNamespaceJ/Enum7.cs index 5a2f3f9..856dcfe 100644 --- a/GHNamespaceJ/Enum7.cs +++ b/GHNamespaceJ/Enum7.cs @@ -1,13 +1,13 @@ namespace GHNamespaceJ { - public enum Enum7 - { - Const0 = 4100, - Const1 = 4102, - Const2 = 785, - Const3 = 4114, - Const4 = 784, - Const5 = 4101, - Const6 = 4115 - } -} + public enum Enum7 + { + Const0 = 4100, + Const1 = 4102, + Const2 = 785, + Const3 = 4114, + Const4 = 784, + Const5 = 4101, + Const6 = 4115 + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Enum8.cs b/GHNamespaceJ/Enum8.cs index e6819fb..c636859 100644 --- a/GHNamespaceJ/Enum8.cs +++ b/GHNamespaceJ/Enum8.cs @@ -1,9 +1,9 @@ namespace GHNamespaceJ { - public enum Enum8 - { - Const0 = 784, - Const1 = 4101, - Const2 = 4115 - } -} + public enum Enum8 + { + Const0 = 784, + Const1 = 4101, + Const2 = 4115 + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Enum9.cs b/GHNamespaceJ/Enum9.cs index c5fdb18..f4ab412 100644 --- a/GHNamespaceJ/Enum9.cs +++ b/GHNamespaceJ/Enum9.cs @@ -1,14 +1,14 @@ namespace GHNamespaceJ { - public enum Enum9 - { - Const0 = 4096, - Const1, - Const2, - Const3, - Const4 = 786, - Const5 = 131073, - Const6, - Const7 - } -} + public enum Enum9 + { + Const0 = 4096, + Const1, + Const2, + Const3, + Const4 = 786, + Const5 = 131073, + Const6, + Const7 + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Exception1.cs b/GHNamespaceJ/Exception1.cs index 7aa38da..dfde724 100644 --- a/GHNamespaceJ/Exception1.cs +++ b/GHNamespaceJ/Exception1.cs @@ -2,14 +2,14 @@ namespace GHNamespaceJ { - public class Exception1 : Exception - { - public Exception1() - { - } + public class Exception1 : Exception + { + public Exception1() + { + } - public Exception1(string string0) : base(string0) - { - } - } -} + public Exception1(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/Exception2.cs b/GHNamespaceJ/Exception2.cs index ae535d0..1e502d1 100644 --- a/GHNamespaceJ/Exception2.cs +++ b/GHNamespaceJ/Exception2.cs @@ -1,13 +1,13 @@ namespace GHNamespaceJ { - public class Exception2 : Exception1 - { - public Exception2() - { - } + public class Exception2 : Exception1 + { + public Exception2() + { + } - public Exception2(string string0) : base(string0) - { - } - } -} + public Exception2(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/OGGOutput.cs b/GHNamespaceJ/OGGOutput.cs index 09e5733..dde2977 100644 --- a/GHNamespaceJ/OGGOutput.cs +++ b/GHNamespaceJ/OGGOutput.cs @@ -7,356 +7,356 @@ namespace GHNamespaceJ { - public class OggOutput : IPlayableAudio - { - private AudioStatus _enum10; - - private readonly GenericAudioStream _stream10; - - private readonly int _int0; - - private readonly int _int1; - - private Device _device0; - - private readonly bool _bool0; - - private SecondaryBuffer _secondaryBuffer0; - - private int _int2; - - private bool _bool1; - - private readonly double _double0; - - private long _long0; - - private readonly BufferPositionNotify[] _bufferPositionNotify0 = new BufferPositionNotify[5]; - - private readonly AutoResetEvent _autoResetEvent0; - - private readonly BufferPositionNotify[] _bufferPositionNotify1 = new BufferPositionNotify[1]; - - private Notify _notify0; - - private Thread _thread0; - - private bool _bool2; - - private int _int3; - - private int _int4; - - private readonly byte[] _byte0; - - [DllImport("user32.dll")] - public static extern IntPtr GetDesktopWindow(); - - public OggOutput(GenericAudioStream stream11) : this(stream11, null, 500) - { - } - - public OggOutput(GenericAudioStream stream11, Device device1, int int5) - { - _stream10 = new Stream4(stream11, 16); - _int1 = _stream10.vmethod_0().method_0(int5); - _int1 -= _int1 % 5; - _int0 = _int1 / 5; - _double0 = _stream10.vmethod_0().int_0 * (double)_stream10.vmethod_0().short_1 / 1000.0; - _byte0 = new byte[_int0]; - _device0 = device1; - if (_device0 == null) - { - _device0 = new Device(); - _device0.SetCooperativeLevel(GetDesktopWindow(), CooperativeLevel.Normal); - _bool0 = true; - } - _secondaryBuffer0 = new SecondaryBuffer(new BufferDescription - { - BufferBytes = _int1, - ControlPositionNotify = true, - CanGetCurrentPosition = true, - ControlVolume = true, - GlobalFocus = true, - StickyFocus = true, - Format = smethod_0(_stream10.vmethod_0()) - }, _device0); - _secondaryBuffer0.SetCurrentPosition(0); - _int2 = 0; - _secondaryBuffer0.Volume = 0; - _autoResetEvent0 = new AutoResetEvent(false); - _bufferPositionNotify1[0].EventNotifyHandle = _autoResetEvent0.Handle; - _enum10 = AudioStatus.ShouldStopAudio; - } - - private static WaveFormat smethod_0(SharpAudio.ASC.WaveFormat waveFormat0) - { - return new WaveFormat - { - AverageBytesPerSecond = waveFormat0.int_1, - BitsPerSample = waveFormat0.short_2, - BlockAlign = waveFormat0.short_1, - Channels = waveFormat0.short_0, - FormatTag = (WaveFormatTag)waveFormat0.waveFormatTag_0, - SamplesPerSecond = waveFormat0.int_0 - }; - } - - public void DifferentStartPlaying() - { - if (_enum10 == AudioStatus.IsCurrentlyPlayingAudio) - { - method_0(); - return; - } - if (_enum10 == AudioStatus.ShouldStopAudio) - { - method_9(); - method_2(5); - _long0 = 0L; - _int2 = 0; - _secondaryBuffer0.SetCurrentPosition(0); - method_4(); - for (var i = 0; i < 5; i++) - { - method_7(); - } - _secondaryBuffer0.SetCurrentPosition(0); - _secondaryBuffer0.Volume = 0; - _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); - _enum10 = AudioStatus.ShouldStartAudio; - } - } - - public void StartPlaying() - { - if (_enum10 == AudioStatus.ShouldStartAudio) - { - _secondaryBuffer0.Stop(); - _enum10 = AudioStatus.IsCurrentlyPlayingAudio; - } - } - - private void method_0() - { - if (_enum10 == AudioStatus.IsCurrentlyPlayingAudio) - { - _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); - _enum10 = AudioStatus.ShouldStartAudio; - } - } - - public void StopPlaying() - { - _secondaryBuffer0.Volume = -10000; - method_0(); - method_9(); - _secondaryBuffer0.Stop(); - _enum10 = AudioStatus.ShouldStopAudio; - } - - public TimeSpan AudioLength() - { - return TimeSpan.FromMilliseconds(vmethod_0() / _double0); - } - - public void SetStartingTime(TimeSpan timeSpan0) - { - SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); - } - - public int vmethod_0() - { - if (_enum10 != AudioStatus.ShouldStopAudio) - { - return (int)(_long0 - _int1 + method_1()); - } - return (int)_long0; - } - - public void SetStartingTimeBasedOnSomeValue(int int5) - { - StartPlaying(); - _stream10.Position = (_long0 = int5); - method_0(); - } - - private int method_1() - { - var playPosition = _secondaryBuffer0.PlayPosition; - if (playPosition >= _int2) - { - return playPosition - _int2; - } - return playPosition + _int1 - _int2; - } - - public AudioStatus GetStatus() - { - return _enum10; - } - - public SharpAudio.ASC.WaveFormat GetWaveFormat() - { - return _stream10.vmethod_0(); - } - - public void SetVolume(float float0) - { - _secondaryBuffer0.Volume = (int)(50f * Class15.smethod_0(float0)); - } - - private void method_2(int int5) - { - for (var i = 0; i < int5; i++) - { - _bufferPositionNotify0[i].Offset = (i + 1) * _int0 - 1; - _bufferPositionNotify0[i].EventNotifyHandle = _autoResetEvent0.Handle; - } - _notify0 = new Notify(_secondaryBuffer0); - _notify0.SetNotificationPositions(_bufferPositionNotify0); - } - - private void method_3(int int5) - { - _bufferPositionNotify1[0].Offset = int5; - _secondaryBuffer0.Stop(); - _notify0.SetNotificationPositions(_bufferPositionNotify1); - _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); - } - - private void method_4() - { - if (_thread0 != null) - { - throw new Exception("CreateDataTransferThread() saw thread non-null."); - } - _bool2 = false; - _int3 = 0; - _int4 = 0; - _thread0 = new Thread(method_5); - _thread0.Name = "DataTransferThread"; - _thread0.Priority = ThreadPriority.Highest; - _thread0.Start(); - } - - private void method_5() - { - var num = 0; - while (_bool1) - { - if (_bool2) - { - return; - } - _autoResetEvent0.WaitOne(-1, true); - if (!method_6()) - { - num = _int2 / _int0; - _bool1 = method_7(); - } - } - Array.Clear(_byte0, 0, _byte0.Length); - var flag = true; - while (flag) - { - _autoResetEvent0.WaitOne(-1, true); - flag = method_6(); - } - var num2 = _int2 / _int0; - method_8(); - var int_ = (int)(_long0 % _int1); - method_3(int_); - var flag2 = false; - while (!flag2) - { - _autoResetEvent0.WaitOne(-1, true); - var num3 = _secondaryBuffer0.PlayPosition / _int0; - if (!(flag2 = (num3 == num | num3 == num2))) - { - _int3++; - } - } - _secondaryBuffer0.Stop(); - _enum10 = AudioStatus.ShouldStopAudio; - } - - private bool method_6() - { - var num = _int2 / _int0; - var num2 = _secondaryBuffer0.PlayPosition / _int0; - if (num != num2) - { - return false; - } - _int3++; - return true; - } - - private bool method_7() - { - var num = _stream10.Read(_byte0, 0, _byte0.Length); - _bool1 = (num > 0); - _long0 += num; - method_8(); - _int4++; - return num >= _int0; - } - - private void method_8() - { - _secondaryBuffer0.Write(_int2, _byte0, LockFlag.None); - _int2 += _int0; - _int2 %= _int1; - } - - private void method_9() - { - if (_thread0 == null) - { - return; - } - if (_thread0.IsAlive) - { - _bool2 = true; - _thread0.Join(); - } - _thread0 = null; - } - - public void Dispose() - { - method_10(true); - GC.SuppressFinalize(this); - } - - public void method_10(bool bool3) - { - StopPlaying(); - method_9(); - if (_autoResetEvent0 != null) - { - _autoResetEvent0.Close(); - } - if (_secondaryBuffer0 != null) - { - _secondaryBuffer0.Dispose(); - _secondaryBuffer0 = null; - } - if (_bool0 && _device0 != null) - { - _device0.Dispose(); - _device0 = null; - } - if (bool3) - { - _stream10.Dispose(); - } - } - - ~OggOutput() - { - method_10(false); - } - } -} + public class OggOutput : IPlayableAudio + { + private AudioStatus _enum10; + + private readonly GenericAudioStream _stream10; + + private readonly int _int0; + + private readonly int _int1; + + private Device _device0; + + private readonly bool _bool0; + + private SecondaryBuffer _secondaryBuffer0; + + private int _int2; + + private bool _bool1; + + private readonly double _double0; + + private long _long0; + + private readonly BufferPositionNotify[] _bufferPositionNotify0 = new BufferPositionNotify[5]; + + private readonly AutoResetEvent _autoResetEvent0; + + private readonly BufferPositionNotify[] _bufferPositionNotify1 = new BufferPositionNotify[1]; + + private Notify _notify0; + + private Thread _thread0; + + private bool _bool2; + + private int _int3; + + private int _int4; + + private readonly byte[] _byte0; + + [DllImport("user32.dll")] + public static extern IntPtr GetDesktopWindow(); + + public OggOutput(GenericAudioStream stream11) : this(stream11, null, 500) + { + } + + public OggOutput(GenericAudioStream stream11, Device device1, int int5) + { + _stream10 = new Stream4(stream11, 16); + _int1 = _stream10.vmethod_0().method_0(int5); + _int1 -= _int1 % 5; + _int0 = _int1 / 5; + _double0 = _stream10.vmethod_0().int_0 * (double) _stream10.vmethod_0().short_1 / 1000.0; + _byte0 = new byte[_int0]; + _device0 = device1; + if (_device0 == null) + { + _device0 = new Device(); + _device0.SetCooperativeLevel(GetDesktopWindow(), CooperativeLevel.Normal); + _bool0 = true; + } + _secondaryBuffer0 = new SecondaryBuffer(new BufferDescription + { + BufferBytes = _int1, + ControlPositionNotify = true, + CanGetCurrentPosition = true, + ControlVolume = true, + GlobalFocus = true, + StickyFocus = true, + Format = smethod_0(_stream10.vmethod_0()) + }, _device0); + _secondaryBuffer0.SetCurrentPosition(0); + _int2 = 0; + _secondaryBuffer0.Volume = 0; + _autoResetEvent0 = new AutoResetEvent(false); + _bufferPositionNotify1[0].EventNotifyHandle = _autoResetEvent0.Handle; + _enum10 = AudioStatus.ShouldStopAudio; + } + + private static WaveFormat smethod_0(SharpAudio.ASC.WaveFormat waveFormat0) + { + return new WaveFormat + { + AverageBytesPerSecond = waveFormat0.int_1, + BitsPerSample = waveFormat0.short_2, + BlockAlign = waveFormat0.short_1, + Channels = waveFormat0.short_0, + FormatTag = (WaveFormatTag) waveFormat0.waveFormatTag_0, + SamplesPerSecond = waveFormat0.int_0 + }; + } + + public void DifferentStartPlaying() + { + if (_enum10 == AudioStatus.IsCurrentlyPlayingAudio) + { + method_0(); + return; + } + if (_enum10 == AudioStatus.ShouldStopAudio) + { + method_9(); + method_2(5); + _long0 = 0L; + _int2 = 0; + _secondaryBuffer0.SetCurrentPosition(0); + method_4(); + for (var i = 0; i < 5; i++) + { + method_7(); + } + _secondaryBuffer0.SetCurrentPosition(0); + _secondaryBuffer0.Volume = 0; + _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); + _enum10 = AudioStatus.ShouldStartAudio; + } + } + + public void StartPlaying() + { + if (_enum10 == AudioStatus.ShouldStartAudio) + { + _secondaryBuffer0.Stop(); + _enum10 = AudioStatus.IsCurrentlyPlayingAudio; + } + } + + private void method_0() + { + if (_enum10 == AudioStatus.IsCurrentlyPlayingAudio) + { + _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); + _enum10 = AudioStatus.ShouldStartAudio; + } + } + + public void StopPlaying() + { + _secondaryBuffer0.Volume = -10000; + method_0(); + method_9(); + _secondaryBuffer0.Stop(); + _enum10 = AudioStatus.ShouldStopAudio; + } + + public TimeSpan AudioLength() + { + return TimeSpan.FromMilliseconds(vmethod_0() / _double0); + } + + public void SetStartingTime(TimeSpan timeSpan0) + { + SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); + } + + public int vmethod_0() + { + if (_enum10 != AudioStatus.ShouldStopAudio) + { + return (int) (_long0 - _int1 + method_1()); + } + return (int) _long0; + } + + public void SetStartingTimeBasedOnSomeValue(int int5) + { + StartPlaying(); + _stream10.Position = (_long0 = int5); + method_0(); + } + + private int method_1() + { + var playPosition = _secondaryBuffer0.PlayPosition; + if (playPosition >= _int2) + { + return playPosition - _int2; + } + return playPosition + _int1 - _int2; + } + + public AudioStatus GetStatus() + { + return _enum10; + } + + public SharpAudio.ASC.WaveFormat GetWaveFormat() + { + return _stream10.vmethod_0(); + } + + public void SetVolume(float float0) + { + _secondaryBuffer0.Volume = (int) (50f * Class15.smethod_0(float0)); + } + + private void method_2(int int5) + { + for (var i = 0; i < int5; i++) + { + _bufferPositionNotify0[i].Offset = (i + 1) * _int0 - 1; + _bufferPositionNotify0[i].EventNotifyHandle = _autoResetEvent0.Handle; + } + _notify0 = new Notify(_secondaryBuffer0); + _notify0.SetNotificationPositions(_bufferPositionNotify0); + } + + private void method_3(int int5) + { + _bufferPositionNotify1[0].Offset = int5; + _secondaryBuffer0.Stop(); + _notify0.SetNotificationPositions(_bufferPositionNotify1); + _secondaryBuffer0.Play(0, BufferPlayFlags.Looping); + } + + private void method_4() + { + if (_thread0 != null) + { + throw new Exception("CreateDataTransferThread() saw thread non-null."); + } + _bool2 = false; + _int3 = 0; + _int4 = 0; + _thread0 = new Thread(method_5); + _thread0.Name = "DataTransferThread"; + _thread0.Priority = ThreadPriority.Highest; + _thread0.Start(); + } + + private void method_5() + { + var num = 0; + while (_bool1) + { + if (_bool2) + { + return; + } + _autoResetEvent0.WaitOne(-1, true); + if (!method_6()) + { + num = _int2 / _int0; + _bool1 = method_7(); + } + } + Array.Clear(_byte0, 0, _byte0.Length); + var flag = true; + while (flag) + { + _autoResetEvent0.WaitOne(-1, true); + flag = method_6(); + } + var num2 = _int2 / _int0; + method_8(); + var int_ = (int) (_long0 % _int1); + method_3(int_); + var flag2 = false; + while (!flag2) + { + _autoResetEvent0.WaitOne(-1, true); + var num3 = _secondaryBuffer0.PlayPosition / _int0; + if (!(flag2 = (num3 == num | num3 == num2))) + { + _int3++; + } + } + _secondaryBuffer0.Stop(); + _enum10 = AudioStatus.ShouldStopAudio; + } + + private bool method_6() + { + var num = _int2 / _int0; + var num2 = _secondaryBuffer0.PlayPosition / _int0; + if (num != num2) + { + return false; + } + _int3++; + return true; + } + + private bool method_7() + { + var num = _stream10.Read(_byte0, 0, _byte0.Length); + _bool1 = (num > 0); + _long0 += num; + method_8(); + _int4++; + return num >= _int0; + } + + private void method_8() + { + _secondaryBuffer0.Write(_int2, _byte0, LockFlag.None); + _int2 += _int0; + _int2 %= _int1; + } + + private void method_9() + { + if (_thread0 == null) + { + return; + } + if (_thread0.IsAlive) + { + _bool2 = true; + _thread0.Join(); + } + _thread0 = null; + } + + public void Dispose() + { + method_10(true); + GC.SuppressFinalize(this); + } + + public void method_10(bool bool3) + { + StopPlaying(); + method_9(); + if (_autoResetEvent0 != null) + { + _autoResetEvent0.Close(); + } + if (_secondaryBuffer0 != null) + { + _secondaryBuffer0.Dispose(); + _secondaryBuffer0 = null; + } + if (_bool0 && _device0 != null) + { + _device0.Dispose(); + _device0 = null; + } + if (bool3) + { + _stream10.Dispose(); + } + } + + ~OggOutput() + { + method_10(false); + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/zzSoundClass.cs b/GHNamespaceJ/zzSoundClass.cs index fb99494..9e9cbb7 100644 --- a/GHNamespaceJ/zzSoundClass.cs +++ b/GHNamespaceJ/zzSoundClass.cs @@ -6,1010 +6,1015 @@ namespace GHNamespaceJ { - public class ZzSoundClass - { - public static readonly int[][] Int0 = { - new[] - { - 22050, - 24000, - 16000, - 1 - }, - new[] - { - 44100, - 48000, - 32000, - 1 - }, - new[] - { - 11025, - 12000, - 8000, - 1 - } - }; - - private int _int1; - - private int _int2; - - private int _int3; - - private int _int4; - - private int _int5; - - private Enum3 _enum30; - - private Enum5 _enum50; - - private int _int6; - - private int _int7; - - private int _int8; - - private bool _bool0; - - private bool _bool1; - - private readonly double[] _double0 = { - -1.0, - 384.0, - 1152.0, - 1152.0 - }; - - private bool _bool2; - - private int _int9; - - private int _int10; - - private int _int11; - - private Class83 _class830; - - private byte _byte0; - - private Class101 _class1010; - - public short Short0; - - public int Int12; - - public int Int13; - - private int _int14 = -1; - - public static readonly int[,,] Int15 = { - { - { - 0, - 32000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 176000, - 192000, - 224000, - 256000, - 0 - }, - { - 0, - 8000, - 16000, - 24000, - 32000, - 40000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 0 - }, - { - 0, - 8000, - 16000, - 24000, - 32000, - 40000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 0 - } - }, - { - { - 0, - 32000, - 64000, - 96000, - 128000, - 160000, - 192000, - 224000, - 256000, - 288000, - 320000, - 352000, - 384000, - 416000, - 448000, - 0 - }, - { - 0, - 32000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 160000, - 192000, - 224000, - 256000, - 320000, - 384000, - 0 - }, - { - 0, - 32000, - 40000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 160000, - 192000, - 224000, - 256000, - 320000, - 0 - } - }, - { - { - 0, - 32000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 176000, - 192000, - 224000, - 256000, - 0 - }, - { - 0, - 8000, - 16000, - 24000, - 32000, - 40000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 0 - }, - { - 0, - 8000, - 16000, - 24000, - 32000, - 40000, - 48000, - 56000, - 64000, - 80000, - 96000, - 112000, - 128000, - 144000, - 160000, - 0 - } - } - }; - - public static readonly string[][][] String0 = { - new[] - { - new[] - { - "free format", - "32 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "176 kbit/s", - "192 kbit/s", - "224 kbit/s", - "256 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "8 kbit/s", - "16 kbit/s", - "24 kbit/s", - "32 kbit/s", - "40 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "8 kbit/s", - "16 kbit/s", - "24 kbit/s", - "32 kbit/s", - "40 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "forbidden" - } - }, - new[] - { - new[] - { - "free format", - "32 kbit/s", - "64 kbit/s", - "96 kbit/s", - "128 kbit/s", - "160 kbit/s", - "192 kbit/s", - "224 kbit/s", - "256 kbit/s", - "288 kbit/s", - "320 kbit/s", - "352 kbit/s", - "384 kbit/s", - "416 kbit/s", - "448 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "32 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "160 kbit/s", - "192 kbit/s", - "224 kbit/s", - "256 kbit/s", - "320 kbit/s", - "384 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "32 kbit/s", - "40 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "160 kbit/s", - "192 kbit/s", - "224 kbit/s", - "256 kbit/s", - "320 kbit/s", - "forbidden" - } - }, - new[] - { - new[] - { - "free format", - "32 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "176 kbit/s", - "192 kbit/s", - "224 kbit/s", - "256 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "8 kbit/s", - "16 kbit/s", - "24 kbit/s", - "32 kbit/s", - "40 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "forbidden" - }, - new[] - { - "free format", - "8 kbit/s", - "16 kbit/s", - "24 kbit/s", - "32 kbit/s", - "40 kbit/s", - "48 kbit/s", - "56 kbit/s", - "64 kbit/s", - "80 kbit/s", - "96 kbit/s", - "112 kbit/s", - "128 kbit/s", - "144 kbit/s", - "160 kbit/s", - "forbidden" - } - } - }; - - private void method_0() - { - _byte0 = Class82.Byte1; - } - - public ZzSoundClass() - { - method_0(); - } - - public override string ToString() - { - var stringBuilder = new StringBuilder(200); - stringBuilder.Append("Layer "); - stringBuilder.Append(method_19()); - stringBuilder.Append(" frame "); - stringBuilder.Append(method_23()); - stringBuilder.Append(' '); - stringBuilder.Append(method_24()); - if (!method_9()) - { - stringBuilder.Append(" no"); - } - stringBuilder.Append(" checksums"); - stringBuilder.Append(' '); - stringBuilder.Append(method_22()); - stringBuilder.Append(','); - stringBuilder.Append(' '); - stringBuilder.Append(method_20()); - return stringBuilder.ToString(); - } - - public void method_1(Class82 class820, Class101[] class1011) - { - var flag = false; - while (true) - { - var num = class820.method_9(_byte0); - _int14 = num; - if (_byte0 == Class82.Byte1) - { - _enum30 = (Enum3)(num >> 19 & 1); - if ((num >> 20 & 1) == 0) - { - if (_enum30 != Enum3.Const0) - { - goto IL_1EE; - } - _enum30 = Enum3.Const2; - } - if ((_int6 = (num >> 10 & 3)) == 3) - { - goto Block_20; - } - } - _int1 = (4 - (num >> 17) & 3); - _int2 = (num >> 16 & 1); - _int3 = (num >> 12 & 15); - _int4 = (num >> 9 & 1); - _enum50 = (Enum5)(num >> 6 & 3); - _int5 = (num >> 4 & 3); - if (_enum50 == Enum5.Const1) - { - _int8 = (_int5 << 2) + 4; - } - else - { - _int8 = 0; - } - if ((num >> 3 & 1) == 1) - { - _bool0 = true; - } - if ((num >> 2 & 1) == 1) - { - _bool1 = true; - } - if (_int1 == 1) - { - _int7 = 32; - } - else - { - var num2 = _int3; - if (_enum50 != Enum5.Const3) - { - if (num2 == 4) - { - num2 = 1; - } - else - { - num2 -= 4; - } - } - if (num2 != 1) - { - if (num2 != 2) - { - if (_int6 != 1 && (num2 < 3 || num2 > 5)) - { - _int7 = 30; - goto IL_102; - } - _int7 = 27; - goto IL_102; - } - } - _int7 = ((_int6 == 2) ? 12 : 8); - } - IL_102: - if (_int8 > _int7) - { - _int8 = _int7; - } - method_15(); - var num3 = class820.method_11(Int12); - if (Int12 >= 0 && num3 != Int12) - { - break; - } - if (class820.method_8(_byte0)) - { - if (_byte0 == Class82.Byte1) - { - _byte0 = Class82.Byte2; - class820.method_14(num & -521024); - } - flag = true; - } - else - { - class820.method_6(); - } - if (flag) - { - goto Block_17; - } - } - throw new BitstreamException(BitstreamError.InvalidFrame); - Block_17: - class820.method_12(); - if (_int2 == 0) - { - Short0 = (short)class820.method_13(16); - if (_class1010 == null) - { - _class1010 = new Class101(); - } - var num=0; - _class1010.method_0(num, 16); - class1011[0] = _class1010; - } - else - { - class1011[0] = null; - } - return; - Block_20: - throw new BitstreamException(BitstreamError.UnknownError); - IL_1EE: - throw new BitstreamException(BitstreamError.UnknownError); - } - - public void method_2(byte[] byte1) - { - int num; - if (_enum30 == Enum3.Const1) - { - num = ((_enum50 == Enum5.Const3) ? 17 : 32); - } - else - { - num = ((_enum50 == Enum5.Const3) ? 9 : 17); - } - try - { - var @string = Encoding.UTF8.GetString(byte1, num, 4); - if (@string.Equals("Xing") || @string.Equals("Info")) - { - _bool2 = true; - _int9 = -1; - _int11 = -1; - _int10 = -1; - var array = new byte[100]; - var num2 = smethod_0(BitConverter.ToInt32(byte1, num + 4)); - var num3 = 8; - if ((num2 & 1) != 0) - { - _int9 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); - num3 += 4; - } - if ((num2 & 2) != 0) - { - _int11 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); - num3 += 4; - } - if ((num2 & 4) != 0) - { - Buffer.BlockCopy(byte1, num + num3, array, 0, array.Length); - num3 += array.Length; - _class830 = new Class83(array, _int11); - } - if ((num2 & 8) != 0) - { - _int10 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); - num3 += 4; - } - } - } - catch (IndexOutOfRangeException exception) - { - throw new BitstreamException("Xing Header Corrupted", exception); - } - num = 32; - try - { - if (Encoding.UTF8.GetString(byte1, num, 4).Equals("VBRI")) - { - _bool2 = true; - _int9 = -1; - _int11 = -1; - _int10 = -1; - _int10 = smethod_1(BitConverter.ToInt16(byte1, num + 8)); - _int11 = smethod_0(BitConverter.ToInt32(byte1, num + 10)); - _int9 = smethod_0(BitConverter.ToInt32(byte1, num + 14)); - var array2 = new int[smethod_1(BitConverter.ToInt16(byte1, num + 18))]; - var num4 = smethod_1(BitConverter.ToInt16(byte1, num + 20)); - var num5 = smethod_1(BitConverter.ToInt16(byte1, num + 22)); - var num6 = smethod_1(BitConverter.ToInt16(byte1, num + 24)); - var num7 = 26; - switch (num5) - { - case 1: - { - var i = 0; - while (i < array2.Length) - { - array2[i] = byte1[num + num7] * num4; - i++; - num7++; - } - break; - } - case 2: - { - var j = 0; - while (j < array2.Length) - { - array2[j] = smethod_1(BitConverter.ToInt16(byte1, num + num7)) * num4; - j++; - num7 += 2; - } - break; - } - case 3: - { - var k = 0; - while (k < array2.Length) - { - array2[k] = Struct8.smethod_0(Struct8.smethod_3(byte1, num + num7, true)) * num4; - k++; - num7 += 3; - } - break; - } - case 4: - { - var l = 0; - while (l < array2.Length) - { - array2[l] = smethod_0(BitConverter.ToInt32(byte1, num + num7)) * num4; - l++; - num7 += 4; - } - break; - } - default: - throw new Exception("Size per table entry in bytes - is bigger then 4: " + num5); - } - _class830 = new Class83(array2, num6); - } - } - catch (IndexOutOfRangeException exception2) - { - throw new BitstreamException("VBRI Header Corrupted", exception2); - } - } - - private static int smethod_0(int int16) - { - if (!BitConverter.IsLittleEndian) - { - return int16; - } - return (smethod_1((short)int16) & 65535) << 16 | (smethod_1((short)(int16 >> 16)) & 65535); - } - - private static short smethod_1(short short1) - { - if (!BitConverter.IsLittleEndian) - { - return short1; - } - return (short)((short1 & 255) << 8 | (short1 >> 8 & 255)); - } - - public Enum3 method_3() - { - return _enum30; - } - - public int method_4() - { - return _int1; - } - - public int method_5() - { - return _int3; - } - - public int method_6() - { - return _int6; - } - - public int method_7() - { - return Int0[(int)_enum30][_int6]; - } - - public Enum5 method_8() - { - return _enum50; - } - - public bool method_9() - { - return _int2 == 0; - } - - public bool method_10() - { - return _bool2; - } - - public Class83 method_11() - { - return _class830; - } - - public bool method_12() - { - return Short0 == _class1010.method_1(); - } - - public int method_13() - { - return Int13; - } - - public int method_14() - { - return _int5; - } - - public int method_15() - { - if (_int1 == 1) - { - Int12 = 12 * Int15[(int)_enum30, 0, _int3] / Int0[(int)_enum30][_int6]; - if (_int4 != 0) - { - Int12++; - } - Int12 <<= 2; - Int13 = 0; - } - else - { - Int12 = 144 * Int15[(int)_enum30, _int1 - 1, _int3] / Int0[(int)_enum30][_int6]; - if (_enum30 == Enum3.Const0 || _enum30 == Enum3.Const2) - { - Int12 >>= 1; - } - if (_int4 != 0) - { - Int12++; - } - if (_int1 == 3) - { - if (_enum30 == Enum3.Const1) - { - Int13 = Int12 - ((_enum50 == Enum5.Const3) ? 17 : 32) - ((_int2 != 0) ? 0 : 2) - 4; - } - else - { - Int13 = Int12 - ((_enum50 == Enum5.Const3) ? 9 : 17) - ((_int2 != 0) ? 0 : 2) - 4; - } - } - else - { - Int13 = 0; - } - } - Int12 -= 4; - return Int12; - } - - public int method_16(int int16) - { - if (_bool2) - { - return _int9; - } - if (Int12 + 4 - _int4 == 0) - { - return 0; - } - return int16 / (Int12 + 4 - _int4); - } - - public double method_17() - { - if (_bool2) - { - var num = _double0[method_4()] / method_7(); - if (_enum30 == Enum3.Const0 || _enum30 == Enum3.Const2) - { - num /= 2.0; - } - return num * 1000.0; - } - float[,] array = { - { - 8.707483f, - 8f, - 12f - }, - { - 26.12245f, - 24f, - 36f - }, - { - 26.12245f, - 24f, - 36f - } - }; - return array[_int1 - 1, _int6]; - } - - public double method_18(int int16) - { - return method_16(int16) * method_17(); - } - - public string method_19() - { - switch (_int1) - { - case 1: - return "I"; - case 2: - return "II"; - case 3: - return "III"; - default: - return null; - } - } - - public string method_20() - { - if (_bool2) - { - return Convert.ToString(method_21() / 1000) + " kb/s"; - } - return String0[(int)_enum30][_int1 - 1][_int3]; - } - - public int method_21() - { - if (_bool2) - { - return (int)(_int11 * 8 / (method_17() * _int9)) * 1000; - } - return Int15[(int)_enum30, _int1 - 1, _int3]; - } - - public string method_22() - { - switch (_int6) - { - case 0: - if (_enum30 == Enum3.Const1) - { - return "44.1 kHz"; - } - if (_enum30 == Enum3.Const0) - { - return "22.05 kHz"; - } - return "11.025 kHz"; - case 1: - if (_enum30 == Enum3.Const1) - { - return "48 kHz"; - } - if (_enum30 == Enum3.Const0) - { - return "24 kHz"; - } - return "12 kHz"; - case 2: - if (_enum30 == Enum3.Const1) - { - return "32 kHz"; - } - if (_enum30 == Enum3.Const0) - { - return "16 kHz"; - } - return "8 kHz"; - default: - return null; - } - } - - public string method_23() - { - switch (_enum50) - { - case Enum5.Const0: - return "Stereo"; - case Enum5.Const1: - return "Joint stereo"; - case Enum5.Const2: - return "Dual channel"; - case Enum5.Const3: - return "Single channel"; - default: - return null; - } - } - - public string method_24() - { - switch (_enum30) - { - case Enum3.Const0: - return "MPEG-2 LSF"; - case Enum3.Const1: - return "MPEG-1"; - case Enum3.Const2: - return "MPEG-2.5 LSF"; - default: - return null; - } - } - - public int method_25() - { - return _int7; - } - - public int method_26() - { - return _int8; - } - } -} + public class ZzSoundClass + { + public static readonly int[][] Int0 = + { + new[] + { + 22050, + 24000, + 16000, + 1 + }, + new[] + { + 44100, + 48000, + 32000, + 1 + }, + new[] + { + 11025, + 12000, + 8000, + 1 + } + }; + + private int _int1; + + private int _int2; + + private int _int3; + + private int _int4; + + private int _int5; + + private Enum3 _enum30; + + private Enum5 _enum50; + + private int _int6; + + private int _int7; + + private int _int8; + + private bool _bool0; + + private bool _bool1; + + private readonly double[] _double0 = + { + -1.0, + 384.0, + 1152.0, + 1152.0 + }; + + private bool _bool2; + + private int _int9; + + private int _int10; + + private int _int11; + + private Class83 _class830; + + private byte _byte0; + + private Class101 _class1010; + + public short Short0; + + public int Int12; + + public int Int13; + + private int _int14 = -1; + + public static readonly int[,,] Int15 = + { + { + { + 0, + 32000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 176000, + 192000, + 224000, + 256000, + 0 + }, + { + 0, + 8000, + 16000, + 24000, + 32000, + 40000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 0 + }, + { + 0, + 8000, + 16000, + 24000, + 32000, + 40000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 0 + } + }, + { + { + 0, + 32000, + 64000, + 96000, + 128000, + 160000, + 192000, + 224000, + 256000, + 288000, + 320000, + 352000, + 384000, + 416000, + 448000, + 0 + }, + { + 0, + 32000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 160000, + 192000, + 224000, + 256000, + 320000, + 384000, + 0 + }, + { + 0, + 32000, + 40000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 160000, + 192000, + 224000, + 256000, + 320000, + 0 + } + }, + { + { + 0, + 32000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 176000, + 192000, + 224000, + 256000, + 0 + }, + { + 0, + 8000, + 16000, + 24000, + 32000, + 40000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 0 + }, + { + 0, + 8000, + 16000, + 24000, + 32000, + 40000, + 48000, + 56000, + 64000, + 80000, + 96000, + 112000, + 128000, + 144000, + 160000, + 0 + } + } + }; + + public static readonly string[][][] String0 = + { + new[] + { + new[] + { + "free format", + "32 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "176 kbit/s", + "192 kbit/s", + "224 kbit/s", + "256 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "8 kbit/s", + "16 kbit/s", + "24 kbit/s", + "32 kbit/s", + "40 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "8 kbit/s", + "16 kbit/s", + "24 kbit/s", + "32 kbit/s", + "40 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "forbidden" + } + }, + new[] + { + new[] + { + "free format", + "32 kbit/s", + "64 kbit/s", + "96 kbit/s", + "128 kbit/s", + "160 kbit/s", + "192 kbit/s", + "224 kbit/s", + "256 kbit/s", + "288 kbit/s", + "320 kbit/s", + "352 kbit/s", + "384 kbit/s", + "416 kbit/s", + "448 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "32 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "160 kbit/s", + "192 kbit/s", + "224 kbit/s", + "256 kbit/s", + "320 kbit/s", + "384 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "32 kbit/s", + "40 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "160 kbit/s", + "192 kbit/s", + "224 kbit/s", + "256 kbit/s", + "320 kbit/s", + "forbidden" + } + }, + new[] + { + new[] + { + "free format", + "32 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "176 kbit/s", + "192 kbit/s", + "224 kbit/s", + "256 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "8 kbit/s", + "16 kbit/s", + "24 kbit/s", + "32 kbit/s", + "40 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "forbidden" + }, + new[] + { + "free format", + "8 kbit/s", + "16 kbit/s", + "24 kbit/s", + "32 kbit/s", + "40 kbit/s", + "48 kbit/s", + "56 kbit/s", + "64 kbit/s", + "80 kbit/s", + "96 kbit/s", + "112 kbit/s", + "128 kbit/s", + "144 kbit/s", + "160 kbit/s", + "forbidden" + } + } + }; + + private void method_0() + { + _byte0 = Class82.Byte1; + } + + public ZzSoundClass() + { + method_0(); + } + + public override string ToString() + { + var stringBuilder = new StringBuilder(200); + stringBuilder.Append("Layer "); + stringBuilder.Append(method_19()); + stringBuilder.Append(" frame "); + stringBuilder.Append(method_23()); + stringBuilder.Append(' '); + stringBuilder.Append(method_24()); + if (!method_9()) + { + stringBuilder.Append(" no"); + } + stringBuilder.Append(" checksums"); + stringBuilder.Append(' '); + stringBuilder.Append(method_22()); + stringBuilder.Append(','); + stringBuilder.Append(' '); + stringBuilder.Append(method_20()); + return stringBuilder.ToString(); + } + + public void method_1(Class82 class820, Class101[] class1011) + { + var flag = false; + while (true) + { + var num = class820.method_9(_byte0); + _int14 = num; + if (_byte0 == Class82.Byte1) + { + _enum30 = (Enum3) (num >> 19 & 1); + if ((num >> 20 & 1) == 0) + { + if (_enum30 != Enum3.Const0) + { + goto IL_1EE; + } + _enum30 = Enum3.Const2; + } + if ((_int6 = (num >> 10 & 3)) == 3) + { + goto Block_20; + } + } + _int1 = (4 - (num >> 17) & 3); + _int2 = (num >> 16 & 1); + _int3 = (num >> 12 & 15); + _int4 = (num >> 9 & 1); + _enum50 = (Enum5) (num >> 6 & 3); + _int5 = (num >> 4 & 3); + if (_enum50 == Enum5.Const1) + { + _int8 = (_int5 << 2) + 4; + } + else + { + _int8 = 0; + } + if ((num >> 3 & 1) == 1) + { + _bool0 = true; + } + if ((num >> 2 & 1) == 1) + { + _bool1 = true; + } + if (_int1 == 1) + { + _int7 = 32; + } + else + { + var num2 = _int3; + if (_enum50 != Enum5.Const3) + { + if (num2 == 4) + { + num2 = 1; + } + else + { + num2 -= 4; + } + } + if (num2 != 1) + { + if (num2 != 2) + { + if (_int6 != 1 && (num2 < 3 || num2 > 5)) + { + _int7 = 30; + goto IL_102; + } + _int7 = 27; + goto IL_102; + } + } + _int7 = ((_int6 == 2) ? 12 : 8); + } + IL_102: + if (_int8 > _int7) + { + _int8 = _int7; + } + method_15(); + var num3 = class820.method_11(Int12); + if (Int12 >= 0 && num3 != Int12) + { + break; + } + if (class820.method_8(_byte0)) + { + if (_byte0 == Class82.Byte1) + { + _byte0 = Class82.Byte2; + class820.method_14(num & -521024); + } + flag = true; + } + else + { + class820.method_6(); + } + if (flag) + { + goto Block_17; + } + } + throw new BitstreamException(BitstreamError.InvalidFrame); + Block_17: + class820.method_12(); + if (_int2 == 0) + { + Short0 = (short) class820.method_13(16); + if (_class1010 == null) + { + _class1010 = new Class101(); + } + var num = 0; + _class1010.method_0(num, 16); + class1011[0] = _class1010; + } + else + { + class1011[0] = null; + } + return; + Block_20: + throw new BitstreamException(BitstreamError.UnknownError); + IL_1EE: + throw new BitstreamException(BitstreamError.UnknownError); + } + + public void method_2(byte[] byte1) + { + int num; + if (_enum30 == Enum3.Const1) + { + num = ((_enum50 == Enum5.Const3) ? 17 : 32); + } + else + { + num = ((_enum50 == Enum5.Const3) ? 9 : 17); + } + try + { + var @string = Encoding.UTF8.GetString(byte1, num, 4); + if (@string.Equals("Xing") || @string.Equals("Info")) + { + _bool2 = true; + _int9 = -1; + _int11 = -1; + _int10 = -1; + var array = new byte[100]; + var num2 = smethod_0(BitConverter.ToInt32(byte1, num + 4)); + var num3 = 8; + if ((num2 & 1) != 0) + { + _int9 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); + num3 += 4; + } + if ((num2 & 2) != 0) + { + _int11 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); + num3 += 4; + } + if ((num2 & 4) != 0) + { + Buffer.BlockCopy(byte1, num + num3, array, 0, array.Length); + num3 += array.Length; + _class830 = new Class83(array, _int11); + } + if ((num2 & 8) != 0) + { + _int10 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); + num3 += 4; + } + } + } + catch (IndexOutOfRangeException exception) + { + throw new BitstreamException("Xing Header Corrupted", exception); + } + num = 32; + try + { + if (Encoding.UTF8.GetString(byte1, num, 4).Equals("VBRI")) + { + _bool2 = true; + _int9 = -1; + _int11 = -1; + _int10 = -1; + _int10 = smethod_1(BitConverter.ToInt16(byte1, num + 8)); + _int11 = smethod_0(BitConverter.ToInt32(byte1, num + 10)); + _int9 = smethod_0(BitConverter.ToInt32(byte1, num + 14)); + var array2 = new int[smethod_1(BitConverter.ToInt16(byte1, num + 18))]; + var num4 = smethod_1(BitConverter.ToInt16(byte1, num + 20)); + var num5 = smethod_1(BitConverter.ToInt16(byte1, num + 22)); + var num6 = smethod_1(BitConverter.ToInt16(byte1, num + 24)); + var num7 = 26; + switch (num5) + { + case 1: + { + var i = 0; + while (i < array2.Length) + { + array2[i] = byte1[num + num7] * num4; + i++; + num7++; + } + break; + } + case 2: + { + var j = 0; + while (j < array2.Length) + { + array2[j] = smethod_1(BitConverter.ToInt16(byte1, num + num7)) * num4; + j++; + num7 += 2; + } + break; + } + case 3: + { + var k = 0; + while (k < array2.Length) + { + array2[k] = Struct8.smethod_0(Struct8.smethod_3(byte1, num + num7, true)) * num4; + k++; + num7 += 3; + } + break; + } + case 4: + { + var l = 0; + while (l < array2.Length) + { + array2[l] = smethod_0(BitConverter.ToInt32(byte1, num + num7)) * num4; + l++; + num7 += 4; + } + break; + } + default: + throw new Exception("Size per table entry in bytes - is bigger then 4: " + num5); + } + _class830 = new Class83(array2, num6); + } + } + catch (IndexOutOfRangeException exception2) + { + throw new BitstreamException("VBRI Header Corrupted", exception2); + } + } + + private static int smethod_0(int int16) + { + if (!BitConverter.IsLittleEndian) + { + return int16; + } + return (smethod_1((short) int16) & 65535) << 16 | (smethod_1((short) (int16 >> 16)) & 65535); + } + + private static short smethod_1(short short1) + { + if (!BitConverter.IsLittleEndian) + { + return short1; + } + return (short) ((short1 & 255) << 8 | (short1 >> 8 & 255)); + } + + public Enum3 method_3() + { + return _enum30; + } + + public int method_4() + { + return _int1; + } + + public int method_5() + { + return _int3; + } + + public int method_6() + { + return _int6; + } + + public int method_7() + { + return Int0[(int) _enum30][_int6]; + } + + public Enum5 method_8() + { + return _enum50; + } + + public bool method_9() + { + return _int2 == 0; + } + + public bool method_10() + { + return _bool2; + } + + public Class83 method_11() + { + return _class830; + } + + public bool method_12() + { + return Short0 == _class1010.method_1(); + } + + public int method_13() + { + return Int13; + } + + public int method_14() + { + return _int5; + } + + public int method_15() + { + if (_int1 == 1) + { + Int12 = 12 * Int15[(int) _enum30, 0, _int3] / Int0[(int) _enum30][_int6]; + if (_int4 != 0) + { + Int12++; + } + Int12 <<= 2; + Int13 = 0; + } + else + { + Int12 = 144 * Int15[(int) _enum30, _int1 - 1, _int3] / Int0[(int) _enum30][_int6]; + if (_enum30 == Enum3.Const0 || _enum30 == Enum3.Const2) + { + Int12 >>= 1; + } + if (_int4 != 0) + { + Int12++; + } + if (_int1 == 3) + { + if (_enum30 == Enum3.Const1) + { + Int13 = Int12 - ((_enum50 == Enum5.Const3) ? 17 : 32) - ((_int2 != 0) ? 0 : 2) - 4; + } + else + { + Int13 = Int12 - ((_enum50 == Enum5.Const3) ? 9 : 17) - ((_int2 != 0) ? 0 : 2) - 4; + } + } + else + { + Int13 = 0; + } + } + Int12 -= 4; + return Int12; + } + + public int method_16(int int16) + { + if (_bool2) + { + return _int9; + } + if (Int12 + 4 - _int4 == 0) + { + return 0; + } + return int16 / (Int12 + 4 - _int4); + } + + public double method_17() + { + if (_bool2) + { + var num = _double0[method_4()] / method_7(); + if (_enum30 == Enum3.Const0 || _enum30 == Enum3.Const2) + { + num /= 2.0; + } + return num * 1000.0; + } + float[,] array = + { + { + 8.707483f, + 8f, + 12f + }, + { + 26.12245f, + 24f, + 36f + }, + { + 26.12245f, + 24f, + 36f + } + }; + return array[_int1 - 1, _int6]; + } + + public double method_18(int int16) + { + return method_16(int16) * method_17(); + } + + public string method_19() + { + switch (_int1) + { + case 1: + return "I"; + case 2: + return "II"; + case 3: + return "III"; + default: + return null; + } + } + + public string method_20() + { + if (_bool2) + { + return Convert.ToString(method_21() / 1000) + " kb/s"; + } + return String0[(int) _enum30][_int1 - 1][_int3]; + } + + public int method_21() + { + if (_bool2) + { + return (int) (_int11 * 8 / (method_17() * _int9)) * 1000; + } + return Int15[(int) _enum30, _int1 - 1, _int3]; + } + + public string method_22() + { + switch (_int6) + { + case 0: + if (_enum30 == Enum3.Const1) + { + return "44.1 kHz"; + } + if (_enum30 == Enum3.Const0) + { + return "22.05 kHz"; + } + return "11.025 kHz"; + case 1: + if (_enum30 == Enum3.Const1) + { + return "48 kHz"; + } + if (_enum30 == Enum3.Const0) + { + return "24 kHz"; + } + return "12 kHz"; + case 2: + if (_enum30 == Enum3.Const1) + { + return "32 kHz"; + } + if (_enum30 == Enum3.Const0) + { + return "16 kHz"; + } + return "8 kHz"; + default: + return null; + } + } + + public string method_23() + { + switch (_enum50) + { + case Enum5.Const0: + return "Stereo"; + case Enum5.Const1: + return "Joint stereo"; + case Enum5.Const2: + return "Dual channel"; + case Enum5.Const3: + return "Single channel"; + default: + return null; + } + } + + public string method_24() + { + switch (_enum30) + { + case Enum3.Const0: + return "MPEG-2 LSF"; + case Enum3.Const1: + return "MPEG-1"; + case Enum3.Const2: + return "MPEG-2.5 LSF"; + default: + return null; + } + } + + public int method_25() + { + return _int7; + } + + public int method_26() + { + return _int8; + } + } +} \ No newline at end of file diff --git a/GHNamespaceJ/zzStreamClass106.cs b/GHNamespaceJ/zzStreamClass106.cs index 4c978bf..bdb4d48 100644 --- a/GHNamespaceJ/zzStreamClass106.cs +++ b/GHNamespaceJ/zzStreamClass106.cs @@ -4,71 +4,71 @@ namespace GHNamespaceJ { - public class ZzStreamClass106 - { - private readonly Stream _stream; + public class ZzStreamClass106 + { + private readonly Stream _stream; - private readonly int _int0; + private readonly int _int0; - private int _int1; + private int _int1; - private readonly byte[] _buffer; + private readonly byte[] _buffer; - private readonly CircularByteBuffer _circBuffer; + private readonly CircularByteBuffer _circBuffer; - public ZzStreamClass106(Stream stream1, int int2) - { - _stream = stream1; - _int0 = int2; - _buffer = new byte[_int0]; - _circBuffer = new CircularByteBuffer(_int0); - } + public ZzStreamClass106(Stream stream1, int int2) + { + _stream = stream1; + _int0 = int2; + _buffer = new byte[_int0]; + _circBuffer = new CircularByteBuffer(_int0); + } - public Stream method_0() - { - return _stream; - } + public Stream method_0() + { + return _stream; + } - public int method_1(byte[] byte1, int int2, int int3) - { - var num = 0; - var flag = true; - while (num < int3 && flag) - { - if (_int1 > 0) - { - _int1--; - byte1[int2 + num] = _circBuffer[_int1]; - num++; - } - else - { - var num2 = int3 - num; - var num3 = _stream.Read(_buffer, 0, num2); - flag = (num3 >= num2); - for (var i = 0; i < num3; i++) - { - _circBuffer.method_0(_buffer[i]); - byte1[int2 + num + i] = _buffer[i]; - } - num += num3; - } - } - return num; - } + public int method_1(byte[] byte1, int int2, int int3) + { + var num = 0; + var flag = true; + while (num < int3 && flag) + { + if (_int1 > 0) + { + _int1--; + byte1[int2 + num] = _circBuffer[_int1]; + num++; + } + else + { + var num2 = int3 - num; + var num3 = _stream.Read(_buffer, 0, num2); + flag = (num3 >= num2); + for (var i = 0; i < num3; i++) + { + _circBuffer.method_0(_buffer[i]); + byte1[int2 + num + i] = _buffer[i]; + } + num += num3; + } + } + return num; + } - public void IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(int int2) - { - _int1 += int2; - if (_int1 > _int0) - { - Console.WriteLine("YOUR BACKSTREAM IS FISTED!"); - } - } + public void IncrementSomeVariableAndCheckIfTheBackStreamIsFisted(int int2) + { + _int1 += int2; + if (_int1 > _int0) + { + Console.WriteLine("YOUR BACKSTREAM IS FISTED!"); + } + } - public void method_3() - { - _stream.Close(); - } - } -} + public void method_3() + { + _stream.Close(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class117.cs b/GHNamespaceK/Class117.cs index 9fe151d..cd05683 100644 --- a/GHNamespaceK/Class117.cs +++ b/GHNamespaceK/Class117.cs @@ -10,291 +10,290 @@ namespace GHNamespaceK { - public class Class117 : IDisposable, IPlayableAudio - { - private readonly GenericAudioStream _stream10; - - private readonly Class120 _class1200; - - private readonly IntPtr _intptr0; - - private readonly Enum12 _enum120; - - private readonly int _int0; - - private readonly double _double0; - - private readonly int _int1; - - private readonly int _int2; - - private readonly IntPtr _intptr1; - - private readonly IntPtr[] _intptr2; - - private AudioStatus _enum10; - - private bool _bool0; - - private float _float0 = 1f; - - private int _int3; - - private bool _bool1; - - private readonly Stopwatch _stopwatch0 = new Stopwatch(); - - private Thread _thread0; - - public Class117(GenericAudioStream stream11) - { - _stream10 = stream11; - _class1200 = (Class120.smethod_2() ?? new Class120()); - _enum120 = Class119.smethod_10(stream11.vmethod_0()); - _int0 = stream11.vmethod_0().int_0; - _double0 = stream11.vmethod_0().int_0 * (double)stream11.vmethod_0().short_1 / 1000.0; - _int1 = stream11.vmethod_0().method_0(80); - _int2 = 5; - _intptr0 = Marshal.AllocHGlobal(_int1); - _intptr1 = Class119.smethod_2(); - _intptr2 = Class119.smethod_8(_int2); - _enum10 = AudioStatus.ShouldStopAudio; - } - - public void method_0() - { - if (_thread0 != null) - { - _thread0.Abort(); - } - _thread0 = new Thread(method_1); - _thread0.Start(); - } - - private void method_1() - { - var flag = false; - while (_enum10 != AudioStatus.ShouldStopAudio && !flag) - { - if (_bool0) - { - _bool0 = false; - Class119.alSourcef(_intptr1, Enum10.Const4, _float0); - } - if (_enum10 != AudioStatus.IsCurrentlyPlayingAudio) - { - var num = 0; - int num2; - do - { - Class119.alGetSourcei(_intptr1, Enum11.Const6, out num2); - if (num > 50) - { - Thread.Sleep(1); - } - else - { - num++; - } - } - while (num2 == 0); - while (num2-- != 0) - { - var intPtr = Class119.smethod_6(_intptr1); - int num3; - lock (_stream10) - { - num3 = _stream10.vmethod_3(_intptr0, _int1); - } - if (num3 < _int1) - { - flag = true; - } - Class119.alBufferData(intPtr, _enum120, _intptr0, num3, _int0); - Class119.smethod_5(_intptr1, ref intPtr); - _int3 += _int1; - _stopwatch0.Reset(); - _stopwatch0.Start(); - } - int num4; - Class119.alGetSourcei(_intptr1, Enum11.Const5, out num4); - if (num4 <= 0) - { - break; - } - if (Class119.smethod_4(_intptr1, Enum11.Const4) != 4114) - { - Class119.alSourcePlay(_intptr1); - } - } - } - if (!flag) - { - return; - } - while (Class119.smethod_4(_intptr1, Enum11.Const6) != _int2) - { - } - Stream arg1880 = _stream10; - _int3 = 0; - arg1880.Position = 0L; - _enum10 = AudioStatus.ShouldStopAudio; - Class119.alSourceStop(_intptr1); - _stopwatch0.Reset(); - Class119.smethod_7(_intptr1, _intptr2.Length); - } - - public TimeSpan AudioLength() - { - return TimeSpan.FromMilliseconds(_int3 / _double0 + _stopwatch0.ElapsedMilliseconds); - } - - public void SetStartingTime(TimeSpan timeSpan0) - { - SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); - } - - public void SetStartingTimeBasedOnSomeValue(int int4) - { - var @enum = _enum10; - if (@enum != AudioStatus.ShouldStopAudio) - { - StopPlaying(); - } - Stream arg210 = _stream10; - _int3 = int4; - arg210.Position = int4; - _stopwatch0.Reset(); - if (@enum == AudioStatus.ShouldStartAudio) - { - DifferentStartPlaying(); - } - GC.Collect(); - } - - public WaveFormat GetWaveFormat() - { - return _stream10.vmethod_0(); - } - - public void SetVolume(float float1) - { - _bool0 = true; - _float0 = float1; - } - - public AudioStatus GetStatus() - { - return _enum10; - } - - public void DifferentStartPlaying() - { - switch (_enum10) - { - case AudioStatus.ShouldStartAudio: - return; - case AudioStatus.IsCurrentlyPlayingAudio: - Class119.alSourcePlay(_intptr1); - _stopwatch0.Start(); - _enum10 = AudioStatus.ShouldStartAudio; - return; - default: - { - while (Class119.smethod_4(_intptr1, Enum11.Const5) > 0) - { - Class119.smethod_6(_intptr1); - } - var array = _intptr2; - for (var i = 0; i < array.Length; i++) - { - var intPtr = array[i]; - int num; - lock (_stream10) - { - num = _stream10.vmethod_3(_intptr0, _int1); - } - Class119.alBufferData(intPtr, _enum120, _intptr0, num, _int0); - } - Class119.alSourceQueueBuffers(_intptr1, _intptr2.Length, _intptr2); - if (!_bool1) - { - ThreadPool.QueueUserWorkItem(method_3); - } - Class119.alSourcef(_intptr1, Enum10.Const4, 0f); - Class119.alSourcePlay(_intptr1); - _stopwatch0.Start(); - _enum10 = AudioStatus.ShouldStartAudio; - method_0(); - return; - } - } - } - - public void StartPlaying() - { - Class119.alSourcePause(_intptr1); - _stopwatch0.Stop(); - _enum10 = AudioStatus.IsCurrentlyPlayingAudio; - } - - public void StopPlaying() - { - _thread0.Abort(); - _enum10 = AudioStatus.ShouldStopAudio; - Class119.alSourceStop(_intptr1); - _stopwatch0.Reset(); - Class119.smethod_7(_intptr1, _intptr2.Length); - } - - public void Dispose() - { - method_2(true); - GC.SuppressFinalize(this); - } - - public void method_2(bool bool2) - { - if (bool2) - { - _stream10.Dispose(); - } - if (_thread0 != null) - { - _thread0.Abort(); - } - try - { - Marshal.FreeHGlobal(_intptr0); - } - catch - { - } - Class119.alSourceStop(_intptr1); - Class119.smethod_3(_intptr1); - Class119.smethod_9(_intptr2); - _class1200.Dispose(); - } - - ~Class117() - { - method_2(false); - } - - [CompilerGenerated] - private void method_3(object object0) - { - _bool1 = true; - var num = 0f; - var num2 = _float0; - while (num < num2) - { - SetVolume(num); - num += 0.1f; - Thread.Sleep(50); - } - SetVolume(num2); - _bool1 = false; - } - } -} + public class Class117 : IDisposable, IPlayableAudio + { + private readonly GenericAudioStream _stream10; + + private readonly Class120 _class1200; + + private readonly IntPtr _intptr0; + + private readonly Enum12 _enum120; + + private readonly int _int0; + + private readonly double _double0; + + private readonly int _int1; + + private readonly int _int2; + + private readonly IntPtr _intptr1; + + private readonly IntPtr[] _intptr2; + + private AudioStatus _enum10; + + private bool _bool0; + + private float _float0 = 1f; + + private int _int3; + + private bool _bool1; + + private readonly Stopwatch _stopwatch0 = new Stopwatch(); + + private Thread _thread0; + + public Class117(GenericAudioStream stream11) + { + _stream10 = stream11; + _class1200 = (Class120.smethod_2() ?? new Class120()); + _enum120 = Class119.smethod_10(stream11.vmethod_0()); + _int0 = stream11.vmethod_0().int_0; + _double0 = stream11.vmethod_0().int_0 * (double) stream11.vmethod_0().short_1 / 1000.0; + _int1 = stream11.vmethod_0().method_0(80); + _int2 = 5; + _intptr0 = Marshal.AllocHGlobal(_int1); + _intptr1 = Class119.smethod_2(); + _intptr2 = Class119.smethod_8(_int2); + _enum10 = AudioStatus.ShouldStopAudio; + } + + public void method_0() + { + if (_thread0 != null) + { + _thread0.Abort(); + } + _thread0 = new Thread(method_1); + _thread0.Start(); + } + + private void method_1() + { + var flag = false; + while (_enum10 != AudioStatus.ShouldStopAudio && !flag) + { + if (_bool0) + { + _bool0 = false; + Class119.alSourcef(_intptr1, Enum10.Const4, _float0); + } + if (_enum10 != AudioStatus.IsCurrentlyPlayingAudio) + { + var num = 0; + int num2; + do + { + Class119.alGetSourcei(_intptr1, Enum11.Const6, out num2); + if (num > 50) + { + Thread.Sleep(1); + } + else + { + num++; + } + } while (num2 == 0); + while (num2-- != 0) + { + var intPtr = Class119.smethod_6(_intptr1); + int num3; + lock (_stream10) + { + num3 = _stream10.vmethod_3(_intptr0, _int1); + } + if (num3 < _int1) + { + flag = true; + } + Class119.alBufferData(intPtr, _enum120, _intptr0, num3, _int0); + Class119.smethod_5(_intptr1, ref intPtr); + _int3 += _int1; + _stopwatch0.Reset(); + _stopwatch0.Start(); + } + int num4; + Class119.alGetSourcei(_intptr1, Enum11.Const5, out num4); + if (num4 <= 0) + { + break; + } + if (Class119.smethod_4(_intptr1, Enum11.Const4) != 4114) + { + Class119.alSourcePlay(_intptr1); + } + } + } + if (!flag) + { + return; + } + while (Class119.smethod_4(_intptr1, Enum11.Const6) != _int2) + { + } + Stream arg1880 = _stream10; + _int3 = 0; + arg1880.Position = 0L; + _enum10 = AudioStatus.ShouldStopAudio; + Class119.alSourceStop(_intptr1); + _stopwatch0.Reset(); + Class119.smethod_7(_intptr1, _intptr2.Length); + } + + public TimeSpan AudioLength() + { + return TimeSpan.FromMilliseconds(_int3 / _double0 + _stopwatch0.ElapsedMilliseconds); + } + + public void SetStartingTime(TimeSpan timeSpan0) + { + SetStartingTimeBasedOnSomeValue(Convert.ToInt32(_double0 * timeSpan0.TotalMilliseconds)); + } + + public void SetStartingTimeBasedOnSomeValue(int int4) + { + var @enum = _enum10; + if (@enum != AudioStatus.ShouldStopAudio) + { + StopPlaying(); + } + Stream arg210 = _stream10; + _int3 = int4; + arg210.Position = int4; + _stopwatch0.Reset(); + if (@enum == AudioStatus.ShouldStartAudio) + { + DifferentStartPlaying(); + } + GC.Collect(); + } + + public WaveFormat GetWaveFormat() + { + return _stream10.vmethod_0(); + } + + public void SetVolume(float float1) + { + _bool0 = true; + _float0 = float1; + } + + public AudioStatus GetStatus() + { + return _enum10; + } + + public void DifferentStartPlaying() + { + switch (_enum10) + { + case AudioStatus.ShouldStartAudio: + return; + case AudioStatus.IsCurrentlyPlayingAudio: + Class119.alSourcePlay(_intptr1); + _stopwatch0.Start(); + _enum10 = AudioStatus.ShouldStartAudio; + return; + default: + { + while (Class119.smethod_4(_intptr1, Enum11.Const5) > 0) + { + Class119.smethod_6(_intptr1); + } + var array = _intptr2; + for (var i = 0; i < array.Length; i++) + { + var intPtr = array[i]; + int num; + lock (_stream10) + { + num = _stream10.vmethod_3(_intptr0, _int1); + } + Class119.alBufferData(intPtr, _enum120, _intptr0, num, _int0); + } + Class119.alSourceQueueBuffers(_intptr1, _intptr2.Length, _intptr2); + if (!_bool1) + { + ThreadPool.QueueUserWorkItem(method_3); + } + Class119.alSourcef(_intptr1, Enum10.Const4, 0f); + Class119.alSourcePlay(_intptr1); + _stopwatch0.Start(); + _enum10 = AudioStatus.ShouldStartAudio; + method_0(); + return; + } + } + } + + public void StartPlaying() + { + Class119.alSourcePause(_intptr1); + _stopwatch0.Stop(); + _enum10 = AudioStatus.IsCurrentlyPlayingAudio; + } + + public void StopPlaying() + { + _thread0.Abort(); + _enum10 = AudioStatus.ShouldStopAudio; + Class119.alSourceStop(_intptr1); + _stopwatch0.Reset(); + Class119.smethod_7(_intptr1, _intptr2.Length); + } + + public void Dispose() + { + method_2(true); + GC.SuppressFinalize(this); + } + + public void method_2(bool bool2) + { + if (bool2) + { + _stream10.Dispose(); + } + if (_thread0 != null) + { + _thread0.Abort(); + } + try + { + Marshal.FreeHGlobal(_intptr0); + } + catch + { + } + Class119.alSourceStop(_intptr1); + Class119.smethod_3(_intptr1); + Class119.smethod_9(_intptr2); + _class1200.Dispose(); + } + + ~Class117() + { + method_2(false); + } + + [CompilerGenerated] + private void method_3(object object0) + { + _bool1 = true; + var num = 0f; + var num2 = _float0; + while (num < num2) + { + SetVolume(num); + num += 0.1f; + Thread.Sleep(50); + } + SetVolume(num2); + _bool1 = false; + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class119.cs b/GHNamespaceK/Class119.cs index 4125d68..a5cf071 100644 --- a/GHNamespaceK/Class119.cs +++ b/GHNamespaceK/Class119.cs @@ -5,286 +5,289 @@ namespace GHNamespaceK { - public static class Class119 - { - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] - public static extern bool alIsExtensionPresent([In] string extname); + public static class Class119 + { + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, + ExactSpelling = true)] + public static extern bool alIsExtensionPresent([In] string extname); - public static bool smethod_0() - { - return alIsExtensionPresent("AL_EXT_FLOAT32"); - } + public static bool smethod_0() + { + return alIsExtensionPresent("AL_EXT_FLOAT32"); + } - public static bool smethod_1() - { - return alIsExtensionPresent("AL_EXT_MCFORMATS"); - } + public static bool smethod_1() + { + return alIsExtensionPresent("AL_EXT_MCFORMATS"); + } - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alGenSources(int n, out IntPtr sources); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alGenSources(int n, out IntPtr sources); - [CLSCompliant(true)] - public static IntPtr smethod_2() - { - IntPtr result; - alGenSources(1, out result); - return result; - } + [CLSCompliant(true)] + public static IntPtr smethod_2() + { + IntPtr result; + alGenSources(1, out result); + return result; + } - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alDeleteSources(int int0, ref IntPtr intptr0); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alDeleteSources(int int0, ref IntPtr intptr0); - [CLSCompliant(true)] - public static void smethod_3(IntPtr intptr0) - { - alDeleteSources(1, ref intptr0); - } + [CLSCompliant(true)] + public static void smethod_3(IntPtr intptr0) + { + alDeleteSources(1, ref intptr0); + } - [CLSCompliant(false), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alSourcef(IntPtr intptr0, Enum10 enum100, float float0); + [CLSCompliant(false), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alSourcef(IntPtr intptr0, Enum10 enum100, float float0); - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alGetSourcei(IntPtr sid, Enum11 param, out int value); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alGetSourcei(IntPtr sid, Enum11 param, out int value); - public static int smethod_4(IntPtr intptr0, Enum11 enum110) - { - int result; - alGetSourcei(intptr0, enum110, out result); - return result; - } + public static int smethod_4(IntPtr intptr0, Enum11 enum110) + { + int result; + alGetSourcei(intptr0, enum110, out result); + return result; + } - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alSourcePlay(IntPtr intptr0); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alSourcePlay(IntPtr intptr0); - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alSourceStop(IntPtr intptr0); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alSourceStop(IntPtr intptr0); - [CLSCompliant(true), SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alSourcePause(IntPtr intptr0); + [CLSCompliant(true), SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alSourcePause(IntPtr intptr0); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alSourceQueueBuffers(IntPtr intptr0, int int0, IntPtr[] intptr1); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alSourceQueueBuffers(IntPtr intptr0, int int0, IntPtr[] intptr1); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourceQueueBuffers", ExactSpelling = true)] - public static extern void alSourceQueueBuffers_1(IntPtr intptr0, int int0, ref IntPtr intptr1); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "alSourceQueueBuffers", + ExactSpelling = true)] + public static extern void alSourceQueueBuffers_1(IntPtr intptr0, int int0, ref IntPtr intptr1); - public static void smethod_5(IntPtr intptr0, ref IntPtr intptr1) - { - alSourceQueueBuffers_1(intptr0, 1, ref intptr1); - } + public static void smethod_5(IntPtr intptr0, ref IntPtr intptr1) + { + alSourceQueueBuffers_1(intptr0, 1, ref intptr1); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll")] - public static extern void alSourceUnqueueBuffers(IntPtr sid, int numEntries, [Out] IntPtr[] bids); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll")] + public static extern void alSourceUnqueueBuffers(IntPtr sid, int numEntries, [Out] IntPtr[] bids); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", EntryPoint = "alSourceUnqueueBuffers")] - public static extern void alSourceUnqueueBuffers_1(IntPtr sid, int numEntries, out IntPtr bids); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", EntryPoint = "alSourceUnqueueBuffers")] + public static extern void alSourceUnqueueBuffers_1(IntPtr sid, int numEntries, out IntPtr bids); - public static IntPtr smethod_6(IntPtr intptr0) - { - IntPtr result; - alSourceUnqueueBuffers_1(intptr0, 1, out result); - return result; - } + public static IntPtr smethod_6(IntPtr intptr0) + { + IntPtr result; + alSourceUnqueueBuffers_1(intptr0, 1, out result); + return result; + } - public static IntPtr[] smethod_7(IntPtr intptr0, int int0) - { - if (int0 <= 0) - { - throw new ArgumentOutOfRangeException("numEntries", "Must be greater than zero."); - } - var array = new IntPtr[int0]; - alSourceUnqueueBuffers(intptr0, int0, array); - return array; - } + public static IntPtr[] smethod_7(IntPtr intptr0, int int0) + { + if (int0 <= 0) + { + throw new ArgumentOutOfRangeException("numEntries", "Must be greater than zero."); + } + var array = new IntPtr[int0]; + alSourceUnqueueBuffers(intptr0, int0, array); + return array; + } - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alGenBuffers(int n, [Out] IntPtr[] buffers); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alGenBuffers(int n, [Out] IntPtr[] buffers); - [CLSCompliant(true)] - public static IntPtr[] smethod_8(int int0) - { - var array = new IntPtr[int0]; - alGenBuffers(array.Length, array); - return array; - } + [CLSCompliant(true)] + public static IntPtr[] smethod_8(int int0) + { + var array = new IntPtr[int0]; + alGenBuffers(array.Length, array); + return array; + } - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alDeleteBuffers(int n, [In] IntPtr[] buffers); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alDeleteBuffers(int n, [In] IntPtr[] buffers); - [CLSCompliant(true)] - public static void smethod_9(IntPtr[] intptr0) - { - if (intptr0 == null) - { - throw new ArgumentNullException(); - } - if (intptr0.Length == 0) - { - throw new ArgumentOutOfRangeException(); - } - alDeleteBuffers(intptr0.Length, intptr0); - } + [CLSCompliant(true)] + public static void smethod_9(IntPtr[] intptr0) + { + if (intptr0 == null) + { + throw new ArgumentNullException(); + } + if (intptr0.Length == 0) + { + throw new ArgumentOutOfRangeException(); + } + alDeleteBuffers(intptr0.Length, intptr0); + } - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alBufferData(IntPtr intptr0, Enum12 enum120, IntPtr intptr1, int int0, int int1); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alBufferData(IntPtr intptr0, Enum12 enum120, IntPtr intptr1, int int0, int int1); - public static Enum12 smethod_10(WaveFormat waveFormat0) - { - switch (waveFormat0.waveFormatTag_0) - { - case WaveFormatTag.Pcm: - switch (waveFormat0.short_0) - { - case 1: - { - var short_ = waveFormat0.short_2; - if (short_ == 8) - { - return Enum12.Const0; - } - if (short_ == 16) - { - return Enum12.Const1; - } - break; - } - case 2: - { - var short2 = waveFormat0.short_2; - if (short2 == 8) - { - return Enum12.Const2; - } - if (short2 == 16) - { - return Enum12.Const3; - } - break; - } - default: - if (smethod_1()) - { - switch (waveFormat0.short_0) - { - case 4: - { - var short3 = waveFormat0.short_2; - if (short3 == 8) - { - return Enum12.Const6; - } - if (short3 == 16) - { - return Enum12.Const7; - } - if (short3 == 32) - { - return Enum12.Const8; - } - break; - } - case 5: - { - var short4 = waveFormat0.short_2; - if (short4 == 8) - { - return Enum12.Const9; - } - if (short4 == 16) - { - return Enum12.Const10; - } - if (short4 == 32) - { - return Enum12.Const11; - } - break; - } - case 6: - { - var short5 = waveFormat0.short_2; - if (short5 == 8) - { - return Enum12.Const12; - } - if (short5 == 16) - { - return Enum12.Const13; - } - if (short5 == 32) - { - return Enum12.Const14; - } - break; - } - case 7: - { - var short6 = waveFormat0.short_2; - if (short6 == 8) - { - return Enum12.Const15; - } - if (short6 == 16) - { - return Enum12.Const16; - } - if (short6 == 32) - { - return Enum12.Const17; - } - break; - } - case 8: - { - var short7 = waveFormat0.short_2; - if (short7 == 8) - { - return Enum12.Const18; - } - if (short7 == 16) - { - return Enum12.Const19; - } - if (short7 == 32) - { - return Enum12.Const20; - } - break; - } - } - } - break; - } - break; - case WaveFormatTag.IeeeFloat: - if (smethod_0()) - { - switch (waveFormat0.short_0) - { - case 1: - return Enum12.Const4; - case 2: - return Enum12.Const5; - } - } - break; - } - throw new NotSupportedException(string.Concat("OpenAL does not support this format: ", waveFormat0.waveFormatTag_0, " | ", (int)waveFormat0.waveFormatTag_0)); - } - } -} + public static Enum12 smethod_10(WaveFormat waveFormat0) + { + switch (waveFormat0.waveFormatTag_0) + { + case WaveFormatTag.Pcm: + switch (waveFormat0.short_0) + { + case 1: + { + var short_ = waveFormat0.short_2; + if (short_ == 8) + { + return Enum12.Const0; + } + if (short_ == 16) + { + return Enum12.Const1; + } + break; + } + case 2: + { + var short2 = waveFormat0.short_2; + if (short2 == 8) + { + return Enum12.Const2; + } + if (short2 == 16) + { + return Enum12.Const3; + } + break; + } + default: + if (smethod_1()) + { + switch (waveFormat0.short_0) + { + case 4: + { + var short3 = waveFormat0.short_2; + if (short3 == 8) + { + return Enum12.Const6; + } + if (short3 == 16) + { + return Enum12.Const7; + } + if (short3 == 32) + { + return Enum12.Const8; + } + break; + } + case 5: + { + var short4 = waveFormat0.short_2; + if (short4 == 8) + { + return Enum12.Const9; + } + if (short4 == 16) + { + return Enum12.Const10; + } + if (short4 == 32) + { + return Enum12.Const11; + } + break; + } + case 6: + { + var short5 = waveFormat0.short_2; + if (short5 == 8) + { + return Enum12.Const12; + } + if (short5 == 16) + { + return Enum12.Const13; + } + if (short5 == 32) + { + return Enum12.Const14; + } + break; + } + case 7: + { + var short6 = waveFormat0.short_2; + if (short6 == 8) + { + return Enum12.Const15; + } + if (short6 == 16) + { + return Enum12.Const16; + } + if (short6 == 32) + { + return Enum12.Const17; + } + break; + } + case 8: + { + var short7 = waveFormat0.short_2; + if (short7 == 8) + { + return Enum12.Const18; + } + if (short7 == 16) + { + return Enum12.Const19; + } + if (short7 == 32) + { + return Enum12.Const20; + } + break; + } + } + } + break; + } + break; + case WaveFormatTag.IeeeFloat: + if (smethod_0()) + { + switch (waveFormat0.short_0) + { + case 1: + return Enum12.Const4; + case 2: + return Enum12.Const5; + } + } + break; + } + throw new NotSupportedException(string.Concat("OpenAL does not support this format: ", + waveFormat0.waveFormatTag_0, " | ", (int) waveFormat0.waveFormatTag_0)); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class120.cs b/GHNamespaceK/Class120.cs index 2be0937..f263061 100644 --- a/GHNamespaceK/Class120.cs +++ b/GHNamespaceK/Class120.cs @@ -5,316 +5,319 @@ namespace GHNamespaceK { - public class Class120 : IDisposable - { - private enum Enum13 - { - Const0, - Const1 - } + public class Class120 : IDisposable + { + private enum Enum13 + { + Const0, + Const1 + } - private bool _bool0; + private bool _bool0; - private bool _bool1; + private bool _bool1; - private IntPtr _intptr0; + private IntPtr _intptr0; - private Struct62 _struct620; + private Struct62 _struct620; - private bool _bool2; + private bool _bool2; - private string _string0; + private string _string0; - private static readonly object Object0; + private static readonly object Object0; - private static readonly List List0; + private static readonly List List0; - private static readonly Dictionary Dictionary0; + private static readonly Dictionary Dictionary0; - private static bool _bool3; + private static bool _bool3; - private static Enum13 _enum130; + private static Enum13 _enum130; - static Class120() - { - Object0 = new object(); - List0 = new List(); - Dictionary0 = new Dictionary(); - _bool3 = true; - smethod_0(); - } + static Class120() + { + Object0 = new object(); + List0 = new List(); + Dictionary0 = new Dictionary(); + _bool3 = true; + smethod_0(); + } - public Class120() : this(null, 0, 0, false, true) - { - } + public Class120() : this(null, 0, 0, false, true) + { + } - public Class120(string string1, int int0, int int1, bool bool4, bool bool5) - { - method_0(string1, int0, int1, bool4, bool5); - } + public Class120(string string1, int int0, int int1, bool bool4, bool bool5) + { + method_0(string1, int0, int1, bool4, bool5); + } - private static void smethod_0() - { - lock (Object0) - { - if (List0.Count == 0) - { - try - { - if (OpenAl.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT")) - { - _enum130 = Enum13.Const1; - List0.AddRange(OpenAl.smethod_1(IntPtr.Zero, Enum8.Const1)); - } - else - { - _enum130 = Enum13.Const0; - } - foreach (var arg650 in List0) - { - } - } - catch (DllNotFoundException) - { - _bool3 = false; - } - } - } - } + private static void smethod_0() + { + lock (Object0) + { + if (List0.Count == 0) + { + try + { + if (OpenAl.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT")) + { + _enum130 = Enum13.Const1; + List0.AddRange(OpenAl.smethod_1(IntPtr.Zero, Enum8.Const1)); + } + else + { + _enum130 = Enum13.Const0; + } + foreach (var arg650 in List0) + { + } + } + catch (DllNotFoundException) + { + _bool3 = false; + } + } + } + } - private void method_0(string string1, int int0, int int1, bool bool4, bool bool5) - { - if (!_bool3) - { - throw new DllNotFoundException("openal32.dll"); - } - if (_enum130 == Enum13.Const1 && List0.Count == 0) - { - throw new NotSupportedException("No audio hardware is available."); - } - if (_bool2) - { - throw new NotSupportedException("Multiple AudioContexts are not supported."); - } - if (int0 < 0) - { - throw new ArgumentOutOfRangeException("freq", int0, "Should be greater than zero."); - } - if (int1 < 0) - { - throw new ArgumentOutOfRangeException("refresh", int1, "Should be greater than zero."); - } - if (!string.IsNullOrEmpty(string1)) - { - _intptr0 = OpenAl.alcOpenDevice(string1); - } - if (_intptr0 == IntPtr.Zero) - { - _intptr0 = OpenAl.alcOpenDevice(null); - } - if (_intptr0 == IntPtr.Zero) - { - OpenAl.alcOpenDevice(OpenAl.smethod_0(IntPtr.Zero, Enum7.Const0)); - } - if (_intptr0 == IntPtr.Zero && List0.Count > 0) - { - _intptr0 = OpenAl.alcOpenDevice(List0[0]); - } - if (_intptr0 == IntPtr.Zero) - { - throw new Exception2(string.Format("Audio device '{0}' does not exist or is tied up by another application.", string.IsNullOrEmpty(string1) ? "default" : string1)); - } - method_1(); - var list = new List(); - if (int0 != 0) - { - list.Add(4103); - list.Add(int0); - } - if (int1 != 0) - { - list.Add(4104); - list.Add(int1); - } - list.Add(4105); - list.Add(bool4 ? 1 : 0); - if (bool5 && OpenAl.alcIsExtensionPresent(_intptr0, "ALC_EXT_EFX")) - { - int item; - OpenAl.alcGetIntegerv(_intptr0, Enum9.Const7, 1, out item); - list.Add(131075); - list.Add(item); - } - list.Add(0); - _struct620 = OpenAl.alcCreateContext(_intptr0, list.ToArray()); - if (Struct62.smethod_1(_struct620, Struct62.Struct620)) - { - OpenAl.alcCloseDevice(_intptr0); - throw new Exception3("The audio context could not be created with the specified parameters."); - } - method_1(); - if (List0.Count > 0) - { - method_4(); - } - method_1(); - _string0 = OpenAl.smethod_0(_intptr0, Enum7.Const5); - int num; - OpenAl.alcGetIntegerv(_intptr0, Enum9.Const2, 4, out num); - if (num > 0) - { - var array = new int[num]; - OpenAl.alcGetIntegerv(_intptr0, Enum9.Const3, array.Length * 4, out array[0]); - var array2 = array; - for (var i = 0; i < array2.Length; i++) - { - var num2 = array2[i]; - var @enum = (Enum6)num2; - if (@enum == Enum6.Const2) - { - method_5(true); - } - } - } - lock (Object0) - { - Dictionary0.Add(_struct620, this); - _bool2 = true; - } - } + private void method_0(string string1, int int0, int int1, bool bool4, bool bool5) + { + if (!_bool3) + { + throw new DllNotFoundException("openal32.dll"); + } + if (_enum130 == Enum13.Const1 && List0.Count == 0) + { + throw new NotSupportedException("No audio hardware is available."); + } + if (_bool2) + { + throw new NotSupportedException("Multiple AudioContexts are not supported."); + } + if (int0 < 0) + { + throw new ArgumentOutOfRangeException("freq", int0, "Should be greater than zero."); + } + if (int1 < 0) + { + throw new ArgumentOutOfRangeException("refresh", int1, "Should be greater than zero."); + } + if (!string.IsNullOrEmpty(string1)) + { + _intptr0 = OpenAl.alcOpenDevice(string1); + } + if (_intptr0 == IntPtr.Zero) + { + _intptr0 = OpenAl.alcOpenDevice(null); + } + if (_intptr0 == IntPtr.Zero) + { + OpenAl.alcOpenDevice(OpenAl.smethod_0(IntPtr.Zero, Enum7.Const0)); + } + if (_intptr0 == IntPtr.Zero && List0.Count > 0) + { + _intptr0 = OpenAl.alcOpenDevice(List0[0]); + } + if (_intptr0 == IntPtr.Zero) + { + throw new Exception2(string.Format( + "Audio device '{0}' does not exist or is tied up by another application.", + string.IsNullOrEmpty(string1) ? "default" : string1)); + } + method_1(); + var list = new List(); + if (int0 != 0) + { + list.Add(4103); + list.Add(int0); + } + if (int1 != 0) + { + list.Add(4104); + list.Add(int1); + } + list.Add(4105); + list.Add(bool4 ? 1 : 0); + if (bool5 && OpenAl.alcIsExtensionPresent(_intptr0, "ALC_EXT_EFX")) + { + int item; + OpenAl.alcGetIntegerv(_intptr0, Enum9.Const7, 1, out item); + list.Add(131075); + list.Add(item); + } + list.Add(0); + _struct620 = OpenAl.alcCreateContext(_intptr0, list.ToArray()); + if (Struct62.smethod_1(_struct620, Struct62.Struct620)) + { + OpenAl.alcCloseDevice(_intptr0); + throw new Exception3("The audio context could not be created with the specified parameters."); + } + method_1(); + if (List0.Count > 0) + { + method_4(); + } + method_1(); + _string0 = OpenAl.smethod_0(_intptr0, Enum7.Const5); + int num; + OpenAl.alcGetIntegerv(_intptr0, Enum9.Const2, 4, out num); + if (num > 0) + { + var array = new int[num]; + OpenAl.alcGetIntegerv(_intptr0, Enum9.Const3, array.Length * 4, out array[0]); + var array2 = array; + for (var i = 0; i < array2.Length; i++) + { + var num2 = array2[i]; + var @enum = (Enum6) num2; + if (@enum == Enum6.Const2) + { + method_5(true); + } + } + } + lock (Object0) + { + Dictionary0.Add(_struct620, this); + _bool2 = true; + } + } - private void method_1() - { - var alcError = OpenAl.alcGetError(_intptr0); - if (alcError != AlcError.NoError) - { - throw new Exception3(alcError.ToString()); - } - } + private void method_1() + { + var alcError = OpenAl.alcGetError(_intptr0); + if (alcError != AlcError.NoError) + { + throw new Exception3(alcError.ToString()); + } + } - private static void smethod_1(Class120 class1200) - { - lock (Object0) - { - if (!OpenAl.alcMakeContextCurrent((class1200 != null) ? class1200._struct620 : Struct62.Struct620)) - { - //Delegate129.delegate129_0; - //"ALC {0} error detected at {1}."; - OpenAl.alcGetError((class1200 != null) ? Struct62.smethod_0(class1200._struct620) : IntPtr.Zero).ToString(); - if (class1200 == null) - { - //"null"; - } - else - { - class1200.ToString(); - } - throw null; - } - } - } + private static void smethod_1(Class120 class1200) + { + lock (Object0) + { + if (!OpenAl.alcMakeContextCurrent((class1200 != null) ? class1200._struct620 : Struct62.Struct620)) + { + //Delegate129.delegate129_0; + //"ALC {0} error detected at {1}."; + OpenAl.alcGetError((class1200 != null) ? Struct62.smethod_0(class1200._struct620) : IntPtr.Zero) + .ToString(); + if (class1200 == null) + { + //"null"; + } + else + { + class1200.ToString(); + } + throw null; + } + } + } - public bool method_2() - { - bool result; - lock (Object0) - { - if (Dictionary0.Count == 0) - { - result = false; - } - else - { - result = (smethod_2() == this); - } - } - return result; - } + public bool method_2() + { + bool result; + lock (Object0) + { + if (Dictionary0.Count == 0) + { + result = false; + } + else + { + result = (smethod_2() == this); + } + } + return result; + } - public void method_3(bool bool4) - { - if (bool4) - { - smethod_1(this); - return; - } - smethod_1(null); - } + public void method_3(bool bool4) + { + if (bool4) + { + smethod_1(this); + return; + } + smethod_1(null); + } - public void method_4() - { - smethod_1(this); - } + public void method_4() + { + smethod_1(this); + } - private void method_5(bool bool4) - { - _bool1 = bool4; - } + private void method_5(bool bool4) + { + _bool1 = bool4; + } - public static Class120 smethod_2() - { - Class120 result; - lock (Object0) - { - if (Dictionary0.Count == 0) - { - result = null; - } - else - { - Class120 @class; - Dictionary0.TryGetValue(OpenAl.alcGetCurrentContext(), out @class); - result = @class; - } - } - return result; - } + public static Class120 smethod_2() + { + Class120 result; + lock (Object0) + { + if (Dictionary0.Count == 0) + { + result = null; + } + else + { + Class120 @class; + Dictionary0.TryGetValue(OpenAl.alcGetCurrentContext(), out @class); + result = @class; + } + } + return result; + } - public void Dispose() - { - method_6(true); - GC.SuppressFinalize(this); - } + public void Dispose() + { + method_6(true); + GC.SuppressFinalize(this); + } - private void method_6(bool bool4) - { - if (!_bool0) - { - if (method_2()) - { - method_3(false); - } - if (Struct62.smethod_2(_struct620, Struct62.Struct620)) - { - Dictionary0.Remove(_struct620); - OpenAl.alcDestroyContext(_struct620); - } - if (_intptr0 != IntPtr.Zero) - { - OpenAl.alcCloseDevice(_intptr0); - } - _bool0 = true; - } - } + private void method_6(bool bool4) + { + if (!_bool0) + { + if (method_2()) + { + method_3(false); + } + if (Struct62.smethod_2(_struct620, Struct62.Struct620)) + { + Dictionary0.Remove(_struct620); + OpenAl.alcDestroyContext(_struct620); + } + if (_intptr0 != IntPtr.Zero) + { + OpenAl.alcCloseDevice(_intptr0); + } + _bool0 = true; + } + } - ~Class120() - { - method_6(false); - } + ~Class120() + { + method_6(false); + } - public override int GetHashCode() - { - return base.GetHashCode(); - } + public override int GetHashCode() + { + return base.GetHashCode(); + } - public override bool Equals(object obj) - { - return base.Equals(obj); - } + public override bool Equals(object obj) + { + return base.Equals(obj); + } - public override string ToString() - { - return string.Format("{0} (handle: {1}, device: {2})", _string0, _struct620, _intptr0); - } - } -} + public override string ToString() + { + return string.Format("{0} (handle: {1}, device: {2})", _string0, _struct620, _intptr0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class121.cs b/GHNamespaceK/Class121.cs index b03eeaa..e4f9fb2 100644 --- a/GHNamespaceK/Class121.cs +++ b/GHNamespaceK/Class121.cs @@ -1,17 +1,17 @@ namespace GHNamespaceK { - public abstract class Class121 - { - public bool Bool0; + public abstract class Class121 + { + public bool Bool0; - public virtual bool vmethod_0() - { - return Bool0; - } + public virtual bool vmethod_0() + { + return Bool0; + } - public Class121(bool bool1) - { - Bool0 = bool1; - } - } -} + public Class121(bool bool1) + { + Bool0 = bool1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class122.cs b/GHNamespaceK/Class122.cs index d984119..4f9d800 100644 --- a/GHNamespaceK/Class122.cs +++ b/GHNamespaceK/Class122.cs @@ -2,84 +2,85 @@ namespace GHNamespaceK { - public class Class122 : Class121 - { - private readonly byte[] _byte0 = new byte[16]; - - private readonly int _int0; - - private readonly int _int1; - - private readonly int _int2; - - private readonly int _int3; - - private readonly int _int4; - - private readonly int _int5; - - private readonly int _int6; - - private readonly long _long0; - - public virtual int vmethod_1() - { - return _int1; - } - - public virtual int vmethod_2() - { - return _int0; - } - - public virtual long vmethod_3() - { - return _long0; - } - - public virtual int vmethod_4() - { - return _int3; - } - - public virtual int vmethod_5() - { - return _int2; - } - - public virtual int vmethod_6() - { - return _int4; - } - - public virtual int vmethod_7() - { - return _int6; - } - - public virtual int vmethod_8() - { - return _int5; - } - - public Class122(Class144 class1440, int int7, bool bool1) : base(bool1) - { - _int0 = class1440.vmethod_10(16); - _int1 = class1440.vmethod_10(16); - _int2 = class1440.vmethod_10(24); - _int3 = class1440.vmethod_10(24); - _int4 = class1440.vmethod_10(20); - _int5 = class1440.vmethod_10(3) + 1; - _int6 = class1440.vmethod_10(5) + 1; - _long0 = class1440.vmethod_13(36); - class1440.vmethod_15(_byte0, 16); - int7 -= 34; - class1440.vmethod_15(null, int7); - } - - public override string ToString() - { - return string.Concat("StreamInfo: BlockSize=", _int0, "-", _int1, " FrameSize", _int2, "-", _int3, " SampleRate=", _int4, " Channels=", _int5, " BPS=", _int6, " TotalSamples=", _long0); - } - } -} + public class Class122 : Class121 + { + private readonly byte[] _byte0 = new byte[16]; + + private readonly int _int0; + + private readonly int _int1; + + private readonly int _int2; + + private readonly int _int3; + + private readonly int _int4; + + private readonly int _int5; + + private readonly int _int6; + + private readonly long _long0; + + public virtual int vmethod_1() + { + return _int1; + } + + public virtual int vmethod_2() + { + return _int0; + } + + public virtual long vmethod_3() + { + return _long0; + } + + public virtual int vmethod_4() + { + return _int3; + } + + public virtual int vmethod_5() + { + return _int2; + } + + public virtual int vmethod_6() + { + return _int4; + } + + public virtual int vmethod_7() + { + return _int6; + } + + public virtual int vmethod_8() + { + return _int5; + } + + public Class122(Class144 class1440, int int7, bool bool1) : base(bool1) + { + _int0 = class1440.vmethod_10(16); + _int1 = class1440.vmethod_10(16); + _int2 = class1440.vmethod_10(24); + _int3 = class1440.vmethod_10(24); + _int4 = class1440.vmethod_10(20); + _int5 = class1440.vmethod_10(3) + 1; + _int6 = class1440.vmethod_10(5) + 1; + _long0 = class1440.vmethod_13(36); + class1440.vmethod_15(_byte0, 16); + int7 -= 34; + class1440.vmethod_15(null, int7); + } + + public override string ToString() + { + return string.Concat("StreamInfo: BlockSize=", _int0, "-", _int1, " FrameSize", _int2, "-", _int3, + " SampleRate=", _int4, " Channels=", _int5, " BPS=", _int6, " TotalSamples=", _long0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class123.cs b/GHNamespaceK/Class123.cs index 869d4f9..892bd7b 100644 --- a/GHNamespaceK/Class123.cs +++ b/GHNamespaceK/Class123.cs @@ -4,80 +4,82 @@ namespace GHNamespaceK { - public class Class123 : Class121 - { - private readonly int _int0; + public class Class123 : Class121 + { + private readonly int _int0; - private readonly int _int1; + private readonly int _int1; - private readonly string _string0; + private readonly string _string0; - private readonly int _int2; + private readonly int _int2; - private readonly string _string1; + private readonly string _string1; - private readonly int _int3; + private readonly int _int3; - private readonly int _int4; + private readonly int _int4; - private readonly int _int5; + private readonly int _int5; - private readonly int _int6; + private readonly int _int6; - private readonly int _int7; + private readonly int _int7; - public byte[] Byte0; + public byte[] Byte0; - public Class123(Class144 class1440, int int8, bool bool1) : base(bool1) - { - var num = 0; - _int0 = class1440.vmethod_10(32); - num = 32; - _int1 = class1440.vmethod_10(32); - num = 64; - var array = new byte[_int1]; - class1440.vmethod_15(array, _int1); - num = 64 + _int1 * 8; - _string0 = Encoding.UTF8.GetString(array); - _int2 = class1440.vmethod_10(32); - num += 32; - if (_int2 != 0) - { - array = new byte[_int2]; - class1440.vmethod_15(array, _int2); - try - { - _string1 = Encoding.GetEncoding("UTF-8").GetString(array); - } - catch (IOException) - { - } - num += 32; - } - else - { - _string1 = new StringBuilder("").ToString(); - } - _int3 = class1440.vmethod_10(32); - num += 32; - _int4 = class1440.vmethod_10(32); - num += 32; - _int5 = class1440.vmethod_10(32); - num += 32; - _int6 = class1440.vmethod_10(32); - num += 32; - _int7 = class1440.vmethod_10(32); - num += 32; - Byte0 = new byte[_int7]; - class1440.vmethod_15(Byte0, _int7); - num += _int7 * 8; - int8 -= num / 8; - class1440.vmethod_15(null, int8); - } + public Class123(Class144 class1440, int int8, bool bool1) : base(bool1) + { + var num = 0; + _int0 = class1440.vmethod_10(32); + num = 32; + _int1 = class1440.vmethod_10(32); + num = 64; + var array = new byte[_int1]; + class1440.vmethod_15(array, _int1); + num = 64 + _int1 * 8; + _string0 = Encoding.UTF8.GetString(array); + _int2 = class1440.vmethod_10(32); + num += 32; + if (_int2 != 0) + { + array = new byte[_int2]; + class1440.vmethod_15(array, _int2); + try + { + _string1 = Encoding.GetEncoding("UTF-8").GetString(array); + } + catch (IOException) + { + } + num += 32; + } + else + { + _string1 = new StringBuilder("").ToString(); + } + _int3 = class1440.vmethod_10(32); + num += 32; + _int4 = class1440.vmethod_10(32); + num += 32; + _int5 = class1440.vmethod_10(32); + num += 32; + _int6 = class1440.vmethod_10(32); + num += 32; + _int7 = class1440.vmethod_10(32); + num += 32; + Byte0 = new byte[_int7]; + class1440.vmethod_15(Byte0, _int7); + num += _int7 * 8; + int8 -= num / 8; + class1440.vmethod_15(null, int8); + } - public override string ToString() - { - return string.Concat("Picture: Type=", _int0, " MIME type=", _string0, " Description=\"", _string1, "\" Pixels (WxH)=", _int3, "x", _int4, " Color Depth=", _int5, " Color Count=", _int6, " Picture Size (bytes)=", _int7); - } - } -} + public override string ToString() + { + return string.Concat("Picture: Type=", _int0, " MIME type=", _string0, " Description=\"", _string1, + "\" Pixels (WxH)=", _int3, "x", _int4, " Color Depth=", _int5, " Color Count=", _int6, + " Picture Size (bytes)=", _int7); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class124.cs b/GHNamespaceK/Class124.cs index 9ebfaf0..a4c344d 100644 --- a/GHNamespaceK/Class124.cs +++ b/GHNamespaceK/Class124.cs @@ -2,21 +2,21 @@ namespace GHNamespaceK { - public class Class124 : Class121 - { - private readonly byte[] _byte0 = new byte[4]; + public class Class124 : Class121 + { + private readonly byte[] _byte0 = new byte[4]; - private readonly byte[] _byte1; + private readonly byte[] _byte1; - public Class124(Class144 class1440, int int0, bool bool1) : base(bool1) - { - class1440.vmethod_15(_byte0, 4); - int0 -= 4; - if (int0 > 0) - { - _byte1 = new byte[int0]; - class1440.vmethod_15(_byte1, int0); - } - } - } -} + public Class124(Class144 class1440, int int0, bool bool1) : base(bool1) + { + class1440.vmethod_15(_byte0, 4); + int0 -= 4; + if (int0 > 0) + { + _byte1 = new byte[int0]; + class1440.vmethod_15(_byte1, int0); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class125.cs b/GHNamespaceK/Class125.cs index 223adb2..ea977be 100644 --- a/GHNamespaceK/Class125.cs +++ b/GHNamespaceK/Class125.cs @@ -2,33 +2,33 @@ namespace GHNamespaceK { - public class Class125 : Class121 - { - public byte[] Byte0 = new byte[129]; + public class Class125 : Class121 + { + public byte[] Byte0 = new byte[129]; - public long Long0; + public long Long0; - public bool Bool1; + public bool Bool1; - public int Int0; + public int Int0; - public Class147[] Class1470; + public Class147[] Class1470; - public Class125(Class144 class1440, int int1, bool bool2) : base(bool2) - { - class1440.vmethod_15(Byte0, 128); - Long0 = class1440.vmethod_13(64); - Bool1 = (class1440.vmethod_10(1) != 0); - class1440.vmethod_5(2071); - Int0 = class1440.vmethod_10(8); - if (Int0 > 0) - { - Class1470 = new Class147[Int0]; - for (var i = 0; i < Int0; i++) - { - Class1470[i] = new Class147(class1440); - } - } - } - } -} + public Class125(Class144 class1440, int int1, bool bool2) : base(bool2) + { + class1440.vmethod_15(Byte0, 128); + Long0 = class1440.vmethod_13(64); + Bool1 = (class1440.vmethod_10(1) != 0); + class1440.vmethod_5(2071); + Int0 = class1440.vmethod_10(8); + if (Int0 > 0) + { + Class1470 = new Class147[Int0]; + for (var i = 0; i < Int0; i++) + { + Class1470[i] = new Class147(class1440); + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class130.cs b/GHNamespaceK/Class130.cs index 49afa44..27e5728 100644 --- a/GHNamespaceK/Class130.cs +++ b/GHNamespaceK/Class130.cs @@ -1,31 +1,31 @@ namespace GHNamespaceK { - public class Class130 - { - public static void smethod_0(int[] int0, int int1, int[] int2, int int3, int int4, int[] int5, int int6) - { - for (var i = 0; i < int1; i++) - { - var num = 0; - for (var j = 0; j < int3; j++) - { - num += int2[j] * int5[int6 + i - j - 1]; - } - int5[int6 + i] = int0[i] + (num >> int4); - } - } + public class Class130 + { + public static void smethod_0(int[] int0, int int1, int[] int2, int int3, int int4, int[] int5, int int6) + { + for (var i = 0; i < int1; i++) + { + var num = 0; + for (var j = 0; j < int3; j++) + { + num += int2[j] * int5[int6 + i - j - 1]; + } + int5[int6 + i] = int0[i] + (num >> int4); + } + } - public static void smethod_1(int[] int0, int int1, int[] int2, int int3, int int4, int[] int5, int int6) - { - for (var i = 0; i < int1; i++) - { - var num = 0L; - for (var j = 0; j < int3; j++) - { - num += int2[j] * (long)int5[int6 + i - j - 1]; - } - int5[int6 + i] = int0[i] + (int)(num >> int4); - } - } - } -} + public static void smethod_1(int[] int0, int int1, int[] int2, int int3, int int4, int[] int5, int int6) + { + for (var i = 0; i < int1; i++) + { + var num = 0L; + for (var j = 0; j < int3; j++) + { + num += int2[j] * (long) int5[int6 + i - j - 1]; + } + int5[int6 + i] = int0[i] + (int) (num >> int4); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class131.cs b/GHNamespaceK/Class131.cs index 9aa777f..155863c 100644 --- a/GHNamespaceK/Class131.cs +++ b/GHNamespaceK/Class131.cs @@ -2,21 +2,21 @@ namespace GHNamespaceK { - public abstract class Class131 - { - public Class140 Class1400; + public abstract class Class131 + { + public Class140 Class1400; - public int Int0; + public int Int0; - public virtual int vmethod_0() - { - return Int0; - } + public virtual int vmethod_0() + { + return Int0; + } - public Class131(Class140 class1401, int int1) - { - Class1400 = class1401; - Int0 = int1; - } - } -} + public Class131(Class140 class1401, int int1) + { + Class1400 = class1401; + Int0 = int1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class136.cs b/GHNamespaceK/Class136.cs index 89f99e3..7223d4a 100644 --- a/GHNamespaceK/Class136.cs +++ b/GHNamespaceK/Class136.cs @@ -2,34 +2,34 @@ namespace GHNamespaceK { - public class Class136 - { - private readonly int[] _int0; + public class Class136 + { + private readonly int[] _int0; - private readonly int[] _int1; + private readonly int[] _int1; - private readonly Class143 _class1430; + private readonly Class143 _class1430; - public virtual int[] vmethod_0() - { - return _int0; - } + public virtual int[] vmethod_0() + { + return _int0; + } - public virtual Class143 vmethod_1() - { - return _class1430; - } + public virtual Class143 vmethod_1() + { + return _class1430; + } - public virtual int[] vmethod_2() - { - return _int1; - } + public virtual int[] vmethod_2() + { + return _int1; + } - public Class136(int int2) - { - _int0 = new int[int2]; - _int1 = new int[int2]; - _class1430 = new Class143(); - } - } -} + public Class136(int int2) + { + _int0 = new int[int2]; + _int1 = new int[int2]; + _class1430 = new Class143(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class137.cs b/GHNamespaceK/Class137.cs index 0058c6f..aa862b2 100644 --- a/GHNamespaceK/Class137.cs +++ b/GHNamespaceK/Class137.cs @@ -1,6 +1,6 @@ namespace GHNamespaceK { - public abstract class Class137 - { - } -} + public abstract class Class137 + { + } +} \ No newline at end of file diff --git a/GHNamespaceK/Class138.cs b/GHNamespaceK/Class138.cs index 9f28404..4f91096 100644 --- a/GHNamespaceK/Class138.cs +++ b/GHNamespaceK/Class138.cs @@ -3,42 +3,42 @@ namespace GHNamespaceK { - public class Class138 : Class137 - { - public int Int0; + public class Class138 : Class137 + { + public int Int0; - public Class143 Class1430; + public Class143 Class1430; - public virtual void vmethod_0(Class144 class1440, int int1, int int2, Class140 class1400, int[] int3) - { - var num = 0; - var num2 = 1 << int2; - var num3 = (int2 > 0) ? (class1400.Int0 >> int2) : (class1400.Int0 - int1); - Class1430.vmethod_0(Math.Max(6, int2)); - Class1430.Int0 = new int[num2]; - for (var i = 0; i < num2; i++) - { - var num4 = class1440.vmethod_10(4); - Class1430.Int0[i] = num4; - if (num4 < 15) - { - var num5 = (int2 == 0 || i > 0) ? num3 : (num3 - int1); - class1440.vmethod_17(int3, num, num5, num4); - num += num5; - } - else - { - num4 = class1440.vmethod_10(5); - Class1430.Int1[i] = num4; - var j = (int2 == 0 || i > 0) ? 0 : int1; - while (j < num3) - { - int3[num] = class1440.vmethod_12(num4); - j++; - num++; - } - } - } - } - } -} + public virtual void vmethod_0(Class144 class1440, int int1, int int2, Class140 class1400, int[] int3) + { + var num = 0; + var num2 = 1 << int2; + var num3 = (int2 > 0) ? (class1400.Int0 >> int2) : (class1400.Int0 - int1); + Class1430.vmethod_0(Math.Max(6, int2)); + Class1430.Int0 = new int[num2]; + for (var i = 0; i < num2; i++) + { + var num4 = class1440.vmethod_10(4); + Class1430.Int0[i] = num4; + if (num4 < 15) + { + var num5 = (int2 == 0 || i > 0) ? num3 : (num3 - int1); + class1440.vmethod_17(int3, num, num5, num4); + num += num5; + } + else + { + num4 = class1440.vmethod_10(5); + Class1430.Int1[i] = num4; + var j = (int2 == 0 || i > 0) ? 0 : int1; + while (j < num3) + { + int3[num] = class1440.vmethod_12(num4); + j++; + num++; + } + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/Enum10.cs b/GHNamespaceK/Enum10.cs index ad2ca7e..3f7d369 100644 --- a/GHNamespaceK/Enum10.cs +++ b/GHNamespaceK/Enum10.cs @@ -1,20 +1,20 @@ namespace GHNamespaceK { - public enum Enum10 - { - Const0 = 4128, - Const1 = 4131, - Const2 = 4129, - Const3 = 4099, - Const4 = 4106, - Const5 = 4109, - Const6, - Const7 = 4097, - Const8, - Const9 = 4130, - Const10 = 4132, - Const11 = 131079, - Const12, - Const13 - } -} + public enum Enum10 + { + Const0 = 4128, + Const1 = 4131, + Const2 = 4129, + Const3 = 4099, + Const4 = 4106, + Const5 = 4109, + Const6, + Const7 = 4097, + Const8, + Const9 = 4130, + Const10 = 4132, + Const11 = 131079, + Const12, + Const13 + } +} \ No newline at end of file diff --git a/GHNamespaceK/Enum11.cs b/GHNamespaceK/Enum11.cs index e362e88..66b8f27 100644 --- a/GHNamespaceK/Enum11.cs +++ b/GHNamespaceK/Enum11.cs @@ -1,14 +1,14 @@ namespace GHNamespaceK { - public enum Enum11 - { - Const0 = 4134, - Const1 = 4133, - Const2 = 4132, - Const3 = 4105, - Const4 = 4112, - Const5 = 4117, - Const6, - Const7 = 4135 - } -} + public enum Enum11 + { + Const0 = 4134, + Const1 = 4133, + Const2 = 4132, + Const3 = 4105, + Const4 = 4112, + Const5 = 4117, + Const6, + Const7 = 4135 + } +} \ No newline at end of file diff --git a/GHNamespaceK/Enum12.cs b/GHNamespaceK/Enum12.cs index 555f44b..4e1629b 100644 --- a/GHNamespaceK/Enum12.cs +++ b/GHNamespaceK/Enum12.cs @@ -1,27 +1,27 @@ namespace GHNamespaceK { - public enum Enum12 - { - Const0 = 4352, - Const1, - Const2, - Const3, - Const4 = 65552, - Const5, - Const6 = 4612, - Const7, - Const8, - Const9, - Const10, - Const11, - Const12, - Const13, - Const14, - Const15, - Const16, - Const17, - Const18, - Const19, - Const20 - } -} + public enum Enum12 + { + Const0 = 4352, + Const1, + Const2, + Const3, + Const4 = 65552, + Const5, + Const6 = 4612, + Const7, + Const8, + Const9, + Const10, + Const11, + Const12, + Const13, + Const14, + Const15, + Const16, + Const17, + Const18, + Const19, + Const20 + } +} \ No newline at end of file diff --git a/GHNamespaceK/Exception3.cs b/GHNamespaceK/Exception3.cs index 580e2a9..b5cb2dd 100644 --- a/GHNamespaceK/Exception3.cs +++ b/GHNamespaceK/Exception3.cs @@ -2,14 +2,14 @@ namespace GHNamespaceK { - public class Exception3 : Exception - { - public Exception3() - { - } + public class Exception3 : Exception + { + public Exception3() + { + } - public Exception3(string string0) : base(string0) - { - } - } -} + public Exception3(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/OpenAL.cs b/GHNamespaceK/OpenAL.cs index fddfe9f..999c07c 100644 --- a/GHNamespaceK/OpenAL.cs +++ b/GHNamespaceK/OpenAL.cs @@ -8,77 +8,81 @@ namespace GHNamespaceK { - public static class OpenAl - { - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern Struct62 alcCreateContext([In] IntPtr device, [In] int[] attrlist); + public static class OpenAl + { + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern Struct62 alcCreateContext([In] IntPtr device, [In] int[] attrlist); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern bool alcMakeContextCurrent([In] Struct62 context); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern bool alcMakeContextCurrent([In] Struct62 context); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void alcDestroyContext([In] Struct62 context); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void alcDestroyContext([In] Struct62 context); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern Struct62 alcGetCurrentContext(); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern Struct62 alcGetCurrentContext(); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] - public static extern IntPtr alcOpenDevice([In] string devicename); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, + ExactSpelling = true)] + public static extern IntPtr alcOpenDevice([In] string devicename); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern bool alcCloseDevice([In] IntPtr device); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern bool alcCloseDevice([In] IntPtr device); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern AlcError alcGetError([In] IntPtr device); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern AlcError alcGetError([In] IntPtr device); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] - public static extern bool alcIsExtensionPresent([In] IntPtr device, [In] string extname); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, + ExactSpelling = true)] + public static extern bool alcIsExtensionPresent([In] IntPtr device, [In] string extname); - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] - private static extern IntPtr alcGetString([In] IntPtr device, Enum7 param); + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, + ExactSpelling = true)] + private static extern IntPtr alcGetString([In] IntPtr device, Enum7 param); - public static string smethod_0(IntPtr intptr0, Enum7 enum70) - { - return Marshal.PtrToStringAnsi(alcGetString(intptr0, enum70)); - } + public static string smethod_0(IntPtr intptr0, Enum7 enum70) + { + return Marshal.PtrToStringAnsi(alcGetString(intptr0, enum70)); + } - public static IList smethod_1(IntPtr intptr0, Enum8 enum80) - { - var list = new List(); - var ptr = alcGetString(IntPtr.Zero, (Enum7)enum80); - var stringBuilder = new StringBuilder(); - var ofs = 0; - while (true) - { - var b = Marshal.ReadByte(ptr, ofs++); - if (b != 0) - { - stringBuilder.Append((char)b); - } - if (b == 0) - { - list.Add(stringBuilder.ToString()); - if (Marshal.ReadByte(ptr, ofs) == 0) - { - break; - } - stringBuilder.Remove(0, stringBuilder.Length); - } - } - return list; - } + public static IList smethod_1(IntPtr intptr0, Enum8 enum80) + { + var list = new List(); + var ptr = alcGetString(IntPtr.Zero, (Enum7) enum80); + var stringBuilder = new StringBuilder(); + var ofs = 0; + while (true) + { + var b = Marshal.ReadByte(ptr, ofs++); + if (b != 0) + { + stringBuilder.Append((char) b); + } + if (b == 0) + { + list.Add(stringBuilder.ToString()); + if (Marshal.ReadByte(ptr, ofs) == 0) + { + break; + } + stringBuilder.Remove(0, stringBuilder.Length); + } + } + return list; + } - [SuppressUnmanagedCodeSecurity] - [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] - public static extern void alcGetIntegerv([In] IntPtr device, Enum9 param, int size, out int data); - } -} + [SuppressUnmanagedCodeSecurity] + [DllImport("openal32.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, + ExactSpelling = true)] + public static extern void alcGetIntegerv([In] IntPtr device, Enum9 param, int size, out int data); + } +} \ No newline at end of file diff --git a/GHNamespaceK/Struct62.cs b/GHNamespaceK/Struct62.cs index 85350c5..bcd5f4a 100644 --- a/GHNamespaceK/Struct62.cs +++ b/GHNamespaceK/Struct62.cs @@ -2,64 +2,64 @@ namespace GHNamespaceK { - public struct Struct62 : IEquatable, IComparable - { - private readonly IntPtr _intptr0; + public struct Struct62 : IEquatable, IComparable + { + private readonly IntPtr _intptr0; - public static readonly Struct62 Struct620 = new Struct62(IntPtr.Zero); + public static readonly Struct62 Struct620 = new Struct62(IntPtr.Zero); - public IntPtr method_0() - { - return _intptr0; - } + public IntPtr method_0() + { + return _intptr0; + } - public Struct62(IntPtr intptr1) - { - _intptr0 = intptr1; - } + public Struct62(IntPtr intptr1) + { + _intptr0 = intptr1; + } - public override string ToString() - { - return method_0().ToString(); - } + public override string ToString() + { + return method_0().ToString(); + } - public override bool Equals(object obj) - { - return obj is Struct62 && Equals((Struct62)obj); - } + public override bool Equals(object obj) + { + return obj is Struct62 && Equals((Struct62) obj); + } - public override int GetHashCode() - { - return method_0().GetHashCode(); - } + public override int GetHashCode() + { + return method_0().GetHashCode(); + } - public static IntPtr smethod_0(Struct62 struct621) - { - if (!smethod_2(struct621, Struct620)) - { - return IntPtr.Zero; - } - return struct621._intptr0; - } + public static IntPtr smethod_0(Struct62 struct621) + { + if (!smethod_2(struct621, Struct620)) + { + return IntPtr.Zero; + } + return struct621._intptr0; + } - public static bool smethod_1(Struct62 struct621, Struct62 struct622) - { - return struct621.Equals(struct622); - } + public static bool smethod_1(Struct62 struct621, Struct62 struct622) + { + return struct621.Equals(struct622); + } - public static bool smethod_2(Struct62 struct621, Struct62 struct622) - { - return !struct621.Equals(struct622); - } + public static bool smethod_2(Struct62 struct621, Struct62 struct622) + { + return !struct621.Equals(struct622); + } - public int CompareTo(Struct62 other) - { - return (int)other._intptr0 - (int)_intptr0; - } + public int CompareTo(Struct62 other) + { + return (int) other._intptr0 - (int) _intptr0; + } - public bool Equals(Struct62 other) - { - return method_0() == other.method_0(); - } - } -} + public bool Equals(Struct62 other) + { + return method_0() == other.method_0(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceK/WAVStream.cs b/GHNamespaceK/WAVStream.cs index ec2741a..cbd1a6c 100644 --- a/GHNamespaceK/WAVStream.cs +++ b/GHNamespaceK/WAVStream.cs @@ -6,133 +6,133 @@ namespace GHNamespaceK { - public class WavStream : GenericAudioStream - { - private long _long0; - - private long _long1; - - public override bool CanRead => true; - - public override bool CanSeek => true; - - public override bool CanWrite => FileStream.CanWrite; - - public override long Length => _long1; - - public override long Position - { - get => FileStream.Position - _long0; - set => FileStream.Position = _long0 + value; - } - - public WavStream() - { - } - - public WavStream(string string0) : this(File.OpenRead(string0)) - { - } - - public WavStream(Stream stream1) - { - FileStream = stream1; - method_0(); - } - - ~WavStream() - { - Dispose(); - } - - private static string smethod_0(BinaryReader binaryReader0) - { - var array = new byte[4]; - binaryReader0.Read(array, 0, array.Length); - return Encoding.UTF8.GetString(array); - } - - private void method_0() - { - var binaryReader = new BinaryReader(FileStream, Encoding.UTF8); - if (smethod_0(binaryReader) != "RIFF") - { - throw new Exception("Invalid file format (No Tag RIFF)"); - } - binaryReader.ReadInt32(); - if (smethod_0(binaryReader) != "WAVE") - { - throw new Exception("Invalid file format (No Tag WAVE)"); - } - if (smethod_0(binaryReader) != "fmt ") - { - throw new Exception("Invalid file format (No Tag fmt)"); - } - var num = binaryReader.ReadInt32(); - if (num < 16) - { - throw new Exception("Invalid file format (Size of fmt different of 16)"); - } - WaveFormat0 = new WaveFormat(22050, 16, 2); - WaveFormat0.waveFormatTag_0 = (WaveFormatTag)binaryReader.ReadInt16(); - WaveFormat0.short_0 = binaryReader.ReadInt16(); - WaveFormat0.int_0 = binaryReader.ReadInt32(); - WaveFormat0.int_1 = binaryReader.ReadInt32(); - WaveFormat0.short_1 = binaryReader.ReadInt16(); - WaveFormat0.short_2 = binaryReader.ReadInt16(); - if (num > 16) - { - FileStream.Position += num - 16; - } - while (FileStream.Position < FileStream.Length && smethod_0(binaryReader) != "data") - { - } - if (FileStream.Position >= FileStream.Length) - { - throw new Exception("Invalid file format (No data chunk)"); - } - _long1 = binaryReader.ReadInt32(); - _long0 = FileStream.Position; - Position = 0L; - } - - public override void Close() - { - Dispose(); - } - - public override void Flush() - { - FileStream.Flush(); - } - - public override void SetLength(long value) - { - _long1 = value; - } - - public override void Write(byte[] buffer, int offset, int count) - { - FileStream.Write(buffer, offset, count); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return FileStream.Read(buffer, offset, (_long1 > 0L) ? ((int)Math.Min(count, _long1 - Position)) : count); - } + public class WavStream : GenericAudioStream + { + private long _long0; + + private long _long1; + + public override bool CanRead => true; + + public override bool CanSeek => true; + + public override bool CanWrite => FileStream.CanWrite; + + public override long Length => _long1; + + public override long Position + { + get => FileStream.Position - _long0; + set => FileStream.Position = _long0 + value; + } + + public WavStream() + { + } + + public WavStream(string string0) : this(File.OpenRead(string0)) + { + } + + public WavStream(Stream stream1) + { + FileStream = stream1; + method_0(); + } + + ~WavStream() + { + Dispose(); + } + + private static string smethod_0(BinaryReader binaryReader0) + { + var array = new byte[4]; + binaryReader0.Read(array, 0, array.Length); + return Encoding.UTF8.GetString(array); + } + + private void method_0() + { + var binaryReader = new BinaryReader(FileStream, Encoding.UTF8); + if (smethod_0(binaryReader) != "RIFF") + { + throw new Exception("Invalid file format (No Tag RIFF)"); + } + binaryReader.ReadInt32(); + if (smethod_0(binaryReader) != "WAVE") + { + throw new Exception("Invalid file format (No Tag WAVE)"); + } + if (smethod_0(binaryReader) != "fmt ") + { + throw new Exception("Invalid file format (No Tag fmt)"); + } + var num = binaryReader.ReadInt32(); + if (num < 16) + { + throw new Exception("Invalid file format (Size of fmt different of 16)"); + } + WaveFormat0 = new WaveFormat(22050, 16, 2); + WaveFormat0.waveFormatTag_0 = (WaveFormatTag) binaryReader.ReadInt16(); + WaveFormat0.short_0 = binaryReader.ReadInt16(); + WaveFormat0.int_0 = binaryReader.ReadInt32(); + WaveFormat0.int_1 = binaryReader.ReadInt32(); + WaveFormat0.short_1 = binaryReader.ReadInt16(); + WaveFormat0.short_2 = binaryReader.ReadInt16(); + if (num > 16) + { + FileStream.Position += num - 16; + } + while (FileStream.Position < FileStream.Length && smethod_0(binaryReader) != "data") + { + } + if (FileStream.Position >= FileStream.Length) + { + throw new Exception("Invalid file format (No data chunk)"); + } + _long1 = binaryReader.ReadInt32(); + _long0 = FileStream.Position; + Position = 0L; + } + + public override void Close() + { + Dispose(); + } + + public override void Flush() + { + FileStream.Flush(); + } + + public override void SetLength(long value) + { + _long1 = value; + } + + public override void Write(byte[] buffer, int offset, int count) + { + FileStream.Write(buffer, offset, count); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return FileStream.Read(buffer, offset, (_long1 > 0L) ? ((int) Math.Min(count, _long1 - Position)) : count); + } protected override void Dispose(bool disposing) - { - if (disposing && FileStream != null) - { - FileStream.Close(); - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - } -} + { + if (disposing && FileStream != null) + { + FileStream.Close(); + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/BlackMagic.cs b/GHNamespaceL/BlackMagic.cs index 7f1c013..d51fdb5 100644 --- a/GHNamespaceL/BlackMagic.cs +++ b/GHNamespaceL/BlackMagic.cs @@ -1,45 +1,52 @@ namespace GHNamespaceL { - public class BlackMagic - { - public static void CopyArrayOffset(int[] source, int sourceSize, int int2, int[] destination, int offset) - { + public class BlackMagic + { + public static void CopyArrayOffset(int[] source, int sourceSize, int int2, int[] destination, int offset) + { //This is black magic. Not sure what it's used for yet - switch (int2) - { - case 0: - for (var i = 0; i < sourceSize; i++) - { - destination[i + offset] = source[i]; - } - return; - case 1: - for (var j = 0; j < sourceSize; j++) - { - destination[j + offset] = source[j] + destination[j + offset - 1]; - } - return; - case 2: - for (var k = 0; k < sourceSize; k++) - { - destination[k + offset] = source[k] + (destination[k + offset - 1] << 1) - destination[k + offset - 2]; - } - return; - case 3: - for (var l = 0; l < sourceSize; l++) - { - destination[l + offset] = source[l] + ((destination[l + offset - 1] - destination[l + offset - 2] << 1) + (destination[l + offset - 1] - destination[l + offset - 2])) + destination[l + offset - 3]; - } - return; - case 4: - for (var m = 0; m < sourceSize; m++) - { - destination[m + offset] = source[m] + (destination[m + offset - 1] + destination[m + offset - 3] << 2) - ((destination[m + offset - 2] << 2) + (destination[m + offset - 2] << 1)) - destination[m + offset - 4]; - } - return; - default: - return; - } - } - } -} + switch (int2) + { + case 0: + for (var i = 0; i < sourceSize; i++) + { + destination[i + offset] = source[i]; + } + return; + case 1: + for (var j = 0; j < sourceSize; j++) + { + destination[j + offset] = source[j] + destination[j + offset - 1]; + } + return; + case 2: + for (var k = 0; k < sourceSize; k++) + { + destination[k + offset] = source[k] + (destination[k + offset - 1] << 1) - + destination[k + offset - 2]; + } + return; + case 3: + for (var l = 0; l < sourceSize; l++) + { + destination[l + offset] = + source[l] + + ((destination[l + offset - 1] - destination[l + offset - 2] << 1) + + (destination[l + offset - 1] - destination[l + offset - 2])) + destination[l + offset - 3]; + } + return; + case 4: + for (var m = 0; m < sourceSize; m++) + { + destination[m + offset] = + source[m] + (destination[m + offset - 1] + destination[m + offset - 3] << 2) - + ((destination[m + offset - 2] << 2) + (destination[m + offset - 2] << 1)) - + destination[m + offset - 4]; + } + return; + default: + return; + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class126.cs b/GHNamespaceL/Class126.cs index 48d009e..6fb2c18 100644 --- a/GHNamespaceL/Class126.cs +++ b/GHNamespaceL/Class126.cs @@ -2,17 +2,17 @@ namespace GHNamespaceL { - public class Class126 : Class121 - { - public byte[] Byte0; + public class Class126 : Class121 + { + public byte[] Byte0; - public Class126(Class144 class1440, int int0, bool bool1) : base(bool1) - { - if (int0 > 0) - { - Byte0 = new byte[int0]; - class1440.vmethod_15(Byte0, int0); - } - } - } -} + public Class126(Class144 class1440, int int0, bool bool1) : base(bool1) + { + if (int0 > 0) + { + Byte0 = new byte[int0]; + class1440.vmethod_15(Byte0, int0); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class127.cs b/GHNamespaceL/Class127.cs index c79b1eb..7b2d485 100644 --- a/GHNamespaceL/Class127.cs +++ b/GHNamespaceL/Class127.cs @@ -3,39 +3,39 @@ namespace GHNamespaceL { - public class Class127 : Class121 - { - public Class142[] Class1420; + public class Class127 : Class121 + { + public Class142[] Class1420; - public Class127(Class144 class1440, int int0, bool bool1) : base(bool1) - { - var num = int0 / 18; - Class1420 = new Class142[num]; - for (var i = 0; i < Class1420.Length; i++) - { - Class1420[i] = new Class142(class1440); - } - int0 -= int0 * 18; - if (int0 > 0) - { - class1440.vmethod_15(null, int0); - } - } + public Class127(Class144 class1440, int int0, bool bool1) : base(bool1) + { + var num = int0 / 18; + Class1420 = new Class142[num]; + for (var i = 0; i < Class1420.Length; i++) + { + Class1420[i] = new Class142(class1440); + } + int0 -= int0 * 18; + if (int0 > 0) + { + class1440.vmethod_15(null, int0); + } + } - public virtual int vmethod_1() - { - return Class1420.Length; - } + public virtual int vmethod_1() + { + return Class1420.Length; + } - public override string ToString() - { - var stringBuilder = new StringBuilder(); - stringBuilder.Append("SeekTable: points=" + Class1420.Length + "\n"); - for (var i = 0; i < Class1420.Length; i++) - { - stringBuilder.Append("\tPoint " + Class1420[i] + "\n"); - } - return stringBuilder.ToString(); - } - } -} + public override string ToString() + { + var stringBuilder = new StringBuilder(); + stringBuilder.Append("SeekTable: points=" + Class1420.Length + "\n"); + for (var i = 0; i < Class1420.Length; i++) + { + stringBuilder.Append("\tPoint " + Class1420[i] + "\n"); + } + return stringBuilder.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class128.cs b/GHNamespaceL/Class128.cs index c20ae6d..32219cc 100644 --- a/GHNamespaceL/Class128.cs +++ b/GHNamespaceL/Class128.cs @@ -2,19 +2,19 @@ namespace GHNamespaceL { - public class Class128 : Class121 - { - private readonly int _int0; + public class Class128 : Class121 + { + private readonly int _int0; - public Class128(Class144 class1440, int int1, bool bool1) : base(bool1) - { - _int0 = int1; - class1440.vmethod_15(null, int1); - } + public Class128(Class144 class1440, int int1, bool bool1) : base(bool1) + { + _int0 = int1; + class1440.vmethod_15(null, int1); + } - public override string ToString() - { - return "Padding (Length=" + _int0 + ")"; - } - } -} + public override string ToString() + { + return "Padding (Length=" + _int0 + ")"; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class129.cs b/GHNamespaceL/Class129.cs index b3105c2..7a9ac30 100644 --- a/GHNamespaceL/Class129.cs +++ b/GHNamespaceL/Class129.cs @@ -3,39 +3,39 @@ namespace GHNamespaceL { - public class Class129 : Class121 - { - public byte[] Byte0 = new byte[0]; + public class Class129 : Class121 + { + public byte[] Byte0 = new byte[0]; - public int Int0; + public int Int0; - public Class146[] Class1460; + public Class146[] Class1460; - public Class129(Class144 class1440, int int1, bool bool1) : base(bool1) - { - var num = class1440.vmethod_14(); - Byte0 = new byte[num]; - class1440.vmethod_15(Byte0, Byte0.Length); - Int0 = class1440.vmethod_14(); - if (Int0 > 0) - { - Class1460 = new Class146[Int0]; - } - for (var i = 0; i < Int0; i++) - { - Class1460[i] = new Class146(class1440); - } - } + public Class129(Class144 class1440, int int1, bool bool1) : base(bool1) + { + var num = class1440.vmethod_14(); + Byte0 = new byte[num]; + class1440.vmethod_15(Byte0, Byte0.Length); + Int0 = class1440.vmethod_14(); + if (Int0 > 0) + { + Class1460 = new Class146[Int0]; + } + for (var i = 0; i < Int0; i++) + { + Class1460[i] = new Class146(class1440); + } + } - public override string ToString() - { - var stringBuilder = new StringBuilder("VendorString '" + Byte0 + "'\n"); - stringBuilder.Append("VorbisComment (count=" + Int0 + ")"); - for (var i = 0; i < Int0; i++) - { - stringBuilder.Append("\n\t" + Class1460[i]); - } - return stringBuilder.ToString(); - } - } -} + public override string ToString() + { + var stringBuilder = new StringBuilder("VendorString '" + Byte0 + "'\n"); + stringBuilder.Append("VorbisComment (count=" + Int0 + ")"); + for (var i = 0; i < Int0; i++) + { + stringBuilder.Append("\n\t" + Class1460[i]); + } + return stringBuilder.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class132.cs b/GHNamespaceL/Class132.cs index c76367b..6d9ce1d 100644 --- a/GHNamespaceL/Class132.cs +++ b/GHNamespaceL/Class132.cs @@ -2,22 +2,23 @@ namespace GHNamespaceL { - public class Class132 : Class131 - { - private readonly int _int1; + public class Class132 : Class131 + { + private readonly int _int1; - public Class132(Class144 class1440, Class140 class1401, Class136 class1360, int int2, int int3) : base(class1401, int3) - { - _int1 = class1440.vmethod_12(int2); - for (var i = 0; i < class1401.Int0; i++) - { - class1360.vmethod_0()[i] = _int1; - } - } + public Class132(Class144 class1440, Class140 class1401, Class136 class1360, int int2, + int int3) : base(class1401, int3) + { + _int1 = class1440.vmethod_12(int2); + for (var i = 0; i < class1401.Int0; i++) + { + class1360.vmethod_0()[i] = _int1; + } + } - public override string ToString() - { - return string.Concat("ChannelConstant: Value=", _int1, " WastedBits=", Int0); - } - } -} + public override string ToString() + { + return string.Concat("ChannelConstant: Value=", _int1, " WastedBits=", Int0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class133.cs b/GHNamespaceL/Class133.cs index aa747ca..e308679 100644 --- a/GHNamespaceL/Class133.cs +++ b/GHNamespaceL/Class133.cs @@ -3,23 +3,24 @@ namespace GHNamespaceL { - public class Class133 : Class131 - { - private readonly int[] _int1; + public class Class133 : Class131 + { + private readonly int[] _int1; - public Class133(Class144 class1440, Class140 class1401, Class136 class1360, int int2, int int3) : base(class1401, int3) - { - _int1 = class1360.vmethod_2(); - for (var i = 0; i < class1401.Int0; i++) - { - _int1[i] = class1440.vmethod_12(int2); - } - Buffer.BlockCopy(_int1, 0, class1360.vmethod_0(), 0, class1401.Int0 << 2); - } + public Class133(Class144 class1440, Class140 class1401, Class136 class1360, int int2, + int int3) : base(class1401, int3) + { + _int1 = class1360.vmethod_2(); + for (var i = 0; i < class1401.Int0; i++) + { + _int1[i] = class1440.vmethod_12(int2); + } + Buffer.BlockCopy(_int1, 0, class1360.vmethod_0(), 0, class1401.Int0 << 2); + } - public override string ToString() - { - return "ChannelVerbatim: WastedBits=" + Int0; - } - } -} + public override string ToString() + { + return "ChannelVerbatim: WastedBits=" + Int0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class140.cs b/GHNamespaceL/Class140.cs index ddae66f..26617a4 100644 --- a/GHNamespaceL/Class140.cs +++ b/GHNamespaceL/Class140.cs @@ -4,242 +4,243 @@ namespace GHNamespaceL { - public class Class140 - { - public int Int0; + public class Class140 + { + public int Int0; - public int Int1; + public int Int1; - public int Int2; + public int Int2; - public int Int3; + public int Int3; - public int Int4; + public int Int4; - public int Int5 = -1; + public int Int5 = -1; - public long Long0 = -1L; + public long Long0 = -1L; - public Class140(Class144 class1440, byte[] byte0, Class122 class1220) - { - var num = 0; - var num2 = 0; - var @class = new Class152(16); - var flag = class1220 != null && class1220.vmethod_2() != class1220.vmethod_1(); - var flag2 = class1220 != null && class1220.vmethod_2() == class1220.vmethod_1(); - @class.vmethod_1(byte0[0]); - @class.vmethod_1(byte0[1]); - if ((@class.vmethod_3(1) & 3) != 0) - { - throw new BadHeaderException("Bad Magic Number: " + (@class.vmethod_3(1) & 255)); - } - for (var i = 0; i < 2; i++) - { - if (class1440.vmethod_11(8) == 255) - { - throw new BadHeaderException("Found sync byte"); - } - @class.vmethod_1((byte)class1440.vmethod_10(8)); - } - var num3 = @class.vmethod_3(2) >> 4 & 15; - switch (num3) - { - case 0: - if (!flag2) - { - throw new BadHeaderException("Unknown Block Size (0)"); - } - Int0 = class1220.vmethod_2(); - break; - case 1: - Int0 = 192; - break; - case 2: - case 3: - case 4: - case 5: - Int0 = 576 << num3 - 2; - break; - case 6: - case 7: - num = num3; - break; - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - Int0 = 256 << num3 - 8; - break; - } - var num4 = @class.vmethod_3(2) & 15; - switch (num4) - { - case 0: - if (class1220 == null) - { - throw new BadHeaderException("Bad Sample Rate (0)"); - } - Int1 = class1220.vmethod_6(); - break; - case 1: - case 2: - case 3: - throw new BadHeaderException("Bad Sample Rate (" + num4 + ")"); - case 4: - Int1 = 8000; - break; - case 5: - Int1 = 16000; - break; - case 6: - Int1 = 22050; - break; - case 7: - Int1 = 24000; - break; - case 8: - Int1 = 32000; - break; - case 9: - Int1 = 44100; - break; - case 10: - Int1 = 48000; - break; - case 11: - Int1 = 96000; - break; - case 12: - case 13: - case 14: - num2 = num4; - break; - case 15: - throw new BadHeaderException("Bad Sample Rate (" + num4 + ")"); - } - var num5 = @class.vmethod_3(3) >> 4 & 15; - if ((num5 & 8) != 0) - { - Int2 = 2; - switch (num5 & 7) - { - case 0: - Int3 = 1; - break; - case 1: - Int3 = 2; - break; - case 2: - Int3 = 3; - break; - default: - throw new BadHeaderException("Bad Channel Assignment (" + num5 + ")"); - } - } - else - { - Int2 = num5 + 1; - Int3 = 0; - } - var num6 = (@class.vmethod_3(3) & 14) >> 1; - switch (num6) - { - case 0: - if (class1220 == null) - { - throw new BadHeaderException("Bad BPS (" + num6 + ")"); - } - Int4 = class1220.vmethod_7(); - break; - case 1: - Int4 = 8; - break; - case 2: - Int4 = 12; - break; - case 3: - case 7: - throw new BadHeaderException("Bad BPS (" + num6 + ")"); - case 4: - Int4 = 16; - break; - case 5: - Int4 = 20; - break; - case 6: - Int4 = 24; - break; - } - if ((@class.vmethod_3(3) & 1) != 0) - { - throw new BadHeaderException("this should be a zero padding bit"); - } - if (num != 0 && flag) - { - Long0 = class1440.vmethod_19(@class); - if (Long0 == -1L) - { - throw new BadHeaderException("Bad Sample Number"); - } - } - else - { - var num7 = class1440.vmethod_18(@class); - if (num7 == 4294967295L) - { - throw new BadHeaderException("Bad Last Frame"); - } - Long0 = class1220.vmethod_2() * (long)num7; - } - if (num != 0) - { - var num8 = class1440.vmethod_10(8); - @class.vmethod_1((byte)num8); - if (num == 7) - { - var num9 = class1440.vmethod_10(8); - @class.vmethod_1((byte)num9); - num8 = (num8 << 8 | num9); - } - Int0 = num8 + 1; - } - if (num2 != 0) - { - var num10 = class1440.vmethod_10(8); - @class.vmethod_1((byte)num10); - if (num2 != 12) - { - var num11 = class1440.vmethod_10(8); - @class.vmethod_1((byte)num11); - num10 = (num10 << 8 | num11); - } - if (num2 == 12) - { - Int1 = num10 * 1000; - } - else if (num2 == 13) - { - Int1 = num10; - } - else - { - Int1 = num10 * 10; - } - } - var b = (byte)class1440.vmethod_10(8); - if (Class149.smethod_0(@class.vmethod_2(), @class.vmethod_0()) != b) - { - throw new BadHeaderException("STREAM_DECODER_ERROR_STATUS_BAD_HEADER"); - } - } + public Class140(Class144 class1440, byte[] byte0, Class122 class1220) + { + var num = 0; + var num2 = 0; + var @class = new Class152(16); + var flag = class1220 != null && class1220.vmethod_2() != class1220.vmethod_1(); + var flag2 = class1220 != null && class1220.vmethod_2() == class1220.vmethod_1(); + @class.vmethod_1(byte0[0]); + @class.vmethod_1(byte0[1]); + if ((@class.vmethod_3(1) & 3) != 0) + { + throw new BadHeaderException("Bad Magic Number: " + (@class.vmethod_3(1) & 255)); + } + for (var i = 0; i < 2; i++) + { + if (class1440.vmethod_11(8) == 255) + { + throw new BadHeaderException("Found sync byte"); + } + @class.vmethod_1((byte) class1440.vmethod_10(8)); + } + var num3 = @class.vmethod_3(2) >> 4 & 15; + switch (num3) + { + case 0: + if (!flag2) + { + throw new BadHeaderException("Unknown Block Size (0)"); + } + Int0 = class1220.vmethod_2(); + break; + case 1: + Int0 = 192; + break; + case 2: + case 3: + case 4: + case 5: + Int0 = 576 << num3 - 2; + break; + case 6: + case 7: + num = num3; + break; + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + Int0 = 256 << num3 - 8; + break; + } + var num4 = @class.vmethod_3(2) & 15; + switch (num4) + { + case 0: + if (class1220 == null) + { + throw new BadHeaderException("Bad Sample Rate (0)"); + } + Int1 = class1220.vmethod_6(); + break; + case 1: + case 2: + case 3: + throw new BadHeaderException("Bad Sample Rate (" + num4 + ")"); + case 4: + Int1 = 8000; + break; + case 5: + Int1 = 16000; + break; + case 6: + Int1 = 22050; + break; + case 7: + Int1 = 24000; + break; + case 8: + Int1 = 32000; + break; + case 9: + Int1 = 44100; + break; + case 10: + Int1 = 48000; + break; + case 11: + Int1 = 96000; + break; + case 12: + case 13: + case 14: + num2 = num4; + break; + case 15: + throw new BadHeaderException("Bad Sample Rate (" + num4 + ")"); + } + var num5 = @class.vmethod_3(3) >> 4 & 15; + if ((num5 & 8) != 0) + { + Int2 = 2; + switch (num5 & 7) + { + case 0: + Int3 = 1; + break; + case 1: + Int3 = 2; + break; + case 2: + Int3 = 3; + break; + default: + throw new BadHeaderException("Bad Channel Assignment (" + num5 + ")"); + } + } + else + { + Int2 = num5 + 1; + Int3 = 0; + } + var num6 = (@class.vmethod_3(3) & 14) >> 1; + switch (num6) + { + case 0: + if (class1220 == null) + { + throw new BadHeaderException("Bad BPS (" + num6 + ")"); + } + Int4 = class1220.vmethod_7(); + break; + case 1: + Int4 = 8; + break; + case 2: + Int4 = 12; + break; + case 3: + case 7: + throw new BadHeaderException("Bad BPS (" + num6 + ")"); + case 4: + Int4 = 16; + break; + case 5: + Int4 = 20; + break; + case 6: + Int4 = 24; + break; + } + if ((@class.vmethod_3(3) & 1) != 0) + { + throw new BadHeaderException("this should be a zero padding bit"); + } + if (num != 0 && flag) + { + Long0 = class1440.vmethod_19(@class); + if (Long0 == -1L) + { + throw new BadHeaderException("Bad Sample Number"); + } + } + else + { + var num7 = class1440.vmethod_18(@class); + if (num7 == 4294967295L) + { + throw new BadHeaderException("Bad Last Frame"); + } + Long0 = class1220.vmethod_2() * (long) num7; + } + if (num != 0) + { + var num8 = class1440.vmethod_10(8); + @class.vmethod_1((byte) num8); + if (num == 7) + { + var num9 = class1440.vmethod_10(8); + @class.vmethod_1((byte) num9); + num8 = (num8 << 8 | num9); + } + Int0 = num8 + 1; + } + if (num2 != 0) + { + var num10 = class1440.vmethod_10(8); + @class.vmethod_1((byte) num10); + if (num2 != 12) + { + var num11 = class1440.vmethod_10(8); + @class.vmethod_1((byte) num11); + num10 = (num10 << 8 | num11); + } + if (num2 == 12) + { + Int1 = num10 * 1000; + } + else if (num2 == 13) + { + Int1 = num10; + } + else + { + Int1 = num10 * 10; + } + } + var b = (byte) class1440.vmethod_10(8); + if (Class149.smethod_0(@class.vmethod_2(), @class.vmethod_0()) != b) + { + throw new BadHeaderException("STREAM_DECODER_ERROR_STATUS_BAD_HEADER"); + } + } - public override string ToString() - { - return string.Concat("FrameHeader: BlockSize=", Int0, " SampleRate=", Int1, " Channels=", Int2, " ChannelAssignment=", Int3, " BPS=", Int4, " SampleNumber=", Long0); - } - } -} + public override string ToString() + { + return string.Concat("FrameHeader: BlockSize=", Int0, " SampleRate=", Int1, " Channels=", Int2, + " ChannelAssignment=", Int3, " BPS=", Int4, " SampleNumber=", Long0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class141.cs b/GHNamespaceL/Class141.cs index 0c7e5d4..e5cbb14 100644 --- a/GHNamespaceL/Class141.cs +++ b/GHNamespaceL/Class141.cs @@ -1,15 +1,15 @@ namespace GHNamespaceL { - public class Class141 - { - public static int smethod_0(int int0) - { - var num = 0; - while ((int0 >>= 1) != 0) - { - num++; - } - return num; - } - } -} + public class Class141 + { + public static int smethod_0(int int0) + { + var num = 0; + while ((int0 >>= 1) != 0) + { + num++; + } + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class142.cs b/GHNamespaceL/Class142.cs index 8440a97..c540f23 100644 --- a/GHNamespaceL/Class142.cs +++ b/GHNamespaceL/Class142.cs @@ -1,23 +1,23 @@ namespace GHNamespaceL { - public class Class142 - { - public long Long0; + public class Class142 + { + public long Long0; - public long Long1; + public long Long1; - public int Int0; + public int Int0; - public Class142(Class144 class1440) - { - Long0 = class1440.vmethod_13(64); - Long1 = class1440.vmethod_13(64); - Int0 = class1440.vmethod_10(16); - } + public Class142(Class144 class1440) + { + Long0 = class1440.vmethod_13(64); + Long1 = class1440.vmethod_13(64); + Int0 = class1440.vmethod_10(16); + } - public override string ToString() - { - return string.Concat("sampleNumber=", Long0, " streamOffset=", Long1, " frameSamples=", Int0); - } - } -} + public override string ToString() + { + return string.Concat("sampleNumber=", Long0, " streamOffset=", Long1, " frameSamples=", Int0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class143.cs b/GHNamespaceL/Class143.cs index f95af0a..f6810f0 100644 --- a/GHNamespaceL/Class143.cs +++ b/GHNamespaceL/Class143.cs @@ -1,22 +1,22 @@ namespace GHNamespaceL { - public class Class143 - { - public int[] Int0; + public class Class143 + { + public int[] Int0; - public int[] Int1; + public int[] Int1; - public int Int2; + public int Int2; - public virtual void vmethod_0(int int3) - { - if (Int2 >= int3) - { - return; - } - Int0 = new int[1 << int3]; - Int1 = new int[1 << int3]; - Int2 = int3; - } - } -} + public virtual void vmethod_0(int int3) + { + if (Int2 >= int3) + { + return; + } + Int0 = new int[1 << int3]; + Int1 = new int[1 << int3]; + Int2 = int3; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class144.cs b/GHNamespaceL/Class144.cs index 4cfe1fd..ef74066 100644 --- a/GHNamespaceL/Class144.cs +++ b/GHNamespaceL/Class144.cs @@ -4,649 +4,649 @@ namespace GHNamespaceL { - public class Class144 - { - private static readonly byte Byte0 = 128; + public class Class144 + { + private static readonly byte Byte0 = 128; - private readonly byte[] _byte1 = new byte[1024]; + private readonly byte[] _byte1 = new byte[1024]; - private int _int0; + private int _int0; - private int _int1; + private int _int1; - private int _int2; + private int _int2; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - private short _short0; + private short _short0; - private readonly Stream _stream0; + private readonly Stream _stream0; - public virtual short vmethod_0() - { - return _short0; - } + public virtual short vmethod_0() + { + return _short0; + } - public virtual bool vmethod_1() - { - return (_int2 & 7) == 0; - } + public virtual bool vmethod_1() + { + return (_int2 & 7) == 0; + } - public Class144(Stream stream1) - { - _stream0 = stream1; - } + public Class144(Stream stream1) + { + _stream0 = stream1; + } - private int method_0() - { - if (_int1 > 0 && _int0 > _int1) - { - Buffer.BlockCopy(_byte1, _int1, _byte1, 0, _int0 - _int1); - } - _int0 -= _int1; - _int1 = 0; - var num = _byte1.Length - _int0; - num = _stream0.Read(_byte1, _int0, num); - if (num <= 0) - { - throw new EndOfStreamException(); - } - _int0 += num; - _int3 += num << 3; - return num; - } + private int method_0() + { + if (_int1 > 0 && _int0 > _int1) + { + Buffer.BlockCopy(_byte1, _int1, _byte1, 0, _int0 - _int1); + } + _int0 -= _int1; + _int1 = 0; + var num = _byte1.Length - _int0; + num = _stream0.Read(_byte1, _int0, num); + if (num <= 0) + { + throw new EndOfStreamException(); + } + _int0 += num; + _int3 += num << 3; + return num; + } - public virtual void vmethod_2() - { - _int1 = 0; - _int2 = 0; - _int0 = 0; - _int3 = 0; - } + public virtual void vmethod_2() + { + _int1 = 0; + _int2 = 0; + _int0 = 0; + _int3 = 0; + } - public virtual void vmethod_3(short short1) - { - _short0 = short1; - } + public virtual void vmethod_3(short short1) + { + _short0 = short1; + } - public virtual int vmethod_4() - { - return 8 - (_int2 & 7); - } + public virtual int vmethod_4() + { + return 8 - (_int2 & 7); + } - public virtual void vmethod_5(int int5) - { - if (int5 == 0) - { - return; - } - var num = _int2 & 7; - if (num != 0) - { - var num2 = Math.Min(8 - num, int5); - vmethod_10(num2); - int5 -= num2; - } - var num3 = int5 / 8; - if (num3 > 0) - { - vmethod_15(null, num3); - int5 %= 8; - } - if (int5 > 0) - { - vmethod_10(int5); - } - } + public virtual void vmethod_5(int int5) + { + if (int5 == 0) + { + return; + } + var num = _int2 & 7; + if (num != 0) + { + var num2 = Math.Min(8 - num, int5); + vmethod_10(num2); + int5 -= num2; + } + var num3 = int5 / 8; + if (num3 > 0) + { + vmethod_15(null, num3); + int5 %= 8; + } + if (int5 > 0) + { + vmethod_10(int5); + } + } - public virtual int vmethod_6() - { - while (_int3 <= 0) - { - method_0(); - } - var result = (((int)_byte1[_int1] & 128 >> _int2) != 0) ? 1 : 0; - _int2++; - if (_int2 == 8) - { - _short0 = Class150.smethod_0(_byte1[_int1], _short0); - _int1++; - _int2 = 0; - } - _int3--; - _int4++; - return result; - } + public virtual int vmethod_6() + { + while (_int3 <= 0) + { + method_0(); + } + var result = (((int) _byte1[_int1] & 128 >> _int2) != 0) ? 1 : 0; + _int2++; + if (_int2 == 8) + { + _short0 = Class150.smethod_0(_byte1[_int1], _short0); + _int1++; + _int2 = 0; + } + _int3--; + _int4++; + return result; + } - public virtual int vmethod_7(int int5) - { - while (_int3 <= 0) - { - method_0(); - } - int5 <<= 1; - int5 |= ((((int)_byte1[_int1] & 128 >> _int2) != 0) ? 1 : 0); - _int2++; - if (_int2 == 8) - { - _short0 = Class150.smethod_0(_byte1[_int1], _short0); - _int1++; - _int2 = 0; - } - _int3--; - _int4++; - return int5; - } + public virtual int vmethod_7(int int5) + { + while (_int3 <= 0) + { + method_0(); + } + int5 <<= 1; + int5 |= ((((int) _byte1[_int1] & 128 >> _int2) != 0) ? 1 : 0); + _int2++; + if (_int2 == 8) + { + _short0 = Class150.smethod_0(_byte1[_int1], _short0); + _int1++; + _int2 = 0; + } + _int3--; + _int4++; + return int5; + } - public virtual int vmethod_8(int int5, int int6) - { - while (int6 >= _int3) - { - method_0(); - } - int5 <<= 1; - if (_int2 + int6 >= 8) - { - int6 = (_int2 + int6) % 8; - int5 |= ((((int)_byte1[_int1 + 1] & 128 >> int6) != 0) ? 1 : 0); - } - else - { - int5 |= ((((int)_byte1[_int1] & 128 >> _int2 + int6) != 0) ? 1 : 0); - } - return int5; - } + public virtual int vmethod_8(int int5, int int6) + { + while (int6 >= _int3) + { + method_0(); + } + int5 <<= 1; + if (_int2 + int6 >= 8) + { + int6 = (_int2 + int6) % 8; + int5 |= ((((int) _byte1[_int1 + 1] & 128 >> int6) != 0) ? 1 : 0); + } + else + { + int5 |= ((((int) _byte1[_int1] & 128 >> _int2 + int6) != 0) ? 1 : 0); + } + return int5; + } - public virtual long vmethod_9(long long0) - { - while (_int3 <= 0) - { - method_0(); - } - long0 <<= 1; - long0 |= ((((int)_byte1[_int1] & 128 >> _int2) != 0) ? 1L : 0L); - _int2++; - if (_int2 == 8) - { - _short0 = Class150.smethod_0(_byte1[_int1], _short0); - _int1++; - _int2 = 0; - } - _int3--; - _int4++; - return long0; - } + public virtual long vmethod_9(long long0) + { + while (_int3 <= 0) + { + method_0(); + } + long0 <<= 1; + long0 |= ((((int) _byte1[_int1] & 128 >> _int2) != 0) ? 1L : 0L); + _int2++; + if (_int2 == 8) + { + _short0 = Class150.smethod_0(_byte1[_int1], _short0); + _int1++; + _int2 = 0; + } + _int3--; + _int4++; + return long0; + } - public virtual int vmethod_10(int int5) - { - var num = 0; - for (var i = 0; i < int5; i++) - { - num = vmethod_7(num); - } - return num; - } + public virtual int vmethod_10(int int5) + { + var num = 0; + for (var i = 0; i < int5; i++) + { + num = vmethod_7(num); + } + return num; + } - public virtual int vmethod_11(int int5) - { - var num = 0; - for (var i = 0; i < int5; i++) - { - num = vmethod_8(num, i); - } - return num; - } + public virtual int vmethod_11(int int5) + { + var num = 0; + for (var i = 0; i < int5; i++) + { + num = vmethod_8(num, i); + } + return num; + } - public virtual int vmethod_12(int int5) - { - if (int5 == 0) - { - return 0; - } - var num = 0; - for (var i = 0; i < int5; i++) - { - num = vmethod_7(num); - } - var num2 = 32 - int5; - int num3; - if (num2 != 0) - { - num <<= num2; - num3 = num; - num3 >>= num2; - } - else - { - num3 = num; - } - return num3; - } + public virtual int vmethod_12(int int5) + { + if (int5 == 0) + { + return 0; + } + var num = 0; + for (var i = 0; i < int5; i++) + { + num = vmethod_7(num); + } + var num2 = 32 - int5; + int num3; + if (num2 != 0) + { + num <<= num2; + num3 = num; + num3 >>= num2; + } + else + { + num3 = num; + } + return num3; + } - public virtual long vmethod_13(int int5) - { - var num = 0L; - for (var i = 0; i < int5; i++) - { - num = vmethod_9(num); - } - return num; - } + public virtual long vmethod_13(int int5) + { + var num = 0L; + for (var i = 0; i < int5; i++) + { + num = vmethod_9(num); + } + return num; + } - public virtual int vmethod_14() - { - var num = vmethod_10(8); - var num2 = vmethod_10(8); - num |= num2 << 8; - num2 = vmethod_10(8); - num |= num2 << 16; - num2 = vmethod_10(8); - return num | num2 << 24; - } + public virtual int vmethod_14() + { + var num = vmethod_10(8); + var num2 = vmethod_10(8); + num |= num2 << 8; + num2 = vmethod_10(8); + num |= num2 << 16; + num2 = vmethod_10(8); + return num | num2 << 24; + } - public virtual void vmethod_15(byte[] byte2, int int5) - { - var num = int5; - while (int5 > 0) - { - var num2 = Math.Min(int5, _int0 - _int1); - if (num2 == 0) - { - method_0(); - } - else - { - if (byte2 != null) - { - Buffer.BlockCopy(_byte1, _int1, byte2, num - int5, num2); - } - int5 -= num2; - _int1 += num2; - _int3 -= num2 << 3; - _int4 += num2 << 3; - } - } - } + public virtual void vmethod_15(byte[] byte2, int int5) + { + var num = int5; + while (int5 > 0) + { + var num2 = Math.Min(int5, _int0 - _int1); + if (num2 == 0) + { + method_0(); + } + else + { + if (byte2 != null) + { + Buffer.BlockCopy(_byte1, _int1, byte2, num - int5, num2); + } + int5 -= num2; + _int1 += num2; + _int3 -= num2 << 3; + _int4 += num2 << 3; + } + } + } - public virtual int vmethod_16() - { - var num = 0; - while (true) - { - var num2 = vmethod_6(); - if (num2 != 0) - { - break; - } - num++; - } - return num; - } + public virtual int vmethod_16() + { + var num = 0; + while (true) + { + var num2 = vmethod_6(); + if (num2 != 0) + { + break; + } + num++; + } + return num; + } - public virtual void vmethod_17(int[] int5, int int6, int int7, int int8) - { - var i = 0; - var num = 0; - var num2 = 0; - var num3 = 0; - var num4 = 0; - var num5 = 0; - if (int7 == 0) - { - return; - } - var num6 = _int1; - long num7 = _int1 * 8 + _int2; - if (_int2 > 0) - { - byte b2; - var b = b2 = _byte1[num6]; - num = _int2; - b = (byte)(b << (byte)num); - int num9; - while (true) - { - if (num5 == 0) - { - if (b == 0) - { - goto IL_13D; - } - var num8 = 0; - while ((b & Byte0) == 0) - { - b = (byte)(b << 1); - num8++; - } - num3 += num8; - b = (byte)(b << 1); - num8++; - num += num8; - num2 = 0; - num4 = int8; - num5++; - if (num == 8) - { - goto Block_8; - } - } - else - { - num9 = 8 - num; - if (num4 >= num9) - { - goto IL_15C; - } - num2 <<= num4; - num2 |= (b & 255) >> 8 - num4; - b = (byte)(b << (byte)num4); - num += num4; - num2 |= num3 << int8; - if ((num2 & 1) != 0) - { - int5[int6 + i++] = -(num2 >> 1) - 1; - } - else - { - int5[int6 + i++] = num2 >> 1; - } - if (i == int7) - { - break; - } - num3 = 0; - num5 = 0; - } - } - num6--; - goto IL_1D5; - Block_8: - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - goto IL_1D5; - IL_13D: - num3 += 8 - num; - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - goto IL_1D5; - IL_15C: - num2 <<= num9; - num2 |= (b & 255) >> num; - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - if (num4 == num9) - { - num2 |= num3 << int8; - if ((num2 & 1) != 0) - { - int5[int6 + i++] = -(num2 >> 1) - 1; - } - else - { - int5[int6 + i++] = num2 >> 1; - } - if (i == int7) - { - goto IL_1D5; - } - num3 = 0; - num5 = 0; - } - num4 -= num9; - IL_1D5: - num6++; - _int1 = num6; - _int2 = num; - } - while (i < int7) - { - while (num6 < _int0 && i < int7) - { - byte b2; - var b = b2 = _byte1[num6]; - num = 0; - int num10; - while (true) - { - if (num5 == 0) - { - if (b == 0) - { - goto IL_2EA; - } - var num8 = 0; - while ((b & Byte0) == 0) - { - b = (byte)(b << 1); - num8++; - } - num3 += num8; - b = (byte)(b << 1); - num8++; - num += num8; - num2 = 0; - num4 = int8; - num5++; - if (num == 8) - { - goto Block_19; - } - } - else - { - num10 = 8 - num; - if (num4 >= num10) - { - goto IL_309; - } - num2 <<= num4; - num2 |= (b & 255) >> 8 - num4; - b = (byte)(b << (byte)num4); - num += num4; - num2 |= num3 << int8; - if ((num2 & 1) != 0) - { - int5[int6 + i++] = -(num2 >> 1) - 1; - } - else - { - int5[int6 + i++] = num2 >> 1; - } - if (i == int7) - { - goto Block_16; - } - num3 = 0; - num5 = 0; - } - } - IL_382: - num6++; - continue; - Block_16: - num6--; - goto IL_382; - Block_19: - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - goto IL_382; - IL_2EA: - num3 += 8 - num; - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - goto IL_382; - IL_309: - num2 <<= num10; - num2 |= (b & 255) >> num; - num = 0; - _short0 = Class150.smethod_0(b2, _short0); - if (num4 == num10) - { - num2 |= num3 << int8; - if ((num2 & 1) != 0) - { - int5[int6 + i++] = -(num2 >> 1) - 1; - } - else - { - int5[int6 + i++] = num2 >> 1; - } - if (i == int7) - { - goto IL_382; - } - num3 = 0; - num5 = 0; - } - num4 -= num10; - goto IL_382; - } - _int1 = num6; - _int2 = num; - if (i < int7) - { - long num11 = _int1 * 8 + _int2; - _int4 = (int)(_int4 + num11 - num7); - _int3 = (int)(_int3 - (num11 - num7)); - method_0(); - num6 = 0; - num7 = _int1 * 8 + _int2; - } - } - long num12 = _int1 * 8 + _int2; - _int4 = (int)(_int4 + num12 - num7); - _int3 = (int)(_int3 - (num12 - num7)); - } + public virtual void vmethod_17(int[] int5, int int6, int int7, int int8) + { + var i = 0; + var num = 0; + var num2 = 0; + var num3 = 0; + var num4 = 0; + var num5 = 0; + if (int7 == 0) + { + return; + } + var num6 = _int1; + long num7 = _int1 * 8 + _int2; + if (_int2 > 0) + { + byte b2; + var b = b2 = _byte1[num6]; + num = _int2; + b = (byte) (b << (byte) num); + int num9; + while (true) + { + if (num5 == 0) + { + if (b == 0) + { + goto IL_13D; + } + var num8 = 0; + while ((b & Byte0) == 0) + { + b = (byte) (b << 1); + num8++; + } + num3 += num8; + b = (byte) (b << 1); + num8++; + num += num8; + num2 = 0; + num4 = int8; + num5++; + if (num == 8) + { + goto Block_8; + } + } + else + { + num9 = 8 - num; + if (num4 >= num9) + { + goto IL_15C; + } + num2 <<= num4; + num2 |= (b & 255) >> 8 - num4; + b = (byte) (b << (byte) num4); + num += num4; + num2 |= num3 << int8; + if ((num2 & 1) != 0) + { + int5[int6 + i++] = -(num2 >> 1) - 1; + } + else + { + int5[int6 + i++] = num2 >> 1; + } + if (i == int7) + { + break; + } + num3 = 0; + num5 = 0; + } + } + num6--; + goto IL_1D5; + Block_8: + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + goto IL_1D5; + IL_13D: + num3 += 8 - num; + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + goto IL_1D5; + IL_15C: + num2 <<= num9; + num2 |= (b & 255) >> num; + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + if (num4 == num9) + { + num2 |= num3 << int8; + if ((num2 & 1) != 0) + { + int5[int6 + i++] = -(num2 >> 1) - 1; + } + else + { + int5[int6 + i++] = num2 >> 1; + } + if (i == int7) + { + goto IL_1D5; + } + num3 = 0; + num5 = 0; + } + num4 -= num9; + IL_1D5: + num6++; + _int1 = num6; + _int2 = num; + } + while (i < int7) + { + while (num6 < _int0 && i < int7) + { + byte b2; + var b = b2 = _byte1[num6]; + num = 0; + int num10; + while (true) + { + if (num5 == 0) + { + if (b == 0) + { + goto IL_2EA; + } + var num8 = 0; + while ((b & Byte0) == 0) + { + b = (byte) (b << 1); + num8++; + } + num3 += num8; + b = (byte) (b << 1); + num8++; + num += num8; + num2 = 0; + num4 = int8; + num5++; + if (num == 8) + { + goto Block_19; + } + } + else + { + num10 = 8 - num; + if (num4 >= num10) + { + goto IL_309; + } + num2 <<= num4; + num2 |= (b & 255) >> 8 - num4; + b = (byte) (b << (byte) num4); + num += num4; + num2 |= num3 << int8; + if ((num2 & 1) != 0) + { + int5[int6 + i++] = -(num2 >> 1) - 1; + } + else + { + int5[int6 + i++] = num2 >> 1; + } + if (i == int7) + { + goto Block_16; + } + num3 = 0; + num5 = 0; + } + } + IL_382: + num6++; + continue; + Block_16: + num6--; + goto IL_382; + Block_19: + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + goto IL_382; + IL_2EA: + num3 += 8 - num; + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + goto IL_382; + IL_309: + num2 <<= num10; + num2 |= (b & 255) >> num; + num = 0; + _short0 = Class150.smethod_0(b2, _short0); + if (num4 == num10) + { + num2 |= num3 << int8; + if ((num2 & 1) != 0) + { + int5[int6 + i++] = -(num2 >> 1) - 1; + } + else + { + int5[int6 + i++] = num2 >> 1; + } + if (i == int7) + { + goto IL_382; + } + num3 = 0; + num5 = 0; + } + num4 -= num10; + goto IL_382; + } + _int1 = num6; + _int2 = num; + if (i < int7) + { + long num11 = _int1 * 8 + _int2; + _int4 = (int) (_int4 + num11 - num7); + _int3 = (int) (_int3 - (num11 - num7)); + method_0(); + num6 = 0; + num7 = _int1 * 8 + _int2; + } + } + long num12 = _int1 * 8 + _int2; + _int4 = (int) (_int4 + num12 - num7); + _int3 = (int) (_int3 - (num12 - num7)); + } - public virtual int vmethod_18(Class152 class1520) - { - var num = vmethod_10(8); - if (class1520 != null) - { - class1520.vmethod_1((byte)num); - } - int num2; - int i; - if ((num & 128) == 0) - { - num2 = num; - i = 0; - } - else if ((num & 192) != 0 && (num & 32) == 0) - { - num2 = (num & 31); - i = 1; - } - else if ((num & 224) != 0 && (num & 16) == 0) - { - num2 = (num & 15); - i = 2; - } - else if ((num & 240) != 0 && (num & 8) == 0) - { - num2 = (num & 7); - i = 3; - } - else if ((num & 248) != 0 && (num & 4) == 0) - { - num2 = (num & 3); - i = 4; - } - else - { - if ((num & 252) == 0 || (num & 2) != 0) - { - return -1; - } - num2 = (num & 1); - i = 5; - } - while (i > 0) - { - num = vmethod_11(8); - if ((num & 128) == 0 || (num & 64) != 0) - { - return -1; - } - num = vmethod_10(8); - if (class1520 != null) - { - class1520.vmethod_1((byte)num); - } - num2 <<= 6; - num2 |= (num & 63); - i--; - } - return num2; - } + public virtual int vmethod_18(Class152 class1520) + { + var num = vmethod_10(8); + if (class1520 != null) + { + class1520.vmethod_1((byte) num); + } + int num2; + int i; + if ((num & 128) == 0) + { + num2 = num; + i = 0; + } + else if ((num & 192) != 0 && (num & 32) == 0) + { + num2 = (num & 31); + i = 1; + } + else if ((num & 224) != 0 && (num & 16) == 0) + { + num2 = (num & 15); + i = 2; + } + else if ((num & 240) != 0 && (num & 8) == 0) + { + num2 = (num & 7); + i = 3; + } + else if ((num & 248) != 0 && (num & 4) == 0) + { + num2 = (num & 3); + i = 4; + } + else + { + if ((num & 252) == 0 || (num & 2) != 0) + { + return -1; + } + num2 = (num & 1); + i = 5; + } + while (i > 0) + { + num = vmethod_11(8); + if ((num & 128) == 0 || (num & 64) != 0) + { + return -1; + } + num = vmethod_10(8); + if (class1520 != null) + { + class1520.vmethod_1((byte) num); + } + num2 <<= 6; + num2 |= (num & 63); + i--; + } + return num2; + } - public virtual long vmethod_19(Class152 class1520) - { - var num = vmethod_10(8); - if (class1520 != null) - { - class1520.vmethod_1((byte)num); - } - long num2; - int i; - if ((num & 128) == 0) - { - num2 = num; - i = 0; - } - else if ((num & 192) != 0 && (num & 32) == 0) - { - num2 = num & 31; - i = 1; - } - else if ((num & 224) != 0 && (num & 16) == 0) - { - num2 = num & 15; - i = 2; - } - else if ((num & 240) != 0 && (num & 8) == 0) - { - num2 = num & 7; - i = 3; - } - else if ((num & 248) != 0 && (num & 4) == 0) - { - num2 = num & 3; - i = 4; - } - else if ((num & 252) != 0 && (num & 2) == 0) - { - num2 = num & 1; - i = 5; - } - else - { - if ((num & 254) == 0 || (num & 1) != 0) - { - return -1L; - } - num2 = 0L; - i = 6; - } - while (i > 0) - { - num = vmethod_11(8); - if ((num & 128) == 0 || (num & 64) != 0) - { - return -1L; - } - num = vmethod_10(8); - if (class1520 != null) - { - class1520.vmethod_1((byte)num); - } - num2 <<= 6; - num2 |= num & 63; - i--; - } - return num2; - } - } -} + public virtual long vmethod_19(Class152 class1520) + { + var num = vmethod_10(8); + if (class1520 != null) + { + class1520.vmethod_1((byte) num); + } + long num2; + int i; + if ((num & 128) == 0) + { + num2 = num; + i = 0; + } + else if ((num & 192) != 0 && (num & 32) == 0) + { + num2 = num & 31; + i = 1; + } + else if ((num & 224) != 0 && (num & 16) == 0) + { + num2 = num & 15; + i = 2; + } + else if ((num & 240) != 0 && (num & 8) == 0) + { + num2 = num & 7; + i = 3; + } + else if ((num & 248) != 0 && (num & 4) == 0) + { + num2 = num & 3; + i = 4; + } + else if ((num & 252) != 0 && (num & 2) == 0) + { + num2 = num & 1; + i = 5; + } + else + { + if ((num & 254) == 0 || (num & 1) != 0) + { + return -1L; + } + num2 = 0L; + i = 6; + } + while (i > 0) + { + num = vmethod_11(8); + if ((num & 128) == 0 || (num & 64) != 0) + { + return -1L; + } + num = vmethod_10(8); + if (class1520 != null) + { + class1520.vmethod_1((byte) num); + } + num2 <<= 6; + num2 |= num & 63; + i--; + } + return num2; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class145.cs b/GHNamespaceL/Class145.cs index 780e36c..355982d 100644 --- a/GHNamespaceL/Class145.cs +++ b/GHNamespaceL/Class145.cs @@ -1,12 +1,13 @@ namespace GHNamespaceL { - public class Class145 - { - public static readonly byte[] Byte0 = { - 102, - 76, - 97, - 67 - }; - } -} + public class Class145 + { + public static readonly byte[] Byte0 = + { + 102, + 76, + 97, + 67 + }; + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class146.cs b/GHNamespaceL/Class146.cs index 1d3d391..44a7f60 100644 --- a/GHNamespaceL/Class146.cs +++ b/GHNamespaceL/Class146.cs @@ -3,33 +3,33 @@ namespace GHNamespaceL { - public class Class146 - { - public byte[] Byte0; + public class Class146 + { + public byte[] Byte0; - public Class146(Class144 class1440) - { - var num = class1440.vmethod_14(); - if (num == 0) - { - return; - } - Byte0 = new byte[num]; - class1440.vmethod_15(Byte0, Byte0.Length); - } + public Class146(Class144 class1440) + { + var num = class1440.vmethod_14(); + if (num == 0) + { + return; + } + Byte0 = new byte[num]; + class1440.vmethod_15(Byte0, Byte0.Length); + } - public override string ToString() - { - string result; - try - { - result = Encoding.GetEncoding("UTF-8").GetString(Byte0); - } - catch (IOException) - { - result = new StringBuilder("").ToString(); - } - return result; - } - } -} + public override string ToString() + { + string result; + try + { + result = Encoding.GetEncoding("UTF-8").GetString(Byte0); + } + catch (IOException) + { + result = new StringBuilder("").ToString(); + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class147.cs b/GHNamespaceL/Class147.cs index 5dc5d1b..04069f5 100644 --- a/GHNamespaceL/Class147.cs +++ b/GHNamespaceL/Class147.cs @@ -1,38 +1,38 @@ namespace GHNamespaceL { - public class Class147 - { - public long Long0; + public class Class147 + { + public long Long0; - public byte Byte0; + public byte Byte0; - public byte[] Byte1 = new byte[13]; + public byte[] Byte1 = new byte[13]; - public int Int0; + public int Int0; - public int Int1; + public int Int1; - public byte Byte2; + public byte Byte2; - public Class148[] Class1480; + public Class148[] Class1480; - public Class147(Class144 class1440) - { - Long0 = class1440.vmethod_13(64); - Byte0 = (byte)class1440.vmethod_10(8); - class1440.vmethod_15(Byte1, 12); - Int0 = class1440.vmethod_10(1); - Int1 = class1440.vmethod_10(1); - class1440.vmethod_5(110); - Byte2 = (byte)class1440.vmethod_10(8); - if (Byte2 > 0) - { - Class1480 = new Class148[Byte2]; - for (var i = 0; i < (int)Byte2; i++) - { - Class1480[i] = new Class148(class1440); - } - } - } - } -} + public Class147(Class144 class1440) + { + Long0 = class1440.vmethod_13(64); + Byte0 = (byte) class1440.vmethod_10(8); + class1440.vmethod_15(Byte1, 12); + Int0 = class1440.vmethod_10(1); + Int1 = class1440.vmethod_10(1); + class1440.vmethod_5(110); + Byte2 = (byte) class1440.vmethod_10(8); + if (Byte2 > 0) + { + Class1480 = new Class148[Byte2]; + for (var i = 0; i < (int) Byte2; i++) + { + Class1480[i] = new Class148(class1440); + } + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class148.cs b/GHNamespaceL/Class148.cs index 9e8cd74..26d8f70 100644 --- a/GHNamespaceL/Class148.cs +++ b/GHNamespaceL/Class148.cs @@ -1,16 +1,16 @@ namespace GHNamespaceL { - public class Class148 - { - public long Long0; + public class Class148 + { + public long Long0; - public byte Byte0; + public byte Byte0; - public Class148(Class144 class1440) - { - Long0 = class1440.vmethod_13(64); - Byte0 = (byte)class1440.vmethod_10(8); - class1440.vmethod_5(24); - } - } -} + public Class148(Class144 class1440) + { + Long0 = class1440.vmethod_13(64); + Byte0 = (byte) class1440.vmethod_10(8); + class1440.vmethod_5(24); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class149.cs b/GHNamespaceL/Class149.cs index d648afa..79b014b 100644 --- a/GHNamespaceL/Class149.cs +++ b/GHNamespaceL/Class149.cs @@ -1,274 +1,275 @@ namespace GHNamespaceL { - public class Class149 - { - private static readonly byte[] Byte0 = { - 0, - 7, - 14, - 9, - 28, - 27, - 18, - 21, - 56, - 63, - 54, - 49, - 36, - 35, - 42, - 45, - 112, - 119, - 126, - 121, - 108, - 107, - 98, - 101, - 72, - 79, - 70, - 65, - 84, - 83, - 90, - 93, - 224, - 231, - 238, - 233, - 252, - 251, - 242, - 245, - 216, - 223, - 214, - 209, - 196, - 195, - 202, - 205, - 144, - 151, - 158, - 153, - 140, - 139, - 130, - 133, - 168, - 175, - 166, - 161, - 180, - 179, - 186, - 189, - 199, - 192, - 201, - 206, - 219, - 220, - 213, - 210, - 255, - 248, - 241, - 246, - 227, - 228, - 237, - 234, - 183, - 176, - 185, - 190, - 171, - 172, - 165, - 162, - 143, - 136, - 129, - 134, - 147, - 148, - 157, - 154, - 39, - 32, - 41, - 46, - 59, - 60, - 53, - 50, - 31, - 24, - 17, - 22, - 3, - 4, - 13, - 10, - 87, - 80, - 89, - 94, - 75, - 76, - 69, - 66, - 111, - 104, - 97, - 102, - 115, - 116, - 125, - 122, - 137, - 142, - 135, - 128, - 149, - 146, - 155, - 156, - 177, - 182, - 191, - 184, - 173, - 170, - 163, - 164, - 249, - 254, - 247, - 240, - 229, - 226, - 235, - 236, - 193, - 198, - 207, - 200, - 221, - 218, - 211, - 212, - 105, - 110, - 103, - 96, - 117, - 114, - 123, - 124, - 81, - 86, - 95, - 88, - 77, - 74, - 67, - 68, - 25, - 30, - 23, - 16, - 5, - 2, - 11, - 12, - 33, - 38, - 47, - 40, - 61, - 58, - 51, - 52, - 78, - 73, - 64, - 71, - 82, - 85, - 92, - 91, - 118, - 113, - 120, - 127, - 106, - 109, - 100, - 99, - 62, - 57, - 48, - 55, - 34, - 37, - 44, - 43, - 6, - 1, - 8, - 15, - 26, - 29, - 20, - 19, - 174, - 169, - 160, - 167, - 178, - 181, - 188, - 187, - 150, - 145, - 152, - 159, - 138, - 141, - 132, - 131, - 222, - 217, - 208, - 215, - 194, - 197, - 204, - 203, - 230, - 225, - 232, - 239, - 250, - 253, - 244, - 243 - }; + public class Class149 + { + private static readonly byte[] Byte0 = + { + 0, + 7, + 14, + 9, + 28, + 27, + 18, + 21, + 56, + 63, + 54, + 49, + 36, + 35, + 42, + 45, + 112, + 119, + 126, + 121, + 108, + 107, + 98, + 101, + 72, + 79, + 70, + 65, + 84, + 83, + 90, + 93, + 224, + 231, + 238, + 233, + 252, + 251, + 242, + 245, + 216, + 223, + 214, + 209, + 196, + 195, + 202, + 205, + 144, + 151, + 158, + 153, + 140, + 139, + 130, + 133, + 168, + 175, + 166, + 161, + 180, + 179, + 186, + 189, + 199, + 192, + 201, + 206, + 219, + 220, + 213, + 210, + 255, + 248, + 241, + 246, + 227, + 228, + 237, + 234, + 183, + 176, + 185, + 190, + 171, + 172, + 165, + 162, + 143, + 136, + 129, + 134, + 147, + 148, + 157, + 154, + 39, + 32, + 41, + 46, + 59, + 60, + 53, + 50, + 31, + 24, + 17, + 22, + 3, + 4, + 13, + 10, + 87, + 80, + 89, + 94, + 75, + 76, + 69, + 66, + 111, + 104, + 97, + 102, + 115, + 116, + 125, + 122, + 137, + 142, + 135, + 128, + 149, + 146, + 155, + 156, + 177, + 182, + 191, + 184, + 173, + 170, + 163, + 164, + 249, + 254, + 247, + 240, + 229, + 226, + 235, + 236, + 193, + 198, + 207, + 200, + 221, + 218, + 211, + 212, + 105, + 110, + 103, + 96, + 117, + 114, + 123, + 124, + 81, + 86, + 95, + 88, + 77, + 74, + 67, + 68, + 25, + 30, + 23, + 16, + 5, + 2, + 11, + 12, + 33, + 38, + 47, + 40, + 61, + 58, + 51, + 52, + 78, + 73, + 64, + 71, + 82, + 85, + 92, + 91, + 118, + 113, + 120, + 127, + 106, + 109, + 100, + 99, + 62, + 57, + 48, + 55, + 34, + 37, + 44, + 43, + 6, + 1, + 8, + 15, + 26, + 29, + 20, + 19, + 174, + 169, + 160, + 167, + 178, + 181, + 188, + 187, + 150, + 145, + 152, + 159, + 138, + 141, + 132, + 131, + 222, + 217, + 208, + 215, + 194, + 197, + 204, + 203, + 230, + 225, + 232, + 239, + 250, + 253, + 244, + 243 + }; - public static byte smethod_0(byte[] byte1, int int0) - { - byte b = 0; - for (var i = 0; i < int0; i++) - { - b = Byte0[(b ^ byte1[i]) & 255]; - } - return b; - } - } -} + public static byte smethod_0(byte[] byte1, int int0) + { + byte b = 0; + for (var i = 0; i < int0; i++) + { + b = Byte0[(b ^ byte1[i]) & 255]; + } + return b; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class150.cs b/GHNamespaceL/Class150.cs index 290c9cb..839740e 100644 --- a/GHNamespaceL/Class150.cs +++ b/GHNamespaceL/Class150.cs @@ -1,271 +1,272 @@ namespace GHNamespaceL { - public class Class150 - { + public class Class150 + { //Appears to be a qb int array (like for a song) - private static readonly short[] Short0 = { - 0, - -32763, - -32753, - 10, - -32741, - 30, - 20, - -32751, - -32717, - 54, - 60, - -32711, - 40, - -32723, - -32729, - 34, - -32669, - 102, - 108, - -32663, - 120, - -32643, - -32649, - 114, - 80, - -32683, - -32673, - 90, - -32693, - 78, - 68, - -32703, - -32573, - 198, - 204, - -32567, - 216, - -32547, - -32553, - 210, - 240, - -32523, - -32513, - 250, - -32533, - 238, - 228, - -32543, - 160, - -32603, - -32593, - 170, - -32581, - 190, - 180, - -32591, - -32621, - 150, - 156, - -32615, - 136, - -32627, - -32633, - 130, - -32381, - 390, - 396, - -32375, - 408, - -32355, - -32361, - 402, - 432, - -32331, - -32321, - 442, - -32341, - 430, - 420, - -32351, - 480, - -32283, - -32273, - 490, - -32261, - 510, - 500, - -32271, - -32301, - 470, - 476, - -32295, - 456, - -32307, - -32313, - 450, - 320, - -32443, - -32433, - 330, - -32421, - 350, - 340, - -32431, - -32397, - 374, - 380, - -32391, - 360, - -32403, - -32409, - 354, - -32477, - 294, - 300, - -32471, - 312, - -32451, - -32457, - 306, - 272, - -32491, - -32481, - 282, - -32501, - 270, - 260, - -32511, - -31997, - 774, - 780, - -31991, - 792, - -31971, - -31977, - 786, - 816, - -31947, - -31937, - 826, - -31957, - 814, - 804, - -31967, - 864, - -31899, - -31889, - 874, - -31877, - 894, - 884, - -31887, - -31917, - 854, - 860, - -31911, - 840, - -31923, - -31929, - 834, - 960, - -31803, - -31793, - 970, - -31781, - 990, - 980, - -31791, - -31757, - 1014, - 1020, - -31751, - 1000, - -31763, - -31769, - 994, - -31837, - 934, - 940, - -31831, - 952, - -31811, - -31817, - 946, - 912, - -31851, - -31841, - 922, - -31861, - 910, - 900, - -31871, - 640, - -32123, - -32113, - 650, - -32101, - 670, - 660, - -32111, - -32077, - 694, - 700, - -32071, - 680, - -32083, - -32089, - 674, - -32029, - 742, - 748, - -32023, - 760, - -32003, - -32009, - 754, - 720, - -32043, - -32033, - 730, - -32053, - 718, - 708, - -32063, - -32189, - 582, - 588, - -32183, - 600, - -32163, - -32169, - 594, - 624, - -32139, - -32129, - 634, - -32149, - 622, - 612, - -32159, - 544, - -32219, - -32209, - 554, - -32197, - 574, - 564, - -32207, - -32237, - 534, - 540, - -32231, - 520, - -32243, - -32249, - 514 - }; + private static readonly short[] Short0 = + { + 0, + -32763, + -32753, + 10, + -32741, + 30, + 20, + -32751, + -32717, + 54, + 60, + -32711, + 40, + -32723, + -32729, + 34, + -32669, + 102, + 108, + -32663, + 120, + -32643, + -32649, + 114, + 80, + -32683, + -32673, + 90, + -32693, + 78, + 68, + -32703, + -32573, + 198, + 204, + -32567, + 216, + -32547, + -32553, + 210, + 240, + -32523, + -32513, + 250, + -32533, + 238, + 228, + -32543, + 160, + -32603, + -32593, + 170, + -32581, + 190, + 180, + -32591, + -32621, + 150, + 156, + -32615, + 136, + -32627, + -32633, + 130, + -32381, + 390, + 396, + -32375, + 408, + -32355, + -32361, + 402, + 432, + -32331, + -32321, + 442, + -32341, + 430, + 420, + -32351, + 480, + -32283, + -32273, + 490, + -32261, + 510, + 500, + -32271, + -32301, + 470, + 476, + -32295, + 456, + -32307, + -32313, + 450, + 320, + -32443, + -32433, + 330, + -32421, + 350, + 340, + -32431, + -32397, + 374, + 380, + -32391, + 360, + -32403, + -32409, + 354, + -32477, + 294, + 300, + -32471, + 312, + -32451, + -32457, + 306, + 272, + -32491, + -32481, + 282, + -32501, + 270, + 260, + -32511, + -31997, + 774, + 780, + -31991, + 792, + -31971, + -31977, + 786, + 816, + -31947, + -31937, + 826, + -31957, + 814, + 804, + -31967, + 864, + -31899, + -31889, + 874, + -31877, + 894, + 884, + -31887, + -31917, + 854, + 860, + -31911, + 840, + -31923, + -31929, + 834, + 960, + -31803, + -31793, + 970, + -31781, + 990, + 980, + -31791, + -31757, + 1014, + 1020, + -31751, + 1000, + -31763, + -31769, + 994, + -31837, + 934, + 940, + -31831, + 952, + -31811, + -31817, + 946, + 912, + -31851, + -31841, + 922, + -31861, + 910, + 900, + -31871, + 640, + -32123, + -32113, + 650, + -32101, + 670, + 660, + -32111, + -32077, + 694, + 700, + -32071, + 680, + -32083, + -32089, + 674, + -32029, + 742, + 748, + -32023, + 760, + -32003, + -32009, + 754, + 720, + -32043, + -32033, + 730, + -32053, + 718, + 708, + -32063, + -32189, + 582, + 588, + -32183, + 600, + -32163, + -32169, + 594, + 624, + -32139, + -32129, + 634, + -32149, + 622, + 612, + -32159, + 544, + -32219, + -32209, + 554, + -32197, + 574, + 564, + -32207, + -32237, + 534, + 540, + -32231, + 520, + -32243, + -32249, + 514 + }; - public static short smethod_0(byte byte0, short short1) - { - short1 = (short)(short1 << 8 ^ Short0[(short1 >> 8 ^ byte0) & 255]); - return short1; - } - } -} + public static short smethod_0(byte byte0, short short1) + { + short1 = (short) (short1 << 8 ^ Short0[(short1 >> 8 ^ byte0) & 255]); + return short1; + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/Class151.cs b/GHNamespaceL/Class151.cs index 54f9be8..7022cd3 100644 --- a/GHNamespaceL/Class151.cs +++ b/GHNamespaceL/Class151.cs @@ -3,44 +3,44 @@ namespace GHNamespaceL { - public class Class151 - { - public Class140 Class1400; - - public Class131[] Class1310; - - private short _short0; - - public Class151() - { - method_0(); - } - - private void method_0() - { - Class1310 = new Class131[8]; - } - - public virtual short vmethod_0() - { - return _short0; - } - - public virtual void vmethod_1(short short1) - { - _short0 = short1; - } - - public override string ToString() - { - var stringBuilder = new StringBuilder(); - stringBuilder.Append("Frame Header: " + Class1400 + "\n"); - for (var i = 0; i < Class1400.Int2; i++) - { - stringBuilder.Append("\tFrame Data " + Class1310[i] + "\n"); - } - stringBuilder.Append("\tFrame Footer: " + _short0); - return stringBuilder.ToString(); - } - } -} + public class Class151 + { + public Class140 Class1400; + + public Class131[] Class1310; + + private short _short0; + + public Class151() + { + method_0(); + } + + private void method_0() + { + Class1310 = new Class131[8]; + } + + public virtual short vmethod_0() + { + return _short0; + } + + public virtual void vmethod_1(short short1) + { + _short0 = short1; + } + + public override string ToString() + { + var stringBuilder = new StringBuilder(); + stringBuilder.Append("Frame Header: " + Class1400 + "\n"); + for (var i = 0; i < Class1400.Int2; i++) + { + stringBuilder.Append("\tFrame Data " + Class1310[i] + "\n"); + } + stringBuilder.Append("\tFrame Footer: " + _short0); + return stringBuilder.ToString(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceL/FLACStream.cs b/GHNamespaceL/FLACStream.cs index 296023f..d110278 100644 --- a/GHNamespaceL/FLACStream.cs +++ b/GHNamespaceL/FLACStream.cs @@ -11,269 +11,269 @@ namespace GHNamespaceL { - public class FlacStream : GenericAudioStream - { - private static readonly byte[] Byte0 = { - 73, - 68, - 51 - }; + public class FlacStream : GenericAudioStream + { + private static readonly byte[] Byte0 = + { + 73, + 68, + 51 + }; - private readonly Class144 _class1440; + private readonly Class144 _class1440; - private readonly Class136[] _class1360; + private readonly Class136[] _class1360; - private int _int2; + private int _int2; - private int _int3; + private int _int3; - private int _int4; + private int _int4; - private long _long0; + private long _long0; - private Class122 _class1220; + private Class122 _class1220; - private readonly Class151 _class1510 = new Class151(); + private readonly Class151 _class1510 = new Class151(); - private readonly byte[] _byte1 = new byte[2]; + private readonly byte[] _byte1 = new byte[2]; - private int _int5; + private int _int5; - private int _int6; + private int _int6; - private int _int7; - - private int _int8; - - private int _int9; - - private int _int10; - - private long _long1; - - private readonly long _long2; - - private readonly long _long3; - - private readonly long _long4; - - private Class127 _class1270; - - private int _int11; - - private bool _bool0; - - public override bool CanRead => FileStream.CanRead; - - public override bool CanSeek => FileStream.CanSeek; - - public override bool CanWrite => FileStream.CanWrite; - - public override long Length => _long2; - - public override long Position - { - get => _long1 * WaveFormat0.short_1; - set - { - _bool0 = false; - if (!method_11(value / WaveFormat0.short_1)) - { - FileStream.Position = FileStream.Length; - _class1440.vmethod_2(); - method_5(); - _long1 = (_long0 = _class1220.vmethod_3()); - _int10 = 0; - } - } - } - - public Class136[] method_0() - { - return _class1360; - } - - public FlacStream(string string0) : this(File.OpenRead(string0)) - { - } - - public FlacStream(Stream stream1) - { - _class1360 = new Class136[8]; - FileStream = stream1; - _class1440 = new Class144(stream1); - _int4 = 0; - _long0 = 0L; - method_1(); - WaveFormat0 = new WaveFormat(_class1220.vmethod_6(), _class1220.vmethod_7(), _class1220.vmethod_8()); - _long3 = FileStream.Position; - _long4 = FileStream.Length; - _long2 = _class1220.vmethod_3() * WaveFormat0.short_1; - method_5(); - } - - private Class121[] method_1() - { - method_2(); - var list = new List(10); - Class121 @class; - do - { - list.Add(@class = method_3()); - } - while (!@class.vmethod_0()); - return list.ToArray(); - } - - private void method_2() - { - var num = 0; - var i = 0; - while (i < 4) - { - var num2 = _class1440.vmethod_10(8); - if (num2 == Class145.Byte0[i]) - { - i++; - num = 0; - } - else - { - if (num2 != Byte0[num]) - { - throw new IOException("Could not find Stream Sync"); - } - num++; - i = 0; - if (num == 3) - { - method_4(); - num = 0; - } - } - } - } - - private Class121 method_3() - { - var flag = _class1440.vmethod_10(1) != 0; - var num = _class1440.vmethod_10(7); - var num2 = _class1440.vmethod_10(24); - Class121 result; - if (num == 0) - { - _class1220 = new Class122(_class1440, num2, flag); - result = _class1220; - } - else if (num == 3) - { - _class1270 = new Class127(_class1440, num2, flag); - result = _class1270; - } - else if (num == 2) - { - result = new Class124(_class1440, num2, flag); - } - else if (num == 1) - { - result = new Class128(_class1440, num2, flag); - } - else if (num == 4) - { - result = new Class129(_class1440, num2, flag); - } - else if (num == 5) - { - result = new Class125(_class1440, num2, flag); - } - else if (num == 6) - { - result = new Class123(_class1440, num2, flag); - } - else - { - result = new Class126(_class1440, num2, flag); - } - return result; - } - - private void method_4() - { - _class1440.vmethod_12(8); - _class1440.vmethod_12(8); - _class1440.vmethod_12(8); - var num = 0; - for (var i = 0; i < 4; i++) - { - var num2 = _class1440.vmethod_10(8); - num <<= 7; - num |= (num2 & 127); - } - _class1440.vmethod_15(null, num); - } - - private Class151 method_5() - { - _int10 = 0; - try - { - Class151 result; - while (true) - { - method_7(); - if (!_bool0) - { - try - { - method_8(); - result = _class1510; - return result; - } - catch (FrameDecodeException) - { - _int11++; - continue; - } - break; - } - break; - } - result = null; - return result; - } - catch (EndOfStreamException) - { - _bool0 = true; - } - return null; - } - - private void method_6(int int12, int int13) - { - if (int12 <= _int2 && int13 <= _int3) - { - return; - } - for (var i = 0; i < 8; i++) - { - _class1360[i] = null; - } - for (var j = 0; j < int13; j++) - { - _class1360[j] = new Class136(int12); - } - _int2 = int12; - _int3 = int13; - } - - private void method_7() - { - var flag = true; - if (_class1220 != null && _class1220.vmethod_3() != 0L && _long0 >= _class1220.vmethod_3()) - { - _bool0 = true; - return; - } + private int _int7; + + private int _int8; + + private int _int9; + + private int _int10; + + private long _long1; + + private readonly long _long2; + + private readonly long _long3; + + private readonly long _long4; + + private Class127 _class1270; + + private int _int11; + + private bool _bool0; + + public override bool CanRead => FileStream.CanRead; + + public override bool CanSeek => FileStream.CanSeek; + + public override bool CanWrite => FileStream.CanWrite; + + public override long Length => _long2; + + public override long Position + { + get => _long1 * WaveFormat0.short_1; + set + { + _bool0 = false; + if (!method_11(value / WaveFormat0.short_1)) + { + FileStream.Position = FileStream.Length; + _class1440.vmethod_2(); + method_5(); + _long1 = (_long0 = _class1220.vmethod_3()); + _int10 = 0; + } + } + } + + public Class136[] method_0() + { + return _class1360; + } + + public FlacStream(string string0) : this(File.OpenRead(string0)) + { + } + + public FlacStream(Stream stream1) + { + _class1360 = new Class136[8]; + FileStream = stream1; + _class1440 = new Class144(stream1); + _int4 = 0; + _long0 = 0L; + method_1(); + WaveFormat0 = new WaveFormat(_class1220.vmethod_6(), _class1220.vmethod_7(), _class1220.vmethod_8()); + _long3 = FileStream.Position; + _long4 = FileStream.Length; + _long2 = _class1220.vmethod_3() * WaveFormat0.short_1; + method_5(); + } + + private Class121[] method_1() + { + method_2(); + var list = new List(10); + Class121 @class; + do + { + list.Add(@class = method_3()); + } while (!@class.vmethod_0()); + return list.ToArray(); + } + + private void method_2() + { + var num = 0; + var i = 0; + while (i < 4) + { + var num2 = _class1440.vmethod_10(8); + if (num2 == Class145.Byte0[i]) + { + i++; + num = 0; + } + else + { + if (num2 != Byte0[num]) + { + throw new IOException("Could not find Stream Sync"); + } + num++; + i = 0; + if (num == 3) + { + method_4(); + num = 0; + } + } + } + } + + private Class121 method_3() + { + var flag = _class1440.vmethod_10(1) != 0; + var num = _class1440.vmethod_10(7); + var num2 = _class1440.vmethod_10(24); + Class121 result; + if (num == 0) + { + _class1220 = new Class122(_class1440, num2, flag); + result = _class1220; + } + else if (num == 3) + { + _class1270 = new Class127(_class1440, num2, flag); + result = _class1270; + } + else if (num == 2) + { + result = new Class124(_class1440, num2, flag); + } + else if (num == 1) + { + result = new Class128(_class1440, num2, flag); + } + else if (num == 4) + { + result = new Class129(_class1440, num2, flag); + } + else if (num == 5) + { + result = new Class125(_class1440, num2, flag); + } + else if (num == 6) + { + result = new Class123(_class1440, num2, flag); + } + else + { + result = new Class126(_class1440, num2, flag); + } + return result; + } + + private void method_4() + { + _class1440.vmethod_12(8); + _class1440.vmethod_12(8); + _class1440.vmethod_12(8); + var num = 0; + for (var i = 0; i < 4; i++) + { + var num2 = _class1440.vmethod_10(8); + num <<= 7; + num |= (num2 & 127); + } + _class1440.vmethod_15(null, num); + } + + private Class151 method_5() + { + _int10 = 0; + try + { + Class151 result; + while (true) + { + method_7(); + if (!_bool0) + { + try + { + method_8(); + result = _class1510; + return result; + } + catch (FrameDecodeException) + { + _int11++; + continue; + } + break; + } + break; + } + result = null; + return result; + } + catch (EndOfStreamException) + { + _bool0 = true; + } + return null; + } + + private void method_6(int int12, int int13) + { + if (int12 <= _int2 && int13 <= _int3) + { + return; + } + for (var i = 0; i < 8; i++) + { + _class1360[i] = null; + } + for (var j = 0; j < int13; j++) + { + _class1360[j] = new Class136(int12); + } + _int2 = int12; + _int3 = int13; + } + + private void method_7() + { + var flag = true; + if (_class1220 != null && _class1220.vmethod_3() != 0L && _long0 >= _class1220.vmethod_3()) + { + _bool0 = true; + return; + } // if (this.class144_0.vmethod_1()) // { // goto IL_5F; @@ -283,668 +283,678 @@ private void method_7() { _class1440.vmethod_10(_class1440.vmethod_4()); } - - try - { - while (true) - { - var num = _class1440.vmethod_10(8); - if (num == 255) - { - _byte1[0] = (byte)num; - num = _class1440.vmethod_11(8); - if (num >> 2 == 62) - { - break; - } - } - if (flag) - { - Console.WriteLine("FindSync LOST_SYNC: " + Convert.ToString(num & 255, 16)); - flag = false; - } - } - _byte1[1] = (byte)_class1440.vmethod_10(8); - } - catch (EndOfStreamException) - { - if (!flag) - { - Console.WriteLine("FindSync LOST_SYNC: Left over data in file"); - } - } - } - - private void method_8() - { - var num = Class150.smethod_0(_byte1[0], 0); - num = Class150.smethod_0(_byte1[1], num); - _class1440.vmethod_3(num); - try - { - _class1510.Class1400 = new Class140(_class1440, _byte1, _class1220); - } - catch (BadHeaderException arg) - { - Console.WriteLine("Found bad header: " + arg); - throw new FrameDecodeException("Bad Frame Header: " + arg); - } - method_6(_class1510.Class1400.Int0, _class1510.Class1400.Int2); - for (var i = 0; i < _class1510.Class1400.Int2; i++) - { - var num2 = _class1510.Class1400.Int4; - switch (_class1510.Class1400.Int3) - { - case 1: - if (i == 1) - { - num2++; - } - break; - case 2: - if (i == 0) - { - num2++; - } - break; - case 3: - if (i == 1) - { - num2++; - } - break; - } - try - { - method_9(i, num2); - } - catch (IOException ex) - { - Console.WriteLine("ReadSubframe: " + ex); - throw ex; - } - } - method_10(); - num = _class1440.vmethod_0(); - _class1510.vmethod_1((short)_class1440.vmethod_10(16)); - if (num == _class1510.vmethod_0()) - { - switch (_class1510.Class1400.Int3) - { - case 1: - for (var j = 0; j < _class1510.Class1400.Int0; j++) - { - _class1360[1].vmethod_0()[j] = _class1360[0].vmethod_0()[j] - _class1360[1].vmethod_0()[j]; - } - break; - case 2: - for (var j = 0; j < _class1510.Class1400.Int0; j++) - { - _class1360[0].vmethod_0()[j] += _class1360[1].vmethod_0()[j]; - } - break; - case 3: - for (var j = 0; j < _class1510.Class1400.Int0; j++) - { - var num3 = _class1360[0].vmethod_0()[j]; - var num4 = _class1360[1].vmethod_0()[j]; - num3 <<= 1; - if ((num4 & 1) != 0) - { - num3++; - } - var num5 = num3 + num4; - var num6 = num3 - num4; - _class1360[0].vmethod_0()[j] = num5 >> 1; - _class1360[1].vmethod_0()[j] = num6 >> 1; - } - break; - } - } - else - { - Console.WriteLine("CRC Error: " + Convert.ToString(num & 65535, 16) + " vs " + Convert.ToString(_class1510.vmethod_0() & 65535, 16)); - for (var i = 0; i < _class1510.Class1400.Int2; i++) - { - for (var k = 0; k < _class1510.Class1400.Int0; k++) - { - _class1360[i].vmethod_0()[k] = 0; - } - } - } - _int5 = _class1510.Class1400.Int2; - _int6 = _class1510.Class1400.Int3; - _int7 = _class1510.Class1400.Int4; - _int8 = _class1510.Class1400.Int1; - _int9 = _class1510.Class1400.Int0; - _long0 += _class1510.Class1400.Int0; - } - - private void method_9(int int12, int int13) - { - var num = _class1440.vmethod_10(8); - var flag = (num & 1) != 0; - num &= 254; - var num2 = 0; - if (flag) - { - num2 = _class1440.vmethod_16() + 1; - int13 -= num2; - } - if ((num & 128) != 0) - { - Console.WriteLine("ReadSubframe LOST_SYNC: " + Convert.ToString(num & 255, 16)); - throw new FrameDecodeException("ReadSubframe LOST_SYNC: " + Convert.ToString(num & 255, 16)); - } - switch (num) - { - case 0: - _class1510.Class1310[int12] = new Class132(_class1440, _class1510.Class1400, _class1360[int12], int13, num2); - goto IL_1AB; - case 2: - _class1510.Class1310[int12] = new Class133(_class1440, _class1510.Class1400, _class1360[int12], int13, num2); - goto IL_1AB; - } - if (num < 16) - { - throw new FrameDecodeException("ReadSubframe Bad Subframe Type: " + Convert.ToString(num & 255, 16)); - } - if (num <= 24) - { - _class1510.Class1310[int12] = new Class134(_class1440, _class1510.Class1400, _class1360[int12], int13, num2, num >> 1 & 7); - } - else - { - if (num < 64) - { - throw new FrameDecodeException("ReadSubframe Bad Subframe Type: " + Convert.ToString(num & 255, 16)); - } - _class1510.Class1310[int12] = new Class135(_class1440, _class1510.Class1400, _class1360[int12], int13, num2, (num >> 1 & 31) + 1); - } - IL_1AB: - if (flag) - { - num = _class1510.Class1310[int12].vmethod_0(); - for (var i = 0; i < _class1510.Class1400.Int0; i++) - { - _class1360[int12].vmethod_0()[i] <<= num; - } - } - } - - private void method_10() - { - if (!_class1440.vmethod_1()) - { - var num = _class1440.vmethod_10(_class1440.vmethod_4()); - if (num != 0) - { - Console.WriteLine("ZeroPaddingError: " + Convert.ToString(num, 16)); - throw new FrameDecodeException("ZeroPaddingError: " + Convert.ToString(num, 16)); - } - } - } - - public bool method_11(long long5) - { - if (long5 == 0L) - { - FileStream.Position = _long3; - _class1440.vmethod_2(); - _int10 = 0; - _long0 = 0L; - _long1 = 0L; - method_5(); - return true; - } - var num = _class1220.vmethod_3(); - var num2 = _class1220.vmethod_2(); - var num3 = _class1220.vmethod_1(); - var num4 = _class1220.vmethod_5(); - var num5 = _class1220.vmethod_4(); - var num6 = _class1510.Class1400.Int2; - var num7 = _class1510.Class1400.Int4; - if (num6 == 0) - { - num6 = _class1220.vmethod_8(); - } - if (num7 == 0) - { - num7 = _class1220.vmethod_7(); - } - int num8; - if (num5 > 0) - { - num8 = (num5 + num4) / 2 + 1; - } - else if (num2 == num3 && num2 > 0) - { - num8 = num2 * num6 * num7 / 8 + 64; - } - else - { - num8 = 4096 * num6 * num7 / 8 + 64; - } - var num9 = _long3; - var num10 = 0L; - var num11 = _long4; - var num12 = (num > 0L) ? num : long5; - if (_class1270 != null) - { - var num13 = num9; - var num14 = num11; - var num15 = num10; - var num16 = num12; - var num17 = _class1270.vmethod_1(); - var num18 = num17 - 1; - while (num18 >= 0 && (_class1270.Class1420[num18].Long0 <= -1L || _class1270.Class1420[num18].Int0 <= 0 || (num > 0L && _class1270.Class1420[num18].Long0 >= num) || _class1270.Class1420[num18].Long0 > long5)) - { - num18--; - } - if (num18 >= 0) - { - num13 = _long3 + _class1270.Class1420[num18].Long1; - num15 = _class1270.Class1420[num18].Long0; - } - num18 = 0; - while (num18 < num17 && (_class1270.Class1420[num18].Long0 <= -1L || _class1270.Class1420[num18].Int0 <= 0 || (num > 0L && _class1270.Class1420[num18].Long0 >= num) || _class1270.Class1420[num18].Long0 <= long5)) - { - num18++; - } - if (num18 < num17) - { - num14 = _long3 + _class1270.Class1420[num18].Long1; - num16 = _class1270.Class1420[num18].Long0; - } - if (num14 >= num13) - { - num9 = num13; - num11 = num14; - num10 = num15; - num12 = num16; - } - } - if (num12 == num10) - { - num12 += 1L; - } - var flag = true; - while (num10 < num12 && num9 <= num11) - { - var num19 = num9 + (long)((long5 - num10) / (double)(num12 - num10) * (num11 - num9)) - num8; - if (num19 >= num11) - { - num19 = num11 - 1L; - } - if (num19 < num9) - { - FileStream.Position = num19; - _class1440.vmethod_2(); - for (var i = 0; i < 10; i++) - { - if (method_5() == null) - { - return false; - } - if (_class1510.Class1400.Long0 <= long5 && _class1510.Class1400.Long0 + _class1510.Class1400.Int0 > long5) - { - _long0 = _class1510.Class1400.Long0 + _class1510.Class1400.Int0; - _int10 = (int)(long5 - _class1510.Class1400.Long0); - _long1 = long5; - return true; - } - } - return false; - } - FileStream.Position = num19; - _class1440.vmethod_2(); - if (method_5() == null) - { - return false; - } - var num20 = _class1510.Class1400.Long0; - if (num20 <= long5 && num20 + _class1510.Class1400.Int0 > long5) - { - _long0 = num20 + _class1510.Class1400.Int0; - _int10 = (int)(long5 - num20); - _long1 = long5; - return true; - } - if (0L != num20 && (num20 + _class1510.Class1400.Int0 < num12 || !flag)) - { - flag = false; - if (num20 < num10) - { - return false; - } - if (long5 < num20) - { - num12 = num20 + _class1510.Class1400.Int0; - num11 = FileStream.Position; - num8 = (int)(2L * (num11 - num19) / 3L + 16L); - } - else - { - num10 = num20 + _class1510.Class1400.Int0; - num9 = FileStream.Position; - num8 = (int)(2L * (num9 - num19) / 3L + 16L); - } - } - else - { - if (num19 == num9) - { - return false; - } - num8 = ((num8 != 0) ? (num8 * 2) : 16); - } - } - return false; - } - - public override void Flush() - { - FileStream.Flush(); - } - - public override void SetLength(long value) - { - throw new NotSupportedException(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotSupportedException(); - } - - public override void Close() - { - _class1440.vmethod_2(); - FileStream.Close(); - } + + try + { + while (true) + { + var num = _class1440.vmethod_10(8); + if (num == 255) + { + _byte1[0] = (byte) num; + num = _class1440.vmethod_11(8); + if (num >> 2 == 62) + { + break; + } + } + if (flag) + { + Console.WriteLine("FindSync LOST_SYNC: " + Convert.ToString(num & 255, 16)); + flag = false; + } + } + _byte1[1] = (byte) _class1440.vmethod_10(8); + } + catch (EndOfStreamException) + { + if (!flag) + { + Console.WriteLine("FindSync LOST_SYNC: Left over data in file"); + } + } + } + + private void method_8() + { + var num = Class150.smethod_0(_byte1[0], 0); + num = Class150.smethod_0(_byte1[1], num); + _class1440.vmethod_3(num); + try + { + _class1510.Class1400 = new Class140(_class1440, _byte1, _class1220); + } + catch (BadHeaderException arg) + { + Console.WriteLine("Found bad header: " + arg); + throw new FrameDecodeException("Bad Frame Header: " + arg); + } + method_6(_class1510.Class1400.Int0, _class1510.Class1400.Int2); + for (var i = 0; i < _class1510.Class1400.Int2; i++) + { + var num2 = _class1510.Class1400.Int4; + switch (_class1510.Class1400.Int3) + { + case 1: + if (i == 1) + { + num2++; + } + break; + case 2: + if (i == 0) + { + num2++; + } + break; + case 3: + if (i == 1) + { + num2++; + } + break; + } + try + { + method_9(i, num2); + } + catch (IOException ex) + { + Console.WriteLine("ReadSubframe: " + ex); + throw ex; + } + } + method_10(); + num = _class1440.vmethod_0(); + _class1510.vmethod_1((short) _class1440.vmethod_10(16)); + if (num == _class1510.vmethod_0()) + { + switch (_class1510.Class1400.Int3) + { + case 1: + for (var j = 0; j < _class1510.Class1400.Int0; j++) + { + _class1360[1].vmethod_0()[j] = _class1360[0].vmethod_0()[j] - _class1360[1].vmethod_0()[j]; + } + break; + case 2: + for (var j = 0; j < _class1510.Class1400.Int0; j++) + { + _class1360[0].vmethod_0()[j] += _class1360[1].vmethod_0()[j]; + } + break; + case 3: + for (var j = 0; j < _class1510.Class1400.Int0; j++) + { + var num3 = _class1360[0].vmethod_0()[j]; + var num4 = _class1360[1].vmethod_0()[j]; + num3 <<= 1; + if ((num4 & 1) != 0) + { + num3++; + } + var num5 = num3 + num4; + var num6 = num3 - num4; + _class1360[0].vmethod_0()[j] = num5 >> 1; + _class1360[1].vmethod_0()[j] = num6 >> 1; + } + break; + } + } + else + { + Console.WriteLine("CRC Error: " + Convert.ToString(num & 65535, 16) + " vs " + + Convert.ToString(_class1510.vmethod_0() & 65535, 16)); + for (var i = 0; i < _class1510.Class1400.Int2; i++) + { + for (var k = 0; k < _class1510.Class1400.Int0; k++) + { + _class1360[i].vmethod_0()[k] = 0; + } + } + } + _int5 = _class1510.Class1400.Int2; + _int6 = _class1510.Class1400.Int3; + _int7 = _class1510.Class1400.Int4; + _int8 = _class1510.Class1400.Int1; + _int9 = _class1510.Class1400.Int0; + _long0 += _class1510.Class1400.Int0; + } + + private void method_9(int int12, int int13) + { + var num = _class1440.vmethod_10(8); + var flag = (num & 1) != 0; + num &= 254; + var num2 = 0; + if (flag) + { + num2 = _class1440.vmethod_16() + 1; + int13 -= num2; + } + if ((num & 128) != 0) + { + Console.WriteLine("ReadSubframe LOST_SYNC: " + Convert.ToString(num & 255, 16)); + throw new FrameDecodeException("ReadSubframe LOST_SYNC: " + Convert.ToString(num & 255, 16)); + } + switch (num) + { + case 0: + _class1510.Class1310[int12] = new Class132(_class1440, _class1510.Class1400, _class1360[int12], + int13, num2); + goto IL_1AB; + case 2: + _class1510.Class1310[int12] = new Class133(_class1440, _class1510.Class1400, _class1360[int12], + int13, num2); + goto IL_1AB; + } + if (num < 16) + { + throw new FrameDecodeException("ReadSubframe Bad Subframe Type: " + Convert.ToString(num & 255, 16)); + } + if (num <= 24) + { + _class1510.Class1310[int12] = new Class134(_class1440, _class1510.Class1400, _class1360[int12], int13, + num2, num >> 1 & 7); + } + else + { + if (num < 64) + { + throw new FrameDecodeException("ReadSubframe Bad Subframe Type: " + + Convert.ToString(num & 255, 16)); + } + _class1510.Class1310[int12] = new Class135(_class1440, _class1510.Class1400, _class1360[int12], int13, + num2, (num >> 1 & 31) + 1); + } + IL_1AB: + if (flag) + { + num = _class1510.Class1310[int12].vmethod_0(); + for (var i = 0; i < _class1510.Class1400.Int0; i++) + { + _class1360[int12].vmethod_0()[i] <<= num; + } + } + } + + private void method_10() + { + if (!_class1440.vmethod_1()) + { + var num = _class1440.vmethod_10(_class1440.vmethod_4()); + if (num != 0) + { + Console.WriteLine("ZeroPaddingError: " + Convert.ToString(num, 16)); + throw new FrameDecodeException("ZeroPaddingError: " + Convert.ToString(num, 16)); + } + } + } + + public bool method_11(long long5) + { + if (long5 == 0L) + { + FileStream.Position = _long3; + _class1440.vmethod_2(); + _int10 = 0; + _long0 = 0L; + _long1 = 0L; + method_5(); + return true; + } + var num = _class1220.vmethod_3(); + var num2 = _class1220.vmethod_2(); + var num3 = _class1220.vmethod_1(); + var num4 = _class1220.vmethod_5(); + var num5 = _class1220.vmethod_4(); + var num6 = _class1510.Class1400.Int2; + var num7 = _class1510.Class1400.Int4; + if (num6 == 0) + { + num6 = _class1220.vmethod_8(); + } + if (num7 == 0) + { + num7 = _class1220.vmethod_7(); + } + int num8; + if (num5 > 0) + { + num8 = (num5 + num4) / 2 + 1; + } + else if (num2 == num3 && num2 > 0) + { + num8 = num2 * num6 * num7 / 8 + 64; + } + else + { + num8 = 4096 * num6 * num7 / 8 + 64; + } + var num9 = _long3; + var num10 = 0L; + var num11 = _long4; + var num12 = (num > 0L) ? num : long5; + if (_class1270 != null) + { + var num13 = num9; + var num14 = num11; + var num15 = num10; + var num16 = num12; + var num17 = _class1270.vmethod_1(); + var num18 = num17 - 1; + while (num18 >= 0 && (_class1270.Class1420[num18].Long0 <= -1L || + _class1270.Class1420[num18].Int0 <= 0 || + (num > 0L && _class1270.Class1420[num18].Long0 >= num) || + _class1270.Class1420[num18].Long0 > long5)) + { + num18--; + } + if (num18 >= 0) + { + num13 = _long3 + _class1270.Class1420[num18].Long1; + num15 = _class1270.Class1420[num18].Long0; + } + num18 = 0; + while (num18 < num17 && (_class1270.Class1420[num18].Long0 <= -1L || + _class1270.Class1420[num18].Int0 <= 0 || + (num > 0L && _class1270.Class1420[num18].Long0 >= num) || + _class1270.Class1420[num18].Long0 <= long5)) + { + num18++; + } + if (num18 < num17) + { + num14 = _long3 + _class1270.Class1420[num18].Long1; + num16 = _class1270.Class1420[num18].Long0; + } + if (num14 >= num13) + { + num9 = num13; + num11 = num14; + num10 = num15; + num12 = num16; + } + } + if (num12 == num10) + { + num12 += 1L; + } + var flag = true; + while (num10 < num12 && num9 <= num11) + { + var num19 = num9 + (long) ((long5 - num10) / (double) (num12 - num10) * (num11 - num9)) - num8; + if (num19 >= num11) + { + num19 = num11 - 1L; + } + if (num19 < num9) + { + FileStream.Position = num19; + _class1440.vmethod_2(); + for (var i = 0; i < 10; i++) + { + if (method_5() == null) + { + return false; + } + if (_class1510.Class1400.Long0 <= long5 && + _class1510.Class1400.Long0 + _class1510.Class1400.Int0 > long5) + { + _long0 = _class1510.Class1400.Long0 + _class1510.Class1400.Int0; + _int10 = (int) (long5 - _class1510.Class1400.Long0); + _long1 = long5; + return true; + } + } + return false; + } + FileStream.Position = num19; + _class1440.vmethod_2(); + if (method_5() == null) + { + return false; + } + var num20 = _class1510.Class1400.Long0; + if (num20 <= long5 && num20 + _class1510.Class1400.Int0 > long5) + { + _long0 = num20 + _class1510.Class1400.Int0; + _int10 = (int) (long5 - num20); + _long1 = long5; + return true; + } + if (0L != num20 && (num20 + _class1510.Class1400.Int0 < num12 || !flag)) + { + flag = false; + if (num20 < num10) + { + return false; + } + if (long5 < num20) + { + num12 = num20 + _class1510.Class1400.Int0; + num11 = FileStream.Position; + num8 = (int) (2L * (num11 - num19) / 3L + 16L); + } + else + { + num10 = num20 + _class1510.Class1400.Int0; + num9 = FileStream.Position; + num8 = (int) (2L * (num9 - num19) / 3L + 16L); + } + } + else + { + if (num19 == num9) + { + return false; + } + num8 = ((num8 != 0) ? (num8 * 2) : 16); + } + } + return false; + } + + public override void Flush() + { + FileStream.Flush(); + } + + public override void SetLength(long value) + { + throw new NotSupportedException(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotSupportedException(); + } + + public override void Close() + { + _class1440.vmethod_2(); + FileStream.Close(); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Close(); - } - } - - public override void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - public override int vmethod_3(IntPtr intptr0, int int12) - { - if (_bool0) - { - return 0; - } - var array = new byte[int12]; - var num = Read(array, 0, int12); - if (num == 0) - { - return 0; - } - Marshal.Copy(array, 0, intptr0, num); - return num; - } - - public override int Read(byte[] buffer, int offset, int count) - { - if (_bool0) - { - return 0; - } - var num = offset; - var num2 = offset + count; - int short_ = WaveFormat0.short_0; - var num3 = WaveFormat0.short_2 / 8; - int short2 = WaveFormat0.short_1; - do - { - var num4 = _class1510.Class1400.Int0 - _int10; - if (num4 > 0) - { - if (num4 * short2 > num2 - num) - { - num4 = (num2 - num) / short2; - } - for (var i = 0; i < short_; i++) - { - var array = method_0()[i].vmethod_0(); - if (WaveFormat0.short_2 == 8) - { - var j = _int10; - var num5 = num + i; - var num6 = j + num4; - while (j < num6) - { - buffer[num5] = (byte)(array[j] + 128); - j++; - num5 += short2; - } - } - else - { - var k = _int10 << 2; - var num7 = num + num3 * i; - var num8 = k + (num4 << 2); - while (k < num8) - { - Buffer.BlockCopy(array, k, buffer, num7, num3); - k += 4; - num7 += short2; - } - } - } - _long1 += num4; - _int10 += num4; - num += num4 * short2; - if (num >= num2) - { - break; - } - } - } - while (method_5() != null); - return num - offset; - } - - public override int vmethod_4(float[] float0, int int12, int int13) - { - if (_bool0) - { - return 0; - } - var num = int12; - var num2 = int12 + int13; - int short_ = WaveFormat0.short_0; - do - { - var num3 = _class1510.Class1400.Int0 - _int10; - if (num3 > 0) - { - if (num3 > num2 - num) - { - num3 = num2 - num; - } - for (var i = 0; i < short_; i++) - { - var array = method_0()[i].vmethod_0(); - var short2 = WaveFormat0.short_2; - if (short2 <= 16) - { - if (short2 != 8) - { - if (short2 == 16) - { - var j = _int10; - var num4 = num + i; - while (j < num3) - { - float0[num4] = Class11.smethod_7((short)array[j]); - j++; - num4 += short_; - } - } - } - else - { - var k = _int10; - var num5 = num + i; - while (k < num3) - { - float0[num5] = Class11.smethod_3((byte)array[k]); - k++; - num5 += short_; - } - } - } - else if (short2 != 24) - { - if (short2 == 32) - { - var l = _int10; - var num6 = num + i; - while (l < num3) - { - float0[num6] = Class11.smethod_15(array[l]); - l++; - num6 += short_; - } - } - } - else - { - var m = _int10; - var num7 = num + i; - while (m < num3) - { - float0[num7] = Class11.smethod_11(Struct8.smethod_1(array[m])); - m++; - num7 += short_; - } - } - } - _long1 += num3; - _int10 += num3; - num += num3 * short_; - if (num >= num2) - { - break; - } - } - } - while (method_5() != null); - return num - int12; - } - - public override float[][] vmethod_5(int int12) - { - if (_bool0) - { - return null; - } - var array = new float[WaveFormat0.short_0][]; - for (var i = 0; i < array.Length; i++) - { - array[i] = new float[int12]; - } - var num = 0; - do - { - var num2 = _class1510.Class1400.Int0 - _int10; - if (num2 > 0) - { - if (num2 > int12 - num) - { - num2 = int12 - num; - } - for (var j = 0; j < array.Length; j++) - { - var array2 = array[j]; - var array3 = method_0()[j].vmethod_0(); - var short_ = WaveFormat0.short_2; - if (short_ <= 16) - { - if (short_ != 8) - { - if (short_ == 16) - { - var k = num; - var num3 = _int10; - while (k < num2) - { - array2[k] = Class11.smethod_7((short)array3[num3]); - k++; - num3++; - } - } - } - else - { - var l = num; - var num4 = _int10; - while (l < num2) - { - array2[l] = Class11.smethod_3((byte)array3[num4]); - l++; - num4++; - } - } - } - else if (short_ != 24) - { - if (short_ == 32) - { - var m = num; - var num5 = _int10; - while (m < num2) - { - array2[m] = Class11.smethod_15(array3[num5]); - m++; - num5++; - } - } - } - else - { - var n = num; - var num6 = _int10; - while (n < num2) - { - array2[n] = Class11.smethod_11(Struct8.smethod_1(array3[num6])); - n++; - num6++; - } - } - } - num += num2; - _long1 += num2; - _int10 += num2; - if (num >= int12) - { - break; - } - } - } - while (method_5() != null); - if (num == 0) - { - return null; - } - if (num < int12) - { - for (var num7 = 0; num7 < array.Length; num7++) - { - Array.Resize(ref array[num7], num); - } - } - return array; - } - } -} + { + if (disposing) + { + Close(); + } + } + + public override void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + public override int vmethod_3(IntPtr intptr0, int int12) + { + if (_bool0) + { + return 0; + } + var array = new byte[int12]; + var num = Read(array, 0, int12); + if (num == 0) + { + return 0; + } + Marshal.Copy(array, 0, intptr0, num); + return num; + } + + public override int Read(byte[] buffer, int offset, int count) + { + if (_bool0) + { + return 0; + } + var num = offset; + var num2 = offset + count; + int short_ = WaveFormat0.short_0; + var num3 = WaveFormat0.short_2 / 8; + int short2 = WaveFormat0.short_1; + do + { + var num4 = _class1510.Class1400.Int0 - _int10; + if (num4 > 0) + { + if (num4 * short2 > num2 - num) + { + num4 = (num2 - num) / short2; + } + for (var i = 0; i < short_; i++) + { + var array = method_0()[i].vmethod_0(); + if (WaveFormat0.short_2 == 8) + { + var j = _int10; + var num5 = num + i; + var num6 = j + num4; + while (j < num6) + { + buffer[num5] = (byte) (array[j] + 128); + j++; + num5 += short2; + } + } + else + { + var k = _int10 << 2; + var num7 = num + num3 * i; + var num8 = k + (num4 << 2); + while (k < num8) + { + Buffer.BlockCopy(array, k, buffer, num7, num3); + k += 4; + num7 += short2; + } + } + } + _long1 += num4; + _int10 += num4; + num += num4 * short2; + if (num >= num2) + { + break; + } + } + } while (method_5() != null); + return num - offset; + } + + public override int vmethod_4(float[] float0, int int12, int int13) + { + if (_bool0) + { + return 0; + } + var num = int12; + var num2 = int12 + int13; + int short_ = WaveFormat0.short_0; + do + { + var num3 = _class1510.Class1400.Int0 - _int10; + if (num3 > 0) + { + if (num3 > num2 - num) + { + num3 = num2 - num; + } + for (var i = 0; i < short_; i++) + { + var array = method_0()[i].vmethod_0(); + var short2 = WaveFormat0.short_2; + if (short2 <= 16) + { + if (short2 != 8) + { + if (short2 == 16) + { + var j = _int10; + var num4 = num + i; + while (j < num3) + { + float0[num4] = Class11.smethod_7((short) array[j]); + j++; + num4 += short_; + } + } + } + else + { + var k = _int10; + var num5 = num + i; + while (k < num3) + { + float0[num5] = Class11.smethod_3((byte) array[k]); + k++; + num5 += short_; + } + } + } + else if (short2 != 24) + { + if (short2 == 32) + { + var l = _int10; + var num6 = num + i; + while (l < num3) + { + float0[num6] = Class11.smethod_15(array[l]); + l++; + num6 += short_; + } + } + } + else + { + var m = _int10; + var num7 = num + i; + while (m < num3) + { + float0[num7] = Class11.smethod_11(Struct8.smethod_1(array[m])); + m++; + num7 += short_; + } + } + } + _long1 += num3; + _int10 += num3; + num += num3 * short_; + if (num >= num2) + { + break; + } + } + } while (method_5() != null); + return num - int12; + } + + public override float[][] vmethod_5(int int12) + { + if (_bool0) + { + return null; + } + var array = new float[WaveFormat0.short_0][]; + for (var i = 0; i < array.Length; i++) + { + array[i] = new float[int12]; + } + var num = 0; + do + { + var num2 = _class1510.Class1400.Int0 - _int10; + if (num2 > 0) + { + if (num2 > int12 - num) + { + num2 = int12 - num; + } + for (var j = 0; j < array.Length; j++) + { + var array2 = array[j]; + var array3 = method_0()[j].vmethod_0(); + var short_ = WaveFormat0.short_2; + if (short_ <= 16) + { + if (short_ != 8) + { + if (short_ == 16) + { + var k = num; + var num3 = _int10; + while (k < num2) + { + array2[k] = Class11.smethod_7((short) array3[num3]); + k++; + num3++; + } + } + } + else + { + var l = num; + var num4 = _int10; + while (l < num2) + { + array2[l] = Class11.smethod_3((byte) array3[num4]); + l++; + num4++; + } + } + } + else if (short_ != 24) + { + if (short_ == 32) + { + var m = num; + var num5 = _int10; + while (m < num2) + { + array2[m] = Class11.smethod_15(array3[num5]); + m++; + num5++; + } + } + } + else + { + var n = num; + var num6 = _int10; + while (n < num2) + { + array2[n] = Class11.smethod_11(Struct8.smethod_1(array3[num6])); + n++; + num6++; + } + } + } + num += num2; + _long1 += num2; + _int10 += num2; + if (num >= int12) + { + break; + } + } + } while (method_5() != null); + if (num == 0) + { + return null; + } + if (num < int12) + { + for (var num7 = 0; num7 < array.Length; num7++) + { + Array.Resize(ref array[num7], num); + } + } + return array; + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/AudioManager.cs b/GHNamespaceM/AudioManager.cs index 24be215..db0ab97 100644 --- a/GHNamespaceM/AudioManager.cs +++ b/GHNamespaceM/AudioManager.cs @@ -14,221 +14,223 @@ namespace GHNamespaceM { - public class AudioManager : IDisposable - { - private readonly List _list0; + public class AudioManager : IDisposable + { + private readonly List _list0; - public AudioManager() - { - _list0 = new List(); - } + public AudioManager() + { + _list0 = new List(); + } - public static IPlayableAudio LoadPlayableAudio(Enum25 enum250, GenericAudioStream audioStream) - { + public static IPlayableAudio LoadPlayableAudio(Enum25 enum250, GenericAudioStream audioStream) + { switch (enum250) - { - case Enum25.Const1: - return new WaveOutput(audioStream); - case Enum25.Const2: - return new Mp3Output(audioStream); - case Enum25.Const3: - return new WaveOutput(audioStream); - case Enum25.Const5: - return new WaveOutput(audioStream); - } + { + case Enum25.Const1: + return new WaveOutput(audioStream); + case Enum25.Const2: + return new Mp3Output(audioStream); + case Enum25.Const3: + return new WaveOutput(audioStream); + case Enum25.Const5: + return new WaveOutput(audioStream); + } var flag = Type.GetType("Mono.Runtime") != null; - var platform = (int)Environment.OSVersion.Platform; + var platform = (int) Environment.OSVersion.Platform; switch (platform) - { - case 0: - case 1: - case 2: - case 3: - { - IPlayableAudio result; - try - { - result = new WaveOutput(audioStream); - } - catch - { - result = new OggOutput(audioStream); - } - return result; - } - case 4: - case 6: - goto IL_F4; - case 5: - break; - default: - if (platform == 128) - { - goto IL_F4; - } - break; - } - throw new PlatformNotSupportedException(string.Concat(flag ? "" : "Not ", "Running Mono. PlatformID: ", (int)Environment.OSVersion.Platform, " | ", Environment.OSVersion.Platform)); - IL_F4: - return new Class117(audioStream); - } + { + case 0: + case 1: + case 2: + case 3: + { + IPlayableAudio result; + try + { + result = new WaveOutput(audioStream); + } + catch + { + result = new OggOutput(audioStream); + } + return result; + } + case 4: + case 6: + goto IL_F4; + case 5: + break; + default: + if (platform == 128) + { + goto IL_F4; + } + break; + } + throw new PlatformNotSupportedException(string.Concat(flag ? "" : "Not ", "Running Mono. PlatformID: ", + (int) Environment.OSVersion.Platform, " | ", Environment.OSVersion.Platform)); + IL_F4: + return new Class117(audioStream); + } - public static AudioTypeEnum smethod_1(string fileName) - { - var fileInfo = new FileInfo(fileName); - string fileExtension; - switch (fileExtension = fileInfo.Extension.ToLower()) - { - case ".mp3": - return AudioTypeEnum.Const1; - case ".ogg": - return AudioTypeEnum.Const2; - case ".wav": - return AudioTypeEnum.Const3; - case ".flac": - return AudioTypeEnum.Const4; - case ".ac3": - return AudioTypeEnum.Const5; - case ".fsb": - return AudioTypeEnum.Const6; - case ".vgs": - return AudioTypeEnum.Const7; - case ".vag": - return AudioTypeEnum.Const8; - case ".msv": - return AudioTypeEnum.Const9; - case ".imf": - return AudioTypeEnum.Const10; - } - return AudioTypeEnum.Const0; - } + public static AudioTypeEnum smethod_1(string fileName) + { + var fileInfo = new FileInfo(fileName); + string fileExtension; + switch (fileExtension = fileInfo.Extension.ToLower()) + { + case ".mp3": + return AudioTypeEnum.Const1; + case ".ogg": + return AudioTypeEnum.Const2; + case ".wav": + return AudioTypeEnum.Const3; + case ".flac": + return AudioTypeEnum.Const4; + case ".ac3": + return AudioTypeEnum.Const5; + case ".fsb": + return AudioTypeEnum.Const6; + case ".vgs": + return AudioTypeEnum.Const7; + case ".vag": + return AudioTypeEnum.Const8; + case ".msv": + return AudioTypeEnum.Const9; + case ".imf": + return AudioTypeEnum.Const10; + } + return AudioTypeEnum.Const0; + } - public static Class16 smethod_2(string string0) - { - Class16 result; - using (var stream = GetAudioStream(string0)) - { - result = stream.vmethod_1(); - } - return result; - } + public static Class16 smethod_2(string string0) + { + Class16 result; + using (var stream = GetAudioStream(string0)) + { + result = stream.vmethod_1(); + } + return result; + } - public static Class16 smethod_3(Stream stream0) - { - var position = stream0.Position; - Class16 result; - try - { - result = smethod_5(stream0).vmethod_1(); - } - finally - { - stream0.Position = position; - } - return result; - } + public static Class16 smethod_3(Stream stream0) + { + var position = stream0.Position; + Class16 result; + try + { + result = smethod_5(stream0).vmethod_1(); + } + finally + { + stream0.Position = position; + } + return result; + } - public static GenericAudioStream GetAudioStream(string fileName) - { + public static GenericAudioStream GetAudioStream(string fileName) + { var fileInfo = new FileInfo(fileName); - string fileExtension; + string fileExtension; if ((fileExtension = fileInfo.Extension.ToLower()) != null) - { - if (fileExtension == ".mp3") - { - return new Mp3Stream(fileName); - } - if (fileExtension == ".ogg") - { + { + if (fileExtension == ".mp3") + { + return new Mp3Stream(fileName); + } + if (fileExtension == ".ogg") + { return new OggStream(fileName); } - if (fileExtension == ".wav") - { - return new WavStream(fileName); - } - if (fileExtension == ".flac") - { - MessageBox.Show("FLACs are current broken, will fix later", "FLAC Info", MessageBoxButtons.OK, MessageBoxIcon.Information); + if (fileExtension == ".wav") + { + return new WavStream(fileName); + } + if (fileExtension == ".flac") + { + MessageBox.Show("FLACs are current broken, will fix later", "FLAC Info", MessageBoxButtons.OK, + MessageBoxIcon.Information); return null; - } - if (fileExtension == ".ac3") - { - return new Ac3Stream(fileName); - } - if (fileExtension == ".fsb") - { - return new FsbStream(fileName); - } - } + } + if (fileExtension == ".ac3") + { + return new Ac3Stream(fileName); + } + if (fileExtension == ".fsb") + { + return new FsbStream(fileName); + } + } throw new NotSupportedException("Audio Engine: " + fileName); - } + } - public static GenericAudioStream smethod_5(Stream audioStream) - { - var position = audioStream.Position; - var array = new byte[4]; - audioStream.Read(array, 0, 4); - audioStream.Position = position; - if (array[0] == 255 && array[1] >= 240) - { - return new Mp3Stream(audioStream); - } - if (array[0] == 11 && array[1] == 119) - { - return new Ac3Stream(audioStream); - } - string @string; - if ((@string = Encoding.UTF8.GetString(array, 0, 3)) != null) - { - if (@string == "Ogg") - { - return new OggStream(audioStream); - } - if (@string == "RIF") - { - return new WavStream(audioStream); - } - if (@string == "ID3") - { - return new Mp3Stream(audioStream); - } - if (@string == "fLa") - { - return new FlacStream(audioStream); - } - if (@string == "FSB") - { - return new FsbStream(audioStream); - } - } - try - { - return new FsbStream(audioStream); - } - catch - { - audioStream.Position = position; - } - throw new NotSupportedException("Audio Engine: " + audioStream); - } + public static GenericAudioStream smethod_5(Stream audioStream) + { + var position = audioStream.Position; + var array = new byte[4]; + audioStream.Read(array, 0, 4); + audioStream.Position = position; + if (array[0] == 255 && array[1] >= 240) + { + return new Mp3Stream(audioStream); + } + if (array[0] == 11 && array[1] == 119) + { + return new Ac3Stream(audioStream); + } + string @string; + if ((@string = Encoding.UTF8.GetString(array, 0, 3)) != null) + { + if (@string == "Ogg") + { + return new OggStream(audioStream); + } + if (@string == "RIF") + { + return new WavStream(audioStream); + } + if (@string == "ID3") + { + return new Mp3Stream(audioStream); + } + if (@string == "fLa") + { + return new FlacStream(audioStream); + } + if (@string == "FSB") + { + return new FsbStream(audioStream); + } + } + try + { + return new FsbStream(audioStream); + } + catch + { + audioStream.Position = position; + } + throw new NotSupportedException("Audio Engine: " + audioStream); + } - ~AudioManager() - { - method_0(false); - } + ~AudioManager() + { + method_0(false); + } - public void method_0(bool bool0) - { - foreach (var current in _list0) - { - current.Dispose(); - } - } + public void method_0(bool bool0) + { + foreach (var current in _list0) + { + current.Dispose(); + } + } - public void Dispose() - { - method_0(true); - GC.SuppressFinalize(this); - } - } -} + public void Dispose() + { + method_0(true); + GC.SuppressFinalize(this); + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/AudioTypeEnum.cs b/GHNamespaceM/AudioTypeEnum.cs index 4da270a..204d63b 100644 --- a/GHNamespaceM/AudioTypeEnum.cs +++ b/GHNamespaceM/AudioTypeEnum.cs @@ -1,17 +1,17 @@ namespace GHNamespaceM { - public enum AudioTypeEnum - { - Const0, - Const1, - Const2, - Const3, - Const4, - Const5, - Const6, - Const7, - Const8, - Const9, - Const10 - } -} + public enum AudioTypeEnum + { + Const0, + Const1, + Const2, + Const3, + Const4, + Const5, + Const6, + Const7, + Const8, + Const9, + Const10 + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class168.cs b/GHNamespaceM/Class168.cs index c80d798..f0e2a68 100644 --- a/GHNamespaceM/Class168.cs +++ b/GHNamespaceM/Class168.cs @@ -3,90 +3,95 @@ namespace GHNamespaceM { - public class Class168 : IDisposable - { - public string FileName; + public class Class168 : IDisposable + { + public string FileName; - public uint Uint0; + public uint Uint0; - public uint Uint1; + public uint Uint1; - public uint Uint2; + public uint Uint2; - public FsbFlags2 Enum220; + public FsbFlags2 Enum220; - public int Int0; + public int Int0; - public ushort Ushort0; + public ushort Ushort0; - public short Short0; + public short Short0; - public float Float0 = -1f; + public float Float0 = -1f; - public float Float1 = 1f; + public float Float1 = 1f; - public ushort Ushort1; + public ushort Ushort1; - public uint Uint3; + public uint Uint3; - public float Float2; + public float Float2; - public float Float3; + public float Float3; - public int Int1; + public int Int1; - public short Short1; + public short Short1; - public short Short2; + public short Short2; - public Stream Stream0; + public Stream Stream0; - public Stream Stream1; + public Stream Stream1; - public Class168() - { - FileName = ""; - Uint0 = 0u; - Uint1 = 0u; - Uint2 = 0u; - Enum220 = FsbFlags2.Flag33; - Int0 = 0; - Ushort0 = 255; - Short0 = -1; - Ushort1 = 128; - Uint3 = 2u; - Float2 = 1f; - Float3 = 10000f; - Int1 = 0; - Short1 = 0; - Short2 = 0; - Stream0 = Stream.Null; - Stream1 = Stream.Null; - } + public Class168() + { + FileName = ""; + Uint0 = 0u; + Uint1 = 0u; + Uint2 = 0u; + Enum220 = FsbFlags2.Flag33; + Int0 = 0; + Ushort0 = 255; + Short0 = -1; + Ushort1 = 128; + Uint3 = 2u; + Float2 = 1f; + Float3 = 10000f; + Int1 = 0; + Short1 = 0; + Short2 = 0; + Stream0 = Stream.Null; + Stream1 = Stream.Null; + } - public override string ToString() - { - return string.Concat("FsbSubFile:\nName = ", FileName, "\nNumSamples = ", Uint0, "\nLoopStartPoint = ", Uint1, "\nLoopEndPoint = ", Uint2, "\nFlags = ", Enum220, "\nFrequency = ", Int0, "\nVolume = ", Ushort0, "\nPan = ", Short0, "\nPriority = ", Ushort1, "\nNumChannels = ", Uint3, "\nMinDistance = ", Float2, "\nMaxDistance = ", Float3, "\nFrequencyVariation = ", Int1, "\nVolumeVariation = ", Short1, "\nPanVariation = ", Short2, "\nExtraData.Length = ", Stream0.Length, "\nAudioData.Length = ", Stream1.Length, "\n"); - } + public override string ToString() + { + return string.Concat("FsbSubFile:\nName = ", FileName, "\nNumSamples = ", Uint0, "\nLoopStartPoint = ", + Uint1, "\nLoopEndPoint = ", Uint2, "\nFlags = ", Enum220, "\nFrequency = ", Int0, "\nVolume = ", + Ushort0, "\nPan = ", Short0, "\nPriority = ", Ushort1, "\nNumChannels = ", Uint3, "\nMinDistance = ", + Float2, "\nMaxDistance = ", Float3, "\nFrequencyVariation = ", Int1, "\nVolumeVariation = ", Short1, + "\nPanVariation = ", Short2, "\nExtraData.Length = ", Stream0.Length, "\nAudioData.Length = ", + Stream1.Length, "\n"); + } - ~Class168() - { - method_0(false); - } + ~Class168() + { + method_0(false); + } - public void Dispose() - { - method_0(true); - GC.SuppressFinalize(this); - } + public void Dispose() + { + method_0(true); + GC.SuppressFinalize(this); + } - public void method_0(bool bool0) - { - if (bool0) - { - Stream0.Dispose(); - Stream1.Dispose(); - } - } - } -} + public void method_0(bool bool0) + { + if (bool0) + { + Stream0.Dispose(); + Stream1.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class169.cs b/GHNamespaceM/Class169.cs index 1fbfa86..b97c688 100644 --- a/GHNamespaceM/Class169.cs +++ b/GHNamespaceM/Class169.cs @@ -3,14 +3,14 @@ namespace GHNamespaceM { - [CompilerGenerated] - public class Class169 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] - public struct Struct68 - { - } + [CompilerGenerated] + public class Class169 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 256)] + public struct Struct68 + { + } - public static Struct68 Struct680; - } -} + public static Struct68 Struct680; + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class171.cs b/GHNamespaceM/Class171.cs index 5ca3fc6..f3c0012 100644 --- a/GHNamespaceM/Class171.cs +++ b/GHNamespaceM/Class171.cs @@ -3,9 +3,9 @@ namespace GHNamespaceM { - [CompilerGenerated] - public class Class171 - { - public static Dictionary Dictionary0; - } -} + [CompilerGenerated] + public class Class171 + { + public static Dictionary Dictionary0; + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class172.cs b/GHNamespaceM/Class172.cs index 1e71e09..982022b 100644 --- a/GHNamespaceM/Class172.cs +++ b/GHNamespaceM/Class172.cs @@ -3,17 +3,17 @@ namespace GHNamespaceM { - public abstract class Class172 : INterface5 - { - public abstract void vmethod_0(Class13 class130); + public abstract class Class172 : INterface5 + { + public abstract void vmethod_0(Class13 class130); - public void imethod_0(Class13[] class130) - { - for (var i = 0; i < class130.Length; i++) - { - var class13 = class130[i]; - vmethod_0(class13); - } - } - } -} + public void imethod_0(Class13[] class130) + { + for (var i = 0; i < class130.Length; i++) + { + var class13 = class130[i]; + vmethod_0(class13); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class175.cs b/GHNamespaceM/Class175.cs index 904de8f..8eb2e85 100644 --- a/GHNamespaceM/Class175.cs +++ b/GHNamespaceM/Class175.cs @@ -3,23 +3,23 @@ namespace GHNamespaceM { - public abstract class Class175 : INterface5 - { - public abstract void vmethod_0(Class13 class130); + public abstract class Class175 : INterface5 + { + public abstract void vmethod_0(Class13 class130); - public abstract void vmethod_1(Class13 class130, Class13 class131); + public abstract void vmethod_1(Class13 class130, Class13 class131); - public void imethod_0(Class13[] class130) - { - if (class130.Length == 1) - { - vmethod_0(class130[0]); - return; - } - for (var i = 1; i < class130.Length; i++) - { - vmethod_1(class130[0], class130[i]); - } - } - } -} + public void imethod_0(Class13[] class130) + { + if (class130.Length == 1) + { + vmethod_0(class130[0]); + return; + } + for (var i = 1; i < class130.Length; i++) + { + vmethod_1(class130[0], class130[i]); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class176.cs b/GHNamespaceM/Class176.cs index dc11d52..e031922 100644 --- a/GHNamespaceM/Class176.cs +++ b/GHNamespaceM/Class176.cs @@ -3,16 +3,16 @@ namespace GHNamespaceM { - public abstract class Class176 : INterface5 - { - public abstract void vmethod_0(Class13 class130, Class13 class131); + public abstract class Class176 : INterface5 + { + public abstract void vmethod_0(Class13 class130, Class13 class131); - public void imethod_0(Class13[] class130) - { - for (var i = 0; i < class130.Length; i += 2) - { - vmethod_0(class130[i], class130[i + 1]); - } - } - } -} + public void imethod_0(Class13[] class130) + { + for (var i = 0; i < class130.Length; i += 2) + { + vmethod_0(class130[i], class130[i + 1]); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Class177.cs b/GHNamespaceM/Class177.cs index fc05dd2..22666cf 100644 --- a/GHNamespaceM/Class177.cs +++ b/GHNamespaceM/Class177.cs @@ -3,16 +3,16 @@ namespace GHNamespaceM { - public abstract class Class177 : INterface5 - { - public abstract void vmethod_0(Class13 class130, Class13 class131, Class13 class132); + public abstract class Class177 : INterface5 + { + public abstract void vmethod_0(Class13 class130, Class13 class131, Class13 class132); - public void imethod_0(Class13[] class130) - { - for (var i = 0; i < class130.Length; i += 3) - { - vmethod_0(class130[i], class130[i + 1], class130[i + 2]); - } - } - } -} + public void imethod_0(Class13[] class130) + { + for (var i = 0; i < class130.Length; i += 3) + { + vmethod_0(class130[i], class130[i + 1], class130[i + 2]); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Enum25.cs b/GHNamespaceM/Enum25.cs index 12f5863..4c7dda3 100644 --- a/GHNamespaceM/Enum25.cs +++ b/GHNamespaceM/Enum25.cs @@ -1,15 +1,15 @@ namespace GHNamespaceM { - public enum Enum25 - { - Const0, - Const1, - Const2, - Const3, - Const4, - Const5, - Const6, - Const7, - Const8 - } -} + public enum Enum25 + { + Const0, + Const1, + Const2, + Const3, + Const4, + Const5, + Const6, + Const7, + Const8 + } +} \ No newline at end of file diff --git a/GHNamespaceM/Exception4.cs b/GHNamespaceM/Exception4.cs index d4a01fb..ea8b421 100644 --- a/GHNamespaceM/Exception4.cs +++ b/GHNamespaceM/Exception4.cs @@ -3,34 +3,34 @@ namespace GHNamespaceM { - public class Exception4 : Exception - { - private readonly Enum18 _enum180; + public class Exception4 : Exception + { + private readonly Enum18 _enum180; - private string _string0; + private string _string0; - public Exception4(Enum18 enum181, string string1) : base(smethod_0(enum181, string1)) - { - _enum180 = enum181; - _string0 = string1; - } + public Exception4(Enum18 enum181, string string1) : base(smethod_0(enum181, string1)) + { + _enum180 = enum181; + _string0 = string1; + } - private static string smethod_0(Enum18 enum181, string string1) - { - return string.Format("{0} calling {1}", enum181, string1); - } + private static string smethod_0(Enum18 enum181, string string1) + { + return string.Format("{0} calling {1}", enum181, string1); + } - public static void smethod_1(Enum18 enum181, string string1) - { - if (enum181 != Enum18.Const0) - { - throw new Exception4(enum181, string1); - } - } + public static void smethod_1(Enum18 enum181, string string1) + { + if (enum181 != Enum18.Const0) + { + throw new Exception4(enum181, string1); + } + } - public Enum18 method_0() - { - return _enum180; - } - } -} + public Enum18 method_0() + { + return _enum180; + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Exception5.cs b/GHNamespaceM/Exception5.cs index 777b1ea..202efbc 100644 --- a/GHNamespaceM/Exception5.cs +++ b/GHNamespaceM/Exception5.cs @@ -2,10 +2,10 @@ namespace GHNamespaceM { - public class Exception5 : Exception - { - public Exception5(string string0) : base(string0) - { - } - } -} + public class Exception5 : Exception + { + public Exception5(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBClass1.cs b/GHNamespaceM/FSBClass1.cs index 541fc80..4966b15 100644 --- a/GHNamespaceM/FSBClass1.cs +++ b/GHNamespaceM/FSBClass1.cs @@ -5,633 +5,638 @@ namespace GHNamespaceM { - public class FsbClass1 : IDisposable - { - private enum Enum23 - { - Const0, - Const1, - Const2, - Const3 - } - - private List _list0; - - public FsbEnum1 Enum200; - - public FsbFlags1 Enum210; - - public byte[] Byte0; - - private Stream _stream0; - - private Enum23 method_0(int int0) - { - if (Enum200 == FsbEnum1.Const0) - { - return Enum23.Const0; - } - if (Enum200 == FsbEnum1.Const1) - { - return Enum23.Const1; - } - if ((Enum210 & FsbFlags1.Flag2) != FsbFlags1.Flag0 && int0 != 0) - { - return Enum23.Const3; - } - if (Enum200 == FsbEnum1.Const2) - { - return Enum23.Const1; - } - if (Enum200 != FsbEnum1.Const3) - { - if (Enum200 != FsbEnum1.Const4) - { - throw new Exception5("Unknown version \"" + Enum200 + "\""); - } - } - return Enum23.Const2; - } - - public static FsbClass1 smethod_0(Stream stream1) - { - var @class = new FsbClass1(); - var position = stream1.Position; - try - { - @class.method_1(stream1); - } - catch - { - stream1.Position = position; - var stream = new FsbClass2(stream1); - @class = new FsbClass1(); - @class.method_1(stream); - @class.Byte0 = stream.Byte0; - } - @class._stream0 = stream1; - return @class; - } - - public static FsbClass1 smethod_1(Stream stream1, byte[] byte1) - { - var @class = new FsbClass1(); - @class.method_1(new FsbClass2(stream1, byte1)); - @class.Byte0 = byte1; - @class._stream0 = stream1; - return @class; - } - - private void method_1(Stream stream1) - { - var binaryReader = new BinaryReader(stream1); - int int_; - long long_; - uint num; - method_2(binaryReader, out int_, out long_, out num); - method_7(binaryReader, int_, long_); - } - - private void method_2(BinaryReader inputBin, out int numSubFiles, out long dataOffset, out uint allDataSize) - { - var @string = Encoding.UTF8.GetString(inputBin.ReadBytes(4)); - string a; - if ((a = @string) != null) - { - uint num; - if (!(a == "FSB1")) - { - if (!(a == "FSB2")) - { - if (!(a == "FSB3")) - { - if (!(a == "FSB4")) - { - goto IL_83; - } - method_6(inputBin, out numSubFiles, out num, out allDataSize); - } - else - { - method_5(inputBin, out numSubFiles, out num, out allDataSize); - } - } - else - { - method_4(inputBin, out numSubFiles, out num, out allDataSize); - } - } - else - { - method_3(inputBin, out numSubFiles, out num, out allDataSize); - } - dataOffset = inputBin.BaseStream.Position + num; - return; - } - IL_83: - throw new Exception5("Invalid Fsb version magic string."); - } - - private void method_3(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, out uint allDataSize) - { - Enum200 = FsbEnum1.Const0; - allDataSize = inputBin.ReadUInt32(); - numSubFiles = inputBin.ReadInt32(); - inputBin.ReadInt32(); - Enum210 = FsbFlags1.Flag0; - subFileHdrsSize = (uint)(numSubFiles * 64); - } - - private void method_4(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, out uint allDataSize) - { - Enum200 = FsbEnum1.Const1; - numSubFiles = inputBin.ReadInt32(); - subFileHdrsSize = inputBin.ReadUInt32(); - allDataSize = inputBin.ReadUInt32(); - } - - private void method_5(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, out uint allDataSize) - { - method_4(inputBin, out numSubFiles, out subFileHdrsSize, out allDataSize); - Enum200 = method_15(inputBin.ReadUInt32()); - Enum210 = (FsbFlags1)inputBin.ReadUInt32(); - } - - private void method_6(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, out uint allDataSize) - { - method_5(inputBin, out numSubFiles, out subFileHdrsSize, out allDataSize); - inputBin.ReadBytes(8); - inputBin.ReadBytes(16); - } - - private void method_7(BinaryReader binaryReader0, int int0, long long0) - { - var num = long0; - for (var i = 0; i < int0; i++) - { - Class168 @class = null; - var num2 = 0u; - switch (method_0(i)) - { - case Enum23.Const0: - @class = method_8(binaryReader0, out num2); - break; - case Enum23.Const1: - @class = method_9(binaryReader0, out num2); - break; - case Enum23.Const2: - @class = method_12(binaryReader0, out num2); - break; - case Enum23.Const3: - @class = smethod_2(binaryReader0, out num2, method_33()[0]); - break; - } - method_33().Add(@class); - @class.Stream1 = new Stream18(binaryReader0.BaseStream, num, num2); - num += num2; - } - } - - private Class168 method_8(BinaryReader inputBin, out uint dataSize) - { - var @class = new Class168(); - @class.FileName = method_14(inputBin.ReadBytes(32)); - @class.Uint0 = inputBin.ReadUInt32(); - dataSize = inputBin.ReadUInt32(); - @class.Int0 = inputBin.ReadInt32(); - @class.Ushort1 = inputBin.ReadUInt16(); - @class.Uint3 = inputBin.ReadUInt16(); - @class.Ushort0 = inputBin.ReadUInt16(); - @class.Short0 = inputBin.ReadInt16(); - @class.Enum220 = (FsbFlags2)inputBin.ReadUInt32(); - @class.Uint1 = inputBin.ReadUInt32(); - @class.Uint2 = inputBin.ReadUInt32(); - return @class; - } - - private Class168 method_9(BinaryReader inputBin, out uint dataSize) - { - uint num; - var @class = method_10(inputBin, out dataSize, out num); - method_11(inputBin, @class, num - 64u); - return @class; - } - - private Class168 method_10(BinaryReader inputBin, out uint dataSize, out uint hdrSize) - { - var @class = new Class168(); - hdrSize = inputBin.ReadUInt16(); - @class.FileName = method_14(inputBin.ReadBytes(30)); - @class.Uint0 = inputBin.ReadUInt32(); - dataSize = inputBin.ReadUInt32(); - @class.Uint1 = inputBin.ReadUInt32(); - @class.Uint2 = inputBin.ReadUInt32(); - @class.Enum220 = (FsbFlags2)inputBin.ReadUInt32(); - @class.Int0 = inputBin.ReadInt32(); - @class.Ushort0 = inputBin.ReadUInt16(); - @class.Short0 = inputBin.ReadInt16(); - @class.Ushort1 = inputBin.ReadUInt16(); - @class.Uint3 = inputBin.ReadUInt16(); - return @class; - } - - private void method_11(BinaryReader binaryReader0, Class168 class1680, uint uint0) - { - class1680.Stream0 = new Stream18(binaryReader0.BaseStream, binaryReader0.BaseStream.Position, uint0); - } - - private Class168 method_12(BinaryReader inputBin, out uint dataSize) - { - uint num; - var @class = method_13(inputBin, out dataSize, out num); - method_11(inputBin, @class, num - 80u); - return @class; - } - - private Class168 method_13(BinaryReader inputBin, out uint dataSize, out uint hdrSize) - { - var @class = method_10(inputBin, out dataSize, out hdrSize); - @class.Float2 = inputBin.ReadSingle(); - @class.Float3 = inputBin.ReadSingle(); - Console.WriteLine(inputBin.BaseStream.Position); - @class.Int1 = inputBin.ReadInt32(); - Console.WriteLine(@class.Int1); - @class.Short1 = inputBin.ReadInt16(); - @class.Short2 = inputBin.ReadInt16(); - return @class; - } - - private static Class168 smethod_2(BinaryReader inputBin, out uint dataSize, Class168 firstFile) - { - var @class = new Class168(); - @class.Uint0 = inputBin.ReadUInt32(); - dataSize = inputBin.ReadUInt32(); - Console.WriteLine(inputBin.BaseStream.Position); - @class.FileName = firstFile.FileName; - @class.Uint1 = firstFile.Uint1; - @class.Uint2 = firstFile.Uint2; - @class.Enum220 = firstFile.Enum220; - @class.Int0 = firstFile.Int0; - @class.Ushort0 = firstFile.Ushort0; - @class.Short0 = firstFile.Short0; - @class.Ushort1 = firstFile.Ushort1; - @class.Uint3 = firstFile.Uint3; - @class.Float2 = firstFile.Float2; - @class.Float3 = firstFile.Float3; - @class.Int1 = firstFile.Int1; - @class.Short1 = firstFile.Short1; - @class.Short2 = firstFile.Short2; - @class.Stream0 = firstFile.Stream0; - return @class; - } - - private string method_14(byte[] byte1) - { - var num = Array.IndexOf(byte1, 0); - if (num == -1) - { - num = byte1.Length; - } - return Encoding.UTF8.GetString(byte1, 0, num); - } - - private FsbEnum1 method_15(uint uint0) - { - switch (uint0) - { - case 196608u: - return FsbEnum1.Const2; - case 196609u: - return FsbEnum1.Const3; - default: - if (uint0 != 262144u) - { - throw new Exception5("Invalid FsbFileVersion integer."); - } - return FsbEnum1.Const4; - } - } - - public void method_16(string string0) - { - using (Stream stream = File.OpenWrite(string0)) - { - method_17(stream); - } - } - - public void method_17(Stream stream1) - { - if (Byte0 != null) - { - stream1 = new FsbClass2(stream1, Byte0); - } - var binaryWriter = new BinaryWriter(stream1); - method_18(binaryWriter); - method_24(binaryWriter); - method_32(binaryWriter); - } - - private void method_18(BinaryWriter binaryWriter0) - { - switch (Enum200) - { - case FsbEnum1.Const0: - binaryWriter0.Write(smethod_8("FSB1", 4)); - method_19(binaryWriter0); - return; - case FsbEnum1.Const1: - binaryWriter0.Write(smethod_8("FSB2", 4)); - method_20(binaryWriter0); - return; - case FsbEnum1.Const2: - case FsbEnum1.Const3: - binaryWriter0.Write(smethod_8("FSB3", 4)); - method_21(binaryWriter0); - return; - case FsbEnum1.Const4: - binaryWriter0.Write(smethod_8("FSB4", 4)); - method_22(binaryWriter0); - return; - default: - return; - } - } - - private void method_19(BinaryWriter binaryWriter0) - { - binaryWriter0.Write(method_33().Count); - binaryWriter0.Write(method_31()); - binaryWriter0.Write(0); - } - - private void method_20(BinaryWriter binaryWriter0) - { - binaryWriter0.Write(method_33().Count); - binaryWriter0.Write(method_30()); - binaryWriter0.Write(method_31()); - } - - private void method_21(BinaryWriter binaryWriter0) - { - method_20(binaryWriter0); - binaryWriter0.Write(smethod_9(Enum200)); - binaryWriter0.Write((uint)Enum210); - } - - private void method_22(BinaryWriter binaryWriter0) - { - method_21(binaryWriter0); - var buffer = new byte[8]; - var bytes = Encoding.UTF8.GetBytes("CreatedByFSBTool"); - binaryWriter0.Write(buffer); - binaryWriter0.Write(bytes); - } - - private int method_23() - { - switch (Enum200) - { - case FsbEnum1.Const0: - return 16; - case FsbEnum1.Const1: - return 16; - case FsbEnum1.Const2: - case FsbEnum1.Const3: - return 24; - case FsbEnum1.Const4: - return 48; - default: - throw new Exception5("Invalid Fsb Version."); - } - } - - private void method_24(BinaryWriter binaryWriter0) - { - for (var i = 0; i < method_33().Count; i++) - { - switch (method_0(i)) - { - case Enum23.Const0: - method_25(binaryWriter0, method_33()[i]); - break; - case Enum23.Const1: - method_26(binaryWriter0, method_33()[i]); - break; - case Enum23.Const2: - method_28(binaryWriter0, method_33()[i]); - break; - case Enum23.Const3: - smethod_3(binaryWriter0, method_33()[i]); - break; - } - } - while ((binaryWriter0.BaseStream.Position & 15L) != 0L) - { - binaryWriter0.Write(0); - } - } - - private void method_25(BinaryWriter binaryWriter0, Class168 class1680) - { - binaryWriter0.Write(smethod_8(class1680.FileName, 32)); - binaryWriter0.Write(class1680.Uint0); - binaryWriter0.Write((uint)class1680.Stream1.Length); - binaryWriter0.Write(class1680.Int0); - binaryWriter0.Write(class1680.Ushort1); - binaryWriter0.Write((ushort)class1680.Uint3); - binaryWriter0.Write(class1680.Ushort0); - binaryWriter0.Write(class1680.Short0); - binaryWriter0.Write((uint)class1680.Enum220); - binaryWriter0.Write(class1680.Uint1); - binaryWriter0.Write(class1680.Uint2); - } - - private void method_26(BinaryWriter binaryWriter0, Class168 class1680) - { - method_27(binaryWriter0, class1680, smethod_5(class1680)); - StreamHelper.CopyStream(binaryWriter0.BaseStream, class1680.Stream0); - } - - private void method_27(BinaryWriter binaryWriter0, Class168 class1680, int int0) - { - binaryWriter0.Write((ushort)int0); - binaryWriter0.Write(smethod_8(class1680.FileName, 30)); - binaryWriter0.Write(class1680.Uint0); - binaryWriter0.Write((uint)class1680.Stream1.Length); - binaryWriter0.Write(class1680.Uint1); - binaryWriter0.Write(class1680.Uint2); - binaryWriter0.Write((uint)class1680.Enum220); - binaryWriter0.Write(class1680.Int0); - binaryWriter0.Write(class1680.Ushort0); - binaryWriter0.Write(class1680.Short0); - binaryWriter0.Write(class1680.Ushort1); - binaryWriter0.Write((ushort)class1680.Uint3); - } - - private void method_28(BinaryWriter binaryWriter0, Class168 class1680) - { - method_29(binaryWriter0, class1680, smethod_6(class1680)); - StreamHelper.CopyStream(binaryWriter0.BaseStream, class1680.Stream0); - } - - private void method_29(BinaryWriter binaryWriter0, Class168 class1680, int int0) - { - method_27(binaryWriter0, class1680, int0); - binaryWriter0.Write(class1680.Float2); - binaryWriter0.Write(class1680.Float3); - binaryWriter0.Write(class1680.Int1); - binaryWriter0.Write(class1680.Short1); - binaryWriter0.Write(class1680.Short2); - } - - private static void smethod_3(BinaryWriter binaryWriter0, Class168 class1680) - { - binaryWriter0.Write(class1680.Uint0); - binaryWriter0.Write((uint)class1680.Stream1.Length); - } - - private static int smethod_4(Class168 class1680) - { - return 64; - } - - private static int smethod_5(Class168 class1680) - { - return 64 + (int)class1680.Stream0.Length; - } - - private static int smethod_6(Class168 class1680) - { - return 80 + (int)class1680.Stream0.Length; - } - - private static int smethod_7(Class168 class1680) - { - return 8; - } - - private int method_30() - { - var num = method_23(); - for (var i = 0; i < method_33().Count; i++) - { - switch (method_0(i)) - { - case Enum23.Const0: - num += smethod_4(method_33()[i]); - break; - case Enum23.Const1: - num += smethod_5(method_33()[i]); - break; - case Enum23.Const2: - num += smethod_6(method_33()[i]); - break; - case Enum23.Const3: - num += smethod_7(method_33()[i]); - break; - } - } - num = (num + 15 & -16); - return num - method_23(); - } - - private int method_31() - { - var num = 0; - for (var i = 0; i < method_33().Count; i++) - { - num += (int)method_33()[i].Stream1.Length; - } - return num; - } - - private static byte[] smethod_8(string string0, int int0) - { - if (int0 < 0) - { - int0 = string0.Length + 1; - } - var bytes = Encoding.UTF8.GetBytes(string0); - Array.Resize(ref bytes, int0); - return bytes; - } - - private static uint smethod_9(FsbEnum1 enum201) - { - switch (enum201) - { - case FsbEnum1.Const2: - return 196608u; - case FsbEnum1.Const3: - return 196609u; - case FsbEnum1.Const4: - return 262144u; - default: - throw new Exception5("Invalid FsbFileVersion"); - } - } - - private void method_32(BinaryWriter binaryWriter0) - { - for (var i = 0; i < method_33().Count; i++) - { - StreamHelper.CopyStream(binaryWriter0.BaseStream, method_33()[i].Stream1); - } - } - - public List method_33() - { - return _list0; - } - - private void method_34(List list1) - { - _list0 = list1; - } - - public FsbClass1() - { - method_34(new List()); - Enum200 = FsbEnum1.Const3; - Enum210 = FsbFlags1.Flag0; - } - - public override string ToString() - { - var text = string.Concat("FsbFile:\nVersion = ", Enum200, "\nFlags = ", Enum210, "\nSubFiles.Count = ", method_33().Count, "\n"); - foreach (var current in method_33()) - { - text += current; - } - return text; - } - - ~FsbClass1() - { - method_35(false); - } - - public void Dispose() - { - method_35(true); - GC.SuppressFinalize(this); - } - - public void method_35(bool bool0) - { - if (!bool0) - { - return; - } - if (_stream0 != null) - { - _stream0.Close(); - } - foreach (var current in method_33()) - { - current.Dispose(); - } - } - } -} + public class FsbClass1 : IDisposable + { + private enum Enum23 + { + Const0, + Const1, + Const2, + Const3 + } + + private List _list0; + + public FsbEnum1 Enum200; + + public FsbFlags1 Enum210; + + public byte[] Byte0; + + private Stream _stream0; + + private Enum23 method_0(int int0) + { + if (Enum200 == FsbEnum1.Const0) + { + return Enum23.Const0; + } + if (Enum200 == FsbEnum1.Const1) + { + return Enum23.Const1; + } + if ((Enum210 & FsbFlags1.Flag2) != FsbFlags1.Flag0 && int0 != 0) + { + return Enum23.Const3; + } + if (Enum200 == FsbEnum1.Const2) + { + return Enum23.Const1; + } + if (Enum200 != FsbEnum1.Const3) + { + if (Enum200 != FsbEnum1.Const4) + { + throw new Exception5("Unknown version \"" + Enum200 + "\""); + } + } + return Enum23.Const2; + } + + public static FsbClass1 smethod_0(Stream stream1) + { + var @class = new FsbClass1(); + var position = stream1.Position; + try + { + @class.method_1(stream1); + } + catch + { + stream1.Position = position; + var stream = new FsbClass2(stream1); + @class = new FsbClass1(); + @class.method_1(stream); + @class.Byte0 = stream.Byte0; + } + @class._stream0 = stream1; + return @class; + } + + public static FsbClass1 smethod_1(Stream stream1, byte[] byte1) + { + var @class = new FsbClass1(); + @class.method_1(new FsbClass2(stream1, byte1)); + @class.Byte0 = byte1; + @class._stream0 = stream1; + return @class; + } + + private void method_1(Stream stream1) + { + var binaryReader = new BinaryReader(stream1); + int int_; + long long_; + uint num; + method_2(binaryReader, out int_, out long_, out num); + method_7(binaryReader, int_, long_); + } + + private void method_2(BinaryReader inputBin, out int numSubFiles, out long dataOffset, out uint allDataSize) + { + var @string = Encoding.UTF8.GetString(inputBin.ReadBytes(4)); + string a; + if ((a = @string) != null) + { + uint num; + if (!(a == "FSB1")) + { + if (!(a == "FSB2")) + { + if (!(a == "FSB3")) + { + if (!(a == "FSB4")) + { + goto IL_83; + } + method_6(inputBin, out numSubFiles, out num, out allDataSize); + } + else + { + method_5(inputBin, out numSubFiles, out num, out allDataSize); + } + } + else + { + method_4(inputBin, out numSubFiles, out num, out allDataSize); + } + } + else + { + method_3(inputBin, out numSubFiles, out num, out allDataSize); + } + dataOffset = inputBin.BaseStream.Position + num; + return; + } + IL_83: + throw new Exception5("Invalid Fsb version magic string."); + } + + private void method_3(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, + out uint allDataSize) + { + Enum200 = FsbEnum1.Const0; + allDataSize = inputBin.ReadUInt32(); + numSubFiles = inputBin.ReadInt32(); + inputBin.ReadInt32(); + Enum210 = FsbFlags1.Flag0; + subFileHdrsSize = (uint) (numSubFiles * 64); + } + + private void method_4(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, + out uint allDataSize) + { + Enum200 = FsbEnum1.Const1; + numSubFiles = inputBin.ReadInt32(); + subFileHdrsSize = inputBin.ReadUInt32(); + allDataSize = inputBin.ReadUInt32(); + } + + private void method_5(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, + out uint allDataSize) + { + method_4(inputBin, out numSubFiles, out subFileHdrsSize, out allDataSize); + Enum200 = method_15(inputBin.ReadUInt32()); + Enum210 = (FsbFlags1) inputBin.ReadUInt32(); + } + + private void method_6(BinaryReader inputBin, out int numSubFiles, out uint subFileHdrsSize, + out uint allDataSize) + { + method_5(inputBin, out numSubFiles, out subFileHdrsSize, out allDataSize); + inputBin.ReadBytes(8); + inputBin.ReadBytes(16); + } + + private void method_7(BinaryReader binaryReader0, int int0, long long0) + { + var num = long0; + for (var i = 0; i < int0; i++) + { + Class168 @class = null; + var num2 = 0u; + switch (method_0(i)) + { + case Enum23.Const0: + @class = method_8(binaryReader0, out num2); + break; + case Enum23.Const1: + @class = method_9(binaryReader0, out num2); + break; + case Enum23.Const2: + @class = method_12(binaryReader0, out num2); + break; + case Enum23.Const3: + @class = smethod_2(binaryReader0, out num2, method_33()[0]); + break; + } + method_33().Add(@class); + @class.Stream1 = new Stream18(binaryReader0.BaseStream, num, num2); + num += num2; + } + } + + private Class168 method_8(BinaryReader inputBin, out uint dataSize) + { + var @class = new Class168(); + @class.FileName = method_14(inputBin.ReadBytes(32)); + @class.Uint0 = inputBin.ReadUInt32(); + dataSize = inputBin.ReadUInt32(); + @class.Int0 = inputBin.ReadInt32(); + @class.Ushort1 = inputBin.ReadUInt16(); + @class.Uint3 = inputBin.ReadUInt16(); + @class.Ushort0 = inputBin.ReadUInt16(); + @class.Short0 = inputBin.ReadInt16(); + @class.Enum220 = (FsbFlags2) inputBin.ReadUInt32(); + @class.Uint1 = inputBin.ReadUInt32(); + @class.Uint2 = inputBin.ReadUInt32(); + return @class; + } + + private Class168 method_9(BinaryReader inputBin, out uint dataSize) + { + uint num; + var @class = method_10(inputBin, out dataSize, out num); + method_11(inputBin, @class, num - 64u); + return @class; + } + + private Class168 method_10(BinaryReader inputBin, out uint dataSize, out uint hdrSize) + { + var @class = new Class168(); + hdrSize = inputBin.ReadUInt16(); + @class.FileName = method_14(inputBin.ReadBytes(30)); + @class.Uint0 = inputBin.ReadUInt32(); + dataSize = inputBin.ReadUInt32(); + @class.Uint1 = inputBin.ReadUInt32(); + @class.Uint2 = inputBin.ReadUInt32(); + @class.Enum220 = (FsbFlags2) inputBin.ReadUInt32(); + @class.Int0 = inputBin.ReadInt32(); + @class.Ushort0 = inputBin.ReadUInt16(); + @class.Short0 = inputBin.ReadInt16(); + @class.Ushort1 = inputBin.ReadUInt16(); + @class.Uint3 = inputBin.ReadUInt16(); + return @class; + } + + private void method_11(BinaryReader binaryReader0, Class168 class1680, uint uint0) + { + class1680.Stream0 = new Stream18(binaryReader0.BaseStream, binaryReader0.BaseStream.Position, uint0); + } + + private Class168 method_12(BinaryReader inputBin, out uint dataSize) + { + uint num; + var @class = method_13(inputBin, out dataSize, out num); + method_11(inputBin, @class, num - 80u); + return @class; + } + + private Class168 method_13(BinaryReader inputBin, out uint dataSize, out uint hdrSize) + { + var @class = method_10(inputBin, out dataSize, out hdrSize); + @class.Float2 = inputBin.ReadSingle(); + @class.Float3 = inputBin.ReadSingle(); + Console.WriteLine(inputBin.BaseStream.Position); + @class.Int1 = inputBin.ReadInt32(); + Console.WriteLine(@class.Int1); + @class.Short1 = inputBin.ReadInt16(); + @class.Short2 = inputBin.ReadInt16(); + return @class; + } + + private static Class168 smethod_2(BinaryReader inputBin, out uint dataSize, Class168 firstFile) + { + var @class = new Class168(); + @class.Uint0 = inputBin.ReadUInt32(); + dataSize = inputBin.ReadUInt32(); + Console.WriteLine(inputBin.BaseStream.Position); + @class.FileName = firstFile.FileName; + @class.Uint1 = firstFile.Uint1; + @class.Uint2 = firstFile.Uint2; + @class.Enum220 = firstFile.Enum220; + @class.Int0 = firstFile.Int0; + @class.Ushort0 = firstFile.Ushort0; + @class.Short0 = firstFile.Short0; + @class.Ushort1 = firstFile.Ushort1; + @class.Uint3 = firstFile.Uint3; + @class.Float2 = firstFile.Float2; + @class.Float3 = firstFile.Float3; + @class.Int1 = firstFile.Int1; + @class.Short1 = firstFile.Short1; + @class.Short2 = firstFile.Short2; + @class.Stream0 = firstFile.Stream0; + return @class; + } + + private string method_14(byte[] byte1) + { + var num = Array.IndexOf(byte1, 0); + if (num == -1) + { + num = byte1.Length; + } + return Encoding.UTF8.GetString(byte1, 0, num); + } + + private FsbEnum1 method_15(uint uint0) + { + switch (uint0) + { + case 196608u: + return FsbEnum1.Const2; + case 196609u: + return FsbEnum1.Const3; + default: + if (uint0 != 262144u) + { + throw new Exception5("Invalid FsbFileVersion integer."); + } + return FsbEnum1.Const4; + } + } + + public void method_16(string string0) + { + using (Stream stream = File.OpenWrite(string0)) + { + method_17(stream); + } + } + + public void method_17(Stream stream1) + { + if (Byte0 != null) + { + stream1 = new FsbClass2(stream1, Byte0); + } + var binaryWriter = new BinaryWriter(stream1); + method_18(binaryWriter); + method_24(binaryWriter); + method_32(binaryWriter); + } + + private void method_18(BinaryWriter binaryWriter0) + { + switch (Enum200) + { + case FsbEnum1.Const0: + binaryWriter0.Write(smethod_8("FSB1", 4)); + method_19(binaryWriter0); + return; + case FsbEnum1.Const1: + binaryWriter0.Write(smethod_8("FSB2", 4)); + method_20(binaryWriter0); + return; + case FsbEnum1.Const2: + case FsbEnum1.Const3: + binaryWriter0.Write(smethod_8("FSB3", 4)); + method_21(binaryWriter0); + return; + case FsbEnum1.Const4: + binaryWriter0.Write(smethod_8("FSB4", 4)); + method_22(binaryWriter0); + return; + default: + return; + } + } + + private void method_19(BinaryWriter binaryWriter0) + { + binaryWriter0.Write(method_33().Count); + binaryWriter0.Write(method_31()); + binaryWriter0.Write(0); + } + + private void method_20(BinaryWriter binaryWriter0) + { + binaryWriter0.Write(method_33().Count); + binaryWriter0.Write(method_30()); + binaryWriter0.Write(method_31()); + } + + private void method_21(BinaryWriter binaryWriter0) + { + method_20(binaryWriter0); + binaryWriter0.Write(smethod_9(Enum200)); + binaryWriter0.Write((uint) Enum210); + } + + private void method_22(BinaryWriter binaryWriter0) + { + method_21(binaryWriter0); + var buffer = new byte[8]; + var bytes = Encoding.UTF8.GetBytes("CreatedByFSBTool"); + binaryWriter0.Write(buffer); + binaryWriter0.Write(bytes); + } + + private int method_23() + { + switch (Enum200) + { + case FsbEnum1.Const0: + return 16; + case FsbEnum1.Const1: + return 16; + case FsbEnum1.Const2: + case FsbEnum1.Const3: + return 24; + case FsbEnum1.Const4: + return 48; + default: + throw new Exception5("Invalid Fsb Version."); + } + } + + private void method_24(BinaryWriter binaryWriter0) + { + for (var i = 0; i < method_33().Count; i++) + { + switch (method_0(i)) + { + case Enum23.Const0: + method_25(binaryWriter0, method_33()[i]); + break; + case Enum23.Const1: + method_26(binaryWriter0, method_33()[i]); + break; + case Enum23.Const2: + method_28(binaryWriter0, method_33()[i]); + break; + case Enum23.Const3: + smethod_3(binaryWriter0, method_33()[i]); + break; + } + } + while ((binaryWriter0.BaseStream.Position & 15L) != 0L) + { + binaryWriter0.Write(0); + } + } + + private void method_25(BinaryWriter binaryWriter0, Class168 class1680) + { + binaryWriter0.Write(smethod_8(class1680.FileName, 32)); + binaryWriter0.Write(class1680.Uint0); + binaryWriter0.Write((uint) class1680.Stream1.Length); + binaryWriter0.Write(class1680.Int0); + binaryWriter0.Write(class1680.Ushort1); + binaryWriter0.Write((ushort) class1680.Uint3); + binaryWriter0.Write(class1680.Ushort0); + binaryWriter0.Write(class1680.Short0); + binaryWriter0.Write((uint) class1680.Enum220); + binaryWriter0.Write(class1680.Uint1); + binaryWriter0.Write(class1680.Uint2); + } + + private void method_26(BinaryWriter binaryWriter0, Class168 class1680) + { + method_27(binaryWriter0, class1680, smethod_5(class1680)); + StreamHelper.CopyStream(binaryWriter0.BaseStream, class1680.Stream0); + } + + private void method_27(BinaryWriter binaryWriter0, Class168 class1680, int int0) + { + binaryWriter0.Write((ushort) int0); + binaryWriter0.Write(smethod_8(class1680.FileName, 30)); + binaryWriter0.Write(class1680.Uint0); + binaryWriter0.Write((uint) class1680.Stream1.Length); + binaryWriter0.Write(class1680.Uint1); + binaryWriter0.Write(class1680.Uint2); + binaryWriter0.Write((uint) class1680.Enum220); + binaryWriter0.Write(class1680.Int0); + binaryWriter0.Write(class1680.Ushort0); + binaryWriter0.Write(class1680.Short0); + binaryWriter0.Write(class1680.Ushort1); + binaryWriter0.Write((ushort) class1680.Uint3); + } + + private void method_28(BinaryWriter binaryWriter0, Class168 class1680) + { + method_29(binaryWriter0, class1680, smethod_6(class1680)); + StreamHelper.CopyStream(binaryWriter0.BaseStream, class1680.Stream0); + } + + private void method_29(BinaryWriter binaryWriter0, Class168 class1680, int int0) + { + method_27(binaryWriter0, class1680, int0); + binaryWriter0.Write(class1680.Float2); + binaryWriter0.Write(class1680.Float3); + binaryWriter0.Write(class1680.Int1); + binaryWriter0.Write(class1680.Short1); + binaryWriter0.Write(class1680.Short2); + } + + private static void smethod_3(BinaryWriter binaryWriter0, Class168 class1680) + { + binaryWriter0.Write(class1680.Uint0); + binaryWriter0.Write((uint) class1680.Stream1.Length); + } + + private static int smethod_4(Class168 class1680) + { + return 64; + } + + private static int smethod_5(Class168 class1680) + { + return 64 + (int) class1680.Stream0.Length; + } + + private static int smethod_6(Class168 class1680) + { + return 80 + (int) class1680.Stream0.Length; + } + + private static int smethod_7(Class168 class1680) + { + return 8; + } + + private int method_30() + { + var num = method_23(); + for (var i = 0; i < method_33().Count; i++) + { + switch (method_0(i)) + { + case Enum23.Const0: + num += smethod_4(method_33()[i]); + break; + case Enum23.Const1: + num += smethod_5(method_33()[i]); + break; + case Enum23.Const2: + num += smethod_6(method_33()[i]); + break; + case Enum23.Const3: + num += smethod_7(method_33()[i]); + break; + } + } + num = (num + 15 & -16); + return num - method_23(); + } + + private int method_31() + { + var num = 0; + for (var i = 0; i < method_33().Count; i++) + { + num += (int) method_33()[i].Stream1.Length; + } + return num; + } + + private static byte[] smethod_8(string string0, int int0) + { + if (int0 < 0) + { + int0 = string0.Length + 1; + } + var bytes = Encoding.UTF8.GetBytes(string0); + Array.Resize(ref bytes, int0); + return bytes; + } + + private static uint smethod_9(FsbEnum1 enum201) + { + switch (enum201) + { + case FsbEnum1.Const2: + return 196608u; + case FsbEnum1.Const3: + return 196609u; + case FsbEnum1.Const4: + return 262144u; + default: + throw new Exception5("Invalid FsbFileVersion"); + } + } + + private void method_32(BinaryWriter binaryWriter0) + { + for (var i = 0; i < method_33().Count; i++) + { + StreamHelper.CopyStream(binaryWriter0.BaseStream, method_33()[i].Stream1); + } + } + + public List method_33() + { + return _list0; + } + + private void method_34(List list1) + { + _list0 = list1; + } + + public FsbClass1() + { + method_34(new List()); + Enum200 = FsbEnum1.Const3; + Enum210 = FsbFlags1.Flag0; + } + + public override string ToString() + { + var text = string.Concat("FsbFile:\nVersion = ", Enum200, "\nFlags = ", Enum210, "\nSubFiles.Count = ", + method_33().Count, "\n"); + foreach (var current in method_33()) + { + text += current; + } + return text; + } + + ~FsbClass1() + { + method_35(false); + } + + public void Dispose() + { + method_35(true); + GC.SuppressFinalize(this); + } + + public void method_35(bool bool0) + { + if (!bool0) + { + return; + } + if (_stream0 != null) + { + _stream0.Close(); + } + foreach (var current in method_33()) + { + current.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBClass2.cs b/GHNamespaceM/FSBClass2.cs index 4d70f5d..6e89025 100644 --- a/GHNamespaceM/FSBClass2.cs +++ b/GHNamespaceM/FSBClass2.cs @@ -3,497 +3,498 @@ namespace GHNamespaceM { - public class FsbClass2 : Stream - { - public Stream Stream0; + public class FsbClass2 : Stream + { + public Stream Stream0; - public byte[] Byte0; + public byte[] Byte0; - private static readonly byte[] Byte1 = { - 0, - 128, - 64, - 192, - 32, - 160, - 96, - 224, - 16, - 144, - 80, - 208, - 48, - 176, - 112, - 240, - 8, - 136, - 72, - 200, - 40, - 168, - 104, - 232, - 24, - 152, - 88, - 216, - 56, - 184, - 120, - 248, - 4, - 132, - 68, - 196, - 36, - 164, - 100, - 228, - 20, - 148, - 84, - 212, - 52, - 180, - 116, - 244, - 12, - 140, - 76, - 204, - 44, - 172, - 108, - 236, - 28, - 156, - 92, - 220, - 60, - 188, - 124, - 252, - 2, - 130, - 66, - 194, - 34, - 162, - 98, - 226, - 18, - 146, - 82, - 210, - 50, - 178, - 114, - 242, - 10, - 138, - 74, - 202, - 42, - 170, - 106, - 234, - 26, - 154, - 90, - 218, - 58, - 186, - 122, - 250, - 6, - 134, - 70, - 198, - 38, - 166, - 102, - 230, - 22, - 150, - 86, - 214, - 54, - 182, - 118, - 246, - 14, - 142, - 78, - 206, - 46, - 174, - 110, - 238, - 30, - 158, - 94, - 222, - 62, - 190, - 126, - 254, - 1, - 129, - 65, - 193, - 33, - 161, - 97, - 225, - 17, - 145, - 81, - 209, - 49, - 177, - 113, - 241, - 9, - 137, - 73, - 201, - 41, - 169, - 105, - 233, - 25, - 153, - 89, - 217, - 57, - 185, - 121, - 249, - 5, - 133, - 69, - 197, - 37, - 165, - 101, - 229, - 21, - 149, - 85, - 213, - 53, - 181, - 117, - 245, - 13, - 141, - 77, - 205, - 45, - 173, - 109, - 237, - 29, - 157, - 93, - 221, - 61, - 189, - 125, - 253, - 3, - 131, - 67, - 195, - 35, - 163, - 99, - 227, - 19, - 147, - 83, - 211, - 51, - 179, - 115, - 243, - 11, - 139, - 75, - 203, - 43, - 171, - 107, - 235, - 27, - 155, - 91, - 219, - 59, - 187, - 123, - 251, - 7, - 135, - 71, - 199, - 39, - 167, - 103, - 231, - 23, - 151, - 87, - 215, - 55, - 183, - 119, - 247, - 15, - 143, - 79, - 207, - 47, - 175, - 111, - 239, - 31, - 159, - 95, - 223, - 63, - 191, - 127, - 255 - }; + private static readonly byte[] Byte1 = + { + 0, + 128, + 64, + 192, + 32, + 160, + 96, + 224, + 16, + 144, + 80, + 208, + 48, + 176, + 112, + 240, + 8, + 136, + 72, + 200, + 40, + 168, + 104, + 232, + 24, + 152, + 88, + 216, + 56, + 184, + 120, + 248, + 4, + 132, + 68, + 196, + 36, + 164, + 100, + 228, + 20, + 148, + 84, + 212, + 52, + 180, + 116, + 244, + 12, + 140, + 76, + 204, + 44, + 172, + 108, + 236, + 28, + 156, + 92, + 220, + 60, + 188, + 124, + 252, + 2, + 130, + 66, + 194, + 34, + 162, + 98, + 226, + 18, + 146, + 82, + 210, + 50, + 178, + 114, + 242, + 10, + 138, + 74, + 202, + 42, + 170, + 106, + 234, + 26, + 154, + 90, + 218, + 58, + 186, + 122, + 250, + 6, + 134, + 70, + 198, + 38, + 166, + 102, + 230, + 22, + 150, + 86, + 214, + 54, + 182, + 118, + 246, + 14, + 142, + 78, + 206, + 46, + 174, + 110, + 238, + 30, + 158, + 94, + 222, + 62, + 190, + 126, + 254, + 1, + 129, + 65, + 193, + 33, + 161, + 97, + 225, + 17, + 145, + 81, + 209, + 49, + 177, + 113, + 241, + 9, + 137, + 73, + 201, + 41, + 169, + 105, + 233, + 25, + 153, + 89, + 217, + 57, + 185, + 121, + 249, + 5, + 133, + 69, + 197, + 37, + 165, + 101, + 229, + 21, + 149, + 85, + 213, + 53, + 181, + 117, + 245, + 13, + 141, + 77, + 205, + 45, + 173, + 109, + 237, + 29, + 157, + 93, + 221, + 61, + 189, + 125, + 253, + 3, + 131, + 67, + 195, + 35, + 163, + 99, + 227, + 19, + 147, + 83, + 211, + 51, + 179, + 115, + 243, + 11, + 139, + 75, + 203, + 43, + 171, + 107, + 235, + 27, + 155, + 91, + 219, + 59, + 187, + 123, + 251, + 7, + 135, + 71, + 199, + 39, + 167, + 103, + 231, + 23, + 151, + 87, + 215, + 55, + 183, + 119, + 247, + 15, + 143, + 79, + 207, + 47, + 175, + 111, + 239, + 31, + 159, + 95, + 223, + 63, + 191, + 127, + 255 + }; - public override bool CanRead => Stream0.CanRead; + public override bool CanRead => Stream0.CanRead; - public override bool CanSeek => Stream0.CanSeek; + public override bool CanSeek => Stream0.CanSeek; - public override bool CanWrite => Stream0.CanWrite; + public override bool CanWrite => Stream0.CanWrite; - public override long Length => Stream0.Length; + public override long Length => Stream0.Length; - public override long Position - { - get => Stream0.Position; - set => Stream0.Position = value; - } + public override long Position + { + get => Stream0.Position; + set => Stream0.Position = value; + } - public long method_0() - { - return Stream0.Position % Byte0.LongLength; - } + public long method_0() + { + return Stream0.Position % Byte0.LongLength; + } - public FsbClass2(Stream stream1, byte[] byte2) - { - if (stream1 == null) - { - throw new ArgumentNullException("BaseStream", "Fsb Encryption"); - } - if (byte2 == null) - { - throw new ArgumentNullException("Key", "Fsb Encryption"); - } - Stream0 = stream1; - Byte0 = byte2; - } + public FsbClass2(Stream stream1, byte[] byte2) + { + if (stream1 == null) + { + throw new ArgumentNullException("BaseStream", "Fsb Encryption"); + } + if (byte2 == null) + { + throw new ArgumentNullException("Key", "Fsb Encryption"); + } + Stream0 = stream1; + Byte0 = byte2; + } - public FsbClass2(Stream stream1) : this(stream1, smethod_0(stream1)) - { - } + public FsbClass2(Stream stream1) : this(stream1, smethod_0(stream1)) + { + } - private static byte[] smethod_0(Stream stream1) - { - var position = stream1.Position; - var array = new byte[65536]; - var num = stream1.Read(array, 0, array.Length); - Array.Resize(ref array, num); - var i = 2; - while (i < 50) - { - var result = smethod_1(array, i); - stream1.Position = position; - try - { - FsbClass1.smethod_1(stream1, result); - goto IL_FD; - } - catch - { - } - i++; - continue; - IL_FD: - stream1.Position = position; - return result; - } - if (num > 1000) - { - Array.Resize(ref array, 1000); - var j = 2; - while (j < 50) - { - var result2 = smethod_1(array, j); - stream1.Position = position; - try - { - FsbClass1.smethod_1(stream1, result2); - goto IL_9A; - } - catch - { - } - j++; - continue; - IL_9A: - stream1.Position = position; - return result2; - } - } - if (num > 500) - { - Array.Resize(ref array, 500); - var k = 2; - while (k < 50) - { - var result3 = smethod_1(array, k); - stream1.Position = position; - try - { - FsbClass1.smethod_1(stream1, result3); - goto IL_EA; - } - catch - { - } - k++; - continue; - IL_EA: - stream1.Position = position; - return result3; - } - } - stream1.Position = position; - return null; - } + private static byte[] smethod_0(Stream stream1) + { + var position = stream1.Position; + var array = new byte[65536]; + var num = stream1.Read(array, 0, array.Length); + Array.Resize(ref array, num); + var i = 2; + while (i < 50) + { + var result = smethod_1(array, i); + stream1.Position = position; + try + { + FsbClass1.smethod_1(stream1, result); + goto IL_FD; + } + catch + { + } + i++; + continue; + IL_FD: + stream1.Position = position; + return result; + } + if (num > 1000) + { + Array.Resize(ref array, 1000); + var j = 2; + while (j < 50) + { + var result2 = smethod_1(array, j); + stream1.Position = position; + try + { + FsbClass1.smethod_1(stream1, result2); + goto IL_9A; + } + catch + { + } + j++; + continue; + IL_9A: + stream1.Position = position; + return result2; + } + } + if (num > 500) + { + Array.Resize(ref array, 500); + var k = 2; + while (k < 50) + { + var result3 = smethod_1(array, k); + stream1.Position = position; + try + { + FsbClass1.smethod_1(stream1, result3); + goto IL_EA; + } + catch + { + } + k++; + continue; + IL_EA: + stream1.Position = position; + return result3; + } + } + stream1.Position = position; + return null; + } - private static byte[] smethod_1(byte[] byte2, int int0) - { - var array = new byte[int0]; - var array2 = new uint[256]; - for (var i = 0; i < int0; i++) - { - Array.Clear(array2, 0, array2.Length); - var num = 0; - while (i + num < byte2.Length) - { - array2[byte2[i + num]] += 1u; - num += int0; - } - var num2 = 0; - for (var j = 0; j < array2.Length; j++) - { - if (array2[j] >= array2[num2]) - { - num2 = j; - } - } - array[i] = (byte)num2; - } - return array; - } + private static byte[] smethod_1(byte[] byte2, int int0) + { + var array = new byte[int0]; + var array2 = new uint[256]; + for (var i = 0; i < int0; i++) + { + Array.Clear(array2, 0, array2.Length); + var num = 0; + while (i + num < byte2.Length) + { + array2[byte2[i + num]] += 1u; + num += int0; + } + var num2 = 0; + for (var j = 0; j < array2.Length; j++) + { + if (array2[j] >= array2[num2]) + { + num2 = j; + } + } + array[i] = (byte) num2; + } + return array; + } - public byte method_1(byte byte2, ref long long0) - { - var arg_1A0 = byte2; - var arg190 = Byte0; - long num; - long0 = (num = long0) + 1L; - byte2 = (byte)(arg_1A0 ^ arg190[(int)((IntPtr)num)]); - if (long0 == Byte0.LongLength) - { - long0 = 0L; - } - return byte2; - } + public byte method_1(byte byte2, ref long long0) + { + var arg_1A0 = byte2; + var arg190 = Byte0; + long num; + long0 = (num = long0) + 1L; + byte2 = (byte) (arg_1A0 ^ arg190[(int) ((IntPtr) num)]); + if (long0 == Byte0.LongLength) + { + long0 = 0L; + } + return byte2; + } - public byte method_2(byte byte2, ref long long0) - { - return method_1(Byte1[byte2], ref long0); - } + public byte method_2(byte byte2, ref long long0) + { + return method_1(Byte1[byte2], ref long0); + } - public byte method_3(byte byte2, ref long long0) - { - return Byte1[method_1(byte2, ref long0)]; - } + public byte method_3(byte byte2, ref long long0) + { + return Byte1[method_1(byte2, ref long0)]; + } - public void method_4(byte[] byte2, int int0, int int1, long long0) - { - for (var i = int0; i < int1; i++) - { - byte2[i] = method_2(byte2[i], ref long0); - } - } + public void method_4(byte[] byte2, int int0, int int1, long long0) + { + for (var i = int0; i < int1; i++) + { + byte2[i] = method_2(byte2[i], ref long0); + } + } - public void method_5(byte[] byte2, int int0, int int1, long long0) - { - for (var i = int0; i < int1; i++) - { - byte2[i] = method_3(byte2[i], ref long0); - } - } + public void method_5(byte[] byte2, int int0, int int1, long long0) + { + for (var i = int0; i < int1; i++) + { + byte2[i] = method_3(byte2[i], ref long0); + } + } - public override int Read(byte[] buffer, int offset, int count) - { - var long_ = method_0(); - var num = Stream0.Read(buffer, offset, count); - method_5(buffer, offset, num, long_); - return num; - } + public override int Read(byte[] buffer, int offset, int count) + { + var long_ = method_0(); + var num = Stream0.Read(buffer, offset, count); + method_5(buffer, offset, num, long_); + return num; + } - public override int ReadByte() - { - var num = method_0(); - return method_3(Byte0[(int)((IntPtr)method_0())], ref num); - } + public override int ReadByte() + { + var num = method_0(); + return method_3(Byte0[(int) ((IntPtr) method_0())], ref num); + } - public override void Write(byte[] buffer, int offset, int count) - { - method_4(buffer, offset, count, method_0()); - Stream0.Write(buffer, offset, count); - } + public override void Write(byte[] buffer, int offset, int count) + { + method_4(buffer, offset, count, method_0()); + Stream0.Write(buffer, offset, count); + } - public override void WriteByte(byte value) - { - var num = method_0(); - Stream0.WriteByte(method_2(value, ref num)); - } + public override void WriteByte(byte value) + { + var num = method_0(); + Stream0.WriteByte(method_2(value, ref num)); + } - public override void Flush() - { - Stream0.Flush(); - } + public override void Flush() + { + Stream0.Flush(); + } - public override long Seek(long offset, SeekOrigin origin) - { - return Stream0.Seek(offset, origin); - } + public override long Seek(long offset, SeekOrigin origin) + { + return Stream0.Seek(offset, origin); + } - public override void SetLength(long value) - { - Stream0.SetLength(value); - } + public override void SetLength(long value) + { + Stream0.SetLength(value); + } protected override void Dispose(bool disposing) - { - if (disposing) - { - Stream0.Close(); - } - base.Dispose(disposing); - } - } -} + { + if (disposing) + { + Stream0.Close(); + } + base.Dispose(disposing); + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBEnum1.cs b/GHNamespaceM/FSBEnum1.cs index c1d144d..ac99e07 100644 --- a/GHNamespaceM/FSBEnum1.cs +++ b/GHNamespaceM/FSBEnum1.cs @@ -1,11 +1,11 @@ namespace GHNamespaceM { - public enum FsbEnum1 - { - Const0, - Const1, - Const2, - Const3, - Const4 - } -} + public enum FsbEnum1 + { + Const0, + Const1, + Const2, + Const3, + Const4 + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBFlags1.cs b/GHNamespaceM/FSBFlags1.cs index 20ad1ad..936d350 100644 --- a/GHNamespaceM/FSBFlags1.cs +++ b/GHNamespaceM/FSBFlags1.cs @@ -2,15 +2,15 @@ namespace GHNamespaceM { - [Flags] - public enum FsbFlags1 : uint - { - Flag0 = 0u, - Flag1 = 1u, - Flag2 = 2u, - Flag3 = 4u, - Flag4 = 8u, - Flag5 = 16u, - Flag6 = 32u - } -} + [Flags] + public enum FsbFlags1 : uint + { + Flag0 = 0u, + Flag1 = 1u, + Flag2 = 2u, + Flag3 = 4u, + Flag4 = 8u, + Flag5 = 16u, + Flag6 = 32u + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBFlags2.cs b/GHNamespaceM/FSBFlags2.cs index ddb549f..03267f0 100644 --- a/GHNamespaceM/FSBFlags2.cs +++ b/GHNamespaceM/FSBFlags2.cs @@ -2,42 +2,42 @@ namespace GHNamespaceM { - [Flags] - public enum FsbFlags2 : uint - { - Flag0 = 0u, - Flag1 = 1u, - Flag2 = 2u, - Flag3 = 4u, - Flag4 = 8u, - Flag5 = 16u, - Flag6 = 32u, - Flag7 = 64u, - Flag8 = 128u, - Flag9 = 256u, - Flag10 = 512u, - Flag11 = 1024u, - Flag12 = 2048u, - Flag13 = 4096u, - Flag14 = 8192u, - Flag15 = 16384u, - Flag16 = 32768u, - Flag17 = 65536u, - Flag18 = 131072u, - Flag19 = 262144u, - Flag20 = 524288u, - Flag21 = 1048576u, - Flag22 = 2097152u, - Flag23 = 4194304u, - Flag24 = 8388608u, - Flag25 = 16777216u, - Flag26 = 33554432u, - Flag27 = 67108864u, - Flag28 = 134217728u, - Flag29 = 268435456u, - Flag30 = 536870912u, - Flag31 = 1073741824u, - Flag32 = 2147483648u, - Flag33 = 304u - } -} + [Flags] + public enum FsbFlags2 : uint + { + Flag0 = 0u, + Flag1 = 1u, + Flag2 = 2u, + Flag3 = 4u, + Flag4 = 8u, + Flag5 = 16u, + Flag6 = 32u, + Flag7 = 64u, + Flag8 = 128u, + Flag9 = 256u, + Flag10 = 512u, + Flag11 = 1024u, + Flag12 = 2048u, + Flag13 = 4096u, + Flag14 = 8192u, + Flag15 = 16384u, + Flag16 = 32768u, + Flag17 = 65536u, + Flag18 = 131072u, + Flag19 = 262144u, + Flag20 = 524288u, + Flag21 = 1048576u, + Flag22 = 2097152u, + Flag23 = 4194304u, + Flag24 = 8388608u, + Flag25 = 16777216u, + Flag26 = 33554432u, + Flag27 = 67108864u, + Flag28 = 134217728u, + Flag29 = 268435456u, + Flag30 = 536870912u, + Flag31 = 1073741824u, + Flag32 = 2147483648u, + Flag33 = 304u + } +} \ No newline at end of file diff --git a/GHNamespaceM/FSBStream.cs b/GHNamespaceM/FSBStream.cs index 7cb26e3..854e776 100644 --- a/GHNamespaceM/FSBStream.cs +++ b/GHNamespaceM/FSBStream.cs @@ -10,111 +10,114 @@ namespace GHNamespaceM { - public class FsbStream : GenericAudioStream - { - private readonly GenericAudioStream _stream10; - - public override bool CanRead => _stream10.CanRead; - - public override bool CanSeek => _stream10.CanSeek; - - public override bool CanWrite => _stream10.CanWrite; - - public override long Length => _stream10.Length; - - public override long Position - { - get => _stream10.Position; - set => _stream10.Position = value; - } - - public FsbStream(string string0) : this(File.OpenRead(string0)) - { - } - - public FsbStream(Stream stream1) : this(FsbClass1.smethod_0(stream1)) - { - } - - public FsbStream(FsbClass1 class1670) - { - switch (class1670.method_33().Count) - { - case 0: - throw new Exception5("FSB Stream: No subfiles."); - case 1: - FileStream = (_stream10 = smethod_0(class1670.method_33()[0])); - break; - default: - { - var list = new List(); - foreach (var current in class1670.method_33()) - { - list.Add(smethod_0(current)); - } - FileStream = (_stream10 = new Stream2(list.ToArray())); - break; - } - } - WaveFormat0 = _stream10.vmethod_0(); - } - - private static GenericAudioStream smethod_0(Class168 class1680) - { - var flag = (class1680.Enum220 & FsbFlags2.Flag19) != FsbFlags2.Flag0; - var stream = class1680.Stream1; - var position = stream.Position; - var array = new byte[4]; - stream.Read(array, 0, 4); - stream.Position = position; - if (array[0] == 255 && array[1] >= 240) - { - if ((class1680.Enum220 & FsbFlags2.Flag27) != FsbFlags2.Flag0 && class1680.Uint3 > 2u) - { - return new Mp3Class(class1680.Stream1, (int)(class1680.Uint3 / 2u), flag ? Enum4.Const3 : Enum4.Const0); - } - return new Mp3Stream(class1680.Stream1, flag ? Enum4.Const3 : Enum4.Const0); - } - string @string; - if ((@string = Encoding.UTF8.GetString(array, 0, 3)) != null && @string == "Ogg") - { - return new OggStream(class1680.Stream1); - } - if ((class1680.Enum220 & FsbFlags2.Flag17) != FsbFlags2.Flag0) - { - return new Stream5(class1680.Stream1, new WaveFormat(class1680.Int0, ((class1680.Enum220 & FsbFlags2.Flag4) != FsbFlags2.Flag0) ? 8 : 16, (int)class1680.Uint3)); - } - throw new Exception5("FSB SubFile: Data not supported."); - } - - public override int vmethod_3(IntPtr intptr0, int int2) - { - return _stream10.vmethod_3(intptr0, int2); - } - - public override int vmethod_4(float[] float0, int int2, int int3) - { - return _stream10.vmethod_4(float0, int2, int3); - } - - public override float[][] vmethod_5(int int2) - { - return _stream10.vmethod_5(int2); - } - - public override int Read(byte[] buffer, int offset, int count) - { - return _stream10.Read(buffer, offset, count); - } - - public override void SetLength(long value) - { - _stream10.SetLength(value); - } - - public override void Write(byte[] buffer, int offset, int count) - { - throw new NotImplementedException(); - } - } -} + public class FsbStream : GenericAudioStream + { + private readonly GenericAudioStream _stream10; + + public override bool CanRead => _stream10.CanRead; + + public override bool CanSeek => _stream10.CanSeek; + + public override bool CanWrite => _stream10.CanWrite; + + public override long Length => _stream10.Length; + + public override long Position + { + get => _stream10.Position; + set => _stream10.Position = value; + } + + public FsbStream(string string0) : this(File.OpenRead(string0)) + { + } + + public FsbStream(Stream stream1) : this(FsbClass1.smethod_0(stream1)) + { + } + + public FsbStream(FsbClass1 class1670) + { + switch (class1670.method_33().Count) + { + case 0: + throw new Exception5("FSB Stream: No subfiles."); + case 1: + FileStream = (_stream10 = smethod_0(class1670.method_33()[0])); + break; + default: + { + var list = new List(); + foreach (var current in class1670.method_33()) + { + list.Add(smethod_0(current)); + } + FileStream = (_stream10 = new Stream2(list.ToArray())); + break; + } + } + WaveFormat0 = _stream10.vmethod_0(); + } + + private static GenericAudioStream smethod_0(Class168 class1680) + { + var flag = (class1680.Enum220 & FsbFlags2.Flag19) != FsbFlags2.Flag0; + var stream = class1680.Stream1; + var position = stream.Position; + var array = new byte[4]; + stream.Read(array, 0, 4); + stream.Position = position; + if (array[0] == 255 && array[1] >= 240) + { + if ((class1680.Enum220 & FsbFlags2.Flag27) != FsbFlags2.Flag0 && class1680.Uint3 > 2u) + { + return new Mp3Class(class1680.Stream1, (int) (class1680.Uint3 / 2u), + flag ? Enum4.Const3 : Enum4.Const0); + } + return new Mp3Stream(class1680.Stream1, flag ? Enum4.Const3 : Enum4.Const0); + } + string @string; + if ((@string = Encoding.UTF8.GetString(array, 0, 3)) != null && @string == "Ogg") + { + return new OggStream(class1680.Stream1); + } + if ((class1680.Enum220 & FsbFlags2.Flag17) != FsbFlags2.Flag0) + { + return new Stream5(class1680.Stream1, + new WaveFormat(class1680.Int0, ((class1680.Enum220 & FsbFlags2.Flag4) != FsbFlags2.Flag0) ? 8 : 16, + (int) class1680.Uint3)); + } + throw new Exception5("FSB SubFile: Data not supported."); + } + + public override int vmethod_3(IntPtr intptr0, int int2) + { + return _stream10.vmethod_3(intptr0, int2); + } + + public override int vmethod_4(float[] float0, int int2, int int3) + { + return _stream10.vmethod_4(float0, int2, int3); + } + + public override float[][] vmethod_5(int int2) + { + return _stream10.vmethod_5(int2); + } + + public override int Read(byte[] buffer, int offset, int count) + { + return _stream10.Read(buffer, offset, count); + } + + public override void SetLength(long value) + { + _stream10.SetLength(value); + } + + public override void Write(byte[] buffer, int offset, int count) + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/Stream18.cs b/GHNamespaceM/Stream18.cs index 747b1ea..a4d5b29 100644 --- a/GHNamespaceM/Stream18.cs +++ b/GHNamespaceM/Stream18.cs @@ -3,120 +3,120 @@ namespace GHNamespaceM { - public class Stream18 : Stream - { - private Stream _stream0; - - private readonly long _long0; - - private readonly long _long1; - - private long _long2; - - public override bool CanRead => method_0().CanRead; - - public override bool CanSeek => method_0().CanSeek; - - public override bool CanWrite => method_0().CanWrite; - - public override long Length => _long1; - - public override long Position - { - get => _long2 - _long0; - set - { - if (Position < 0L) - { - throw new ArgumentException("Position < 0"); - } - _long2 = _long0 + value; - } - } - - public Stream method_0() - { - return _stream0; - } - - private void method_1(Stream stream1) - { - _stream0 = stream1; - } - - private long method_2() - { - return Math.Max(_long0 + _long1 - _long2, 0L); - } - - public Stream18(Stream stream1, long long3, long long4) - { - method_1(stream1); - _long0 = long3; - _long1 = long4; - _long2 = long3; - } - - public override void Flush() - { - lock (method_0()) - { - method_0().Flush(); - } - } - - public override int Read(byte[] buffer, int offset, int count) - { - int result; - lock (method_0()) - { - if (method_0().Position != _long2) - { - method_0().Seek(_long2, SeekOrigin.Begin); - } - count = (int)Math.Min(count, method_2()); - var num = method_0().Read(buffer, offset, count); - _long2 += num; - result = num; - } - return result; - } - - public override void Write(byte[] buffer, int offset, int count) - { - lock (method_0()) - { - if (method_0().Position != _long2) - { - method_0().Seek(_long2, SeekOrigin.Begin); - } - if (count > method_2()) - { - throw new EndOfStreamException(); - } - method_0().Write(buffer, offset, count); - _long2 += count; - } - } - - public override long Seek(long offset, SeekOrigin origin) - { - switch (origin) - { - case SeekOrigin.Current: - offset += _long2 - _long0; - break; - case SeekOrigin.End: - offset += _long1; - break; - } - Position = offset; - return Position; - } - - public override void SetLength(long value) - { - throw new NotSupportedException(); - } - } -} + public class Stream18 : Stream + { + private Stream _stream0; + + private readonly long _long0; + + private readonly long _long1; + + private long _long2; + + public override bool CanRead => method_0().CanRead; + + public override bool CanSeek => method_0().CanSeek; + + public override bool CanWrite => method_0().CanWrite; + + public override long Length => _long1; + + public override long Position + { + get => _long2 - _long0; + set + { + if (Position < 0L) + { + throw new ArgumentException("Position < 0"); + } + _long2 = _long0 + value; + } + } + + public Stream method_0() + { + return _stream0; + } + + private void method_1(Stream stream1) + { + _stream0 = stream1; + } + + private long method_2() + { + return Math.Max(_long0 + _long1 - _long2, 0L); + } + + public Stream18(Stream stream1, long long3, long long4) + { + method_1(stream1); + _long0 = long3; + _long1 = long4; + _long2 = long3; + } + + public override void Flush() + { + lock (method_0()) + { + method_0().Flush(); + } + } + + public override int Read(byte[] buffer, int offset, int count) + { + int result; + lock (method_0()) + { + if (method_0().Position != _long2) + { + method_0().Seek(_long2, SeekOrigin.Begin); + } + count = (int) Math.Min(count, method_2()); + var num = method_0().Read(buffer, offset, count); + _long2 += num; + result = num; + } + return result; + } + + public override void Write(byte[] buffer, int offset, int count) + { + lock (method_0()) + { + if (method_0().Position != _long2) + { + method_0().Seek(_long2, SeekOrigin.Begin); + } + if (count > method_2()) + { + throw new EndOfStreamException(); + } + method_0().Write(buffer, offset, count); + _long2 += count; + } + } + + public override long Seek(long offset, SeekOrigin origin) + { + switch (origin) + { + case SeekOrigin.Current: + offset += _long2 - _long0; + break; + case SeekOrigin.End: + offset += _long1; + break; + } + Position = offset; + return Position; + } + + public override void SetLength(long value) + { + throw new NotSupportedException(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceM/StreamHelper.cs b/GHNamespaceM/StreamHelper.cs index 2abac51..b21c7a8 100644 --- a/GHNamespaceM/StreamHelper.cs +++ b/GHNamespaceM/StreamHelper.cs @@ -2,20 +2,19 @@ namespace GHNamespaceM { - public static class StreamHelper - { - private static readonly byte[] Buffer = new byte[16384]; + public static class StreamHelper + { + private static readonly byte[] Buffer = new byte[16384]; - public static void CopyStream(Stream destination, Stream source) - { - source.Position = 0L; - int bytesRead; - do - { - bytesRead = source.Read(Buffer, 0, Buffer.Length); - destination.Write(Buffer, 0, bytesRead); - } - while (bytesRead != 0); - } - } -} + public static void CopyStream(Stream destination, Stream source) + { + source.Position = 0L; + int bytesRead; + do + { + bytesRead = source.Read(Buffer, 0, Buffer.Length); + destination.Write(Buffer, 0, bytesRead); + } while (bytesRead != 0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/BpmNote1.cs b/GHNamespaceN/BpmNote1.cs index f3f264b..f57285f 100644 --- a/GHNamespaceN/BpmNote1.cs +++ b/GHNamespaceN/BpmNote1.cs @@ -2,24 +2,24 @@ namespace GHNamespaceN { - public class BpmNote1 : AbstractNoteClass - { - private readonly int _int1; + public class BpmNote1 : AbstractNoteClass + { + private readonly int _int1; - public BpmNote1(int int2, int int3) - { - Int0 = int2; - _int1 = int3; - } + public BpmNote1(int int2, int int3) + { + Int0 = int2; + _int1 = int3; + } - public int method_1() - { - return _int1; - } + public int method_1() + { + return _int1; + } - public override string ToString() - { - return string.Format("{0}: {1} BPM", method_0(), ByteFiddler.DivideSixtyMillionBy(_int1)); - } - } -} + public override string ToString() + { + return string.Format("{0}: {1} BPM", method_0(), ByteFiddler.DivideSixtyMillionBy(_int1)); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class347.cs b/GHNamespaceN/Class347.cs index 079bd8f..dd7bc67 100644 --- a/GHNamespaceN/Class347.cs +++ b/GHNamespaceN/Class347.cs @@ -2,13 +2,13 @@ namespace GHNamespaceN { - public class Class347 : Class346 - { - private readonly int _int2; + public class Class347 : Class346 + { + private readonly int _int2; - public int method_0() - { - return _int2; - } - } -} + public int method_0() + { + return _int2; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class352.cs b/GHNamespaceN/Class352.cs index 36ef012..6fd7003 100644 --- a/GHNamespaceN/Class352.cs +++ b/GHNamespaceN/Class352.cs @@ -2,18 +2,18 @@ namespace GHNamespaceN { - public class Class352 : IDisposable, INterface14 - { - private readonly Class347 _class3470; + public class Class352 : IDisposable, INterface14 + { + private readonly Class347 _class3470; - public int imethod_0() - { - return _class3470.method_0(); - } + public int imethod_0() + { + return _class3470.method_0(); + } - public void Dispose() - { - _class3470.Dispose(); - } - } -} + public void Dispose() + { + _class3470.Dispose(); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class353.cs b/GHNamespaceN/Class353.cs index b767f15..2b69f01 100644 --- a/GHNamespaceN/Class353.cs +++ b/GHNamespaceN/Class353.cs @@ -3,53 +3,53 @@ namespace GHNamespaceN { - public class MidiLine - { - public string String0; - - public int Int0; - - public List List0; - - public MidiLine(int int1) : this("", int1, null) - { - } - - public MidiLine(string string1, int int1, IEnumerable ienumerable0) - { - String0 = string1; - Int0 = int1; - if (ienumerable0 == null) - { - List0 = new List(); - return; - } - List0 = new List(ienumerable0); - } - - public List method_0() - { - return List0; - } - - public void method_1(List list1) - { - List0 = list1; - } - - public string method_2() - { - return String0; - } - - public void method_3(string string1) - { - String0 = string1; - } - - public override string ToString() - { - return String0; - } - } -} + public class MidiLine + { + public string String0; + + public int Int0; + + public List List0; + + public MidiLine(int int1) : this("", int1, null) + { + } + + public MidiLine(string string1, int int1, IEnumerable ienumerable0) + { + String0 = string1; + Int0 = int1; + if (ienumerable0 == null) + { + List0 = new List(); + return; + } + List0 = new List(ienumerable0); + } + + public List method_0() + { + return List0; + } + + public void method_1(List list1) + { + List0 = list1; + } + + public string method_2() + { + return String0; + } + + public void method_3(string string1) + { + String0 = string1; + } + + public override string ToString() + { + return String0; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class355.cs b/GHNamespaceN/Class355.cs index b86cccb..2af7fe5 100644 --- a/GHNamespaceN/Class355.cs +++ b/GHNamespaceN/Class355.cs @@ -1,11 +1,11 @@ namespace GHNamespaceN { - public class Class355 - { - public static INterface15 Interface150 = new Class356(); + public class Class355 + { + public static INterface15 Interface150 = new Class356(); - private Class355() - { - } - } -} + private Class355() + { + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class356.cs b/GHNamespaceN/Class356.cs index 1f251f3..682b2db 100644 --- a/GHNamespaceN/Class356.cs +++ b/GHNamespaceN/Class356.cs @@ -3,57 +3,57 @@ namespace GHNamespaceN { - public class Class356 : INterface15 - { - private DateTime _dateTime0 = DateTime.MinValue; + public class Class356 : INterface15 + { + private DateTime _dateTime0 = DateTime.MinValue; - private int _int0 = -1; + private int _int0 = -1; - private DateTime _dateTime1 = DateTime.MinValue; + private DateTime _dateTime1 = DateTime.MinValue; - private Dictionary _dictionary0 = new Dictionary(); + private Dictionary _dictionary0 = new Dictionary(); - private readonly Dictionary _dictionary1 = new Dictionary(); + private readonly Dictionary _dictionary1 = new Dictionary(); - public void imethod_0(string string0) - { - Console.WriteLine(string0); - } + public void imethod_0(string string0) + { + Console.WriteLine(string0); + } - public void imethod_1(string string0) - { - var stackTrace = Environment.StackTrace; - Console.WriteLine("WARNING: " + string0); - Console.WriteLine(stackTrace); - if (_dictionary1.ContainsKey(stackTrace)) - { - return; - } - while (true) - { - Console.Write("\tContinue? This can be dangerous, corrupt your files, etc! (y/n/y!): "); - var text = Console.ReadLine(); - string a; - if ((a = text.ToLower()) != null) - { - if (a == "y") - { - return; - } - if (!(a == "n")) - { - if (a == "y!") - { - break; - } - } - else - { - Environment.Exit(-1); - } - } - } - _dictionary1[stackTrace] = true; - } - } -} + public void imethod_1(string string0) + { + var stackTrace = Environment.StackTrace; + Console.WriteLine("WARNING: " + string0); + Console.WriteLine(stackTrace); + if (_dictionary1.ContainsKey(stackTrace)) + { + return; + } + while (true) + { + Console.Write("\tContinue? This can be dangerous, corrupt your files, etc! (y/n/y!): "); + var text = Console.ReadLine(); + string a; + if ((a = text.ToLower()) != null) + { + if (a == "y") + { + return; + } + if (!(a == "n")) + { + if (a == "y!") + { + break; + } + } + else + { + Environment.Exit(-1); + } + } + } + _dictionary1[stackTrace] = true; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class357.cs b/GHNamespaceN/Class357.cs index 5607a55..d08b3da 100644 --- a/GHNamespaceN/Class357.cs +++ b/GHNamespaceN/Class357.cs @@ -4,22 +4,22 @@ namespace GHNamespaceN { - public class Class357 : IDisposable, IEmptyInterface1 - { - private Class352[] _class3520; + public class Class357 : IDisposable, IEmptyInterface1 + { + private Class352[] _class3520; - private readonly List _list0; + private readonly List _list0; - public void Dispose() - { - foreach (var current in _list0) - { - current.Dispose(); - } - for (var i = 0; i < _class3520.Length; i++) - { - _class3520[i].Dispose(); - } - } - } -} + public void Dispose() + { + foreach (var current in _list0) + { + current.Dispose(); + } + for (var i = 0; i < _class3520.Length; i++) + { + _class3520[i].Dispose(); + } + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class358.cs b/GHNamespaceN/Class358.cs index cd54e5c..5531341 100644 --- a/GHNamespaceN/Class358.cs +++ b/GHNamespaceN/Class358.cs @@ -2,27 +2,27 @@ namespace GHNamespaceN { - public class Class358 : INterface14 - { - private readonly int _int0; + public class Class358 : INterface14 + { + private readonly int _int0; - private readonly IEmptyInterface1 _interface130; + private readonly IEmptyInterface1 _interface130; - private readonly int _int1; + private readonly int _int1; - private readonly int _int2; + private readonly int _int2; - public Class358(IEmptyInterface1 interface131, int int3, int int4, int int5) - { - _interface130 = interface131; - _int0 = int3; - _int1 = int4; - _int2 = int5; - } + public Class358(IEmptyInterface1 interface131, int int3, int int4, int int5) + { + _interface130 = interface131; + _int0 = int3; + _int1 = int4; + _int2 = int5; + } - public int imethod_0() - { - return _int2; - } - } -} + public int imethod_0() + { + return _int2; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Class361.cs b/GHNamespaceN/Class361.cs index 078ecf6..60c60b8 100644 --- a/GHNamespaceN/Class361.cs +++ b/GHNamespaceN/Class361.cs @@ -3,143 +3,143 @@ namespace GHNamespaceN { - public class Class361 : IFormatProvider, ICustomFormatter - { - public object GetFormat(Type formatType) - { - if (formatType == typeof(ICustomFormatter)) - { - return this; - } - return null; - } + public class Class361 : IFormatProvider, ICustomFormatter + { + public object GetFormat(Type formatType) + { + if (formatType == typeof(ICustomFormatter)) + { + return this; + } + return null; + } - public string Format(string format, object arg, IFormatProvider formatProvider) - { - if (!(arg is TimeSpan)) - { - throw new ArgumentNullException(); - } - var timeSpan = (TimeSpan)arg; - return smethod_0(timeSpan, format); - } + public string Format(string format, object arg, IFormatProvider formatProvider) + { + if (!(arg is TimeSpan)) + { + throw new ArgumentNullException(); + } + var timeSpan = (TimeSpan) arg; + return smethod_0(timeSpan, format); + } - private static string smethod_0(TimeSpan timeSpan0, string string0) - { - var stringBuilder = new StringBuilder(64); - var length = string0.Length; - var i = 0; - while (i < length) - { - var c = string0[i]; - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) - { - int j; - for (j = i + 1; j < length; j++) - { - if (string0[j] != c) - { - break; - } - } - smethod_1(stringBuilder, c, j - i, timeSpan0); - i = j; - } - else if (c == '\'') - { - i++; - if (i < length && string0[i] == '\'') - { - stringBuilder.Append('\''); - i++; - } - else - { - var flag = false; - while (!flag) - { - int j; - for (j = i; j < length; j++) - { - if (string0[j] == '\'') - { - break; - } - } - if (j >= length) - { - throw new ArgumentException("Missing trailing '"); - } - if (j + 1 < length && string0[j + 1] == '\'') - { - j++; - } - else - { - flag = true; - } - stringBuilder.Append(string0.Substring(i, j)); - i = j + 1; - } - } - } - else - { - stringBuilder.Append(c); - i++; - } - } - return stringBuilder.ToString(); - } + private static string smethod_0(TimeSpan timeSpan0, string string0) + { + var stringBuilder = new StringBuilder(64); + var length = string0.Length; + var i = 0; + while (i < length) + { + var c = string0[i]; + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) + { + int j; + for (j = i + 1; j < length; j++) + { + if (string0[j] != c) + { + break; + } + } + smethod_1(stringBuilder, c, j - i, timeSpan0); + i = j; + } + else if (c == '\'') + { + i++; + if (i < length && string0[i] == '\'') + { + stringBuilder.Append('\''); + i++; + } + else + { + var flag = false; + while (!flag) + { + int j; + for (j = i; j < length; j++) + { + if (string0[j] == '\'') + { + break; + } + } + if (j >= length) + { + throw new ArgumentException("Missing trailing '"); + } + if (j + 1 < length && string0[j + 1] == '\'') + { + j++; + } + else + { + flag = true; + } + stringBuilder.Append(string0.Substring(i, j)); + i = j + 1; + } + } + } + else + { + stringBuilder.Append(c); + i++; + } + } + return stringBuilder.ToString(); + } - private static bool smethod_1(StringBuilder stringBuilder0, char char0, int int0, TimeSpan timeSpan0) - { - if (char0 <= 'd') - { - if (char0 == 'S') - { - smethod_2(stringBuilder0, timeSpan0.Milliseconds, int0); - return true; - } - if (char0 == 'd') - { - smethod_2(stringBuilder0, timeSpan0.Days, int0); - return true; - } - } - else - { - if (char0 == 'h') - { - smethod_2(stringBuilder0, timeSpan0.Hours, int0); - return true; - } - if (char0 == 'm') - { - smethod_2(stringBuilder0, timeSpan0.Minutes, int0); - return true; - } - if (char0 == 's') - { - smethod_2(stringBuilder0, timeSpan0.Seconds, int0); - return true; - } - } - return false; - } + private static bool smethod_1(StringBuilder stringBuilder0, char char0, int int0, TimeSpan timeSpan0) + { + if (char0 <= 'd') + { + if (char0 == 'S') + { + smethod_2(stringBuilder0, timeSpan0.Milliseconds, int0); + return true; + } + if (char0 == 'd') + { + smethod_2(stringBuilder0, timeSpan0.Days, int0); + return true; + } + } + else + { + if (char0 == 'h') + { + smethod_2(stringBuilder0, timeSpan0.Hours, int0); + return true; + } + if (char0 == 'm') + { + smethod_2(stringBuilder0, timeSpan0.Minutes, int0); + return true; + } + if (char0 == 's') + { + smethod_2(stringBuilder0, timeSpan0.Seconds, int0); + return true; + } + } + return false; + } - private static void smethod_2(StringBuilder stringBuilder0, int int0, int int1) - { - var num = 10; - for (var i = 0; i < int1 - 1; i++) - { - if (int0 < num) - { - stringBuilder0.Append('0'); - } - num *= 10; - } - stringBuilder0.Append(int0); - } - } -} + private static void smethod_2(StringBuilder stringBuilder0, int int0, int int1) + { + var num = 10; + for (var i = 0; i < int1 - 1; i++) + { + if (int0 < num) + { + stringBuilder0.Append('0'); + } + num *= 10; + } + stringBuilder0.Append(int0); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/CompilerClass359.cs b/GHNamespaceN/CompilerClass359.cs index ec667c2..b668350 100644 --- a/GHNamespaceN/CompilerClass359.cs +++ b/GHNamespaceN/CompilerClass359.cs @@ -5,16 +5,16 @@ namespace GHNamespaceN { //Can probably be removed - [CompilerGenerated] - public class CompilerClass359 - { - [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 80)] - public struct Struct93 - { - } + [CompilerGenerated] + public class CompilerClass359 + { + [StructLayout(LayoutKind.Explicit, Pack = 1, Size = 80)] + public struct Struct93 + { + } - public static Struct93 Struct930; + public static Struct93 Struct930; - public static Struct93 Struct931; - } -} + public static Struct93 Struct931; + } +} \ No newline at end of file diff --git a/GHNamespaceN/Control1.cs b/GHNamespaceN/Control1.cs index 5a41424..dc773d1 100644 --- a/GHNamespaceN/Control1.cs +++ b/GHNamespaceN/Control1.cs @@ -7,825 +7,855 @@ namespace GHNamespaceN { - public class Control1 : Control - { - public enum Enum40 - { - Const0, - Const1, - Const2, - Const3 - } + public class Control1 : Control + { + public enum Enum40 + { + Const0, + Const1, + Const2, + Const3 + } - private EventHandler _eventHandler0; + private EventHandler _eventHandler0; - private ScrollEventHandler _scrollEventHandler0; + private ScrollEventHandler _scrollEventHandler0; - private bool _bool0; + private bool _bool0; - private Orientation _orientation0; + private Orientation _orientation0; - private bool _bool1; + private bool _bool1; - private bool _bool2; + private bool _bool2; - private readonly ToolTip _toolTip0 = new ToolTip(); + private readonly ToolTip _toolTip0 = new ToolTip(); - private string _string0 = "{0}"; + private string _string0 = "{0}"; - private bool _bool3; + private bool _bool3; - private readonly bool _bool4 = true; + private readonly bool _bool4 = true; - private int _int0 = 10; + private int _int0 = 10; - private RectangleF _rectangleF0; + private RectangleF _rectangleF0; - private RectangleF _rectangleF1; + private RectangleF _rectangleF1; - private RectangleF _rectangleF2; + private RectangleF _rectangleF2; - private RectangleF _rectangleF3; + private RectangleF _rectangleF3; - private RectangleF _rectangleF4; + private RectangleF _rectangleF4; - private int _int1 = 15; + private int _int1 = 15; - private GraphicsPath _graphicsPath0; + private GraphicsPath _graphicsPath0; - private SizeF _sizeF0 = new SizeF(50f, 50f); + private SizeF _sizeF0 = new SizeF(50f, 50f); - private readonly bool _bool5 = true; + private readonly bool _bool5 = true; - private Image _image0; + private Image _image0; - private Color _color0 = Color.White; + private Color _color0 = Color.White; - private Color _color1 = Color.Gainsboro; + private Color _color1 = Color.Gainsboro; - private Color _color2 = Color.Silver; + private Color _color2 = Color.Silver; - private float _float0 = 100f; + private float _float0 = 100f; - private float _float1 = 33f; + private float _float1 = 33f; - private Color _color3 = Color.SkyBlue; + private Color _color3 = Color.SkyBlue; - private Color _color4 = Color.DarkSlateBlue; + private Color _color4 = Color.DarkSlateBlue; - private Color _color5 = Color.Gainsboro; + private Color _color5 = Color.Gainsboro; - private Color _color6 = Color.DarkGreen; + private Color _color6 = Color.DarkGreen; - private Color _color7 = Color.Chartreuse; + private Color _color7 = Color.Chartreuse; - private int _int2 = 50; + private int _int2 = 50; - private int _int3; + private int _int3; - private int _int4 = 100; + private int _int4 = 100; - private uint _uint0 = 1u; + private uint _uint0 = 1u; - private uint _uint1 = 5u; + private uint _uint1 = 5u; - private readonly Color[,] _color8; + private readonly Color[,] _color8; - private Enum40 _enum400; + private Enum40 _enum400; - private float _float2; + private float _float2; - private bool _bool6; + private bool _bool6; - private bool _bool7; + private bool _bool7; - private int _int5; + private int _int5; - private int _int6; + private int _int6; - private int _int7; + private int _int7; - private static readonly Class361 Class3610 = new Class361(); + private static readonly Class361 Class3610 = new Class361(); - private IContainer icontainer_0; + private IContainer icontainer_0; - public void method_0(EventHandler eventHandler1) - { - var eventHandler = _eventHandler0; - EventHandler eventHandler2; - do - { - eventHandler2 = eventHandler; - var value = (EventHandler)Delegate.Combine(eventHandler2, eventHandler1); - eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); - } - while (eventHandler != eventHandler2); - } + public void method_0(EventHandler eventHandler1) + { + var eventHandler = _eventHandler0; + EventHandler eventHandler2; + do + { + eventHandler2 = eventHandler; + var value = (EventHandler) Delegate.Combine(eventHandler2, eventHandler1); + eventHandler = Interlocked.CompareExchange(ref _eventHandler0, value, eventHandler2); + } while (eventHandler != eventHandler2); + } - public void method_1(string string1) - { - _string0 = string1; - Invalidate(); - } + public void method_1(string string1) + { + _string0 = string1; + Invalidate(); + } - public void method_2(bool bool8) - { - _bool3 = bool8; - Invalidate(); - } + public void method_2(bool bool8) + { + _bool3 = bool8; + Invalidate(); + } - public string method_3() - { - if (!_bool3) - { - return string.Format(_string0, method_13()); - } - return smethod_4(TimeSpan.FromSeconds(method_13()), _string0); - } + public string method_3() + { + if (!_bool3) + { + return string.Format(_string0, method_13()); + } + return smethod_4(TimeSpan.FromSeconds(method_13()), _string0); + } - public void method_4(int int8) - { - if (int8 <= 0) - { - throw new ArgumentOutOfRangeException("MouseWheelBarPartitions has to be greater than zero"); - } - _int0 = int8; - } - - public void method_5(int int8) - { - if (!(int8 > 0 & int8 < ((_orientation0 == Orientation.Horizontal) ? ClientRectangle.Width : ClientRectangle.Height))) - { - throw new ArgumentOutOfRangeException("TrackSize has to be greater than zero and lower than half of Slider width"); - } - _int1 = int8; - Invalidate(); - } - - public void method_6(SizeF sizeF1) - { - _sizeF0.Width = ((sizeF1.Width < 1f) ? 1f : ((sizeF1.Width > 100f) ? 100f : sizeF1.Width)); - _sizeF0.Height = ((sizeF1.Height < 1f) ? 1f : ((sizeF1.Height > 100f) ? 100f : sizeF1.Height)); - Invalidate(); - } - - public void method_7(float float3) - { - _float0 = ((float3 < 1f) ? 1f : ((float3 > 100f) ? 100f : float3)); - Invalidate(); - } - - public void method_8(float float3) - { - _float1 = ((float3 < 0f) ? 0f : ((float3 > 100f) ? 100f : float3)); - Invalidate(); - } - - public void method_9(Color color9) - { - _color3 = color9; - Invalidate(); - } - - public void method_10(Color color9) - { - _color4 = color9; - Invalidate(); - } - - public void method_11(Color color9) - { - _color6 = color9; - Invalidate(); - } - - public void method_12(Color color9) - { - _color7 = color9; - Invalidate(); - } - - public int method_13() - { - if (!_bool0) - { - return _int2; - } - return method_17() - _int2 + method_15(); - } - - public void method_14(int int8) - { - if (int8 < _int3) - { - _int2 = _int3; - } - else if (int8 > _int4) - { - _int2 = _int4; - } - else - { - _int2 = (_bool0 ? (method_17() - int8 + method_15()) : int8); - } - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - Invalidate(); - } - - public int method_15() - { - return _int3; - } - - public void method_16(int int8) - { - if (int8 >= _int4) - { - throw new ArgumentOutOfRangeException("Minimal value is greater than maximal one"); - } - _int3 = int8; - if (_int2 < _int3) - { - _int2 = _int3; - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - } - Invalidate(); - } - - public int method_17() - { - return _int4; - } - - public void method_18(int int8) - { - if (int8 <= _int3) - { - _int4 = _int3; - } - _int4 = int8; - if (_int2 > _int4) - { - _int2 = _int4; - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - } - Invalidate(); - } - - public void method_19(uint uint2) - { - _uint0 = uint2; - } - - public void method_20(uint uint2) - { - _uint1 = uint2; - } - - public void method_21(Enum40 enum401) - { - _enum400 = enum401; - var b = (byte)enum401; - _color0 = _color8[b, 0]; - _color1 = _color8[b, 1]; - _color2 = _color8[b, 2]; - _color3 = _color8[b, 3]; - _color4 = _color8[b, 4]; - _color5 = _color8[b, 5]; - _color6 = _color8[b, 6]; - _color7 = _color8[b, 7]; - Invalidate(); - } - - public Control1(int int8, int int9, int int10) - { - var array = new Color[4, 8]; - array[0, 0] = Color.White; - array[0, 1] = Color.Gainsboro; - array[0, 2] = Color.Silver; - array[0, 3] = Color.SkyBlue; - array[0, 4] = Color.DarkSlateBlue; - array[0, 5] = Color.Gainsboro; - array[0, 6] = Color.DarkGreen; - array[0, 7] = Color.Chartreuse; - array[1, 0] = Color.White; - array[1, 1] = Color.Gainsboro; - array[1, 2] = Color.Silver; - array[1, 3] = Color.Red; - array[1, 4] = Color.DarkRed; - array[1, 5] = Color.Gainsboro; - array[1, 6] = Color.Coral; - array[1, 7] = Color.LightCoral; - array[2, 0] = Color.White; - array[2, 1] = Color.Gainsboro; - array[2, 2] = Color.Silver; - array[2, 3] = Color.GreenYellow; - array[2, 4] = Color.Yellow; - array[2, 5] = Color.Gold; - array[2, 6] = Color.Orange; - array[2, 7] = Color.OrangeRed; - array[3, 0] = Color.White; - array[3, 1] = Color.Gainsboro; - array[3, 2] = Color.Silver; - array[3, 3] = Color.Red; - array[3, 4] = Color.Crimson; - array[3, 5] = Color.Gainsboro; - array[3, 6] = Color.DarkViolet; - array[3, 7] = Color.Violet; - _color8 = array; - - method_24(); - SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.Selectable | ControlStyles.UserMouse | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); - BackColor = Color.Transparent; - method_16(int8); - method_18(int9); - method_14(int10); - } - - public Control1() : this(0, 100, 50) - { - } - - protected override void OnPaint(PaintEventArgs e) - { - if (!Enabled) - { - var array = smethod_1(new[] - { - _color0, - _color1, - _color2, - _bool0 ? _color6 : _color3, - _bool0 ? _color7 : _color4, - _color5, - _bool0 ? _color3 : _color6, - _bool0 ? _color4 : _color7 - }); - method_22(e, array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]); - return; - } - if (_bool4 && _bool6) - { - var array2 = smethod_2(new[] - { - _color0, - _color1, - _color2, - _bool0 ? _color6 : _color3, - _bool0 ? _color7 : _color4, - _color5, - _bool0 ? _color3 : _color6, - _bool0 ? _color4 : _color7 - }); - method_22(e, array2[0], array2[1], array2[2], array2[3], array2[4], array2[5], array2[6], array2[7]); - return; - } - method_22(e, _color0, _color1, _color2, _bool0 ? _color6 : _color3, _bool0 ? _color7 : _color4, _color5, _bool0 ? _color3 : _color6, _bool0 ? _color4 : _color7); - } - - private void method_22(PaintEventArgs paintEventArgs0, Color color9, Color color10, Color color11, Color color12, Color color13, Color color14, Color color15, Color color16) - { - try - { - if (_orientation0 == Orientation.Horizontal) - { - var x = (_int2 - _int3) * (ClientRectangle.Width - _int1) / (float)(_int4 - _int3); - _rectangleF0 = new RectangleF(x, 1f, _int1 - 1, ClientRectangle.Height - 2); - } - else - { - var y = (_int2 - _int3) * (ClientRectangle.Height - _int1) / (float)(_int4 - _int3); - _rectangleF0 = new RectangleF(1f, y, ClientRectangle.Width - 2, _int1 - 1); - } - _rectangleF1 = ClientRectangle; - _rectangleF3 = _rectangleF0; - LinearGradientMode linearGradientMode; - SizeF sizeF; - if (_orientation0 == Orientation.Horizontal) - { - _rectangleF1.Inflate(-1f, -_rectangleF1.Height * (100f - _float1) / 200f - 1f); - _rectangleF2 = _rectangleF1; - _rectangleF2.Height = _rectangleF2.Height / 2f; - linearGradientMode = LinearGradientMode.Vertical; - _rectangleF3.Height = _rectangleF3.Height / 2f; - _rectangleF4 = _rectangleF1; - _rectangleF4.Width = _rectangleF0.Left + _int1 / 2f; - sizeF = new SizeF(_rectangleF1.Height * _float0 / 50f, _rectangleF1.Height * _float0 / 50f); - } - else - { - _rectangleF1.Inflate(-_rectangleF1.Width * (100f - _float1) / 200f - 1f, -1f); - _rectangleF2 = _rectangleF1; - _rectangleF2.Width = _rectangleF2.Width / 2f; - linearGradientMode = LinearGradientMode.Horizontal; - _rectangleF3.Width = _rectangleF3.Width / 2f; - _rectangleF4 = _rectangleF1; - _rectangleF4.Height = _rectangleF0.Top + _int1 / 2f; - sizeF = new SizeF(_rectangleF1.Width * _float0 / 50f, _rectangleF1.Width * _float0 / 50f); - } - if (_string0.Length > 0 && (Capture || _bool7)) - { - if (_orientation0 == Orientation.Horizontal) - { - if (_rectangleF0.X != _float2) - { - _toolTip0.Show(method_3(), this, (int)((_float2 = _rectangleF0.X) + _rectangleF0.Width * 5f / 4f), (int)_rectangleF0.Y); - } - } - else if (_rectangleF0.Y != _float2) - { - _toolTip0.Show(method_3(), this, (int)(_rectangleF0.X + _rectangleF0.Width * 5f / 4f), (int)(_float2 = _rectangleF0.Y)); - } - } - else if (_string0.Length > 0 && _bool6) - { - var text = _bool3 ? smethod_4(TimeSpan.FromSeconds(_int7), _string0) : string.Format(_string0, _int7); - if (_orientation0 == Orientation.Horizontal) - { - if (_int5 != _float2) - { - _toolTip0.Show(text, this, (int)((_float2 = _int5) + 25f), _int6); - } - } - else if (_int5 != _float2) - { - _toolTip0.Show(text, this, _int5 + 25, (int)(_float2 = _int6)); - } - } - else - { - _toolTip0.Hide(this); - _float2 = -1f; - } - GraphicsPath graphicsPath; - if (_graphicsPath0 == null) - { - graphicsPath = smethod_0(_rectangleF0, new SizeF(_rectangleF0.Width * _sizeF0.Width / 50f, _rectangleF0.Height * _sizeF0.Height / 50f)); - } - else - { - graphicsPath = _graphicsPath0; - var matrix = new Matrix(); - matrix.Translate(_rectangleF0.Left - graphicsPath.GetBounds().Left, _rectangleF0.Top - graphicsPath.GetBounds().Top); - graphicsPath.Transform(matrix); - } - paintEventArgs0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; - using (var graphicsPath2 = smethod_0(_rectangleF1, sizeF)) - { - using (var linearGradientBrush = new LinearGradientBrush(_rectangleF2, color12, color13, linearGradientMode)) - { - linearGradientBrush.WrapMode = WrapMode.TileFlipXY; - paintEventArgs0.Graphics.FillPath(linearGradientBrush, graphicsPath2); - using (var graphicsPath3 = smethod_0(_rectangleF4, sizeF)) - { - using (var linearGradientBrush2 = new LinearGradientBrush(_rectangleF2, color15, color16, linearGradientMode)) - { - linearGradientBrush2.WrapMode = WrapMode.TileFlipXY; - if (Capture && _bool5) - { - var region = new Region(graphicsPath3); - region.Exclude(graphicsPath); - paintEventArgs0.Graphics.FillRegion(linearGradientBrush2, region); - } - else - { - paintEventArgs0.Graphics.FillPath(linearGradientBrush2, graphicsPath3); - } - } - } - using (var pen = new Pen(color14, 0.5f)) - { - paintEventArgs0.Graphics.DrawPath(pen, graphicsPath2); - } - } - } - var color = color9; - var color2 = color10; - if (Capture && _bool5) - { - color = Color.FromArgb(175, color9); - color2 = Color.FromArgb(175, color10); - } - using (var linearGradientBrush3 = new LinearGradientBrush(_rectangleF3, color, color2, linearGradientMode)) - { - linearGradientBrush3.WrapMode = WrapMode.TileFlipXY; - paintEventArgs0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; - var color3 = color11; - if (_bool4 && (Capture || _bool7)) - { - color3 = ControlPaint.Dark(color3); - } - using (var pen2 = new Pen(color3)) - { - if (_image0 != null) - { - paintEventArgs0.Graphics.DrawImage(_image0, _rectangleF0); - } - else - { - paintEventArgs0.Graphics.FillPath(linearGradientBrush3, graphicsPath); - paintEventArgs0.Graphics.DrawPath(pen2, graphicsPath); - } - } - } - if (Focused & _bool1) - { - using (var pen3 = new Pen(Color.FromArgb(200, color14))) - { - pen3.DashStyle = DashStyle.Dot; - RectangleF rectangleF = ClientRectangle; - rectangleF.Width -= 2f; - rectangleF.Height -= 1f; - rectangleF.X += 1f; - using (var graphicsPath4 = smethod_0(rectangleF, sizeF)) - { - paintEventArgs0.Graphics.DrawPath(pen3, graphicsPath4); - } - } - } - } - catch (Exception ex) - { - Console.WriteLine("DrawBackGround Error in " + Name + ":" + ex.Message); - } - } + public void method_4(int int8) + { + if (int8 <= 0) + { + throw new ArgumentOutOfRangeException("MouseWheelBarPartitions has to be greater than zero"); + } + _int0 = int8; + } + + public void method_5(int int8) + { + if (!(int8 > 0 & int8 < ((_orientation0 == Orientation.Horizontal) + ? ClientRectangle.Width + : ClientRectangle.Height))) + { + throw new ArgumentOutOfRangeException( + "TrackSize has to be greater than zero and lower than half of Slider width"); + } + _int1 = int8; + Invalidate(); + } + + public void method_6(SizeF sizeF1) + { + _sizeF0.Width = ((sizeF1.Width < 1f) ? 1f : ((sizeF1.Width > 100f) ? 100f : sizeF1.Width)); + _sizeF0.Height = ((sizeF1.Height < 1f) ? 1f : ((sizeF1.Height > 100f) ? 100f : sizeF1.Height)); + Invalidate(); + } + + public void method_7(float float3) + { + _float0 = ((float3 < 1f) ? 1f : ((float3 > 100f) ? 100f : float3)); + Invalidate(); + } + + public void method_8(float float3) + { + _float1 = ((float3 < 0f) ? 0f : ((float3 > 100f) ? 100f : float3)); + Invalidate(); + } + + public void method_9(Color color9) + { + _color3 = color9; + Invalidate(); + } + + public void method_10(Color color9) + { + _color4 = color9; + Invalidate(); + } + + public void method_11(Color color9) + { + _color6 = color9; + Invalidate(); + } + + public void method_12(Color color9) + { + _color7 = color9; + Invalidate(); + } + + public int method_13() + { + if (!_bool0) + { + return _int2; + } + return method_17() - _int2 + method_15(); + } + + public void method_14(int int8) + { + if (int8 < _int3) + { + _int2 = _int3; + } + else if (int8 > _int4) + { + _int2 = _int4; + } + else + { + _int2 = (_bool0 ? (method_17() - int8 + method_15()) : int8); + } + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + Invalidate(); + } + + public int method_15() + { + return _int3; + } + + public void method_16(int int8) + { + if (int8 >= _int4) + { + throw new ArgumentOutOfRangeException("Minimal value is greater than maximal one"); + } + _int3 = int8; + if (_int2 < _int3) + { + _int2 = _int3; + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + } + Invalidate(); + } + + public int method_17() + { + return _int4; + } + + public void method_18(int int8) + { + if (int8 <= _int3) + { + _int4 = _int3; + } + _int4 = int8; + if (_int2 > _int4) + { + _int2 = _int4; + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + } + Invalidate(); + } + + public void method_19(uint uint2) + { + _uint0 = uint2; + } + + public void method_20(uint uint2) + { + _uint1 = uint2; + } + + public void method_21(Enum40 enum401) + { + _enum400 = enum401; + var b = (byte) enum401; + _color0 = _color8[b, 0]; + _color1 = _color8[b, 1]; + _color2 = _color8[b, 2]; + _color3 = _color8[b, 3]; + _color4 = _color8[b, 4]; + _color5 = _color8[b, 5]; + _color6 = _color8[b, 6]; + _color7 = _color8[b, 7]; + Invalidate(); + } + + public Control1(int int8, int int9, int int10) + { + var array = new Color[4, 8]; + array[0, 0] = Color.White; + array[0, 1] = Color.Gainsboro; + array[0, 2] = Color.Silver; + array[0, 3] = Color.SkyBlue; + array[0, 4] = Color.DarkSlateBlue; + array[0, 5] = Color.Gainsboro; + array[0, 6] = Color.DarkGreen; + array[0, 7] = Color.Chartreuse; + array[1, 0] = Color.White; + array[1, 1] = Color.Gainsboro; + array[1, 2] = Color.Silver; + array[1, 3] = Color.Red; + array[1, 4] = Color.DarkRed; + array[1, 5] = Color.Gainsboro; + array[1, 6] = Color.Coral; + array[1, 7] = Color.LightCoral; + array[2, 0] = Color.White; + array[2, 1] = Color.Gainsboro; + array[2, 2] = Color.Silver; + array[2, 3] = Color.GreenYellow; + array[2, 4] = Color.Yellow; + array[2, 5] = Color.Gold; + array[2, 6] = Color.Orange; + array[2, 7] = Color.OrangeRed; + array[3, 0] = Color.White; + array[3, 1] = Color.Gainsboro; + array[3, 2] = Color.Silver; + array[3, 3] = Color.Red; + array[3, 4] = Color.Crimson; + array[3, 5] = Color.Gainsboro; + array[3, 6] = Color.DarkViolet; + array[3, 7] = Color.Violet; + _color8 = array; + + method_24(); + SetStyle( + ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.Selectable | + ControlStyles.UserMouse | ControlStyles.SupportsTransparentBackColor | + ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); + BackColor = Color.Transparent; + method_16(int8); + method_18(int9); + method_14(int10); + } + + public Control1() : this(0, 100, 50) + { + } + + protected override void OnPaint(PaintEventArgs e) + { + if (!Enabled) + { + var array = smethod_1(new[] + { + _color0, + _color1, + _color2, + _bool0 ? _color6 : _color3, + _bool0 ? _color7 : _color4, + _color5, + _bool0 ? _color3 : _color6, + _bool0 ? _color4 : _color7 + }); + method_22(e, array[0], array[1], array[2], array[3], array[4], array[5], array[6], array[7]); + return; + } + if (_bool4 && _bool6) + { + var array2 = smethod_2(new[] + { + _color0, + _color1, + _color2, + _bool0 ? _color6 : _color3, + _bool0 ? _color7 : _color4, + _color5, + _bool0 ? _color3 : _color6, + _bool0 ? _color4 : _color7 + }); + method_22(e, array2[0], array2[1], array2[2], array2[3], array2[4], array2[5], array2[6], array2[7]); + return; + } + method_22(e, _color0, _color1, _color2, _bool0 ? _color6 : _color3, _bool0 ? _color7 : _color4, _color5, + _bool0 ? _color3 : _color6, _bool0 ? _color4 : _color7); + } + + private void method_22(PaintEventArgs paintEventArgs0, Color color9, Color color10, Color color11, + Color color12, Color color13, Color color14, Color color15, Color color16) + { + try + { + if (_orientation0 == Orientation.Horizontal) + { + var x = (_int2 - _int3) * (ClientRectangle.Width - _int1) / (float) (_int4 - _int3); + _rectangleF0 = new RectangleF(x, 1f, _int1 - 1, ClientRectangle.Height - 2); + } + else + { + var y = (_int2 - _int3) * (ClientRectangle.Height - _int1) / (float) (_int4 - _int3); + _rectangleF0 = new RectangleF(1f, y, ClientRectangle.Width - 2, _int1 - 1); + } + _rectangleF1 = ClientRectangle; + _rectangleF3 = _rectangleF0; + LinearGradientMode linearGradientMode; + SizeF sizeF; + if (_orientation0 == Orientation.Horizontal) + { + _rectangleF1.Inflate(-1f, -_rectangleF1.Height * (100f - _float1) / 200f - 1f); + _rectangleF2 = _rectangleF1; + _rectangleF2.Height = _rectangleF2.Height / 2f; + linearGradientMode = LinearGradientMode.Vertical; + _rectangleF3.Height = _rectangleF3.Height / 2f; + _rectangleF4 = _rectangleF1; + _rectangleF4.Width = _rectangleF0.Left + _int1 / 2f; + sizeF = new SizeF(_rectangleF1.Height * _float0 / 50f, _rectangleF1.Height * _float0 / 50f); + } + else + { + _rectangleF1.Inflate(-_rectangleF1.Width * (100f - _float1) / 200f - 1f, -1f); + _rectangleF2 = _rectangleF1; + _rectangleF2.Width = _rectangleF2.Width / 2f; + linearGradientMode = LinearGradientMode.Horizontal; + _rectangleF3.Width = _rectangleF3.Width / 2f; + _rectangleF4 = _rectangleF1; + _rectangleF4.Height = _rectangleF0.Top + _int1 / 2f; + sizeF = new SizeF(_rectangleF1.Width * _float0 / 50f, _rectangleF1.Width * _float0 / 50f); + } + if (_string0.Length > 0 && (Capture || _bool7)) + { + if (_orientation0 == Orientation.Horizontal) + { + if (_rectangleF0.X != _float2) + { + _toolTip0.Show(method_3(), this, + (int) ((_float2 = _rectangleF0.X) + _rectangleF0.Width * 5f / 4f), + (int) _rectangleF0.Y); + } + } + else if (_rectangleF0.Y != _float2) + { + _toolTip0.Show(method_3(), this, (int) (_rectangleF0.X + _rectangleF0.Width * 5f / 4f), + (int) (_float2 = _rectangleF0.Y)); + } + } + else if (_string0.Length > 0 && _bool6) + { + var text = _bool3 + ? smethod_4(TimeSpan.FromSeconds(_int7), _string0) + : string.Format(_string0, _int7); + if (_orientation0 == Orientation.Horizontal) + { + if (_int5 != _float2) + { + _toolTip0.Show(text, this, (int) ((_float2 = _int5) + 25f), _int6); + } + } + else if (_int5 != _float2) + { + _toolTip0.Show(text, this, _int5 + 25, (int) (_float2 = _int6)); + } + } + else + { + _toolTip0.Hide(this); + _float2 = -1f; + } + GraphicsPath graphicsPath; + if (_graphicsPath0 == null) + { + graphicsPath = smethod_0(_rectangleF0, + new SizeF(_rectangleF0.Width * _sizeF0.Width / 50f, + _rectangleF0.Height * _sizeF0.Height / 50f)); + } + else + { + graphicsPath = _graphicsPath0; + var matrix = new Matrix(); + matrix.Translate(_rectangleF0.Left - graphicsPath.GetBounds().Left, + _rectangleF0.Top - graphicsPath.GetBounds().Top); + graphicsPath.Transform(matrix); + } + paintEventArgs0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; + using (var graphicsPath2 = smethod_0(_rectangleF1, sizeF)) + { + using (var linearGradientBrush = + new LinearGradientBrush(_rectangleF2, color12, color13, linearGradientMode)) + { + linearGradientBrush.WrapMode = WrapMode.TileFlipXY; + paintEventArgs0.Graphics.FillPath(linearGradientBrush, graphicsPath2); + using (var graphicsPath3 = smethod_0(_rectangleF4, sizeF)) + { + using (var linearGradientBrush2 = + new LinearGradientBrush(_rectangleF2, color15, color16, linearGradientMode)) + { + linearGradientBrush2.WrapMode = WrapMode.TileFlipXY; + if (Capture && _bool5) + { + var region = new Region(graphicsPath3); + region.Exclude(graphicsPath); + paintEventArgs0.Graphics.FillRegion(linearGradientBrush2, region); + } + else + { + paintEventArgs0.Graphics.FillPath(linearGradientBrush2, graphicsPath3); + } + } + } + using (var pen = new Pen(color14, 0.5f)) + { + paintEventArgs0.Graphics.DrawPath(pen, graphicsPath2); + } + } + } + var color = color9; + var color2 = color10; + if (Capture && _bool5) + { + color = Color.FromArgb(175, color9); + color2 = Color.FromArgb(175, color10); + } + using (var linearGradientBrush3 = + new LinearGradientBrush(_rectangleF3, color, color2, linearGradientMode)) + { + linearGradientBrush3.WrapMode = WrapMode.TileFlipXY; + paintEventArgs0.Graphics.SmoothingMode = SmoothingMode.AntiAlias; + var color3 = color11; + if (_bool4 && (Capture || _bool7)) + { + color3 = ControlPaint.Dark(color3); + } + using (var pen2 = new Pen(color3)) + { + if (_image0 != null) + { + paintEventArgs0.Graphics.DrawImage(_image0, _rectangleF0); + } + else + { + paintEventArgs0.Graphics.FillPath(linearGradientBrush3, graphicsPath); + paintEventArgs0.Graphics.DrawPath(pen2, graphicsPath); + } + } + } + if (Focused & _bool1) + { + using (var pen3 = new Pen(Color.FromArgb(200, color14))) + { + pen3.DashStyle = DashStyle.Dot; + RectangleF rectangleF = ClientRectangle; + rectangleF.Width -= 2f; + rectangleF.Height -= 1f; + rectangleF.X += 1f; + using (var graphicsPath4 = smethod_0(rectangleF, sizeF)) + { + paintEventArgs0.Graphics.DrawPath(pen3, graphicsPath4); + } + } + } + } + catch (Exception ex) + { + Console.WriteLine("DrawBackGround Error in " + Name + ":" + ex.Message); + } + } protected override void OnEnabledChanged(EventArgs e) - { - base.OnEnabledChanged(e); - Invalidate(); - } - - protected override void OnMouseEnter(EventArgs e) - { - base.OnMouseEnter(e); - _bool6 = true; - Invalidate(); - } + { + base.OnEnabledChanged(e); + Invalidate(); + } + + protected override void OnMouseEnter(EventArgs e) + { + base.OnMouseEnter(e); + _bool6 = true; + Invalidate(); + } protected override void OnMouseLeave(EventArgs e) - { - base.OnMouseLeave(e); - _bool6 = false; - _bool7 = false; - Invalidate(); - } + { + base.OnMouseLeave(e); + _bool6 = false; + _bool7 = false; + Invalidate(); + } protected override void OnMouseDown(MouseEventArgs e) - { - base.OnMouseDown(e); - if (e.Button == MouseButtons.Left) - { - Capture = true; - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.ThumbTrack, _int2)); - } - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - OnMouseMove(e); - } - } + { + base.OnMouseDown(e); + if (e.Button == MouseButtons.Left) + { + Capture = true; + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.ThumbTrack, _int2)); + } + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + OnMouseMove(e); + } + } protected override void OnMouseMove(MouseEventArgs e) - { - base.OnMouseMove(e); - _int5 = e.X; - _int6 = e.Y; - _bool7 = smethod_3(e.Location, _rectangleF0); - var location = e.Location; - var num = (_orientation0 == Orientation.Horizontal) ? location.X : location.Y; - var num2 = _int1 >> 1; - num -= num2; - var num3 = (_int4 - _int3) / (float)(((_orientation0 == Orientation.Horizontal) ? ClientSize.Width : ClientSize.Height) - 2 * num2); - _int7 = (int)(num * num3 + _int3); - if (Capture & e.Button == MouseButtons.Left) - { - var type = ScrollEventType.ThumbPosition; - _int2 = _int7; - if (_int2 <= _int3) - { - _int2 = _int3; - type = ScrollEventType.First; - } - else if (_int2 >= _int4) - { - _int2 = _int4; - type = ScrollEventType.Last; - } - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(type, _int2)); - } - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - } - if (_int7 < _int3) - { - _int7 = _int3; - } - else if (_int7 > _int4) - { - _int7 = _int4; - } - if (_bool0) - { - _int7 = _int4 - _int7 + _int3; - } - Invalidate(); - } + { + base.OnMouseMove(e); + _int5 = e.X; + _int6 = e.Y; + _bool7 = smethod_3(e.Location, _rectangleF0); + var location = e.Location; + var num = (_orientation0 == Orientation.Horizontal) ? location.X : location.Y; + var num2 = _int1 >> 1; + num -= num2; + var num3 = (_int4 - _int3) / (float) (((_orientation0 == Orientation.Horizontal) + ? ClientSize.Width + : ClientSize.Height) - 2 * num2); + _int7 = (int) (num * num3 + _int3); + if (Capture & e.Button == MouseButtons.Left) + { + var type = ScrollEventType.ThumbPosition; + _int2 = _int7; + if (_int2 <= _int3) + { + _int2 = _int3; + type = ScrollEventType.First; + } + else if (_int2 >= _int4) + { + _int2 = _int4; + type = ScrollEventType.Last; + } + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(type, _int2)); + } + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + } + if (_int7 < _int3) + { + _int7 = _int3; + } + else if (_int7 > _int4) + { + _int7 = _int4; + } + if (_bool0) + { + _int7 = _int4 - _int7 + _int3; + } + Invalidate(); + } protected override void OnMouseUp(MouseEventArgs e) - { - base.OnMouseUp(e); - Capture = false; - _bool7 = smethod_3(e.Location, _rectangleF0); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.EndScroll, _int2)); - } - if (_eventHandler0 != null) - { - _eventHandler0(this, new EventArgs()); - } - Invalidate(); - } - - protected override void OnMouseWheel(MouseEventArgs e) - { - if (_bool2) - { - base.OnMouseWheel(e); - var num = e.Delta / SystemInformation.MouseWheelScrollDelta * (_int4 - _int3) / _int0; - method_23(method_13() + num); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.EndScroll, _int2)); - } - } - } + { + base.OnMouseUp(e); + Capture = false; + _bool7 = smethod_3(e.Location, _rectangleF0); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.EndScroll, _int2)); + } + if (_eventHandler0 != null) + { + _eventHandler0(this, new EventArgs()); + } + Invalidate(); + } + + protected override void OnMouseWheel(MouseEventArgs e) + { + if (_bool2) + { + base.OnMouseWheel(e); + var num = e.Delta / SystemInformation.MouseWheelScrollDelta * (_int4 - _int3) / _int0; + method_23(method_13() + num); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.EndScroll, _int2)); + } + } + } protected override void OnGotFocus(EventArgs e) - { - base.OnGotFocus(e); - Invalidate(); - } + { + base.OnGotFocus(e); + Invalidate(); + } protected override void OnLostFocus(EventArgs e) - { - base.OnLostFocus(e); - Invalidate(); - } + { + base.OnLostFocus(e); + Invalidate(); + } protected override void OnKeyUp(KeyEventArgs e) - { - base.OnKeyUp(e); - switch (e.KeyCode) - { - case Keys.Prior: - method_23(method_13() + (int)_uint1); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.LargeIncrement, method_13())); - } - break; - case Keys.Next: - method_23(method_13() - (int)_uint1); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.LargeDecrement, method_13())); - } - break; - case Keys.End: - method_14(_int4); - break; - case Keys.Home: - method_14(_int3); - break; - case Keys.Left: - case Keys.Down: - method_23(method_13() - (int)_uint0); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.SmallDecrement, method_13())); - } - break; - case Keys.Up: - case Keys.Right: - method_23(method_13() + (int)_uint0); - if (_scrollEventHandler0 != null) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.SmallIncrement, method_13())); - } - break; - } - if (_scrollEventHandler0 != null && method_13() == _int3) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.First, method_13())); - } - if (_scrollEventHandler0 != null && method_13() == _int4) - { - _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.Last, method_13())); - } - var point = PointToClient(Cursor.Position); - OnMouseMove(new MouseEventArgs(MouseButtons.None, 0, point.X, point.Y, 0)); - } - - protected override bool ProcessDialogKey(Keys keyData) - { - if (keyData == Keys.Tab | ModifierKeys == Keys.Shift) - { - return base.ProcessDialogKey(keyData); - } - OnKeyDown(new KeyEventArgs(keyData)); - return true; - } - - public static GraphicsPath smethod_0(RectangleF rectangleF5, SizeF sizeF1) - { - var graphicsPath = new GraphicsPath(); - graphicsPath.AddLine(rectangleF5.Left + sizeF1.Width / 2f, rectangleF5.Top, rectangleF5.Right - sizeF1.Width / 2f, rectangleF5.Top); - graphicsPath.AddArc(rectangleF5.Right - sizeF1.Width, rectangleF5.Top, sizeF1.Width, sizeF1.Height, 270f, 90f); - graphicsPath.AddLine(rectangleF5.Right, rectangleF5.Top + sizeF1.Height / 2f, rectangleF5.Right, rectangleF5.Bottom - sizeF1.Height / 2f); - graphicsPath.AddArc(rectangleF5.Right - sizeF1.Width, rectangleF5.Bottom - sizeF1.Height, sizeF1.Width, sizeF1.Height, 0f, 90f); - graphicsPath.AddLine(rectangleF5.Right - sizeF1.Width / 2f, rectangleF5.Bottom, rectangleF5.Left + sizeF1.Width / 2f, rectangleF5.Bottom); - graphicsPath.AddArc(rectangleF5.Left, rectangleF5.Bottom - sizeF1.Height, sizeF1.Width, sizeF1.Height, 90f, 90f); - graphicsPath.AddLine(rectangleF5.Left, rectangleF5.Bottom - sizeF1.Height / 2f, rectangleF5.Left, rectangleF5.Top + sizeF1.Height / 2f); - graphicsPath.AddArc(rectangleF5.Left, rectangleF5.Top, sizeF1.Width, sizeF1.Height, 180f, 90f); - return graphicsPath; - } - - public static Color[] smethod_1(Color[] color9) - { - var array = new Color[color9.Length]; - for (var i = 0; i < color9.Length; i++) - { - var num = (int)(color9[i].R * 0.3 + color9[i].G * 0.6 + color9[i].B * 0.1); - array[i] = Color.FromArgb(-65793 * (255 - num) - 1); - } - return array; - } - - public static Color[] smethod_2(Color[] color9) - { - var array = new Color[color9.Length]; - for (var i = 0; i < color9.Length; i++) - { - array[i] = ((color9[i] == Color.FromKnownColor(KnownColor.Transparent)) ? color9[i] : ControlPaint.Light(color9[i])); - } - return array; - } - - private void method_23(int int8) - { - method_14((int8 < _int3) ? _int3 : ((int8 > _int4) ? _int4 : int8)); - } - - private static bool smethod_3(Point point0, RectangleF rectangleF5) - { - return point0.X > rectangleF5.Left && point0.X < rectangleF5.Right && point0.Y > rectangleF5.Top && point0.Y < rectangleF5.Bottom; - } - - private static string smethod_4(TimeSpan timeSpan0, string string1) - { - if (string1.Length == 0) - { - return string.Empty; - } - if (!(string1 == "{0}")) - { - return string.Format(Class3610, string1, timeSpan0); - } - return timeSpan0.ToString(); - } + { + base.OnKeyUp(e); + switch (e.KeyCode) + { + case Keys.Prior: + method_23(method_13() + (int) _uint1); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.LargeIncrement, method_13())); + } + break; + case Keys.Next: + method_23(method_13() - (int) _uint1); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.LargeDecrement, method_13())); + } + break; + case Keys.End: + method_14(_int4); + break; + case Keys.Home: + method_14(_int3); + break; + case Keys.Left: + case Keys.Down: + method_23(method_13() - (int) _uint0); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.SmallDecrement, method_13())); + } + break; + case Keys.Up: + case Keys.Right: + method_23(method_13() + (int) _uint0); + if (_scrollEventHandler0 != null) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.SmallIncrement, method_13())); + } + break; + } + if (_scrollEventHandler0 != null && method_13() == _int3) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.First, method_13())); + } + if (_scrollEventHandler0 != null && method_13() == _int4) + { + _scrollEventHandler0(this, new ScrollEventArgs(ScrollEventType.Last, method_13())); + } + var point = PointToClient(Cursor.Position); + OnMouseMove(new MouseEventArgs(MouseButtons.None, 0, point.X, point.Y, 0)); + } + + protected override bool ProcessDialogKey(Keys keyData) + { + if (keyData == Keys.Tab | ModifierKeys == Keys.Shift) + { + return base.ProcessDialogKey(keyData); + } + OnKeyDown(new KeyEventArgs(keyData)); + return true; + } + + public static GraphicsPath smethod_0(RectangleF rectangleF5, SizeF sizeF1) + { + var graphicsPath = new GraphicsPath(); + graphicsPath.AddLine(rectangleF5.Left + sizeF1.Width / 2f, rectangleF5.Top, + rectangleF5.Right - sizeF1.Width / 2f, rectangleF5.Top); + graphicsPath.AddArc(rectangleF5.Right - sizeF1.Width, rectangleF5.Top, sizeF1.Width, sizeF1.Height, 270f, + 90f); + graphicsPath.AddLine(rectangleF5.Right, rectangleF5.Top + sizeF1.Height / 2f, rectangleF5.Right, + rectangleF5.Bottom - sizeF1.Height / 2f); + graphicsPath.AddArc(rectangleF5.Right - sizeF1.Width, rectangleF5.Bottom - sizeF1.Height, sizeF1.Width, + sizeF1.Height, 0f, 90f); + graphicsPath.AddLine(rectangleF5.Right - sizeF1.Width / 2f, rectangleF5.Bottom, + rectangleF5.Left + sizeF1.Width / 2f, rectangleF5.Bottom); + graphicsPath.AddArc(rectangleF5.Left, rectangleF5.Bottom - sizeF1.Height, sizeF1.Width, sizeF1.Height, 90f, + 90f); + graphicsPath.AddLine(rectangleF5.Left, rectangleF5.Bottom - sizeF1.Height / 2f, rectangleF5.Left, + rectangleF5.Top + sizeF1.Height / 2f); + graphicsPath.AddArc(rectangleF5.Left, rectangleF5.Top, sizeF1.Width, sizeF1.Height, 180f, 90f); + return graphicsPath; + } + + public static Color[] smethod_1(Color[] color9) + { + var array = new Color[color9.Length]; + for (var i = 0; i < color9.Length; i++) + { + var num = (int) (color9[i].R * 0.3 + color9[i].G * 0.6 + color9[i].B * 0.1); + array[i] = Color.FromArgb(-65793 * (255 - num) - 1); + } + return array; + } + + public static Color[] smethod_2(Color[] color9) + { + var array = new Color[color9.Length]; + for (var i = 0; i < color9.Length; i++) + { + array[i] = ((color9[i] == Color.FromKnownColor(KnownColor.Transparent)) + ? color9[i] + : ControlPaint.Light(color9[i])); + } + return array; + } + + private void method_23(int int8) + { + method_14((int8 < _int3) ? _int3 : ((int8 > _int4) ? _int4 : int8)); + } + + private static bool smethod_3(Point point0, RectangleF rectangleF5) + { + return point0.X > rectangleF5.Left && point0.X < rectangleF5.Right && point0.Y > rectangleF5.Top && + point0.Y < rectangleF5.Bottom; + } + + private static string smethod_4(TimeSpan timeSpan0, string string1) + { + if (string1.Length == 0) + { + return string.Empty; + } + if (!(string1 == "{0}")) + { + return string.Format(Class3610, string1, timeSpan0); + } + return timeSpan0.ToString(); + } protected override void Dispose(bool disposing) - { - if (disposing && icontainer_0 != null) - { - icontainer_0.Dispose(); - } - base.Dispose(disposing); - } - - private void method_24() - { - SuspendLayout(); - Size = new Size(200, 30); - ResumeLayout(false); - } - } -} + { + if (disposing && icontainer_0 != null) + { + icontainer_0.Dispose(); + } + base.Dispose(disposing); + } + + private void method_24() + { + SuspendLayout(); + Size = new Size(200, 30); + ResumeLayout(false); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Difficulty.cs b/GHNamespaceN/Difficulty.cs index c79656f..1267e49 100644 --- a/GHNamespaceN/Difficulty.cs +++ b/GHNamespaceN/Difficulty.cs @@ -1,11 +1,11 @@ namespace GHNamespaceN { - public enum Difficulty - { - Easy, - Medium, - Hard, - Expert, - Invalid = -1 - } -} + public enum Difficulty + { + Easy, + Medium, + Hard, + Expert, + Invalid = -1 + } +} \ No newline at end of file diff --git a/GHNamespaceN/Fret.cs b/GHNamespaceN/Fret.cs index d9d0c25..07ab7ef 100644 --- a/GHNamespaceN/Fret.cs +++ b/GHNamespaceN/Fret.cs @@ -1,12 +1,12 @@ namespace GHNamespaceN { - public enum Fret - { - Green, - Red, - Yellow, - Blue, - Orange, - Invalid = -1 - } -} + public enum Fret + { + Green, + Red, + Yellow, + Blue, + Orange, + Invalid = -1 + } +} \ No newline at end of file diff --git a/GHNamespaceN/Interface14.cs b/GHNamespaceN/Interface14.cs index cf70c28..2f2e34f 100644 --- a/GHNamespaceN/Interface14.cs +++ b/GHNamespaceN/Interface14.cs @@ -1,7 +1,7 @@ namespace GHNamespaceN { - public interface INterface14 - { - int imethod_0(); - } -} + public interface INterface14 + { + int imethod_0(); + } +} \ No newline at end of file diff --git a/GHNamespaceN/Interface15.cs b/GHNamespaceN/Interface15.cs index 49b5cb4..c626053 100644 --- a/GHNamespaceN/Interface15.cs +++ b/GHNamespaceN/Interface15.cs @@ -1,9 +1,9 @@ namespace GHNamespaceN { - public interface INterface15 - { - void imethod_0(string string0); + public interface INterface15 + { + void imethod_0(string string0); - void imethod_1(string string0); - } -} + void imethod_1(string string0); + } +} \ No newline at end of file diff --git a/GHNamespaceN/LameEncoder.cs b/GHNamespaceN/LameEncoder.cs index f28cd21..3061d48 100644 --- a/GHNamespaceN/LameEncoder.cs +++ b/GHNamespaceN/LameEncoder.cs @@ -4,39 +4,40 @@ namespace GHNamespaceN { - public class LameEncoder - { - [DllImport("Lame_enc.dll")] - public static extern uint beInitStream(BeConfig beConfig0, ref uint uint0, ref uint uint1, ref uint uint2); + public class LameEncoder + { + [DllImport("Lame_enc.dll")] + public static extern uint beInitStream(BeConfig beConfig0, ref uint uint0, ref uint uint1, ref uint uint2); - [DllImport("Lame_enc.dll")] - public static extern uint beEncodeChunk(uint hbeStream, uint nSamples, IntPtr pSamples, [In] [Out] byte[] pOutput, ref uint pdwOutput); + [DllImport("Lame_enc.dll")] + public static extern uint beEncodeChunk(uint hbeStream, uint nSamples, IntPtr pSamples, + [In] [Out] byte[] pOutput, ref uint pdwOutput); - public static uint smethod_0(uint uint0, byte[] byte0, int int0, uint uint1, byte[] byte1, ref uint uint2) - { - var gCHandle = GCHandle.Alloc(byte0, GCHandleType.Pinned); - uint result; - try - { - var pSamples = (IntPtr)(gCHandle.AddrOfPinnedObject().ToInt32() + int0); - result = beEncodeChunk(uint0, uint1 / 2u, pSamples, byte1, ref uint2); - } - finally - { - gCHandle.Free(); - } - return result; - } + public static uint smethod_0(uint uint0, byte[] byte0, int int0, uint uint1, byte[] byte1, ref uint uint2) + { + var gCHandle = GCHandle.Alloc(byte0, GCHandleType.Pinned); + uint result; + try + { + var pSamples = (IntPtr) (gCHandle.AddrOfPinnedObject().ToInt32() + int0); + result = beEncodeChunk(uint0, uint1 / 2u, pSamples, byte1, ref uint2); + } + finally + { + gCHandle.Free(); + } + return result; + } - public static uint smethod_1(uint uint0, byte[] byte0, byte[] byte1, ref uint uint1) - { - return smethod_0(uint0, byte0, 0, (uint)byte0.Length, byte1, ref uint1); - } + public static uint smethod_1(uint uint0, byte[] byte0, byte[] byte1, ref uint uint1) + { + return smethod_0(uint0, byte0, 0, (uint) byte0.Length, byte1, ref uint1); + } - [DllImport("Lame_enc.dll")] - public static extern uint beDeinitStream(uint hbeStream, [In] [Out] byte[] pOutput, ref uint pdwOutput); + [DllImport("Lame_enc.dll")] + public static extern uint beDeinitStream(uint hbeStream, [In] [Out] byte[] pOutput, ref uint pdwOutput); - [DllImport("Lame_enc.dll")] - public static extern uint beCloseStream(uint uint0); - } -} + [DllImport("Lame_enc.dll")] + public static extern uint beCloseStream(uint uint0); + } +} \ No newline at end of file diff --git a/GHNamespaceN/MIDIReader.cs b/GHNamespaceN/MIDIReader.cs index 8ddcbef..5b03918 100644 --- a/GHNamespaceN/MIDIReader.cs +++ b/GHNamespaceN/MIDIReader.cs @@ -6,174 +6,178 @@ namespace GHNamespaceN { - public class MidiReader - { - public readonly List MidiLineList = new List(); + public class MidiReader + { + public readonly List MidiLineList = new List(); - public int Int0; + public int Int0; - public static MidiReader smethod_0(string fileLocation) - { - MidiReader result; - using (var fileStream = new FileStream(fileLocation, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) - { - result = new MidiReader(fileStream); - } - return result; - } + public static MidiReader smethod_0(string fileLocation) + { + MidiReader result; + using (var fileStream = new FileStream(fileLocation, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) + { + result = new MidiReader(fileStream); + } + return result; + } - public MidiReader() - { - } + public MidiReader() + { + } - public MidiReader(Stream stream0) - { - method_3(stream0); - } + public MidiReader(Stream stream0) + { + method_3(stream0); + } - public int method_0() - { - return Int0; - } + public int method_0() + { + return Int0; + } - public void method_1(int int1) - { - Int0 = int1; - } + public void method_1(int int1) + { + Int0 = int1; + } - public List GetMidiLineList() - { - return MidiLineList; - } + public List GetMidiLineList() + { + return MidiLineList; + } - private void method_3(Stream midiStream) - { - var midiFile = new BinaryReader(midiStream); - ByteFiddler.smethod_3("MIDI", midiFile, "MThd"); - ByteFiddler.RotateLeft(midiFile.ReadUInt32()); - ByteFiddler.RotateRight(midiFile.ReadUInt16()); - int num = ByteFiddler.RotateRight(midiFile.ReadUInt16()); - method_1(ByteFiddler.RotateRight(midiFile.ReadUInt16())); - MidiLineList.Clear(); - for (var i = 0; i < num; i++) - { - var midiLine = new MidiLine(method_0()); - MidiLineList.Add(midiLine); - var list = new List(); - ByteFiddler.smethod_3("MIDI", midiFile, "MTrk"); - var num2 = ByteFiddler.RotateLeft(midiFile.ReadUInt32()); - var position = midiFile.BaseStream.Position; - var num3 = 0; - byte b = 0; - while (midiFile.BaseStream.Position < position + num2) - { - var num4 = (int)method_4(midiFile); - AbstractNoteClass midiNote = null; - num3 += num4; - var b2 = midiFile.ReadByte(); - if (b2 != 255) - { - byte int_; - if ((b2 & 128) == 128) - { - int_ = midiFile.ReadByte(); - b = b2; - } - else - { - int_ = b2; - b2 = b; - } - var b3 = (byte)(b2 >> 4); - switch (b3) - { - case 8: - midiNote = new MidiNote(num3, int_, midiFile.ReadByte(), false); - goto IL_298; - case 9: - midiNote = new MidiNote(num3, int_, midiFile.ReadByte(), true); - goto IL_298; - case 11: - case 12: - case 14: - goto IL_298; - } - throw new NotImplementedException(string.Format("Unhandled MIDI command: {0} at position {1}", b3.ToString("X"), midiFile.BaseStream.Position)); - } - var b4 = midiFile.ReadByte(); - var num5 = method_4(midiFile); - var array = midiFile.ReadBytes((int)num5); - var b5 = b4; - if (b5 <= 47) - { - switch (b5) - { - case 1: - midiNote = new ZzNote1(num3, ZzNote1.Enum37.Const0, Encoding.ASCII.GetString(array)); - break; - case 2: - break; - case 3: - { - var text = Encoding.ASCII.GetString(array).ToUpper(); - if (!string.IsNullOrEmpty(text)) - { - midiLine.method_3(text); - } - break; - } - default: - if (b5 != 47) - { - } - break; - } - } - else if (b5 != 81) - { - if (b5 == 88) - { - if (num5 != 4L) - { - Class355.Interface150.imethod_1(string.Format("Expected time signature event to have data length of 4, but found instead {0}", num5)); - } - midiNote = new ZzNote338(num3, array[0], array[1], array[2], array[3]); - } - } - else - { - if (num5 != 3L) - { - Class355.Interface150.imethod_1(string.Format("Expected tempo event to have data length of 3, but found instead {0}", num5)); - } - var num6 = array[0] << 16; - num6 |= array[1] << 8; - num6 |= array[2]; - midiNote = new BpmNote1(num3, num6); - } - IL_298: - if (midiNote != null) - { - list.Add(midiNote); - } - } - list.Sort(AbstractNoteClass.smethod_0); - midiLine.method_1(list); - midiFile.BaseStream.Seek(position + num2, SeekOrigin.Begin); - } - } + private void method_3(Stream midiStream) + { + var midiFile = new BinaryReader(midiStream); + ByteFiddler.smethod_3("MIDI", midiFile, "MThd"); + ByteFiddler.RotateLeft(midiFile.ReadUInt32()); + ByteFiddler.RotateRight(midiFile.ReadUInt16()); + int num = ByteFiddler.RotateRight(midiFile.ReadUInt16()); + method_1(ByteFiddler.RotateRight(midiFile.ReadUInt16())); + MidiLineList.Clear(); + for (var i = 0; i < num; i++) + { + var midiLine = new MidiLine(method_0()); + MidiLineList.Add(midiLine); + var list = new List(); + ByteFiddler.smethod_3("MIDI", midiFile, "MTrk"); + var num2 = ByteFiddler.RotateLeft(midiFile.ReadUInt32()); + var position = midiFile.BaseStream.Position; + var num3 = 0; + byte b = 0; + while (midiFile.BaseStream.Position < position + num2) + { + var num4 = (int) method_4(midiFile); + AbstractNoteClass midiNote = null; + num3 += num4; + var b2 = midiFile.ReadByte(); + if (b2 != 255) + { + byte int_; + if ((b2 & 128) == 128) + { + int_ = midiFile.ReadByte(); + b = b2; + } + else + { + int_ = b2; + b2 = b; + } + var b3 = (byte) (b2 >> 4); + switch (b3) + { + case 8: + midiNote = new MidiNote(num3, int_, midiFile.ReadByte(), false); + goto IL_298; + case 9: + midiNote = new MidiNote(num3, int_, midiFile.ReadByte(), true); + goto IL_298; + case 11: + case 12: + case 14: + goto IL_298; + } + throw new NotImplementedException(string.Format("Unhandled MIDI command: {0} at position {1}", + b3.ToString("X"), midiFile.BaseStream.Position)); + } + var b4 = midiFile.ReadByte(); + var num5 = method_4(midiFile); + var array = midiFile.ReadBytes((int) num5); + var b5 = b4; + if (b5 <= 47) + { + switch (b5) + { + case 1: + midiNote = new ZzNote1(num3, ZzNote1.Enum37.Const0, Encoding.ASCII.GetString(array)); + break; + case 2: + break; + case 3: + { + var text = Encoding.ASCII.GetString(array).ToUpper(); + if (!string.IsNullOrEmpty(text)) + { + midiLine.method_3(text); + } + break; + } + default: + if (b5 != 47) + { + } + break; + } + } + else if (b5 != 81) + { + if (b5 == 88) + { + if (num5 != 4L) + { + Class355.Interface150.imethod_1(string.Format( + "Expected time signature event to have data length of 4, but found instead {0}", + num5)); + } + midiNote = new ZzNote338(num3, array[0], array[1], array[2], array[3]); + } + } + else + { + if (num5 != 3L) + { + Class355.Interface150.imethod_1( + string.Format("Expected tempo event to have data length of 3, but found instead {0}", + num5)); + } + var num6 = array[0] << 16; + num6 |= array[1] << 8; + num6 |= array[2]; + midiNote = new BpmNote1(num3, num6); + } + IL_298: + if (midiNote != null) + { + list.Add(midiNote); + } + } + list.Sort(AbstractNoteClass.smethod_0); + midiLine.method_1(list); + midiFile.BaseStream.Seek(position + num2, SeekOrigin.Begin); + } + } - private long method_4(BinaryReader binaryReader0) - { - var num = 0L; - byte b; - do - { - b = binaryReader0.ReadByte(); - num = (num << 7) + (b & 127); - } - while ((b & 128) != 0); - return num; - } - } -} + private long method_4(BinaryReader binaryReader0) + { + var num = 0L; + byte b; + do + { + b = binaryReader0.ReadByte(); + num = (num << 7) + (b & 127); + } while ((b & 128) != 0); + return num; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/QBCParser.cs b/GHNamespaceN/QBCParser.cs index abbacf2..e29f720 100644 --- a/GHNamespaceN/QBCParser.cs +++ b/GHNamespaceN/QBCParser.cs @@ -13,738 +13,758 @@ namespace GHNamespaceN { - public class QbcParser - { - public Dictionary> NoteList = new Dictionary>(); + public class QbcParser + { + public Dictionary> NoteList = + new Dictionary>(); - public Dictionary> SpList = new Dictionary>(); + public Dictionary> SpList = new Dictionary>(); - public Dictionary> BattleNoteList = new Dictionary>(); + public Dictionary> BattleNoteList = new Dictionary>(); - public Fretbar FretbarList; + public Fretbar FretbarList; - public Track TsList = new Track(); + public Track TsList = new Track(); - public Track Class2281 = new Track(); + public Track Class2281 = new Track(); - public Track Class2282 = new Track(); + public Track Class2282 = new Track(); - public Track Class2283 = new Track(); + public Track Class2283 = new Track(); - public Track BpmList = new Track(); + public Track BpmList = new Track(); - public Track Class2285 = new Track(); + public Track Class2285 = new Track(); - public int Int0; + public int Int0; - public int Int1 = 480; + public int Int1 = 480; - public static float Float0 = 2.82352948f; + public static float Float0 = 2.82352948f; - public Gh3Song Gh3Song0 = new Gh3Song(); + public Gh3Song Gh3Song0 = new Gh3Song(); - private Track _class2286; + private Track _class2286; - private readonly FloatListNode _class2870 = new FloatListNode(true); + private readonly FloatListNode _class2870 = new FloatListNode(true); - public QbcParser() - { - FretbarList = new Fretbar(); - } + public QbcParser() + { + FretbarList = new Fretbar(); + } - public QbcParser(Gh3Song gh3Song1) : this() - { - Gh3Song0 = gh3Song1; - } + public QbcParser(Gh3Song gh3Song1) : this() + { + Gh3Song0 = gh3Song1; + } - public QbcParser(string fileName) - { - var list = new List(); - var streamReader = File.OpenText(fileName); - string text = null; - string currentLine; - while ((currentLine = streamReader.ReadLine()) != null) - { - if (currentLine.StartsWith("[")) - { - text = currentLine.Split(new[] - { - '[', - ']' - }, StringSplitOptions.RemoveEmptyEntries)[0]; - } - else if (!currentLine.Equals("{")) - { - if (currentLine.Equals("}")) - { - string key; - if ((key = text) == null) - { - goto IL_8AA; - } - if (Class369.Dictionary0 == null) - { - Class369.Dictionary0 = new Dictionary(8) - { - { - "Song", - 0 - }, - { - "SyncTrack", - 1 - }, - { - "FretBars", - 2 - }, - { - "Events", - 3 - }, - { - "FaceOffP1", - 4 - }, - { - "FaceOffP2", - 5 - }, - { - "BossBattleP1", - 6 - }, - { - "BossBattleP2", - 7 - } - }; - } - int num; - if (Class369.Dictionary0.TryGetValue(key, out num)) - { - switch (num) - { - case 0: - Gh3Song0.Editable = true; - using (var enumerator = list.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - var current = enumerator.Current; - var array = current.Split(new[] - { - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - if (array.Length > 1) - { - var text3 = array[0].Trim().ToLower(); - var text4 = array[1].Trim().Replace("\"", ""); - string key2; - switch (key2 = text3) - { - case "name": - Gh3Song0.Title = text4; - break; - case "artist": - Gh3Song0.Artist = text4; - break; - case "year": - Gh3Song0.Year = text4; - break; - case "player2": - Gh3Song0.NotBass = !text4.ToLower().Equals("bass"); - break; - case "artisttext": - if (text4.Equals("by")) - { - Gh3Song0.ArtistText = true; - } - else if (text4.Equals("as made famous by")) - { - Gh3Song0.ArtistText = false; - } - else - { - Gh3Song0.ArtistText = text4; - } - break; - case "offset": - Gh3Song0.InputOffset = (Gh3Song0.GemOffset = Convert.ToInt32(Convert.ToDouble(text4) * -1000.0)); - break; - case "singer": - Gh3Song0.Singer = text4; - break; - case "bassist": - Gh3Song0.Bassist = text4; - break; - case "boss": - Gh3Song0.Boss = text4; - break; - case "countoff": - Gh3Song0.Countoff = text4; - break; - case "guitarvol": - Gh3Song0.GuitarVol = Convert.ToSingle(text4); - break; - case "bandvol": - Gh3Song0.BandVol = Convert.ToSingle(text4); - break; - case "hopo": - Gh3Song0.HammerOn = Convert.ToSingle(text4); - break; - case "originalartist": - Gh3Song0.OriginalArtist = text4.Equals("true"); - break; - case "resolution": - Int1 = Convert.ToInt32(text4); - break; - } - } - } - goto IL_A3C; - } - goto IL_514; - case 1: - goto IL_514; - case 2: - goto IL_5AE; - case 3: - using (var enumerator2 = list.GetEnumerator()) - { - while (enumerator2.MoveNext()) - { - var current2 = enumerator2.Current; - var array2 = current2.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a; - if ((a = array2[1]) != null && a == "S") - { - Class2281.Add(Convert.ToInt32(array2[0]), array2[2]); - } - } - goto IL_A3C; - } - break; - case 4: - break; - case 5: - goto IL_72D; - case 6: - goto IL_7AC; - case 7: - goto IL_82B; - default: - goto IL_8AA; - } - using (var enumerator3 = list.GetEnumerator()) - { - while (enumerator3.MoveNext()) - { - var current3 = enumerator3.Current; - var array3 = current3.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a2; - if ((a2 = array3[1]) != null && a2 == "F") - { - Class2282.Add(Convert.ToInt32(array3[0]), Convert.ToInt32(array3[2])); - } - } - goto IL_A3C; - } - goto IL_72D; - IL_5AE: - FretbarList = new Fretbar(); - foreach (var current4 in list) - { - FretbarList.method_1(Convert.ToInt32(current4.Trim(' ', '\t', '='))); - } - Int0 = (FretbarList[1] - FretbarList[0]) / 4; - goto IL_A3C; - IL_514: - using (var enumerator5 = list.GetEnumerator()) - { - while (enumerator5.MoveNext()) - { - var current5 = enumerator5.Current; - var array4 = current5.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a3; - if ((a3 = array4[1]) != null && a3 == "TS") - { - TsList.Add(Convert.ToInt32(array4[0]), new[] - { - Convert.ToInt32(array4[2]), - Convert.ToInt32(array4[3]) - }); - } - } - goto IL_A3C; - } - goto IL_5AE; - IL_72D: - using (var enumerator6 = list.GetEnumerator()) - { - while (enumerator6.MoveNext()) - { - var current6 = enumerator6.Current; - var array5 = current6.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a4; - if ((a4 = array5[1]) != null && a4 == "F") - { - Class2283.Add(Convert.ToInt32(array5[0]), Convert.ToInt32(array5[2])); - } - } - goto IL_A3C; - } - IL_7AC: - using (var enumerator7 = list.GetEnumerator()) - { - while (enumerator7.MoveNext()) - { - var current7 = enumerator7.Current; - var array6 = current7.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a5; - if ((a5 = array6[1]) != null && a5 == "B") - { - BpmList.Add(Convert.ToInt32(array6[0]), Convert.ToInt32(array6[2])); - } - } - goto IL_A3C; - } - IL_82B: - using (var enumerator8 = list.GetEnumerator()) - { - while (enumerator8.MoveNext()) - { - var current8 = enumerator8.Current; - var array7 = current8.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a6; - if ((a6 = array7[1]) != null && a6 == "B") - { - Class2285.Add(Convert.ToInt32(array7[0]), Convert.ToInt32(array7[2])); - } - } - goto IL_A3C; - } - goto IL_8AA; - } - goto IL_8AA; - IL_A3C: - list.Clear(); - continue; - IL_8AA: - text = text.ToLower(); - if (!NoteList.ContainsKey(text)) - { - var noteList = new Track(); - var spList = new Track(); - var battleNote = new Track(); - foreach (var current9 in list) - { - var array8 = current9.Split(new[] - { - ' ', - '\t', - '=' - }, StringSplitOptions.RemoveEmptyEntries); - string a7; - if ((a7 = array8[1]) != null) - { - if (!(a7 == "N")) - { - if (!(a7 == "S")) - { - if (a7 == "B") - { - battleNote.Add(Convert.ToInt32(array8[0]), new[] - { - Convert.ToInt32(array8[3]), - Convert.ToInt32(array8[2]) - }); - } - } - else - { - spList.Add(Convert.ToInt32(array8[0]), new[] - { - Convert.ToInt32(array8[3]), - Convert.ToInt32(array8[2]) - }); - } - } - else - { - noteList.Add(Convert.ToInt32(array8[0]), new NotesAtOffset(Convert.ToInt32(array8[2]), Convert.ToInt32(array8[3]))); - } - } - } - NoteList.Add(text, noteList); - SpList.Add(text, spList); - BattleNoteList.Add(text, battleNote); - } - goto IL_A3C; - } - if (!currentLine.Equals("")) - { - list.Add(currentLine); - } - } - } - streamReader.Close(); - } + public QbcParser(string fileName) + { + var list = new List(); + var streamReader = File.OpenText(fileName); + string text = null; + string currentLine; + while ((currentLine = streamReader.ReadLine()) != null) + { + if (currentLine.StartsWith("[")) + { + text = currentLine.Split(new[] + { + '[', + ']' + }, StringSplitOptions.RemoveEmptyEntries)[0]; + } + else if (!currentLine.Equals("{")) + { + if (currentLine.Equals("}")) + { + string key; + if ((key = text) == null) + { + goto IL_8AA; + } + if (Class369.Dictionary0 == null) + { + Class369.Dictionary0 = new Dictionary(8) + { + { + "Song", + 0 + }, + { + "SyncTrack", + 1 + }, + { + "FretBars", + 2 + }, + { + "Events", + 3 + }, + { + "FaceOffP1", + 4 + }, + { + "FaceOffP2", + 5 + }, + { + "BossBattleP1", + 6 + }, + { + "BossBattleP2", + 7 + } + }; + } + int num; + if (Class369.Dictionary0.TryGetValue(key, out num)) + { + switch (num) + { + case 0: + Gh3Song0.Editable = true; + using (var enumerator = list.GetEnumerator()) + { + while (enumerator.MoveNext()) + { + var current = enumerator.Current; + var array = current.Split(new[] + { + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + if (array.Length > 1) + { + var text3 = array[0].Trim().ToLower(); + var text4 = array[1].Trim().Replace("\"", ""); + string key2; + switch (key2 = text3) + { + case "name": + Gh3Song0.Title = text4; + break; + case "artist": + Gh3Song0.Artist = text4; + break; + case "year": + Gh3Song0.Year = text4; + break; + case "player2": + Gh3Song0.NotBass = !text4.ToLower().Equals("bass"); + break; + case "artisttext": + if (text4.Equals("by")) + { + Gh3Song0.ArtistText = true; + } + else if (text4.Equals("as made famous by")) + { + Gh3Song0.ArtistText = false; + } + else + { + Gh3Song0.ArtistText = text4; + } + break; + case "offset": + Gh3Song0.InputOffset = + (Gh3Song0.GemOffset = Convert.ToInt32( + Convert.ToDouble(text4) * -1000.0)); + break; + case "singer": + Gh3Song0.Singer = text4; + break; + case "bassist": + Gh3Song0.Bassist = text4; + break; + case "boss": + Gh3Song0.Boss = text4; + break; + case "countoff": + Gh3Song0.Countoff = text4; + break; + case "guitarvol": + Gh3Song0.GuitarVol = Convert.ToSingle(text4); + break; + case "bandvol": + Gh3Song0.BandVol = Convert.ToSingle(text4); + break; + case "hopo": + Gh3Song0.HammerOn = Convert.ToSingle(text4); + break; + case "originalartist": + Gh3Song0.OriginalArtist = text4.Equals("true"); + break; + case "resolution": + Int1 = Convert.ToInt32(text4); + break; + } + } + } + goto IL_A3C; + } + goto IL_514; + case 1: + goto IL_514; + case 2: + goto IL_5AE; + case 3: + using (var enumerator2 = list.GetEnumerator()) + { + while (enumerator2.MoveNext()) + { + var current2 = enumerator2.Current; + var array2 = current2.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a; + if ((a = array2[1]) != null && a == "S") + { + Class2281.Add(Convert.ToInt32(array2[0]), array2[2]); + } + } + goto IL_A3C; + } + break; + case 4: + break; + case 5: + goto IL_72D; + case 6: + goto IL_7AC; + case 7: + goto IL_82B; + default: + goto IL_8AA; + } + using (var enumerator3 = list.GetEnumerator()) + { + while (enumerator3.MoveNext()) + { + var current3 = enumerator3.Current; + var array3 = current3.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a2; + if ((a2 = array3[1]) != null && a2 == "F") + { + Class2282.Add(Convert.ToInt32(array3[0]), Convert.ToInt32(array3[2])); + } + } + goto IL_A3C; + } + goto IL_72D; + IL_5AE: + FretbarList = new Fretbar(); + foreach (var current4 in list) + { + FretbarList.method_1(Convert.ToInt32(current4.Trim(' ', '\t', '='))); + } + Int0 = (FretbarList[1] - FretbarList[0]) / 4; + goto IL_A3C; + IL_514: + using (var enumerator5 = list.GetEnumerator()) + { + while (enumerator5.MoveNext()) + { + var current5 = enumerator5.Current; + var array4 = current5.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a3; + if ((a3 = array4[1]) != null && a3 == "TS") + { + TsList.Add(Convert.ToInt32(array4[0]), new[] + { + Convert.ToInt32(array4[2]), + Convert.ToInt32(array4[3]) + }); + } + } + goto IL_A3C; + } + goto IL_5AE; + IL_72D: + using (var enumerator6 = list.GetEnumerator()) + { + while (enumerator6.MoveNext()) + { + var current6 = enumerator6.Current; + var array5 = current6.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a4; + if ((a4 = array5[1]) != null && a4 == "F") + { + Class2283.Add(Convert.ToInt32(array5[0]), Convert.ToInt32(array5[2])); + } + } + goto IL_A3C; + } + IL_7AC: + using (var enumerator7 = list.GetEnumerator()) + { + while (enumerator7.MoveNext()) + { + var current7 = enumerator7.Current; + var array6 = current7.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a5; + if ((a5 = array6[1]) != null && a5 == "B") + { + BpmList.Add(Convert.ToInt32(array6[0]), Convert.ToInt32(array6[2])); + } + } + goto IL_A3C; + } + IL_82B: + using (var enumerator8 = list.GetEnumerator()) + { + while (enumerator8.MoveNext()) + { + var current8 = enumerator8.Current; + var array7 = current8.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a6; + if ((a6 = array7[1]) != null && a6 == "B") + { + Class2285.Add(Convert.ToInt32(array7[0]), Convert.ToInt32(array7[2])); + } + } + goto IL_A3C; + } + goto IL_8AA; + } + goto IL_8AA; + IL_A3C: + list.Clear(); + continue; + IL_8AA: + text = text.ToLower(); + if (!NoteList.ContainsKey(text)) + { + var noteList = new Track(); + var spList = new Track(); + var battleNote = new Track(); + foreach (var current9 in list) + { + var array8 = current9.Split(new[] + { + ' ', + '\t', + '=' + }, StringSplitOptions.RemoveEmptyEntries); + string a7; + if ((a7 = array8[1]) != null) + { + if (!(a7 == "N")) + { + if (!(a7 == "S")) + { + if (a7 == "B") + { + battleNote.Add(Convert.ToInt32(array8[0]), new[] + { + Convert.ToInt32(array8[3]), + Convert.ToInt32(array8[2]) + }); + } + } + else + { + spList.Add(Convert.ToInt32(array8[0]), new[] + { + Convert.ToInt32(array8[3]), + Convert.ToInt32(array8[2]) + }); + } + } + else + { + noteList.Add(Convert.ToInt32(array8[0]), + new NotesAtOffset(Convert.ToInt32(array8[2]), Convert.ToInt32(array8[3]))); + } + } + } + NoteList.Add(text, noteList); + SpList.Add(text, spList); + BattleNoteList.Add(text, battleNote); + } + goto IL_A3C; + } + if (!currentLine.Equals("")) + { + list.Add(currentLine); + } + } + } + streamReader.Close(); + } - public QbcParser(string string0, ZzGenericNode1 class3080) : this(string0, class3080, null) - { - } + public QbcParser(string string0, ZzGenericNode1 class3080) : this(string0, class3080, null) + { + } - public QbcParser(string gh3SongName, ZzGenericNode1 class3080, ZzGenericNode1 class3081) : this(gh3SongName, class3080, class3081, null) - { - } + public QbcParser(string gh3SongName, ZzGenericNode1 class3080, ZzGenericNode1 class3081) : this(gh3SongName, + class3080, class3081, null) + { + } - public QbcParser(string string0, ZzGenericNode1 class3080, ZzGenericNode1 class3081, ZzGenericNode1 class3082) - { - string[] array = { - "Easy", - "Medium", - "Hard", - "Expert" - }; - string[] array2 = { - "Single", - "Double" - }; - ArrayPointerRootNode @class; - for (var i = 0; i < array2.Length; i++) - { - var a = array2[i]; - string[] array3 = { - "Guitar", - "Rhythm" - }; - for (var j = 0; j < array3.Length; j++) - { - var text = array3[j]; - var array4 = array; - for (var k = 0; k < array4.Length; k++) - { - var text2 = array4[k]; - var text3 = (text.ToLower() + ((a == "Double") ? "coop" : "") + "_" + text2.ToLower()).Replace("guitar_", ""); - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_song_" + text3)); - if (@class != null && @class.method_7() is IntegerArrayNode) - { - var class2 = new Track(); - var array5 = @class.method_7().method_7(); - for (var l = 0; l < array5.Length; l += 3) - { - class2.Add(array5[l], new NotesAtOffset(array5[l + 2], array5[l + 1])); - } - NoteList.Add(text3, class2); - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_" + text3 + "_star")); - if (@class != null && @class.method_7() is ListArrayNode) - { - var class3 = new Track(); - foreach (var current in @class.method_7().method_8()) - { - class3.Add(current[0], new[] - { - current[1], - current[2] - }); - } - SpList.Add(text3, class3); - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_" + text3 + "_starbattlemode")); - if (@class != null && @class.method_7() is ListArrayNode) - { - var class4 = new Track(); - foreach (var current2 in @class.method_7().method_8()) - { - class4.Add(current2[0], new[] - { - current2[1], - current2[2] - }); - } - BattleNoteList.Add(text3, class4); - } - } - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp1")); - if (@class != null && @class.method_7() is ListArrayNode) - { - foreach (var current3 in @class.method_7().method_8()) - { - Class2282.Add(current3[0], current3[1]); - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp2")); - if (@class != null && @class.method_7() is ListArrayNode) - { - foreach (var current4 in @class.method_7().method_8()) - { - Class2283.Add(current4[0], current4[1]); - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep1")); - if (@class != null && @class.method_7() is ListArrayNode) - { - foreach (var current5 in @class.method_7().method_8()) - { - BpmList.Add(current5[0], current5[1]); - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep2")); - if (@class != null && @class.method_7() is ListArrayNode) - { - foreach (var current6 in @class.method_7().method_8()) - { - Class2285.Add(current6[0], current6[1]); - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_timesig")); - if (@class != null && @class.method_7() is ListArrayNode) - { - foreach (var current7 in @class.method_7().method_8()) - { - TsList.Add(current7[0], new[] - { - current7[1], - current7[2] - }); - } - } - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_fretbars")); - if (@class != null && @class.method_7() is IntegerArrayNode) - { - FretbarList = new Fretbar(@class.method_7().method_8()); - Int0 = (FretbarList[1] - FretbarList[0]) / 4; - try - { - var dictionary = new Dictionary(); - @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_markers")); - if (class3081 != null && @class != null && @class.method_7() is StructureArrayNode) - { - foreach (UnicodeRootNode class5 in class3081.Nodes) - { - dictionary.Add(class5.Int0, class5.method_7()); - } - using (var enumerator9 = @class.method_7().method_8().GetEnumerator()) - { - while (enumerator9.MoveNext()) - { - var current8 = enumerator9.Current; - Class2281.Add(((IntegerStructureNode)current8[0]).method_8(), dictionary[((FileTagStructureNode)current8[1]).method_9()]); - } - goto IL_7C2; - } - } - if (@class != null && @class.method_7() is StructureArrayNode) - { - foreach (var current9 in @class.method_7().method_8()) - { - Class2281.Add(((IntegerStructureNode)current9[0]).method_8(), ((UnicodeStructureNode)current9[1]).method_8()); - } - } - IL_7C2:; - } - catch - { - } - try - { - if (class3082 != null) - { - Gh3Song0 = new Gh3Song(class3082.method_5(new StructurePointerNode(string0))); - } - return; - } - catch - { - return; - } - } - throw new Exception("Not a MID.QB!"); - } + public QbcParser(string string0, ZzGenericNode1 class3080, ZzGenericNode1 class3081, ZzGenericNode1 class3082) + { + string[] array = + { + "Easy", + "Medium", + "Hard", + "Expert" + }; + string[] array2 = + { + "Single", + "Double" + }; + ArrayPointerRootNode @class; + for (var i = 0; i < array2.Length; i++) + { + var a = array2[i]; + string[] array3 = + { + "Guitar", + "Rhythm" + }; + for (var j = 0; j < array3.Length; j++) + { + var text = array3[j]; + var array4 = array; + for (var k = 0; k < array4.Length; k++) + { + var text2 = array4[k]; + var text3 = + (text.ToLower() + ((a == "Double") ? "coop" : "") + "_" + text2.ToLower()) + .Replace("guitar_", ""); + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_song_" + text3)); + if (@class != null && @class.method_7() is IntegerArrayNode) + { + var class2 = new Track(); + var array5 = @class.method_7().method_7(); + for (var l = 0; l < array5.Length; l += 3) + { + class2.Add(array5[l], new NotesAtOffset(array5[l + 2], array5[l + 1])); + } + NoteList.Add(text3, class2); + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_" + text3 + "_star")); + if (@class != null && @class.method_7() is ListArrayNode) + { + var class3 = new Track(); + foreach (var current in @class.method_7().method_8()) + { + class3.Add(current[0], new[] + { + current[1], + current[2] + }); + } + SpList.Add(text3, class3); + } + @class = class3080.method_5( + new ArrayPointerRootNode(string0 + "_" + text3 + "_starbattlemode")); + if (@class != null && @class.method_7() is ListArrayNode) + { + var class4 = new Track(); + foreach (var current2 in @class.method_7().method_8()) + { + class4.Add(current2[0], new[] + { + current2[1], + current2[2] + }); + } + BattleNoteList.Add(text3, class4); + } + } + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp1")); + if (@class != null && @class.method_7() is ListArrayNode) + { + foreach (var current3 in @class.method_7().method_8()) + { + Class2282.Add(current3[0], current3[1]); + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp2")); + if (@class != null && @class.method_7() is ListArrayNode) + { + foreach (var current4 in @class.method_7().method_8()) + { + Class2283.Add(current4[0], current4[1]); + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep1")); + if (@class != null && @class.method_7() is ListArrayNode) + { + foreach (var current5 in @class.method_7().method_8()) + { + BpmList.Add(current5[0], current5[1]); + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep2")); + if (@class != null && @class.method_7() is ListArrayNode) + { + foreach (var current6 in @class.method_7().method_8()) + { + Class2285.Add(current6[0], current6[1]); + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_timesig")); + if (@class != null && @class.method_7() is ListArrayNode) + { + foreach (var current7 in @class.method_7().method_8()) + { + TsList.Add(current7[0], new[] + { + current7[1], + current7[2] + }); + } + } + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_fretbars")); + if (@class != null && @class.method_7() is IntegerArrayNode) + { + FretbarList = new Fretbar(@class.method_7().method_8()); + Int0 = (FretbarList[1] - FretbarList[0]) / 4; + try + { + var dictionary = new Dictionary(); + @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_markers")); + if (class3081 != null && @class != null && @class.method_7() is StructureArrayNode) + { + foreach (UnicodeRootNode class5 in class3081.Nodes) + { + dictionary.Add(class5.Int0, class5.method_7()); + } + using (var enumerator9 = @class.method_7().method_8().GetEnumerator()) + { + while (enumerator9.MoveNext()) + { + var current8 = enumerator9.Current; + Class2281.Add(((IntegerStructureNode) current8[0]).method_8(), + dictionary[((FileTagStructureNode) current8[1]).method_9()]); + } + goto IL_7C2; + } + } + if (@class != null && @class.method_7() is StructureArrayNode) + { + foreach (var current9 in @class.method_7().method_8()) + { + Class2281.Add(((IntegerStructureNode) current9[0]).method_8(), + ((UnicodeStructureNode) current9[1]).method_8()); + } + } + IL_7C2: + ; + } + catch + { + } + try + { + if (class3082 != null) + { + Gh3Song0 = new Gh3Song(class3082.method_5(new StructurePointerNode(string0))); + } + return; + } + catch + { + return; + } + } + throw new Exception("Not a MID.QB!"); + } - private int method_0(int int2) - { - var num = _class2286.method_1(int2); - return Convert.ToInt32((num + (int2 - _class2286.Keys[num]) / (double)_class2286.Values[num]) * Int1); - } + private int method_0(int int2) + { + var num = _class2286.method_1(int2); + return Convert.ToInt32((num + (int2 - _class2286.Keys[num]) / (double) _class2286.Values[num]) * Int1); + } - public ChartParser method_1() - { - return method_2(null); - } + public ChartParser method_1() + { + return method_2(null); + } - public ChartParser method_2(Gh3Song gh3Song1) - { - var @class = new ChartParser(Gh3Song0); - @class.Constant480 = Int1; - if (gh3Song1 != null) - { - @class.Gh3SongInfo.vmethod_0(gh3Song1); - } - _class2286 = new Track(); - if (FretbarList != null) - { - var value = FretbarList[0]; - FretbarList[0] = 0; - var num = 0; - for (var i = 1; i < FretbarList.Count; i++) - { - var num2 = FretbarList[i] - FretbarList[i - 1]; - var num3 = Convert.ToInt32(60000000.0 / num2); - if (num3 != num) - { - @class.BpmInterpreter.BpmList.Add((i - 1) * Int1, num3); - num = num3; - } - _class2286.Add(FretbarList[i - 1], num2); - } - FretbarList[0] = value; - @class.SectionInterpreter.OtherList.Add(method_0(FretbarList[FretbarList.Count - 1]), new List(new[] - { - "end" - })); - foreach (var current in Class2281.Keys) - { - @class.SectionInterpreter.SectionList.Add(method_0(current), Class2281[current]); - } - foreach (var current2 in TsList.Keys) - { - @class.BpmInterpreter.TsList.Add(method_0(current2), TsList[current2][0]); - } - var class2 = new Track(); - var class3 = new Track(); - foreach (var current3 in Class2282.Keys) - { - var num4 = method_0(current3); - var num5 = method_0(current3 + Class2282[current3] - Int0) - num4; - class2.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - foreach (var current4 in Class2283.Keys) - { - var num4 = method_0(current4); - var num5 = method_0(current4 + Class2283[current4] - Int0) - num4; - class3.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - var class4 = new Track(); - var class5 = new Track(); - foreach (var current5 in BpmList.Keys) - { - var num4 = method_0(current5); - var num5 = method_0(current5 + BpmList[current5] - Int0) - num4; - class4.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - foreach (var current6 in Class2285.Keys) - { - var num4 = method_0(current6); - var num5 = method_0(current6 + Class2285[current6] - Int0) - num4; - class5.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - string[] array = { - "Easy", - "Medium", - "Hard", - "Expert" - }; - string[] array2 = { - "Single", - "Double" - }; - for (var j = 0; j < array2.Length; j++) - { - var text = array2[j]; - string[] array3 = { - "Guitar", - "Rhythm" - }; - for (var k = 0; k < array3.Length; k++) - { - var text2 = array3[k]; - var array4 = array; - for (var l = 0; l < array4.Length; l++) - { - var text3 = array4[l]; - var key = (text2.ToLower() + ((text == "Double") ? "coop" : "") + "_" + text3.ToLower()).Replace("guitar_", ""); - if (NoteList.ContainsKey(key)) - { - var class6 = new NoteEventInterpreter(); - var class7 = NoteList[key]; - foreach (var current7 in class7.Keys) - { - var num4 = method_0(current7); - var num5 = method_0(current7 + class7[current7].SustainLength - Int0) - num4; - class6.NoteList.Add(num4, new NotesAtOffset(class7[current7].NoteValues, (num5 <= Int1 / 4) ? 0 : num5)); - } - class6.AlwaysTrue = false; - if (SpList.ContainsKey(key)) - { - var class8 = SpList[key]; - foreach (var current8 in class8.Keys) - { - var num4 = method_0(current8); - var num5 = method_0(current8 + class8[current8][0] - Int0) - num4; - class6.Class2281.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - } - if (BattleNoteList.ContainsKey(key)) - { - var class9 = SpList[key]; - foreach (var current9 in class9.Keys) - { - var num4 = method_0(current9); - var num5 = method_0(current9 + class9[current9][0] - Int0) - num4; - class6.Class2284.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); - } - } - class6.Class2282 = class2; - class6.Class2283 = class3; - class6.Class2285 = class4; - class6.Class2286 = class5; - @class.DifficultyWithNotes.Add(text3 + text + text2, class6); - } - } - } - } - _class2286.Clear(); - _class2286 = null; - return @class; - } - return null; - } + public ChartParser method_2(Gh3Song gh3Song1) + { + var @class = new ChartParser(Gh3Song0); + @class.Constant480 = Int1; + if (gh3Song1 != null) + { + @class.Gh3SongInfo.vmethod_0(gh3Song1); + } + _class2286 = new Track(); + if (FretbarList != null) + { + var value = FretbarList[0]; + FretbarList[0] = 0; + var num = 0; + for (var i = 1; i < FretbarList.Count; i++) + { + var num2 = FretbarList[i] - FretbarList[i - 1]; + var num3 = Convert.ToInt32(60000000.0 / num2); + if (num3 != num) + { + @class.BpmInterpreter.BpmList.Add((i - 1) * Int1, num3); + num = num3; + } + _class2286.Add(FretbarList[i - 1], num2); + } + FretbarList[0] = value; + @class.SectionInterpreter.OtherList.Add(method_0(FretbarList[FretbarList.Count - 1]), new List( + new[] + { + "end" + })); + foreach (var current in Class2281.Keys) + { + @class.SectionInterpreter.SectionList.Add(method_0(current), Class2281[current]); + } + foreach (var current2 in TsList.Keys) + { + @class.BpmInterpreter.TsList.Add(method_0(current2), TsList[current2][0]); + } + var class2 = new Track(); + var class3 = new Track(); + foreach (var current3 in Class2282.Keys) + { + var num4 = method_0(current3); + var num5 = method_0(current3 + Class2282[current3] - Int0) - num4; + class2.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + foreach (var current4 in Class2283.Keys) + { + var num4 = method_0(current4); + var num5 = method_0(current4 + Class2283[current4] - Int0) - num4; + class3.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + var class4 = new Track(); + var class5 = new Track(); + foreach (var current5 in BpmList.Keys) + { + var num4 = method_0(current5); + var num5 = method_0(current5 + BpmList[current5] - Int0) - num4; + class4.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + foreach (var current6 in Class2285.Keys) + { + var num4 = method_0(current6); + var num5 = method_0(current6 + Class2285[current6] - Int0) - num4; + class5.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + string[] array = + { + "Easy", + "Medium", + "Hard", + "Expert" + }; + string[] array2 = + { + "Single", + "Double" + }; + for (var j = 0; j < array2.Length; j++) + { + var text = array2[j]; + string[] array3 = + { + "Guitar", + "Rhythm" + }; + for (var k = 0; k < array3.Length; k++) + { + var text2 = array3[k]; + var array4 = array; + for (var l = 0; l < array4.Length; l++) + { + var text3 = array4[l]; + var key = (text2.ToLower() + ((text == "Double") ? "coop" : "") + "_" + text3.ToLower()) + .Replace("guitar_", ""); + if (NoteList.ContainsKey(key)) + { + var class6 = new NoteEventInterpreter(); + var class7 = NoteList[key]; + foreach (var current7 in class7.Keys) + { + var num4 = method_0(current7); + var num5 = method_0(current7 + class7[current7].SustainLength - Int0) - num4; + class6.NoteList.Add(num4, + new NotesAtOffset(class7[current7].NoteValues, (num5 <= Int1 / 4) ? 0 : num5)); + } + class6.AlwaysTrue = false; + if (SpList.ContainsKey(key)) + { + var class8 = SpList[key]; + foreach (var current8 in class8.Keys) + { + var num4 = method_0(current8); + var num5 = method_0(current8 + class8[current8][0] - Int0) - num4; + class6.Class2281.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + } + if (BattleNoteList.ContainsKey(key)) + { + var class9 = SpList[key]; + foreach (var current9 in class9.Keys) + { + var num4 = method_0(current9); + var num5 = method_0(current9 + class9[current9][0] - Int0) - num4; + class6.Class2284.Add(num4, (num5 <= Int1 / 4) ? 0 : num5); + } + } + class6.Class2282 = class2; + class6.Class2283 = class3; + class6.Class2285 = class4; + class6.Class2286 = class5; + @class.DifficultyWithNotes.Add(text3 + text + text2, class6); + } + } + } + } + _class2286.Clear(); + _class2286 = null; + return @class; + } + return null; + } public void QbcCreator(string fileLocation, Gh3Song song) { @@ -756,7 +776,9 @@ public void QbcCreator(string fileLocation, Gh3Song song) streamWriter.WriteLine("\tArtist = \"" + Gh3Song0.Artist + "\""); streamWriter.WriteLine("\tYear = \"" + Gh3Song0.Year + "\""); streamWriter.WriteLine("\tPlayer2 = " + (Gh3Song0.NotBass ? "Rhythm" : "Bass")); - streamWriter.WriteLine("\tArtistText = \"" + ((Gh3Song0.ArtistText is bool) ? (((bool)Gh3Song0.ArtistText) ? "by" : "as made famous by") : ((string)Gh3Song0.ArtistText)) + "\""); + streamWriter.WriteLine("\tArtistText = \"" + ((Gh3Song0.ArtistText is bool) + ? (((bool) Gh3Song0.ArtistText) ? "by" : "as made famous by") + : ((string) Gh3Song0.ArtistText)) + "\""); streamWriter.WriteLine("\tOffset = " + Gh3Song0.InputOffset / -1000.0); if (!Gh3Song0.Singer.Equals("")) { @@ -781,7 +803,8 @@ public void QbcCreator(string fileLocation, Gh3Song song) streamWriter.WriteLine("{"); foreach (var current in TsList.Keys) { - streamWriter.WriteLine(string.Concat("\t", current, " = TS ", TsList[current][0], " ", TsList[current][1])); + streamWriter.WriteLine(string.Concat("\t", current, " = TS ", TsList[current][0], " ", + TsList[current][1])); } streamWriter.WriteLine("}"); streamWriter.WriteLine("[FretBars]"); @@ -798,7 +821,8 @@ public void QbcCreator(string fileLocation, Gh3Song song) streamWriter.WriteLine(string.Concat("\t", current3, " = S \"", Class2281[current3], "\"")); } streamWriter.WriteLine("}"); - string[] array = { + string[] array = + { "", "rhythm_", "guitarcoop_", @@ -807,7 +831,8 @@ public void QbcCreator(string fileLocation, Gh3Song song) for (var i = 0; i < array.Length; i++) { var str = array[i]; - string[] array2 = { + string[] array2 = + { "easy", "medium", "hard", @@ -836,15 +861,18 @@ public void QbcCreator(string fileLocation, Gh3Song song) { if (@class.ContainsKey(current4)) { - streamWriter.WriteLine(string.Concat("\t", current4, " = N ", @class[current4].method_0(), " ", @class[current4].SustainLength)); + streamWriter.WriteLine(string.Concat("\t", current4, " = N ", @class[current4].method_0(), + " ", @class[current4].SustainLength)); } if (class2.ContainsKey(current4)) { - streamWriter.WriteLine(string.Concat("\t", current4, " = S ", class2[current4][1], " ", class2[current4][0])); + streamWriter.WriteLine(string.Concat("\t", current4, " = S ", class2[current4][1], " ", + class2[current4][0])); } if (class3.ContainsKey(current4)) { - streamWriter.WriteLine(string.Concat("\t", current4, " = B ", class3[current4][1], " ", class3[current4][0])); + streamWriter.WriteLine(string.Concat("\t", current4, " = B ", class3[current4][1], " ", + class3[current4][0])); } } streamWriter.WriteLine("}"); @@ -882,179 +910,181 @@ public void QbcCreator(string fileLocation, Gh3Song song) } public ZzGenericNode1 method_4(string string0) - { - var @class = new ZzGenericNode1(); - var int_ = QbSongClass1.AddKeyToDictionary("songs\\" + string0 + ".mid.qb"); - string[] array = { - "", - "rhythm_", - "guitarcoop_", - "rhythmcoop_", - "aux_" - }; - for (var i = 0; i < array.Length; i++) - { - var str = array[i]; - string[] array2 = { - "easy", - "medium", - "hard", - "expert" - }; - for (var j = 0; j < array2.Length; j++) - { - var str2 = array2[j]; - var text = str + str2; - if (NoteList.ContainsKey(text)) - { - method_5(int_, string0 + "_song_" + text, @class, NoteList[text]); - } - else - { - method_11(int_, string0 + "_song_" + text, @class); - } - if (SpList.ContainsKey(text)) - { - method_6(int_, string0 + "_" + text + "_star", @class, SpList[text]); - } - else - { - method_11(int_, string0 + "_" + text + "_star", @class); - } - if (BattleNoteList.ContainsKey(text)) - { - method_6(int_, string0 + "_" + text + "_starbattlemode", @class, BattleNoteList[text]); - } - else - { - method_11(int_, string0 + "_" + text + "_starbattlemode", @class); - } - } - } - method_7(int_, string0 + "_faceoffp1", @class, Class2282); - method_7(int_, string0 + "_faceoffp2", @class, Class2283); - method_7(int_, string0 + "_bossbattlep1", @class, BpmList); - method_7(int_, string0 + "_bossbattlep2", @class, Class2285); - method_8(int_, string0 + "_timesig", @class); - method_9(int_, string0 + "_fretbars", @class); - method_10(int_, string0 + "_markers", @class); - method_11(int_, string0 + "_scripts_notes", @class); - method_11(int_, string0 + "_anim_notes", @class); - method_11(int_, string0 + "_triggers_notes", @class); - method_11(int_, string0 + "_cameras_notes", @class); - method_11(int_, string0 + "_lightshow_notes", @class); - method_11(int_, string0 + "_crowd_notes", @class); - method_11(int_, string0 + "_drums_notes", @class); - method_11(int_, string0 + "_performance_notes", @class); - method_11(int_, string0 + "_scripts", @class); - method_11(int_, string0 + "_anim", @class); - method_11(int_, string0 + "_triggers", @class); - method_11(int_, string0 + "_cameras", @class); - method_11(int_, string0 + "_lightshow", @class); - method_11(int_, string0 + "_crowd", @class); - method_11(int_, string0 + "_drums", @class); - method_11(int_, string0 + "_performance", @class); - return @class; - } + { + var @class = new ZzGenericNode1(); + var int_ = QbSongClass1.AddKeyToDictionary("songs\\" + string0 + ".mid.qb"); + string[] array = + { + "", + "rhythm_", + "guitarcoop_", + "rhythmcoop_", + "aux_" + }; + for (var i = 0; i < array.Length; i++) + { + var str = array[i]; + string[] array2 = + { + "easy", + "medium", + "hard", + "expert" + }; + for (var j = 0; j < array2.Length; j++) + { + var str2 = array2[j]; + var text = str + str2; + if (NoteList.ContainsKey(text)) + { + method_5(int_, string0 + "_song_" + text, @class, NoteList[text]); + } + else + { + method_11(int_, string0 + "_song_" + text, @class); + } + if (SpList.ContainsKey(text)) + { + method_6(int_, string0 + "_" + text + "_star", @class, SpList[text]); + } + else + { + method_11(int_, string0 + "_" + text + "_star", @class); + } + if (BattleNoteList.ContainsKey(text)) + { + method_6(int_, string0 + "_" + text + "_starbattlemode", @class, BattleNoteList[text]); + } + else + { + method_11(int_, string0 + "_" + text + "_starbattlemode", @class); + } + } + } + method_7(int_, string0 + "_faceoffp1", @class, Class2282); + method_7(int_, string0 + "_faceoffp2", @class, Class2283); + method_7(int_, string0 + "_bossbattlep1", @class, BpmList); + method_7(int_, string0 + "_bossbattlep2", @class, Class2285); + method_8(int_, string0 + "_timesig", @class); + method_9(int_, string0 + "_fretbars", @class); + method_10(int_, string0 + "_markers", @class); + method_11(int_, string0 + "_scripts_notes", @class); + method_11(int_, string0 + "_anim_notes", @class); + method_11(int_, string0 + "_triggers_notes", @class); + method_11(int_, string0 + "_cameras_notes", @class); + method_11(int_, string0 + "_lightshow_notes", @class); + method_11(int_, string0 + "_crowd_notes", @class); + method_11(int_, string0 + "_drums_notes", @class); + method_11(int_, string0 + "_performance_notes", @class); + method_11(int_, string0 + "_scripts", @class); + method_11(int_, string0 + "_anim", @class); + method_11(int_, string0 + "_triggers", @class); + method_11(int_, string0 + "_cameras", @class); + method_11(int_, string0 + "_lightshow", @class); + method_11(int_, string0 + "_crowd", @class); + method_11(int_, string0 + "_drums", @class); + method_11(int_, string0 + "_performance", @class); + return @class; + } - private void method_5(int int2, string string0, ZzGenericNode1 class3080, Track class2287) - { - if (class2287.Keys.Count == 0) - { - method_11(int2, string0, class3080); - return; - } - var list = new List(); - foreach (var current in class2287.Keys) - { - list.Add(current); - list.Add(class2287[current].SustainLength); - list.Add(class2287[current].method_0()); - } - class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(list))); - } + private void method_5(int int2, string string0, ZzGenericNode1 class3080, Track class2287) + { + if (class2287.Keys.Count == 0) + { + method_11(int2, string0, class3080); + return; + } + var list = new List(); + foreach (var current in class2287.Keys) + { + list.Add(current); + list.Add(class2287[current].SustainLength); + list.Add(class2287[current].method_0()); + } + class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(list))); + } - private void method_6(int int2, string string0, ZzGenericNode1 class3080, Track class2287) - { - if (class2287.Keys.Count == 0) - { - method_11(int2, string0, class3080); - return; - } - var @class = new ListArrayNode(); - foreach (var current in class2287.Keys) - { - @class.method_3(new IntegerArrayNode(new[] - { - current, - class2287[current][0], - class2287[current][1] - })); - } - class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); - } + private void method_6(int int2, string string0, ZzGenericNode1 class3080, Track class2287) + { + if (class2287.Keys.Count == 0) + { + method_11(int2, string0, class3080); + return; + } + var @class = new ListArrayNode(); + foreach (var current in class2287.Keys) + { + @class.method_3(new IntegerArrayNode(new[] + { + current, + class2287[current][0], + class2287[current][1] + })); + } + class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); + } - private void method_7(int int2, string string0, ZzGenericNode1 class3080, Track class2287) - { - if (class2287.Keys.Count == 0) - { - method_11(int2, string0, class3080); - return; - } - var @class = new ListArrayNode(); - foreach (var current in class2287.Keys) - { - @class.method_3(new IntegerArrayNode(new[] - { - current, - class2287[current] - })); - } - class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); - } + private void method_7(int int2, string string0, ZzGenericNode1 class3080, Track class2287) + { + if (class2287.Keys.Count == 0) + { + method_11(int2, string0, class3080); + return; + } + var @class = new ListArrayNode(); + foreach (var current in class2287.Keys) + { + @class.method_3(new IntegerArrayNode(new[] + { + current, + class2287[current] + })); + } + class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); + } - private void method_8(int int2, string string0, ZzGenericNode1 class3080) - { - var @class = new ListArrayNode(); - foreach (var current in TsList.Keys) - { - @class.method_3(new IntegerArrayNode(new[] - { - current, - TsList[current][0], - TsList[current][1] - })); - } - class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); - } + private void method_8(int int2, string string0, ZzGenericNode1 class3080) + { + var @class = new ListArrayNode(); + foreach (var current in TsList.Keys) + { + @class.method_3(new IntegerArrayNode(new[] + { + current, + TsList[current][0], + TsList[current][1] + })); + } + class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); + } - private void method_9(int int2, string string0, ZzGenericNode1 class3080) - { - class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(FretbarList))); - } + private void method_9(int int2, string string0, ZzGenericNode1 class3080) + { + class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(FretbarList))); + } - private void method_10(int int2, string string0, ZzGenericNode1 class3080) - { - if (Class2281.Keys.Count == 0) - { - method_11(int2, string0, class3080); - return; - } - var @class = new StructureArrayNode(); - foreach (var current in Class2281.Keys) - { - @class.method_3(new StructureHeaderNode(new ZzUnkNode294[] - { - new IntegerStructureNode("time", current), - new UnicodeStructureNode("marker", Class2281[current]) - })); - } - class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); - } + private void method_10(int int2, string string0, ZzGenericNode1 class3080) + { + if (Class2281.Keys.Count == 0) + { + method_11(int2, string0, class3080); + return; + } + var @class = new StructureArrayNode(); + foreach (var current in Class2281.Keys) + { + @class.method_3(new StructureHeaderNode(new ZzUnkNode294[] + { + new IntegerStructureNode("time", current), + new UnicodeStructureNode("marker", Class2281[current]) + })); + } + class3080.method_3(new ArrayPointerRootNode(string0, int2, @class)); + } - private void method_11(int int2, string string0, ZzGenericNode1 class3080) - { - class3080.method_3(new ArrayPointerRootNode(string0, int2, _class2870)); - } - } -} + private void method_11(int int2, string string0, ZzGenericNode1 class3080) + { + class3080.method_3(new ArrayPointerRootNode(string0, int2, _class2870)); + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/Stream16.cs b/GHNamespaceN/Stream16.cs index 4e0fb84..cdd2cd2 100644 --- a/GHNamespaceN/Stream16.cs +++ b/GHNamespaceN/Stream16.cs @@ -7,187 +7,194 @@ namespace GHNamespaceN { - public class Stream16 : Stream15 - { - private bool _bool0; - - private readonly BeConfig _beConfig0; - - private readonly uint _uint0; - - private readonly uint _uint1; - - private readonly uint _uint2; - - private readonly byte[] _byte0; - - private int _int2; - - private readonly byte[] _byte1; - - public Stream16(Stream stream1, WaveFormat waveFormat1, BeConfig beConfig1) : base(stream1, waveFormat1) - { - try - { - _beConfig0 = beConfig1; - var num = LameEncoder.beInitStream(_beConfig0, ref _uint1, ref _uint2, ref _uint0); - if (num != 0u) - { - throw new ApplicationException(string.Format("Lame_encDll.beInitStream failed with the error code {0}", num)); - } - _byte0 = new byte[_uint1 * 2u]; - _byte1 = new byte[_uint2]; - } - catch - { - base.Close(); - throw; - } - } - - public override int vmethod_0() - { - return _byte0.Length; - } - - public void method_1() - { - if (!_bool0) - { - try - { - var num = 0u; - if (_int2 > 0 && LameEncoder.smethod_0(_uint0, _byte0, 0, (uint)_int2, _byte1, ref num) == 0u && num > 0u) - { - base.Write(_byte1, 0, (int)num); - } - num = 0u; - if (LameEncoder.beDeinitStream(_uint0, _byte1, ref num) == 0u && num > 0u) - { - base.Write(_byte1, 0, (int)num); - } - } - finally - { - LameEncoder.beCloseStream(_uint0); - } - } - _bool0 = true; - } - - public override void Close() - { - method_1(); - base.Close(); - } - - public override void Write(byte[] buffer, int offset, int count) - { - var num = 0u; - while (count > 0) - { - if (_int2 > 0) - { - var num2 = Math.Min(count, _byte0.Length - _int2); - Buffer.BlockCopy(buffer, offset, _byte0, _int2, num2); - _int2 += num2; - offset += num2; - count -= num2; - if (_int2 >= _byte0.Length) - { - _int2 = 0; - var num3 = LameEncoder.smethod_1(_uint0, _byte0, _byte1, ref num); - if (num3 != 0u) - { - throw new ApplicationException("Lame_encDll.EncodeChunk failed with the error code " + num3); - } - if (num > 0u) - { - Stream0.Write(_byte1, 0, (int)num); - } - } - } - else if (count >= _byte0.Length) - { - var num3 = LameEncoder.smethod_0(_uint0, buffer, offset, (uint)_byte0.Length, _byte1, ref num); - if (num3 != 0u) - { - throw new ApplicationException("Lame_encDll.EncodeChunk failed with the error code " + num3); - } - if (num > 0u) - { - Stream0.Write(_byte1, 0, (int)num); - } - count -= _byte0.Length; - offset += _byte0.Length; - } - else - { - Buffer.BlockCopy(buffer, offset, _byte0, 0, count); - _int2 = count; - offset += count; - count = 0; - } - } - } - - public static Class16 smethod_0(GenericAudioStream stream10, Stream stream1, int int3, int int4) - { - var waveFormat = stream10.vmethod_0(); - if (waveFormat.waveFormatTag_0 != WaveFormatTag.Pcm || waveFormat.short_2 != 16) - { - stream10 = new Stream4(stream10, 16); - waveFormat = stream10.vmethod_0(); - } - var stream = new Stream16(stream1, waveFormat, (waveFormat.int_0 == int3) ? new BeConfig(waveFormat, (uint)int4) : new BeConfig(waveFormat, (uint)int4, (uint)int3)); - var uint_ = (uint)stream.vmethod_1().Position; - var array = new byte[stream.method_0() * 2]; - Class16 result; - try - { - int count; - while ((count = stream10.Read(array, 0, array.Length)) > 0) - { - stream.Write(array, 0, count); - } - result = new Class16(new WaveFormat(int3, waveFormat.short_0), uint_, (uint)stream.vmethod_1().Length, int4 * 1000); - } - finally - { - stream.method_1(); - } - return result; - } - - public static Class16 smethod_1(Stream stream1, Class16 class160, int int3) - { - return smethod_2(stream1, class160.TimeSpan0, class160.method_3(), int3, false); - } - - public static Class16 smethod_2(Stream stream1, TimeSpan timeSpan0, int int3, int int4, bool bool1) - { - var waveFormat = new WaveFormat(int3, 16, bool1 ? 2 : 1); - var stream = new Stream16(stream1, waveFormat, new BeConfig(waveFormat, (uint)int4)); - var uint_ = (uint)stream.vmethod_1().Position; - var array = new byte[stream.method_0() * 2]; - Class16 result; - try - { - var num = 0; - var num2 = (int)(timeSpan0.TotalSeconds * waveFormat.int_1); - int count; - while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) - { - stream.Write(array, 0, count); - num += array.Length; - } - result = new Class16(waveFormat, uint_, (uint)stream.vmethod_1().Length, int4 * 1000); - } - finally - { - stream.method_1(); - } - return result; - } - } -} + public class Stream16 : Stream15 + { + private bool _bool0; + + private readonly BeConfig _beConfig0; + + private readonly uint _uint0; + + private readonly uint _uint1; + + private readonly uint _uint2; + + private readonly byte[] _byte0; + + private int _int2; + + private readonly byte[] _byte1; + + public Stream16(Stream stream1, WaveFormat waveFormat1, BeConfig beConfig1) : base(stream1, waveFormat1) + { + try + { + _beConfig0 = beConfig1; + var num = LameEncoder.beInitStream(_beConfig0, ref _uint1, ref _uint2, ref _uint0); + if (num != 0u) + { + throw new ApplicationException( + string.Format("Lame_encDll.beInitStream failed with the error code {0}", num)); + } + _byte0 = new byte[_uint1 * 2u]; + _byte1 = new byte[_uint2]; + } + catch + { + base.Close(); + throw; + } + } + + public override int vmethod_0() + { + return _byte0.Length; + } + + public void method_1() + { + if (!_bool0) + { + try + { + var num = 0u; + if (_int2 > 0 && LameEncoder.smethod_0(_uint0, _byte0, 0, (uint) _int2, _byte1, ref num) == 0u && + num > 0u) + { + base.Write(_byte1, 0, (int) num); + } + num = 0u; + if (LameEncoder.beDeinitStream(_uint0, _byte1, ref num) == 0u && num > 0u) + { + base.Write(_byte1, 0, (int) num); + } + } + finally + { + LameEncoder.beCloseStream(_uint0); + } + } + _bool0 = true; + } + + public override void Close() + { + method_1(); + base.Close(); + } + + public override void Write(byte[] buffer, int offset, int count) + { + var num = 0u; + while (count > 0) + { + if (_int2 > 0) + { + var num2 = Math.Min(count, _byte0.Length - _int2); + Buffer.BlockCopy(buffer, offset, _byte0, _int2, num2); + _int2 += num2; + offset += num2; + count -= num2; + if (_int2 >= _byte0.Length) + { + _int2 = 0; + var num3 = LameEncoder.smethod_1(_uint0, _byte0, _byte1, ref num); + if (num3 != 0u) + { + throw new ApplicationException("Lame_encDll.EncodeChunk failed with the error code " + + num3); + } + if (num > 0u) + { + Stream0.Write(_byte1, 0, (int) num); + } + } + } + else if (count >= _byte0.Length) + { + var num3 = LameEncoder.smethod_0(_uint0, buffer, offset, (uint) _byte0.Length, _byte1, ref num); + if (num3 != 0u) + { + throw new ApplicationException("Lame_encDll.EncodeChunk failed with the error code " + num3); + } + if (num > 0u) + { + Stream0.Write(_byte1, 0, (int) num); + } + count -= _byte0.Length; + offset += _byte0.Length; + } + else + { + Buffer.BlockCopy(buffer, offset, _byte0, 0, count); + _int2 = count; + offset += count; + count = 0; + } + } + } + + public static Class16 smethod_0(GenericAudioStream stream10, Stream stream1, int int3, int int4) + { + var waveFormat = stream10.vmethod_0(); + if (waveFormat.waveFormatTag_0 != WaveFormatTag.Pcm || waveFormat.short_2 != 16) + { + stream10 = new Stream4(stream10, 16); + waveFormat = stream10.vmethod_0(); + } + var stream = new Stream16(stream1, waveFormat, + (waveFormat.int_0 == int3) + ? new BeConfig(waveFormat, (uint) int4) + : new BeConfig(waveFormat, (uint) int4, (uint) int3)); + var uint_ = (uint) stream.vmethod_1().Position; + var array = new byte[stream.method_0() * 2]; + Class16 result; + try + { + int count; + while ((count = stream10.Read(array, 0, array.Length)) > 0) + { + stream.Write(array, 0, count); + } + result = new Class16(new WaveFormat(int3, waveFormat.short_0), uint_, (uint) stream.vmethod_1().Length, + int4 * 1000); + } + finally + { + stream.method_1(); + } + return result; + } + + public static Class16 smethod_1(Stream stream1, Class16 class160, int int3) + { + return smethod_2(stream1, class160.TimeSpan0, class160.method_3(), int3, false); + } + + public static Class16 smethod_2(Stream stream1, TimeSpan timeSpan0, int int3, int int4, bool bool1) + { + var waveFormat = new WaveFormat(int3, 16, bool1 ? 2 : 1); + var stream = new Stream16(stream1, waveFormat, new BeConfig(waveFormat, (uint) int4)); + var uint_ = (uint) stream.vmethod_1().Position; + var array = new byte[stream.method_0() * 2]; + Class16 result; + try + { + var num = 0; + var num2 = (int) (timeSpan0.TotalSeconds * waveFormat.int_1); + int count; + while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) + { + stream.Write(array, 0, count); + num += array.Length; + } + result = new Class16(waveFormat, uint_, (uint) stream.vmethod_1().Length, int4 * 1000); + } + finally + { + stream.method_1(); + } + return result; + } + } +} \ No newline at end of file diff --git a/GHNamespaceN/zzNote338.cs b/GHNamespaceN/zzNote338.cs index 3f4a1e4..09b035a 100644 --- a/GHNamespaceN/zzNote338.cs +++ b/GHNamespaceN/zzNote338.cs @@ -3,33 +3,33 @@ namespace GHNamespaceN { - public class ZzNote338 : AbstractNoteClass - { - private readonly int _int1; + public class ZzNote338 : AbstractNoteClass + { + private readonly int _int1; - private readonly int _int2; + private readonly int _int2; - private readonly int _int3; + private readonly int _int3; - private readonly int _int4; + private readonly int _int4; - public ZzNote338(int int5, int int6, int int7, int int8, int int9) - { - Int0 = int5; - _int1 = int6; - _int2 = int7; - _int3 = int8; - _int4 = int9; - } + public ZzNote338(int int5, int int6, int int7, int int8, int int9) + { + Int0 = int5; + _int1 = int6; + _int2 = int7; + _int3 = int8; + _int4 = int9; + } - public int method_1() - { - return _int1; - } + public int method_1() + { + return _int1; + } - public override string ToString() - { - return string.Concat(method_0(), ": ", _int1, "/", Math.Pow(2.0, _int2), ", ", _int3, ", ", _int4); - } - } -} + public override string ToString() + { + return string.Concat(method_0(), ": ", _int1, "/", Math.Pow(2.0, _int2), ", ", _int3, ", ", _int4); + } + } +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate100.cs b/GHTCP.Delegates/Delegate100.cs index 5a37371..5e326f8 100644 --- a/GHTCP.Delegates/Delegate100.cs +++ b/GHTCP.Delegates/Delegate100.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate100(object object0, string string0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate101.cs b/GHTCP.Delegates/Delegate101.cs index 22ef2e5..3cd8cfe 100644 --- a/GHTCP.Delegates/Delegate101.cs +++ b/GHTCP.Delegates/Delegate101.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DateTime Delegate101(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate102.cs b/GHTCP.Delegates/Delegate102.cs index b098452..abd6e61 100644 --- a/GHTCP.Delegates/Delegate102.cs +++ b/GHTCP.Delegates/Delegate102.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char[] Delegate102(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate103.cs b/GHTCP.Delegates/Delegate103.cs index c66ff9b..153b02d 100644 --- a/GHTCP.Delegates/Delegate103.cs +++ b/GHTCP.Delegates/Delegate103.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Assembly Delegate103(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate104.cs b/GHTCP.Delegates/Delegate104.cs index 6f813ec..0408c05 100644 --- a/GHTCP.Delegates/Delegate104.cs +++ b/GHTCP.Delegates/Delegate104.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate104(object object0, Brush brush0, Region region0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate105.cs b/GHTCP.Delegates/Delegate105.cs index b624886..fc83cd8 100644 --- a/GHTCP.Delegates/Delegate105.cs +++ b/GHTCP.Delegates/Delegate105.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DialogResult Delegate105(string string0, string string1, MessageBoxButtons messageBoxButtons0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate106.cs b/GHTCP.Delegates/Delegate106.cs index 8fa9d0d..2d3142b 100644 --- a/GHTCP.Delegates/Delegate106.cs +++ b/GHTCP.Delegates/Delegate106.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Type Delegate106(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate107.cs b/GHTCP.Delegates/Delegate107.cs index 998e1fb..1430b9c 100644 --- a/GHTCP.Delegates/Delegate107.cs +++ b/GHTCP.Delegates/Delegate107.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate107(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate108.cs b/GHTCP.Delegates/Delegate108.cs index 0f3d999..40f52d6 100644 --- a/GHTCP.Delegates/Delegate108.cs +++ b/GHTCP.Delegates/Delegate108.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Size Delegate108(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate109.cs b/GHTCP.Delegates/Delegate109.cs index 09d96a5..65e4d87 100644 --- a/GHTCP.Delegates/Delegate109.cs +++ b/GHTCP.Delegates/Delegate109.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Process Delegate109(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate11.cs b/GHTCP.Delegates/Delegate11.cs index 5d9ed57..af9573c 100644 --- a/GHTCP.Delegates/Delegate11.cs +++ b/GHTCP.Delegates/Delegate11.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TypeCode Delegate11(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate110.cs b/GHTCP.Delegates/Delegate110.cs index 376c13b..73ce004 100644 --- a/GHTCP.Delegates/Delegate110.cs +++ b/GHTCP.Delegates/Delegate110.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char Delegate110(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate111.cs b/GHTCP.Delegates/Delegate111.cs index a48cae4..2c432f5 100644 --- a/GHTCP.Delegates/Delegate111.cs +++ b/GHTCP.Delegates/Delegate111.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate111(object object0, OpCode opCode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate112.cs b/GHTCP.Delegates/Delegate112.cs index 2683c39..cc29c4e 100644 --- a/GHTCP.Delegates/Delegate112.cs +++ b/GHTCP.Delegates/Delegate112.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate IntPtr Delegate112(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate113.cs b/GHTCP.Delegates/Delegate113.cs index 98b6899..1deeb02 100644 --- a/GHTCP.Delegates/Delegate113.cs +++ b/GHTCP.Delegates/Delegate113.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate113(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate114.cs b/GHTCP.Delegates/Delegate114.cs index 8bed2e9..23bca4a 100644 --- a/GHTCP.Delegates/Delegate114.cs +++ b/GHTCP.Delegates/Delegate114.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate114(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate115.cs b/GHTCP.Delegates/Delegate115.cs index 979e61a..d2a0ca2 100644 --- a/GHTCP.Delegates/Delegate115.cs +++ b/GHTCP.Delegates/Delegate115.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate115(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate116.cs b/GHTCP.Delegates/Delegate116.cs index 6e8e276..b71954e 100644 --- a/GHTCP.Delegates/Delegate116.cs +++ b/GHTCP.Delegates/Delegate116.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate116(object object0, Control control0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate117.cs b/GHTCP.Delegates/Delegate117.cs index c34a236..20110dd 100644 --- a/GHTCP.Delegates/Delegate117.cs +++ b/GHTCP.Delegates/Delegate117.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate117(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate118.cs b/GHTCP.Delegates/Delegate118.cs index be11ea1..b5b1c6f 100644 --- a/GHTCP.Delegates/Delegate118.cs +++ b/GHTCP.Delegates/Delegate118.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate ulong Delegate118(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate119.cs b/GHTCP.Delegates/Delegate119.cs index 69a7a7a..5497c1c 100644 --- a/GHTCP.Delegates/Delegate119.cs +++ b/GHTCP.Delegates/Delegate119.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate119(object object0, char char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate12.cs b/GHTCP.Delegates/Delegate12.cs index 55ce882..d6e9846 100644 --- a/GHTCP.Delegates/Delegate12.cs +++ b/GHTCP.Delegates/Delegate12.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Process Delegate12(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate120.cs b/GHTCP.Delegates/Delegate120.cs index b404ad5..285e10e 100644 --- a/GHTCP.Delegates/Delegate120.cs +++ b/GHTCP.Delegates/Delegate120.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Rijndael Delegate120(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate121.cs b/GHTCP.Delegates/Delegate121.cs index 8aea099..e6af4c9 100644 --- a/GHTCP.Delegates/Delegate121.cs +++ b/GHTCP.Delegates/Delegate121.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Rectangle Delegate121(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate122.cs b/GHTCP.Delegates/Delegate122.cs index b62f21e..0944d5f 100644 --- a/GHTCP.Delegates/Delegate122.cs +++ b/GHTCP.Delegates/Delegate122.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ToolStripContentPanel Delegate122(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate123.cs b/GHTCP.Delegates/Delegate123.cs index bfd2dd3..554b916 100644 --- a/GHTCP.Delegates/Delegate123.cs +++ b/GHTCP.Delegates/Delegate123.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate123(object object0, Pen pen0, RectangleF rectangleF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate124.cs b/GHTCP.Delegates/Delegate124.cs index f8c06dd..cff140d 100644 --- a/GHTCP.Delegates/Delegate124.cs +++ b/GHTCP.Delegates/Delegate124.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate124(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate125.cs b/GHTCP.Delegates/Delegate125.cs index 3b6c8c4..8eb2892 100644 --- a/GHTCP.Delegates/Delegate125.cs +++ b/GHTCP.Delegates/Delegate125.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate125(string string0, FileAttributes fileAttributes0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate126.cs b/GHTCP.Delegates/Delegate126.cs index 2f40ead..0abd931 100644 --- a/GHTCP.Delegates/Delegate126.cs +++ b/GHTCP.Delegates/Delegate126.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate126(string string0, string string1, string string2, string string3); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate127.cs b/GHTCP.Delegates/Delegate127.cs index 3998656..300dbd0 100644 --- a/GHTCP.Delegates/Delegate127.cs +++ b/GHTCP.Delegates/Delegate127.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate127(object object0, int int0, char char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate128.cs b/GHTCP.Delegates/Delegate128.cs index 95f6e63..53ee972 100644 --- a/GHTCP.Delegates/Delegate128.cs +++ b/GHTCP.Delegates/Delegate128.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Stream Delegate128(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate129.cs b/GHTCP.Delegates/Delegate129.cs index c2e29ef..2a26543 100644 --- a/GHTCP.Delegates/Delegate129.cs +++ b/GHTCP.Delegates/Delegate129.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate129(string string0, object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate13.cs b/GHTCP.Delegates/Delegate13.cs index e9d5c38..598b7fc 100644 --- a/GHTCP.Delegates/Delegate13.cs +++ b/GHTCP.Delegates/Delegate13.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ModuleHandle Delegate13(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate130.cs b/GHTCP.Delegates/Delegate130.cs index 9470f87..b915632 100644 --- a/GHTCP.Delegates/Delegate130.cs +++ b/GHTCP.Delegates/Delegate130.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate130(float float0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate131.cs b/GHTCP.Delegates/Delegate131.cs index 0945240..985d9b9 100644 --- a/GHTCP.Delegates/Delegate131.cs +++ b/GHTCP.Delegates/Delegate131.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate SHA512 Delegate131(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate132.cs b/GHTCP.Delegates/Delegate132.cs index 5bd4724..344ab9c 100644 --- a/GHTCP.Delegates/Delegate132.cs +++ b/GHTCP.Delegates/Delegate132.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate132(string string0, object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate133.cs b/GHTCP.Delegates/Delegate133.cs index 2880789..a9f2ef6 100644 --- a/GHTCP.Delegates/Delegate133.cs +++ b/GHTCP.Delegates/Delegate133.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ulong Delegate133(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate134.cs b/GHTCP.Delegates/Delegate134.cs index b96c692..d103f6f 100644 --- a/GHTCP.Delegates/Delegate134.cs +++ b/GHTCP.Delegates/Delegate134.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate134(object object0, Brush brush0, RectangleF rectangleF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate135.cs b/GHTCP.Delegates/Delegate135.cs index 09b10cd..ef78a15 100644 --- a/GHTCP.Delegates/Delegate135.cs +++ b/GHTCP.Delegates/Delegate135.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate135(object object0, long long0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate136.cs b/GHTCP.Delegates/Delegate136.cs index 0f6bbe1..27ca8f0 100644 --- a/GHTCP.Delegates/Delegate136.cs +++ b/GHTCP.Delegates/Delegate136.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ushort Delegate136(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate137.cs b/GHTCP.Delegates/Delegate137.cs index f80ee38..e241711 100644 --- a/GHTCP.Delegates/Delegate137.cs +++ b/GHTCP.Delegates/Delegate137.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate137(object object0, BitmapData bitmapData0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate138.cs b/GHTCP.Delegates/Delegate138.cs index b38b212..a16c78c 100644 --- a/GHTCP.Delegates/Delegate138.cs +++ b/GHTCP.Delegates/Delegate138.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate138(object object0, Size size0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate139.cs b/GHTCP.Delegates/Delegate139.cs index d9a8f14..a9cb9af 100644 --- a/GHTCP.Delegates/Delegate139.cs +++ b/GHTCP.Delegates/Delegate139.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate139(object object0, Brush brush0, PointF[] pointF0, FillMode fillMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate14.cs b/GHTCP.Delegates/Delegate14.cs index d646271..e7abf3e 100644 --- a/GHTCP.Delegates/Delegate14.cs +++ b/GHTCP.Delegates/Delegate14.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate14(decimal decimal0, decimal decimal1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate140.cs b/GHTCP.Delegates/Delegate140.cs index 1f2a1bf..d092101 100644 --- a/GHTCP.Delegates/Delegate140.cs +++ b/GHTCP.Delegates/Delegate140.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate short Delegate140(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate141.cs b/GHTCP.Delegates/Delegate141.cs index 4608999..b375fd5 100644 --- a/GHTCP.Delegates/Delegate141.cs +++ b/GHTCP.Delegates/Delegate141.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate object Delegate141(IntPtr intptr0, Type type0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate142.cs b/GHTCP.Delegates/Delegate142.cs index b0a27fe..9b4e42e 100644 --- a/GHTCP.Delegates/Delegate142.cs +++ b/GHTCP.Delegates/Delegate142.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Brush Delegate142(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate143.cs b/GHTCP.Delegates/Delegate143.cs index 5970e65..94944e4 100644 --- a/GHTCP.Delegates/Delegate143.cs +++ b/GHTCP.Delegates/Delegate143.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Pen Delegate143(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate144.cs b/GHTCP.Delegates/Delegate144.cs index 06e2c4c..546d7e7 100644 --- a/GHTCP.Delegates/Delegate144.cs +++ b/GHTCP.Delegates/Delegate144.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Size Delegate144(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate145.cs b/GHTCP.Delegates/Delegate145.cs index 91eedee..c571530 100644 --- a/GHTCP.Delegates/Delegate145.cs +++ b/GHTCP.Delegates/Delegate145.cs @@ -2,5 +2,6 @@ namespace GHTCP.Delegates { - public delegate void Delegate145(object object0, Image image0, Rectangle rectangle0, int int0, int int1, int int2, int int3, GraphicsUnit graphicsUnit0); -} + public delegate void Delegate145(object object0, Image image0, Rectangle rectangle0, int int0, int int1, int int2, + int int3, GraphicsUnit graphicsUnit0); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate146.cs b/GHTCP.Delegates/Delegate146.cs index abe34ab..649db5d 100644 --- a/GHTCP.Delegates/Delegate146.cs +++ b/GHTCP.Delegates/Delegate146.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate146(string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate147.cs b/GHTCP.Delegates/Delegate147.cs index d0c7c41..e473bfb 100644 --- a/GHTCP.Delegates/Delegate147.cs +++ b/GHTCP.Delegates/Delegate147.cs @@ -3,5 +3,6 @@ namespace GHTCP.Delegates { - public delegate BitmapData Delegate147(object object0, Rectangle rectangle0, ImageLockMode imageLockMode0, PixelFormat pixelFormat0); -} + public delegate BitmapData Delegate147(object object0, Rectangle rectangle0, ImageLockMode imageLockMode0, + PixelFormat pixelFormat0); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate148.cs b/GHTCP.Delegates/Delegate148.cs index fb32b44..dfdd635 100644 --- a/GHTCP.Delegates/Delegate148.cs +++ b/GHTCP.Delegates/Delegate148.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate148(int int0, int int1, ref int int2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate149.cs b/GHTCP.Delegates/Delegate149.cs index 63d558c..65c316b 100644 --- a/GHTCP.Delegates/Delegate149.cs +++ b/GHTCP.Delegates/Delegate149.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate149(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate15.cs b/GHTCP.Delegates/Delegate15.cs index e905b84..b302a2e 100644 --- a/GHTCP.Delegates/Delegate15.cs +++ b/GHTCP.Delegates/Delegate15.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate15(IntPtr intptr0, byte[] byte0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate150.cs b/GHTCP.Delegates/Delegate150.cs index b8a6b8a..0d3d42c 100644 --- a/GHTCP.Delegates/Delegate150.cs +++ b/GHTCP.Delegates/Delegate150.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate150(object object0, Brush brush0, GraphicsPath graphicsPath0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate151.cs b/GHTCP.Delegates/Delegate151.cs index 8c20d83..37e1944 100644 --- a/GHTCP.Delegates/Delegate151.cs +++ b/GHTCP.Delegates/Delegate151.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate151(object object0, float float0, float float1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate152.cs b/GHTCP.Delegates/Delegate152.cs index 312aabf..8eabe6e 100644 --- a/GHTCP.Delegates/Delegate152.cs +++ b/GHTCP.Delegates/Delegate152.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate152(object object0, byte[] byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate153.cs b/GHTCP.Delegates/Delegate153.cs index b455c9d..507ae23 100644 --- a/GHTCP.Delegates/Delegate153.cs +++ b/GHTCP.Delegates/Delegate153.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TreeNode Delegate153(object object0, string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate154.cs b/GHTCP.Delegates/Delegate154.cs index 3d957cc..7ab06a6 100644 --- a/GHTCP.Delegates/Delegate154.cs +++ b/GHTCP.Delegates/Delegate154.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate154(object object0, TableLayoutPanelCellBorderStyle tableLayoutPanelCellBorderStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate155.cs b/GHTCP.Delegates/Delegate155.cs index 3197422..9f6b002 100644 --- a/GHTCP.Delegates/Delegate155.cs +++ b/GHTCP.Delegates/Delegate155.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DialogResult Delegate155(string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate156.cs b/GHTCP.Delegates/Delegate156.cs index 4a9d7f1..29b6363 100644 --- a/GHTCP.Delegates/Delegate156.cs +++ b/GHTCP.Delegates/Delegate156.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate156(object object0, CompositingQuality compositingQuality0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate157.cs b/GHTCP.Delegates/Delegate157.cs index a0b3022..1b66326 100644 --- a/GHTCP.Delegates/Delegate157.cs +++ b/GHTCP.Delegates/Delegate157.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate157(object object0, int int0, TreeNode treeNode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate158.cs b/GHTCP.Delegates/Delegate158.cs index 12a9078..14fe58a 100644 --- a/GHTCP.Delegates/Delegate158.cs +++ b/GHTCP.Delegates/Delegate158.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate158(object object0, short short0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate159.cs b/GHTCP.Delegates/Delegate159.cs index 35f574b..912958c 100644 --- a/GHTCP.Delegates/Delegate159.cs +++ b/GHTCP.Delegates/Delegate159.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate159(object object0, ToolStripItemDisplayStyle toolStripItemDisplayStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate16.cs b/GHTCP.Delegates/Delegate16.cs index e9ae5f5..a2519d6 100644 --- a/GHTCP.Delegates/Delegate16.cs +++ b/GHTCP.Delegates/Delegate16.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DialogResult Delegate16(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate160.cs b/GHTCP.Delegates/Delegate160.cs index b6e8550..a711396 100644 --- a/GHTCP.Delegates/Delegate160.cs +++ b/GHTCP.Delegates/Delegate160.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate MouseButtons Delegate160(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate161.cs b/GHTCP.Delegates/Delegate161.cs index 4e12857..ea71bc2 100644 --- a/GHTCP.Delegates/Delegate161.cs +++ b/GHTCP.Delegates/Delegate161.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate161(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate162.cs b/GHTCP.Delegates/Delegate162.cs index 7111cf4..614d2e2 100644 --- a/GHTCP.Delegates/Delegate162.cs +++ b/GHTCP.Delegates/Delegate162.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate162(object object0, ToolStripGripStyle toolStripGripStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate163.cs b/GHTCP.Delegates/Delegate163.cs index b0b11f3..4bb4984 100644 --- a/GHTCP.Delegates/Delegate163.cs +++ b/GHTCP.Delegates/Delegate163.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TreeNodeCollection Delegate163(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate164.cs b/GHTCP.Delegates/Delegate164.cs index 68acfa3..dc90672 100644 --- a/GHTCP.Delegates/Delegate164.cs +++ b/GHTCP.Delegates/Delegate164.cs @@ -2,5 +2,6 @@ namespace GHTCP.Delegates { - public delegate FileStream Delegate164(string string0, FileMode fileMode0, FileAccess fileAccess0, FileShare fileShare0); -} + public delegate FileStream Delegate164(string string0, FileMode fileMode0, FileAccess fileAccess0, + FileShare fileShare0); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate165.cs b/GHTCP.Delegates/Delegate165.cs index e89229a..e07f21a 100644 --- a/GHTCP.Delegates/Delegate165.cs +++ b/GHTCP.Delegates/Delegate165.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate165(object object0, object object1, ScrollEventArgs scrollEventArgs0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate166.cs b/GHTCP.Delegates/Delegate166.cs index 92527d0..7c52f49 100644 --- a/GHTCP.Delegates/Delegate166.cs +++ b/GHTCP.Delegates/Delegate166.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate166(object object0, float float0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate167.cs b/GHTCP.Delegates/Delegate167.cs index 2553e16..69f44ef 100644 --- a/GHTCP.Delegates/Delegate167.cs +++ b/GHTCP.Delegates/Delegate167.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate167(object object0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate168.cs b/GHTCP.Delegates/Delegate168.cs index 8b8d97e..6fb7ac4 100644 --- a/GHTCP.Delegates/Delegate168.cs +++ b/GHTCP.Delegates/Delegate168.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate168(object object0, WaveFormat waveFormat0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate169.cs b/GHTCP.Delegates/Delegate169.cs index eb7e983..03eb2c3 100644 --- a/GHTCP.Delegates/Delegate169.cs +++ b/GHTCP.Delegates/Delegate169.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DragDropEffects Delegate169(object object0, object object1, DragDropEffects dragDropEffects0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate17.cs b/GHTCP.Delegates/Delegate17.cs index 00b9192..6772d73 100644 --- a/GHTCP.Delegates/Delegate17.cs +++ b/GHTCP.Delegates/Delegate17.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate17(object object0, IntPtr intptr0, CooperativeLevel cooperativeLevel0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate170.cs b/GHTCP.Delegates/Delegate170.cs index a2597e3..6054a3d 100644 --- a/GHTCP.Delegates/Delegate170.cs +++ b/GHTCP.Delegates/Delegate170.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DateTime Delegate170(DateTime dateTime0, TimeSpan timeSpan0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate171.cs b/GHTCP.Delegates/Delegate171.cs index b0f3650..8e54caf 100644 --- a/GHTCP.Delegates/Delegate171.cs +++ b/GHTCP.Delegates/Delegate171.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Encoding Delegate171(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate172.cs b/GHTCP.Delegates/Delegate172.cs index e190485..365f759 100644 --- a/GHTCP.Delegates/Delegate172.cs +++ b/GHTCP.Delegates/Delegate172.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate172(long long0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate173.cs b/GHTCP.Delegates/Delegate173.cs index ecefe97..c212ca6 100644 --- a/GHTCP.Delegates/Delegate173.cs +++ b/GHTCP.Delegates/Delegate173.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate GCHandle Delegate173(IntPtr intptr0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate174.cs b/GHTCP.Delegates/Delegate174.cs index 0eadeab..b0f8415 100644 --- a/GHTCP.Delegates/Delegate174.cs +++ b/GHTCP.Delegates/Delegate174.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate174(object object0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate175.cs b/GHTCP.Delegates/Delegate175.cs index 61f3a0a..64c66ca 100644 --- a/GHTCP.Delegates/Delegate175.cs +++ b/GHTCP.Delegates/Delegate175.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate175(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate176.cs b/GHTCP.Delegates/Delegate176.cs index 0a66383..d571dab 100644 --- a/GHTCP.Delegates/Delegate176.cs +++ b/GHTCP.Delegates/Delegate176.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate176(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate177.cs b/GHTCP.Delegates/Delegate177.cs index 9a418ce..5091cd9 100644 --- a/GHTCP.Delegates/Delegate177.cs +++ b/GHTCP.Delegates/Delegate177.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string[] Delegate177(object object0, char[] char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate178.cs b/GHTCP.Delegates/Delegate178.cs index 0a3d66b..941d21f 100644 --- a/GHTCP.Delegates/Delegate178.cs +++ b/GHTCP.Delegates/Delegate178.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate178(Form form0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate179.cs b/GHTCP.Delegates/Delegate179.cs index 7ac7cda..6254c3e 100644 --- a/GHTCP.Delegates/Delegate179.cs +++ b/GHTCP.Delegates/Delegate179.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate179(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate18.cs b/GHTCP.Delegates/Delegate18.cs index 12216b8..cb1d674 100644 --- a/GHTCP.Delegates/Delegate18.cs +++ b/GHTCP.Delegates/Delegate18.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate18(object object0, byte byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate180.cs b/GHTCP.Delegates/Delegate180.cs index 8f298d2..8995229 100644 --- a/GHTCP.Delegates/Delegate180.cs +++ b/GHTCP.Delegates/Delegate180.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate object Delegate180(object object0, Delegate delegate0, object[] object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate181.cs b/GHTCP.Delegates/Delegate181.cs index 5630403..b8613a0 100644 --- a/GHTCP.Delegates/Delegate181.cs +++ b/GHTCP.Delegates/Delegate181.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate object Delegate181(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate182.cs b/GHTCP.Delegates/Delegate182.cs index d3ac058..ec4bb8d 100644 --- a/GHTCP.Delegates/Delegate182.cs +++ b/GHTCP.Delegates/Delegate182.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate182(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate183.cs b/GHTCP.Delegates/Delegate183.cs index 86171c8..92825a4 100644 --- a/GHTCP.Delegates/Delegate183.cs +++ b/GHTCP.Delegates/Delegate183.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate AppDomain Delegate183(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate184.cs b/GHTCP.Delegates/Delegate184.cs index b0a7fc7..a2f3206 100644 --- a/GHTCP.Delegates/Delegate184.cs +++ b/GHTCP.Delegates/Delegate184.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate184(string[] string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate185.cs b/GHTCP.Delegates/Delegate185.cs index 9a21fc1..b476bf9 100644 --- a/GHTCP.Delegates/Delegate185.cs +++ b/GHTCP.Delegates/Delegate185.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte Delegate185(byte byte0, byte byte1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate186.cs b/GHTCP.Delegates/Delegate186.cs index 931e1e3..f0aeaaf 100644 --- a/GHTCP.Delegates/Delegate186.cs +++ b/GHTCP.Delegates/Delegate186.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TextWriter Delegate186(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate187.cs b/GHTCP.Delegates/Delegate187.cs index de62b7c..6ded1e5 100644 --- a/GHTCP.Delegates/Delegate187.cs +++ b/GHTCP.Delegates/Delegate187.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate187(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate188.cs b/GHTCP.Delegates/Delegate188.cs index 337f171..f4275aa 100644 --- a/GHTCP.Delegates/Delegate188.cs +++ b/GHTCP.Delegates/Delegate188.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Assembly Delegate188(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate189.cs b/GHTCP.Delegates/Delegate189.cs index f8143a1..33a2055 100644 --- a/GHTCP.Delegates/Delegate189.cs +++ b/GHTCP.Delegates/Delegate189.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate IEnumerator Delegate189(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate19.cs b/GHTCP.Delegates/Delegate19.cs index 4e2170c..53b61b3 100644 --- a/GHTCP.Delegates/Delegate19.cs +++ b/GHTCP.Delegates/Delegate19.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate long Delegate19(object object0, long long0, SeekOrigin seekOrigin0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate190.cs b/GHTCP.Delegates/Delegate190.cs index 59a9ae0..3721d82 100644 --- a/GHTCP.Delegates/Delegate190.cs +++ b/GHTCP.Delegates/Delegate190.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Delegate Delegate190(object object0, Type type0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate191.cs b/GHTCP.Delegates/Delegate191.cs index e07692d..59022d4 100644 --- a/GHTCP.Delegates/Delegate191.cs +++ b/GHTCP.Delegates/Delegate191.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StreamWriter Delegate191(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate192.cs b/GHTCP.Delegates/Delegate192.cs index 5ca2006..4ac1c73 100644 --- a/GHTCP.Delegates/Delegate192.cs +++ b/GHTCP.Delegates/Delegate192.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate short Delegate192(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate193.cs b/GHTCP.Delegates/Delegate193.cs index d990521..769ea6d 100644 --- a/GHTCP.Delegates/Delegate193.cs +++ b/GHTCP.Delegates/Delegate193.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate CultureInfo Delegate193(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate194.cs b/GHTCP.Delegates/Delegate194.cs index 13fe5cc..6b783e6 100644 --- a/GHTCP.Delegates/Delegate194.cs +++ b/GHTCP.Delegates/Delegate194.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate194(object object0, byte[] byte0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate195.cs b/GHTCP.Delegates/Delegate195.cs index 6ef060c..d5f17fa 100644 --- a/GHTCP.Delegates/Delegate195.cs +++ b/GHTCP.Delegates/Delegate195.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DateTime Delegate195(long long0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate196.cs b/GHTCP.Delegates/Delegate196.cs index 36e1fdc..d781700 100644 --- a/GHTCP.Delegates/Delegate196.cs +++ b/GHTCP.Delegates/Delegate196.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate196(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate197.cs b/GHTCP.Delegates/Delegate197.cs index 9ee1e72..51b4e8c 100644 --- a/GHTCP.Delegates/Delegate197.cs +++ b/GHTCP.Delegates/Delegate197.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate IDataObject Delegate197(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate198.cs b/GHTCP.Delegates/Delegate198.cs index 73066d3..53097f4 100644 --- a/GHTCP.Delegates/Delegate198.cs +++ b/GHTCP.Delegates/Delegate198.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate long Delegate198(long long0, long long1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate199.cs b/GHTCP.Delegates/Delegate199.cs index 8df5df0..9f590ae 100644 --- a/GHTCP.Delegates/Delegate199.cs +++ b/GHTCP.Delegates/Delegate199.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate199(object object0, float float0, float float1, float float2, float float3); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate20.cs b/GHTCP.Delegates/Delegate20.cs index d8f061a..633e640 100644 --- a/GHTCP.Delegates/Delegate20.cs +++ b/GHTCP.Delegates/Delegate20.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate20(object object0, int int0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate200.cs b/GHTCP.Delegates/Delegate200.cs index 5b7fa2d..b0c7d25 100644 --- a/GHTCP.Delegates/Delegate200.cs +++ b/GHTCP.Delegates/Delegate200.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate long Delegate200(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate201.cs b/GHTCP.Delegates/Delegate201.cs index a4cd551..bd19089 100644 --- a/GHTCP.Delegates/Delegate201.cs +++ b/GHTCP.Delegates/Delegate201.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string[] Delegate201(object object0, char[] char0, StringSplitOptions stringSplitOptions0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate202.cs b/GHTCP.Delegates/Delegate202.cs index fed988b..ac49e77 100644 --- a/GHTCP.Delegates/Delegate202.cs +++ b/GHTCP.Delegates/Delegate202.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate202(object object0, Icon icon0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate203.cs b/GHTCP.Delegates/Delegate203.cs index 9bde8fb..1e63808 100644 --- a/GHTCP.Delegates/Delegate203.cs +++ b/GHTCP.Delegates/Delegate203.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate203(object object0, CultureInfo cultureInfo0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate204.cs b/GHTCP.Delegates/Delegate204.cs index 3da634b..5b3c16c 100644 --- a/GHTCP.Delegates/Delegate204.cs +++ b/GHTCP.Delegates/Delegate204.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate204(short short0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate205.cs b/GHTCP.Delegates/Delegate205.cs index 42d5c50..e96f79e 100644 --- a/GHTCP.Delegates/Delegate205.cs +++ b/GHTCP.Delegates/Delegate205.cs @@ -2,5 +2,6 @@ namespace GHTCP.Delegates { - public delegate void Delegate205(object object0, string string0, Font font0, Brush brush0, float float0, float float1); -} + public delegate void Delegate205(object object0, string string0, Font font0, Brush brush0, float float0, + float float1); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate206.cs b/GHTCP.Delegates/Delegate206.cs index 9197a65..f846b70 100644 --- a/GHTCP.Delegates/Delegate206.cs +++ b/GHTCP.Delegates/Delegate206.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate206(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate207.cs b/GHTCP.Delegates/Delegate207.cs index 663bda0..f719af4 100644 --- a/GHTCP.Delegates/Delegate207.cs +++ b/GHTCP.Delegates/Delegate207.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate207(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate208.cs b/GHTCP.Delegates/Delegate208.cs index a186add..d98f339 100644 --- a/GHTCP.Delegates/Delegate208.cs +++ b/GHTCP.Delegates/Delegate208.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate208(TextWriter textWriter0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate209.cs b/GHTCP.Delegates/Delegate209.cs index 86fe303..09b7aad 100644 --- a/GHTCP.Delegates/Delegate209.cs +++ b/GHTCP.Delegates/Delegate209.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate double Delegate209(double double0, double double1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate21.cs b/GHTCP.Delegates/Delegate21.cs index a840c8e..0fcbf7b 100644 --- a/GHTCP.Delegates/Delegate21.cs +++ b/GHTCP.Delegates/Delegate21.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate long Delegate21(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate210.cs b/GHTCP.Delegates/Delegate210.cs index dbbe3c0..181fc9f 100644 --- a/GHTCP.Delegates/Delegate210.cs +++ b/GHTCP.Delegates/Delegate210.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ImageFormat Delegate210(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate211.cs b/GHTCP.Delegates/Delegate211.cs index 7934ad0..7a45235 100644 --- a/GHTCP.Delegates/Delegate211.cs +++ b/GHTCP.Delegates/Delegate211.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate IntPtr Delegate211(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate212.cs b/GHTCP.Delegates/Delegate212.cs index 72cafa1..9a5663b 100644 --- a/GHTCP.Delegates/Delegate212.cs +++ b/GHTCP.Delegates/Delegate212.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate GCHandle Delegate212(object object0, GCHandleType gchandleType0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate213.cs b/GHTCP.Delegates/Delegate213.cs index faeba7f..7c2d399 100644 --- a/GHTCP.Delegates/Delegate213.cs +++ b/GHTCP.Delegates/Delegate213.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate213(string string0, object[] object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate214.cs b/GHTCP.Delegates/Delegate214.cs index ea71dcb..35bc341 100644 --- a/GHTCP.Delegates/Delegate214.cs +++ b/GHTCP.Delegates/Delegate214.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate214(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate215.cs b/GHTCP.Delegates/Delegate215.cs index 6d2f5b2..7d848cd 100644 --- a/GHTCP.Delegates/Delegate215.cs +++ b/GHTCP.Delegates/Delegate215.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate215(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate216.cs b/GHTCP.Delegates/Delegate216.cs index 28774ba..bb8579a 100644 --- a/GHTCP.Delegates/Delegate216.cs +++ b/GHTCP.Delegates/Delegate216.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate object Delegate216(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate217.cs b/GHTCP.Delegates/Delegate217.cs index 03a7665..9990468 100644 --- a/GHTCP.Delegates/Delegate217.cs +++ b/GHTCP.Delegates/Delegate217.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ICryptoTransform Delegate217(object object0, byte[] byte0, byte[] byte1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate218.cs b/GHTCP.Delegates/Delegate218.cs index 25723ea..31cbaf9 100644 --- a/GHTCP.Delegates/Delegate218.cs +++ b/GHTCP.Delegates/Delegate218.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate sbyte Delegate218(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate219.cs b/GHTCP.Delegates/Delegate219.cs index cb64de6..7423d38 100644 --- a/GHTCP.Delegates/Delegate219.cs +++ b/GHTCP.Delegates/Delegate219.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate219(decimal decimal0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate22.cs b/GHTCP.Delegates/Delegate22.cs index c096a38..fb2ea35 100644 --- a/GHTCP.Delegates/Delegate22.cs +++ b/GHTCP.Delegates/Delegate22.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate double Delegate22(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate220.cs b/GHTCP.Delegates/Delegate220.cs index 344a06b..24b38ae 100644 --- a/GHTCP.Delegates/Delegate220.cs +++ b/GHTCP.Delegates/Delegate220.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate220(Array array0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate221.cs b/GHTCP.Delegates/Delegate221.cs index 750386c..e104ac3 100644 --- a/GHTCP.Delegates/Delegate221.cs +++ b/GHTCP.Delegates/Delegate221.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Stream Delegate221(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate222.cs b/GHTCP.Delegates/Delegate222.cs index aad4380..94ed3b4 100644 --- a/GHTCP.Delegates/Delegate222.cs +++ b/GHTCP.Delegates/Delegate222.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate222(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate223.cs b/GHTCP.Delegates/Delegate223.cs index b89bf90..18ec9ce 100644 --- a/GHTCP.Delegates/Delegate223.cs +++ b/GHTCP.Delegates/Delegate223.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate223(uint uint0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate224.cs b/GHTCP.Delegates/Delegate224.cs index 7947a6f..5bbb590 100644 --- a/GHTCP.Delegates/Delegate224.cs +++ b/GHTCP.Delegates/Delegate224.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate224(object object0, Color color0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate225.cs b/GHTCP.Delegates/Delegate225.cs index 12bdba9..7b97cb3 100644 --- a/GHTCP.Delegates/Delegate225.cs +++ b/GHTCP.Delegates/Delegate225.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Control Delegate225(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate226.cs b/GHTCP.Delegates/Delegate226.cs index 21b8c18..148ec6c 100644 --- a/GHTCP.Delegates/Delegate226.cs +++ b/GHTCP.Delegates/Delegate226.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate226(object object0, ref Message message0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate227.cs b/GHTCP.Delegates/Delegate227.cs index 0379b6d..71d623c 100644 --- a/GHTCP.Delegates/Delegate227.cs +++ b/GHTCP.Delegates/Delegate227.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate227(object object0, Stream stream0, ImageFormat imageFormat0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate228.cs b/GHTCP.Delegates/Delegate228.cs index f02b86a..c626cec 100644 --- a/GHTCP.Delegates/Delegate228.cs +++ b/GHTCP.Delegates/Delegate228.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate228(object object0, string string0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate229.cs b/GHTCP.Delegates/Delegate229.cs index 7f4b353..0e96ab8 100644 --- a/GHTCP.Delegates/Delegate229.cs +++ b/GHTCP.Delegates/Delegate229.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate229(object object0, byte[] byte0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate23.cs b/GHTCP.Delegates/Delegate23.cs index afad460..3ed0cd0 100644 --- a/GHTCP.Delegates/Delegate23.cs +++ b/GHTCP.Delegates/Delegate23.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate23(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate230.cs b/GHTCP.Delegates/Delegate230.cs index cb245ad..ab3d043 100644 --- a/GHTCP.Delegates/Delegate230.cs +++ b/GHTCP.Delegates/Delegate230.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate230(byte[] byte0, int int0, IntPtr intptr0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate231.cs b/GHTCP.Delegates/Delegate231.cs index 46ff0be..e4714f8 100644 --- a/GHTCP.Delegates/Delegate231.cs +++ b/GHTCP.Delegates/Delegate231.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate231(object object0, string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate232.cs b/GHTCP.Delegates/Delegate232.cs index 42517b6..96e309f 100644 --- a/GHTCP.Delegates/Delegate232.cs +++ b/GHTCP.Delegates/Delegate232.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Control.ControlCollection Delegate232(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate233.cs b/GHTCP.Delegates/Delegate233.cs index 531fa33..c5b83dd 100644 --- a/GHTCP.Delegates/Delegate233.cs +++ b/GHTCP.Delegates/Delegate233.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Point Delegate233(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate234.cs b/GHTCP.Delegates/Delegate234.cs index 04e4d15..08f8b87 100644 --- a/GHTCP.Delegates/Delegate234.cs +++ b/GHTCP.Delegates/Delegate234.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate234(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate235.cs b/GHTCP.Delegates/Delegate235.cs index 488bb41..eb86ecb 100644 --- a/GHTCP.Delegates/Delegate235.cs +++ b/GHTCP.Delegates/Delegate235.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate235(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate236.cs b/GHTCP.Delegates/Delegate236.cs index 1016e03..89f8fa4 100644 --- a/GHTCP.Delegates/Delegate236.cs +++ b/GHTCP.Delegates/Delegate236.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate236(char char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate237.cs b/GHTCP.Delegates/Delegate237.cs index 165cb38..9d7d245 100644 --- a/GHTCP.Delegates/Delegate237.cs +++ b/GHTCP.Delegates/Delegate237.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate237(object object0, string string0, IWin32Window iwin32Window0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate238.cs b/GHTCP.Delegates/Delegate238.cs index 1033a38..6ed6388 100644 --- a/GHTCP.Delegates/Delegate238.cs +++ b/GHTCP.Delegates/Delegate238.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate238(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate239.cs b/GHTCP.Delegates/Delegate239.cs index 109f61d..371c242 100644 --- a/GHTCP.Delegates/Delegate239.cs +++ b/GHTCP.Delegates/Delegate239.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DialogResult Delegate239(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate24.cs b/GHTCP.Delegates/Delegate24.cs index 6fe9dcd..a34fba0 100644 --- a/GHTCP.Delegates/Delegate24.cs +++ b/GHTCP.Delegates/Delegate24.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate24(Rectangle rectangle0, Rectangle rectangle1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate240.cs b/GHTCP.Delegates/Delegate240.cs index 0e106a9..4bf2cc3 100644 --- a/GHTCP.Delegates/Delegate240.cs +++ b/GHTCP.Delegates/Delegate240.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DateTime Delegate240(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate241.cs b/GHTCP.Delegates/Delegate241.cs index fadd9c6..4b926d3 100644 --- a/GHTCP.Delegates/Delegate241.cs +++ b/GHTCP.Delegates/Delegate241.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate241(string string0, byte[] byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate242.cs b/GHTCP.Delegates/Delegate242.cs index 1443e4c..ac47669 100644 --- a/GHTCP.Delegates/Delegate242.cs +++ b/GHTCP.Delegates/Delegate242.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate242(object object0, object object1, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate243.cs b/GHTCP.Delegates/Delegate243.cs index d42c168..42c7a13 100644 --- a/GHTCP.Delegates/Delegate243.cs +++ b/GHTCP.Delegates/Delegate243.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate243(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate244.cs b/GHTCP.Delegates/Delegate244.cs index d7fb008..1d2bb91 100644 --- a/GHTCP.Delegates/Delegate244.cs +++ b/GHTCP.Delegates/Delegate244.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate byte Delegate244(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate245.cs b/GHTCP.Delegates/Delegate245.cs index f10e2ae..a5791ae 100644 --- a/GHTCP.Delegates/Delegate245.cs +++ b/GHTCP.Delegates/Delegate245.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte Delegate245(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate246.cs b/GHTCP.Delegates/Delegate246.cs index ee8a27f..655c38e 100644 --- a/GHTCP.Delegates/Delegate246.cs +++ b/GHTCP.Delegates/Delegate246.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate double Delegate246(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate247.cs b/GHTCP.Delegates/Delegate247.cs index e154fc4..f7d09a0 100644 --- a/GHTCP.Delegates/Delegate247.cs +++ b/GHTCP.Delegates/Delegate247.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate247(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate248.cs b/GHTCP.Delegates/Delegate248.cs index 5b89ade..c6b3d0c 100644 --- a/GHTCP.Delegates/Delegate248.cs +++ b/GHTCP.Delegates/Delegate248.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate248(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate249.cs b/GHTCP.Delegates/Delegate249.cs index 92a388f..d384d7d 100644 --- a/GHTCP.Delegates/Delegate249.cs +++ b/GHTCP.Delegates/Delegate249.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate249(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate25.cs b/GHTCP.Delegates/Delegate25.cs index b0b5ccb..5744212 100644 --- a/GHTCP.Delegates/Delegate25.cs +++ b/GHTCP.Delegates/Delegate25.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate short Delegate25(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate250.cs b/GHTCP.Delegates/Delegate250.cs index 9c69851..52a71ed 100644 --- a/GHTCP.Delegates/Delegate250.cs +++ b/GHTCP.Delegates/Delegate250.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate250(object object0, DashStyle dashStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate251.cs b/GHTCP.Delegates/Delegate251.cs index 6394809..b2d522f 100644 --- a/GHTCP.Delegates/Delegate251.cs +++ b/GHTCP.Delegates/Delegate251.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate251(IntPtr intptr0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate252.cs b/GHTCP.Delegates/Delegate252.cs index 9202ab0..e517542 100644 --- a/GHTCP.Delegates/Delegate252.cs +++ b/GHTCP.Delegates/Delegate252.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate252(float float0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate253.cs b/GHTCP.Delegates/Delegate253.cs index e8ba457..2c7ab8d 100644 --- a/GHTCP.Delegates/Delegate253.cs +++ b/GHTCP.Delegates/Delegate253.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Image Delegate253(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate254.cs b/GHTCP.Delegates/Delegate254.cs index 8353593..0b19e97 100644 --- a/GHTCP.Delegates/Delegate254.cs +++ b/GHTCP.Delegates/Delegate254.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate254(Array array0, RuntimeFieldHandle runtimeFieldHandle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate255.cs b/GHTCP.Delegates/Delegate255.cs index 0b6e914..28728d2 100644 --- a/GHTCP.Delegates/Delegate255.cs +++ b/GHTCP.Delegates/Delegate255.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate255(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate256.cs b/GHTCP.Delegates/Delegate256.cs index 02a1499..ceb4191 100644 --- a/GHTCP.Delegates/Delegate256.cs +++ b/GHTCP.Delegates/Delegate256.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate GCHandle Delegate256(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate257.cs b/GHTCP.Delegates/Delegate257.cs index 6f69aa1..731d360 100644 --- a/GHTCP.Delegates/Delegate257.cs +++ b/GHTCP.Delegates/Delegate257.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate257(object object0, Array array0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate258.cs b/GHTCP.Delegates/Delegate258.cs index 502e2aa..a14b7e0 100644 --- a/GHTCP.Delegates/Delegate258.cs +++ b/GHTCP.Delegates/Delegate258.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TreeNode Delegate258(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate259.cs b/GHTCP.Delegates/Delegate259.cs index 76891b2..e1995bd 100644 --- a/GHTCP.Delegates/Delegate259.cs +++ b/GHTCP.Delegates/Delegate259.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string[] Delegate259(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate26.cs b/GHTCP.Delegates/Delegate26.cs index 42bcd0a..7050828 100644 --- a/GHTCP.Delegates/Delegate26.cs +++ b/GHTCP.Delegates/Delegate26.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate short Delegate26(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate260.cs b/GHTCP.Delegates/Delegate260.cs index e370a50..3f7bd09 100644 --- a/GHTCP.Delegates/Delegate260.cs +++ b/GHTCP.Delegates/Delegate260.cs @@ -2,5 +2,6 @@ namespace GHTCP.Delegates { - public delegate string[] Delegate260(object object0, char[] char0, int int0, StringSplitOptions stringSplitOptions0); -} + public delegate string[] Delegate260(object object0, char[] char0, int int0, + StringSplitOptions stringSplitOptions0); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate261.cs b/GHTCP.Delegates/Delegate261.cs index 2f78e36..94c4ff4 100644 --- a/GHTCP.Delegates/Delegate261.cs +++ b/GHTCP.Delegates/Delegate261.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate char Delegate261(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate262.cs b/GHTCP.Delegates/Delegate262.cs index 2cb783b..8a6f9e2 100644 --- a/GHTCP.Delegates/Delegate262.cs +++ b/GHTCP.Delegates/Delegate262.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate AssemblyName Delegate262(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate263.cs b/GHTCP.Delegates/Delegate263.cs index c3aafb4..e6bdf53 100644 --- a/GHTCP.Delegates/Delegate263.cs +++ b/GHTCP.Delegates/Delegate263.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Module[] Delegate263(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate264.cs b/GHTCP.Delegates/Delegate264.cs index d7c97f8..673f2c3 100644 --- a/GHTCP.Delegates/Delegate264.cs +++ b/GHTCP.Delegates/Delegate264.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate sbyte Delegate264(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate265.cs b/GHTCP.Delegates/Delegate265.cs index e85f295..e5b35bb 100644 --- a/GHTCP.Delegates/Delegate265.cs +++ b/GHTCP.Delegates/Delegate265.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate265(object object0, Image image0, RectangleF rectangleF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate266.cs b/GHTCP.Delegates/Delegate266.cs index fc5fae3..d6a9dc2 100644 --- a/GHTCP.Delegates/Delegate266.cs +++ b/GHTCP.Delegates/Delegate266.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate266(object object0, byte[] byte0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate267.cs b/GHTCP.Delegates/Delegate267.cs index 8d37531..6df087d 100644 --- a/GHTCP.Delegates/Delegate267.cs +++ b/GHTCP.Delegates/Delegate267.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate float Delegate267(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate268.cs b/GHTCP.Delegates/Delegate268.cs index 0e801aa..9f63acd 100644 --- a/GHTCP.Delegates/Delegate268.cs +++ b/GHTCP.Delegates/Delegate268.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate268(float float0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate269.cs b/GHTCP.Delegates/Delegate269.cs index 96c17e3..1d655ca 100644 --- a/GHTCP.Delegates/Delegate269.cs +++ b/GHTCP.Delegates/Delegate269.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate269(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate27.cs b/GHTCP.Delegates/Delegate27.cs index 1bef2fe..12d6904 100644 --- a/GHTCP.Delegates/Delegate27.cs +++ b/GHTCP.Delegates/Delegate27.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate27(string string0, object object0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate270.cs b/GHTCP.Delegates/Delegate270.cs index 1a45c30..5df9470 100644 --- a/GHTCP.Delegates/Delegate270.cs +++ b/GHTCP.Delegates/Delegate270.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ComboBox.ObjectCollection Delegate270(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate271.cs b/GHTCP.Delegates/Delegate271.cs index ad74719..599a953 100644 --- a/GHTCP.Delegates/Delegate271.cs +++ b/GHTCP.Delegates/Delegate271.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate271(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate272.cs b/GHTCP.Delegates/Delegate272.cs index b264cc7..48aff70 100644 --- a/GHTCP.Delegates/Delegate272.cs +++ b/GHTCP.Delegates/Delegate272.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate272(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate273.cs b/GHTCP.Delegates/Delegate273.cs index 86c7ce8..6e99e85 100644 --- a/GHTCP.Delegates/Delegate273.cs +++ b/GHTCP.Delegates/Delegate273.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate273(object object0, RowStyle rowStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate274.cs b/GHTCP.Delegates/Delegate274.cs index 45e8739..ec78d14 100644 --- a/GHTCP.Delegates/Delegate274.cs +++ b/GHTCP.Delegates/Delegate274.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate274(object object0, ColumnStyle columnStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate275.cs b/GHTCP.Delegates/Delegate275.cs index 8efdacd..7036b0e 100644 --- a/GHTCP.Delegates/Delegate275.cs +++ b/GHTCP.Delegates/Delegate275.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte Delegate275(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate276.cs b/GHTCP.Delegates/Delegate276.cs index d993ed2..e631d6d 100644 --- a/GHTCP.Delegates/Delegate276.cs +++ b/GHTCP.Delegates/Delegate276.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate276(string string0, string string1, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate277.cs b/GHTCP.Delegates/Delegate277.cs index 48c5e3c..78575c7 100644 --- a/GHTCP.Delegates/Delegate277.cs +++ b/GHTCP.Delegates/Delegate277.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Encoding Delegate277(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate278.cs b/GHTCP.Delegates/Delegate278.cs index ffccc0a..a6a6a74 100644 --- a/GHTCP.Delegates/Delegate278.cs +++ b/GHTCP.Delegates/Delegate278.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DragDropEffects Delegate278(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate279.cs b/GHTCP.Delegates/Delegate279.cs index a21341c..963a9a2 100644 --- a/GHTCP.Delegates/Delegate279.cs +++ b/GHTCP.Delegates/Delegate279.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate279(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate28.cs b/GHTCP.Delegates/Delegate28.cs index 8cc80a0..64de93b 100644 --- a/GHTCP.Delegates/Delegate28.cs +++ b/GHTCP.Delegates/Delegate28.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate28(object object0, byte[] byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate280.cs b/GHTCP.Delegates/Delegate280.cs index c1c2196..0c75c27 100644 --- a/GHTCP.Delegates/Delegate280.cs +++ b/GHTCP.Delegates/Delegate280.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate280(float float0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate281.cs b/GHTCP.Delegates/Delegate281.cs index 21d7677..8a2235c 100644 --- a/GHTCP.Delegates/Delegate281.cs +++ b/GHTCP.Delegates/Delegate281.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate ushort Delegate281(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate282.cs b/GHTCP.Delegates/Delegate282.cs index acf4adb..b309d16 100644 --- a/GHTCP.Delegates/Delegate282.cs +++ b/GHTCP.Delegates/Delegate282.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate282(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate283.cs b/GHTCP.Delegates/Delegate283.cs index 9dbb44e..2efd076 100644 --- a/GHTCP.Delegates/Delegate283.cs +++ b/GHTCP.Delegates/Delegate283.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate283(decimal decimal0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate284.cs b/GHTCP.Delegates/Delegate284.cs index 5e7643e..82122ec 100644 --- a/GHTCP.Delegates/Delegate284.cs +++ b/GHTCP.Delegates/Delegate284.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate284(int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate285.cs b/GHTCP.Delegates/Delegate285.cs index 558816d..3033dff 100644 --- a/GHTCP.Delegates/Delegate285.cs +++ b/GHTCP.Delegates/Delegate285.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate285(object object0, Version version0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate286.cs b/GHTCP.Delegates/Delegate286.cs index 35915d0..d86d934 100644 --- a/GHTCP.Delegates/Delegate286.cs +++ b/GHTCP.Delegates/Delegate286.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate286(object object0, TreeNode treeNode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate287.cs b/GHTCP.Delegates/Delegate287.cs index e7786ea..4fb9bad 100644 --- a/GHTCP.Delegates/Delegate287.cs +++ b/GHTCP.Delegates/Delegate287.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate FieldInfo[] Delegate287(object object0, BindingFlags bindingFlags0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate288.cs b/GHTCP.Delegates/Delegate288.cs index 9bce11d..6c6143b 100644 --- a/GHTCP.Delegates/Delegate288.cs +++ b/GHTCP.Delegates/Delegate288.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate288(object object0, Image image0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate289.cs b/GHTCP.Delegates/Delegate289.cs index 7070ded..f5d6c7a 100644 --- a/GHTCP.Delegates/Delegate289.cs +++ b/GHTCP.Delegates/Delegate289.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate289(object object0, ComboBoxStyle comboBoxStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate29.cs b/GHTCP.Delegates/Delegate29.cs index 69aab42..1f959d8 100644 --- a/GHTCP.Delegates/Delegate29.cs +++ b/GHTCP.Delegates/Delegate29.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate CultureInfo Delegate29(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate290.cs b/GHTCP.Delegates/Delegate290.cs index 546c7f4..afeae22 100644 --- a/GHTCP.Delegates/Delegate290.cs +++ b/GHTCP.Delegates/Delegate290.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TableLayoutRowStyleCollection Delegate290(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate291.cs b/GHTCP.Delegates/Delegate291.cs index 81571b3..aba250c 100644 --- a/GHTCP.Delegates/Delegate291.cs +++ b/GHTCP.Delegates/Delegate291.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate291(object object0, string string0, short short0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate292.cs b/GHTCP.Delegates/Delegate292.cs index 6a12390..dd8feca 100644 --- a/GHTCP.Delegates/Delegate292.cs +++ b/GHTCP.Delegates/Delegate292.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DirectoryInfo Delegate292(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate293.cs b/GHTCP.Delegates/Delegate293.cs index 6815c27..c75c966 100644 --- a/GHTCP.Delegates/Delegate293.cs +++ b/GHTCP.Delegates/Delegate293.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Assembly Delegate293(byte[] byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate294.cs b/GHTCP.Delegates/Delegate294.cs index 83900dc..cbd80c5 100644 --- a/GHTCP.Delegates/Delegate294.cs +++ b/GHTCP.Delegates/Delegate294.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate MethodInfo[] Delegate294(object object0, BindingFlags bindingFlags0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate295.cs b/GHTCP.Delegates/Delegate295.cs index 4b5bb03..f889ce3 100644 --- a/GHTCP.Delegates/Delegate295.cs +++ b/GHTCP.Delegates/Delegate295.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate295(Array array0, Array array1, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate296.cs b/GHTCP.Delegates/Delegate296.cs index fc0450b..5b2b3dd 100644 --- a/GHTCP.Delegates/Delegate296.cs +++ b/GHTCP.Delegates/Delegate296.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string Delegate296(Environment.SpecialFolder specialFolder0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate297.cs b/GHTCP.Delegates/Delegate297.cs index 9ce2289..fd47b28 100644 --- a/GHTCP.Delegates/Delegate297.cs +++ b/GHTCP.Delegates/Delegate297.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate297(int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate298.cs b/GHTCP.Delegates/Delegate298.cs index aab3da4..720556c 100644 --- a/GHTCP.Delegates/Delegate298.cs +++ b/GHTCP.Delegates/Delegate298.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate298(object object0, FlatStyle flatStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate299.cs b/GHTCP.Delegates/Delegate299.cs index ba44cc2..ddf74b9 100644 --- a/GHTCP.Delegates/Delegate299.cs +++ b/GHTCP.Delegates/Delegate299.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate299(object object0, DragDropEffects dragDropEffects0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate30.cs b/GHTCP.Delegates/Delegate30.cs index 8fe3334..a63bb68 100644 --- a/GHTCP.Delegates/Delegate30.cs +++ b/GHTCP.Delegates/Delegate30.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TableLayoutColumnStyleCollection Delegate30(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate300.cs b/GHTCP.Delegates/Delegate300.cs index 4cb0d07..712e0cc 100644 --- a/GHTCP.Delegates/Delegate300.cs +++ b/GHTCP.Delegates/Delegate300.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate FileAttributes Delegate300(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate301.cs b/GHTCP.Delegates/Delegate301.cs index 2526f5b..557c729 100644 --- a/GHTCP.Delegates/Delegate301.cs +++ b/GHTCP.Delegates/Delegate301.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate byte Delegate301(IntPtr intptr0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate302.cs b/GHTCP.Delegates/Delegate302.cs index 72fe800..c904677 100644 --- a/GHTCP.Delegates/Delegate302.cs +++ b/GHTCP.Delegates/Delegate302.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate object Delegate302(object object0, Type type0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate303.cs b/GHTCP.Delegates/Delegate303.cs index 2d6eb05..613037e 100644 --- a/GHTCP.Delegates/Delegate303.cs +++ b/GHTCP.Delegates/Delegate303.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate303(string string0, string string1, string string2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate304.cs b/GHTCP.Delegates/Delegate304.cs index d8fa7ac..989c664 100644 --- a/GHTCP.Delegates/Delegate304.cs +++ b/GHTCP.Delegates/Delegate304.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate304(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate305.cs b/GHTCP.Delegates/Delegate305.cs index d08ce4e..39791cb 100644 --- a/GHTCP.Delegates/Delegate305.cs +++ b/GHTCP.Delegates/Delegate305.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Keys Delegate305(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate306.cs b/GHTCP.Delegates/Delegate306.cs index dd5e2fa..4cfad37 100644 --- a/GHTCP.Delegates/Delegate306.cs +++ b/GHTCP.Delegates/Delegate306.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate PixelFormat Delegate306(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate307.cs b/GHTCP.Delegates/Delegate307.cs index 9c58a7a..dd4a500 100644 --- a/GHTCP.Delegates/Delegate307.cs +++ b/GHTCP.Delegates/Delegate307.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate307(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate308.cs b/GHTCP.Delegates/Delegate308.cs index a814eae..596622e 100644 --- a/GHTCP.Delegates/Delegate308.cs +++ b/GHTCP.Delegates/Delegate308.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate308(object object0, object[] object1, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate309.cs b/GHTCP.Delegates/Delegate309.cs index 4f09e7b..87f5e51 100644 --- a/GHTCP.Delegates/Delegate309.cs +++ b/GHTCP.Delegates/Delegate309.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Point Delegate309(object object0, Point point0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate31.cs b/GHTCP.Delegates/Delegate31.cs index 60ece0f..403cdc6 100644 --- a/GHTCP.Delegates/Delegate31.cs +++ b/GHTCP.Delegates/Delegate31.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate31(object object0, PictureBoxSizeMode pictureBoxSizeMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate310.cs b/GHTCP.Delegates/Delegate310.cs index 671752b..00228eb 100644 --- a/GHTCP.Delegates/Delegate310.cs +++ b/GHTCP.Delegates/Delegate310.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate FileStream Delegate310(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate311.cs b/GHTCP.Delegates/Delegate311.cs index 5b05e67..6a574ba 100644 --- a/GHTCP.Delegates/Delegate311.cs +++ b/GHTCP.Delegates/Delegate311.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate311(object object0, byte[] byte0, int int0, int int1, byte[] byte1, int int2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate312.cs b/GHTCP.Delegates/Delegate312.cs index 816f4b4..9a61653 100644 --- a/GHTCP.Delegates/Delegate312.cs +++ b/GHTCP.Delegates/Delegate312.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate312(string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate313.cs b/GHTCP.Delegates/Delegate313.cs index 1358381..c0c9544 100644 --- a/GHTCP.Delegates/Delegate313.cs +++ b/GHTCP.Delegates/Delegate313.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char Delegate313(char char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate314.cs b/GHTCP.Delegates/Delegate314.cs index 0eb6cc2..9a6023b 100644 --- a/GHTCP.Delegates/Delegate314.cs +++ b/GHTCP.Delegates/Delegate314.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate314(IntPtr intptr0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate315.cs b/GHTCP.Delegates/Delegate315.cs index 286681e..13851f6 100644 --- a/GHTCP.Delegates/Delegate315.cs +++ b/GHTCP.Delegates/Delegate315.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate315(long long0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate316.cs b/GHTCP.Delegates/Delegate316.cs index 6c1b781..fe6ce65 100644 --- a/GHTCP.Delegates/Delegate316.cs +++ b/GHTCP.Delegates/Delegate316.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate316(long long0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate317.cs b/GHTCP.Delegates/Delegate317.cs index c8cce84..e91009e 100644 --- a/GHTCP.Delegates/Delegate317.cs +++ b/GHTCP.Delegates/Delegate317.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate317(bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate318.cs b/GHTCP.Delegates/Delegate318.cs index 322128e..7687616 100644 --- a/GHTCP.Delegates/Delegate318.cs +++ b/GHTCP.Delegates/Delegate318.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate318(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate319.cs b/GHTCP.Delegates/Delegate319.cs index a26b791..0889bf0 100644 --- a/GHTCP.Delegates/Delegate319.cs +++ b/GHTCP.Delegates/Delegate319.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate319(object object0, object object1, EventArgs eventArgs0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate32.cs b/GHTCP.Delegates/Delegate32.cs index 6d0b434..f29d3aa 100644 --- a/GHTCP.Delegates/Delegate32.cs +++ b/GHTCP.Delegates/Delegate32.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate32(object object0, MouseEventHandler mouseEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate320.cs b/GHTCP.Delegates/Delegate320.cs index f090a7d..b08c55b 100644 --- a/GHTCP.Delegates/Delegate320.cs +++ b/GHTCP.Delegates/Delegate320.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate320(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate321.cs b/GHTCP.Delegates/Delegate321.cs index 5f6c22f..9ac2d96 100644 --- a/GHTCP.Delegates/Delegate321.cs +++ b/GHTCP.Delegates/Delegate321.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TimeSpan Delegate321(TimeSpan timeSpan0, TimeSpan timeSpan1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate322.cs b/GHTCP.Delegates/Delegate322.cs index 5b2fd59..fa38c60 100644 --- a/GHTCP.Delegates/Delegate322.cs +++ b/GHTCP.Delegates/Delegate322.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate322(object object0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate323.cs b/GHTCP.Delegates/Delegate323.cs index f64c460..b7e027c 100644 --- a/GHTCP.Delegates/Delegate323.cs +++ b/GHTCP.Delegates/Delegate323.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate long Delegate323(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate324.cs b/GHTCP.Delegates/Delegate324.cs index c3cebd9..9e1ab42 100644 --- a/GHTCP.Delegates/Delegate324.cs +++ b/GHTCP.Delegates/Delegate324.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate324(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate325.cs b/GHTCP.Delegates/Delegate325.cs index 289a1d5..e17f456 100644 --- a/GHTCP.Delegates/Delegate325.cs +++ b/GHTCP.Delegates/Delegate325.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate long Delegate325(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate326.cs b/GHTCP.Delegates/Delegate326.cs index 5fadfa0..810a66d 100644 --- a/GHTCP.Delegates/Delegate326.cs +++ b/GHTCP.Delegates/Delegate326.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate326(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate327.cs b/GHTCP.Delegates/Delegate327.cs index cd5d06f..dab08c6 100644 --- a/GHTCP.Delegates/Delegate327.cs +++ b/GHTCP.Delegates/Delegate327.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TreeNode Delegate327(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate328.cs b/GHTCP.Delegates/Delegate328.cs index 40ce03d..b41dd27 100644 --- a/GHTCP.Delegates/Delegate328.cs +++ b/GHTCP.Delegates/Delegate328.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ILGenerator Delegate328(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate329.cs b/GHTCP.Delegates/Delegate329.cs index a6f08a9..59176f6 100644 --- a/GHTCP.Delegates/Delegate329.cs +++ b/GHTCP.Delegates/Delegate329.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate329(object object0, IButtonControl ibuttonControl0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate33.cs b/GHTCP.Delegates/Delegate33.cs index 3b3a8d9..2be5efe 100644 --- a/GHTCP.Delegates/Delegate33.cs +++ b/GHTCP.Delegates/Delegate33.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate33(IntPtr intptr0, IntPtr intptr1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate330.cs b/GHTCP.Delegates/Delegate330.cs index 8a938f9..17533c4 100644 --- a/GHTCP.Delegates/Delegate330.cs +++ b/GHTCP.Delegates/Delegate330.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate330(uint uint0, uint uint1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate331.cs b/GHTCP.Delegates/Delegate331.cs index 451df95..63d6cf6 100644 --- a/GHTCP.Delegates/Delegate331.cs +++ b/GHTCP.Delegates/Delegate331.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate331(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate332.cs b/GHTCP.Delegates/Delegate332.cs index aed346b..a26cb24 100644 --- a/GHTCP.Delegates/Delegate332.cs +++ b/GHTCP.Delegates/Delegate332.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TreeNode Delegate332(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate333.cs b/GHTCP.Delegates/Delegate333.cs index c58b8b6..c92dd42 100644 --- a/GHTCP.Delegates/Delegate333.cs +++ b/GHTCP.Delegates/Delegate333.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate333(object sender, PaintEventArgs e); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate334.cs b/GHTCP.Delegates/Delegate334.cs index ac49526..b2fb5c5 100644 --- a/GHTCP.Delegates/Delegate334.cs +++ b/GHTCP.Delegates/Delegate334.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate334(object[] object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate335.cs b/GHTCP.Delegates/Delegate335.cs index 127c2da..22450b0 100644 --- a/GHTCP.Delegates/Delegate335.cs +++ b/GHTCP.Delegates/Delegate335.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate335(object object0, Control control0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate336.cs b/GHTCP.Delegates/Delegate336.cs index 8cf8414..af035ef 100644 --- a/GHTCP.Delegates/Delegate336.cs +++ b/GHTCP.Delegates/Delegate336.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate336(object object0, IWin32Window iwin32Window0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate337.cs b/GHTCP.Delegates/Delegate337.cs index a6eaba3..b1d2c78 100644 --- a/GHTCP.Delegates/Delegate337.cs +++ b/GHTCP.Delegates/Delegate337.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate337(object object0, byte[] byte0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate338.cs b/GHTCP.Delegates/Delegate338.cs index 2c6ea9c..dcbc128 100644 --- a/GHTCP.Delegates/Delegate338.cs +++ b/GHTCP.Delegates/Delegate338.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate338(object object0, AutoScaleMode autoScaleMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate339.cs b/GHTCP.Delegates/Delegate339.cs index 578acaf..e6ae826 100644 --- a/GHTCP.Delegates/Delegate339.cs +++ b/GHTCP.Delegates/Delegate339.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate339(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate34.cs b/GHTCP.Delegates/Delegate34.cs index a9b095c..71b1afe 100644 --- a/GHTCP.Delegates/Delegate34.cs +++ b/GHTCP.Delegates/Delegate34.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Version Delegate34(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate340.cs b/GHTCP.Delegates/Delegate340.cs index 8f716d4..39fed54 100644 --- a/GHTCP.Delegates/Delegate340.cs +++ b/GHTCP.Delegates/Delegate340.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Type Delegate340(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate341.cs b/GHTCP.Delegates/Delegate341.cs index 8ddcb30..674ef12 100644 --- a/GHTCP.Delegates/Delegate341.cs +++ b/GHTCP.Delegates/Delegate341.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ListBox.SelectedIndexCollection Delegate341(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate342.cs b/GHTCP.Delegates/Delegate342.cs index c711b93..5d581e9 100644 --- a/GHTCP.Delegates/Delegate342.cs +++ b/GHTCP.Delegates/Delegate342.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate342(object object0, BorderStyle borderStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate343.cs b/GHTCP.Delegates/Delegate343.cs index d5de60f..6ffe049 100644 --- a/GHTCP.Delegates/Delegate343.cs +++ b/GHTCP.Delegates/Delegate343.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate double Delegate343(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate344.cs b/GHTCP.Delegates/Delegate344.cs index 80f8acb..8ce792b 100644 --- a/GHTCP.Delegates/Delegate344.cs +++ b/GHTCP.Delegates/Delegate344.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate344(object object0, Pen pen0, GraphicsPath graphicsPath0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate345.cs b/GHTCP.Delegates/Delegate345.cs index 7540c53..01a8a00 100644 --- a/GHTCP.Delegates/Delegate345.cs +++ b/GHTCP.Delegates/Delegate345.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StackFrame Delegate345(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate346.cs b/GHTCP.Delegates/Delegate346.cs index 3c06ab7..ed49d9a 100644 --- a/GHTCP.Delegates/Delegate346.cs +++ b/GHTCP.Delegates/Delegate346.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate346(Color color0, Color color1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate347.cs b/GHTCP.Delegates/Delegate347.cs index 181e23c..25a0a7c 100644 --- a/GHTCP.Delegates/Delegate347.cs +++ b/GHTCP.Delegates/Delegate347.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate uint Delegate347(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate348.cs b/GHTCP.Delegates/Delegate348.cs index fdefced..50fb759 100644 --- a/GHTCP.Delegates/Delegate348.cs +++ b/GHTCP.Delegates/Delegate348.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Point Delegate348(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate349.cs b/GHTCP.Delegates/Delegate349.cs index e7639df..49e88e4 100644 --- a/GHTCP.Delegates/Delegate349.cs +++ b/GHTCP.Delegates/Delegate349.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate349(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate35.cs b/GHTCP.Delegates/Delegate35.cs index 6827eb9..4d51873 100644 --- a/GHTCP.Delegates/Delegate35.cs +++ b/GHTCP.Delegates/Delegate35.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate35(object object0, Control control0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate350.cs b/GHTCP.Delegates/Delegate350.cs index 8f7c4b6..1240646 100644 --- a/GHTCP.Delegates/Delegate350.cs +++ b/GHTCP.Delegates/Delegate350.cs @@ -1,4 +1,5 @@ namespace GHTCP.Delegates { - public delegate void Delegate350(object object0, float float0, float float1, float float2, float float3, float float4, float float5); -} + public delegate void Delegate350(object object0, float float0, float float1, float float2, float float3, + float float4, float float5); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate351.cs b/GHTCP.Delegates/Delegate351.cs index aaceb51..38bc5b9 100644 --- a/GHTCP.Delegates/Delegate351.cs +++ b/GHTCP.Delegates/Delegate351.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate351(object object0, TreeNode[] treeNode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate352.cs b/GHTCP.Delegates/Delegate352.cs index 87419fc..2b5a567 100644 --- a/GHTCP.Delegates/Delegate352.cs +++ b/GHTCP.Delegates/Delegate352.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Rectangle Delegate352(object object0, Rectangle rectangle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate353.cs b/GHTCP.Delegates/Delegate353.cs index f338c01..79df233 100644 --- a/GHTCP.Delegates/Delegate353.cs +++ b/GHTCP.Delegates/Delegate353.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate353(object object0, ushort ushort0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate354.cs b/GHTCP.Delegates/Delegate354.cs index cbcdae8..59a3115 100644 --- a/GHTCP.Delegates/Delegate354.cs +++ b/GHTCP.Delegates/Delegate354.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Type Delegate354(RuntimeTypeHandle runtimeTypeHandle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate355.cs b/GHTCP.Delegates/Delegate355.cs index 1cddc76..269ec28 100644 --- a/GHTCP.Delegates/Delegate355.cs +++ b/GHTCP.Delegates/Delegate355.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate355(object object0, Point point0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate356.cs b/GHTCP.Delegates/Delegate356.cs index f0cce71..559a57d 100644 --- a/GHTCP.Delegates/Delegate356.cs +++ b/GHTCP.Delegates/Delegate356.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate double Delegate356(byte[] byte0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate357.cs b/GHTCP.Delegates/Delegate357.cs index 4c66b40..c681e0d 100644 --- a/GHTCP.Delegates/Delegate357.cs +++ b/GHTCP.Delegates/Delegate357.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate357(Type type0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate358.cs b/GHTCP.Delegates/Delegate358.cs index 6bdc90a..440ce01 100644 --- a/GHTCP.Delegates/Delegate358.cs +++ b/GHTCP.Delegates/Delegate358.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate358(string string0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate359.cs b/GHTCP.Delegates/Delegate359.cs index 8612b48..5041aed 100644 --- a/GHTCP.Delegates/Delegate359.cs +++ b/GHTCP.Delegates/Delegate359.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Graphics Delegate359(Image image0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate36.cs b/GHTCP.Delegates/Delegate36.cs index 93ff6ca..3d1c71a 100644 --- a/GHTCP.Delegates/Delegate36.cs +++ b/GHTCP.Delegates/Delegate36.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate36(object object0, decimal decimal0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate360.cs b/GHTCP.Delegates/Delegate360.cs index 589f485..6ad95e1 100644 --- a/GHTCP.Delegates/Delegate360.cs +++ b/GHTCP.Delegates/Delegate360.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate360(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate361.cs b/GHTCP.Delegates/Delegate361.cs index 5909919..10c6a9a 100644 --- a/GHTCP.Delegates/Delegate361.cs +++ b/GHTCP.Delegates/Delegate361.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate361(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate362.cs b/GHTCP.Delegates/Delegate362.cs index 743f5b2..2f8aa24 100644 --- a/GHTCP.Delegates/Delegate362.cs +++ b/GHTCP.Delegates/Delegate362.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate362(object object0, object[] object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate363.cs b/GHTCP.Delegates/Delegate363.cs index 8390041..009d19c 100644 --- a/GHTCP.Delegates/Delegate363.cs +++ b/GHTCP.Delegates/Delegate363.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate object Delegate363(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate364.cs b/GHTCP.Delegates/Delegate364.cs index 8d4033f..031c995 100644 --- a/GHTCP.Delegates/Delegate364.cs +++ b/GHTCP.Delegates/Delegate364.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate364(bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate365.cs b/GHTCP.Delegates/Delegate365.cs index 50ae652..40fd691 100644 --- a/GHTCP.Delegates/Delegate365.cs +++ b/GHTCP.Delegates/Delegate365.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate365(object object0, InterpolationMode interpolationMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate366.cs b/GHTCP.Delegates/Delegate366.cs index 5f42001..ad9c22a 100644 --- a/GHTCP.Delegates/Delegate366.cs +++ b/GHTCP.Delegates/Delegate366.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate366(object object0, GraphicsPath graphicsPath0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate367.cs b/GHTCP.Delegates/Delegate367.cs index f561695..898143a 100644 --- a/GHTCP.Delegates/Delegate367.cs +++ b/GHTCP.Delegates/Delegate367.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate367(object object0, SmoothingMode smoothingMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate368.cs b/GHTCP.Delegates/Delegate368.cs index 94a3173..5d2e248 100644 --- a/GHTCP.Delegates/Delegate368.cs +++ b/GHTCP.Delegates/Delegate368.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate368(object object0, SizeF sizeF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate369.cs b/GHTCP.Delegates/Delegate369.cs index a1a10b9..d074379 100644 --- a/GHTCP.Delegates/Delegate369.cs +++ b/GHTCP.Delegates/Delegate369.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate369(object object0, WrapMode wrapMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate37.cs b/GHTCP.Delegates/Delegate37.cs index b80a111..e66e1ad 100644 --- a/GHTCP.Delegates/Delegate37.cs +++ b/GHTCP.Delegates/Delegate37.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate37(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate370.cs b/GHTCP.Delegates/Delegate370.cs index b90f9e5..c8d144a 100644 --- a/GHTCP.Delegates/Delegate370.cs +++ b/GHTCP.Delegates/Delegate370.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate370(object object0, RectangleF rectangleF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate371.cs b/GHTCP.Delegates/Delegate371.cs index eee4bc4..233046b 100644 --- a/GHTCP.Delegates/Delegate371.cs +++ b/GHTCP.Delegates/Delegate371.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ToolStripItemCollection Delegate371(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate372.cs b/GHTCP.Delegates/Delegate372.cs index 5264d5c..60d537b 100644 --- a/GHTCP.Delegates/Delegate372.cs +++ b/GHTCP.Delegates/Delegate372.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate372(object object0, AnchorStyles anchorStyles0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate373.cs b/GHTCP.Delegates/Delegate373.cs index 8202ebf..13f6566 100644 --- a/GHTCP.Delegates/Delegate373.cs +++ b/GHTCP.Delegates/Delegate373.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate373(object object0, AccessibleRole accessibleRole0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate374.cs b/GHTCP.Delegates/Delegate374.cs index 6d48f79..adf8434 100644 --- a/GHTCP.Delegates/Delegate374.cs +++ b/GHTCP.Delegates/Delegate374.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ToolStripPanel Delegate374(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate375.cs b/GHTCP.Delegates/Delegate375.cs index 55d1736..f36ebd7 100644 --- a/GHTCP.Delegates/Delegate375.cs +++ b/GHTCP.Delegates/Delegate375.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate375(int int0, int int1, int int2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate376.cs b/GHTCP.Delegates/Delegate376.cs index 266995e..fc0c7a1 100644 --- a/GHTCP.Delegates/Delegate376.cs +++ b/GHTCP.Delegates/Delegate376.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate376(object object0, TreeNode treeNode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate377.cs b/GHTCP.Delegates/Delegate377.cs index df5db8b..15f9d97 100644 --- a/GHTCP.Delegates/Delegate377.cs +++ b/GHTCP.Delegates/Delegate377.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate377(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate378.cs b/GHTCP.Delegates/Delegate378.cs index 7e482e4..c3ba8cd 100644 --- a/GHTCP.Delegates/Delegate378.cs +++ b/GHTCP.Delegates/Delegate378.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate378(object object0, Pen pen0, float float0, float float1, float float2, float float3); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate379.cs b/GHTCP.Delegates/Delegate379.cs index 0f00f8b..926b8d8 100644 --- a/GHTCP.Delegates/Delegate379.cs +++ b/GHTCP.Delegates/Delegate379.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate379(object object0, string string0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate38.cs b/GHTCP.Delegates/Delegate38.cs index 296c3dd..a86a44f 100644 --- a/GHTCP.Delegates/Delegate38.cs +++ b/GHTCP.Delegates/Delegate38.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate38(object object0, Padding padding0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate380.cs b/GHTCP.Delegates/Delegate380.cs index 0774b60..4fa274b 100644 --- a/GHTCP.Delegates/Delegate380.cs +++ b/GHTCP.Delegates/Delegate380.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate object Delegate380(object object0, Type type0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate381.cs b/GHTCP.Delegates/Delegate381.cs index 4a74241..58cef52 100644 --- a/GHTCP.Delegates/Delegate381.cs +++ b/GHTCP.Delegates/Delegate381.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate381(SecondaryBuffer secondaryBuffer0, SecondaryBuffer secondaryBuffer1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate382.cs b/GHTCP.Delegates/Delegate382.cs index 30d2638..3bc0045 100644 --- a/GHTCP.Delegates/Delegate382.cs +++ b/GHTCP.Delegates/Delegate382.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TextInfo Delegate382(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate383.cs b/GHTCP.Delegates/Delegate383.cs index 70f57dd..a45a749 100644 --- a/GHTCP.Delegates/Delegate383.cs +++ b/GHTCP.Delegates/Delegate383.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate FormWindowState Delegate383(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate384.cs b/GHTCP.Delegates/Delegate384.cs index 80ff769..8664e0c 100644 --- a/GHTCP.Delegates/Delegate384.cs +++ b/GHTCP.Delegates/Delegate384.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate PlatformID Delegate384(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate385.cs b/GHTCP.Delegates/Delegate385.cs index cb83a8d..942cdc7 100644 --- a/GHTCP.Delegates/Delegate385.cs +++ b/GHTCP.Delegates/Delegate385.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate385(object object0, string string0, StringComparison stringComparison0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate386.cs b/GHTCP.Delegates/Delegate386.cs index c3cc3cd..7910bbb 100644 --- a/GHTCP.Delegates/Delegate386.cs +++ b/GHTCP.Delegates/Delegate386.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate object Delegate386(ref object object0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate387.cs b/GHTCP.Delegates/Delegate387.cs index 9993486..b4ed802 100644 --- a/GHTCP.Delegates/Delegate387.cs +++ b/GHTCP.Delegates/Delegate387.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate Image Delegate387(Stream stream0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate388.cs b/GHTCP.Delegates/Delegate388.cs index fed9e10..a7be2e9 100644 --- a/GHTCP.Delegates/Delegate388.cs +++ b/GHTCP.Delegates/Delegate388.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate388(object object0, object object1, IComparer icomparer0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate389.cs b/GHTCP.Delegates/Delegate389.cs index 2f0ef74..6bf955b 100644 --- a/GHTCP.Delegates/Delegate389.cs +++ b/GHTCP.Delegates/Delegate389.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Thread Delegate389(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate39.cs b/GHTCP.Delegates/Delegate39.cs index ac1444b..8aec663 100644 --- a/GHTCP.Delegates/Delegate39.cs +++ b/GHTCP.Delegates/Delegate39.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate39(object object0, Orientation orientation0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate390.cs b/GHTCP.Delegates/Delegate390.cs index e85df86..1bf55c4 100644 --- a/GHTCP.Delegates/Delegate390.cs +++ b/GHTCP.Delegates/Delegate390.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate390(object object0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate391.cs b/GHTCP.Delegates/Delegate391.cs index 689bea8..7ec8312 100644 --- a/GHTCP.Delegates/Delegate391.cs +++ b/GHTCP.Delegates/Delegate391.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StreamWriter Delegate391(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate392.cs b/GHTCP.Delegates/Delegate392.cs index 7122669..2a2c4e3 100644 --- a/GHTCP.Delegates/Delegate392.cs +++ b/GHTCP.Delegates/Delegate392.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate392(object object0, Font font0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate393.cs b/GHTCP.Delegates/Delegate393.cs index c92fd1b..f16efc7 100644 --- a/GHTCP.Delegates/Delegate393.cs +++ b/GHTCP.Delegates/Delegate393.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StringBuilder Delegate393(object object0, char char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate394.cs b/GHTCP.Delegates/Delegate394.cs index d5e88f0..dbdfba2 100644 --- a/GHTCP.Delegates/Delegate394.cs +++ b/GHTCP.Delegates/Delegate394.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string Delegate394(IFormatProvider iformatProvider0, string string0, object[] object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate395.cs b/GHTCP.Delegates/Delegate395.cs index b404ab0..2bc5bf1 100644 --- a/GHTCP.Delegates/Delegate395.cs +++ b/GHTCP.Delegates/Delegate395.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate395(WaitCallback waitCallback0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate396.cs b/GHTCP.Delegates/Delegate396.cs index 68d8369..33654d5 100644 --- a/GHTCP.Delegates/Delegate396.cs +++ b/GHTCP.Delegates/Delegate396.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate396(object object0, Matrix matrix0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate397.cs b/GHTCP.Delegates/Delegate397.cs index bbab6d2..6f55846 100644 --- a/GHTCP.Delegates/Delegate397.cs +++ b/GHTCP.Delegates/Delegate397.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate397(object object0, uint uint0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate398.cs b/GHTCP.Delegates/Delegate398.cs index 0d8f608..2174009 100644 --- a/GHTCP.Delegates/Delegate398.cs +++ b/GHTCP.Delegates/Delegate398.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate398(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate399.cs b/GHTCP.Delegates/Delegate399.cs index b0f4e78..ea4ccce 100644 --- a/GHTCP.Delegates/Delegate399.cs +++ b/GHTCP.Delegates/Delegate399.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate object[] Delegate399(object object0, Type type0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate40.cs b/GHTCP.Delegates/Delegate40.cs index 809f594..54a481c 100644 --- a/GHTCP.Delegates/Delegate40.cs +++ b/GHTCP.Delegates/Delegate40.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate Delegate Delegate40(Type type0, MethodInfo methodInfo0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate400.cs b/GHTCP.Delegates/Delegate400.cs index b42f802..93c72e5 100644 --- a/GHTCP.Delegates/Delegate400.cs +++ b/GHTCP.Delegates/Delegate400.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate400(object object0, IntPtr intptr0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate401.cs b/GHTCP.Delegates/Delegate401.cs index e70e6d5..d36eb6c 100644 --- a/GHTCP.Delegates/Delegate401.cs +++ b/GHTCP.Delegates/Delegate401.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate401(byte[] byte0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate402.cs b/GHTCP.Delegates/Delegate402.cs index 3b92b9f..58569a3 100644 --- a/GHTCP.Delegates/Delegate402.cs +++ b/GHTCP.Delegates/Delegate402.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string Delegate402(object object0, string string0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate403.cs b/GHTCP.Delegates/Delegate403.cs index d95141c..ba1b2cb 100644 --- a/GHTCP.Delegates/Delegate403.cs +++ b/GHTCP.Delegates/Delegate403.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate403(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate404.cs b/GHTCP.Delegates/Delegate404.cs index e3ddf0d..0c384ee 100644 --- a/GHTCP.Delegates/Delegate404.cs +++ b/GHTCP.Delegates/Delegate404.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate ushort Delegate404(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate405.cs b/GHTCP.Delegates/Delegate405.cs index 68c503a..3a2b543 100644 --- a/GHTCP.Delegates/Delegate405.cs +++ b/GHTCP.Delegates/Delegate405.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char Delegate405(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate406.cs b/GHTCP.Delegates/Delegate406.cs index 842d312..856e2bf 100644 --- a/GHTCP.Delegates/Delegate406.cs +++ b/GHTCP.Delegates/Delegate406.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate double Delegate406(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate407.cs b/GHTCP.Delegates/Delegate407.cs index 0d60108..ba64520 100644 --- a/GHTCP.Delegates/Delegate407.cs +++ b/GHTCP.Delegates/Delegate407.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate407(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate408.cs b/GHTCP.Delegates/Delegate408.cs index b832ad0..7c61394 100644 --- a/GHTCP.Delegates/Delegate408.cs +++ b/GHTCP.Delegates/Delegate408.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate ushort Delegate408(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate409.cs b/GHTCP.Delegates/Delegate409.cs index 92740ed..ff809f4 100644 --- a/GHTCP.Delegates/Delegate409.cs +++ b/GHTCP.Delegates/Delegate409.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char Delegate409(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate41.cs b/GHTCP.Delegates/Delegate41.cs index eff63e2..ecc7c22 100644 --- a/GHTCP.Delegates/Delegate41.cs +++ b/GHTCP.Delegates/Delegate41.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string Delegate41(IntPtr intptr0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate410.cs b/GHTCP.Delegates/Delegate410.cs index 34cc6da..d8e46af 100644 --- a/GHTCP.Delegates/Delegate410.cs +++ b/GHTCP.Delegates/Delegate410.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate long Delegate410(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate411.cs b/GHTCP.Delegates/Delegate411.cs index 33003bf..2f3f731 100644 --- a/GHTCP.Delegates/Delegate411.cs +++ b/GHTCP.Delegates/Delegate411.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate411(int int0, Color color0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate412.cs b/GHTCP.Delegates/Delegate412.cs index 469e963..7b25b94 100644 --- a/GHTCP.Delegates/Delegate412.cs +++ b/GHTCP.Delegates/Delegate412.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TimeSpan Delegate412(double double0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate413.cs b/GHTCP.Delegates/Delegate413.cs index 8b7499e..403a610 100644 --- a/GHTCP.Delegates/Delegate413.cs +++ b/GHTCP.Delegates/Delegate413.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate413(int int0, int int1, int int2, int int3); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate414.cs b/GHTCP.Delegates/Delegate414.cs index 99b7943..1f99cd0 100644 --- a/GHTCP.Delegates/Delegate414.cs +++ b/GHTCP.Delegates/Delegate414.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Rectangle Delegate414(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate415.cs b/GHTCP.Delegates/Delegate415.cs index a11f879..e30014f 100644 --- a/GHTCP.Delegates/Delegate415.cs +++ b/GHTCP.Delegates/Delegate415.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate415(Array array0, int int0, Array array1, int int1, int int2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate416.cs b/GHTCP.Delegates/Delegate416.cs index 64d332b..8654963 100644 --- a/GHTCP.Delegates/Delegate416.cs +++ b/GHTCP.Delegates/Delegate416.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate RectangleF Delegate416(Rectangle rectangle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate417.cs b/GHTCP.Delegates/Delegate417.cs index f80e6fa..99da325 100644 --- a/GHTCP.Delegates/Delegate417.cs +++ b/GHTCP.Delegates/Delegate417.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate417(object object0, OpCode opCode0, MethodInfo methodInfo0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate418.cs b/GHTCP.Delegates/Delegate418.cs index 346f14d..4e35949 100644 --- a/GHTCP.Delegates/Delegate418.cs +++ b/GHTCP.Delegates/Delegate418.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate float Delegate418(float float0, float float1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate419.cs b/GHTCP.Delegates/Delegate419.cs index 6229120..47acbf3 100644 --- a/GHTCP.Delegates/Delegate419.cs +++ b/GHTCP.Delegates/Delegate419.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate419(object object0, Brush brush0, PointF[] pointF0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate42.cs b/GHTCP.Delegates/Delegate42.cs index 3273cee..6c2a3c2 100644 --- a/GHTCP.Delegates/Delegate42.cs +++ b/GHTCP.Delegates/Delegate42.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string Delegate42(object object0, IFormatProvider iformatProvider0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate420.cs b/GHTCP.Delegates/Delegate420.cs index 88e7033..36e1e9c 100644 --- a/GHTCP.Delegates/Delegate420.cs +++ b/GHTCP.Delegates/Delegate420.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Graphics Delegate420(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate421.cs b/GHTCP.Delegates/Delegate421.cs index ec925b0..3198b6e 100644 --- a/GHTCP.Delegates/Delegate421.cs +++ b/GHTCP.Delegates/Delegate421.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string[] Delegate421(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate422.cs b/GHTCP.Delegates/Delegate422.cs index 1f660ca..81952ef 100644 --- a/GHTCP.Delegates/Delegate422.cs +++ b/GHTCP.Delegates/Delegate422.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate422(Color color0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate423.cs b/GHTCP.Delegates/Delegate423.cs index b37cf5c..63f93a6 100644 --- a/GHTCP.Delegates/Delegate423.cs +++ b/GHTCP.Delegates/Delegate423.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate OperatingSystem Delegate423(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate424.cs b/GHTCP.Delegates/Delegate424.cs index 98a1dd8..440d14b 100644 --- a/GHTCP.Delegates/Delegate424.cs +++ b/GHTCP.Delegates/Delegate424.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate424(object object0, string string0, ImageFormat imageFormat0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate425.cs b/GHTCP.Delegates/Delegate425.cs index b60da20..94385a8 100644 --- a/GHTCP.Delegates/Delegate425.cs +++ b/GHTCP.Delegates/Delegate425.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate425(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate426.cs b/GHTCP.Delegates/Delegate426.cs index ef21d8c..62100da 100644 --- a/GHTCP.Delegates/Delegate426.cs +++ b/GHTCP.Delegates/Delegate426.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate char[] Delegate426(object object0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate427.cs b/GHTCP.Delegates/Delegate427.cs index 23fa661..705a9bf 100644 --- a/GHTCP.Delegates/Delegate427.cs +++ b/GHTCP.Delegates/Delegate427.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate427(object object0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate428.cs b/GHTCP.Delegates/Delegate428.cs index 7ed84bc..1d504b2 100644 --- a/GHTCP.Delegates/Delegate428.cs +++ b/GHTCP.Delegates/Delegate428.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate428(DateTime dateTime0, DateTime dateTime1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate429.cs b/GHTCP.Delegates/Delegate429.cs index 7027c0a..507f8dd 100644 --- a/GHTCP.Delegates/Delegate429.cs +++ b/GHTCP.Delegates/Delegate429.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Color Delegate429(KnownColor knownColor0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate43.cs b/GHTCP.Delegates/Delegate43.cs index 1185bac..6740759 100644 --- a/GHTCP.Delegates/Delegate43.cs +++ b/GHTCP.Delegates/Delegate43.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate43(object object0, ProcessStartInfo processStartInfo0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate430.cs b/GHTCP.Delegates/Delegate430.cs index 6131f98..cf1b875 100644 --- a/GHTCP.Delegates/Delegate430.cs +++ b/GHTCP.Delegates/Delegate430.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate430(object object0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate431.cs b/GHTCP.Delegates/Delegate431.cs index c80d32a..c714dd1 100644 --- a/GHTCP.Delegates/Delegate431.cs +++ b/GHTCP.Delegates/Delegate431.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate431(string string0, string string1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate432.cs b/GHTCP.Delegates/Delegate432.cs index f0ca03c..7ca34ea 100644 --- a/GHTCP.Delegates/Delegate432.cs +++ b/GHTCP.Delegates/Delegate432.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate432(EventHandler eventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate433.cs b/GHTCP.Delegates/Delegate433.cs index 1f273b3..3ebb28c 100644 --- a/GHTCP.Delegates/Delegate433.cs +++ b/GHTCP.Delegates/Delegate433.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate433(float[] float0, int int0, IntPtr intptr0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate434.cs b/GHTCP.Delegates/Delegate434.cs index 6fe5585..f5d26ce 100644 --- a/GHTCP.Delegates/Delegate434.cs +++ b/GHTCP.Delegates/Delegate434.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate434(object object0, object object1, object object2); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate435.cs b/GHTCP.Delegates/Delegate435.cs index 59a7d29..f8a86bb 100644 --- a/GHTCP.Delegates/Delegate435.cs +++ b/GHTCP.Delegates/Delegate435.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate435(Array array0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate436.cs b/GHTCP.Delegates/Delegate436.cs index 1d9a26d..603305f 100644 --- a/GHTCP.Delegates/Delegate436.cs +++ b/GHTCP.Delegates/Delegate436.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate436(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate437.cs b/GHTCP.Delegates/Delegate437.cs index 0b16641..9300f91 100644 --- a/GHTCP.Delegates/Delegate437.cs +++ b/GHTCP.Delegates/Delegate437.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate string[] Delegate437(string string0, string string1, SearchOption searchOption0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate438.cs b/GHTCP.Delegates/Delegate438.cs index 5fdb6af..885a9d3 100644 --- a/GHTCP.Delegates/Delegate438.cs +++ b/GHTCP.Delegates/Delegate438.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate438(object object0, BufferPositionNotify[] bufferPositionNotify0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate439.cs b/GHTCP.Delegates/Delegate439.cs index baaf3e3..7fc3b49 100644 --- a/GHTCP.Delegates/Delegate439.cs +++ b/GHTCP.Delegates/Delegate439.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate439(object object0, Keys keys0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate44.cs b/GHTCP.Delegates/Delegate44.cs index f9fe593..0ba0dbc 100644 --- a/GHTCP.Delegates/Delegate44.cs +++ b/GHTCP.Delegates/Delegate44.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate44(object object0, Environment.SpecialFolder specialFolder0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate440.cs b/GHTCP.Delegates/Delegate440.cs index 8a7de98..39565a3 100644 --- a/GHTCP.Delegates/Delegate440.cs +++ b/GHTCP.Delegates/Delegate440.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ProcessModule Delegate440(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate441.cs b/GHTCP.Delegates/Delegate441.cs index 0e20138..1eacecc 100644 --- a/GHTCP.Delegates/Delegate441.cs +++ b/GHTCP.Delegates/Delegate441.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate byte[] Delegate441(object object0, Stream stream0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate442.cs b/GHTCP.Delegates/Delegate442.cs index ebb3d77..fd3afd7 100644 --- a/GHTCP.Delegates/Delegate442.cs +++ b/GHTCP.Delegates/Delegate442.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ParameterInfo[] Delegate442(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate443.cs b/GHTCP.Delegates/Delegate443.cs index eb151ce..f22cb0b 100644 --- a/GHTCP.Delegates/Delegate443.cs +++ b/GHTCP.Delegates/Delegate443.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate443(object object0, OpCode opCode0, int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate444.cs b/GHTCP.Delegates/Delegate444.cs index bdce678..942aedc 100644 --- a/GHTCP.Delegates/Delegate444.cs +++ b/GHTCP.Delegates/Delegate444.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate decimal Delegate444(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate445.cs b/GHTCP.Delegates/Delegate445.cs index 805fcee..698d381 100644 --- a/GHTCP.Delegates/Delegate445.cs +++ b/GHTCP.Delegates/Delegate445.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate StreamReader Delegate445(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate446.cs b/GHTCP.Delegates/Delegate446.cs index 2cb6663..8caf5f0 100644 --- a/GHTCP.Delegates/Delegate446.cs +++ b/GHTCP.Delegates/Delegate446.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate446(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate447.cs b/GHTCP.Delegates/Delegate447.cs index 5a82cfa..5d160dc 100644 --- a/GHTCP.Delegates/Delegate447.cs +++ b/GHTCP.Delegates/Delegate447.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate447(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate448.cs b/GHTCP.Delegates/Delegate448.cs index bfc8aa1..7c9b1b7 100644 --- a/GHTCP.Delegates/Delegate448.cs +++ b/GHTCP.Delegates/Delegate448.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate448(object object0, ControlStyles controlStyles0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate449.cs b/GHTCP.Delegates/Delegate449.cs index fd41576..327c9c9 100644 --- a/GHTCP.Delegates/Delegate449.cs +++ b/GHTCP.Delegates/Delegate449.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate449(object object0, int int0, int int1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate45.cs b/GHTCP.Delegates/Delegate45.cs index 5556924..4784f8a 100644 --- a/GHTCP.Delegates/Delegate45.cs +++ b/GHTCP.Delegates/Delegate45.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate45(object object0, ScrollBars scrollBars0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate450.cs b/GHTCP.Delegates/Delegate450.cs index 6b71098..a282e1d 100644 --- a/GHTCP.Delegates/Delegate450.cs +++ b/GHTCP.Delegates/Delegate450.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate SplitterPanel Delegate450(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate451.cs b/GHTCP.Delegates/Delegate451.cs index 17dac20..36e2fbf 100644 --- a/GHTCP.Delegates/Delegate451.cs +++ b/GHTCP.Delegates/Delegate451.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate451(object object0, ContentAlignment contentAlignment0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate452.cs b/GHTCP.Delegates/Delegate452.cs index d80588e..8918450 100644 --- a/GHTCP.Delegates/Delegate452.cs +++ b/GHTCP.Delegates/Delegate452.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Encoding Delegate452(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate453.cs b/GHTCP.Delegates/Delegate453.cs index f65b793..188c8c6 100644 --- a/GHTCP.Delegates/Delegate453.cs +++ b/GHTCP.Delegates/Delegate453.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate MethodBase Delegate453(RuntimeMethodHandle runtimeMethodHandle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate454.cs b/GHTCP.Delegates/Delegate454.cs index fce43db..6b97185 100644 --- a/GHTCP.Delegates/Delegate454.cs +++ b/GHTCP.Delegates/Delegate454.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate MethodBase Delegate454(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate455.cs b/GHTCP.Delegates/Delegate455.cs index 8db65cc..a2e749b 100644 --- a/GHTCP.Delegates/Delegate455.cs +++ b/GHTCP.Delegates/Delegate455.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate IntPtr Delegate455(GCHandle gchandle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate46.cs b/GHTCP.Delegates/Delegate46.cs index 20b468b..7be46da 100644 --- a/GHTCP.Delegates/Delegate46.cs +++ b/GHTCP.Delegates/Delegate46.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate46(object object0, CharacterCasing characterCasing0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate47.cs b/GHTCP.Delegates/Delegate47.cs index aa5e526..45e92b5 100644 --- a/GHTCP.Delegates/Delegate47.cs +++ b/GHTCP.Delegates/Delegate47.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate47(object object0, ProcessPriorityClass processPriorityClass0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate48.cs b/GHTCP.Delegates/Delegate48.cs index f435d67..e905e9b 100644 --- a/GHTCP.Delegates/Delegate48.cs +++ b/GHTCP.Delegates/Delegate48.cs @@ -3,5 +3,6 @@ namespace GHTCP.Delegates { - public delegate void Delegate48(object object0, Control control0, Point point0, ToolStripDropDownDirection toolStripDropDownDirection0); -} + public delegate void Delegate48(object object0, Control control0, Point point0, + ToolStripDropDownDirection toolStripDropDownDirection0); +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate49.cs b/GHTCP.Delegates/Delegate49.cs index 9415b95..425a040 100644 --- a/GHTCP.Delegates/Delegate49.cs +++ b/GHTCP.Delegates/Delegate49.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate49(object object0, Type type0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate50.cs b/GHTCP.Delegates/Delegate50.cs index 5848247..44c118d 100644 --- a/GHTCP.Delegates/Delegate50.cs +++ b/GHTCP.Delegates/Delegate50.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate50(object object0, CheckState checkState0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate51.cs b/GHTCP.Delegates/Delegate51.cs index 71a5446..089d7a9 100644 --- a/GHTCP.Delegates/Delegate51.cs +++ b/GHTCP.Delegates/Delegate51.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate51(object object0, SelectionMode selectionMode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate52.cs b/GHTCP.Delegates/Delegate52.cs index bce73a0..c7235ae 100644 --- a/GHTCP.Delegates/Delegate52.cs +++ b/GHTCP.Delegates/Delegate52.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate52(object sender, MouseEventArgs e); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate53.cs b/GHTCP.Delegates/Delegate53.cs index 3c5117d..e28e2bd 100644 --- a/GHTCP.Delegates/Delegate53.cs +++ b/GHTCP.Delegates/Delegate53.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate SettingsBase Delegate53(SettingsBase settingsBase0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate54.cs b/GHTCP.Delegates/Delegate54.cs index 542b6fd..7c516b1 100644 --- a/GHTCP.Delegates/Delegate54.cs +++ b/GHTCP.Delegates/Delegate54.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate RectangleF Delegate54(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate55.cs b/GHTCP.Delegates/Delegate55.cs index 103ce2c..a8d287e 100644 --- a/GHTCP.Delegates/Delegate55.cs +++ b/GHTCP.Delegates/Delegate55.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate55(object object0, CreateParams createParams0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate56.cs b/GHTCP.Delegates/Delegate56.cs index 8bbacc6..419c8d6 100644 --- a/GHTCP.Delegates/Delegate56.cs +++ b/GHTCP.Delegates/Delegate56.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DirectoryInfo Delegate56(string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate57.cs b/GHTCP.Delegates/Delegate57.cs index 60d41a4..db41ce4 100644 --- a/GHTCP.Delegates/Delegate57.cs +++ b/GHTCP.Delegates/Delegate57.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate SmoothingMode Delegate57(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate58.cs b/GHTCP.Delegates/Delegate58.cs index ddc7d8e..c3d6c21 100644 --- a/GHTCP.Delegates/Delegate58.cs +++ b/GHTCP.Delegates/Delegate58.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate58(object object0, ToolStripItem[] toolStripItem0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate59.cs b/GHTCP.Delegates/Delegate59.cs index 8b12356..d1cbfde 100644 --- a/GHTCP.Delegates/Delegate59.cs +++ b/GHTCP.Delegates/Delegate59.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate59(object object0, DialogResult dialogResult0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate60.cs b/GHTCP.Delegates/Delegate60.cs index 28095c6..11954ff 100644 --- a/GHTCP.Delegates/Delegate60.cs +++ b/GHTCP.Delegates/Delegate60.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate60(object object0, DockStyle dockStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate61.cs b/GHTCP.Delegates/Delegate61.cs index 5fcf577..2e5a369 100644 --- a/GHTCP.Delegates/Delegate61.cs +++ b/GHTCP.Delegates/Delegate61.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate61(object object0, DragEventHandler dragEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate62.cs b/GHTCP.Delegates/Delegate62.cs index babc140..b494cfc 100644 --- a/GHTCP.Delegates/Delegate62.cs +++ b/GHTCP.Delegates/Delegate62.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate62(object object0, int int0, BufferPlayFlags bufferPlayFlags0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate63.cs b/GHTCP.Delegates/Delegate63.cs index c79aeef..db12ca8 100644 --- a/GHTCP.Delegates/Delegate63.cs +++ b/GHTCP.Delegates/Delegate63.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate63(object sender, DragEventArgs e); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate64.cs b/GHTCP.Delegates/Delegate64.cs index 6c0f7ba..712c456 100644 --- a/GHTCP.Delegates/Delegate64.cs +++ b/GHTCP.Delegates/Delegate64.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate64(object object0, FormClosingEventHandler formClosingEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate65.cs b/GHTCP.Delegates/Delegate65.cs index 9f97d7c..f82a721 100644 --- a/GHTCP.Delegates/Delegate65.cs +++ b/GHTCP.Delegates/Delegate65.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate RegistryKey Delegate65(object object0, string string0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate66.cs b/GHTCP.Delegates/Delegate66.cs index b4d48a2..22e57d4 100644 --- a/GHTCP.Delegates/Delegate66.cs +++ b/GHTCP.Delegates/Delegate66.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate66(object object0, FormWindowState formWindowState0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate67.cs b/GHTCP.Delegates/Delegate67.cs index 5bd1368..0816de3 100644 --- a/GHTCP.Delegates/Delegate67.cs +++ b/GHTCP.Delegates/Delegate67.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate67(object object0, FormStartPosition formStartPosition0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate68.cs b/GHTCP.Delegates/Delegate68.cs index fd6e801..13fa421 100644 --- a/GHTCP.Delegates/Delegate68.cs +++ b/GHTCP.Delegates/Delegate68.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate68(Device device0, Device device1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate69.cs b/GHTCP.Delegates/Delegate69.cs index 25e73dc..1ca187e 100644 --- a/GHTCP.Delegates/Delegate69.cs +++ b/GHTCP.Delegates/Delegate69.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate69(object object0, ResolveEventHandler resolveEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate70.cs b/GHTCP.Delegates/Delegate70.cs index 1acdf3c..49629a1 100644 --- a/GHTCP.Delegates/Delegate70.cs +++ b/GHTCP.Delegates/Delegate70.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate70(object object0, FormBorderStyle formBorderStyle0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate71.cs b/GHTCP.Delegates/Delegate71.cs index 3ae835f..d52da50 100644 --- a/GHTCP.Delegates/Delegate71.cs +++ b/GHTCP.Delegates/Delegate71.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate71(object object0, KeyPressEventHandler keyPressEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate72.cs b/GHTCP.Delegates/Delegate72.cs index e885ee2..45b7a59 100644 --- a/GHTCP.Delegates/Delegate72.cs +++ b/GHTCP.Delegates/Delegate72.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate72(object object0, int int0, bool bool0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate73.cs b/GHTCP.Delegates/Delegate73.cs index 083d00e..43d7edb 100644 --- a/GHTCP.Delegates/Delegate73.cs +++ b/GHTCP.Delegates/Delegate73.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate73(object object0, Keys keys0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate74.cs b/GHTCP.Delegates/Delegate74.cs index c759ec1..f547005 100644 --- a/GHTCP.Delegates/Delegate74.cs +++ b/GHTCP.Delegates/Delegate74.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate74(object object0, TreeNode treeNode0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate75.cs b/GHTCP.Delegates/Delegate75.cs index cf4d7f8..3f1bf11 100644 --- a/GHTCP.Delegates/Delegate75.cs +++ b/GHTCP.Delegates/Delegate75.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate75(object object0, KeyEventHandler keyEventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate76.cs b/GHTCP.Delegates/Delegate76.cs index 96a5475..11b2998 100644 --- a/GHTCP.Delegates/Delegate76.cs +++ b/GHTCP.Delegates/Delegate76.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate76(object sender, KeyEventArgs e); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate77.cs b/GHTCP.Delegates/Delegate77.cs index a42b8b6..42bfeba 100644 --- a/GHTCP.Delegates/Delegate77.cs +++ b/GHTCP.Delegates/Delegate77.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate77(object object0, EventHandler eventHandler0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate78.cs b/GHTCP.Delegates/Delegate78.cs index 6d8d80f..7945892 100644 --- a/GHTCP.Delegates/Delegate78.cs +++ b/GHTCP.Delegates/Delegate78.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate78(object object0, MenuStrip menuStrip0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate79.cs b/GHTCP.Delegates/Delegate79.cs index c766009..e11c825 100644 --- a/GHTCP.Delegates/Delegate79.cs +++ b/GHTCP.Delegates/Delegate79.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate79(object object0, char[] char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate80.cs b/GHTCP.Delegates/Delegate80.cs index 14611b6..85fa7b4 100644 --- a/GHTCP.Delegates/Delegate80.cs +++ b/GHTCP.Delegates/Delegate80.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ICryptoTransform Delegate80(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate81.cs b/GHTCP.Delegates/Delegate81.cs index fd80099..0396c1f 100644 --- a/GHTCP.Delegates/Delegate81.cs +++ b/GHTCP.Delegates/Delegate81.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate81(object object0, ThreadPriority threadPriority0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate82.cs b/GHTCP.Delegates/Delegate82.cs index a801b2a..b03e13c 100644 --- a/GHTCP.Delegates/Delegate82.cs +++ b/GHTCP.Delegates/Delegate82.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate82(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate83.cs b/GHTCP.Delegates/Delegate83.cs index 85b81d6..4742ce4 100644 --- a/GHTCP.Delegates/Delegate83.cs +++ b/GHTCP.Delegates/Delegate83.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate object Delegate83(object object0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate84.cs b/GHTCP.Delegates/Delegate84.cs index dc95043..bdd415a 100644 --- a/GHTCP.Delegates/Delegate84.cs +++ b/GHTCP.Delegates/Delegate84.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate int Delegate84(object object0, Point point0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate85.cs b/GHTCP.Delegates/Delegate85.cs index efa36a3..c24b1b9 100644 --- a/GHTCP.Delegates/Delegate85.cs +++ b/GHTCP.Delegates/Delegate85.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate bool Delegate85(Type type0, object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate86.cs b/GHTCP.Delegates/Delegate86.cs index 29fe723..79e99aa 100644 --- a/GHTCP.Delegates/Delegate86.cs +++ b/GHTCP.Delegates/Delegate86.cs @@ -4,4 +4,4 @@ namespace GHTCP.Delegates { public delegate void Delegate86(object object0, int int0, Array array0, LockFlag lockFlag0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate87.cs b/GHTCP.Delegates/Delegate87.cs index 6859332..8c1098c 100644 --- a/GHTCP.Delegates/Delegate87.cs +++ b/GHTCP.Delegates/Delegate87.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate int Delegate87(object object0, char[] char0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate88.cs b/GHTCP.Delegates/Delegate88.cs index a50bf34..bfcf036 100644 --- a/GHTCP.Delegates/Delegate88.cs +++ b/GHTCP.Delegates/Delegate88.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ListBox.ObjectCollection Delegate88(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate89.cs b/GHTCP.Delegates/Delegate89.cs index 8321c3e..e61a15d 100644 --- a/GHTCP.Delegates/Delegate89.cs +++ b/GHTCP.Delegates/Delegate89.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate DateTime Delegate89(int int0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate90.cs b/GHTCP.Delegates/Delegate90.cs index 4479b1e..3edc684 100644 --- a/GHTCP.Delegates/Delegate90.cs +++ b/GHTCP.Delegates/Delegate90.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Encoding Delegate90(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate91.cs b/GHTCP.Delegates/Delegate91.cs index e893faf..21689c9 100644 --- a/GHTCP.Delegates/Delegate91.cs +++ b/GHTCP.Delegates/Delegate91.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate void Delegate91(object object0, int int0, object object1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate92.cs b/GHTCP.Delegates/Delegate92.cs index 1266df0..421884c 100644 --- a/GHTCP.Delegates/Delegate92.cs +++ b/GHTCP.Delegates/Delegate92.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate SelectionMode Delegate92(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate93.cs b/GHTCP.Delegates/Delegate93.cs index bf95410..cf3ef43 100644 --- a/GHTCP.Delegates/Delegate93.cs +++ b/GHTCP.Delegates/Delegate93.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate TableLayoutControlCollection Delegate93(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate94.cs b/GHTCP.Delegates/Delegate94.cs index 81cb869..970a980 100644 --- a/GHTCP.Delegates/Delegate94.cs +++ b/GHTCP.Delegates/Delegate94.cs @@ -1,4 +1,4 @@ namespace GHTCP.Delegates { public delegate string Delegate94(object object0, char char0, char char1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate95.cs b/GHTCP.Delegates/Delegate95.cs index 016cf0a..2eb66a9 100644 --- a/GHTCP.Delegates/Delegate95.cs +++ b/GHTCP.Delegates/Delegate95.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate void Delegate95(object sender, EventArgs e); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate96.cs b/GHTCP.Delegates/Delegate96.cs index 2b8d814..b32a2b1 100644 --- a/GHTCP.Delegates/Delegate96.cs +++ b/GHTCP.Delegates/Delegate96.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate MouseButtons Delegate96(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate97.cs b/GHTCP.Delegates/Delegate97.cs index c8ffb9e..8e7dec6 100644 --- a/GHTCP.Delegates/Delegate97.cs +++ b/GHTCP.Delegates/Delegate97.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Delegate Delegate97(Delegate delegate0, Delegate delegate1); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate98.cs b/GHTCP.Delegates/Delegate98.cs index 6d21c86..5bdb4b3 100644 --- a/GHTCP.Delegates/Delegate98.cs +++ b/GHTCP.Delegates/Delegate98.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate Keys Delegate98(); -} +} \ No newline at end of file diff --git a/GHTCP.Delegates/Delegate99.cs b/GHTCP.Delegates/Delegate99.cs index 9661c4a..fc58bfa 100644 --- a/GHTCP.Delegates/Delegate99.cs +++ b/GHTCP.Delegates/Delegate99.cs @@ -3,4 +3,4 @@ namespace GHTCP.Delegates { public delegate ListBox.SelectedObjectCollection Delegate99(object object0); -} +} \ No newline at end of file diff --git a/GHTCP.Properties/Settings.cs b/GHTCP.Properties/Settings.cs index 3f7f4ac..8a8b44a 100644 --- a/GHTCP.Properties/Settings.cs +++ b/GHTCP.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace GHTCP.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/GuitarHero.Setlist/GH3Setlist.cs b/GuitarHero.Setlist/GH3Setlist.cs index 1471aac..faaae99 100644 --- a/GuitarHero.Setlist/GH3Setlist.cs +++ b/GuitarHero.Setlist/GH3Setlist.cs @@ -8,85 +8,92 @@ namespace GuitarHero.Setlist { - [Serializable] - public class Gh3Setlist - { - public string Path; + [Serializable] + public class Gh3Setlist + { + public string Path; - public string Prefix = ""; + public string Prefix = ""; - public string InitialMovie; + public string InitialMovie; - public List Tiers = new List(); + public List Tiers = new List(); - public int CustomBit; + public int CustomBit; - public Gh3Setlist() - { - } + public Gh3Setlist() + { + } - public Gh3Setlist(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) - { - method_5(class2860, gh3Songlist0); - } + public Gh3Setlist(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) + { + method_5(class2860, gh3Songlist0); + } - public List method_0() - { - return Tiers; - } + public List method_0() + { + return Tiers; + } - public void method_1(Gh3Setlist gh3Setlist0) - { - InitialMovie = gh3Setlist0.InitialMovie; - Tiers = gh3Setlist0.Tiers; - } + public void method_1(Gh3Setlist gh3Setlist0) + { + InitialMovie = gh3Setlist0.InitialMovie; + Tiers = gh3Setlist0.Tiers; + } - public string method_2() - { - return Path; - } + public string method_2() + { + return Path; + } - public void method_3(string string0) - { - Path = string0; - } + public void method_3(string string0) + { + Path = string0; + } - public bool method_4() - { - return CustomBit != 0; - } + public bool method_4() + { + return CustomBit != 0; + } - public void method_5(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) - { - AsciiStructureNode @class; - Prefix = (((@class = class2860.method_5(new AsciiStructureNode("prefix"))) != null) ? @class.method_8() : "general"); - InitialMovie = (((@class = class2860.method_5(new AsciiStructureNode("initial_movie"))) != null) ? @class.method_8() : ""); - IntegerStructureNode class2; - var num = ((class2 = class2860.method_5(new IntegerStructureNode("num_tiers"))) != null) ? class2.method_8() : 0; - try - { - for (var i = 1; i <= num; i++) - { - Tiers.Add(new Gh3Tier(class2860.method_5(new StructurePointerNode("tier" + i)).method_8(), gh3Songlist0)); - } - } - catch - { - throw new Exception(Path + " setlist is corrupt: Tier/s missing."); - } - } + public void method_5(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) + { + AsciiStructureNode @class; + Prefix = (((@class = class2860.method_5(new AsciiStructureNode("prefix"))) != null) + ? @class.method_8() + : "general"); + InitialMovie = (((@class = class2860.method_5(new AsciiStructureNode("initial_movie"))) != null) + ? @class.method_8() + : ""); + IntegerStructureNode class2; + var num = ((class2 = class2860.method_5(new IntegerStructureNode("num_tiers"))) != null) + ? class2.method_8() + : 0; + try + { + for (var i = 1; i <= num; i++) + { + Tiers.Add(new Gh3Tier(class2860.method_5(new StructurePointerNode("tier" + i)).method_8(), + gh3Songlist0)); + } + } + catch + { + throw new Exception(Path + " setlist is corrupt: Tier/s missing."); + } + } - public StructureHeaderNode method_6() - { - var @class = new StructureHeaderNode(); - @class.method_3(new AsciiStructureNode("prefix", Prefix)); - @class.method_3(new IntegerStructureNode("num_tiers", Tiers.Count)); - @class.method_3(new AsciiStructureNode("initial_movie", InitialMovie)); - for (var i = 0; i < Tiers.Count; i++) - { - @class.method_3(new StructurePointerNode("tier" + (i + 1), Tiers[i].method_3())); - } - return @class; - } - } -} + public StructureHeaderNode method_6() + { + var @class = new StructureHeaderNode(); + @class.method_3(new AsciiStructureNode("prefix", Prefix)); + @class.method_3(new IntegerStructureNode("num_tiers", Tiers.Count)); + @class.method_3(new AsciiStructureNode("initial_movie", InitialMovie)); + for (var i = 0; i < Tiers.Count; i++) + { + @class.method_3(new StructurePointerNode("tier" + (i + 1), Tiers[i].method_3())); + } + return @class; + } + } +} \ No newline at end of file diff --git a/GuitarHero.Songlist/GH3Song.cs b/GuitarHero.Songlist/GH3Song.cs index 4854b71..8903f87 100644 --- a/GuitarHero.Songlist/GH3Song.cs +++ b/GuitarHero.Songlist/GH3Song.cs @@ -8,260 +8,294 @@ namespace GuitarHero.Songlist { - [Serializable] - public class Gh3Song : INterface16 - { - public bool Editable; + [Serializable] + public class Gh3Song : INterface16 + { + public bool Editable; - public bool Visible = true; + public bool Visible = true; - public bool Leaderboard; + public bool Leaderboard; - public bool OriginalArtist; + public bool OriginalArtist; - public bool NotBass; + public bool NotBass; - public bool NoRhythmTrack; + public bool NoRhythmTrack; - public bool UseCoopNotetracks; + public bool UseCoopNotetracks; - public bool Keyboard; + public bool Keyboard; - public float BandVol; + public float BandVol; - public float GuitarVol; + public float GuitarVol; - public float HammerOn; + public float HammerOn; - public int GemOffset; + public int GemOffset; - public int FretbarOffset; + public int FretbarOffset; - public int InputOffset; + public int InputOffset; - public int Version = 3; + public int Version = 3; - public string Name = ""; + public string Name = ""; - public string Title = ""; + public string Title = ""; - public string Artist = ""; + public string Artist = ""; - public string Year = ""; + public string Year = ""; - public string Countoff = "sticks_tiny"; + public string Countoff = "sticks_tiny"; - public string Bassist = "Generic Bassist"; - - public string Singer = ""; - - public string Boss = ""; - - public object ArtistText = true; - - [NonSerialized] - public static bool Bool0; - - public Gh3Song() - { - } - - public Gh3Song(StructurePointerNode class3020) - { - vmethod_4(class3020); - } - - public Gh3Song(string string0) - { - Title = string0; - Name = string0; - Leaderboard = true; - Editable = true; - } - - public virtual void vmethod_0(INterface16 interface160) - { - if (interface160 is Gh3Song) - { - var gH3Song = interface160 as Gh3Song; - OriginalArtist = gH3Song.OriginalArtist; - NotBass = gH3Song.NotBass; - NoRhythmTrack = gH3Song.NoRhythmTrack; - UseCoopNotetracks = gH3Song.UseCoopNotetracks; - Keyboard = gH3Song.Keyboard; - BandVol = gH3Song.BandVol; - GuitarVol = gH3Song.GuitarVol; - HammerOn = gH3Song.HammerOn; - GemOffset = gH3Song.GemOffset; - FretbarOffset = gH3Song.FretbarOffset; - InputOffset = gH3Song.InputOffset; - Version = gH3Song.Version; - Title = gH3Song.Title; - Artist = gH3Song.Artist; - Year = gH3Song.Year; - Countoff = gH3Song.Countoff; - Bassist = gH3Song.Bassist; - Singer = gH3Song.Singer; - Boss = gH3Song.Boss; - ArtistText = gH3Song.ArtistText; - } - } - - public bool IsEditable() - { - return Editable; - } - - public void SetEditable(bool bool1) - { - Editable = bool1; - } - - public bool IsVisible() - { - return Visible; - } - - public void SetVisible(bool bool1) - { - Visible = bool1; - } - - public string GetSongName() - { - return Name; - } - - public override string ToString() - { - if (Bool0 && Title != null) - { - return Title; - } - return Name; - } - - public virtual void vmethod_4(StructurePointerNode class3020) - { - Name = class3020.method_5(new AsciiStructureNode("name")).method_8().ToLower(); - if (Name != null && !Name.Equals("")) - { - UnicodeStructureNode @class; - Title = (((@class = class3020.method_5(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : ""); - Artist = (((@class = class3020.method_5(new UnicodeStructureNode("artist"))) != null) ? @class.method_8() : ""); - Year = (((@class = class3020.method_5(new UnicodeStructureNode("year"))) != null) ? @class.method_8() : ""); - Bassist = (((@class = class3020.method_5(new UnicodeStructureNode("bassist"))) != null) ? CultureInfo.CurrentCulture.TextInfo.ToTitleCase(@class.method_8()) : "Generic Bassist"); - AsciiStructureNode class2; - Countoff = (((class2 = class3020.method_5(new AsciiStructureNode("countoff"))) != null) ? class2.method_8() : ""); - FloatStructureNode class3; - BandVol = (((class3 = class3020.method_5(new FloatStructureNode("band_playback_volume"))) != null) ? class3.method_8() : 0f); - GuitarVol = (((class3 = class3020.method_5(new FloatStructureNode("guitar_playback_volume"))) != null) ? class3.method_8() : 0f); - HammerOn = (((class3 = class3020.method_5(new FloatStructureNode("hammer_on_measure_scale"))) != null) ? class3.method_8() : 0f); - IntegerStructureNode class4; - GemOffset = (((class4 = class3020.method_5(new IntegerStructureNode("gem_offset"))) != null) ? class4.method_8() : 0); - FretbarOffset = (((class4 = class3020.method_5(new IntegerStructureNode("fretbar_offset"))) != null) ? class4.method_8() : 0); - InputOffset = (((class4 = class3020.method_5(new IntegerStructureNode("input_offset"))) != null) ? class4.method_8() : 0); - OriginalArtist = ((class4 = class3020.method_5(new IntegerStructureNode("original_artist"))) != null && class4.method_8() == 1); - Leaderboard = ((class4 = class3020.method_5(new IntegerStructureNode("leaderboard"))) != null && class4.method_8() == 1); - NotBass = ((class4 = class3020.method_5(new IntegerStructureNode("rhythm_track"))) != null && class4.method_8() == 1); - TagStructureNode class5; - Keyboard = ((class5 = class3020.method_5(new TagStructureNode("keyboard"))) != null && class5.method_8() == "true"); - Singer = (((class5 = class3020.method_5(new TagStructureNode("singer"))) != null) ? class5.method_8() : ""); - Boss = (((class5 = class3020.method_5(new TagStructureNode("boss"))) != null) ? class5.method_8() : ""); - Version = (((class5 = class3020.method_5(new TagStructureNode("version"))) != null) ? Convert.ToInt32(string.Concat(class5.method_8()[2])) : 3); - UseCoopNotetracks = (class3020.method_5(new TagStructureNode(0, "use_coop_notetracks")) != null); - NoRhythmTrack = (class3020.method_5(new TagStructureNode(0, "no_rhythm_track")) != null); - try - { - ArtistText = class3020.method_5(new FileTagStructureNode("artist_text")).method_8().Equals("artist_text_by"); - return; - } - catch - { - ArtistText = (((@class = class3020.method_5(new UnicodeStructureNode("artist_text"))) != null) ? @class.method_8() : "by"); - return; - } - } - throw new Exception("songlist.qb"); - } - - public virtual StructurePointerNode vmethod_5() - { - var @class = new StructureHeaderNode(); - @class.method_3(new TagStructureNode("checksum", Name)); - @class.method_3(new AsciiStructureNode("name", Name)); - @class.method_3(new UnicodeStructureNode("title", Title)); - @class.method_3(new UnicodeStructureNode("artist", Artist.Equals("") ? " " : Artist)); - @class.method_3(new UnicodeStructureNode("year", Year.Equals("") ? " " : Year)); - if (ArtistText is bool) - { - @class.method_3(new FileTagStructureNode("artist_text", ((bool)ArtistText) ? "artist_text_by" : "artist_text_as_made_famous_by")); - } - else if (ArtistText is string) - { - @class.method_3(new UnicodeStructureNode("artist_text", (string)ArtistText)); - } - @class.method_3(new IntegerStructureNode("original_artist", OriginalArtist ? 1 : 0)); - if (Version == 0) - { - Version = 3; - } - @class.method_3(new TagStructureNode("version", "gh" + Version)); - @class.method_3(new IntegerStructureNode("leaderboard", Leaderboard ? 1 : 0)); - if (GemOffset != 0) - { - @class.method_3(new IntegerStructureNode("gem_offset", GemOffset)); - } - if (FretbarOffset != 0) - { - @class.method_3(new IntegerStructureNode("fretbar_offset", FretbarOffset)); - } - if (InputOffset != 0) - { - @class.method_3(new IntegerStructureNode("input_offset", InputOffset)); - } - if (!Singer.Equals("")) - { - @class.method_3(new TagStructureNode("singer", Singer)); - } - if (!Boss.Equals("")) - { - @class.method_3(new TagStructureNode("boss", Boss)); - } - if (!Keyboard) - { - @class.method_3(new TagStructureNode("keyboard", "false")); - } - if (!Bassist.Equals("Generic Bassist")) - { - @class.method_3(new UnicodeStructureNode("bassist", Bassist)); - } - if (!Countoff.Equals("")) - { - @class.method_3(new AsciiStructureNode("countoff", Countoff)); - } - @class.method_3(new IntegerStructureNode("rhythm_track", NotBass ? 1 : 0)); - if (BandVol != 0f) - { - @class.method_3(new FloatStructureNode("band_playback_volume", BandVol)); - } - if (GuitarVol != 0f) - { - @class.method_3(new FloatStructureNode("guitar_playback_volume", GuitarVol)); - } - if (HammerOn != 0f) - { - @class.method_3(new FloatStructureNode("hammer_on_measure_scale", HammerOn)); - } - if (UseCoopNotetracks) - { - @class.method_3(new TagStructureNode(0, "use_coop_notetracks")); - } - if (NoRhythmTrack) - { - @class.method_3(new TagStructureNode(0, "no_rhythm_track")); - } - return new StructurePointerNode(Name, @class); - } - } -} + public string Bassist = "Generic Bassist"; + + public string Singer = ""; + + public string Boss = ""; + + public object ArtistText = true; + + [NonSerialized] public static bool Bool0; + + public Gh3Song() + { + } + + public Gh3Song(StructurePointerNode class3020) + { + vmethod_4(class3020); + } + + public Gh3Song(string string0) + { + Title = string0; + Name = string0; + Leaderboard = true; + Editable = true; + } + + public virtual void vmethod_0(INterface16 interface160) + { + if (interface160 is Gh3Song) + { + var gH3Song = interface160 as Gh3Song; + OriginalArtist = gH3Song.OriginalArtist; + NotBass = gH3Song.NotBass; + NoRhythmTrack = gH3Song.NoRhythmTrack; + UseCoopNotetracks = gH3Song.UseCoopNotetracks; + Keyboard = gH3Song.Keyboard; + BandVol = gH3Song.BandVol; + GuitarVol = gH3Song.GuitarVol; + HammerOn = gH3Song.HammerOn; + GemOffset = gH3Song.GemOffset; + FretbarOffset = gH3Song.FretbarOffset; + InputOffset = gH3Song.InputOffset; + Version = gH3Song.Version; + Title = gH3Song.Title; + Artist = gH3Song.Artist; + Year = gH3Song.Year; + Countoff = gH3Song.Countoff; + Bassist = gH3Song.Bassist; + Singer = gH3Song.Singer; + Boss = gH3Song.Boss; + ArtistText = gH3Song.ArtistText; + } + } + + public bool IsEditable() + { + return Editable; + } + + public void SetEditable(bool bool1) + { + Editable = bool1; + } + + public bool IsVisible() + { + return Visible; + } + + public void SetVisible(bool bool1) + { + Visible = bool1; + } + + public string GetSongName() + { + return Name; + } + + public override string ToString() + { + if (Bool0 && Title != null) + { + return Title; + } + return Name; + } + + public virtual void vmethod_4(StructurePointerNode class3020) + { + Name = class3020.method_5(new AsciiStructureNode("name")).method_8().ToLower(); + if (Name != null && !Name.Equals("")) + { + UnicodeStructureNode @class; + Title = (((@class = class3020.method_5(new UnicodeStructureNode("title"))) != null) + ? @class.method_8() + : ""); + Artist = (((@class = class3020.method_5(new UnicodeStructureNode("artist"))) != null) + ? @class.method_8() + : ""); + Year = (((@class = class3020.method_5(new UnicodeStructureNode("year"))) != null) + ? @class.method_8() + : ""); + Bassist = (((@class = class3020.method_5(new UnicodeStructureNode("bassist"))) != null) + ? CultureInfo.CurrentCulture.TextInfo.ToTitleCase(@class.method_8()) + : "Generic Bassist"); + AsciiStructureNode class2; + Countoff = (((class2 = class3020.method_5(new AsciiStructureNode("countoff"))) != null) + ? class2.method_8() + : ""); + FloatStructureNode class3; + BandVol = (((class3 = class3020.method_5(new FloatStructureNode("band_playback_volume"))) != null) + ? class3.method_8() + : 0f); + GuitarVol = (((class3 = class3020.method_5(new FloatStructureNode("guitar_playback_volume"))) != null) + ? class3.method_8() + : 0f); + HammerOn = (((class3 = class3020.method_5(new FloatStructureNode("hammer_on_measure_scale"))) != null) + ? class3.method_8() + : 0f); + IntegerStructureNode class4; + GemOffset = (((class4 = class3020.method_5(new IntegerStructureNode("gem_offset"))) != null) + ? class4.method_8() + : 0); + FretbarOffset = (((class4 = class3020.method_5(new IntegerStructureNode("fretbar_offset"))) != null) + ? class4.method_8() + : 0); + InputOffset = (((class4 = class3020.method_5(new IntegerStructureNode("input_offset"))) != null) + ? class4.method_8() + : 0); + OriginalArtist = ((class4 = class3020.method_5(new IntegerStructureNode("original_artist"))) != null && + class4.method_8() == 1); + Leaderboard = ((class4 = class3020.method_5(new IntegerStructureNode("leaderboard"))) != null && + class4.method_8() == 1); + NotBass = ((class4 = class3020.method_5(new IntegerStructureNode("rhythm_track"))) != null && + class4.method_8() == 1); + TagStructureNode class5; + Keyboard = ((class5 = class3020.method_5(new TagStructureNode("keyboard"))) != null && + class5.method_8() == "true"); + Singer = (((class5 = class3020.method_5(new TagStructureNode("singer"))) != null) + ? class5.method_8() + : ""); + Boss = (((class5 = class3020.method_5(new TagStructureNode("boss"))) != null) ? class5.method_8() : ""); + Version = (((class5 = class3020.method_5(new TagStructureNode("version"))) != null) + ? Convert.ToInt32(string.Concat(class5.method_8()[2])) + : 3); + UseCoopNotetracks = (class3020.method_5(new TagStructureNode(0, "use_coop_notetracks")) != null); + NoRhythmTrack = (class3020.method_5(new TagStructureNode(0, "no_rhythm_track")) != null); + try + { + ArtistText = class3020.method_5(new FileTagStructureNode("artist_text")) + .method_8() + .Equals("artist_text_by"); + return; + } + catch + { + ArtistText = (((@class = class3020.method_5(new UnicodeStructureNode("artist_text"))) != null) + ? @class.method_8() + : "by"); + return; + } + } + throw new Exception("songlist.qb"); + } + + public virtual StructurePointerNode vmethod_5() + { + var @class = new StructureHeaderNode(); + @class.method_3(new TagStructureNode("checksum", Name)); + @class.method_3(new AsciiStructureNode("name", Name)); + @class.method_3(new UnicodeStructureNode("title", Title)); + @class.method_3(new UnicodeStructureNode("artist", Artist.Equals("") ? " " : Artist)); + @class.method_3(new UnicodeStructureNode("year", Year.Equals("") ? " " : Year)); + if (ArtistText is bool) + { + @class.method_3(new FileTagStructureNode("artist_text", + ((bool) ArtistText) ? "artist_text_by" : "artist_text_as_made_famous_by")); + } + else if (ArtistText is string) + { + @class.method_3(new UnicodeStructureNode("artist_text", (string) ArtistText)); + } + @class.method_3(new IntegerStructureNode("original_artist", OriginalArtist ? 1 : 0)); + if (Version == 0) + { + Version = 3; + } + @class.method_3(new TagStructureNode("version", "gh" + Version)); + @class.method_3(new IntegerStructureNode("leaderboard", Leaderboard ? 1 : 0)); + if (GemOffset != 0) + { + @class.method_3(new IntegerStructureNode("gem_offset", GemOffset)); + } + if (FretbarOffset != 0) + { + @class.method_3(new IntegerStructureNode("fretbar_offset", FretbarOffset)); + } + if (InputOffset != 0) + { + @class.method_3(new IntegerStructureNode("input_offset", InputOffset)); + } + if (!Singer.Equals("")) + { + @class.method_3(new TagStructureNode("singer", Singer)); + } + if (!Boss.Equals("")) + { + @class.method_3(new TagStructureNode("boss", Boss)); + } + if (!Keyboard) + { + @class.method_3(new TagStructureNode("keyboard", "false")); + } + if (!Bassist.Equals("Generic Bassist")) + { + @class.method_3(new UnicodeStructureNode("bassist", Bassist)); + } + if (!Countoff.Equals("")) + { + @class.method_3(new AsciiStructureNode("countoff", Countoff)); + } + @class.method_3(new IntegerStructureNode("rhythm_track", NotBass ? 1 : 0)); + if (BandVol != 0f) + { + @class.method_3(new FloatStructureNode("band_playback_volume", BandVol)); + } + if (GuitarVol != 0f) + { + @class.method_3(new FloatStructureNode("guitar_playback_volume", GuitarVol)); + } + if (HammerOn != 0f) + { + @class.method_3(new FloatStructureNode("hammer_on_measure_scale", HammerOn)); + } + if (UseCoopNotetracks) + { + @class.method_3(new TagStructureNode(0, "use_coop_notetracks")); + } + if (NoRhythmTrack) + { + @class.method_3(new TagStructureNode(0, "no_rhythm_track")); + } + return new StructurePointerNode(Name, @class); + } + } +} \ No newline at end of file diff --git a/GuitarHero.Songlist/GH3Songlist.cs b/GuitarHero.Songlist/GH3Songlist.cs index 2c4759a..24b88f5 100644 --- a/GuitarHero.Songlist/GH3Songlist.cs +++ b/GuitarHero.Songlist/GH3Songlist.cs @@ -9,240 +9,237 @@ namespace GuitarHero.Songlist { - [Serializable] - public class Gh3Songlist : SortedDictionary - { - [NonSerialized] - public Dictionary Gh3SetlistList = new Dictionary(); - - [NonSerialized] - public Dictionary Dictionary1 = new Dictionary(); - - [NonSerialized] - public ZzCollection214 Class2140 = new ZzCollection214(); - - public int CustomBitMask; - - public bool HideUsed; - - public bool HideUnEditable; - - public static List IgnoreSongs = new List(new[] - { - QbSongClass1.AddKeyToDictionary("synctest"), - QbSongClass1.AddKeyToDictionary("mutetest"), - QbSongClass1.AddKeyToDictionary("synctestplaytoaudio"), - QbSongClass1.AddKeyToDictionary("synctestaudioandvisual"), - QbSongClass1.AddKeyToDictionary("tutorial_1b"), - QbSongClass1.AddKeyToDictionary("tutorial_1c"), - QbSongClass1.AddKeyToDictionary("tutorial_1d"), - QbSongClass1.AddKeyToDictionary("tutorial_1e"), - QbSongClass1.AddKeyToDictionary("tutorial_2a"), - QbSongClass1.AddKeyToDictionary("tutorial_2b"), - QbSongClass1.AddKeyToDictionary("tutorial_2c"), - QbSongClass1.AddKeyToDictionary("tutorial_3a"), - QbSongClass1.AddKeyToDictionary("tutorial_3b"), - QbSongClass1.AddKeyToDictionary("tutorial_3c"), - QbSongClass1.AddKeyToDictionary("tutorial_3d"), - QbSongClass1.AddKeyToDictionary("tutorial_4c"), - QbSongClass1.AddKeyToDictionary("tutorial_4e"), - QbSongClass1.AddKeyToDictionary("credits"), - QbSongClass1.AddKeyToDictionary("kingsandqueenscredits"), - QbSongClass1.AddKeyToDictionary("timrapptest") - }); - - public Gh3Songlist(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0) - { - FindEditableSongs(class3080, gh3Songlist0); - } - - public void Add(Gh3Song gh3Song0) - { - if (!ContainsKey(gh3Song0.GetSongName())) - { - base.Add(gh3Song0.GetSongName(), gh3Song0); - QbSongClass1.AddKeyToDictionary(gh3Song0.GetSongName()); - } - } - - public void method_0(Gh3Song gh3Song0, bool bool0) - { - if (!ContainsKey(gh3Song0.GetSongName())) - { - base.Add(gh3Song0.GetSongName(), gh3Song0); - QbSongClass1.AddKeyToDictionary(gh3Song0.GetSongName()); - return; - } - if (base[gh3Song0.GetSongName()].IsEditable() && bool0) - { - base[gh3Song0.GetSongName()].vmethod_0(gh3Song0); - } - } - - public List method_1(Gh3Song gh3Song0) - { - var list = new List(); - foreach (var current in Gh3SetlistList.Keys) - { - foreach (var current2 in Gh3SetlistList[current].method_0()) - { - if (current2.method_0().Contains(gh3Song0)) - { - current2.method_0().Remove(gh3Song0); - if (!list.Contains(current)) - { - list.Add(current); - } - } - } - } - Remove(gh3Song0.GetSongName()); - return list; - } - - public Gh3Song[] GetSongs() - { - var songList = new List(Values); - if (songList.Count != 0) - { - if (HideUsed) - { - foreach (var current in Gh3SetlistList.Values) - { - foreach (var current2 in current.method_0()) - { - foreach (var current3 in current2.method_0()) - { - if (songList.Contains(current3)) - { - songList.Remove(current3); - } - } - } - } - } - if (HideUnEditable) - { - foreach (var current4 in Values) - { - if (!current4.IsEditable()) - { - songList.Remove(current4); - } - } - } - foreach (var current5 in Values) - { - if (!current5.IsVisible()) - { - songList.Remove(current5); - } - } - } - return songList.ToArray(); - } - - public bool method_3(string string0) - { - return ContainsKey(string0); - } - - public Gh3Setlist method_4(string string0, StructurePointerRootNode class2660) - { - var gH3Setlist = new Gh3Setlist(class2660.method_7(), this); - gH3Setlist.method_3(string0); - Gh3SetlistList.Add(class2660.Int0, gH3Setlist); - return gH3Setlist; - } - - public GhLink method_5(string string0, StructurePointerRootNode class2660) - { - var gHLink = new GhLink(string0, class2660.method_7()); - Dictionary1.Add(class2660.Int0, gHLink); - return gHLink; - } - - public void method_6(StructureArrayNode class2920) - { - foreach (StructureHeaderNode @class in class2920.Nodes) - { - var num = @class.method_5(new TagStructureNode("tag")).method_10(); - if (Dictionary1.ContainsKey(num)) - { - Class2140.Add(@class.method_5(new UnicodeStructureNode("text")).method_8(), num); - } - } - } - - public StructureArrayNode method_7() - { - var @class = new StructureArrayNode(); - foreach (var current in Class2140.Keys) - { - @class.method_3(new StructureHeaderNode(new List - { - new TagStructureNode("tag", Class2140[current]), - new UnicodeStructureNode("text", current) - })); - } - return @class; - } - - public string method_8(int int0) - { - foreach (var current in Dictionary1.Keys) - { - if (Dictionary1[current].Setlist == int0) - { - return Class2140.method_0(current); - } - } - return "No Name"; - } - - public int method_9(string string0) - { - return Dictionary1[Class2140[string0]].Setlist; - } - - public int method_10(int int0) - { - return Dictionary1[int0].Setlist; - } - - public Gh3Setlist method_11(int int0) - { - return Gh3SetlistList[Dictionary1[int0].Setlist]; - } - - public void FindEditableSongs(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0) - { - var @class = class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7(); - var flag = class3080.method_5(new TagStructureNode("band")) != null; - Clear(); - foreach (StructurePointerNode class2 in @class.Nodes) - { - var gH3Song = flag ? new GhaSong(class2) : new Gh3Song(class2); - if (gh3Songlist0 != null) - { - gH3Song.SetEditable(!gh3Songlist0.method_3(gH3Song.GetSongName())); - } - gH3Song.SetVisible(!IgnoreSongs.Contains(class2.Int0)); - Add(gH3Song); - } - } - - public void method_13(ZzGenericNode1 class3080) - { - var list = new List(); - var list2 = new List(); - foreach (var current in Keys) - { - list.Add(QbSongClass1.AddKeyToDictionary(current)); - list2.Add(base[current].vmethod_5()); - } - ((TagArray)class3080.method_5(new ArrayPointerRootNode("gh3_songlist")).method_7()).method_12(list); - class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7().method_9(list2); - } - } -} + [Serializable] + public class Gh3Songlist : SortedDictionary + { + [NonSerialized] public Dictionary Gh3SetlistList = new Dictionary(); + + [NonSerialized] public Dictionary Dictionary1 = new Dictionary(); + + [NonSerialized] public ZzCollection214 Class2140 = new ZzCollection214(); + + public int CustomBitMask; + + public bool HideUsed; + + public bool HideUnEditable; + + public static List IgnoreSongs = new List(new[] + { + QbSongClass1.AddKeyToDictionary("synctest"), + QbSongClass1.AddKeyToDictionary("mutetest"), + QbSongClass1.AddKeyToDictionary("synctestplaytoaudio"), + QbSongClass1.AddKeyToDictionary("synctestaudioandvisual"), + QbSongClass1.AddKeyToDictionary("tutorial_1b"), + QbSongClass1.AddKeyToDictionary("tutorial_1c"), + QbSongClass1.AddKeyToDictionary("tutorial_1d"), + QbSongClass1.AddKeyToDictionary("tutorial_1e"), + QbSongClass1.AddKeyToDictionary("tutorial_2a"), + QbSongClass1.AddKeyToDictionary("tutorial_2b"), + QbSongClass1.AddKeyToDictionary("tutorial_2c"), + QbSongClass1.AddKeyToDictionary("tutorial_3a"), + QbSongClass1.AddKeyToDictionary("tutorial_3b"), + QbSongClass1.AddKeyToDictionary("tutorial_3c"), + QbSongClass1.AddKeyToDictionary("tutorial_3d"), + QbSongClass1.AddKeyToDictionary("tutorial_4c"), + QbSongClass1.AddKeyToDictionary("tutorial_4e"), + QbSongClass1.AddKeyToDictionary("credits"), + QbSongClass1.AddKeyToDictionary("kingsandqueenscredits"), + QbSongClass1.AddKeyToDictionary("timrapptest") + }); + + public Gh3Songlist(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0) + { + FindEditableSongs(class3080, gh3Songlist0); + } + + public void Add(Gh3Song gh3Song0) + { + if (!ContainsKey(gh3Song0.GetSongName())) + { + base.Add(gh3Song0.GetSongName(), gh3Song0); + QbSongClass1.AddKeyToDictionary(gh3Song0.GetSongName()); + } + } + + public void method_0(Gh3Song gh3Song0, bool bool0) + { + if (!ContainsKey(gh3Song0.GetSongName())) + { + base.Add(gh3Song0.GetSongName(), gh3Song0); + QbSongClass1.AddKeyToDictionary(gh3Song0.GetSongName()); + return; + } + if (base[gh3Song0.GetSongName()].IsEditable() && bool0) + { + base[gh3Song0.GetSongName()].vmethod_0(gh3Song0); + } + } + + public List method_1(Gh3Song gh3Song0) + { + var list = new List(); + foreach (var current in Gh3SetlistList.Keys) + { + foreach (var current2 in Gh3SetlistList[current].method_0()) + { + if (current2.method_0().Contains(gh3Song0)) + { + current2.method_0().Remove(gh3Song0); + if (!list.Contains(current)) + { + list.Add(current); + } + } + } + } + Remove(gh3Song0.GetSongName()); + return list; + } + + public Gh3Song[] GetSongs() + { + var songList = new List(Values); + if (songList.Count != 0) + { + if (HideUsed) + { + foreach (var current in Gh3SetlistList.Values) + { + foreach (var current2 in current.method_0()) + { + foreach (var current3 in current2.method_0()) + { + if (songList.Contains(current3)) + { + songList.Remove(current3); + } + } + } + } + } + if (HideUnEditable) + { + foreach (var current4 in Values) + { + if (!current4.IsEditable()) + { + songList.Remove(current4); + } + } + } + foreach (var current5 in Values) + { + if (!current5.IsVisible()) + { + songList.Remove(current5); + } + } + } + return songList.ToArray(); + } + + public bool method_3(string string0) + { + return ContainsKey(string0); + } + + public Gh3Setlist method_4(string string0, StructurePointerRootNode class2660) + { + var gH3Setlist = new Gh3Setlist(class2660.method_7(), this); + gH3Setlist.method_3(string0); + Gh3SetlistList.Add(class2660.Int0, gH3Setlist); + return gH3Setlist; + } + + public GhLink method_5(string string0, StructurePointerRootNode class2660) + { + var gHLink = new GhLink(string0, class2660.method_7()); + Dictionary1.Add(class2660.Int0, gHLink); + return gHLink; + } + + public void method_6(StructureArrayNode class2920) + { + foreach (StructureHeaderNode @class in class2920.Nodes) + { + var num = @class.method_5(new TagStructureNode("tag")).method_10(); + if (Dictionary1.ContainsKey(num)) + { + Class2140.Add(@class.method_5(new UnicodeStructureNode("text")).method_8(), num); + } + } + } + + public StructureArrayNode method_7() + { + var @class = new StructureArrayNode(); + foreach (var current in Class2140.Keys) + { + @class.method_3(new StructureHeaderNode(new List + { + new TagStructureNode("tag", Class2140[current]), + new UnicodeStructureNode("text", current) + })); + } + return @class; + } + + public string method_8(int int0) + { + foreach (var current in Dictionary1.Keys) + { + if (Dictionary1[current].Setlist == int0) + { + return Class2140.method_0(current); + } + } + return "No Name"; + } + + public int method_9(string string0) + { + return Dictionary1[Class2140[string0]].Setlist; + } + + public int method_10(int int0) + { + return Dictionary1[int0].Setlist; + } + + public Gh3Setlist method_11(int int0) + { + return Gh3SetlistList[Dictionary1[int0].Setlist]; + } + + public void FindEditableSongs(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0) + { + var @class = class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7(); + var flag = class3080.method_5(new TagStructureNode("band")) != null; + Clear(); + foreach (StructurePointerNode class2 in @class.Nodes) + { + var gH3Song = flag ? new GhaSong(class2) : new Gh3Song(class2); + if (gh3Songlist0 != null) + { + gH3Song.SetEditable(!gh3Songlist0.method_3(gH3Song.GetSongName())); + } + gH3Song.SetVisible(!IgnoreSongs.Contains(class2.Int0)); + Add(gH3Song); + } + } + + public void method_13(ZzGenericNode1 class3080) + { + var list = new List(); + var list2 = new List(); + foreach (var current in Keys) + { + list.Add(QbSongClass1.AddKeyToDictionary(current)); + list2.Add(base[current].vmethod_5()); + } + ((TagArray) class3080.method_5(new ArrayPointerRootNode("gh3_songlist")).method_7()).method_12(list); + class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7().method_9(list2); + } + } +} \ No newline at end of file diff --git a/GuitarHero.Songlist/GHASong.cs b/GuitarHero.Songlist/GHASong.cs index f5501ad..f158214 100644 --- a/GuitarHero.Songlist/GHASong.cs +++ b/GuitarHero.Songlist/GHASong.cs @@ -7,94 +7,105 @@ namespace GuitarHero.Songlist { - [Serializable] - public class GhaSong : Gh3Song - { - public string CoveredBy = "Wavegroup"; + [Serializable] + public class GhaSong : Gh3Song + { + public string CoveredBy = "Wavegroup"; - public string Band = "default_band"; + public string Band = "default_band"; - public string SingerAnimPak = ""; + public string SingerAnimPak = ""; - public int ThinFretbar_8NoteParamsHighBpm; + public int ThinFretbar_8NoteParamsHighBpm; - public bool PerryMicStand; + public bool PerryMicStand; - public bool GuitaristChecksum; + public bool GuitaristChecksum; - public GhaSong() - { - } + public GhaSong() + { + } - public GhaSong(StructurePointerNode class3020) - { - vmethod_4(class3020); - } + public GhaSong(StructurePointerNode class3020) + { + vmethod_4(class3020); + } - public GhaSong(string string0) - { - Title = string0; - Name = string0; - Leaderboard = true; - Editable = true; - } + public GhaSong(string string0) + { + Title = string0; + Name = string0; + Leaderboard = true; + Editable = true; + } - public override void vmethod_0(INterface16 interface160) - { - base.vmethod_0(interface160); - if (interface160 is GhaSong) - { - var gHaSong = interface160 as GhaSong; - gHaSong.CoveredBy = CoveredBy; - gHaSong.Band = Band; - gHaSong.GuitaristChecksum = GuitaristChecksum; - gHaSong.SingerAnimPak = SingerAnimPak; - gHaSong.ThinFretbar_8NoteParamsHighBpm = ThinFretbar_8NoteParamsHighBpm; - gHaSong.PerryMicStand = PerryMicStand; - } - } + public override void vmethod_0(INterface16 interface160) + { + base.vmethod_0(interface160); + if (interface160 is GhaSong) + { + var gHaSong = interface160 as GhaSong; + gHaSong.CoveredBy = CoveredBy; + gHaSong.Band = Band; + gHaSong.GuitaristChecksum = GuitaristChecksum; + gHaSong.SingerAnimPak = SingerAnimPak; + gHaSong.ThinFretbar_8NoteParamsHighBpm = ThinFretbar_8NoteParamsHighBpm; + gHaSong.PerryMicStand = PerryMicStand; + } + } - public override void vmethod_4(StructurePointerNode class3020) - { - base.vmethod_4(class3020); - UnicodeStructureNode @class; - CoveredBy = (((@class = class3020.method_5(new UnicodeStructureNode("covered_by"))) != null) ? @class.method_8() : ""); - TagStructureNode class2; - Band = (((class2 = class3020.method_5(new TagStructureNode("band"))) != null) ? class2.method_8() : "default_band"); - GuitaristChecksum = ((class2 = class3020.method_5(new TagStructureNode("guitarist_checksum"))) != null && class2.method_8() == "aerosmith"); - AsciiStructureNode class3; - SingerAnimPak = (((class3 = class3020.method_5(new AsciiStructureNode("singer_anim_pak"))) != null) ? class3.method_8() : ""); - IntegerStructureNode class4; - ThinFretbar_8NoteParamsHighBpm = (((class4 = class3020.method_5(new IntegerStructureNode("thin_fretbar_8note_params_high_bpm"))) != null) ? class4.method_8() : 0); - PerryMicStand = ((class4 = class3020.method_5(new IntegerStructureNode("perry_mic_stand"))) != null && class4.method_8() == 1); - } + public override void vmethod_4(StructurePointerNode class3020) + { + base.vmethod_4(class3020); + UnicodeStructureNode @class; + CoveredBy = (((@class = class3020.method_5(new UnicodeStructureNode("covered_by"))) != null) + ? @class.method_8() + : ""); + TagStructureNode class2; + Band = (((class2 = class3020.method_5(new TagStructureNode("band"))) != null) + ? class2.method_8() + : "default_band"); + GuitaristChecksum = ((class2 = class3020.method_5(new TagStructureNode("guitarist_checksum"))) != null && + class2.method_8() == "aerosmith"); + AsciiStructureNode class3; + SingerAnimPak = (((class3 = class3020.method_5(new AsciiStructureNode("singer_anim_pak"))) != null) + ? class3.method_8() + : ""); + IntegerStructureNode class4; + ThinFretbar_8NoteParamsHighBpm = + (((class4 = class3020.method_5(new IntegerStructureNode("thin_fretbar_8note_params_high_bpm"))) != null) + ? class4.method_8() + : 0); + PerryMicStand = ((class4 = class3020.method_5(new IntegerStructureNode("perry_mic_stand"))) != null && + class4.method_8() == 1); + } - public override StructurePointerNode vmethod_5() - { - var @class = base.vmethod_5(); - var class2 = @class.method_8(); - if (!CoveredBy.Equals("")) - { - class2.method_3(new UnicodeStructureNode("covered_by", CoveredBy)); - } - class2.method_3(new TagStructureNode("band", Band)); - if (GuitaristChecksum) - { - class2.method_3(new TagStructureNode("guitarist_checksum", "aerosmith")); - } - if (!SingerAnimPak.Equals("")) - { - class2.method_3(new AsciiStructureNode("singer_anim_pak", SingerAnimPak)); - } - if (ThinFretbar_8NoteParamsHighBpm != 0) - { - class2.method_3(new IntegerStructureNode("band_playback_volume", ThinFretbar_8NoteParamsHighBpm)); - } - if (PerryMicStand) - { - class2.method_3(new IntegerStructureNode("band_playback_volume", 1)); - } - return @class; - } - } -} + public override StructurePointerNode vmethod_5() + { + var @class = base.vmethod_5(); + var class2 = @class.method_8(); + if (!CoveredBy.Equals("")) + { + class2.method_3(new UnicodeStructureNode("covered_by", CoveredBy)); + } + class2.method_3(new TagStructureNode("band", Band)); + if (GuitaristChecksum) + { + class2.method_3(new TagStructureNode("guitarist_checksum", "aerosmith")); + } + if (!SingerAnimPak.Equals("")) + { + class2.method_3(new AsciiStructureNode("singer_anim_pak", SingerAnimPak)); + } + if (ThinFretbar_8NoteParamsHighBpm != 0) + { + class2.method_3(new IntegerStructureNode("band_playback_volume", ThinFretbar_8NoteParamsHighBpm)); + } + if (PerryMicStand) + { + class2.method_3(new IntegerStructureNode("band_playback_volume", 1)); + } + return @class; + } + } +} \ No newline at end of file diff --git a/GuitarHero.Tier/GH3Tier.cs b/GuitarHero.Tier/GH3Tier.cs index 6f18ef4..597c5ea 100644 --- a/GuitarHero.Tier/GH3Tier.cs +++ b/GuitarHero.Tier/GH3Tier.cs @@ -8,160 +8,169 @@ namespace GuitarHero.Tier { - [Serializable] - public class Gh3Tier - { - public string Title = ""; - - public string CompletionMovie = ""; - - public string Level = "No Preset Stage"; - - public string SetlistIcon = "No Icon"; - - public List Songs = new List(); - - public int Defaultunlocked; - - public bool Encorep1; - - public bool Encorep2; - - public bool AerosmithEncoreP1; - - public bool Boss; - - public bool Nocash; - - public bool Unlockall; - - public Gh3Tier() - { - } - - public Gh3Tier(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) - { - method_2(class2860, gh3Songlist0); - } - - public List method_0() - { - return Songs; - } - - public void method_1(Gh3Tier gh3Tier0) - { - Title = gh3Tier0.Title; - CompletionMovie = gh3Tier0.CompletionMovie; - Level = gh3Tier0.Level; - SetlistIcon = gh3Tier0.SetlistIcon; - Songs = gh3Tier0.Songs; - Defaultunlocked = gh3Tier0.Defaultunlocked; - Encorep1 = gh3Tier0.Encorep1; - Encorep2 = gh3Tier0.Encorep2; - AerosmithEncoreP1 = gh3Tier0.AerosmithEncoreP1; - Boss = gh3Tier0.Boss; - Nocash = gh3Tier0.Nocash; - Unlockall = gh3Tier0.Unlockall; - } - - public override string ToString() - { - return Title ?? "[No Title]"; - } - - public void method_2(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) - { - UnicodeStructureNode @class; - Title = (((@class = class2860.method_5(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : ""); - AsciiStructureNode class2; - CompletionMovie = (((class2 = class2860.method_5(new AsciiStructureNode("completion_movie"))) != null) ? class2.method_8() : ""); - IntegerStructureNode class3; - Defaultunlocked = (((class3 = class2860.method_5(new IntegerStructureNode("defaultunlocked"))) != null) ? class3.method_8() : 0); - TagStructureNode class4; - Level = (((class4 = class2860.method_5(new TagStructureNode("level"))) != null) ? class4.method_8() : "No Preset Stage"); - SetlistIcon = (((class4 = class2860.method_5(new TagStructureNode("setlist_icon"))) != null) ? class4.method_8() : "No Icon"); - Encorep1 = (class2860.method_5(new TagStructureNode(0, "encorep1")) != null); - Encorep2 = (class2860.method_5(new TagStructureNode(0, "encorep2")) != null); - AerosmithEncoreP1 = (class2860.method_5(new TagStructureNode(0, "aerosmith_encore_p1")) != null); - Boss = (class2860.method_5(new TagStructureNode(0, "boss")) != null); - Nocash = (class2860.method_5(new TagStructureNode(0, "nocash")) != null); - Unlockall = (class2860.method_5(new TagStructureNode(0, "unlockall")) != null); - var class5 = new ArrayPointerNode("songs"); - if (class2860.method_6(ref class5) && !(class5.method_8() is FloatListNode)) - { - foreach (var current in class5.method_8().method_8()) - { - if (gh3Songlist0.ContainsKey(current)) - { - Songs.Add(gh3Songlist0[current]); - } - else - { - Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist."); - } - } - } - } - - public StructureHeaderNode method_3() - { - var @class = new StructureHeaderNode(); - @class.method_3(new UnicodeStructureNode("title", Title)); - if (Songs.Count == 0) - { - @class.method_3(new ArrayPointerNode("songs", new FloatListNode(true))); - } - else - { - var list = new List(); - foreach (var current in Songs) - { - list.Add(QbSongClass1.AddKeyToDictionary(current.Name)); - } - @class.method_3(new ArrayPointerNode("songs", new TagArray(list))); - } - if (Boss) - { - @class.method_3(new TagStructureNode(0, "boss")); - } - if (Encorep1) - { - @class.method_3(new TagStructureNode(0, "encorep1")); - } - if (Encorep2) - { - @class.method_3(new TagStructureNode(0, "encorep2")); - } - if (AerosmithEncoreP1) - { - @class.method_3(new TagStructureNode(0, "aerosmith_encore_p1")); - } - if (Level != null && Level != "No Preset Stage") - { - @class.method_3(new TagStructureNode("level", Level)); - } - if (Defaultunlocked != 0) - { - @class.method_3(new IntegerStructureNode("defaultunlocked", Defaultunlocked)); - } - if (!CompletionMovie.Equals("")) - { - @class.method_3(new AsciiStructureNode("completion_movie", CompletionMovie)); - } - if (!SetlistIcon.Equals("No Icon")) - { - @class.method_3(new TagStructureNode("setlist_icon", SetlistIcon)); - } - if (Nocash) - { - @class.method_3(new TagStructureNode(0, "nocash")); - } - if (Unlockall) - { - @class.method_3(new TagStructureNode(0, "unlockall")); - } - return @class; - } - } -} + [Serializable] + public class Gh3Tier + { + public string Title = ""; + + public string CompletionMovie = ""; + + public string Level = "No Preset Stage"; + + public string SetlistIcon = "No Icon"; + + public List Songs = new List(); + + public int Defaultunlocked; + + public bool Encorep1; + + public bool Encorep2; + + public bool AerosmithEncoreP1; + + public bool Boss; + + public bool Nocash; + + public bool Unlockall; + + public Gh3Tier() + { + } + + public Gh3Tier(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) + { + method_2(class2860, gh3Songlist0); + } + + public List method_0() + { + return Songs; + } + + public void method_1(Gh3Tier gh3Tier0) + { + Title = gh3Tier0.Title; + CompletionMovie = gh3Tier0.CompletionMovie; + Level = gh3Tier0.Level; + SetlistIcon = gh3Tier0.SetlistIcon; + Songs = gh3Tier0.Songs; + Defaultunlocked = gh3Tier0.Defaultunlocked; + Encorep1 = gh3Tier0.Encorep1; + Encorep2 = gh3Tier0.Encorep2; + AerosmithEncoreP1 = gh3Tier0.AerosmithEncoreP1; + Boss = gh3Tier0.Boss; + Nocash = gh3Tier0.Nocash; + Unlockall = gh3Tier0.Unlockall; + } + + public override string ToString() + { + return Title ?? "[No Title]"; + } + + public void method_2(StructureHeaderNode class2860, Gh3Songlist gh3Songlist0) + { + UnicodeStructureNode @class; + Title = + (((@class = class2860.method_5(new UnicodeStructureNode("title"))) != null) ? @class.method_8() : ""); + AsciiStructureNode class2; + CompletionMovie = (((class2 = class2860.method_5(new AsciiStructureNode("completion_movie"))) != null) + ? class2.method_8() + : ""); + IntegerStructureNode class3; + Defaultunlocked = (((class3 = class2860.method_5(new IntegerStructureNode("defaultunlocked"))) != null) + ? class3.method_8() + : 0); + TagStructureNode class4; + Level = (((class4 = class2860.method_5(new TagStructureNode("level"))) != null) + ? class4.method_8() + : "No Preset Stage"); + SetlistIcon = (((class4 = class2860.method_5(new TagStructureNode("setlist_icon"))) != null) + ? class4.method_8() + : "No Icon"); + Encorep1 = (class2860.method_5(new TagStructureNode(0, "encorep1")) != null); + Encorep2 = (class2860.method_5(new TagStructureNode(0, "encorep2")) != null); + AerosmithEncoreP1 = (class2860.method_5(new TagStructureNode(0, "aerosmith_encore_p1")) != null); + Boss = (class2860.method_5(new TagStructureNode(0, "boss")) != null); + Nocash = (class2860.method_5(new TagStructureNode(0, "nocash")) != null); + Unlockall = (class2860.method_5(new TagStructureNode(0, "unlockall")) != null); + var class5 = new ArrayPointerNode("songs"); + if (class2860.method_6(ref class5) && !(class5.method_8() is FloatListNode)) + { + foreach (var current in class5.method_8().method_8()) + { + if (gh3Songlist0.ContainsKey(current)) + { + Songs.Add(gh3Songlist0[current]); + } + else + { + Console.WriteLine("Song (" + current + ") skipped: does not exist in the songlist."); + } + } + } + } + + public StructureHeaderNode method_3() + { + var @class = new StructureHeaderNode(); + @class.method_3(new UnicodeStructureNode("title", Title)); + if (Songs.Count == 0) + { + @class.method_3(new ArrayPointerNode("songs", new FloatListNode(true))); + } + else + { + var list = new List(); + foreach (var current in Songs) + { + list.Add(QbSongClass1.AddKeyToDictionary(current.Name)); + } + @class.method_3(new ArrayPointerNode("songs", new TagArray(list))); + } + if (Boss) + { + @class.method_3(new TagStructureNode(0, "boss")); + } + if (Encorep1) + { + @class.method_3(new TagStructureNode(0, "encorep1")); + } + if (Encorep2) + { + @class.method_3(new TagStructureNode(0, "encorep2")); + } + if (AerosmithEncoreP1) + { + @class.method_3(new TagStructureNode(0, "aerosmith_encore_p1")); + } + if (Level != null && Level != "No Preset Stage") + { + @class.method_3(new TagStructureNode("level", Level)); + } + if (Defaultunlocked != 0) + { + @class.method_3(new IntegerStructureNode("defaultunlocked", Defaultunlocked)); + } + if (!CompletionMovie.Equals("")) + { + @class.method_3(new AsciiStructureNode("completion_movie", CompletionMovie)); + } + if (!SetlistIcon.Equals("No Icon")) + { + @class.method_3(new TagStructureNode("setlist_icon", SetlistIcon)); + } + if (Nocash) + { + @class.method_3(new TagStructureNode(0, "nocash")); + } + if (Unlockall) + { + @class.method_3(new TagStructureNode(0, "unlockall")); + } + return @class; + } + } +} \ No newline at end of file diff --git a/GuitarHero/GHLink.cs b/GuitarHero/GHLink.cs index 03f0c17..6c3d609 100644 --- a/GuitarHero/GHLink.cs +++ b/GuitarHero/GHLink.cs @@ -4,48 +4,49 @@ namespace GuitarHero { - [Serializable] - public class GhLink - { - public string Path; - - public int Setlist; - - public int Progression; - - public GhLink(int int0) : this(int0, -2140143824) - { - } - - public GhLink(int int0, int int1) : this("scripts\\guitar\\custom_menu\\guitar_custom_progression.qb", int0, int1) - { - } - - public GhLink(string string0, int int0, int int1) - { - Path = string0; - Setlist = int0; - Progression = int1; - } - - public GhLink(string string0, StructureHeaderNode class2860) - { - Path = string0; - method_0(class2860); - } - - public void method_0(StructureHeaderNode class2860) - { - Setlist = class2860.method_5(new TagStructureNode("tier_global")).method_10(); - Progression = class2860.method_5(new TagStructureNode("progression_global")).method_10(); - } - - public StructureHeaderNode method_1() - { - var @class = new StructureHeaderNode(); - @class.method_3(new TagStructureNode("tier_global", Setlist)); - @class.method_3(new TagStructureNode("progression_global", Progression)); - return @class; - } - } -} + [Serializable] + public class GhLink + { + public string Path; + + public int Setlist; + + public int Progression; + + public GhLink(int int0) : this(int0, -2140143824) + { + } + + public GhLink(int int0, int int1) : this("scripts\\guitar\\custom_menu\\guitar_custom_progression.qb", int0, + int1) + { + } + + public GhLink(string string0, int int0, int int1) + { + Path = string0; + Setlist = int0; + Progression = int1; + } + + public GhLink(string string0, StructureHeaderNode class2860) + { + Path = string0; + method_0(class2860); + } + + public void method_0(StructureHeaderNode class2860) + { + Setlist = class2860.method_5(new TagStructureNode("tier_global")).method_10(); + Progression = class2860.method_5(new TagStructureNode("progression_global")).method_10(); + } + + public StructureHeaderNode method_1() + { + var @class = new StructureHeaderNode(); + @class.method_3(new TagStructureNode("tier_global", Setlist)); + @class.method_3(new TagStructureNode("progression_global", Progression)); + return @class; + } + } +} \ No newline at end of file diff --git a/HarmonixTools.Properties/Settings.cs b/HarmonixTools.Properties/Settings.cs index 09d34e2..ca43f01 100644 --- a/HarmonixTools.Properties/Settings.cs +++ b/HarmonixTools.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace HarmonixTools.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/MidiConverter/Midi2Chart.cs b/MidiConverter/Midi2Chart.cs index f9f9942..99611f8 100644 --- a/MidiConverter/Midi2Chart.cs +++ b/MidiConverter/Midi2Chart.cs @@ -8,24 +8,24 @@ namespace MidiConverter { class Midi2Chart { - public static QbcParser LoadMidiSong(string fileName, bool forceRb3) { QbcParser qbc = null; Song song = null; - try { + try + { song = MidReader.ReadMidi(fileName); var chartFile = ChartWriter.writeChart(song, "", false, forceRb3).ToString(); var chartParser = new ChartParser(chartFile, false); qbc = chartParser.ConvertToQbc(); } - catch(Exception e) + catch (Exception e) { - MessageBox.Show("Error using the new MIDI importer.\nReverting to original GHTCP method. \n\n" + e, "MIDI Error", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show("Error using the new MIDI importer.\nReverting to original GHTCP method. \n\n" + e, + "MIDI Error", MessageBoxButtons.OK, MessageBoxIcon.Information); qbc = new MidiParser(fileName).LoadMidi().ConvertToQbc(); } return qbc; } - } -} +} \ No newline at end of file diff --git a/NeversoftTools.Properties/Settings.cs b/NeversoftTools.Properties/Settings.cs index a8f1ab4..808daea 100644 --- a/NeversoftTools.Properties/Settings.cs +++ b/NeversoftTools.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace NeversoftTools.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/NeversoftTools.Texture.DDS/IMGPixelFormat.cs b/NeversoftTools.Texture.DDS/IMGPixelFormat.cs index 06ffd2f..6d738f5 100644 --- a/NeversoftTools.Texture.DDS/IMGPixelFormat.cs +++ b/NeversoftTools.Texture.DDS/IMGPixelFormat.cs @@ -1,26 +1,26 @@ namespace NeversoftTools.Texture.DDS { - public enum ImgPixelFormat - { - Other, - Bgra32, - Bgra64, - Bgr24, - Bgr48, - Bgr16, - Dxt1, - Dxt3, - Dxt5, - Rgba64Float, - Rgba128Float, - Rgb48Float, - Rgb96Float, - Luminance8, - Alpha8, - LuminanceAlpha32Float, - LuminanceAlpha64Float, - Luminance16Float, - Luminance32Float, - LuminanceAlpha32 - } -} + public enum ImgPixelFormat + { + Other, + Bgra32, + Bgra64, + Bgr24, + Bgr48, + Bgr16, + Dxt1, + Dxt3, + Dxt5, + Rgba64Float, + Rgba128Float, + Rgb48Float, + Rgb96Float, + Luminance8, + Alpha8, + LuminanceAlpha32Float, + LuminanceAlpha64Float, + Luminance16Float, + Luminance32Float, + LuminanceAlpha32 + } +} \ No newline at end of file diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 4364c0c..f898354 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -5,7 +5,7 @@ using System.Security; using System.Security.Permissions; -[assembly: AssemblyVersion("2.0.4.7")]//Old Version 2.0.4.6 +[assembly: AssemblyVersion("2.0.4.7")] //Old Version 2.0.4.6 [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyCompany("Sigma Inc. (Plus Version by No1mann and Exilelord. Updated by fallk)")] [assembly: AssemblyCopyright("Copyright © Sigma Inc. Production 2008-2010")] @@ -16,4 +16,4 @@ [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Guid("2ea4daa3-fbad-426d-b260-1bfc38a7c320")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] -[module: UnverifiableCode] +[module: UnverifiableCode] \ No newline at end of file diff --git a/SharpAudio.ADI.DSound.Properties/Settings.cs b/SharpAudio.ADI.DSound.Properties/Settings.cs index b64bbcc..1838be5 100644 --- a/SharpAudio.ADI.DSound.Properties/Settings.cs +++ b/SharpAudio.ADI.DSound.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ADI.DSound.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ADI.OpenAL.Properties/Settings.cs b/SharpAudio.ADI.OpenAL.Properties/Settings.cs index 8998f0b..7c9cb80 100644 --- a/SharpAudio.ADI.OpenAL.Properties/Settings.cs +++ b/SharpAudio.ADI.OpenAL.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ADI.OpenAL.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ADI.OpenAL/AlcError.cs b/SharpAudio.ADI.OpenAL/AlcError.cs index 2ffedfc..a41aa63 100644 --- a/SharpAudio.ADI.OpenAL/AlcError.cs +++ b/SharpAudio.ADI.OpenAL/AlcError.cs @@ -1,12 +1,12 @@ namespace SharpAudio.ADI.OpenAL { - public enum AlcError - { - NoError, - InvalidDevice = 40961, - InvalidContext, - InvalidEnum, - InvalidValue, - OutOfMemory - } -} + public enum AlcError + { + NoError, + InvalidDevice = 40961, + InvalidContext, + InvalidEnum, + InvalidValue, + OutOfMemory + } +} \ No newline at end of file diff --git a/SharpAudio.ADI.OpenAL/Vector3.cs b/SharpAudio.ADI.OpenAL/Vector3.cs index 53837a5..17e7948 100644 --- a/SharpAudio.ADI.OpenAL/Vector3.cs +++ b/SharpAudio.ADI.OpenAL/Vector3.cs @@ -3,50 +3,50 @@ namespace SharpAudio.ADI.OpenAL { - [Serializable] - public struct Vector3 : IEquatable - { - public float X; + [Serializable] + public struct Vector3 : IEquatable + { + public float X; - public float Y; + public float Y; - public float Z; + public float Z; - public static readonly Vector3 UnitX = new Vector3(1f, 0f, 0f); + public static readonly Vector3 UnitX = new Vector3(1f, 0f, 0f); - public static readonly Vector3 UnitY = new Vector3(0f, 1f, 0f); + public static readonly Vector3 UnitY = new Vector3(0f, 1f, 0f); - public static readonly Vector3 UnitZ = new Vector3(0f, 0f, 1f); + public static readonly Vector3 UnitZ = new Vector3(0f, 0f, 1f); - public static readonly Vector3 Zero = new Vector3(0f, 0f, 0f); + public static readonly Vector3 Zero = new Vector3(0f, 0f, 0f); - public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector3)); + public static readonly int SizeInBytes = Marshal.SizeOf(default(Vector3)); - public Vector3(float float0, float float1, float float2) - { - X = float0; - Y = float1; - Z = float2; - } + public Vector3(float float0, float float1, float float2) + { + X = float0; + Y = float1; + Z = float2; + } - public override string ToString() - { - return string.Format("({0}, {1}, {2})", X, Y, Z); - } + public override string ToString() + { + return string.Format("({0}, {1}, {2})", X, Y, Z); + } - public override int GetHashCode() - { - return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode(); - } + public override int GetHashCode() + { + return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode(); + } - public override bool Equals(object obj) - { - return obj is Vector3 && Equals((Vector3)obj); - } + public override bool Equals(object obj) + { + return obj is Vector3 && Equals((Vector3) obj); + } - public bool Equals(Vector3 other) - { - return X == other.X && Y == other.Y && Z == other.Z; - } - } -} + public bool Equals(Vector3 other) + { + return X == other.X && Y == other.Y && Z == other.Z; + } + } +} \ No newline at end of file diff --git a/SharpAudio.ADI.WinMM.Properties/Settings.cs b/SharpAudio.ADI.WinMM.Properties/Settings.cs index 8608f1b..6fa691d 100644 --- a/SharpAudio.ADI.WinMM.Properties/Settings.cs +++ b/SharpAudio.ADI.WinMM.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ADI.WinMM.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Ac3.Decoding/AC3Exception.cs b/SharpAudio.ASC.Ac3.Decoding/AC3Exception.cs index a317022..cd46c77 100644 --- a/SharpAudio.ASC.Ac3.Decoding/AC3Exception.cs +++ b/SharpAudio.ASC.Ac3.Decoding/AC3Exception.cs @@ -3,11 +3,11 @@ namespace SharpAudio.ASC.Ac3.Decoding { - [Serializable] - public class Ac3Exception : FfMpegException - { - public Ac3Exception(string string0) : base(string0) - { - } - } -} + [Serializable] + public class Ac3Exception : FfMpegException + { + public Ac3Exception(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Ac3.Properties/Settings.cs b/SharpAudio.ASC.Ac3.Properties/Settings.cs index c970e0c..6c15674 100644 --- a/SharpAudio.ASC.Ac3.Properties/Settings.cs +++ b/SharpAudio.ASC.Ac3.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Ac3.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Flac.LibFlac.frame/BadHeaderException.cs b/SharpAudio.ASC.Flac.LibFlac.frame/BadHeaderException.cs index 6f00f6d..95473d1 100644 --- a/SharpAudio.ASC.Flac.LibFlac.frame/BadHeaderException.cs +++ b/SharpAudio.ASC.Flac.LibFlac.frame/BadHeaderException.cs @@ -2,15 +2,15 @@ namespace SharpAudio.ASC.Flac.LibFlac.frame { - [Serializable] - public class BadHeaderException : Exception - { - public BadHeaderException() - { - } + [Serializable] + public class BadHeaderException : Exception + { + public BadHeaderException() + { + } - public BadHeaderException(string string0) : base(string0) - { - } - } -} + public BadHeaderException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Flac.LibFlac/FrameDecodeException.cs b/SharpAudio.ASC.Flac.LibFlac/FrameDecodeException.cs index 5427d43..6136563 100644 --- a/SharpAudio.ASC.Flac.LibFlac/FrameDecodeException.cs +++ b/SharpAudio.ASC.Flac.LibFlac/FrameDecodeException.cs @@ -2,15 +2,15 @@ namespace SharpAudio.ASC.Flac.LibFlac { - [Serializable] - public class FrameDecodeException : Exception - { - public FrameDecodeException() - { - } + [Serializable] + public class FrameDecodeException : Exception + { + public FrameDecodeException() + { + } - public FrameDecodeException(string string0) : base(string0) - { - } - } -} + public FrameDecodeException(string string0) : base(string0) + { + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Flac.Properties/Settings.cs b/SharpAudio.ASC.Flac.Properties/Settings.cs index da4244e..3c3cef8 100644 --- a/SharpAudio.ASC.Flac.Properties/Settings.cs +++ b/SharpAudio.ASC.Flac.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Flac.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Fsb.Properties/Settings.cs b/SharpAudio.ASC.Fsb.Properties/Settings.cs index d584fc2..5b36f6d 100644 --- a/SharpAudio.ASC.Fsb.Properties/Settings.cs +++ b/SharpAudio.ASC.Fsb.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Fsb.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/BitstreamError.cs b/SharpAudio.ASC.Mp3.Decoding/BitstreamError.cs index 4a21965..6a45e0a 100644 --- a/SharpAudio.ASC.Mp3.Decoding/BitstreamError.cs +++ b/SharpAudio.ASC.Mp3.Decoding/BitstreamError.cs @@ -1,13 +1,13 @@ namespace SharpAudio.ASC.Mp3.Decoding { - public enum BitstreamError - { - UnknownError = 256, - UnknownSampleRate, - StreamError, - UnexpectedEof, - StreamEof, - InvalidFrame, - BitStreamLast = 511 - } -} + public enum BitstreamError + { + UnknownError = 256, + UnknownSampleRate, + StreamError, + UnexpectedEof, + StreamEof, + InvalidFrame, + BitStreamLast = 511 + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/BitstreamException.cs b/SharpAudio.ASC.Mp3.Decoding/BitstreamException.cs index 64584c4..b68e1e7 100644 --- a/SharpAudio.ASC.Mp3.Decoding/BitstreamException.cs +++ b/SharpAudio.ASC.Mp3.Decoding/BitstreamException.cs @@ -2,28 +2,29 @@ namespace SharpAudio.ASC.Mp3.Decoding { - [Serializable] - public class BitstreamException : Exception - { - public readonly BitstreamError Error; + [Serializable] + public class BitstreamException : Exception + { + public readonly BitstreamError Error; - public BitstreamException(string string0, Exception exception0) : base(string0, exception0) - { - Error = BitstreamError.UnknownError; - } + public BitstreamException(string string0, Exception exception0) : base(string0, exception0) + { + Error = BitstreamError.UnknownError; + } - public BitstreamException(BitstreamError bitstreamError0) : this(bitstreamError0, null) - { - } + public BitstreamException(BitstreamError bitstreamError0) : this(bitstreamError0, null) + { + } - public BitstreamException(BitstreamError bitstreamError0, Exception exception0) : this(smethod_0(bitstreamError0), exception0) - { - Error = bitstreamError0; - } + public BitstreamException(BitstreamError bitstreamError0, Exception exception0) : this( + smethod_0(bitstreamError0), exception0) + { + Error = bitstreamError0; + } - public static string smethod_0(BitstreamError bitstreamError0) - { - return "Bitstream error: " + bitstreamError0; - } - } -} + public static string smethod_0(BitstreamError bitstreamError0) + { + return "Bitstream error: " + bitstreamError0; + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/CircularByteBuffer.cs b/SharpAudio.ASC.Mp3.Decoding/CircularByteBuffer.cs index 5a8c8c7..0333e8a 100644 --- a/SharpAudio.ASC.Mp3.Decoding/CircularByteBuffer.cs +++ b/SharpAudio.ASC.Mp3.Decoding/CircularByteBuffer.cs @@ -2,89 +2,89 @@ namespace SharpAudio.ASC.Mp3.Decoding { - [Serializable] - public class CircularByteBuffer - { - private readonly byte[] _dataArray; + [Serializable] + public class CircularByteBuffer + { + private readonly byte[] _dataArray; - private readonly int _length = 1; + private readonly int _length = 1; - private int _index; + private int _index; - private int _numValid; + private int _numValid; - private readonly object _lockObj = new object(); + private readonly object _lockObj = new object(); - public byte this[int int0] - { - get => method_1(-1 - int0); - set => method_2(-1 - int0, value); - } + public byte this[int int0] + { + get => method_1(-1 - int0); + set => method_2(-1 - int0, value); + } - public CircularByteBuffer(int int0) - { - _dataArray = new byte[int0]; - _length = int0; - } + public CircularByteBuffer(int int0) + { + _dataArray = new byte[int0]; + _length = int0; + } - public byte method_0(byte byte0) - { - byte result; - lock (_lockObj) - { - result = method_1(_length); - _dataArray[_index] = byte0; - _numValid++; - if (_numValid > _length) - { - _numValid = _length; - } - _index++; - _index %= _length; - } - return result; - } + public byte method_0(byte byte0) + { + byte result; + lock (_lockObj) + { + result = method_1(_length); + _dataArray[_index] = byte0; + _numValid++; + if (_numValid > _length) + { + _numValid = _length; + } + _index++; + _index %= _length; + } + return result; + } - private byte method_1(int int0) - { - int i; - for (i = _index + int0; i >= _length; i -= _length) - { - } - while (i < 0) - { - i += _length; - } - return _dataArray[i]; - } + private byte method_1(int int0) + { + int i; + for (i = _index + int0; i >= _length; i -= _length) + { + } + while (i < 0) + { + i += _length; + } + return _dataArray[i]; + } - private void method_2(int int0, byte byte0) - { - int i; - for (i = _index + int0; i > _length; i -= _length) - { - } - while (i < 0) - { - i += _length; - } - _dataArray[i] = byte0; - } + private void method_2(int int0, byte byte0) + { + int i; + for (i = _index + int0; i > _length; i -= _length) + { + } + while (i < 0) + { + i += _length; + } + _dataArray[i] = byte0; + } - public int method_3() - { - return _numValid; - } + public int method_3() + { + return _numValid; + } - public override string ToString() - { - var text = ""; - for (var i = 0; i < _dataArray.Length; i++) - { - text = text + _dataArray[i] + " "; - } - object obj = text; - return string.Concat(obj, "\n index = ", _index, " numValid = ", method_3()); - } - } -} + public override string ToString() + { + var text = ""; + for (var i = 0; i < _dataArray.Length; i++) + { + text = text + _dataArray[i] + " "; + } + object obj = text; + return string.Concat(obj, "\n index = ", _index, " numValid = ", method_3()); + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/DecoderError.cs b/SharpAudio.ASC.Mp3.Decoding/DecoderError.cs index 8ca8b2e..295fdfc 100644 --- a/SharpAudio.ASC.Mp3.Decoding/DecoderError.cs +++ b/SharpAudio.ASC.Mp3.Decoding/DecoderError.cs @@ -1,9 +1,9 @@ namespace SharpAudio.ASC.Mp3.Decoding { - public enum DecoderError - { - UnknownError = 512, - UnsupportedLayer, - IllegalSubbandAllocation - } -} + public enum DecoderError + { + UnknownError = 512, + UnsupportedLayer, + IllegalSubbandAllocation + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/DecoderException.cs b/SharpAudio.ASC.Mp3.Decoding/DecoderException.cs index 4090c9f..495a6a3 100644 --- a/SharpAudio.ASC.Mp3.Decoding/DecoderException.cs +++ b/SharpAudio.ASC.Mp3.Decoding/DecoderException.cs @@ -2,24 +2,25 @@ namespace SharpAudio.ASC.Mp3.Decoding { - [Serializable] - public class DecoderException : Mp3Exception - { - public readonly DecoderError Error; + [Serializable] + public class DecoderException : Mp3Exception + { + public readonly DecoderError Error; - public DecoderException(string string0, Exception exception0) : base(string0, exception0) - { - Error = DecoderError.UnknownError; - } + public DecoderException(string string0, Exception exception0) : base(string0, exception0) + { + Error = DecoderError.UnknownError; + } - public DecoderException(DecoderError decoderError0, Exception exception0) : this(smethod_0(decoderError0), exception0) - { - Error = decoderError0; - } + public DecoderException(DecoderError decoderError0, Exception exception0) : this(smethod_0(decoderError0), + exception0) + { + Error = decoderError0; + } - public static string smethod_0(DecoderError decoderError0) - { - return "Decoder error: " + decoderError0; - } - } -} + public static string smethod_0(DecoderError decoderError0) + { + return "Decoder error: " + decoderError0; + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Decoding/Mp3Exception.cs b/SharpAudio.ASC.Mp3.Decoding/Mp3Exception.cs index 4ee7f8f..ec8c3dc 100644 --- a/SharpAudio.ASC.Mp3.Decoding/Mp3Exception.cs +++ b/SharpAudio.ASC.Mp3.Decoding/Mp3Exception.cs @@ -2,22 +2,22 @@ namespace SharpAudio.ASC.Mp3.Decoding { - [Serializable] - public class Mp3Exception : Exception - { - private readonly Exception _exception; + [Serializable] + public class Mp3Exception : Exception + { + private readonly Exception _exception; - public Mp3Exception() - { - } + public Mp3Exception() + { + } - public Mp3Exception(string string0) : base(string0) - { - } + public Mp3Exception(string string0) : base(string0) + { + } - public Mp3Exception(string string0, Exception exception0) : base(string0) - { - _exception = exception0; - } - } -} + public Mp3Exception(string string0, Exception exception0) : base(string0) + { + _exception = exception0; + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/ACC.cs b/SharpAudio.ASC.Mp3.Lame/ACC.cs index 12b91c6..a5b86f8 100644 --- a/SharpAudio.ASC.Mp3.Lame/ACC.cs +++ b/SharpAudio.ASC.Mp3.Lame/ACC.cs @@ -2,15 +2,15 @@ namespace SharpAudio.ASC.Mp3.Lame { - [Serializable] - public struct Acc - { - public uint DwSampleRate; + [Serializable] + public struct Acc + { + public uint DwSampleRate; - public byte ByMode; + public byte ByMode; - public ushort WBitrate; + public ushort WBitrate; - public byte ByEncodingMethod; - } -} + public byte ByEncodingMethod; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/BE_CONFIG.cs b/SharpAudio.ASC.Mp3.Lame/BE_CONFIG.cs index 5f49d35..a0122a3 100644 --- a/SharpAudio.ASC.Mp3.Lame/BE_CONFIG.cs +++ b/SharpAudio.ASC.Mp3.Lame/BE_CONFIG.cs @@ -3,28 +3,28 @@ namespace SharpAudio.ASC.Mp3.Lame { - [Serializable] - [StructLayout(LayoutKind.Sequential)] - public class BeConfig - { - public const uint BeConfigMp3 = 0u; + [Serializable] + [StructLayout(LayoutKind.Sequential)] + public class BeConfig + { + public const uint BeConfigMp3 = 0u; - public const uint BeConfigLame = 256u; + public const uint BeConfigLame = 256u; - public uint dwConfig; + public uint dwConfig; - public Format format; + public Format format; - public BeConfig(WaveFormat waveFormat0, uint uint0, uint uint1) - { - dwConfig = 256u; - format = new Format(waveFormat0, uint0, uint1); - } + public BeConfig(WaveFormat waveFormat0, uint uint0, uint uint1) + { + dwConfig = 256u; + format = new Format(waveFormat0, uint0, uint1); + } - public BeConfig(WaveFormat waveFormat0, uint uint0) - { - dwConfig = 256u; - format = new Format(waveFormat0, uint0); - } - } -} + public BeConfig(WaveFormat waveFormat0, uint uint0) + { + dwConfig = 256u; + format = new Format(waveFormat0, uint0); + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/Format.cs b/SharpAudio.ASC.Mp3.Lame/Format.cs index e81a358..b1b7e1e 100644 --- a/SharpAudio.ASC.Mp3.Lame/Format.cs +++ b/SharpAudio.ASC.Mp3.Lame/Format.cs @@ -3,27 +3,24 @@ namespace SharpAudio.ASC.Mp3.Lame { - [Serializable] - [StructLayout(LayoutKind.Explicit)] - public class Format - { - [FieldOffset(0)] - public MP3 mp3; + [Serializable] + [StructLayout(LayoutKind.Explicit)] + public class Format + { + [FieldOffset(0)] public MP3 mp3; - [FieldOffset(0)] - public Lhv1 lhv1; + [FieldOffset(0)] public Lhv1 lhv1; - [FieldOffset(0)] - public Acc acc; + [FieldOffset(0)] public Acc acc; - public Format(WaveFormat waveFormat0, uint uint0) - { - lhv1 = new Lhv1(waveFormat0, uint0); - } + public Format(WaveFormat waveFormat0, uint uint0) + { + lhv1 = new Lhv1(waveFormat0, uint0); + } - public Format(WaveFormat waveFormat0, uint uint0, uint uint1) - { - lhv1 = new Lhv1(waveFormat0, uint0, uint1); - } - } -} + public Format(WaveFormat waveFormat0, uint uint0, uint uint1) + { + lhv1 = new Lhv1(waveFormat0, uint0, uint1); + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/LHV1.cs b/SharpAudio.ASC.Mp3.Lame/LHV1.cs index f70e549..8fd244b 100644 --- a/SharpAudio.ASC.Mp3.Lame/LHV1.cs +++ b/SharpAudio.ASC.Mp3.Lame/LHV1.cs @@ -3,213 +3,213 @@ namespace SharpAudio.ASC.Mp3.Lame { - [Serializable] - [StructLayout(LayoutKind.Sequential, Size = 327)] - public struct Lhv1 - { - public const uint Mpeg1 = 1u; + [Serializable] + [StructLayout(LayoutKind.Sequential, Size = 327)] + public struct Lhv1 + { + public const uint Mpeg1 = 1u; - public const uint Mpeg2 = 0u; - - public uint dwStructVersion; - - public uint dwStructSize; - - public uint dwSampleRate; - - public uint dwReSampleRate; - - public MpegMode nMode; - - public uint dwBitrate; - - public uint dwMaxBitrate; - - public LameQualityPreset nPreset; - - public uint dwMpegVersion; - - public uint dwPsyModel; - - public uint dwEmphasis; - - public int bPrivate; - - public int bCRC; - - public int bCopyright; - - public int bOriginal; - - public int bWriteVBRHeader; - - public int bEnableVBR; - - public int nVBRQuality; - - public uint dwVbrAbr_bps; - - public VbrMethod nVbrMethod; - - public int bNoRes; - - public int bStrictIso; - - public ushort nQuality; - - public Lhv1(WaveFormat waveFormat0, uint uint0) - { - this = new Lhv1(waveFormat0, uint0, 0u); - } - - public Lhv1(WaveFormat waveFormat0, uint uint0, uint uint1) - { - if (waveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm) - { - throw new ArgumentOutOfRangeException("format", "Only PCM format supported"); - } - if (waveFormat0.short_2 != 16) - { - throw new ArgumentOutOfRangeException("format", "Only 16 bits samples supported"); - } - dwStructVersion = 1u; - dwStructSize = (uint)Marshal.SizeOf(typeof(BeConfig)); - var num = (uint)((uint1 == 0u) ? waveFormat0.int_0 : ((int)uint1)); - if (num <= 24000u) - { - if (num == 16000u || num == 22050u || num == 24000u) - { - dwMpegVersion = 0u; - goto IL_B6; - } - } - else if (num == 32000u || num == 44100u || num == 48000u) - { - dwMpegVersion = 1u; - goto IL_B6; - } - throw new ArgumentOutOfRangeException("format", "Unsupported sample rate"); - IL_B6: - dwSampleRate = (uint)waveFormat0.int_0; - dwReSampleRate = uint1; - switch (waveFormat0.short_0) - { - case 1: - nMode = MpegMode.Mono; - break; - case 2: - nMode = MpegMode.Stereo; - break; - default: - throw new ArgumentOutOfRangeException("format", "Invalid number of channels"); - } - if (uint0 <= 80u) - { - if (uint0 <= 32u) - { - if (uint0 <= 16u) - { - if (uint0 != 8u && uint0 != 16u) - { - goto IL_1E5; - } - } - else if (uint0 != 24u) - { - if (uint0 != 32u) - { - goto IL_1E5; - } - goto IL_20E; - } - } - else if (uint0 <= 48u) - { - if (uint0 != 40u && uint0 != 48u) - { - goto IL_1E5; - } - goto IL_20E; - } - else - { - if (uint0 != 56u && uint0 != 64u && uint0 != 80u) - { - goto IL_1E5; - } - goto IL_20E; - } - } - else if (uint0 <= 144u) - { - if (uint0 <= 112u) - { - if (uint0 != 96u && uint0 != 112u) - { - goto IL_1E5; - } - goto IL_20E; - } - if (uint0 == 128u) - { - goto IL_20E; - } - if (uint0 != 144u) - { - goto IL_1E5; - } - } - else - { - if (uint0 <= 192u) - { - if (uint0 == 160u) - { - goto IL_20E; - } - if (uint0 != 192u) - { - goto IL_1E5; - } - } - else if (uint0 != 224u && uint0 != 256u) - { - if (uint0 != 320u) - { - goto IL_1E5; - } - } - if (dwMpegVersion != 1u) - { - throw new ArgumentOutOfRangeException("MpsBitRate", "Bit rate not compatible with input format"); - } - goto IL_20E; - } - if (dwMpegVersion != 0u) - { - throw new ArgumentOutOfRangeException("MpsBitRate", "Bit rate not compatible with input format"); - } - goto IL_20E; - IL_1E5: - throw new ArgumentOutOfRangeException("MpsBitRate", "Unsupported bit rate"); - IL_20E: - dwBitrate = uint0; - nPreset = LameQualityPreset.LqpNormalQuality; - dwPsyModel = 0u; - dwEmphasis = 0u; - bOriginal = 1; - bWriteVBRHeader = 0; - bNoRes = 0; - bCopyright = 0; - bCRC = 0; - bEnableVBR = 0; - bPrivate = 0; - bStrictIso = 0; - dwMaxBitrate = 0u; - dwVbrAbr_bps = 0u; - nQuality = 0; - nVbrMethod = VbrMethod.None; - nVBRQuality = 0; - } - } -} + public const uint Mpeg2 = 0u; + + public uint dwStructVersion; + + public uint dwStructSize; + + public uint dwSampleRate; + + public uint dwReSampleRate; + + public MpegMode nMode; + + public uint dwBitrate; + + public uint dwMaxBitrate; + + public LameQualityPreset nPreset; + + public uint dwMpegVersion; + + public uint dwPsyModel; + + public uint dwEmphasis; + + public int bPrivate; + + public int bCRC; + + public int bCopyright; + + public int bOriginal; + + public int bWriteVBRHeader; + + public int bEnableVBR; + + public int nVBRQuality; + + public uint dwVbrAbr_bps; + + public VbrMethod nVbrMethod; + + public int bNoRes; + + public int bStrictIso; + + public ushort nQuality; + + public Lhv1(WaveFormat waveFormat0, uint uint0) + { + this = new Lhv1(waveFormat0, uint0, 0u); + } + + public Lhv1(WaveFormat waveFormat0, uint uint0, uint uint1) + { + if (waveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm) + { + throw new ArgumentOutOfRangeException("format", "Only PCM format supported"); + } + if (waveFormat0.short_2 != 16) + { + throw new ArgumentOutOfRangeException("format", "Only 16 bits samples supported"); + } + dwStructVersion = 1u; + dwStructSize = (uint) Marshal.SizeOf(typeof(BeConfig)); + var num = (uint) ((uint1 == 0u) ? waveFormat0.int_0 : ((int) uint1)); + if (num <= 24000u) + { + if (num == 16000u || num == 22050u || num == 24000u) + { + dwMpegVersion = 0u; + goto IL_B6; + } + } + else if (num == 32000u || num == 44100u || num == 48000u) + { + dwMpegVersion = 1u; + goto IL_B6; + } + throw new ArgumentOutOfRangeException("format", "Unsupported sample rate"); + IL_B6: + dwSampleRate = (uint) waveFormat0.int_0; + dwReSampleRate = uint1; + switch (waveFormat0.short_0) + { + case 1: + nMode = MpegMode.Mono; + break; + case 2: + nMode = MpegMode.Stereo; + break; + default: + throw new ArgumentOutOfRangeException("format", "Invalid number of channels"); + } + if (uint0 <= 80u) + { + if (uint0 <= 32u) + { + if (uint0 <= 16u) + { + if (uint0 != 8u && uint0 != 16u) + { + goto IL_1E5; + } + } + else if (uint0 != 24u) + { + if (uint0 != 32u) + { + goto IL_1E5; + } + goto IL_20E; + } + } + else if (uint0 <= 48u) + { + if (uint0 != 40u && uint0 != 48u) + { + goto IL_1E5; + } + goto IL_20E; + } + else + { + if (uint0 != 56u && uint0 != 64u && uint0 != 80u) + { + goto IL_1E5; + } + goto IL_20E; + } + } + else if (uint0 <= 144u) + { + if (uint0 <= 112u) + { + if (uint0 != 96u && uint0 != 112u) + { + goto IL_1E5; + } + goto IL_20E; + } + if (uint0 == 128u) + { + goto IL_20E; + } + if (uint0 != 144u) + { + goto IL_1E5; + } + } + else + { + if (uint0 <= 192u) + { + if (uint0 == 160u) + { + goto IL_20E; + } + if (uint0 != 192u) + { + goto IL_1E5; + } + } + else if (uint0 != 224u && uint0 != 256u) + { + if (uint0 != 320u) + { + goto IL_1E5; + } + } + if (dwMpegVersion != 1u) + { + throw new ArgumentOutOfRangeException("MpsBitRate", "Bit rate not compatible with input format"); + } + goto IL_20E; + } + if (dwMpegVersion != 0u) + { + throw new ArgumentOutOfRangeException("MpsBitRate", "Bit rate not compatible with input format"); + } + goto IL_20E; + IL_1E5: + throw new ArgumentOutOfRangeException("MpsBitRate", "Unsupported bit rate"); + IL_20E: + dwBitrate = uint0; + nPreset = LameQualityPreset.LqpNormalQuality; + dwPsyModel = 0u; + dwEmphasis = 0u; + bOriginal = 1; + bWriteVBRHeader = 0; + bNoRes = 0; + bCopyright = 0; + bCRC = 0; + bEnableVBR = 0; + bPrivate = 0; + bStrictIso = 0; + dwMaxBitrate = 0u; + dwVbrAbr_bps = 0u; + nQuality = 0; + nVbrMethod = VbrMethod.None; + nVBRQuality = 0; + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/LameQualityPreset.cs b/SharpAudio.ASC.Mp3.Lame/LameQualityPreset.cs index dfb1379..ae72e40 100644 --- a/SharpAudio.ASC.Mp3.Lame/LameQualityPreset.cs +++ b/SharpAudio.ASC.Mp3.Lame/LameQualityPreset.cs @@ -1,32 +1,32 @@ namespace SharpAudio.ASC.Mp3.Lame { - public enum LameQualityPreset - { - LqpNoPreset = -1, - LqpNormalQuality, - LqpLowQuality, - LqpHighQuality, - LqpVoiceQuality, - LqpR3Mix, - LqpVeryhighQuality, - LqpStandard, - LqpFastStandard, - LqpExtreme, - LqpFastExtreme, - LqpInsane, - LqpAbr, - LqpCbr, - LqpMedium, - LqpFastMedium, - LqpPhone = 1000, - LqpSw = 2000, - LqpAm = 3000, - LqpFm = 4000, - LqpVoice = 5000, - LqpRadio = 6000, - LqpTape = 7000, - LqpHifi = 8000, - LqpCd = 9000, - LqpStudio = 10000 - } -} + public enum LameQualityPreset + { + LqpNoPreset = -1, + LqpNormalQuality, + LqpLowQuality, + LqpHighQuality, + LqpVoiceQuality, + LqpR3Mix, + LqpVeryhighQuality, + LqpStandard, + LqpFastStandard, + LqpExtreme, + LqpFastExtreme, + LqpInsane, + LqpAbr, + LqpCbr, + LqpMedium, + LqpFastMedium, + LqpPhone = 1000, + LqpSw = 2000, + LqpAm = 3000, + LqpFm = 4000, + LqpVoice = 5000, + LqpRadio = 6000, + LqpTape = 7000, + LqpHifi = 8000, + LqpCd = 9000, + LqpStudio = 10000 + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/MP3.cs b/SharpAudio.ASC.Mp3.Lame/MP3.cs index 0e3ecbf..9091605 100644 --- a/SharpAudio.ASC.Mp3.Lame/MP3.cs +++ b/SharpAudio.ASC.Mp3.Lame/MP3.cs @@ -2,21 +2,21 @@ namespace SharpAudio.ASC.Mp3.Lame { - [Serializable] - public struct MP3 - { - public uint DwSampleRate; + [Serializable] + public struct MP3 + { + public uint DwSampleRate; - public byte ByMode; + public byte ByMode; - public ushort WBitrate; + public ushort WBitrate; - public int BPrivate; + public int BPrivate; - public int BCrc; + public int BCrc; - public int BCopyright; + public int BCopyright; - public int BOriginal; - } -} + public int BOriginal; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/MpegMode.cs b/SharpAudio.ASC.Mp3.Lame/MpegMode.cs index 8332ad5..7fc0a6d 100644 --- a/SharpAudio.ASC.Mp3.Lame/MpegMode.cs +++ b/SharpAudio.ASC.Mp3.Lame/MpegMode.cs @@ -1,12 +1,12 @@ namespace SharpAudio.ASC.Mp3.Lame { - public enum MpegMode : uint - { - Stereo, - JointStereo, - DualChannel, - Mono, - NotSet, - MaxIndicator - } -} + public enum MpegMode : uint + { + Stereo, + JointStereo, + DualChannel, + Mono, + NotSet, + MaxIndicator + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Lame/VbrMethod.cs b/SharpAudio.ASC.Mp3.Lame/VbrMethod.cs index 56a5ce2..2aee75a 100644 --- a/SharpAudio.ASC.Mp3.Lame/VbrMethod.cs +++ b/SharpAudio.ASC.Mp3.Lame/VbrMethod.cs @@ -1,12 +1,12 @@ namespace SharpAudio.ASC.Mp3.Lame { - public enum VbrMethod - { - None = -1, - Default, - Old, - New, - Mtrh, - Abr - } -} + public enum VbrMethod + { + None = -1, + Default, + Old, + New, + Mtrh, + Abr + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Properties/Settings.cs b/SharpAudio.ASC.Mp3.Properties/Settings.cs index acaf685..e685bfd 100644 --- a/SharpAudio.ASC.Mp3.Properties/Settings.cs +++ b/SharpAudio.ASC.Mp3.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Mp3.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Mp3.Properties/Settings2.cs b/SharpAudio.ASC.Mp3.Properties/Settings2.cs index 487f22f..6742a94 100644 --- a/SharpAudio.ASC.Mp3.Properties/Settings2.cs +++ b/SharpAudio.ASC.Mp3.Properties/Settings2.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Mp3.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings2 : ApplicationSettingsBase - { - private static readonly Settings2 Settings20 = (Settings2)Synchronized(new Settings2()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings2 : ApplicationSettingsBase + { + private static readonly Settings2 Settings20 = (Settings2) Synchronized(new Settings2()); - public static Settings2 Default => Settings20; - } -} + public static Settings2 Default => Settings20; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Ogg.Properties/Settings.cs b/SharpAudio.ASC.Ogg.Properties/Settings.cs index f170406..e87ea70 100644 --- a/SharpAudio.ASC.Ogg.Properties/Settings.cs +++ b/SharpAudio.ASC.Ogg.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Ogg.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC.Wav.Properties/Settings.cs b/SharpAudio.ASC.Wav.Properties/Settings.cs index 4c299f3..71d17de 100644 --- a/SharpAudio.ASC.Wav.Properties/Settings.cs +++ b/SharpAudio.ASC.Wav.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.ASC.Wav.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.ASC/AudioConfig.cs b/SharpAudio.ASC/AudioConfig.cs index 5ef98a9..85c5163 100644 --- a/SharpAudio.ASC/AudioConfig.cs +++ b/SharpAudio.ASC/AudioConfig.cs @@ -3,33 +3,33 @@ namespace SharpAudio.ASC { - [Serializable] - public class AudioConfig : ISerializable - { - public WaveFormat MFormat; + [Serializable] + public class AudioConfig : ISerializable + { + public WaveFormat MFormat; - public AudioConfig(SerializationInfo serializationInfo0, StreamingContext streamingContext0) - { - var @int = serializationInfo0.GetInt32("Format.Rate"); - var int2 = serializationInfo0.GetInt32("Format.Bits"); - var int3 = serializationInfo0.GetInt32("Format.Channels"); - MFormat = new WaveFormat(@int, int2, int3); - } + public AudioConfig(SerializationInfo serializationInfo0, StreamingContext streamingContext0) + { + var @int = serializationInfo0.GetInt32("Format.Rate"); + var int2 = serializationInfo0.GetInt32("Format.Bits"); + var int3 = serializationInfo0.GetInt32("Format.Channels"); + MFormat = new WaveFormat(@int, int2, int3); + } - public AudioConfig(WaveFormat waveFormat0) - { - MFormat = new WaveFormat(waveFormat0.int_0, waveFormat0.short_2, waveFormat0.short_0); - } + public AudioConfig(WaveFormat waveFormat0) + { + MFormat = new WaveFormat(waveFormat0.int_0, waveFormat0.short_2, waveFormat0.short_0); + } - public AudioConfig() : this(new WaveFormat(44100, 16, 2)) - { - } + public AudioConfig() : this(new WaveFormat(44100, 16, 2)) + { + } - public virtual void GetObjectData(SerializationInfo info, StreamingContext context) - { - info.AddValue("Format.Rate", MFormat.int_0); - info.AddValue("Format.Bits", MFormat.short_2); - info.AddValue("Format.Channels", MFormat.short_0); - } - } -} + public virtual void GetObjectData(SerializationInfo info, StreamingContext context) + { + info.AddValue("Format.Rate", MFormat.int_0); + info.AddValue("Format.Bits", MFormat.short_2); + info.AddValue("Format.Channels", MFormat.short_0); + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC/WaveFormat.cs b/SharpAudio.ASC/WaveFormat.cs index 138eb5a..8a4d325 100644 --- a/SharpAudio.ASC/WaveFormat.cs +++ b/SharpAudio.ASC/WaveFormat.cs @@ -5,127 +5,130 @@ namespace SharpAudio.ASC { - [StructLayout(LayoutKind.Sequential)] - public class WaveFormat - { - public WaveFormatTag waveFormatTag_0; - - public short short_0; - - public int int_0; - - public int int_1; - - public short short_1; - - public short short_2; - - public short short_3; - - public WaveFormat() : this(44100, 16, 2) - { - } - - public WaveFormat(int int2, int int3, int int4) - { - if (int4 < 1) - { - throw new ArgumentOutOfRangeException("Channels must be 1 or greater.", "channels"); - } - waveFormatTag_0 = WaveFormatTag.Pcm; - short_0 = (short)int4; - int_0 = int2; - short_2 = (short)int3; - short_3 = 0; - short_1 = (short)(int4 * (int3 / 8)); - int_1 = int_0 * short_1; - } - - public WaveFormat(int int2, int int3) - { - waveFormatTag_0 = WaveFormatTag.IeeeFloat; - short_0 = (short)int3; - short_2 = 32; - int_0 = int2; - short_1 = (short)(4 * int3); - int_1 = int2 * short_1; - short_3 = 0; - } - - public override string ToString() - { - var waveFormatTag = waveFormatTag_0; - if (waveFormatTag != WaveFormatTag.Pcm) - { - if (waveFormatTag != WaveFormatTag.Extensible) - { - return waveFormatTag_0.ToString(); - } - } - return string.Format("{0} bit PCM: {1}kHz {2} channels", short_2, int_0 / 1000, short_0); - } - - public override bool Equals(object obj) - { - var waveFormat = obj as WaveFormat; - return waveFormat != null && (waveFormatTag_0 == waveFormat.waveFormatTag_0 && short_0 == waveFormat.short_0 && int_0 == waveFormat.int_0 && int_1 == waveFormat.int_1 && short_1 == waveFormat.short_1) && short_2 == waveFormat.short_2; - } - - public override int GetHashCode() - { - return (int)(waveFormatTag_0 ^ (WaveFormatTag)short_0) ^ int_0 ^ int_1 ^ short_1 ^ short_2; - } - - public static WaveFormat smethod_0(IntPtr intptr0) - { - var waveFormat = (WaveFormat)Marshal.PtrToStructure(intptr0, typeof(WaveFormat)); - var waveFormatTag = waveFormat.waveFormatTag_0; - switch (waveFormatTag) - { - case WaveFormatTag.Pcm: - waveFormat.short_3 = 0; - break; - case WaveFormatTag.Adpcm: - waveFormat = (Form2)Marshal.PtrToStructure(intptr0, typeof(Form2)); - break; - default: - if (waveFormatTag != WaveFormatTag.Extensible) - { - if (waveFormat.short_3 > 0) - { - waveFormat = (Form0)Marshal.PtrToStructure(intptr0, typeof(Form0)); - } - } - else - { - waveFormat = (Form1)Marshal.PtrToStructure(intptr0, typeof(Form1)); - } - break; - } - return waveFormat; - } - - public static IntPtr smethod_1(WaveFormat waveFormat0) - { - var cb = Marshal.SizeOf(waveFormat0); - var intPtr = Marshal.AllocHGlobal(cb); - Marshal.StructureToPtr(waveFormat0, intPtr, false); - return intPtr; - } - - public int method_0(int int2) - { - var num = (int)(int_1 / 1000.0 * int2); - if (num % short_1 != 0) - { - return num + short_1 - num % short_1; - } - return num; - } - - public int method_1(TimeSpan timeSpan0) - { - return (int)(int_0 * timeSpan0.TotalSeconds); - } - } -} + [StructLayout(LayoutKind.Sequential)] + public class WaveFormat + { + public WaveFormatTag waveFormatTag_0; + + public short short_0; + + public int int_0; + + public int int_1; + + public short short_1; + + public short short_2; + + public short short_3; + + public WaveFormat() : this(44100, 16, 2) + { + } + + public WaveFormat(int int2, int int3, int int4) + { + if (int4 < 1) + { + throw new ArgumentOutOfRangeException("Channels must be 1 or greater.", "channels"); + } + waveFormatTag_0 = WaveFormatTag.Pcm; + short_0 = (short) int4; + int_0 = int2; + short_2 = (short) int3; + short_3 = 0; + short_1 = (short) (int4 * (int3 / 8)); + int_1 = int_0 * short_1; + } + + public WaveFormat(int int2, int int3) + { + waveFormatTag_0 = WaveFormatTag.IeeeFloat; + short_0 = (short) int3; + short_2 = 32; + int_0 = int2; + short_1 = (short) (4 * int3); + int_1 = int2 * short_1; + short_3 = 0; + } + + public override string ToString() + { + var waveFormatTag = waveFormatTag_0; + if (waveFormatTag != WaveFormatTag.Pcm) + { + if (waveFormatTag != WaveFormatTag.Extensible) + { + return waveFormatTag_0.ToString(); + } + } + return string.Format("{0} bit PCM: {1}kHz {2} channels", short_2, int_0 / 1000, short_0); + } + + public override bool Equals(object obj) + { + var waveFormat = obj as WaveFormat; + return waveFormat != null && + (waveFormatTag_0 == waveFormat.waveFormatTag_0 && short_0 == waveFormat.short_0 && + int_0 == waveFormat.int_0 && int_1 == waveFormat.int_1 && short_1 == waveFormat.short_1) && + short_2 == waveFormat.short_2; + } + + public override int GetHashCode() + { + return (int) (waveFormatTag_0 ^ (WaveFormatTag) short_0) ^ int_0 ^ int_1 ^ short_1 ^ short_2; + } + + public static WaveFormat smethod_0(IntPtr intptr0) + { + var waveFormat = (WaveFormat) Marshal.PtrToStructure(intptr0, typeof(WaveFormat)); + var waveFormatTag = waveFormat.waveFormatTag_0; + switch (waveFormatTag) + { + case WaveFormatTag.Pcm: + waveFormat.short_3 = 0; + break; + case WaveFormatTag.Adpcm: + waveFormat = (Form2) Marshal.PtrToStructure(intptr0, typeof(Form2)); + break; + default: + if (waveFormatTag != WaveFormatTag.Extensible) + { + if (waveFormat.short_3 > 0) + { + waveFormat = (Form0) Marshal.PtrToStructure(intptr0, typeof(Form0)); + } + } + else + { + waveFormat = (Form1) Marshal.PtrToStructure(intptr0, typeof(Form1)); + } + break; + } + return waveFormat; + } + + public static IntPtr smethod_1(WaveFormat waveFormat0) + { + var cb = Marshal.SizeOf(waveFormat0); + var intPtr = Marshal.AllocHGlobal(cb); + Marshal.StructureToPtr(waveFormat0, intPtr, false); + return intPtr; + } + + public int method_0(int int2) + { + var num = (int) (int_1 / 1000.0 * int2); + if (num % short_1 != 0) + { + return num + short_1 - num % short_1; + } + return num; + } + + public int method_1(TimeSpan timeSpan0) + { + return (int) (int_0 * timeSpan0.TotalSeconds); + } + } +} \ No newline at end of file diff --git a/SharpAudio.ASC/WaveFormatTag.cs b/SharpAudio.ASC/WaveFormatTag.cs index 73663e6..7da338f 100644 --- a/SharpAudio.ASC/WaveFormatTag.cs +++ b/SharpAudio.ASC/WaveFormatTag.cs @@ -1,153 +1,153 @@ namespace SharpAudio.ASC { - public enum WaveFormatTag : ushort - { - Unknown, - Pcm, - Adpcm, - IeeeFloat, - Vselp, - IbmCvsd, - ALaw, - MuLaw, - Dts, - Drm, - OkiAdpcm = 16, - DviAdpcm, - ImaAdpcm = 17, - MediaspaceAdpcm, - SierraAdpcm, - G723Adpcm, - DigiStd, - DigiFix, - DialogicOkiAdpcm, - MediaVisionAdpcm, - CuCodec, - YamahaAdpcm = 32, - SonarC, - DspGroupTruespeech, - EchoSpeechCorporation1, - AudioFileAf36, - Aptx, - AudioFileAf10, - Prosody1612, - Lrc, - DolbyAc2 = 48, - Gsm610, - MsnAudio, - AntexAdpcme, - ControlResVqlpc, - DigiReal, - DigiAdpcm, - ControlResCr10, - NmsVbxAdpcm, - CsImaAdpcm, - EchoSc3, - RockwellAdpcm, - RockwellDigitalk, - Xebec, - G721Adpcm = 64, - G728Celp, - Msg723, - Mpeg = 80, - Rt24 = 82, - Pac, - MpegLayer3 = 85, - LucentG723 = 89, - Cirrus = 96, - Espcm, - Voxware, - CanopusAtrac, - G726Adpcm, - G722Adpcm, - DsatDisplay = 103, - VoxwareByteAligned = 105, - VoxwareAc8 = 112, - VoxwareAc10, - VoxwareAc16, - VoxwareAc20, - VoxwareRt24, - VoxwareRt29, - VoxwareRt29Hw, - VoxwareVr12, - VoxwareVr18, - VoxwareTq40, - Softsound = 128, - VoxwareTq60, - MsRt24, - G729A, - Mvi2, - DataFusionG726, - DataFusionGsm610, - IsiAudio = 136, - OnLive, - Sbc24 = 145, - DolbyAc3Spdif, - MediaSonicG723, - Prosody8Kbps, - ZyXelAdpcm = 151, - PhilipsLpcbb, - Packed, - MaldenPhonyTalk = 160, - RhetorexAdpcm = 256, - Irat, - VivoG723 = 273, - VivoSiren, - DigitalG723 = 291, - SanyoLdAdpcm = 293, - SiproLabAcePlNet = 304, - SiproLabAceLp4800, - SiproLabAceLp8V3, - SiproLabG729, - SiproLabG729A, - SiproLabKelvin, - DictaphoneG726Adpcm = 320, - QualcommPureVoice = 336, - QualcommHalfRate, - TubGsm = 341, - MsAudio1 = 352, - WmAudio2, - WmAudio3, - WmaSpdif = 356, - Xma, - Xma2, - UnisysNapAdpcm = 368, - UnisysNapULaw, - UnisysNapALaw, - UnisysNap16K, - CreativeAdpcm = 512, - CreativeFastSpeech8 = 514, - CreativeFastSpeech10, - UherAdpcm = 528, - Quarterdeck = 544, - LinkVc = 560, - RawSport = 576, - EsstAc3, - IpiHsx = 592, - PiRpelp, - Cs2 = 608, - SonyScx = 624, - FmTownsSnd = 768, - BtvDigital = 1024, - QDesignMusic = 1104, - VmeVmpcm = 1664, - Tpc, - OliGsm = 4096, - OliAdpcm, - OliCelp, - OliSbc, - OliOpr, - LhCodec = 4352, - Norris = 5120, - SoundspaceMusicompress = 5376, - Dvm = 8192, - Extensible = 65534, - Development, - Vorbis1 = 26447, - Vorbis2, - Vorbis3, - Vorbis1P = 26479, - Vorbis2P, - Vorbis3P - } -} + public enum WaveFormatTag : ushort + { + Unknown, + Pcm, + Adpcm, + IeeeFloat, + Vselp, + IbmCvsd, + ALaw, + MuLaw, + Dts, + Drm, + OkiAdpcm = 16, + DviAdpcm, + ImaAdpcm = 17, + MediaspaceAdpcm, + SierraAdpcm, + G723Adpcm, + DigiStd, + DigiFix, + DialogicOkiAdpcm, + MediaVisionAdpcm, + CuCodec, + YamahaAdpcm = 32, + SonarC, + DspGroupTruespeech, + EchoSpeechCorporation1, + AudioFileAf36, + Aptx, + AudioFileAf10, + Prosody1612, + Lrc, + DolbyAc2 = 48, + Gsm610, + MsnAudio, + AntexAdpcme, + ControlResVqlpc, + DigiReal, + DigiAdpcm, + ControlResCr10, + NmsVbxAdpcm, + CsImaAdpcm, + EchoSc3, + RockwellAdpcm, + RockwellDigitalk, + Xebec, + G721Adpcm = 64, + G728Celp, + Msg723, + Mpeg = 80, + Rt24 = 82, + Pac, + MpegLayer3 = 85, + LucentG723 = 89, + Cirrus = 96, + Espcm, + Voxware, + CanopusAtrac, + G726Adpcm, + G722Adpcm, + DsatDisplay = 103, + VoxwareByteAligned = 105, + VoxwareAc8 = 112, + VoxwareAc10, + VoxwareAc16, + VoxwareAc20, + VoxwareRt24, + VoxwareRt29, + VoxwareRt29Hw, + VoxwareVr12, + VoxwareVr18, + VoxwareTq40, + Softsound = 128, + VoxwareTq60, + MsRt24, + G729A, + Mvi2, + DataFusionG726, + DataFusionGsm610, + IsiAudio = 136, + OnLive, + Sbc24 = 145, + DolbyAc3Spdif, + MediaSonicG723, + Prosody8Kbps, + ZyXelAdpcm = 151, + PhilipsLpcbb, + Packed, + MaldenPhonyTalk = 160, + RhetorexAdpcm = 256, + Irat, + VivoG723 = 273, + VivoSiren, + DigitalG723 = 291, + SanyoLdAdpcm = 293, + SiproLabAcePlNet = 304, + SiproLabAceLp4800, + SiproLabAceLp8V3, + SiproLabG729, + SiproLabG729A, + SiproLabKelvin, + DictaphoneG726Adpcm = 320, + QualcommPureVoice = 336, + QualcommHalfRate, + TubGsm = 341, + MsAudio1 = 352, + WmAudio2, + WmAudio3, + WmaSpdif = 356, + Xma, + Xma2, + UnisysNapAdpcm = 368, + UnisysNapULaw, + UnisysNapALaw, + UnisysNap16K, + CreativeAdpcm = 512, + CreativeFastSpeech8 = 514, + CreativeFastSpeech10, + UherAdpcm = 528, + Quarterdeck = 544, + LinkVc = 560, + RawSport = 576, + EsstAc3, + IpiHsx = 592, + PiRpelp, + Cs2 = 608, + SonyScx = 624, + FmTownsSnd = 768, + BtvDigital = 1024, + QDesignMusic = 1104, + VmeVmpcm = 1664, + Tpc, + OliGsm = 4096, + OliAdpcm, + OliCelp, + OliSbc, + OliOpr, + LhCodec = 4352, + Norris = 5120, + SoundspaceMusicompress = 5376, + Dvm = 8192, + Extensible = 65534, + Development, + Vorbis1 = 26447, + Vorbis2, + Vorbis3, + Vorbis1P = 26479, + Vorbis2P, + Vorbis3P + } +} \ No newline at end of file diff --git a/SharpAudio.Library.Properties/Settings.cs b/SharpAudio.Library.Properties/Settings.cs index e83621e..c7902d4 100644 --- a/SharpAudio.Library.Properties/Settings.cs +++ b/SharpAudio.Library.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.Library.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.Properties/Settings.cs b/SharpAudio.Properties/Settings.cs index 18a564f..29bc042 100644 --- a/SharpAudio.Properties/Settings.cs +++ b/SharpAudio.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SharpAudio.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SharpAudio.Properties/Settings2.cs b/SharpAudio.Properties/Settings2.cs index c7dd2f1..b491992 100644 --- a/SharpAudio.Properties/Settings2.cs +++ b/SharpAudio.Properties/Settings2.cs @@ -4,11 +4,12 @@ namespace SharpAudio.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings2 : ApplicationSettingsBase - { - private static readonly Settings2 Settings20 = (Settings2)Synchronized(new Settings2()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings2 : ApplicationSettingsBase + { + private static readonly Settings2 Settings20 = (Settings2) Synchronized(new Settings2()); - public static Settings2 Default => Settings20; - } -} + public static Settings2 Default => Settings20; + } +} \ No newline at end of file diff --git a/SystemTools.LowLevelHook/ModKeys.cs b/SystemTools.LowLevelHook/ModKeys.cs index f6f2ae0..d5722fe 100644 --- a/SystemTools.LowLevelHook/ModKeys.cs +++ b/SystemTools.LowLevelHook/ModKeys.cs @@ -2,13 +2,13 @@ namespace SystemTools.LowLevelHook { - [Flags] - public enum ModKeys : uint - { - None = 0u, - Alt = 1u, - Ctrl = 2u, - Shift = 4u, - Win = 8u - } -} + [Flags] + public enum ModKeys : uint + { + None = 0u, + Alt = 1u, + Ctrl = 2u, + Shift = 4u, + Win = 8u + } +} \ No newline at end of file diff --git a/SystemTools.Properties/Settings.cs b/SystemTools.Properties/Settings.cs index f5789c8..fc42aa8 100644 --- a/SystemTools.Properties/Settings.cs +++ b/SystemTools.Properties/Settings.cs @@ -4,11 +4,12 @@ namespace SystemTools.Properties { - [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), CompilerGenerated] - public class Settings : ApplicationSettingsBase - { - private static readonly Settings Settings0 = (Settings)Synchronized(new Settings()); + [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), + CompilerGenerated] + public class Settings : ApplicationSettingsBase + { + private static readonly Settings Settings0 = (Settings) Synchronized(new Settings()); - public static Settings Default => Settings0; - } -} + public static Settings Default => Settings0; + } +} \ No newline at end of file diff --git a/SystemTools/BitList.cs b/SystemTools/BitList.cs index 5506498..f9653f8 100644 --- a/SystemTools/BitList.cs +++ b/SystemTools/BitList.cs @@ -5,390 +5,391 @@ namespace SystemTools { - [Serializable] - public class BitList : IEnumerable, IList, ICloneable, IEnumerable, ICollection - { - [Serializable] - private class BitListEnumerator : IEnumerator, IDisposable, ICloneable, IEnumerator - { - private BitList _bitList; - - private bool _current; - - private int _index; - - private int _max; - - public bool Current - { - get - { - if (_index == -1) - { - throw new InvalidOperationException("Enum not started"); - } - if (_index >= _bitList.Count) - { - throw new InvalidOperationException("Enum Ended"); - } - return _current; - } - } - - object IEnumerator.Current => Current; - - public object Clone() - { - return MemberwiseClone(); - } - - public BitListEnumerator(BitList bitList0) - { - _index = -1; - _bitList = bitList0; - _max = bitList0._bitLength; - } - - public bool MoveNext() - { - if (_index < _bitList.Count - 1) - { - _current = _bitList[++_index]; - return true; - } - _index = _bitList.Count; - return false; - } - - public void Reset() - { - _index = -1; - } - - public void Dispose() - { - _bitList = null; - _max = 0; - _index = 0; - } - } - - private readonly List _data = new List(); - - private int _bitLength; - - public bool this[int index] - { - get - { - if (index < 0 || index >= _bitLength) - { - throw new ArgumentOutOfRangeException(); - } - return (_data[index >> 3] & 1 << (index & 7)) != 0; - } - set - { - if (index < 0 || index >= _bitLength) - { - throw new ArgumentOutOfRangeException(); - } - var num = index >> 3; - var num2 = index & 7; - if (value) - { - List list; - int index2; - (list = _data)[index2 = num] = (byte)(list[index2] | (byte)(1 << num2)); - return; - } - List list2; - int index3; - (list2 = _data)[index3 = num] = (byte)(list2[index3] & (byte)(~(byte)(1 << num2))); - } - } - - public int Count => _bitLength; - - public bool IsReadOnly => false; - - public BitList() - { - } - - public BitList(BitList bitList0) - { - _data.AddRange(bitList0._data); - _bitLength = bitList0._bitLength; - } - - public static byte[] smethod_0(T gparam0) where T : struct - { - var array = new byte[Marshal.SizeOf(gparam0)]; - try - { - T[] src = { - gparam0 - }; - Buffer.BlockCopy(src, 0, array, 0, array.Length); - return array; - } - catch - { - } - var gCHandle = GCHandle.Alloc(array, GCHandleType.Pinned); - try - { - Marshal.StructureToPtr(gparam0, gCHandle.AddrOfPinnedObject(), false); - } - finally - { - gCHandle.Free(); - } - return array; - } - - public void method_0(int int0, byte byte0) - { - var num = int0 >> 3; - var num2 = int0 & 7; - if (num2 == 0) - { - _data[num] = byte0; - } - List list; - int index; - (list = _data)[index = num] = (byte)(list[index] & (byte)(~(byte)(255 << num2))); - List list2; - int index2; - (list2 = _data)[index2 = num] = (byte)(list2[index2] | (byte)(byte0 << num2)); - if (num + 1 == _data.Count) - { - _data.Add(0); - _bitLength += num2; - } - List list3; - int index3; - (list3 = _data)[index3 = num + 1] = (byte)(list3[index3] & (byte)(~(byte)(255 >> 8 - num2))); - List list4; - int index4; - (list4 = _data)[index4 = num + 1] = (byte)(list4[index4] | (byte)(byte0 >> 8 - num2)); - } - - public void Add(T gparam0) where T : struct - { - if (typeof(T).Equals(typeof(byte))) - { - method_0(_bitLength, (byte)((object)gparam0)); - return; - } - method_1(smethod_0(gparam0)); - } - - public void method_1(IEnumerable ienumerable0) - { - if (_bitLength != 0 && (_bitLength & 7) != 0) - { - foreach (var current in ienumerable0) - { - method_0(_bitLength, current); - } - return; - } - _data.AddRange(ienumerable0); - _bitLength = _data.Count << 3; - } - - public override string ToString() - { - var text = string.Empty; - using (var enumerator = GetEnumerator()) - { - while (enumerator.MoveNext()) - { - text = (enumerator.Current ? '1' : '0') + text; - } - } - return text; - } - - public override bool Equals(object obj) - { - var bitList = (BitList)obj; - if (_bitLength != bitList._bitLength) - { - return false; - } - var num = (_bitLength >> 3) + 1; - for (var i = 0; i < num; i++) - { - if (_data[i] != bitList._data[i]) - { - return false; - } - } - return true; - } - - public override int GetHashCode() - { - return ToString().GetHashCode(); - } - - public int IndexOf(bool item) - { - for (var i = 0; i < _bitLength; i++) - { - if (this[i] == item) - { - return i; - } - } - return -1; - } - - public void Insert(int index, bool item) - { - if (index < 0 || index > _bitLength) - { - throw new ArgumentOutOfRangeException(); - } - if (index == _bitLength) - { - Add(item); - return; - } - if ((_data.Count << 3) - _bitLength == 0) - { - _data.Add(0); - } - var num = 1; - var num2 = 7; - var num3 = _data.Count - 1; - var num4 = index >> 3; - var num5 = index - (num4 << 3); - for (var i = num3; i > num4; i--) - { - _data[i] = (byte)(_data[i] << num | _data[i - 1] >> num2); - } - _data[num4] = (byte)((_data[num4] << num & 255 << num5 + 1) | (_data[num4] & ~(255 << num5))); - if (item) - { - List list; - int index2; - (list = _data)[index2 = num4] = (byte)(list[index2] | (byte)(1 << num5)); - } - _bitLength++; - } - - public void RemoveAt(int index) - { - if (index >= 0 && index < _bitLength) - { - var num = 1; - var num2 = 7; - var num3 = _data.Count - 1; - var num4 = index >> 3; - var num5 = index - (num4 << 3); - var b = _data[num4]; - for (var i = num4; i < num3; i++) - { - _data[i] = (byte)(_data[i] >> num | _data[i + 1] << num2); - } - List list; - int index2; - (list = _data)[index2 = num3] = (byte)(list[index2] >> num); - _data[num4] = (byte)((_data[num4] & 255 << num5) | (b & ~(255 << num5))); - if ((_data.Count << 3) - _bitLength == 7) - { - _data.RemoveAt(num3); - } - _bitLength--; - return; - } - throw new ArgumentOutOfRangeException(); - } - - public void Add(bool item) - { - var num = (_data.Count << 3) - _bitLength; - if (num > 0) - { - if (item) - { - List list; - int index; - (list = _data)[index = _data.Count - 1] = (byte)(list[index] | (byte)(1 << num)); - } - else - { - List list2; - int index2; - (list2 = _data)[index2 = _data.Count - 1] = (byte)(list2[index2] & (byte)(~(byte)(1 << num))); - } - } - else - { - _data.Add(item ? (byte)1 : (byte)0); - } - _bitLength++; - } - - public void Clear() - { - _data.Clear(); - _bitLength = 0; - } - - public bool Contains(bool item) - { - foreach (var current in _data) - { - if (item ? (current != 0) : (current != 255)) - { - return true; - } - } - return false; - } - - public void CopyTo(bool[] array, int index) - { - if (index >= 0 && index + _bitLength < array.Length) - { - for (var i = 0; i < _bitLength; i++) - { - array[index + i] = this[i]; - } - return; - } - throw new ArgumentOutOfRangeException(); - } - - public bool Remove(bool item) - { - var num = IndexOf(item); - if (num < 0) - { - return false; - } - RemoveAt(num); - return true; - } - - public IEnumerator GetEnumerator() - { - return new BitListEnumerator(this); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - - public object Clone() - { - return new BitList(this); - } - } -} + [Serializable] + public class BitList : IEnumerable, IList, ICloneable, IEnumerable, ICollection + { + [Serializable] + private class BitListEnumerator : IEnumerator, IDisposable, ICloneable, IEnumerator + { + private BitList _bitList; + + private bool _current; + + private int _index; + + private int _max; + + public bool Current + { + get + { + if (_index == -1) + { + throw new InvalidOperationException("Enum not started"); + } + if (_index >= _bitList.Count) + { + throw new InvalidOperationException("Enum Ended"); + } + return _current; + } + } + + object IEnumerator.Current => Current; + + public object Clone() + { + return MemberwiseClone(); + } + + public BitListEnumerator(BitList bitList0) + { + _index = -1; + _bitList = bitList0; + _max = bitList0._bitLength; + } + + public bool MoveNext() + { + if (_index < _bitList.Count - 1) + { + _current = _bitList[++_index]; + return true; + } + _index = _bitList.Count; + return false; + } + + public void Reset() + { + _index = -1; + } + + public void Dispose() + { + _bitList = null; + _max = 0; + _index = 0; + } + } + + private readonly List _data = new List(); + + private int _bitLength; + + public bool this[int index] + { + get + { + if (index < 0 || index >= _bitLength) + { + throw new ArgumentOutOfRangeException(); + } + return (_data[index >> 3] & 1 << (index & 7)) != 0; + } + set + { + if (index < 0 || index >= _bitLength) + { + throw new ArgumentOutOfRangeException(); + } + var num = index >> 3; + var num2 = index & 7; + if (value) + { + List list; + int index2; + (list = _data)[index2 = num] = (byte) (list[index2] | (byte) (1 << num2)); + return; + } + List list2; + int index3; + (list2 = _data)[index3 = num] = (byte) (list2[index3] & (byte) (~(byte) (1 << num2))); + } + } + + public int Count => _bitLength; + + public bool IsReadOnly => false; + + public BitList() + { + } + + public BitList(BitList bitList0) + { + _data.AddRange(bitList0._data); + _bitLength = bitList0._bitLength; + } + + public static byte[] smethod_0(T gparam0) where T : struct + { + var array = new byte[Marshal.SizeOf(gparam0)]; + try + { + T[] src = + { + gparam0 + }; + Buffer.BlockCopy(src, 0, array, 0, array.Length); + return array; + } + catch + { + } + var gCHandle = GCHandle.Alloc(array, GCHandleType.Pinned); + try + { + Marshal.StructureToPtr(gparam0, gCHandle.AddrOfPinnedObject(), false); + } + finally + { + gCHandle.Free(); + } + return array; + } + + public void method_0(int int0, byte byte0) + { + var num = int0 >> 3; + var num2 = int0 & 7; + if (num2 == 0) + { + _data[num] = byte0; + } + List list; + int index; + (list = _data)[index = num] = (byte) (list[index] & (byte) (~(byte) (255 << num2))); + List list2; + int index2; + (list2 = _data)[index2 = num] = (byte) (list2[index2] | (byte) (byte0 << num2)); + if (num + 1 == _data.Count) + { + _data.Add(0); + _bitLength += num2; + } + List list3; + int index3; + (list3 = _data)[index3 = num + 1] = (byte) (list3[index3] & (byte) (~(byte) (255 >> 8 - num2))); + List list4; + int index4; + (list4 = _data)[index4 = num + 1] = (byte) (list4[index4] | (byte) (byte0 >> 8 - num2)); + } + + public void Add(T gparam0) where T : struct + { + if (typeof(T).Equals(typeof(byte))) + { + method_0(_bitLength, (byte) ((object) gparam0)); + return; + } + method_1(smethod_0(gparam0)); + } + + public void method_1(IEnumerable ienumerable0) + { + if (_bitLength != 0 && (_bitLength & 7) != 0) + { + foreach (var current in ienumerable0) + { + method_0(_bitLength, current); + } + return; + } + _data.AddRange(ienumerable0); + _bitLength = _data.Count << 3; + } + + public override string ToString() + { + var text = string.Empty; + using (var enumerator = GetEnumerator()) + { + while (enumerator.MoveNext()) + { + text = (enumerator.Current ? '1' : '0') + text; + } + } + return text; + } + + public override bool Equals(object obj) + { + var bitList = (BitList) obj; + if (_bitLength != bitList._bitLength) + { + return false; + } + var num = (_bitLength >> 3) + 1; + for (var i = 0; i < num; i++) + { + if (_data[i] != bitList._data[i]) + { + return false; + } + } + return true; + } + + public override int GetHashCode() + { + return ToString().GetHashCode(); + } + + public int IndexOf(bool item) + { + for (var i = 0; i < _bitLength; i++) + { + if (this[i] == item) + { + return i; + } + } + return -1; + } + + public void Insert(int index, bool item) + { + if (index < 0 || index > _bitLength) + { + throw new ArgumentOutOfRangeException(); + } + if (index == _bitLength) + { + Add(item); + return; + } + if ((_data.Count << 3) - _bitLength == 0) + { + _data.Add(0); + } + var num = 1; + var num2 = 7; + var num3 = _data.Count - 1; + var num4 = index >> 3; + var num5 = index - (num4 << 3); + for (var i = num3; i > num4; i--) + { + _data[i] = (byte) (_data[i] << num | _data[i - 1] >> num2); + } + _data[num4] = (byte) ((_data[num4] << num & 255 << num5 + 1) | (_data[num4] & ~(255 << num5))); + if (item) + { + List list; + int index2; + (list = _data)[index2 = num4] = (byte) (list[index2] | (byte) (1 << num5)); + } + _bitLength++; + } + + public void RemoveAt(int index) + { + if (index >= 0 && index < _bitLength) + { + var num = 1; + var num2 = 7; + var num3 = _data.Count - 1; + var num4 = index >> 3; + var num5 = index - (num4 << 3); + var b = _data[num4]; + for (var i = num4; i < num3; i++) + { + _data[i] = (byte) (_data[i] >> num | _data[i + 1] << num2); + } + List list; + int index2; + (list = _data)[index2 = num3] = (byte) (list[index2] >> num); + _data[num4] = (byte) ((_data[num4] & 255 << num5) | (b & ~(255 << num5))); + if ((_data.Count << 3) - _bitLength == 7) + { + _data.RemoveAt(num3); + } + _bitLength--; + return; + } + throw new ArgumentOutOfRangeException(); + } + + public void Add(bool item) + { + var num = (_data.Count << 3) - _bitLength; + if (num > 0) + { + if (item) + { + List list; + int index; + (list = _data)[index = _data.Count - 1] = (byte) (list[index] | (byte) (1 << num)); + } + else + { + List list2; + int index2; + (list2 = _data)[index2 = _data.Count - 1] = (byte) (list2[index2] & (byte) (~(byte) (1 << num))); + } + } + else + { + _data.Add(item ? (byte) 1 : (byte) 0); + } + _bitLength++; + } + + public void Clear() + { + _data.Clear(); + _bitLength = 0; + } + + public bool Contains(bool item) + { + foreach (var current in _data) + { + if (item ? (current != 0) : (current != 255)) + { + return true; + } + } + return false; + } + + public void CopyTo(bool[] array, int index) + { + if (index >= 0 && index + _bitLength < array.Length) + { + for (var i = 0; i < _bitLength; i++) + { + array[index + i] = this[i]; + } + return; + } + throw new ArgumentOutOfRangeException(); + } + + public bool Remove(bool item) + { + var num = IndexOf(item); + if (num < 0) + { + return false; + } + RemoveAt(num); + return true; + } + + public IEnumerator GetEnumerator() + { + return new BitListEnumerator(this); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public object Clone() + { + return new BitList(this); + } + } +} \ No newline at end of file diff --git a/app.config b/app.config index fcd0c93..5b70154 100644 --- a/app.config +++ b/app.config @@ -1,3 +1,7 @@ - + + - + + + + \ No newline at end of file