summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/InstructionMetadata.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Metadata/InstructionMetadata.cs')
-rw-r--r--src/SMAPI/Metadata/InstructionMetadata.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs
index 367372b2..9b56f963 100644
--- a/src/SMAPI/Metadata/InstructionMetadata.cs
+++ b/src/SMAPI/Metadata/InstructionMetadata.cs
@@ -68,8 +68,8 @@ namespace StardewModdingAPI.Metadata
** detect code which may impact game stability
****/
yield return new TypeFinder("System.Runtime.CompilerServices.CallSite", InstructionHandleResult.DetectedDynamic);
- yield return new FieldFinder(typeof(SaveGame).FullName, new[] { nameof(SaveGame.serializer), nameof(SaveGame.farmerSerializer), nameof(SaveGame.locationSerializer) }, InstructionHandleResult.DetectedSaveSerializer);
- yield return new EventFinder(typeof(ISpecializedEvents).FullName, new[] { nameof(ISpecializedEvents.UnvalidatedUpdateTicked), nameof(ISpecializedEvents.UnvalidatedUpdateTicking) }, InstructionHandleResult.DetectedUnvalidatedUpdateTick);
+ yield return new FieldFinder(typeof(SaveGame).FullName!, new[] { nameof(SaveGame.serializer), nameof(SaveGame.farmerSerializer), nameof(SaveGame.locationSerializer) }, InstructionHandleResult.DetectedSaveSerializer);
+ yield return new EventFinder(typeof(ISpecializedEvents).FullName!, new[] { nameof(ISpecializedEvents.UnvalidatedUpdateTicked), nameof(ISpecializedEvents.UnvalidatedUpdateTicking) }, InstructionHandleResult.DetectedUnvalidatedUpdateTick);
/****
** detect paranoid issues
@@ -77,23 +77,23 @@ namespace StardewModdingAPI.Metadata
if (paranoidMode)
{
// filesystem access
- yield return new TypeFinder(typeof(System.Console).FullName, InstructionHandleResult.DetectedConsoleAccess);
+ yield return new TypeFinder(typeof(System.Console).FullName!, InstructionHandleResult.DetectedConsoleAccess);
yield return new TypeFinder(
new[]
{
- typeof(System.IO.File).FullName,
- typeof(System.IO.FileStream).FullName,
- typeof(System.IO.FileInfo).FullName,
- typeof(System.IO.Directory).FullName,
- typeof(System.IO.DirectoryInfo).FullName,
- typeof(System.IO.DriveInfo).FullName,
- typeof(System.IO.FileSystemWatcher).FullName
+ typeof(System.IO.File).FullName!,
+ typeof(System.IO.FileStream).FullName!,
+ typeof(System.IO.FileInfo).FullName!,
+ typeof(System.IO.Directory).FullName!,
+ typeof(System.IO.DirectoryInfo).FullName!,
+ typeof(System.IO.DriveInfo).FullName!,
+ typeof(System.IO.FileSystemWatcher).FullName!
},
InstructionHandleResult.DetectedFilesystemAccess
);
// shell access
- yield return new TypeFinder(typeof(System.Diagnostics.Process).FullName, InstructionHandleResult.DetectedShellAccess);
+ yield return new TypeFinder(typeof(System.Diagnostics.Process).FullName!, InstructionHandleResult.DetectedShellAccess);
}
}
}