From 274f61d605872c83901153070e63b731466568e8 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 26 Jan 2020 22:18:29 +0100 Subject: [PATCH] Minor re-factoring --- .../{ => Architectures}/Il2CppBinaryARM.cs | 0 .../{ => Architectures}/Il2CppBinaryARM64.cs | 0 .../{ => Architectures}/Il2CppBinaryX64.cs | 0 .../{ => Architectures}/Il2CppBinaryX86.cs | 0 Il2CppInspector/{ => IL2CPP}/Il2CppBinary.cs | 0 .../{ => IL2CPP}/Il2CppBinaryClasses.cs | 0 .../{ => IL2CPP}/Il2CppConstants.cs | 0 .../{ => IL2CPP}/Il2CppInspector.cs | 24 -------------- Il2CppInspector/{ => IL2CPP}/Il2CppModel.cs | 0 Il2CppInspector/{ => IL2CPP}/Metadata.cs | 0 .../{ => IL2CPP}/MetadataClasses.cs | 0 Il2CppInspector/IL2CPP/MetadataUsage.cs | 32 +++++++++++++++++++ 12 files changed, 32 insertions(+), 24 deletions(-) rename Il2CppInspector/{ => Architectures}/Il2CppBinaryARM.cs (100%) rename Il2CppInspector/{ => Architectures}/Il2CppBinaryARM64.cs (100%) rename Il2CppInspector/{ => Architectures}/Il2CppBinaryX64.cs (100%) rename Il2CppInspector/{ => Architectures}/Il2CppBinaryX86.cs (100%) rename Il2CppInspector/{ => IL2CPP}/Il2CppBinary.cs (100%) rename Il2CppInspector/{ => IL2CPP}/Il2CppBinaryClasses.cs (100%) rename Il2CppInspector/{ => IL2CPP}/Il2CppConstants.cs (100%) rename Il2CppInspector/{ => IL2CPP}/Il2CppInspector.cs (95%) rename Il2CppInspector/{ => IL2CPP}/Il2CppModel.cs (100%) rename Il2CppInspector/{ => IL2CPP}/Metadata.cs (100%) rename Il2CppInspector/{ => IL2CPP}/MetadataClasses.cs (100%) create mode 100644 Il2CppInspector/IL2CPP/MetadataUsage.cs diff --git a/Il2CppInspector/Il2CppBinaryARM.cs b/Il2CppInspector/Architectures/Il2CppBinaryARM.cs similarity index 100% rename from Il2CppInspector/Il2CppBinaryARM.cs rename to Il2CppInspector/Architectures/Il2CppBinaryARM.cs diff --git a/Il2CppInspector/Il2CppBinaryARM64.cs b/Il2CppInspector/Architectures/Il2CppBinaryARM64.cs similarity index 100% rename from Il2CppInspector/Il2CppBinaryARM64.cs rename to Il2CppInspector/Architectures/Il2CppBinaryARM64.cs diff --git a/Il2CppInspector/Il2CppBinaryX64.cs b/Il2CppInspector/Architectures/Il2CppBinaryX64.cs similarity index 100% rename from Il2CppInspector/Il2CppBinaryX64.cs rename to Il2CppInspector/Architectures/Il2CppBinaryX64.cs diff --git a/Il2CppInspector/Il2CppBinaryX86.cs b/Il2CppInspector/Architectures/Il2CppBinaryX86.cs similarity index 100% rename from Il2CppInspector/Il2CppBinaryX86.cs rename to Il2CppInspector/Architectures/Il2CppBinaryX86.cs diff --git a/Il2CppInspector/Il2CppBinary.cs b/Il2CppInspector/IL2CPP/Il2CppBinary.cs similarity index 100% rename from Il2CppInspector/Il2CppBinary.cs rename to Il2CppInspector/IL2CPP/Il2CppBinary.cs diff --git a/Il2CppInspector/Il2CppBinaryClasses.cs b/Il2CppInspector/IL2CPP/Il2CppBinaryClasses.cs similarity index 100% rename from Il2CppInspector/Il2CppBinaryClasses.cs rename to Il2CppInspector/IL2CPP/Il2CppBinaryClasses.cs diff --git a/Il2CppInspector/Il2CppConstants.cs b/Il2CppInspector/IL2CPP/Il2CppConstants.cs similarity index 100% rename from Il2CppInspector/Il2CppConstants.cs rename to Il2CppInspector/IL2CPP/Il2CppConstants.cs diff --git a/Il2CppInspector/Il2CppInspector.cs b/Il2CppInspector/IL2CPP/Il2CppInspector.cs similarity index 95% rename from Il2CppInspector/Il2CppInspector.cs rename to Il2CppInspector/IL2CPP/Il2CppInspector.cs index 3499518..cbb2bb4 100644 --- a/Il2CppInspector/Il2CppInspector.cs +++ b/Il2CppInspector/IL2CPP/Il2CppInspector.cs @@ -277,28 +277,4 @@ namespace Il2CppInspector return processors; } } - - public enum MetadataUsageType - { - TypeInfo = 1, - Type = 2, - MethodDef = 3, - FieldInfo = 4, - StringLiteral = 5, - MethodRef = 6, - } - - public class MetadataUsage - { - public MetadataUsageType Type { get; } - public int SourceIndex { get; } - public int DestinationIndex { get; } - - public MetadataUsage(MetadataUsageType type, int sourceIndex, int destinationIndex) - { - Type = type; - SourceIndex = sourceIndex; - DestinationIndex = destinationIndex; - } - } } diff --git a/Il2CppInspector/Il2CppModel.cs b/Il2CppInspector/IL2CPP/Il2CppModel.cs similarity index 100% rename from Il2CppInspector/Il2CppModel.cs rename to Il2CppInspector/IL2CPP/Il2CppModel.cs diff --git a/Il2CppInspector/Metadata.cs b/Il2CppInspector/IL2CPP/Metadata.cs similarity index 100% rename from Il2CppInspector/Metadata.cs rename to Il2CppInspector/IL2CPP/Metadata.cs diff --git a/Il2CppInspector/MetadataClasses.cs b/Il2CppInspector/IL2CPP/MetadataClasses.cs similarity index 100% rename from Il2CppInspector/MetadataClasses.cs rename to Il2CppInspector/IL2CPP/MetadataClasses.cs diff --git a/Il2CppInspector/IL2CPP/MetadataUsage.cs b/Il2CppInspector/IL2CPP/MetadataUsage.cs new file mode 100644 index 0000000..477216b --- /dev/null +++ b/Il2CppInspector/IL2CPP/MetadataUsage.cs @@ -0,0 +1,32 @@ +/* + Copyright (c) 2019-2020 Carter Bush - https://github.com/carterbush + Copyright 2020 Katy Coe - http://www.hearthcode.org - http://www.djkaty.com + + All rights reserved. +*/ + +namespace Il2CppInspector +{ + public enum MetadataUsageType + { + TypeInfo = 1, + Type = 2, + MethodDef = 3, + FieldInfo = 4, + StringLiteral = 5, + MethodRef = 6, + } + + public class MetadataUsage + { + public MetadataUsageType Type { get; } + public int SourceIndex { get; } + public int DestinationIndex { get; } + + public MetadataUsage(MetadataUsageType type, int sourceIndex, int destinationIndex) { + Type = type; + SourceIndex = sourceIndex; + DestinationIndex = destinationIndex; + } + } +} \ No newline at end of file