From c8f1bdc2453cd3fa44222882d2f367c4c9b1f873 Mon Sep 17 00:00:00 2001 From: yangzhi <@4F!xZpJwly&KbWq> Date: Mon, 13 May 2019 22:33:45 +0800 Subject: [PATCH] ModLoader project --- ModLoader/Activity1.cs | 225 + ModLoader/Assets/AboutAssets.txt | 19 + ModLoader/BmFont.dll | Bin 0 -> 11776 bytes ModLoader/Common/Constants.cs | 23 + ModLoader/Common/MethodPatcher.cs | 1083 +++++ ModLoader/Common/ModListAdapter.cs | 37 + ModLoader/Common/Utils.cs | 56 + ModLoader/Common/ZipHelper.cs | 88 + ModLoader/Content/Content.mgcb | 15 + ModLoader/GameConsole.cs | 118 + ModLoader/Harmony/Attributes.cs | 325 ++ ModLoader/Harmony/CodeInstruction.cs | 62 + ModLoader/Harmony/CodeTranspiler.cs | 295 ++ .../Harmony/Extras/DelegateTypeFactory.cs | 43 + ModLoader/Harmony/Extras/FastAccess.cs | 123 + ModLoader/Harmony/Extras/MethodInvoker.cs | 179 + ModLoader/Harmony/GlobalSuppressions.cs | 4 + ModLoader/Harmony/HarmonyInstance.cs | 190 + ModLoader/Harmony/HarmonyMethod.cs | 141 + ModLoader/Harmony/HarmonySharedState.cs | 68 + ModLoader/Harmony/ILCopying/ByteBuffer.cs | 104 + ModLoader/Harmony/ILCopying/Emitter.cs | 315 ++ ModLoader/Harmony/ILCopying/ILInstruction.cs | 148 + ModLoader/Harmony/ILCopying/Memory.cs | 204 + ModLoader/Harmony/ILCopying/MethodCopier.cs | 730 ++++ ModLoader/Harmony/ILCopying/Signature.cs | 271 ++ ModLoader/Harmony/MethodPatcher.cs | 419 ++ ModLoader/Harmony/Patch.cs | 194 + ModLoader/Harmony/PatchFunctions.cs | 99 + ModLoader/Harmony/PatchProcessor.cs | 305 ++ ModLoader/Harmony/Priority.cs | 15 + ModLoader/Harmony/Tools/AccessCache.cs | 96 + ModLoader/Harmony/Tools/AccessTools.cs | 398 ++ ModLoader/Harmony/Tools/DynamicTools.cs | 226 + ModLoader/Harmony/Tools/Extensions.cs | 82 + ModLoader/Harmony/Tools/FileLog.cs | 120 + ModLoader/Harmony/Tools/PatchTools.cs | 33 + ModLoader/Harmony/Tools/SelfPatching.cs | 134 + ModLoader/Harmony/Tools/SymbolExtensions.cs | 61 + ModLoader/Harmony/Tools/Traverse.cs | 298 ++ ModLoader/Harmony/Transpilers.cs | 38 + ModLoader/MainApplication.cs | 29 + ModLoader/ModEntry.cs | 72 + ModLoader/ModLoader.csproj | 1069 +++++ ModLoader/Mono/Cecil/ArrayType.cs | 141 + ModLoader/Mono/Cecil/AssemblyDefinition.cs | 194 + ModLoader/Mono/Cecil/AssemblyFlags.cs | 24 + ModLoader/Mono/Cecil/AssemblyHashAlgorithm.cs | 18 + .../Mono/Cecil/AssemblyLinkedResource.cs | 39 + .../Mono/Cecil/AssemblyNameDefinition.cs | 32 + ModLoader/Mono/Cecil/AssemblyNameReference.cs | 266 ++ ModLoader/Mono/Cecil/AssemblyReader.cs | 3862 +++++++++++++++++ ModLoader/Mono/Cecil/AssemblyWriter.cs | 3310 ++++++++++++++ ModLoader/Mono/Cecil/BaseAssemblyResolver.cs | 410 ++ ModLoader/Mono/Cecil/CallSite.cs | 106 + ModLoader/Mono/Cecil/Cil/Code.cs | 234 + ModLoader/Mono/Cecil/Cil/CodeReader.cs | 671 +++ ModLoader/Mono/Cecil/Cil/CodeWriter.cs | 659 +++ ModLoader/Mono/Cecil/Cil/Document.cs | 123 + ModLoader/Mono/Cecil/Cil/ExceptionHandler.cs | 71 + ModLoader/Mono/Cecil/Cil/ILProcessor.cs | 260 ++ ModLoader/Mono/Cecil/Cil/Instruction.cs | 296 ++ ModLoader/Mono/Cecil/Cil/MethodBody.cs | 248 ++ ModLoader/Mono/Cecil/Cil/OpCode.cs | 439 ++ ModLoader/Mono/Cecil/Cil/OpCodes.cs | 894 ++++ ModLoader/Mono/Cecil/Cil/PortablePdb.cs | 590 +++ ModLoader/Mono/Cecil/Cil/SequencePoint.cs | 76 + ModLoader/Mono/Cecil/Cil/Symbols.cs | 1127 +++++ .../Mono/Cecil/Cil/VariableDefinition.cs | 29 + ModLoader/Mono/Cecil/Cil/VariableReference.cs | 42 + ModLoader/Mono/Cecil/Consts.cs | 5 + ModLoader/Mono/Cecil/CustomAttribute.cs | 205 + .../Mono/Cecil/DefaultAssemblyResolver.cs | 61 + ModLoader/Mono/Cecil/EmbeddedResource.cs | 98 + ModLoader/Mono/Cecil/EventAttributes.cs | 21 + ModLoader/Mono/Cecil/EventDefinition.cs | 155 + ModLoader/Mono/Cecil/EventReference.cs | 42 + ModLoader/Mono/Cecil/ExportedType.cs | 240 + ModLoader/Mono/Cecil/FieldAttributes.cs | 41 + ModLoader/Mono/Cecil/FieldDefinition.cs | 267 ++ ModLoader/Mono/Cecil/FieldReference.cs | 68 + ModLoader/Mono/Cecil/FileAttributes.cs | 17 + ModLoader/Mono/Cecil/FunctionPointerType.cs | 111 + ModLoader/Mono/Cecil/GenericInstanceMethod.cs | 67 + ModLoader/Mono/Cecil/GenericInstanceType.cs | 65 + ModLoader/Mono/Cecil/GenericParameter.cs | 268 ++ .../Mono/Cecil/GenericParameterAttributes.cs | 27 + ModLoader/Mono/Cecil/IConstantProvider.cs | 44 + .../Mono/Cecil/ICustomAttributeProvider.cs | 42 + ModLoader/Mono/Cecil/IGenericInstance.cs | 48 + .../Mono/Cecil/IGenericParameterProvider.cs | 56 + ModLoader/Mono/Cecil/IMarshalInfoProvider.cs | 38 + ModLoader/Mono/Cecil/IMemberDefinition.cs | 82 + ModLoader/Mono/Cecil/IMetadataScope.cs | 23 + .../Mono/Cecil/IMetadataTokenProvider.cs | 17 + ModLoader/Mono/Cecil/IMethodSignature.cs | 57 + ModLoader/Mono/Cecil/Import.cs | 829 ++++ ModLoader/Mono/Cecil/LinkedResource.cs | 42 + .../Mono/Cecil/ManifestResourceAttributes.cs | 21 + ModLoader/Mono/Cecil/MarshalInfo.cs | 153 + ModLoader/Mono/Cecil/Mdb/MdbReader.cs | 209 + ModLoader/Mono/Cecil/Mdb/MdbWriter.cs | 215 + .../Mono/Cecil/MemberDefinitionCollection.cs | 74 + ModLoader/Mono/Cecil/MemberReference.cs | 107 + ModLoader/Mono/Cecil/Metadata/BlobHeap.cs | 54 + ModLoader/Mono/Cecil/Metadata/Buffers.cs | 505 +++ ModLoader/Mono/Cecil/Metadata/CodedIndex.cs | 29 + ModLoader/Mono/Cecil/Metadata/ElementType.cs | 55 + ModLoader/Mono/Cecil/Metadata/GuidHeap.cs | 36 + ModLoader/Mono/Cecil/Metadata/Heap.cs | 24 + .../Mono/Cecil/Metadata/MetadataToken.cs | 94 + ModLoader/Mono/Cecil/Metadata/PdbHeap.cs | 34 + ModLoader/Mono/Cecil/Metadata/Row.cs | 152 + ModLoader/Mono/Cecil/Metadata/StringHeap.cs | 60 + ModLoader/Mono/Cecil/Metadata/TableHeap.cs | 104 + ModLoader/Mono/Cecil/Metadata/TokenType.cs | 49 + .../Mono/Cecil/Metadata/UserStringHeap.cs | 36 + ModLoader/Mono/Cecil/Metadata/Utilities.cs | 652 +++ ModLoader/Mono/Cecil/MetadataResolver.cs | 391 ++ ModLoader/Mono/Cecil/MetadataSystem.cs | 429 ++ ModLoader/Mono/Cecil/MethodAttributes.cs | 48 + .../Mono/Cecil/MethodCallingConvention.cs | 22 + ModLoader/Mono/Cecil/MethodDefinition.cs | 545 +++ ModLoader/Mono/Cecil/MethodImplAttributes.cs | 36 + ModLoader/Mono/Cecil/MethodReference.cs | 202 + ModLoader/Mono/Cecil/MethodReturnType.cs | 98 + .../Mono/Cecil/MethodSemanticsAttributes.cs | 25 + ModLoader/Mono/Cecil/MethodSpecification.cs | 84 + ModLoader/Mono/Cecil/Modifiers.cs | 112 + ModLoader/Mono/Cecil/ModuleDefinition.cs | 1373 ++++++ ModLoader/Mono/Cecil/ModuleKind.cs | 55 + ModLoader/Mono/Cecil/ModuleReference.cs | 49 + ModLoader/Mono/Cecil/NativeType.cs | 55 + ModLoader/Mono/Cecil/PE/BinaryStreamReader.cs | 54 + ModLoader/Mono/Cecil/PE/BinaryStreamWriter.cs | 93 + ModLoader/Mono/Cecil/PE/ByteBuffer.cs | 341 ++ .../Cecil/PE/ByteBufferEqualityComparer.cs | 48 + ModLoader/Mono/Cecil/PE/DataDirectory.cs | 32 + ModLoader/Mono/Cecil/PE/Image.cs | 170 + ModLoader/Mono/Cecil/PE/ImageReader.cs | 793 ++++ ModLoader/Mono/Cecil/PE/ImageWriter.cs | 855 ++++ ModLoader/Mono/Cecil/PE/Section.cs | 24 + ModLoader/Mono/Cecil/PE/TextMap.cs | 112 + ModLoader/Mono/Cecil/PInvokeAttributes.cs | 44 + ModLoader/Mono/Cecil/PInvokeInfo.cs | 120 + ModLoader/Mono/Cecil/ParameterAttributes.cs | 27 + ModLoader/Mono/Cecil/ParameterDefinition.cs | 146 + .../Cecil/ParameterDefinitionCollection.cs | 62 + ModLoader/Mono/Cecil/ParameterReference.cs | 57 + .../Cecil/Pdb/ISymUnmanagedDocumentWriter.cs | 22 + .../Mono/Cecil/Pdb/ISymUnmanagedWriter2.cs | 90 + .../Cecil/Pdb/Microsoft.Cci.Pdb/BitAccess.cs | 255 ++ .../Cecil/Pdb/Microsoft.Cci.Pdb/BitSet.cs | 74 + .../Cecil/Pdb/Microsoft.Cci.Pdb/CvInfo.cs | 2435 +++++++++++ .../Cecil/Pdb/Microsoft.Cci.Pdb/DataStream.cs | 111 + .../Cecil/Pdb/Microsoft.Cci.Pdb/DbiDbgHdr.cs | 41 + .../Cecil/Pdb/Microsoft.Cci.Pdb/DbiHeader.cs | 59 + .../Pdb/Microsoft.Cci.Pdb/DbiModuleInfo.cs | 57 + .../Cecil/Pdb/Microsoft.Cci.Pdb/DbiSecCon.cs | 42 + .../Pdb/Microsoft.Cci.Pdb/IntHashTable.cs | 583 +++ .../Cecil/Pdb/Microsoft.Cci.Pdb/Interfaces.cs | 77 + .../Mono/Cecil/Pdb/Microsoft.Cci.Pdb/LICENSE | 22 + .../Pdb/Microsoft.Cci.Pdb/MsfDirectory.cs | 58 + .../Pdb/Microsoft.Cci.Pdb/PdbConstant.cs | 89 + .../Microsoft.Cci.Pdb/PdbDebugException.cs | 20 + .../Pdb/Microsoft.Cci.Pdb/PdbException.cs | 20 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbFile.cs | 537 +++ .../Pdb/Microsoft.Cci.Pdb/PdbFileHeader.cs | 95 + .../Pdb/Microsoft.Cci.Pdb/PdbFunction.cs | 498 +++ .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbLine.cs | 29 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbLines.cs | 23 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbReader.cs | 40 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbScope.cs | 122 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbSlot.cs | 41 + .../Cecil/Pdb/Microsoft.Cci.Pdb/PdbSource.cs | 29 + .../Pdb/Microsoft.Cci.Pdb/PdbTokenLine.cs | 33 + .../SourceLocationProvider.cs | 32 + ModLoader/Mono/Cecil/Pdb/ModuleMetadata.cs | 796 ++++ ModLoader/Mono/Cecil/Pdb/NativePdbReader.cs | 374 ++ ModLoader/Mono/Cecil/Pdb/NativePdbWriter.cs | 366 ++ ModLoader/Mono/Cecil/Pdb/PdbHelper.cs | 130 + ModLoader/Mono/Cecil/Pdb/SymDocumentWriter.cs | 32 + ModLoader/Mono/Cecil/Pdb/SymWriter.cs | 160 + ModLoader/Mono/Cecil/PinnedType.cs | 35 + ModLoader/Mono/Cecil/PointerType.cs | 43 + ModLoader/Mono/Cecil/PropertyAttributes.cs | 23 + ModLoader/Mono/Cecil/PropertyDefinition.cs | 244 ++ ModLoader/Mono/Cecil/PropertyReference.cs | 45 + ModLoader/Mono/Cecil/ReferenceType.cs | 43 + ModLoader/Mono/Cecil/Resource.cs | 58 + ModLoader/Mono/Cecil/SecurityDeclaration.cs | 179 + ModLoader/Mono/Cecil/SentinelType.cs | 35 + ModLoader/Mono/Cecil/TargetRuntime.cs | 19 + ModLoader/Mono/Cecil/Treatments.cs | 66 + ModLoader/Mono/Cecil/TypeAttributes.cs | 63 + ModLoader/Mono/Cecil/TypeDefinition.cs | 609 +++ .../Mono/Cecil/TypeDefinitionCollection.cs | 100 + ModLoader/Mono/Cecil/TypeParser.cs | 532 +++ ModLoader/Mono/Cecil/TypeReference.cs | 352 ++ ModLoader/Mono/Cecil/TypeSpecification.cs | 68 + ModLoader/Mono/Cecil/TypeSystem.cs | 331 ++ ModLoader/Mono/Cecil/VariantType.cs | 35 + .../Mono/Cecil/WindowsRuntimeProjections.cs | 875 ++++ .../Mono/Collections/Generic/Collection.cs | 416 ++ .../Collections/Generic/ReadOnlyCollection.cs | 94 + .../SymbolWriter/MonoSymbolFile.cs | 643 +++ .../SymbolWriter/MonoSymbolTable.cs | 1446 ++++++ .../SymbolWriter/MonoSymbolWriter.cs | 238 + .../SymbolWriter/SourceMethodBuilder.cs | 246 ++ .../SymbolWriter/SymbolWriterImpl.cs | 352 ++ ModLoader/Mono/Disposable.cs | 45 + ModLoader/Mono/Empty.cs | 62 + ModLoader/Mono/MergeSort.cs | 66 + .../Security/Cryptography/CryptoConvert.cs | 253 ++ .../Security/Cryptography/CryptoService.cs | 158 + ModLoader/Mono/Type.cs | 137 + ModLoader/MonoMod/InlineRT/MonoModRule.cs | 96 + .../MonoMod/InlineRT/MonoModRulesManager.cs | 202 + .../MonoMod/InlineRT/MonoModRulesModder.cs | 23 + ModLoader/MonoMod/Modifiers/MonoModAdded.cs | 12 + .../MonoMod/Modifiers/MonoModConstructor.cs | 12 + .../Modifiers/MonoModCustomAttribute.cs | 25 + .../MonoMod/Modifiers/MonoModEnumReplace.cs | 12 + .../MonoMod/Modifiers/MonoModForceCall.cs | 12 + .../MonoMod/Modifiers/MonoModForceCallvirt.cs | 12 + ModLoader/MonoMod/Modifiers/MonoModHook.cs | 22 + ModLoader/MonoMod/Modifiers/MonoModIfFlag.cs | 16 + ModLoader/MonoMod/Modifiers/MonoModIgnore.cs | 12 + .../MonoMod/Modifiers/MonoModLinkFrom.cs | 21 + ModLoader/MonoMod/Modifiers/MonoModLinkTo.cs | 20 + ModLoader/MonoMod/Modifiers/MonoModNoNew.cs | 14 + .../MonoMod/Modifiers/MonoModOnPlatform.cs | 15 + .../MonoMod/Modifiers/MonoModOriginal.cs | 13 + .../MonoMod/Modifiers/MonoModOriginalName.cs | 14 + ModLoader/MonoMod/Modifiers/MonoModPatch.cs | 14 + ModLoader/MonoMod/Modifiers/MonoModPublic.cs | 12 + ModLoader/MonoMod/Modifiers/MonoModRemove.cs | 12 + ModLoader/MonoMod/Modifiers/MonoModReplace.cs | 15 + .../MonoMod/Modifiers/MonoModTargetModule.cs | 16 + .../Modifiers/MonoMod__SafeToCopy__.cs | 8 + .../Modifiers/MonoMod__WasIDictionary__.cs | 8 + ModLoader/MonoMod/MonoModder.cs | 2208 ++++++++++ ModLoader/MonoMod/Program.cs | 103 + ModLoader/MonoMod/RuntimeDetour/Detour.cs | 315 ++ .../MonoMod/RuntimeDetour/DetourHelper.cs | 246 ++ .../MonoMod/RuntimeDetour/DetourModManager.cs | 158 + .../RuntimeDetour/HarmonyDetourBridge.cs | 338 ++ ModLoader/MonoMod/RuntimeDetour/Hook.cs | 267 ++ .../RuntimeDetour/HookGen/HookEndpoint.cs | 200 + .../HookGen/HookEndpointManager.cs | 147 + .../RuntimeDetour/HookGen/HookGenerator.cs | 527 +++ .../MonoMod/RuntimeDetour/HookGen/Program.cs | 101 + ModLoader/MonoMod/RuntimeDetour/IDetour.cs | 15 + .../RuntimeDetour/IDetourNativePlatform.cs | 16 + .../RuntimeDetour/IDetourRuntimePlatform.cs | 16 + .../MonoMod/RuntimeDetour/NativeDetour.cs | 264 ++ .../Native/DetourNativeARMPlatform.cs | 198 + .../Native/DetourNativeMonoPlatform.cs | 95 + .../Native/DetourNativeMonoPosixPlatform.cs | 463 ++ .../Native/DetourNativeWindowsPlatform.cs | 71 + .../Native/DetourNativeX86Platform.cs | 127 + .../Runtime/DetourRuntimeILPlatform.cs | 170 + .../Runtime/DetourRuntimeMonoPlatform.cs | 56 + .../Runtime/DetourRuntimeNETPlatform.cs | 87 + ModLoader/MonoMod/Utils/Cil/ILContext.cs | 146 + ModLoader/MonoMod/Utils/Cil/ILCursor.cs | 528 +++ ModLoader/MonoMod/Utils/Cil/ILLabel.cs | 24 + .../MonoMod/Utils/Cil/ILPatternMatchingExt.cs | 2180 ++++++++++ ModLoader/MonoMod/Utils/Cil/ILReferenceBag.cs | 214 + ModLoader/MonoMod/Utils/DynData.cs | 162 + ModLoader/MonoMod/Utils/DynDll.cs | 263 ++ .../Utils/DynamicMethodDefinition.Cecil.cs | 187 + ...MethodDefinition.CopyMethodToDefinition.cs | 234 + ...odDefinition.CopyMethodToDefinition.nop.cs | 16 + ...MethodDefinition.Emit.CreateMethodProxy.cs | 84 + ...namicMethodDefinition.Emit.EmitCallSite.cs | 373 ++ .../Utils/DynamicMethodDefinition.Emit.cs | 495 +++ .../MonoMod/Utils/DynamicMethodDefinition.cs | 537 +++ .../MonoMod/Utils/DynamicMethodHelper.cs | 116 + ModLoader/MonoMod/Utils/Extensions.cs | 343 ++ .../MonoMod/Utils/FastReflectionHelper.cs | 166 + ModLoader/MonoMod/Utils/ILExt.cs | 132 + .../Utils/IgnoresAccessChecksToAttribute.cs | 9 + ModLoader/MonoMod/Utils/LimitedStream.cs | 201 + .../MonoMod/Utils/MMReflectionImporter.cs | 101 + .../MonoMod/Utils/ModInterop/ModExportName.cs | 15 + .../MonoMod/Utils/ModInterop/ModImportName.cs | 15 + .../Utils/ModInterop/ModInteropManager.cs | 85 + ModLoader/MonoMod/Utils/MonoModExt.cs | 1659 +++++++ ModLoader/MonoMod/Utils/MonoMod__OldName__.cs | 14 + ModLoader/MonoMod/Utils/NETStandardShims.cs | 88 + ModLoader/MonoMod/Utils/Platform.cs | 27 + ModLoader/MonoMod/Utils/PlatformHelper.cs | 120 + ModLoader/MonoMod/Utils/ReflectionHelper.cs | 278 ++ .../MonoMod/Utils/RelinkFailedException.cs | 55 + .../Utils/RelinkTargetNotFoundException.cs | 28 + .../MonoMod/Utils/StringInjectExtension.cs | 73 + .../Utils/UtilsCil/CecilILGenerator.cs | 256 ++ .../Utils/UtilsCil/ILGeneratorShim.Proxy.cs | 148 + .../MonoMod/Utils/UtilsCil/ILGeneratorShim.cs | 52 + .../MonoMod/Utils/WeakReferenceComparer.cs | 14 + .../Newtonsoft.Json/Bson/BsonBinaryType.cs | 44 + .../Newtonsoft.Json/Bson/BsonBinaryWriter.cs | 328 ++ .../Newtonsoft.Json/Bson/BsonObjectId.cs | 58 + ModLoader/Newtonsoft.Json/Bson/BsonReader.cs | 834 ++++ ModLoader/Newtonsoft.Json/Bson/BsonToken.cs | 166 + ModLoader/Newtonsoft.Json/Bson/BsonType.cs | 51 + ModLoader/Newtonsoft.Json/Bson/BsonWriter.cs | 537 +++ .../Newtonsoft.Json/ConstructorHandling.cs | 43 + .../Converters/BinaryConverter.cs | 208 + .../Converters/BsonObjectIdConverter.cs | 91 + .../Converters/CustomCreationConverter.cs | 101 + .../Converters/DataSetConverter.cs | 125 + .../Converters/DataTableConverter.cs | 254 ++ .../Converters/DateTimeConverterBase.cs | 58 + .../Converters/DiscriminatedUnionConverter.cs | 280 ++ .../Converters/EntityKeyMemberConverter.cs | 156 + .../Converters/ExpandoObjectConverter.cs | 165 + .../Converters/IsoDateTimeConverter.cs | 194 + .../Converters/JavaScriptDateTimeConverter.cs | 111 + .../Converters/KeyValuePairConverter.cs | 153 + .../Converters/RegexConverter.cs | 235 + .../Converters/StringEnumConverter.cs | 276 ++ .../Converters/UnixDateTimeConverter.cs | 132 + .../Converters/VersionConverter.cs | 106 + .../Converters/XmlNodeConverter.cs | 2217 ++++++++++ .../Newtonsoft.Json/DateFormatHandling.cs | 43 + .../Newtonsoft.Json/DateParseHandling.cs | 49 + .../Newtonsoft.Json/DateTimeZoneHandling.cs | 56 + .../Newtonsoft.Json/DefaultJsonNameTable.cs | 197 + .../Newtonsoft.Json/DefaultValueHandling.cs | 67 + ModLoader/Newtonsoft.Json/Dynamic.snk | Bin 0 -> 596 bytes .../Newtonsoft.Json/FloatFormatHandling.cs | 52 + .../Newtonsoft.Json/FloatParseHandling.cs | 43 + .../Newtonsoft.Json/FormatterAssemblyStyle.cs | 24 + ModLoader/Newtonsoft.Json/Formatting.cs | 43 + ModLoader/Newtonsoft.Json/IArrayPool.cs | 22 + ModLoader/Newtonsoft.Json/IJsonLineInfo.cs | 53 + .../Newtonsoft.Json/JsonArrayAttribute.cs | 73 + .../JsonConstructorAttribute.cs | 37 + .../Newtonsoft.Json/JsonContainerAttribute.cs | 180 + ModLoader/Newtonsoft.Json/JsonConvert.cs | 1084 +++++ ModLoader/Newtonsoft.Json/JsonConverter.cs | 147 + .../Newtonsoft.Json/JsonConverterAttribute.cs | 77 + .../JsonConverterCollection.cs | 39 + .../JsonDictionaryAttribute.cs | 52 + ModLoader/Newtonsoft.Json/JsonException.cs | 92 + .../JsonExtensionDataAttribute.cs | 37 + .../Newtonsoft.Json/JsonIgnoreAttribute.cs | 39 + ModLoader/Newtonsoft.Json/JsonNameTable.cs | 17 + .../Newtonsoft.Json/JsonObjectAttribute.cs | 100 + ModLoader/Newtonsoft.Json/JsonPosition.cs | 177 + .../Newtonsoft.Json/JsonPropertyAttribute.cs | 223 + ModLoader/Newtonsoft.Json/JsonReader.Async.cs | 246 ++ ModLoader/Newtonsoft.Json/JsonReader.cs | 1276 ++++++ .../Newtonsoft.Json/JsonReaderException.cs | 148 + .../Newtonsoft.Json/JsonRequiredAttribute.cs | 39 + .../JsonSerializationException.cs | 148 + ModLoader/Newtonsoft.Json/JsonSerializer.cs | 1229 ++++++ .../Newtonsoft.Json/JsonSerializerSettings.cs | 455 ++ .../Newtonsoft.Json/JsonTextReader.Async.cs | 1768 ++++++++ ModLoader/Newtonsoft.Json/JsonTextReader.cs | 2599 +++++++++++ .../Newtonsoft.Json/JsonTextWriter.Async.cs | 1357 ++++++ ModLoader/Newtonsoft.Json/JsonTextWriter.cs | 915 ++++ ModLoader/Newtonsoft.Json/JsonToken.cs | 127 + .../Newtonsoft.Json/JsonValidatingReader.cs | 1023 +++++ ModLoader/Newtonsoft.Json/JsonWriter.Async.cs | 1797 ++++++++ ModLoader/Newtonsoft.Json/JsonWriter.cs | 1781 ++++++++ .../Newtonsoft.Json/JsonWriterException.cs | 114 + .../Newtonsoft.Json/Linq/CommentHandling.cs | 43 + .../Linq/DuplicatePropertyNameHandling.cs | 46 + ModLoader/Newtonsoft.Json/Linq/Extensions.cs | 330 ++ .../Newtonsoft.Json/Linq/IJEnumerable.cs | 46 + .../Newtonsoft.Json/Linq/JArray.Async.cs | 103 + ModLoader/Newtonsoft.Json/Linq/JArray.cs | 398 ++ .../Linq/JConstructor.Async.cs | 106 + .../Newtonsoft.Json/Linq/JConstructor.cs | 245 ++ .../Newtonsoft.Json/Linq/JContainer.Async.cs | 169 + ModLoader/Newtonsoft.Json/Linq/JContainer.cs | 1203 +++++ ModLoader/Newtonsoft.Json/Linq/JEnumerable.cs | 140 + .../Newtonsoft.Json/Linq/JObject.Async.cs | 129 + ModLoader/Newtonsoft.Json/Linq/JObject.cs | 849 ++++ .../Newtonsoft.Json/Linq/JProperty.Async.cs | 118 + ModLoader/Newtonsoft.Json/Linq/JProperty.cs | 385 ++ .../Linq/JPropertyDescriptor.cs | 156 + .../Linq/JPropertyKeyedCollection.cs | 282 ++ ModLoader/Newtonsoft.Json/Linq/JRaw.Async.cs | 57 + ModLoader/Newtonsoft.Json/Linq/JRaw.cs | 75 + .../Newtonsoft.Json/Linq/JToken.Async.cs | 178 + ModLoader/Newtonsoft.Json/Linq/JToken.cs | 2695 ++++++++++++ .../Linq/JTokenEqualityComparer.cs | 64 + .../Newtonsoft.Json/Linq/JTokenReader.cs | 339 ++ ModLoader/Newtonsoft.Json/Linq/JTokenType.cs | 123 + .../Linq/JTokenWriter.Async.cs | 53 + .../Newtonsoft.Json/Linq/JTokenWriter.cs | 532 +++ .../Newtonsoft.Json/Linq/JValue.Async.cs | 138 + ModLoader/Newtonsoft.Json/Linq/JValue.cs | 1175 +++++ .../Newtonsoft.Json/Linq/JsonLoadSettings.cs | 81 + .../Newtonsoft.Json/Linq/JsonMergeSettings.cs | 103 + .../Linq/JsonPath/ArrayIndexFilter.cs | 44 + .../Linq/JsonPath/ArrayMultipleIndexFilter.cs | 25 + .../Linq/JsonPath/ArraySliceFilter.cs | 87 + .../Linq/JsonPath/FieldFilter.cs | 48 + .../Linq/JsonPath/FieldMultipleFilter.cs | 51 + .../Newtonsoft.Json/Linq/JsonPath/JPath.cs | 903 ++++ .../Linq/JsonPath/PathFilter.cs | 81 + .../Linq/JsonPath/QueryExpression.cs | 306 ++ .../Linq/JsonPath/QueryFilter.cs | 24 + .../Linq/JsonPath/QueryScanFilter.cs | 34 + .../Linq/JsonPath/RootFilter.cs | 18 + .../Linq/JsonPath/ScanFilter.cs | 48 + .../Linq/JsonPath/ScanMultipleFilter.cs | 40 + .../Newtonsoft.Json/Linq/LineInfoHandling.cs | 43 + .../Linq/MergeArrayHandling.cs | 20 + .../Linq/MergeNullValueHandling.cs | 21 + .../Newtonsoft.Json/MemberSerialization.cs | 58 + .../MetadataPropertyHandling.cs | 52 + .../Newtonsoft.Json/MissingMemberHandling.cs | 47 + .../Newtonsoft.Json/Newtonsoft.Json.ruleset | 15 + .../Newtonsoft.Json/NullValueHandling.cs | 47 + .../Newtonsoft.Json/ObjectCreationHandling.cs | 48 + .../PreserveReferencesHandling.cs | 62 + .../Newtonsoft.Json/ReferenceLoopHandling.cs | 52 + ModLoader/Newtonsoft.Json/Required.cs | 53 + .../Newtonsoft.Json/Schema/Extensions.cs | 137 + .../Newtonsoft.Json/Schema/JsonSchema.cs | 353 ++ .../Schema/JsonSchemaBuilder.cs | 487 +++ .../Schema/JsonSchemaConstants.cs | 80 + .../Schema/JsonSchemaException.cs | 113 + .../Schema/JsonSchemaGenerator.cs | 502 +++ .../Newtonsoft.Json/Schema/JsonSchemaModel.cs | 125 + .../Schema/JsonSchemaModelBuilder.cs | 211 + .../Newtonsoft.Json/Schema/JsonSchemaNode.cs | 85 + .../Schema/JsonSchemaNodeCollection.cs | 39 + .../Schema/JsonSchemaResolver.cs | 79 + .../Newtonsoft.Json/Schema/JsonSchemaType.cs | 87 + .../Schema/JsonSchemaWriter.cs | 258 ++ .../Schema/UndefinedSchemaIdHandling.cs | 56 + .../Schema/ValidationEventArgs.cs | 68 + .../Schema/ValidationEventHandler.cs | 40 + .../Serialization/CachedAttributeGetter.cs | 41 + .../Serialization/CamelCaseNamingStrategy.cs | 87 + .../CamelCasePropertyNamesContractResolver.cs | 94 + .../Serialization/DefaultContractResolver.cs | 1722 ++++++++ .../Serialization/DefaultNamingStrategy.cs | 18 + .../Serialization/DefaultReferenceResolver.cs | 83 + .../DefaultSerializationBinder.cs | 215 + .../Serialization/DiagnosticsTraceWriter.cs | 79 + .../Serialization/DynamicValueProvider.cs | 120 + .../Serialization/ErrorContext.cs | 75 + .../Serialization/ErrorEventArgs.cs | 58 + .../Serialization/ExpressionValueProvider.cs | 121 + .../Serialization/FormatterConverter.cs | 117 + .../Serialization/IAttributeProvider.cs | 51 + .../Serialization/IContractResolver.cs | 46 + .../Serialization/IReferenceResolver.cs | 67 + .../Serialization/ISerializationBinder.cs | 53 + .../Serialization/ITraceWriter.cs | 28 + .../Serialization/IValueProvider.cs | 47 + .../Serialization/JsonArrayContract.cs | 319 ++ .../Serialization/JsonContainerContract.cs | 117 + .../Serialization/JsonContract.cs | 325 ++ .../Serialization/JsonDictionaryContract.cs | 245 ++ .../Serialization/JsonDynamicContract.cs | 116 + .../Serialization/JsonFormatterConverter.cs | 160 + .../JsonISerializableContract.cs | 55 + .../Serialization/JsonLinqContract.cs | 45 + .../Serialization/JsonObjectContract.cs | 193 + .../Serialization/JsonPrimitiveContract.cs | 75 + .../Serialization/JsonProperty.cs | 318 ++ .../Serialization/JsonPropertyCollection.cs | 185 + .../JsonSerializerInternalBase.cs | 159 + .../JsonSerializerInternalReader.cs | 2603 +++++++++++ .../JsonSerializerInternalWriter.cs | 1223 ++++++ .../Serialization/JsonSerializerProxy.cs | 289 ++ .../Serialization/JsonStringContract.cs | 45 + .../Serialization/JsonTypeReflector.cs | 531 +++ .../Serialization/MemoryTraceWriter.cs | 100 + .../Serialization/NamingStrategy.cs | 146 + .../Serialization/ObjectConstructor.cs | 33 + .../Serialization/OnErrorAttribute.cs | 37 + .../ReflectionAttributeProvider.cs | 71 + .../Serialization/ReflectionValueProvider.cs | 90 + .../SerializationBinderAdapter.cs | 59 + .../Serialization/SnakeCaseNamingStrategy.cs | 87 + .../Serialization/TraceJsonReader.cs | 157 + .../Serialization/TraceJsonWriter.cs | 598 +++ .../Newtonsoft.Json/SerializationBinder.cs | 36 + .../Newtonsoft.Json/StringEscapeHandling.cs | 48 + ModLoader/Newtonsoft.Json/TraceLevel.cs | 39 + .../TypeNameAssemblyFormatHandling.cs | 43 + ModLoader/Newtonsoft.Json/TypeNameHandling.cs | 70 + .../Newtonsoft.Json/Utilities/AsyncUtils.cs | 108 + .../Utilities/Base64Encoder.cs | 217 + .../Utilities/BidirectionalDictionary.cs | 94 + .../Utilities/CollectionUtils.cs | 389 ++ .../Utilities/CollectionWrapper.cs | 320 ++ .../Newtonsoft.Json/Utilities/ConvertUtils.cs | 1569 +++++++ .../Utilities/DateTimeParser.cs | 277 ++ .../Utilities/DateTimeUtils.cs | 825 ++++ .../Utilities/DictionaryWrapper.cs | 698 +++ .../Newtonsoft.Json/Utilities/DynamicProxy.cs | 109 + .../Utilities/DynamicProxyMetaObject.cs | 391 ++ .../DynamicReflectionDelegateFactory.cs | 401 ++ .../Newtonsoft.Json/Utilities/DynamicUtils.cs | 210 + .../Newtonsoft.Json/Utilities/EnumInfo.cs | 43 + .../Newtonsoft.Json/Utilities/EnumUtils.cs | 401 ++ .../ExpressionReflectionDelegateFactory.cs | 383 ++ .../Newtonsoft.Json/Utilities/FSharpUtils.cs | 195 + .../Utilities/ILGeneratorExtensions.cs | 98 + .../Utilities/ImmutableCollectionsUtils.cs | 181 + .../Utilities/JavaScriptUtils.cs | 653 +++ .../Utilities/JsonTokenUtils.cs | 74 + .../LateBoundReflectionDelegateFactory.cs | 110 + .../Newtonsoft.Json/Utilities/LinqBridge.cs | 3071 +++++++++++++ .../Newtonsoft.Json/Utilities/MathUtils.cs | 187 + .../Newtonsoft.Json/Utilities/MethodBinder.cs | 346 ++ .../Newtonsoft.Json/Utilities/MethodCall.cs | 29 + .../Utilities/MiscellaneousUtils.cs | 165 + .../Utilities/ReflectionDelegateFactory.cs | 83 + .../Utilities/ReflectionObject.cs | 156 + .../Utilities/ReflectionUtils.cs | 1092 +++++ .../Newtonsoft.Json/Utilities/StringBuffer.cs | 116 + .../Utilities/StringReference.cs | 111 + .../Newtonsoft.Json/Utilities/StringUtils.cs | 344 ++ .../Utilities/StructMultiKey.cs | 61 + .../Utilities/ThreadSafeStore.cs | 109 + .../Utilities/TypeExtensions.cs | 632 +++ .../Utilities/ValidationUtils.cs | 40 + ModLoader/Newtonsoft.Json/WriteState.cs | 72 + ModLoader/Options/ModOptionsCheckbox.cs | 34 + ModLoader/Options/ModOptionsSlider.cs | 34 + ModLoader/Properties/AndroidManifest.xml | 36 + ModLoader/Properties/AssemblyInfo.cs | 41 + ModLoader/Resources/AboutResources.txt | 44 + ModLoader/Resources/Drawable/Splash.png | Bin 0 -> 31038 bytes ModLoader/Resources/Drawable/icon.png | Bin 0 -> 1356 bytes ModLoader/Resources/Layout/layout_main.axml | 53 + .../Resources/Layout/layout_mod_list.axml | 21 + ModLoader/Resources/Raw/SMDroidFiles.zip | Bin 0 -> 619307 bytes ModLoader/Resources/Resource.Designer.cs | 793 ++++ ModLoader/Resources/Values-zh-rCN/Strings.xml | 20 + ModLoader/Resources/Values/Strings.xml | 20 + ModLoader/Resources/Values/Styles.xml | 7 + ModLoader/Resources/Xml/file_paths.xml | 4 + ModLoader/SMAPI/Constants.cs | 250 ++ ModLoader/SMAPI/ContentSource.cs | 12 + ModLoader/SMAPI/Context.cs | 50 + ModLoader/SMAPI/Enums/LoadStage.cs | 36 + ModLoader/SMAPI/Enums/SkillType.cs | 26 + .../SMAPI/Events/Display/GraphicsEvents.cs | 120 + .../SMAPI/Events/Display/IDisplayEvents.cs | 39 + .../Display/RenderedActiveMenuEventArgs.cs | 16 + .../SMAPI/Events/Display/RenderedEventArgs.cs | 16 + .../Events/Display/RenderedHudEventArgs.cs | 16 + .../Events/Display/RenderedWorldEventArgs.cs | 16 + .../Display/RenderingActiveMenuEventArgs.cs | 16 + .../Events/Display/RenderingEventArgs.cs | 16 + .../Events/Display/RenderingHudEventArgs.cs | 16 + .../Events/Display/RenderingWorldEventArgs.cs | 16 + .../Events/Display/WindowResizedEventArgs.cs | 31 + .../Events/GameLoop/DayEndingEventArgs.cs | 7 + .../Events/GameLoop/DayStartedEventArgs.cs | 7 + ModLoader/SMAPI/Events/GameLoop/GameEvents.cs | 122 + .../Events/GameLoop/GameLaunchedEventArgs.cs | 7 + .../SMAPI/Events/GameLoop/IGameLoopEvents.cs | 50 + .../OneSecondUpdateTickedEventArgs.cs | 26 + .../OneSecondUpdateTickingEventArgs.cs | 26 + .../GameLoop/ReturnedToTitleEventArgs.cs | 7 + .../Events/GameLoop/SaveCreatedEventArgs.cs | 7 + .../Events/GameLoop/SaveCreatingEventArgs.cs | 7 + ModLoader/SMAPI/Events/GameLoop/SaveEvents.cs | 100 + .../Events/GameLoop/SaveLoadedEventArgs.cs | 7 + .../SMAPI/Events/GameLoop/SavedEventArgs.cs | 7 + .../SMAPI/Events/GameLoop/SavingEventArgs.cs | 7 + .../Events/GameLoop/TimeChangedEventArgs.cs | 30 + ModLoader/SMAPI/Events/GameLoop/TimeEvents.cs | 56 + .../Events/GameLoop/UpdateTickedEventArgs.cs | 29 + .../Events/GameLoop/UpdateTickingEventArgs.cs | 29 + ModLoader/SMAPI/Events/IModEvents.cs | 27 + .../Events/Input/ButtonPressedEventArgs.cs | 60 + .../Events/Input/ButtonReleasedEventArgs.cs | 60 + ModLoader/SMAPI/Events/Input/ControlEvents.cs | 123 + .../Events/Input/CursorMovedEventArgs.cs | 30 + .../Input/EventArgsControllerButtonPressed.cs | 34 + .../EventArgsControllerButtonReleased.cs | 34 + .../EventArgsControllerTriggerPressed.cs | 39 + .../EventArgsControllerTriggerReleased.cs | 39 + .../SMAPI/Events/Input/EventArgsInput.cs | 64 + .../SMAPI/Events/Input/EventArgsKeyPressed.cs | 28 + .../Input/EventArgsKeyboardStateChanged.cs | 33 + .../Input/EventArgsMouseStateChanged.cs | 44 + ModLoader/SMAPI/Events/Input/IInputEvents.cs | 20 + ModLoader/SMAPI/Events/Input/InputEvents.cs | 56 + .../Input/MouseWheelScrolledEventArgs.cs | 38 + .../Menu/EventArgsClickableMenuChanged.cs | 33 + .../Menu/EventArgsClickableMenuClosed.cs | 28 + .../SMAPI/Events/Menu/MenuChangedEventArgs.cs | 31 + ModLoader/SMAPI/Events/Menu/MenuEvents.cs | 56 + .../Events/Mine/EventArgsMineLevelChanged.cs | 32 + ModLoader/SMAPI/Events/Mine/MineEvents.cs | 45 + .../Events/Multiplayer/IMultiplayerEvents.cs | 17 + .../ModMessageReceivedEventArgs.cs | 46 + .../Events/Multiplayer/MultiplayerEvents.cs | 78 + .../PeerContextReceivedEventArgs.cs | 25 + .../Multiplayer/PeerDisconnectedEventArgs.cs | 25 + .../Player/EventArgsInventoryChanged.cs | 43 + .../SMAPI/Events/Player/EventArgsLevelUp.cs | 55 + .../Events/Player/EventArgsPlayerWarped.cs | 34 + .../SMAPI/Events/Player/IPlayerEvents.cs | 17 + .../Player/InventoryChangedEventArgs.cs | 59 + .../SMAPI/Events/Player/ItemStackChange.cs | 20 + .../Events/Player/ItemStackSizeChange.cs | 35 + .../Events/Player/LevelChangedEventArgs.cs | 45 + ModLoader/SMAPI/Events/Player/PlayerEvents.cs | 68 + .../SMAPI/Events/Player/WarpedEventArgs.cs | 40 + .../SMAPI/Events/Specialised/ContentEvents.cs | 45 + .../Events/Specialised/EventArgsIntChanged.cs | 32 + .../Specialised/EventArgsValueChanged.cs | 33 + .../Events/Specialised/ISpecialisedEvents.cs | 17 + .../Specialised/LoadStageChangedEventArgs.cs | 31 + .../Events/Specialised/SpecialisedEvents.cs | 45 + .../UnvalidatedUpdateTickedEventArgs.cs | 29 + .../UnvalidatedUpdateTickingEventArgs.cs | 29 + .../World/BuildingListChangedEventArgs.cs | 42 + ModLoader/SMAPI/Events/World/ChangeType.cs | 15 + .../World/DebrisListChangedEventArgs.cs | 41 + .../EventArgsLocationBuildingsChanged.cs | 41 + .../World/EventArgsLocationObjectsChanged.cs | 42 + .../Events/World/EventArgsLocationsChanged.cs | 35 + ModLoader/SMAPI/Events/World/IWorldEvents.cs | 29 + ...LargeTerrainFeatureListChangedEventArgs.cs | 42 + .../SMAPI/Events/World/LocationEvents.cs | 67 + .../World/LocationListChangedEventArgs.cs | 33 + .../Events/World/NpcListChangedEventArgs.cs | 41 + .../World/ObjectListChangedEventArgs.cs | 43 + .../TerrainFeatureListChangedEventArgs.cs | 43 + ModLoader/SMAPI/Framework/Command.cs | 40 + ModLoader/SMAPI/Framework/CommandManager.cs | 153 + .../SMAPI/Framework/Content/AssetData.cs | 54 + .../Content/AssetDataForDictionary.cs | 54 + .../Framework/Content/AssetDataForImage.cs | 106 + .../Framework/Content/AssetDataForObject.cs | 54 + .../SMAPI/Framework/Content/AssetInfo.cs | 82 + .../SMAPI/Framework/Content/ContentCache.cs | 137 + .../SMAPI/Framework/ContentCoordinator.cs | 328 ++ .../ContentManagers/BaseContentManager.cs | 303 ++ .../ContentManagers/GameContentManager.cs | 357 ++ .../ContentManagers/IContentManager.cs | 86 + .../ContentManagers/ModContentManager.cs | 284 ++ ModLoader/SMAPI/Framework/ContentPack.cs | 123 + ModLoader/SMAPI/Framework/CursorPosition.cs | 47 + ModLoader/SMAPI/Framework/DeprecationLevel.cs | 15 + .../SMAPI/Framework/DeprecationManager.cs | 168 + .../SMAPI/Framework/DeprecationWarning.cs | 43 + .../SMAPI/Framework/Events/EventManager.cs | 493 +++ .../SMAPI/Framework/Events/ManagedEvent.cs | 247 ++ .../Framework/Events/ManagedEventBase.cs | 93 + .../Framework/Events/ModDisplayEvents.cs | 93 + ModLoader/SMAPI/Framework/Events/ModEvents.cs | 50 + .../SMAPI/Framework/Events/ModEventsBase.cs | 28 + .../Framework/Events/ModGameLoopEvents.cs | 121 + .../SMAPI/Framework/Events/ModInputEvents.cs | 50 + .../Framework/Events/ModMultiplayerEvents.cs | 43 + .../SMAPI/Framework/Events/ModPlayerEvents.cs | 43 + .../Framework/Events/ModSpecialisedEvents.cs | 43 + .../SMAPI/Framework/Events/ModWorldEvents.cs | 71 + .../SAssemblyLoadFailedException.cs | 16 + .../Exceptions/SContentLoadException.cs | 18 + ModLoader/SMAPI/Framework/GameVersion.cs | 69 + ModLoader/SMAPI/Framework/IModMetadata.cs | 112 + .../Framework/Input/GamePadStateBuilder.cs | 162 + .../SMAPI/Framework/Input/InputStatus.cs | 29 + .../SMAPI/Framework/Input/SInputState.cs | 389 ++ .../SMAPI/Framework/InternalExtensions.cs | 106 + .../Logging/ConsoleInterceptionManager.cs | 59 + .../Logging/InterceptingTextWriter.cs | 63 + .../SMAPI/Framework/Logging/LogFileManager.cs | 57 + .../SMAPI/Framework/ModHelpers/BaseHelper.cs | 23 + .../Framework/ModHelpers/CommandHelper.cs | 53 + .../Framework/ModHelpers/ContentHelper.cs | 381 ++ .../Framework/ModHelpers/ContentPackHelper.cs | 82 + .../SMAPI/Framework/ModHelpers/DataHelper.cs | 166 + .../SMAPI/Framework/ModHelpers/InputHelper.cs | 54 + .../SMAPI/Framework/ModHelpers/ModHelper.cs | 188 + .../Framework/ModHelpers/ModRegistryHelper.cs | 105 + .../Framework/ModHelpers/MultiplayerHelper.cs | 76 + .../Framework/ModHelpers/ReflectionHelper.cs | 156 + .../Framework/ModHelpers/TranslationHelper.cs | 140 + .../ModLoading/AssemblyDefinitionResolver.cs | 53 + .../ModLoading/AssemblyLoadStatus.cs | 15 + .../Framework/ModLoading/AssemblyLoader.cs | 408 ++ .../ModLoading/AssemblyParseResult.cs | 36 + .../ModLoading/Finders/EventFinder.cs | 82 + .../ModLoading/Finders/FieldFinder.cs | 82 + .../ModLoading/Finders/MethodFinder.cs | 82 + .../ModLoading/Finders/PropertyFinder.cs | 82 + ...ferenceToMemberWithUnexpectedTypeFinder.cs | 139 + .../Finders/ReferenceToMissingMemberFinder.cs | 112 + .../ModLoading/Finders/TypeFinder.cs | 139 + .../ModLoading/IInstructionHandler.cs | 34 + .../IncompatibleInstructionException.cs | 20 + .../ModLoading/InstructionHandleResult.cs | 35 + .../ModLoading/InvalidModStateException.cs | 14 + .../ModLoading/ModDependencyStatus.cs | 18 + .../SMAPI/Framework/ModLoading/ModMetadata.cs | 200 + .../Framework/ModLoading/ModMetadataStatus.cs | 12 + .../SMAPI/Framework/ModLoading/ModResolver.cs | 449 ++ .../ModLoading/PlatformAssemblyMap.cs | 80 + .../Framework/ModLoading/RewriteHelper.cs | 110 + .../ModLoading/RewriteIgnoreConfig.cs | 13 + .../Rewriters/FieldReplaceRewriter.cs | 50 + .../Rewriters/FieldToPropertyRewriter.cs | 59 + .../Rewriters/MethodParentRewriter.cs | 88 + .../StaticFieldToConstantRewriter.cs | 63 + .../Rewriters/TypeReferenceRewriter.cs | 152 + .../ModLoading/TypeReferenceComparer.cs | 201 + ModLoader/SMAPI/Framework/ModRegistry.cs | 115 + .../SMAPI/Framework/Models/ModFolderExport.cs | 21 + ModLoader/SMAPI/Framework/Models/SConfig.cs | 46 + ModLoader/SMAPI/Framework/Monitor.cs | 167 + .../SMAPI/Framework/Networking/MessageType.cs | 26 + .../Framework/Networking/ModMessageModel.cs | 72 + .../Framework/Networking/MultiplayerPeer.cs | 84 + .../Networking/MultiplayerPeerMod.cs | 30 + .../Networking/RemoteContextModModel.cs | 15 + .../Networking/RemoteContextModel.cs | 24 + .../SMAPI/Framework/Patching/GamePatcher.cs | 45 + .../SMAPI/Framework/Patching/IHarmonyPatch.cs | 15 + .../SMAPI/Framework/Reflection/CacheEntry.cs | 30 + .../Reflection/InterfaceProxyBuilder.cs | 118 + .../Reflection/InterfaceProxyFactory.cs | 58 + .../Framework/Reflection/ReflectedField.cs | 93 + .../Framework/Reflection/ReflectedMethod.cs | 99 + .../Framework/Reflection/ReflectedProperty.cs | 105 + .../SMAPI/Framework/Reflection/Reflector.cs | 276 ++ .../SMAPI/Framework/RequestExitDelegate.cs | 7 + .../Framework/RewriteFacades/FarmerMethods.cs | 18 + .../Framework/RewriteFacades/Game1Methods.cs | 35 + .../RewriteFacades/IClickableMenuMethods.cs | 35 + .../RewriteFacades/SpriteBatchMethods.cs | 61 + ModLoader/SMAPI/Framework/SCore.cs | 1442 ++++++ ModLoader/SMAPI/Framework/SGame.cs | 2031 +++++++++ .../SMAPI/Framework/SGameConstructorHack.cs | 43 + ModLoader/SMAPI/Framework/SModHooks.cs | 34 + ModLoader/SMAPI/Framework/SMultiplayer.cs | 533 +++ .../Framework/Serialisation/ColorConverter.cs | 47 + .../Framework/Serialisation/PointConverter.cs | 43 + .../Serialisation/RectangleConverter.cs | 52 + ModLoader/SMAPI/Framework/Singleton.cs | 10 + .../Comparers/EquatableComparer.cs | 32 + .../Comparers/GenericEqualsComparer.cs | 31 + .../Comparers/ObjectReferenceComparer.cs | 29 + .../FieldWatchers/BaseDisposableWatcher.cs | 36 + .../FieldWatchers/ComparableListWatcher.cs | 83 + .../FieldWatchers/ComparableWatcher.cs | 63 + .../FieldWatchers/NetCollectionWatcher.cs | 94 + .../FieldWatchers/NetDictionaryWatcher.cs | 103 + .../FieldWatchers/NetValueWatcher.cs | 85 + .../ObservableCollectionWatcher.cs | 87 + .../FieldWatchers/WatcherFactory.cs | 87 + .../StateTracking/ICollectionWatcher.cs | 17 + .../StateTracking/IDictionaryWatcher.cs | 7 + .../Framework/StateTracking/IValueWatcher.cs | 15 + .../SMAPI/Framework/StateTracking/IWatcher.cs | 24 + .../StateTracking/LocationTracker.cs | 103 + .../Framework/StateTracking/PlayerTracker.cs | 171 + .../StateTracking/WorldLocationsTracker.cs | 243 ++ .../SMAPI/Framework/Utilities/ContextHash.cs | 61 + .../SMAPI/Framework/Utilities/Countdown.cs | 44 + ModLoader/SMAPI/Framework/WatcherCore.cs | 120 + ModLoader/SMAPI/GamePlatform.cs | 20 + ModLoader/SMAPI/IAssetData.cs | 47 + ModLoader/SMAPI/IAssetDataForDictionary.cs | 7 + ModLoader/SMAPI/IAssetDataForImage.cs | 23 + ModLoader/SMAPI/IAssetEditor.cs | 17 + ModLoader/SMAPI/IAssetInfo.cs | 28 + ModLoader/SMAPI/IAssetLoader.cs | 17 + ModLoader/SMAPI/ICommandHelper.cs | 26 + ModLoader/SMAPI/IContentHelper.cs | 68 + ModLoader/SMAPI/IContentPack.cs | 57 + ModLoader/SMAPI/IContentPackHelper.cs | 27 + ModLoader/SMAPI/ICursorPosition.cs | 21 + ModLoader/SMAPI/IDataHelper.cs | 61 + ModLoader/SMAPI/IInputHelper.cs | 21 + ModLoader/SMAPI/IMod.cs | 46 + ModLoader/SMAPI/IModHelper.cs | 98 + ModLoader/SMAPI/IModInfo.cs | 12 + ModLoader/SMAPI/IModLinked.cs | 12 + ModLoader/SMAPI/IModRegistry.cs | 29 + ModLoader/SMAPI/IMonitor.cs | 32 + ModLoader/SMAPI/IMultiplayerHelper.cs | 33 + ModLoader/SMAPI/IMultiplayerPeer.cs | 41 + ModLoader/SMAPI/IMultiplayerPeerMod.cs | 15 + ModLoader/SMAPI/IReflectedField.cs | 26 + ModLoader/SMAPI/IReflectedMethod.cs | 27 + ModLoader/SMAPI/IReflectedProperty.cs | 26 + ModLoader/SMAPI/IReflectionHelper.cs | 51 + ModLoader/SMAPI/ITranslationHelper.cs | 34 + .../ConsoleWriting/ColorfulConsoleWriter.cs | 138 + .../SMAPI/Internal/ConsoleWriting/LogLevel.cs | 30 + .../ConsoleWriting/MonitorColorScheme.cs | 15 + .../SMAPI/Internal/EnvironmentUtility.cs | 112 + ModLoader/SMAPI/Internal/Platform.cs | 18 + ModLoader/SMAPI/LogLevel.cs | 26 + .../SMAPI/Metadata/CoreAssetPropagator.cs | 750 ++++ .../SMAPI/Metadata/InstructionMetadata.cs | 108 + ModLoader/SMAPI/Mod.cs | 85 + ModLoader/SMAPI/PatchMode.cs | 12 + ModLoader/SMAPI/Patches/DialogueErrorPatch.cs | 100 + .../SMAPI/Patches/LoadForNewGamePatch.cs | 110 + ModLoader/SMAPI/Patches/ObjectErrorPatch.cs | 77 + ModLoader/SMAPI/Program.cs | 159 + ModLoader/SMAPI/SButton.cs | 702 +++ ModLoader/SMAPI/SemanticVersion.cs | 170 + ModLoader/SMAPI/StardewModdingAPI.config.json | 77 + ModLoader/SMAPI/StardewModdingAPI.csproj | 359 ++ .../SMAPI/Toolkit/CoreInterfaces/IManifest.cs | 44 + .../CoreInterfaces/IManifestContentPackFor.cs | 12 + .../CoreInterfaces/IManifestDependency.cs | 18 + .../CoreInterfaces/ISemanticVersion.cs | 68 + .../Framework/ModData/MetadataModel.cs | 14 + .../Toolkit/Framework/ModData/ModDataField.cs | 82 + .../Framework/ModData/ModDataFieldKey.cs | 18 + .../Toolkit/Framework/ModData/ModDataModel.cs | 127 + .../Framework/ModData/ModDataRecord.cs | 147 + .../ModData/ModDataRecordVersionedFields.cs | 54 + .../Toolkit/Framework/ModData/ModDatabase.cs | 65 + .../Toolkit/Framework/ModData/ModStatus.cs | 18 + .../Toolkit/Framework/ModData/ModWarning.cs | 36 + .../Framework/ModScanning/ModFolder.cs | 64 + .../Framework/ModScanning/ModScanner.cs | 183 + .../Framework/UpdateData/ModRepositoryKey.cs | 21 + .../Toolkit/Framework/UpdateData/UpdateKey.cs | 73 + ModLoader/SMAPI/Toolkit/ModToolkit.cs | 89 + ModLoader/SMAPI/Toolkit/SemanticVersion.cs | 312 ++ .../ManifestContentPackForConverter.cs | 50 + .../ManifestDependencyArrayConverter.cs | 60 + .../Converters/SemanticVersionConverter.cs | 98 + .../Converters/SimpleReadOnlyConverter.cs | 76 + .../Serialisation/InternalExtensions.cs | 21 + .../SMAPI/Toolkit/Serialisation/JsonHelper.cs | 136 + .../Toolkit/Serialisation/Models/Manifest.cs | 74 + .../Models/ManifestContentPackFor.cs | 15 + .../Models/ManifestDependency.cs | 35 + .../Toolkit/Serialisation/SParseException.cs | 17 + .../SMAPI/Toolkit/Utilities/FileUtilities.cs | 46 + .../SMAPI/Toolkit/Utilities/PathUtilities.cs | 85 + ModLoader/SMAPI/Translation.cs | 154 + ModLoader/SMAPI/Utilities/SDate.cs | 268 ++ ModLoader/SMAPI/steam_appid.txt | 1 + ModLoader/SMainActivity.cs | 50 + 852 files changed, 160631 insertions(+) create mode 100644 ModLoader/Activity1.cs create mode 100644 ModLoader/Assets/AboutAssets.txt create mode 100644 ModLoader/BmFont.dll create mode 100644 ModLoader/Common/Constants.cs create mode 100644 ModLoader/Common/MethodPatcher.cs create mode 100644 ModLoader/Common/ModListAdapter.cs create mode 100644 ModLoader/Common/Utils.cs create mode 100644 ModLoader/Common/ZipHelper.cs create mode 100644 ModLoader/Content/Content.mgcb create mode 100644 ModLoader/GameConsole.cs create mode 100644 ModLoader/Harmony/Attributes.cs create mode 100644 ModLoader/Harmony/CodeInstruction.cs create mode 100644 ModLoader/Harmony/CodeTranspiler.cs create mode 100644 ModLoader/Harmony/Extras/DelegateTypeFactory.cs create mode 100644 ModLoader/Harmony/Extras/FastAccess.cs create mode 100644 ModLoader/Harmony/Extras/MethodInvoker.cs create mode 100644 ModLoader/Harmony/GlobalSuppressions.cs create mode 100644 ModLoader/Harmony/HarmonyInstance.cs create mode 100644 ModLoader/Harmony/HarmonyMethod.cs create mode 100644 ModLoader/Harmony/HarmonySharedState.cs create mode 100644 ModLoader/Harmony/ILCopying/ByteBuffer.cs create mode 100644 ModLoader/Harmony/ILCopying/Emitter.cs create mode 100644 ModLoader/Harmony/ILCopying/ILInstruction.cs create mode 100644 ModLoader/Harmony/ILCopying/Memory.cs create mode 100644 ModLoader/Harmony/ILCopying/MethodCopier.cs create mode 100644 ModLoader/Harmony/ILCopying/Signature.cs create mode 100644 ModLoader/Harmony/MethodPatcher.cs create mode 100644 ModLoader/Harmony/Patch.cs create mode 100644 ModLoader/Harmony/PatchFunctions.cs create mode 100644 ModLoader/Harmony/PatchProcessor.cs create mode 100644 ModLoader/Harmony/Priority.cs create mode 100644 ModLoader/Harmony/Tools/AccessCache.cs create mode 100644 ModLoader/Harmony/Tools/AccessTools.cs create mode 100644 ModLoader/Harmony/Tools/DynamicTools.cs create mode 100644 ModLoader/Harmony/Tools/Extensions.cs create mode 100644 ModLoader/Harmony/Tools/FileLog.cs create mode 100644 ModLoader/Harmony/Tools/PatchTools.cs create mode 100644 ModLoader/Harmony/Tools/SelfPatching.cs create mode 100644 ModLoader/Harmony/Tools/SymbolExtensions.cs create mode 100644 ModLoader/Harmony/Tools/Traverse.cs create mode 100644 ModLoader/Harmony/Transpilers.cs create mode 100644 ModLoader/MainApplication.cs create mode 100644 ModLoader/ModEntry.cs create mode 100644 ModLoader/ModLoader.csproj create mode 100644 ModLoader/Mono/Cecil/ArrayType.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyDefinition.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyFlags.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyHashAlgorithm.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyLinkedResource.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyNameDefinition.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyNameReference.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyReader.cs create mode 100644 ModLoader/Mono/Cecil/AssemblyWriter.cs create mode 100644 ModLoader/Mono/Cecil/BaseAssemblyResolver.cs create mode 100644 ModLoader/Mono/Cecil/CallSite.cs create mode 100644 ModLoader/Mono/Cecil/Cil/Code.cs create mode 100644 ModLoader/Mono/Cecil/Cil/CodeReader.cs create mode 100644 ModLoader/Mono/Cecil/Cil/CodeWriter.cs create mode 100644 ModLoader/Mono/Cecil/Cil/Document.cs create mode 100644 ModLoader/Mono/Cecil/Cil/ExceptionHandler.cs create mode 100644 ModLoader/Mono/Cecil/Cil/ILProcessor.cs create mode 100644 ModLoader/Mono/Cecil/Cil/Instruction.cs create mode 100644 ModLoader/Mono/Cecil/Cil/MethodBody.cs create mode 100644 ModLoader/Mono/Cecil/Cil/OpCode.cs create mode 100644 ModLoader/Mono/Cecil/Cil/OpCodes.cs create mode 100644 ModLoader/Mono/Cecil/Cil/PortablePdb.cs create mode 100644 ModLoader/Mono/Cecil/Cil/SequencePoint.cs create mode 100644 ModLoader/Mono/Cecil/Cil/Symbols.cs create mode 100644 ModLoader/Mono/Cecil/Cil/VariableDefinition.cs create mode 100644 ModLoader/Mono/Cecil/Cil/VariableReference.cs create mode 100644 ModLoader/Mono/Cecil/Consts.cs create mode 100644 ModLoader/Mono/Cecil/CustomAttribute.cs create mode 100644 ModLoader/Mono/Cecil/DefaultAssemblyResolver.cs create mode 100644 ModLoader/Mono/Cecil/EmbeddedResource.cs create mode 100644 ModLoader/Mono/Cecil/EventAttributes.cs create mode 100644 ModLoader/Mono/Cecil/EventDefinition.cs create mode 100644 ModLoader/Mono/Cecil/EventReference.cs create mode 100644 ModLoader/Mono/Cecil/ExportedType.cs create mode 100644 ModLoader/Mono/Cecil/FieldAttributes.cs create mode 100644 ModLoader/Mono/Cecil/FieldDefinition.cs create mode 100644 ModLoader/Mono/Cecil/FieldReference.cs create mode 100644 ModLoader/Mono/Cecil/FileAttributes.cs create mode 100644 ModLoader/Mono/Cecil/FunctionPointerType.cs create mode 100644 ModLoader/Mono/Cecil/GenericInstanceMethod.cs create mode 100644 ModLoader/Mono/Cecil/GenericInstanceType.cs create mode 100644 ModLoader/Mono/Cecil/GenericParameter.cs create mode 100644 ModLoader/Mono/Cecil/GenericParameterAttributes.cs create mode 100644 ModLoader/Mono/Cecil/IConstantProvider.cs create mode 100644 ModLoader/Mono/Cecil/ICustomAttributeProvider.cs create mode 100644 ModLoader/Mono/Cecil/IGenericInstance.cs create mode 100644 ModLoader/Mono/Cecil/IGenericParameterProvider.cs create mode 100644 ModLoader/Mono/Cecil/IMarshalInfoProvider.cs create mode 100644 ModLoader/Mono/Cecil/IMemberDefinition.cs create mode 100644 ModLoader/Mono/Cecil/IMetadataScope.cs create mode 100644 ModLoader/Mono/Cecil/IMetadataTokenProvider.cs create mode 100644 ModLoader/Mono/Cecil/IMethodSignature.cs create mode 100644 ModLoader/Mono/Cecil/Import.cs create mode 100644 ModLoader/Mono/Cecil/LinkedResource.cs create mode 100644 ModLoader/Mono/Cecil/ManifestResourceAttributes.cs create mode 100644 ModLoader/Mono/Cecil/MarshalInfo.cs create mode 100644 ModLoader/Mono/Cecil/Mdb/MdbReader.cs create mode 100644 ModLoader/Mono/Cecil/Mdb/MdbWriter.cs create mode 100644 ModLoader/Mono/Cecil/MemberDefinitionCollection.cs create mode 100644 ModLoader/Mono/Cecil/MemberReference.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/BlobHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/Buffers.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/CodedIndex.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/ElementType.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/GuidHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/Heap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/MetadataToken.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/PdbHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/Row.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/StringHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/TableHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/TokenType.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/UserStringHeap.cs create mode 100644 ModLoader/Mono/Cecil/Metadata/Utilities.cs create mode 100644 ModLoader/Mono/Cecil/MetadataResolver.cs create mode 100644 ModLoader/Mono/Cecil/MetadataSystem.cs create mode 100644 ModLoader/Mono/Cecil/MethodAttributes.cs create mode 100644 ModLoader/Mono/Cecil/MethodCallingConvention.cs create mode 100644 ModLoader/Mono/Cecil/MethodDefinition.cs create mode 100644 ModLoader/Mono/Cecil/MethodImplAttributes.cs create mode 100644 ModLoader/Mono/Cecil/MethodReference.cs create mode 100644 ModLoader/Mono/Cecil/MethodReturnType.cs create mode 100644 ModLoader/Mono/Cecil/MethodSemanticsAttributes.cs create mode 100644 ModLoader/Mono/Cecil/MethodSpecification.cs create mode 100644 ModLoader/Mono/Cecil/Modifiers.cs create mode 100644 ModLoader/Mono/Cecil/ModuleDefinition.cs create mode 100644 ModLoader/Mono/Cecil/ModuleKind.cs create mode 100644 ModLoader/Mono/Cecil/ModuleReference.cs create mode 100644 ModLoader/Mono/Cecil/NativeType.cs create mode 100644 ModLoader/Mono/Cecil/PE/BinaryStreamReader.cs create mode 100644 ModLoader/Mono/Cecil/PE/BinaryStreamWriter.cs create mode 100644 ModLoader/Mono/Cecil/PE/ByteBuffer.cs create mode 100644 ModLoader/Mono/Cecil/PE/ByteBufferEqualityComparer.cs create mode 100644 ModLoader/Mono/Cecil/PE/DataDirectory.cs create mode 100644 ModLoader/Mono/Cecil/PE/Image.cs create mode 100644 ModLoader/Mono/Cecil/PE/ImageReader.cs create mode 100644 ModLoader/Mono/Cecil/PE/ImageWriter.cs create mode 100644 ModLoader/Mono/Cecil/PE/Section.cs create mode 100644 ModLoader/Mono/Cecil/PE/TextMap.cs create mode 100644 ModLoader/Mono/Cecil/PInvokeAttributes.cs create mode 100644 ModLoader/Mono/Cecil/PInvokeInfo.cs create mode 100644 ModLoader/Mono/Cecil/ParameterAttributes.cs create mode 100644 ModLoader/Mono/Cecil/ParameterDefinition.cs create mode 100644 ModLoader/Mono/Cecil/ParameterDefinitionCollection.cs create mode 100644 ModLoader/Mono/Cecil/ParameterReference.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/ISymUnmanagedDocumentWriter.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/ISymUnmanagedWriter2.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/BitAccess.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/BitSet.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/CvInfo.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/DataStream.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/DbiDbgHdr.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/DbiHeader.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/DbiModuleInfo.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/DbiSecCon.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/IntHashTable.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/Interfaces.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/LICENSE create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/MsfDirectory.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbConstant.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbDebugException.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbException.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbFile.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbFileHeader.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbFunction.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbLine.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbLines.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbReader.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbScope.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbSlot.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbSource.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/PdbTokenLine.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/Microsoft.Cci.Pdb/SourceLocationProvider.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/ModuleMetadata.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/NativePdbReader.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/NativePdbWriter.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/PdbHelper.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/SymDocumentWriter.cs create mode 100644 ModLoader/Mono/Cecil/Pdb/SymWriter.cs create mode 100644 ModLoader/Mono/Cecil/PinnedType.cs create mode 100644 ModLoader/Mono/Cecil/PointerType.cs create mode 100644 ModLoader/Mono/Cecil/PropertyAttributes.cs create mode 100644 ModLoader/Mono/Cecil/PropertyDefinition.cs create mode 100644 ModLoader/Mono/Cecil/PropertyReference.cs create mode 100644 ModLoader/Mono/Cecil/ReferenceType.cs create mode 100644 ModLoader/Mono/Cecil/Resource.cs create mode 100644 ModLoader/Mono/Cecil/SecurityDeclaration.cs create mode 100644 ModLoader/Mono/Cecil/SentinelType.cs create mode 100644 ModLoader/Mono/Cecil/TargetRuntime.cs create mode 100644 ModLoader/Mono/Cecil/Treatments.cs create mode 100644 ModLoader/Mono/Cecil/TypeAttributes.cs create mode 100644 ModLoader/Mono/Cecil/TypeDefinition.cs create mode 100644 ModLoader/Mono/Cecil/TypeDefinitionCollection.cs create mode 100644 ModLoader/Mono/Cecil/TypeParser.cs create mode 100644 ModLoader/Mono/Cecil/TypeReference.cs create mode 100644 ModLoader/Mono/Cecil/TypeSpecification.cs create mode 100644 ModLoader/Mono/Cecil/TypeSystem.cs create mode 100644 ModLoader/Mono/Cecil/VariantType.cs create mode 100644 ModLoader/Mono/Cecil/WindowsRuntimeProjections.cs create mode 100644 ModLoader/Mono/Collections/Generic/Collection.cs create mode 100644 ModLoader/Mono/Collections/Generic/ReadOnlyCollection.cs create mode 100644 ModLoader/Mono/CompilerServices/SymbolWriter/MonoSymbolFile.cs create mode 100644 ModLoader/Mono/CompilerServices/SymbolWriter/MonoSymbolTable.cs create mode 100644 ModLoader/Mono/CompilerServices/SymbolWriter/MonoSymbolWriter.cs create mode 100644 ModLoader/Mono/CompilerServices/SymbolWriter/SourceMethodBuilder.cs create mode 100644 ModLoader/Mono/CompilerServices/SymbolWriter/SymbolWriterImpl.cs create mode 100644 ModLoader/Mono/Disposable.cs create mode 100644 ModLoader/Mono/Empty.cs create mode 100644 ModLoader/Mono/MergeSort.cs create mode 100644 ModLoader/Mono/Security/Cryptography/CryptoConvert.cs create mode 100644 ModLoader/Mono/Security/Cryptography/CryptoService.cs create mode 100644 ModLoader/Mono/Type.cs create mode 100644 ModLoader/MonoMod/InlineRT/MonoModRule.cs create mode 100644 ModLoader/MonoMod/InlineRT/MonoModRulesManager.cs create mode 100644 ModLoader/MonoMod/InlineRT/MonoModRulesModder.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModAdded.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModConstructor.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModCustomAttribute.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModEnumReplace.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModForceCall.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModForceCallvirt.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModHook.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModIfFlag.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModIgnore.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModLinkFrom.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModLinkTo.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModNoNew.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModOnPlatform.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModOriginal.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModOriginalName.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModPatch.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModPublic.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModRemove.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModReplace.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoModTargetModule.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoMod__SafeToCopy__.cs create mode 100644 ModLoader/MonoMod/Modifiers/MonoMod__WasIDictionary__.cs create mode 100644 ModLoader/MonoMod/MonoModder.cs create mode 100644 ModLoader/MonoMod/Program.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Detour.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/DetourHelper.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/DetourModManager.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/HarmonyDetourBridge.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Hook.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/HookGen/HookEndpoint.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/HookGen/HookEndpointManager.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/HookGen/HookGenerator.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/HookGen/Program.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/IDetour.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/IDetourNativePlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/IDetourRuntimePlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/NativeDetour.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Native/DetourNativeARMPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Native/DetourNativeMonoPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Native/DetourNativeMonoPosixPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Native/DetourNativeWindowsPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Native/DetourNativeX86Platform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Runtime/DetourRuntimeILPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Runtime/DetourRuntimeMonoPlatform.cs create mode 100644 ModLoader/MonoMod/RuntimeDetour/Platforms/Runtime/DetourRuntimeNETPlatform.cs create mode 100644 ModLoader/MonoMod/Utils/Cil/ILContext.cs create mode 100644 ModLoader/MonoMod/Utils/Cil/ILCursor.cs create mode 100644 ModLoader/MonoMod/Utils/Cil/ILLabel.cs create mode 100644 ModLoader/MonoMod/Utils/Cil/ILPatternMatchingExt.cs create mode 100644 ModLoader/MonoMod/Utils/Cil/ILReferenceBag.cs create mode 100644 ModLoader/MonoMod/Utils/DynData.cs create mode 100644 ModLoader/MonoMod/Utils/DynDll.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.Cecil.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.CopyMethodToDefinition.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.CopyMethodToDefinition.nop.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.Emit.CreateMethodProxy.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.Emit.EmitCallSite.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.Emit.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodDefinition.cs create mode 100644 ModLoader/MonoMod/Utils/DynamicMethodHelper.cs create mode 100644 ModLoader/MonoMod/Utils/Extensions.cs create mode 100644 ModLoader/MonoMod/Utils/FastReflectionHelper.cs create mode 100644 ModLoader/MonoMod/Utils/ILExt.cs create mode 100644 ModLoader/MonoMod/Utils/IgnoresAccessChecksToAttribute.cs create mode 100644 ModLoader/MonoMod/Utils/LimitedStream.cs create mode 100644 ModLoader/MonoMod/Utils/MMReflectionImporter.cs create mode 100644 ModLoader/MonoMod/Utils/ModInterop/ModExportName.cs create mode 100644 ModLoader/MonoMod/Utils/ModInterop/ModImportName.cs create mode 100644 ModLoader/MonoMod/Utils/ModInterop/ModInteropManager.cs create mode 100644 ModLoader/MonoMod/Utils/MonoModExt.cs create mode 100644 ModLoader/MonoMod/Utils/MonoMod__OldName__.cs create mode 100644 ModLoader/MonoMod/Utils/NETStandardShims.cs create mode 100644 ModLoader/MonoMod/Utils/Platform.cs create mode 100644 ModLoader/MonoMod/Utils/PlatformHelper.cs create mode 100644 ModLoader/MonoMod/Utils/ReflectionHelper.cs create mode 100644 ModLoader/MonoMod/Utils/RelinkFailedException.cs create mode 100644 ModLoader/MonoMod/Utils/RelinkTargetNotFoundException.cs create mode 100644 ModLoader/MonoMod/Utils/StringInjectExtension.cs create mode 100644 ModLoader/MonoMod/Utils/UtilsCil/CecilILGenerator.cs create mode 100644 ModLoader/MonoMod/Utils/UtilsCil/ILGeneratorShim.Proxy.cs create mode 100644 ModLoader/MonoMod/Utils/UtilsCil/ILGeneratorShim.cs create mode 100644 ModLoader/MonoMod/Utils/WeakReferenceComparer.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonBinaryType.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonBinaryWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonObjectId.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonReader.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonToken.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonType.cs create mode 100644 ModLoader/Newtonsoft.Json/Bson/BsonWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/ConstructorHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/BinaryConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/CustomCreationConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/DataSetConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/DataTableConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/DateTimeConverterBase.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/DiscriminatedUnionConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/EntityKeyMemberConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/ExpandoObjectConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/JavaScriptDateTimeConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/KeyValuePairConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/RegexConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/StringEnumConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/UnixDateTimeConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/VersionConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Converters/XmlNodeConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/DateFormatHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/DateParseHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/DateTimeZoneHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/DefaultJsonNameTable.cs create mode 100644 ModLoader/Newtonsoft.Json/DefaultValueHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Dynamic.snk create mode 100644 ModLoader/Newtonsoft.Json/FloatFormatHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/FloatParseHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/FormatterAssemblyStyle.cs create mode 100644 ModLoader/Newtonsoft.Json/Formatting.cs create mode 100644 ModLoader/Newtonsoft.Json/IArrayPool.cs create mode 100644 ModLoader/Newtonsoft.Json/IJsonLineInfo.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonArrayAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonConstructorAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonContainerAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonConvert.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonConverterAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonConverterCollection.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonDictionaryAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonException.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonExtensionDataAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonIgnoreAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonNameTable.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonObjectAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonPosition.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonPropertyAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonReader.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonReader.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonReaderException.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonRequiredAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonSerializationException.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonSerializer.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonSerializerSettings.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonTextReader.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonTextReader.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonTextWriter.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonTextWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonToken.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonValidatingReader.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonWriter.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/JsonWriterException.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/CommentHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/DuplicatePropertyNameHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/Extensions.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/IJEnumerable.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JArray.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JArray.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JConstructor.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JConstructor.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JContainer.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JContainer.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JEnumerable.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JObject.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JObject.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JProperty.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JProperty.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JPropertyDescriptor.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JPropertyKeyedCollection.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JRaw.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JRaw.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JToken.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JToken.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JTokenReader.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JTokenType.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JTokenWriter.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JTokenWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JValue.Async.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JValue.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonLoadSettings.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonMergeSettings.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/ArrayIndexFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/ArrayMultipleIndexFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/ArraySliceFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/FieldFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/FieldMultipleFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/JPath.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/PathFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/QueryExpression.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/QueryFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/QueryScanFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/RootFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/ScanFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/JsonPath/ScanMultipleFilter.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/LineInfoHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/MergeArrayHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Linq/MergeNullValueHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/MemberSerialization.cs create mode 100644 ModLoader/Newtonsoft.Json/MetadataPropertyHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/MissingMemberHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Newtonsoft.Json.ruleset create mode 100644 ModLoader/Newtonsoft.Json/NullValueHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/ObjectCreationHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/PreserveReferencesHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/ReferenceLoopHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Required.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/Extensions.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchema.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaConstants.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaException.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaModel.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaModelBuilder.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaNode.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaNodeCollection.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaType.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/JsonSchemaWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/UndefinedSchemaIdHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/ValidationEventArgs.cs create mode 100644 ModLoader/Newtonsoft.Json/Schema/ValidationEventHandler.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/CachedAttributeGetter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/CamelCaseNamingStrategy.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/CamelCasePropertyNamesContractResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DefaultContractResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DefaultNamingStrategy.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DefaultSerializationBinder.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DiagnosticsTraceWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/DynamicValueProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ErrorContext.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ErrorEventArgs.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ExpressionValueProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/FormatterConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/IAttributeProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/IContractResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/IReferenceResolver.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ISerializationBinder.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ITraceWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/IValueProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonArrayContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonContainerContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonDictionaryContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonDynamicContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonFormatterConverter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonISerializableContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonLinqContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonObjectContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonProperty.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonPropertyCollection.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonSerializerInternalBase.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonSerializerProxy.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonStringContract.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/JsonTypeReflector.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/MemoryTraceWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/NamingStrategy.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ObjectConstructor.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/OnErrorAttribute.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ReflectionAttributeProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/ReflectionValueProvider.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/SerializationBinderAdapter.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/SnakeCaseNamingStrategy.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/TraceJsonReader.cs create mode 100644 ModLoader/Newtonsoft.Json/Serialization/TraceJsonWriter.cs create mode 100644 ModLoader/Newtonsoft.Json/SerializationBinder.cs create mode 100644 ModLoader/Newtonsoft.Json/StringEscapeHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/TraceLevel.cs create mode 100644 ModLoader/Newtonsoft.Json/TypeNameAssemblyFormatHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/TypeNameHandling.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/AsyncUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/Base64Encoder.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/BidirectionalDictionary.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/CollectionUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/CollectionWrapper.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ConvertUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DateTimeParser.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DateTimeUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DictionaryWrapper.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DynamicProxy.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/DynamicUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/EnumInfo.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/EnumUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ExpressionReflectionDelegateFactory.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/FSharpUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ILGeneratorExtensions.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ImmutableCollectionsUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/JavaScriptUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/JsonTokenUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/LinqBridge.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/MathUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/MethodBinder.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/MethodCall.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/MiscellaneousUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ReflectionDelegateFactory.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ReflectionObject.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ReflectionUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/StringBuffer.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/StringReference.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/StringUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/StructMultiKey.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ThreadSafeStore.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/TypeExtensions.cs create mode 100644 ModLoader/Newtonsoft.Json/Utilities/ValidationUtils.cs create mode 100644 ModLoader/Newtonsoft.Json/WriteState.cs create mode 100644 ModLoader/Options/ModOptionsCheckbox.cs create mode 100644 ModLoader/Options/ModOptionsSlider.cs create mode 100644 ModLoader/Properties/AndroidManifest.xml create mode 100644 ModLoader/Properties/AssemblyInfo.cs create mode 100644 ModLoader/Resources/AboutResources.txt create mode 100644 ModLoader/Resources/Drawable/Splash.png create mode 100644 ModLoader/Resources/Drawable/icon.png create mode 100644 ModLoader/Resources/Layout/layout_main.axml create mode 100644 ModLoader/Resources/Layout/layout_mod_list.axml create mode 100644 ModLoader/Resources/Raw/SMDroidFiles.zip create mode 100644 ModLoader/Resources/Resource.Designer.cs create mode 100644 ModLoader/Resources/Values-zh-rCN/Strings.xml create mode 100644 ModLoader/Resources/Values/Strings.xml create mode 100644 ModLoader/Resources/Values/Styles.xml create mode 100644 ModLoader/Resources/Xml/file_paths.xml create mode 100644 ModLoader/SMAPI/Constants.cs create mode 100644 ModLoader/SMAPI/ContentSource.cs create mode 100644 ModLoader/SMAPI/Context.cs create mode 100644 ModLoader/SMAPI/Enums/LoadStage.cs create mode 100644 ModLoader/SMAPI/Enums/SkillType.cs create mode 100644 ModLoader/SMAPI/Events/Display/GraphicsEvents.cs create mode 100644 ModLoader/SMAPI/Events/Display/IDisplayEvents.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderedActiveMenuEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderedHudEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderedWorldEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderingActiveMenuEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderingHudEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/RenderingWorldEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Display/WindowResizedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/DayEndingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/DayStartedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/GameEvents.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/GameLaunchedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/IGameLoopEvents.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/OneSecondUpdateTickedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/OneSecondUpdateTickingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/ReturnedToTitleEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SaveCreatedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SaveCreatingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SaveEvents.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SaveLoadedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SavedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/SavingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/TimeChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/TimeEvents.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/UpdateTickedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/GameLoop/UpdateTickingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/IModEvents.cs create mode 100644 ModLoader/SMAPI/Events/Input/ButtonPressedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Input/ButtonReleasedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Input/ControlEvents.cs create mode 100644 ModLoader/SMAPI/Events/Input/CursorMovedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsControllerButtonPressed.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsControllerButtonReleased.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsControllerTriggerPressed.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsControllerTriggerReleased.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsInput.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsKeyPressed.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsKeyboardStateChanged.cs create mode 100644 ModLoader/SMAPI/Events/Input/EventArgsMouseStateChanged.cs create mode 100644 ModLoader/SMAPI/Events/Input/IInputEvents.cs create mode 100644 ModLoader/SMAPI/Events/Input/InputEvents.cs create mode 100644 ModLoader/SMAPI/Events/Input/MouseWheelScrolledEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Menu/EventArgsClickableMenuChanged.cs create mode 100644 ModLoader/SMAPI/Events/Menu/EventArgsClickableMenuClosed.cs create mode 100644 ModLoader/SMAPI/Events/Menu/MenuChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Menu/MenuEvents.cs create mode 100644 ModLoader/SMAPI/Events/Mine/EventArgsMineLevelChanged.cs create mode 100644 ModLoader/SMAPI/Events/Mine/MineEvents.cs create mode 100644 ModLoader/SMAPI/Events/Multiplayer/IMultiplayerEvents.cs create mode 100644 ModLoader/SMAPI/Events/Multiplayer/ModMessageReceivedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Multiplayer/MultiplayerEvents.cs create mode 100644 ModLoader/SMAPI/Events/Multiplayer/PeerContextReceivedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Multiplayer/PeerDisconnectedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Player/EventArgsInventoryChanged.cs create mode 100644 ModLoader/SMAPI/Events/Player/EventArgsLevelUp.cs create mode 100644 ModLoader/SMAPI/Events/Player/EventArgsPlayerWarped.cs create mode 100644 ModLoader/SMAPI/Events/Player/IPlayerEvents.cs create mode 100644 ModLoader/SMAPI/Events/Player/InventoryChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Player/ItemStackChange.cs create mode 100644 ModLoader/SMAPI/Events/Player/ItemStackSizeChange.cs create mode 100644 ModLoader/SMAPI/Events/Player/LevelChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Player/PlayerEvents.cs create mode 100644 ModLoader/SMAPI/Events/Player/WarpedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/ContentEvents.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/EventArgsIntChanged.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/EventArgsValueChanged.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/ISpecialisedEvents.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/LoadStageChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/SpecialisedEvents.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/UnvalidatedUpdateTickedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/Specialised/UnvalidatedUpdateTickingEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/BuildingListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/ChangeType.cs create mode 100644 ModLoader/SMAPI/Events/World/DebrisListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/EventArgsLocationBuildingsChanged.cs create mode 100644 ModLoader/SMAPI/Events/World/EventArgsLocationObjectsChanged.cs create mode 100644 ModLoader/SMAPI/Events/World/EventArgsLocationsChanged.cs create mode 100644 ModLoader/SMAPI/Events/World/IWorldEvents.cs create mode 100644 ModLoader/SMAPI/Events/World/LargeTerrainFeatureListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/LocationEvents.cs create mode 100644 ModLoader/SMAPI/Events/World/LocationListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/NpcListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/ObjectListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Events/World/TerrainFeatureListChangedEventArgs.cs create mode 100644 ModLoader/SMAPI/Framework/Command.cs create mode 100644 ModLoader/SMAPI/Framework/CommandManager.cs create mode 100644 ModLoader/SMAPI/Framework/Content/AssetData.cs create mode 100644 ModLoader/SMAPI/Framework/Content/AssetDataForDictionary.cs create mode 100644 ModLoader/SMAPI/Framework/Content/AssetDataForImage.cs create mode 100644 ModLoader/SMAPI/Framework/Content/AssetDataForObject.cs create mode 100644 ModLoader/SMAPI/Framework/Content/AssetInfo.cs create mode 100644 ModLoader/SMAPI/Framework/Content/ContentCache.cs create mode 100644 ModLoader/SMAPI/Framework/ContentCoordinator.cs create mode 100644 ModLoader/SMAPI/Framework/ContentManagers/BaseContentManager.cs create mode 100644 ModLoader/SMAPI/Framework/ContentManagers/GameContentManager.cs create mode 100644 ModLoader/SMAPI/Framework/ContentManagers/IContentManager.cs create mode 100644 ModLoader/SMAPI/Framework/ContentManagers/ModContentManager.cs create mode 100644 ModLoader/SMAPI/Framework/ContentPack.cs create mode 100644 ModLoader/SMAPI/Framework/CursorPosition.cs create mode 100644 ModLoader/SMAPI/Framework/DeprecationLevel.cs create mode 100644 ModLoader/SMAPI/Framework/DeprecationManager.cs create mode 100644 ModLoader/SMAPI/Framework/DeprecationWarning.cs create mode 100644 ModLoader/SMAPI/Framework/Events/EventManager.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ManagedEvent.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ManagedEventBase.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModDisplayEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModEventsBase.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModGameLoopEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModInputEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModMultiplayerEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModPlayerEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModSpecialisedEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Events/ModWorldEvents.cs create mode 100644 ModLoader/SMAPI/Framework/Exceptions/SAssemblyLoadFailedException.cs create mode 100644 ModLoader/SMAPI/Framework/Exceptions/SContentLoadException.cs create mode 100644 ModLoader/SMAPI/Framework/GameVersion.cs create mode 100644 ModLoader/SMAPI/Framework/IModMetadata.cs create mode 100644 ModLoader/SMAPI/Framework/Input/GamePadStateBuilder.cs create mode 100644 ModLoader/SMAPI/Framework/Input/InputStatus.cs create mode 100644 ModLoader/SMAPI/Framework/Input/SInputState.cs create mode 100644 ModLoader/SMAPI/Framework/InternalExtensions.cs create mode 100644 ModLoader/SMAPI/Framework/Logging/ConsoleInterceptionManager.cs create mode 100644 ModLoader/SMAPI/Framework/Logging/InterceptingTextWriter.cs create mode 100644 ModLoader/SMAPI/Framework/Logging/LogFileManager.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/BaseHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/CommandHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/ContentHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/ContentPackHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/DataHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/InputHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/ModHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/ModRegistryHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/ReflectionHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModHelpers/TranslationHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/AssemblyDefinitionResolver.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/AssemblyLoadStatus.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/AssemblyLoader.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/AssemblyParseResult.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/EventFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/FieldFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/MethodFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/PropertyFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/ReferenceToMemberWithUnexpectedTypeFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/ReferenceToMissingMemberFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Finders/TypeFinder.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/IInstructionHandler.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/IncompatibleInstructionException.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/InstructionHandleResult.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/InvalidModStateException.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/ModDependencyStatus.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/ModMetadata.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/ModMetadataStatus.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/ModResolver.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/PlatformAssemblyMap.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/RewriteHelper.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/RewriteIgnoreConfig.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Rewriters/FieldReplaceRewriter.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Rewriters/FieldToPropertyRewriter.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Rewriters/MethodParentRewriter.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Rewriters/StaticFieldToConstantRewriter.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/Rewriters/TypeReferenceRewriter.cs create mode 100644 ModLoader/SMAPI/Framework/ModLoading/TypeReferenceComparer.cs create mode 100644 ModLoader/SMAPI/Framework/ModRegistry.cs create mode 100644 ModLoader/SMAPI/Framework/Models/ModFolderExport.cs create mode 100644 ModLoader/SMAPI/Framework/Models/SConfig.cs create mode 100644 ModLoader/SMAPI/Framework/Monitor.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/MessageType.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/ModMessageModel.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/MultiplayerPeer.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/MultiplayerPeerMod.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/RemoteContextModModel.cs create mode 100644 ModLoader/SMAPI/Framework/Networking/RemoteContextModel.cs create mode 100644 ModLoader/SMAPI/Framework/Patching/GamePatcher.cs create mode 100644 ModLoader/SMAPI/Framework/Patching/IHarmonyPatch.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/CacheEntry.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/InterfaceProxyBuilder.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/InterfaceProxyFactory.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/ReflectedField.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/ReflectedMethod.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/ReflectedProperty.cs create mode 100644 ModLoader/SMAPI/Framework/Reflection/Reflector.cs create mode 100644 ModLoader/SMAPI/Framework/RequestExitDelegate.cs create mode 100644 ModLoader/SMAPI/Framework/RewriteFacades/FarmerMethods.cs create mode 100644 ModLoader/SMAPI/Framework/RewriteFacades/Game1Methods.cs create mode 100644 ModLoader/SMAPI/Framework/RewriteFacades/IClickableMenuMethods.cs create mode 100644 ModLoader/SMAPI/Framework/RewriteFacades/SpriteBatchMethods.cs create mode 100644 ModLoader/SMAPI/Framework/SCore.cs create mode 100644 ModLoader/SMAPI/Framework/SGame.cs create mode 100644 ModLoader/SMAPI/Framework/SGameConstructorHack.cs create mode 100644 ModLoader/SMAPI/Framework/SModHooks.cs create mode 100644 ModLoader/SMAPI/Framework/SMultiplayer.cs create mode 100644 ModLoader/SMAPI/Framework/Serialisation/ColorConverter.cs create mode 100644 ModLoader/SMAPI/Framework/Serialisation/PointConverter.cs create mode 100644 ModLoader/SMAPI/Framework/Serialisation/RectangleConverter.cs create mode 100644 ModLoader/SMAPI/Framework/Singleton.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/Comparers/EquatableComparer.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/Comparers/GenericEqualsComparer.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/Comparers/ObjectReferenceComparer.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/BaseDisposableWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/ComparableWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/NetCollectionWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/NetDictionaryWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/NetValueWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/ObservableCollectionWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/ICollectionWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/IDictionaryWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/IValueWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/IWatcher.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/LocationTracker.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/PlayerTracker.cs create mode 100644 ModLoader/SMAPI/Framework/StateTracking/WorldLocationsTracker.cs create mode 100644 ModLoader/SMAPI/Framework/Utilities/ContextHash.cs create mode 100644 ModLoader/SMAPI/Framework/Utilities/Countdown.cs create mode 100644 ModLoader/SMAPI/Framework/WatcherCore.cs create mode 100644 ModLoader/SMAPI/GamePlatform.cs create mode 100644 ModLoader/SMAPI/IAssetData.cs create mode 100644 ModLoader/SMAPI/IAssetDataForDictionary.cs create mode 100644 ModLoader/SMAPI/IAssetDataForImage.cs create mode 100644 ModLoader/SMAPI/IAssetEditor.cs create mode 100644 ModLoader/SMAPI/IAssetInfo.cs create mode 100644 ModLoader/SMAPI/IAssetLoader.cs create mode 100644 ModLoader/SMAPI/ICommandHelper.cs create mode 100644 ModLoader/SMAPI/IContentHelper.cs create mode 100644 ModLoader/SMAPI/IContentPack.cs create mode 100644 ModLoader/SMAPI/IContentPackHelper.cs create mode 100644 ModLoader/SMAPI/ICursorPosition.cs create mode 100644 ModLoader/SMAPI/IDataHelper.cs create mode 100644 ModLoader/SMAPI/IInputHelper.cs create mode 100644 ModLoader/SMAPI/IMod.cs create mode 100644 ModLoader/SMAPI/IModHelper.cs create mode 100644 ModLoader/SMAPI/IModInfo.cs create mode 100644 ModLoader/SMAPI/IModLinked.cs create mode 100644 ModLoader/SMAPI/IModRegistry.cs create mode 100644 ModLoader/SMAPI/IMonitor.cs create mode 100644 ModLoader/SMAPI/IMultiplayerHelper.cs create mode 100644 ModLoader/SMAPI/IMultiplayerPeer.cs create mode 100644 ModLoader/SMAPI/IMultiplayerPeerMod.cs create mode 100644 ModLoader/SMAPI/IReflectedField.cs create mode 100644 ModLoader/SMAPI/IReflectedMethod.cs create mode 100644 ModLoader/SMAPI/IReflectedProperty.cs create mode 100644 ModLoader/SMAPI/IReflectionHelper.cs create mode 100644 ModLoader/SMAPI/ITranslationHelper.cs create mode 100644 ModLoader/SMAPI/Internal/ConsoleWriting/ColorfulConsoleWriter.cs create mode 100644 ModLoader/SMAPI/Internal/ConsoleWriting/LogLevel.cs create mode 100644 ModLoader/SMAPI/Internal/ConsoleWriting/MonitorColorScheme.cs create mode 100644 ModLoader/SMAPI/Internal/EnvironmentUtility.cs create mode 100644 ModLoader/SMAPI/Internal/Platform.cs create mode 100644 ModLoader/SMAPI/LogLevel.cs create mode 100644 ModLoader/SMAPI/Metadata/CoreAssetPropagator.cs create mode 100644 ModLoader/SMAPI/Metadata/InstructionMetadata.cs create mode 100644 ModLoader/SMAPI/Mod.cs create mode 100644 ModLoader/SMAPI/PatchMode.cs create mode 100644 ModLoader/SMAPI/Patches/DialogueErrorPatch.cs create mode 100644 ModLoader/SMAPI/Patches/LoadForNewGamePatch.cs create mode 100644 ModLoader/SMAPI/Patches/ObjectErrorPatch.cs create mode 100644 ModLoader/SMAPI/Program.cs create mode 100644 ModLoader/SMAPI/SButton.cs create mode 100644 ModLoader/SMAPI/SemanticVersion.cs create mode 100644 ModLoader/SMAPI/StardewModdingAPI.config.json create mode 100644 ModLoader/SMAPI/StardewModdingAPI.csproj create mode 100644 ModLoader/SMAPI/Toolkit/CoreInterfaces/IManifest.cs create mode 100644 ModLoader/SMAPI/Toolkit/CoreInterfaces/IManifestContentPackFor.cs create mode 100644 ModLoader/SMAPI/Toolkit/CoreInterfaces/IManifestDependency.cs create mode 100644 ModLoader/SMAPI/Toolkit/CoreInterfaces/ISemanticVersion.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/MetadataModel.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDataField.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDataFieldKey.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDataModel.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDataRecord.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDataRecordVersionedFields.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModDatabase.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModStatus.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModData/ModWarning.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModScanning/ModFolder.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/ModScanning/ModScanner.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/UpdateData/ModRepositoryKey.cs create mode 100644 ModLoader/SMAPI/Toolkit/Framework/UpdateData/UpdateKey.cs create mode 100644 ModLoader/SMAPI/Toolkit/ModToolkit.cs create mode 100644 ModLoader/SMAPI/Toolkit/SemanticVersion.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Converters/ManifestContentPackForConverter.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Converters/ManifestDependencyArrayConverter.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Converters/SemanticVersionConverter.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Converters/SimpleReadOnlyConverter.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/InternalExtensions.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/JsonHelper.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Models/Manifest.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Models/ManifestContentPackFor.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/Models/ManifestDependency.cs create mode 100644 ModLoader/SMAPI/Toolkit/Serialisation/SParseException.cs create mode 100644 ModLoader/SMAPI/Toolkit/Utilities/FileUtilities.cs create mode 100644 ModLoader/SMAPI/Toolkit/Utilities/PathUtilities.cs create mode 100644 ModLoader/SMAPI/Translation.cs create mode 100644 ModLoader/SMAPI/Utilities/SDate.cs create mode 100644 ModLoader/SMAPI/steam_appid.txt create mode 100644 ModLoader/SMainActivity.cs diff --git a/ModLoader/Activity1.cs b/ModLoader/Activity1.cs new file mode 100644 index 00000000..3812d482 --- /dev/null +++ b/ModLoader/Activity1.cs @@ -0,0 +1,225 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using Android.App; +using Android.Content; +using Android.Content.PM; +using Android.Database; +using Android.OS; +using Android.Runtime; +using Android.Support.V4.App; +using Android.Views; +using Android.Widget; +using Com.Pgyersdk; +using Com.Pgyersdk.Update; +using Com.Pgyersdk.Update.Javabean; +using DllRewrite; +using Java.Lang; +using ModLoader.Common; +using ModLoader.Helper; +using Mono.Cecil; +using StardewModdingAPI.Framework; +using StardewModdingAPI.Framework.ModLoading; +using StardewModdingAPI.Toolkit; +using StardewModdingAPI.Toolkit.Framework.ModData; +using File = Java.IO.File; +using Thread = System.Threading.Thread; + +namespace ModLoader +{ + [Activity(Label = "@string/ApplicationName" + , MainLauncher = true + , Icon = "@drawable/icon" + , Theme = "@style/Theme.Splash" + , AlwaysRetainTaskState = true + , LaunchMode = Android.Content.PM.LaunchMode.SingleInstance + , ScreenOrientation = ScreenOrientation.SensorLandscape + , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize | ConfigChanges.ScreenLayout)] + public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity + { + private string[] requiredPermissions => new string[] { "android.permission.ACCESS_NETWORK_STATE", "android.permission.ACCESS_WIFI_STATE", "android.permission.INTERNET", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.VIBRATE", "android.permission.WAKE_LOCK", "android.permission.WRITE_EXTERNAL_STORAGE", "com.android.vending.CHECK_LICENSE" }; + private string[] deniedPermissionsArray + { + get + { + List list = new List(); + string[] requiredPermissions = this.requiredPermissions; + for (int i = 0; i < requiredPermissions.Length; i++) + { + if (this.PackageManager.CheckPermission(requiredPermissions[i], this.PackageName) != Permission.Granted) + { + list.Add(requiredPermissions[i]); + } + } + return list.ToArray(); + } + } + public bool HasPermissions => ((((this.PackageManager.CheckPermission("android.permission.ACCESS_NETWORK_STATE", this.PackageName) == Permission.Granted) && (this.PackageManager.CheckPermission("android.permission.ACCESS_WIFI_STATE", this.PackageName) == Permission.Granted)) && ((this.PackageManager.CheckPermission("android.permission.INTERNET", this.PackageName) == Permission.Granted) && (this.PackageManager.CheckPermission("android.permission.READ_EXTERNAL_STORAGE", this.PackageName) == Permission.Granted))) && (((this.PackageManager.CheckPermission("android.permission.VIBRATE", this.PackageName) == Permission.Granted) && (this.PackageManager.CheckPermission("android.permission.WAKE_LOCK", this.PackageName) == Permission.Granted)) && ((this.PackageManager.CheckPermission("android.permission.WRITE_EXTERNAL_STORAGE", this.PackageName) == Permission.Granted) && (this.PackageManager.CheckPermission("com.android.vending.CHECK_LICENSE", this.PackageName) == Permission.Granted)))); + + public void PromptForPermissions() + { + ActivityCompat.RequestPermissions(this, this.deniedPermissionsArray, 0); + } + + private readonly Mutex _working = new Mutex(false); + + protected override void OnCreate(Bundle bundle) + { + Type[] services = new Type[] { typeof(Microsoft.AppCenter.Analytics.Analytics), typeof(Microsoft.AppCenter.Crashes.Crashes) }; + Microsoft.AppCenter.AppCenter.Start("b8eaba94-d276-4c97-9953-0c91e7357e21", services); + base.OnCreate(bundle); + base.RequestWindowFeature(WindowFeatures.NoTitle); + if (Build.VERSION.SdkInt >= BuildVersionCodes.P) + { + this.Window.Attributes.LayoutInDisplayCutoutMode = LayoutInDisplayCutoutMode.ShortEdges; + } + this.Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen); + this.Window.SetFlags(WindowManagerFlags.KeepScreenOn, WindowManagerFlags.KeepScreenOn); + this.SetContentView(Resource.Layout.layout_main); + if (!this.HasPermissions) + this.PromptForPermissions(); + while (!this.HasPermissions) + { + Thread.Sleep(50); + } + new PgyUpdateManager.Builder().SetForced(false).SetUserCanRetry(true).SetDeleteHistroyApk(true).Register(); + + this.FindViewById