Merge pull request #42 from lempamo/master

Master
This commit is contained in:
lempamo 2017-04-12 22:58:15 -04:00 committed by GitHub
commit 4cc2631a03
38 changed files with 334 additions and 13 deletions

Binary file not shown.

View file

@ -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;
}
}
}

View file

@ -249,5 +249,15 @@ internal static System.Drawing.Bitmap WinClassicRestore {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] windows_command_prompt {
get {
object obj = ResourceManager.GetObject("windows_command_prompt", resourceCulture);
return ((byte[])(obj));
}
}
}
}

View file

@ -175,4 +175,7 @@
<data name="WinAboutSeparator95" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinAboutSeparator95.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="windows_command_prompt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\Window\windows_command_prompt.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

View file

@ -103,7 +103,7 @@ private void InitializeComponent()
this.textBox4.Location = new System.Drawing.Point(76, 184);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(250, 16);
this.textBox4.Text = "System Resources: 97% Free";
this.textBox4.Text = "System Resources: 97% Free";
//
// AboutBox95
//

View file

@ -0,0 +1,123 @@
namespace TimeHACK.Engine.Template
{
partial class Win9XBSOD
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
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;
}
}

View file

@ -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();
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -45,6 +45,13 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BSODCreator.cs" />
<Compile Include="Template\Win9XBSOD.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Template\Win9XBSOD.Designer.cs">
<DependentUpon>Win9XBSOD.cs</DependentUpon>
</Compile>
<Compile Include="Template\AboutBox95.cs">
<SubType>UserControl</SubType>
</Compile>
@ -77,6 +84,9 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Template\Win9XBSOD.resx">
<DependentUpon>Win9XBSOD.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Template\AboutBox95.resx">
<DependentUpon>AboutBox95.cs</DependentUpon>
</EmbeddedResource>
@ -107,6 +117,7 @@
<Content Include="Resources\WinClassic\Window\WinClassicMin.png" />
<Content Include="Resources\WinClassic\Window\WinClassicRestore.png" />
<Content Include="Resources\WinClassic\Window\WinClassicWarning.png" />
<None Include="Resources\WinClassic\Window\windows_command_prompt.ttf" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\WinClassic\Window\LeviWindows.ttf" />

View file

@ -69,14 +69,14 @@ public Infobox95 startInfobox95(String title, String text, Image erroricon)
return app;
}
public WinClassic startAboutBox95(String aboutwhat, String fulltitle, Image appicon)
public WinClassic startAboutBox95(String shortname, String longname, Image appicon)
{
AboutBox95 uc = new AboutBox95();
uc.pictureBox1.Image = appicon;
uc.textBox1.Text = fulltitle + "\r\nWindows 95\r\nCopyright © 1981-1995 Microsoft Corp.";
uc.textBox1.Text = longname + "\r\nWindows 95\r\nCopyright © 1981-1995 Microsoft Corp.";
uc.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
return startWin95(uc, "About " + aboutwhat, null, false, false);
return startWin95(uc, "About " + shortname, null, false, false);
}
}
}

View file

@ -590,5 +590,15 @@ internal static System.Drawing.Bitmap WinClassicTime {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] windows_command_prompt {
get {
object obj = ResourceManager.GetObject("windows_command_prompt", resourceCulture);
return ((byte[])(obj));
}
}
}
}

View file

@ -285,4 +285,7 @@
<data name="Win95IconNotepad" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\Win95IconNotepad.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="windows_command_prompt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\windows_command_prompt.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

Binary file not shown.

View file

@ -212,6 +212,7 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Resources\windows_command_prompt.ttf" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2">

View file

@ -47,6 +47,7 @@ private void TitleScreen_Load(object sender, EventArgs e)
// 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

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>TOhLeLW68bNHosx5MJMNQdVWIf2PUFEjMZ38dvaCqTw=</dsig:DigestValue>
<dsig:DigestValue>VduLlSoD7d0MBYc1ho+HDfMuZ/uzQE4he8sPzCKxwaU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -63,7 +63,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>VnbVJG+9+xQ4L8FqWXRdGyghEfsaCjWPhltXzTroAxY=</dsig:DigestValue>
<dsig:DigestValue>UkmrYxv85vpTsQ+6g/iPFw+8iMnrvOXqq5OzuLErkFw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -75,7 +75,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>DgulC6PIjsb5Ut2SA6A7QFq/UCPgKUqOn6tzlYWABME=</dsig:DigestValue>
<dsig:DigestValue>Y2hqc/D9+y2kNC0cEsVNkOzAx4u8XplC/WkJHwrHczE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>TOhLeLW68bNHosx5MJMNQdVWIf2PUFEjMZ38dvaCqTw=</dsig:DigestValue>
<dsig:DigestValue>VduLlSoD7d0MBYc1ho+HDfMuZ/uzQE4he8sPzCKxwaU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -63,7 +63,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>VnbVJG+9+xQ4L8FqWXRdGyghEfsaCjWPhltXzTroAxY=</dsig:DigestValue>
<dsig:DigestValue>UkmrYxv85vpTsQ+6g/iPFw+8iMnrvOXqq5OzuLErkFw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -75,7 +75,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>DgulC6PIjsb5Ut2SA6A7QFq/UCPgKUqOn6tzlYWABME=</dsig:DigestValue>
<dsig:DigestValue>Y2hqc/D9+y2kNC0cEsVNkOzAx4u8XplC/WkJHwrHczE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>TOhLeLW68bNHosx5MJMNQdVWIf2PUFEjMZ38dvaCqTw=</dsig:DigestValue>
<dsig:DigestValue>VduLlSoD7d0MBYc1ho+HDfMuZ/uzQE4he8sPzCKxwaU=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -63,7 +63,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>VnbVJG+9+xQ4L8FqWXRdGyghEfsaCjWPhltXzTroAxY=</dsig:DigestValue>
<dsig:DigestValue>UkmrYxv85vpTsQ+6g/iPFw+8iMnrvOXqq5OzuLErkFw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@ -75,7 +75,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>DgulC6PIjsb5Ut2SA6A7QFq/UCPgKUqOn6tzlYWABME=</dsig:DigestValue>
<dsig:DigestValue>Y2hqc/D9+y2kNC0cEsVNkOzAx4u8XplC/WkJHwrHczE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>