summaryrefslogtreecommitdiffstats
path: root/win/C#/frmActivityWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-08-04 17:36:06 +0000
committersr55 <[email protected]>2008-08-04 17:36:06 +0000
commit1cf6953b3af6e6ff36697e712c77a9c98cdb2c41 (patch)
tree37223cf17e74fe1f42b4aac7013b97df7aa69205 /win/C#/frmActivityWindow.cs
parenta407a9c74cc0eb283d6a5182cb2dafb37c8e603f (diff)
WinGui:
- Activity log - Added CPU description, temp dir, install dir and data dir to the WinGUI log header. - Renamed rssReader to appcast reader - Added option for stable builds to check unstable appcast. - Unstable builds check both appcasts so will always show the latest release - Added some containers to frmMain. - Fixed (I think) an issue with a regex which prases the CLI version information. It may not detect public release build information up correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1606 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmActivityWindow.cs')
-rw-r--r--win/C#/frmActivityWindow.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs
index e23ff0aa5..36e405b38 100644
--- a/win/C#/frmActivityWindow.cs
+++ b/win/C#/frmActivityWindow.cs
@@ -15,8 +15,7 @@ using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Runtime.InteropServices;
-
-
+using Microsoft.Win32;
namespace Handbrake
{
@@ -49,9 +48,19 @@ namespace Handbrake
string logFile = Path.Combine(Path.GetTempPath(), read_file);
if (File.Exists(logFile))
{
+
+ // Get the CPU Processor Name
+ RegistryKey RegKey = Registry.LocalMachine;
+ RegKey = RegKey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
+ Object cpuType = RegKey.GetValue("ProcessorNameString");
+
// Add a header to the log file indicating that it's from the Windows GUI and display the windows version
rtf_actLog.AppendText("### Windows GUI \n");
rtf_actLog.AppendText(String.Format("### Running: {0} \n###\n", Environment.OSVersion.ToString()));
+ rtf_actLog.AppendText(String.Format("### CPU: {0} \n", cpuType));
+ rtf_actLog.AppendText(String.Format("### Temp Dir: {0} \n", Path.GetTempPath()));
+ rtf_actLog.AppendText(String.Format("### Install Dir: {0} \n", Application.StartupPath));
+ rtf_actLog.AppendText(String.Format("### Data Dir: {0} \n###\n", Application.UserAppDataPath));
// Start a new thread to run the autoUpdate process
monitorFile = new Thread(autoUpdate);