Merge branch 'master' into mono-fixes

Conflicts:
	ROMVault2/Settings.cs
This commit is contained in:
Jim Westfall
2014-12-08 17:13:52 -08:00
11 changed files with 396 additions and 765 deletions

View File

@@ -59,44 +59,6 @@ namespace ROMVault2
public static bool IsMono { get { return (Type.GetType ("Mono.Runtime") != null); } }
public static string EMail
{
get
{
RegistryKey regKey1 = Registry.CurrentUser;
regKey1 = regKey1.CreateSubKey("Software\\RomVault2\\User");
return regKey1.GetValue("Email", "").ToString();
}
set
{
RegistryKey regKey = Registry.CurrentUser;
regKey = regKey.CreateSubKey("Software\\RomVault2\\User");
regKey.SetValue("Email", value);
}
}
public static string Username
{
get
{
RegistryKey regKey1 = Registry.CurrentUser;
regKey1 = regKey1.CreateSubKey("Software\\RomVault2\\User");
return regKey1.GetValue("UserName", "").ToString();
}
set
{
RegistryKey regKey = Registry.CurrentUser;
regKey = regKey.CreateSubKey("Software\\RomVault2\\User");
regKey.SetValue("UserName", value);
}
}
public static void SetDefaults()
{
CacheFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RomVault2_" + DBVersion.Version + ".Cache");