Browse Source

Properly deprecated ModPrefs

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
7c48f6e3be
2 changed files with 5 additions and 1 deletions
  1. +3
    -1
      IPA.Loader/Config/IniFile.cs
  2. +2
    -0
      IPA.Loader/Config/ModPrefs.cs

+ 3
- 1
IPA.Loader/Config/IniFile.cs View File

@ -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
/// <summary>
/// Create a New INI file to store or load data
/// </summary>
[Obsolete("Jesus, this uses old 16-bit system calls!")]
internal class IniFile
{
[DllImport("KERNEL32.DLL", EntryPoint = "GetPrivateProfileStringW",


+ 2
- 0
IPA.Loader/Config/ModPrefs.cs View File

@ -8,6 +8,7 @@ namespace IPA.Config
/// <summary>
/// Allows to get and set preferences for your mod.
/// </summary>
[Obsolete("This uses IniFile")]
public interface IModPrefs
{
/// <summary>
@ -87,6 +88,7 @@ namespace IPA.Config
/// <summary>
/// Allows to get and set preferences for your mod.
/// </summary>
[Obsolete("This uses IniFile, which is dumb")]
public class ModPrefs : IModPrefs
{
private static ModPrefs _staticInstance;


Loading…
Cancel
Save