summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentCoordinator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 22:46:19 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 22:46:19 -0400
commitb4e979cc991a0c2a45ad986210108edd2d43e43d (patch)
tree6894e1f3e965680b5feb6516457e898647d7e9aa /src/SMAPI/Framework/ContentCoordinator.cs
parent2e7c233f6c9bf6430672b39f970a3324deba79dd (diff)
downloadSMAPI-b4e979cc991a0c2a45ad986210108edd2d43e43d.tar.gz
SMAPI-b4e979cc991a0c2a45ad986210108edd2d43e43d.tar.bz2
SMAPI-b4e979cc991a0c2a45ad986210108edd2d43e43d.zip
fix all warnings to simplify migration to nullable annotations (#837)
Diffstat (limited to 'src/SMAPI/Framework/ContentCoordinator.cs')
-rw-r--r--src/SMAPI/Framework/ContentCoordinator.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ContentCoordinator.cs b/src/SMAPI/Framework/ContentCoordinator.cs
index bfde649a..81820b05 100644
--- a/src/SMAPI/Framework/ContentCoordinator.cs
+++ b/src/SMAPI/Framework/ContentCoordinator.cs
@@ -610,6 +610,7 @@ namespace StardewModdingAPI.Framework
yield return group;
// legacy load operations
+#pragma warning disable CS0612, CS0618 // deprecated code
foreach (ModLinked<IAssetLoader> loader in this.Loaders)
{
// check if loader applies
@@ -695,6 +696,7 @@ namespace StardewModdingAPI.Framework
}
);
}
+#pragma warning restore CS0612, CS0618
}
/// <summary>Get an asset info compatible with legacy <see cref="IAssetLoader"/> and <see cref="IAssetEditor"/> instances, which always expect the base name.</summary>