Cosmos/source/Cosmos.Build.Windows/BuildRegistry.cs
smremde_cp 73c17b4fda Fixed registry issues (for those without keys to start with)
Added some PCI debugging (to determine qemu crash)
QEmu is still freezing at random points - anyone know how to use GDB?
2008-03-18 12:04:07 +00:00

30 lines
757 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
namespace Cosmos.Build.Windows
{
public static class BuildRegistry
{
public static void Write(string key, string value)
{
RegistryKey xKey = Registry.CurrentUser.CreateSubKey(@"Software\Cosmos");
xKey.SetValue(key, value);
}
public static string Read(string key)
{
try
{
RegistryKey xKey = Registry.CurrentUser.OpenSubKey(@"Software\Cosmos");
return (string)xKey.GetValue(key);
}
catch
{
return null;
}
}
}
}