From 7c48f6e3be3e2c773e83b4f8486b5fbff3d736ac Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 13 Apr 2019 17:39:39 -0500 Subject: [PATCH] Properly deprecated ModPrefs --- IPA.Loader/Config/IniFile.cs | 4 +++- IPA.Loader/Config/ModPrefs.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/IPA.Loader/Config/IniFile.cs b/IPA.Loader/Config/IniFile.cs index 3ba9300b..7a808728 100644 --- a/IPA.Loader/Config/IniFile.cs +++ b/IPA.Loader/Config/IniFile.cs @@ -1,4 +1,5 @@ -using System.IO; +using System; +using System.IO; using System.Runtime.InteropServices; using System.Text; @@ -7,6 +8,7 @@ namespace IPA.Config /// /// Create a New INI file to store or load data /// + [Obsolete("Jesus, this uses old 16-bit system calls!")] internal class IniFile { [DllImport("KERNEL32.DLL", EntryPoint = "GetPrivateProfileStringW", diff --git a/IPA.Loader/Config/ModPrefs.cs b/IPA.Loader/Config/ModPrefs.cs index e63002f7..151162f0 100644 --- a/IPA.Loader/Config/ModPrefs.cs +++ b/IPA.Loader/Config/ModPrefs.cs @@ -8,6 +8,7 @@ namespace IPA.Config /// /// Allows to get and set preferences for your mod. /// + [Obsolete("This uses IniFile")] public interface IModPrefs { /// @@ -87,6 +88,7 @@ namespace IPA.Config /// /// Allows to get and set preferences for your mod. /// + [Obsolete("This uses IniFile, which is dumb")] public class ModPrefs : IModPrefs { private static ModPrefs _staticInstance;