Files
@ eee2a6a0c86b
Branch filter:
Location: ATITD-Tools/Desert-Paint-Lab/AppSettings.cs - annotation
eee2a6a0c86b
1.0 KiB
text/x-csharp
Loosen checks on testing for papyrus texture some more. Allow for a bit of error there, as long as everything else checks out.
5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 5d0a31247a93 | using System;
namespace DesertPaintLab
{
public class AppSettings
{
private AppSettings()
{
}
private static Settings _settings = new Settings();
public static void Get(string key, out int value)
{
_settings.Get(key, out value);
}
public static void Get(string key, out bool value)
{
_settings.Get(key, out value);
}
public static void Set(string key, int value)
{
_settings.Set(key, value);
}
public static void Set(string key, bool value)
{
_settings.Set(key, value);
}
public static void Save()
{
string settingsPath = System.IO.Path.Combine(FileUtils.AppDataPath, "settings");
_settings.Save(settingsPath);
}
public static bool Load()
{
string settingsPath = System.IO.Path.Combine(FileUtils.AppDataPath, "settings");
return _settings.Load(settingsPath);
}
}
}
|