Public feed
#376483
private void editreg_Click(object sender, EventArgs e)
{
string s_unpackedHive = "boot.rgu";
MessageBox.Show("this feature might not work as i'm developing under vista and rgucomp does not seem to work there");
// application startuppath = c:\xda
System.Environment.SetEnvironmentVariable("_FLATRELEASEDIR", Application.StartupPath );
// s_romname,fullpath = c:\xda\rom
StartProcessIntoFile("Tools\\rgucomp.exe", "-o Dump-" + s_romname + "\\default.hv -nologo", Application.StartupPath, s_unpackedHive);
MessageBox.Show("Notepad will open now, when you are done editing make sure you save");
StartProcessIntoConsole("notepad.exe", s_unpackedHive, Application.StartupPath);
StartProcessIntoConsole("Tools\\rgucomp.exe", "-b", Application.StartupPath );
string s_source = Application.StartupPath + "\\boot.hv";
string s_dest = Application.StartupPath + "\\Dump-" + s_romname + "\\default.hv";
LogPrint("Moving " + s_source + " to " + s_dest);
....
..
..
.
}