From ffc2775fb60fa9f3383d1ecba008eb80db9a6336 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 12 Apr 2017 22:20:53 -0400 Subject: basics of bsod engine --- TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll | Bin 131584 -> 131584 bytes TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb | Bin 38400 -> 38400 bytes 2 files changed, 0 insertions(+), 0 deletions(-) (limited to 'TimeHACK.Engine/obj') diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll index 7c31e94..4a6f36a 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll differ diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb index 97907dd..71b6806 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb differ -- cgit v1.2.3 From f1e0c8f75de4a5086ff955789e9397696df25199 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 12 Apr 2017 22:25:16 -0400 Subject: damn you github desktop >:( --- TimeHACK.Engine/BSODCreator.cs | 19 ++++ TimeHACK.Engine/Properties/Resources.Designer.cs | 10 ++ TimeHACK.Engine/Properties/Resources.resx | 3 + .../WinClassic/Window/windows_command_prompt.ttf | Bin 0 -> 29616 bytes TimeHACK.Engine/Template/Win9XBSOD.Designer.cs | 123 +++++++++++++++++++++ TimeHACK.Engine/Template/Win9XBSOD.cs | 20 ++++ TimeHACK.Engine/Template/Win9XBSOD.resx | 120 ++++++++++++++++++++ TimeHACK.Engine/TimeHACK.Engine.csproj | 11 ++ .../DesignTimeResolveAssemblyReferencesInput.cache | Bin 9177 -> 9298 bytes .../TempPE/Properties.Resources.Designer.cs.dll | Bin 5632 -> 5632 bytes TimeHACK.Main/Properties/Resources.Designer.cs | 10 ++ TimeHACK.Main/Properties/Resources.resx | 3 + TimeHACK.Main/Resources/windows_command_prompt.ttf | Bin 0 -> 29616 bytes TimeHACK.Main/TimeHACK.Main.csproj | 1 + TimeHACK.Main/TitleScreen.cs | 1 + .../DesignTimeResolveAssemblyReferencesInput.cache | Bin 12641 -> 12742 bytes .../TempPE/Properties.Resources.Designer.cs.dll | Bin 10240 -> 10240 bytes 17 files changed, 321 insertions(+) create mode 100644 TimeHACK.Engine/BSODCreator.cs create mode 100644 TimeHACK.Engine/Resources/WinClassic/Window/windows_command_prompt.ttf create mode 100644 TimeHACK.Engine/Template/Win9XBSOD.Designer.cs create mode 100644 TimeHACK.Engine/Template/Win9XBSOD.cs create mode 100644 TimeHACK.Engine/Template/Win9XBSOD.resx create mode 100644 TimeHACK.Main/Resources/windows_command_prompt.ttf (limited to 'TimeHACK.Engine/obj') diff --git a/TimeHACK.Engine/BSODCreator.cs b/TimeHACK.Engine/BSODCreator.cs new file mode 100644 index 0000000..eb9c9a5 --- /dev/null +++ b/TimeHACK.Engine/BSODCreator.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TimeHACK.Engine.Template; + +namespace TimeHACK.Engine +{ + public class BSODCreator + { + public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); + + public Win9XBSOD throw9XBSOD(bool except, int type) + { + return null; + } + } +} diff --git a/TimeHACK.Engine/Properties/Resources.Designer.cs b/TimeHACK.Engine/Properties/Resources.Designer.cs index 769996a..4fc5367 100644 --- a/TimeHACK.Engine/Properties/Resources.Designer.cs +++ b/TimeHACK.Engine/Properties/Resources.Designer.cs @@ -249,5 +249,15 @@ namespace TimeHACK.Engine.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] windows_command_prompt { + get { + object obj = ResourceManager.GetObject("windows_command_prompt", resourceCulture); + return ((byte[])(obj)); + } + } } } diff --git a/TimeHACK.Engine/Properties/Resources.resx b/TimeHACK.Engine/Properties/Resources.resx index fd22a0c..299d056 100644 --- a/TimeHACK.Engine/Properties/Resources.resx +++ b/TimeHACK.Engine/Properties/Resources.resx @@ -175,4 +175,7 @@ ..\Resources\WinAboutSeparator95.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\WinClassic\Window\windows_command_prompt.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/TimeHACK.Engine/Resources/WinClassic/Window/windows_command_prompt.ttf b/TimeHACK.Engine/Resources/WinClassic/Window/windows_command_prompt.ttf new file mode 100644 index 0000000..b771b3a Binary files /dev/null and b/TimeHACK.Engine/Resources/WinClassic/Window/windows_command_prompt.ttf differ diff --git a/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs b/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs new file mode 100644 index 0000000..169c81a --- /dev/null +++ b/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs @@ -0,0 +1,123 @@ +namespace TimeHACK.Engine.Template +{ + partial class Win9XBSOD + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // label1 + // + this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label1.AutoSize = true; + this.label1.BackColor = System.Drawing.Color.Silver; + this.label1.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.Blue; + this.label1.Location = new System.Drawing.Point(564, 240); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(147, 28); + this.label1.TabIndex = 0; + this.label1.Text = " Windows "; + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.Blue; + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox1.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.ForeColor = System.Drawing.Color.White; + this.textBox1.Location = new System.Drawing.Point(120, 294); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.Size = new System.Drawing.Size(950, 81); + this.textBox1.TabIndex = 0; + this.textBox1.TabStop = false; + this.textBox1.Text = "A fatal exception 0E has occured at 0028:C0034B23. The current application will " + + "be terminated."; + // + // textBox2 + // + this.textBox2.BackColor = System.Drawing.Color.Blue; + this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox2.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.ForeColor = System.Drawing.Color.White; + this.textBox2.Location = new System.Drawing.Point(120, 381); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ReadOnly = true; + this.textBox2.Size = new System.Drawing.Size(950, 101); + this.textBox2.TabIndex = 1; + this.textBox2.TabStop = false; + this.textBox2.Text = "* Press any key to rewind time to before the crash.\r\n* Press ESC to shutdown yo" + + "ur computer. You will lose any\r\n unsaved data in all applications."; + // + // textBox3 + // + this.textBox3.BackColor = System.Drawing.Color.Blue; + this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox3.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.ForeColor = System.Drawing.Color.White; + this.textBox3.Location = new System.Drawing.Point(450, 488); + this.textBox3.Multiline = true; + this.textBox3.Name = "textBox3"; + this.textBox3.ReadOnly = true; + this.textBox3.Size = new System.Drawing.Size(382, 34); + this.textBox3.TabIndex = 2; + this.textBox3.TabStop = false; + this.textBox3.Text = "Press any key to rewind _"; + // + // Win9XBSOD + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Blue; + this.ClientSize = new System.Drawing.Size(1280, 720); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Win9XBSOD"; + this.Text = "Win9XBSOD"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox3; + } +} \ No newline at end of file diff --git a/TimeHACK.Engine/Template/Win9XBSOD.cs b/TimeHACK.Engine/Template/Win9XBSOD.cs new file mode 100644 index 0000000..b98fa6a --- /dev/null +++ b/TimeHACK.Engine/Template/Win9XBSOD.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TimeHACK.Engine.Template +{ + public partial class Win9XBSOD : Form + { + public Win9XBSOD() + { + InitializeComponent(); + } + } +} diff --git a/TimeHACK.Engine/Template/Win9XBSOD.resx b/TimeHACK.Engine/Template/Win9XBSOD.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Engine/Template/Win9XBSOD.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TimeHACK.Engine/TimeHACK.Engine.csproj b/TimeHACK.Engine/TimeHACK.Engine.csproj index 47c839d..2ca3c7c 100644 --- a/TimeHACK.Engine/TimeHACK.Engine.csproj +++ b/TimeHACK.Engine/TimeHACK.Engine.csproj @@ -45,6 +45,13 @@ + + + Form + + + Win9XBSOD.cs + UserControl @@ -77,6 +84,9 @@ ResXFileCodeGenerator Resources.Designer.cs + + Win9XBSOD.cs + AboutBox95.cs @@ -107,6 +117,7 @@ + diff --git a/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index 38115e1..67f8a94 100644 Binary files a/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/TimeHACK.Engine/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll index 7f8be7c..5de7cbf 100644 Binary files a/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll and b/TimeHACK.Engine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index 6626ab9..a46352a 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -590,5 +590,15 @@ namespace TimeHACK.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Looks up a localized resource of type System.Byte[]. + /// + internal static byte[] windows_command_prompt { + get { + object obj = ResourceManager.GetObject("windows_command_prompt", resourceCulture); + return ((byte[])(obj)); + } + } } } diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index 1263b61..37a86b3 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -285,4 +285,7 @@ ..\Resources\WinClassic\Win95IconNotepad.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\windows_command_prompt.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/TimeHACK.Main/Resources/windows_command_prompt.ttf b/TimeHACK.Main/Resources/windows_command_prompt.ttf new file mode 100644 index 0000000..b771b3a Binary files /dev/null and b/TimeHACK.Main/Resources/windows_command_prompt.ttf differ diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index d321d8b..654f278 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -212,6 +212,7 @@ Settings.settings True + diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs index 38086b9..7feb510 100644 --- a/TimeHACK.Main/TitleScreen.cs +++ b/TimeHACK.Main/TitleScreen.cs @@ -47,6 +47,7 @@ namespace TimeHACK // Initialize Font pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\LeviWindows.ttf"); + pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\windows_command_prompt.ttf"); gameversion.Font = new Font(pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, (0)); // Start the VM Mode timer diff --git a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache index e4d9d16..bdd3669 100644 Binary files a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache and b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/TimeHACK.Main/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/TimeHACK.Main/obj/Release/TempPE/Properties.Resources.Designer.cs.dll index a68ac5f..556e9e0 100644 Binary files a/TimeHACK.Main/obj/Release/TempPE/Properties.Resources.Designer.cs.dll and b/TimeHACK.Main/obj/Release/TempPE/Properties.Resources.Designer.cs.dll differ -- cgit v1.2.3