mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
Added some PCI debugging (to determine qemu crash) QEmu is still freezing at random points - anyone know how to use GDB?
30 lines
757 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|