Initial Commit

Added project files to the repository.
This commit is contained in:
fishguy6564 2021-10-20 21:02:28 -04:00 committed by GitHub
parent 1b22c7b7ae
commit 0f4b4604d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with 2400 additions and 0 deletions

6
App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

197
CheatEditor.Designer.cs generated Normal file
View File

@ -0,0 +1,197 @@

namespace Nitro_AR_Cheat_Manager
{
partial class CheatEditor
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CheatEditor));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lineCountLabel = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.nameText = new System.Windows.Forms.TextBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.codeText = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.descriptionText = new System.Windows.Forms.TextBox();
this.saveCheatButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lineCountLabel);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.nameText);
this.groupBox1.Location = new System.Drawing.Point(4, 5);
this.groupBox1.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox1.Size = new System.Drawing.Size(193, 42);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Code Name";
//
// lineCountLabel
//
this.lineCountLabel.AutoSize = true;
this.lineCountLabel.Location = new System.Drawing.Point(158, 18);
this.lineCountLabel.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0);
this.lineCountLabel.Name = "lineCountLabel";
this.lineCountLabel.Size = new System.Drawing.Size(13, 13);
this.lineCountLabel.TabIndex = 2;
this.lineCountLabel.Text = "0";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(127, 18);
this.label1.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(35, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Lines:";
//
// nameText
//
this.nameText.Location = new System.Drawing.Point(6, 16);
this.nameText.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.nameText.Name = "nameText";
this.nameText.Size = new System.Drawing.Size(121, 20);
this.nameText.TabIndex = 0;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.codeText);
this.groupBox2.Location = new System.Drawing.Point(4, 49);
this.groupBox2.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox2.Size = new System.Drawing.Size(193, 140);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Cheat Code";
//
// codeText
//
this.codeText.Location = new System.Drawing.Point(6, 17);
this.codeText.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.codeText.Multiline = true;
this.codeText.Name = "codeText";
this.codeText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.codeText.Size = new System.Drawing.Size(181, 118);
this.codeText.TabIndex = 0;
this.codeText.TextChanged += new System.EventHandler(this.codeText_TextChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.descriptionText);
this.groupBox3.Location = new System.Drawing.Point(200, 49);
this.groupBox3.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox3.Size = new System.Drawing.Size(193, 140);
this.groupBox3.TabIndex = 2;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Code Description";
//
// descriptionText
//
this.descriptionText.Location = new System.Drawing.Point(7, 17);
this.descriptionText.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.descriptionText.Multiline = true;
this.descriptionText.Name = "descriptionText";
this.descriptionText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.descriptionText.Size = new System.Drawing.Size(181, 118);
this.descriptionText.TabIndex = 1;
//
// saveCheatButton
//
this.saveCheatButton.Location = new System.Drawing.Point(298, 11);
this.saveCheatButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.saveCheatButton.Name = "saveCheatButton";
this.saveCheatButton.Size = new System.Drawing.Size(94, 36);
this.saveCheatButton.TabIndex = 3;
this.saveCheatButton.Text = "Save Code";
this.saveCheatButton.UseVisualStyleBackColor = true;
this.saveCheatButton.Click += new System.EventHandler(this.saveCheatButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(200, 11);
this.exitButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(94, 36);
this.exitButton.TabIndex = 4;
this.exitButton.Text = "Exit Editor";
this.exitButton.UseVisualStyleBackColor = true;
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// CheatEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(396, 208);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.saveCheatButton);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "CheatEditor";
this.Text = "CheatEditor";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label lineCountLabel;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox nameText;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TextBox codeText;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TextBox descriptionText;
private System.Windows.Forms.Button saveCheatButton;
private System.Windows.Forms.Button exitButton;
}
}

119
CheatEditor.cs Normal file
View File

@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Nitro_AR_Cheat_Manager
{
public partial class CheatEditor : Form
{
private Code selectedCheat;
private CodeList cheatList;
public CheatEditor(Code selectedCheat, CodeList cheatList)
{
InitializeComponent();
this.selectedCheat = selectedCheat;
this.cheatList = cheatList;
initializeComponents();
}
private void initializeComponents()
{
if (this.selectedCheat != null)
{
nameText.Text = this.selectedCheat.getName();
codeText.Text = this.selectedCheat.getCheat();
descriptionText.Text = this.selectedCheat.getDescription();
lineCountLabel.Text = this.selectedCheat.getLineAmount().ToString();
}
}
public String removeEmptyLines(String s)
{
return Regex.Replace(s, @"^\s*$\n|\r", string.Empty, RegexOptions.Multiline).TrimEnd();
}
private List<String> getLinesFromString(String s)
{
String accumulator = "";
List<String> lines = new List<String>();
foreach (Char character in s)
{
if (character == 0xA)
{
accumulator = accumulator.Replace("\r", "");
lines.Add(String.Copy(accumulator));
accumulator = "";
}
else accumulator += character;
}
lines.Add(String.Copy(accumulator));
return lines;
}
//Validates format of cheat with regular expressions
private bool validateCheat(String cheat)
{
Regex rx = new Regex(@"^[\da-fA-F]{8}\s[\da-fA-F]{8}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
List<String> stringLines;
cheat = removeEmptyLines(cheat);
stringLines = getLinesFromString(cheat);
foreach (String line in stringLines)
{
if (!rx.IsMatch(line)) return false;
}
return true;
}
private void saveCheatButton_Click(object sender, EventArgs e)
{
String cheatName = nameText.Text;
String cheatCode = codeText.Text;
String description = descriptionText.Text;
int lineAmount = Convert.ToInt32(lineCountLabel.Text);
if (validateCheat(cheatCode))
{
if (this.selectedCheat == null) this.cheatList.addCode(cheatName, cheatCode, description, lineAmount, false);
else this.selectedCheat.update(cheatName, cheatCode, description, lineAmount, false);
this.Close();
}
else MessageBox.Show("Cheat Code is not in the proper format!");
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
private void codeText_TextChanged(object sender, EventArgs e)
{
List<String> stringLines;
int lineCount = 0;
String cheat = codeText.Text;
Regex rx = new Regex(@"^[\da-fA-F]{8}\s[\da-fA-F]{8}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
cheat = removeEmptyLines(cheat);
stringLines = getLinesFromString(cheat);
foreach (String line in stringLines)
{
if (rx.IsMatch(line)) lineCount++;
}
lineCountLabel.Text = lineCount.ToString();
}
}
}

197
CheatEditor.resx Normal file
View File

@ -0,0 +1,197 @@
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAOckAADnJAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAkAE7/IgBJ/yAARf8dAED/GwA7/xgANv8WADD/EwAr/xEAJf8RACX/DwAf/w0A
G/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEdAwAJvAcAGP8IABv/BAAP+gAAAFgAAAAJAQEAaxEK
APscEQD/Fg4A/wkFAKUAAAASAAAAACYAU/8AAP//AAD//wAA//8AAP//GwA7/xgANv8AAOf/AAD//wAA
//8AAOf/DwAf/w0AG//Gxsb/xsbG/8bGxv/Gxsb/xsbG/zs5P/8gAGn/RQDh/0sA9/81ALD/JRs8/1lZ
Wf8tHQDkt3QA//qeAP/biwD/XDsA/wkGAIkAAAAAKQBW/yYAUf8ATf//AEb//yAARf8eAEH/ADD//wAn
//8AAID/CAil/wAZ//8AAOf/DwAg/wAAAP8AAAD/AAAA/wAAAP8AAAD/BwAY/0QA3/9OAP//TgD//00A
/P8mAH7/AAAA/49bAP/8oAD//6IA//+iAP/LgQD/FAwA/QAAAAAAAAAAKQBW/wBZ//8ATf//IgBJ/yAA
Rf8eAEH/GwA7/xgANv8AAID/ABn//wAZ//8RACX/UlJS/1JSUv9SUlL/UlJS/1JSUv8IABv/TQH5/04B
//9OAP//TQD9/y0Alf8AAAD/pmoB//2iAf//ogD//6IA/+OQAP8YDwD/AAAAAAAAAAArAFz/AFn//wBZ
//8kAE7/IgBJ/x8ARf8AAOf/ADD//wAn//8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/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/5+f
n//Ozs7/n5+f/wAAAP+EUlL//71C///npf//56X//+el///npf//56X//9Zz//+9Qv//vUL/AAAA/5+f
n//Ozs7/n5+f/87Ozv+fn5//hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////
//+fn5//zs7O/5+fn//Ozs7/AAAA/4RSUv//56X//+el///npf//56X//+el///npf//56X//+el///n
pf8AAAD/zs7O/5+fn//Ozs7/n5+f/87Ozv+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAD//////+fn5//Ozs7/zs7O/87Ozv8AAAD/hFJS///npf//98b///fG///3xv//98b///fG///3
xv//98b//+el/wAAAP/Ozs7/zs7O/87Ozv/Ozs7/zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAP//////5+fn/87Ozv/Ozs7/zs7O/wAAAP+EUlL///fG///3xv//98b///e1///3
xv//98b///e1///3xv//98b/AAAA/87Ozv/Ozs7/zs7O/87Ozv/Ozs7/hISE/wAAAP8AAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA///////n5+f/xsbG/8bGxv/Gxsb/AAAA/4RSUv///+f////n////
5////+f////n////5////+f///fG///3xv8AAAD/xsbG/8bGxv/Gxsb/xsbG/8bGxv+EhIT/AAAA/wAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////+fn5//Gxsb/xsbG/8bGxv8AAAD/hFJS////
5////////////////////+f////n////5////+f////n/wAAAP/Gxsb/xsbG/8bGxv/Gxsb/xsbG/4SE
hP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/8bGxv/Gxsb/xsbG/wAA
AP+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/////4AH4ACAAAAAgAAAAMAAAADAAAAAwAAAAIAAAACAAAAAgAAAAOAA
AADwAAAA8AAAAPAAAADwAAAH+AAAB/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gA
AAP4AAAD+AAAA/wAAAf///////////////8=
</value>
</data>
</root>

142
Code.cs Normal file
View File

@ -0,0 +1,142 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nitro_AR_Cheat_Manager
{
public class Code
{
private int lineAmount;
private String name;
private String cheat;
private String description;
private bool isEnabled;
public Code(String name, String cheat, String description, int lineAmount, bool isEnabled)
{
this.name = name;
this.cheat = cheat;
this.description = description;
this.lineAmount = lineAmount;
this.isEnabled = isEnabled;
}
public Code()
{
this.cheat = "";
this.description = "";
this.lineAmount = 0;
}
public void update(String name, String cheat, String description, int lineAmount, bool isEnabled)
{
this.name = name;
this.cheat = cheat;
this.description = description;
this.lineAmount = lineAmount;
this.isEnabled = isEnabled;
}
public String getCheat()
{
return this.cheat;
}
public String getDescription()
{
return this.description;
}
public String getName()
{
return this.name;
}
public int getLineAmount()
{
return this.lineAmount;
}
public bool isCodeEnabled()
{
return this.isEnabled;
}
public override String ToString()
{
String accumulator = "";
if (this.isEnabled) accumulator += "*";
accumulator += "[" + this.name + "]\r\n";
accumulator += this.cheat + "\r\n\n";
if (!this.description.Equals(""))
{
accumulator += this.description;
}
return accumulator;
}
private List<String> getCodeFromString(String s)
{
String[] codeSplit;
String accumulator = "";
List<String> lines = new List<String>();
foreach (Char character in s)
{
if (character == 0xA)
{
accumulator = accumulator.Replace("\r", "");
codeSplit = accumulator.Split(' ');
foreach(String split in codeSplit)
{
lines.Add(String.Copy(split));
}
accumulator = "";
}
else accumulator += character;
}
if(!accumulator.Equals(""))
{
accumulator = accumulator.Replace("\r", "");
codeSplit = accumulator.Split(' ');
foreach (String split in codeSplit)
{
lines.Add(String.Copy(split));
}
}
return lines;
}
public List<byte> getBinaryFormat()
{
List<byte> codeBinary = new List<byte>();
List<String> codeStrings = getCodeFromString(this.cheat);
foreach(String code in codeStrings)
{
int value = Convert.ToInt32(code, 16);
for(int i = 0; i < 4; i++)
{
codeBinary.Add((byte)(value & 0xFF));
value = value >> 8;
}
}
return codeBinary;
}
public void setEnabled(bool isEnabled)
{
this.isEnabled = isEnabled;
}
}
}

117
CodeList.cs Normal file
View File

@ -0,0 +1,117 @@
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nitro_AR_Cheat_Manager
{
public class CodeList
{
private List<Code> list;
private int amount;
public CodeList(FileStream codeList)
{
}
public CodeList()
{
this.amount = 0;
this.list = new List<Code>();
}
public void addCode(String name, String cheat, String description, int lineAmount, bool isEnabled)
{
Code entry = new Code(name, cheat, description, lineAmount, isEnabled);
this.list.Add(entry);
this.amount++;
}
public void addCode(Code cheatcode)
{
this.list.Add(cheatcode);
this.amount++;
}
public void insertCode(Code cheatCode)
{
int index = this.list.IndexOf(cheatCode);
this.list.Insert(index, cheatCode);
}
public void removeCode(int index)
{
Code deletedCode = this.list[index];
this.list.Remove(deletedCode);
}
public void interpretFile(FileStream codeList)
{
return; //Todo
}
public Code getCode(int index)
{
return this.list[index];
}
public override String ToString()
{
String accumulator = "";
foreach(Code cheat in list)
{
accumulator += cheat.ToString() + "\n";
}
return accumulator;
}
public List<byte> convertIntByte(int value)
{
List<byte> codeBinary = new List<byte>();
for (int i = 0; i < 4; i++)
{
codeBinary.Add((byte)(value & 0xFF));
value = value >> 8;
}
return codeBinary;
}
public byte[] getBinaryFormat()
{
List<byte> listBinary = new List<byte>();
List<byte> headBinary;
int lineCount = 0;
foreach(Code cheat in list)
{
if (cheat.isCodeEnabled())
{
listBinary.AddRange(cheat.getBinaryFormat());
lineCount += cheat.getLineAmount();
}
}
headBinary = convertIntByte(lineCount * 2);
headBinary.AddRange(listBinary);
return headBinary.ToArray();
}
public String[] getStringList()
{
String[] nameList = new string[this.list.Count()];
for(int i = 0; i < nameList.Length; i++)
{
nameList[i] = this.list[i].getName();
}
return nameList;
}
}
}

72
CodeList1.cs Normal file
View File

@ -0,0 +1,72 @@
using System;
using System.IO;
using System.Collections.Generic;
public class CodeList
{
public class Code
{
private uint lineAmount;
private String cheat;
private String description;
public Code(String cheat, String description)
{
this.cheat = cheat;
this.description = description;
}
public String getCheat()
{
return this.cheat;
}
public String getDescription()
{
return this.description;
}
public uint getLineAmount()
{
return this.lineAmount;
}
}
private List<CodeList> list;
private int amount;
public CodeList(FileStream codeList)
{
}
public CodeList()
{
this.amount = 0;
this.list = new List<CodeList>();
}
public void clear()
{
this.list = null;
this.amount = 0;
}
public void addCode(String cheat, String description)
{
Code entry = new Code(cheat, description);
this.list.Add(entry);
this.amount++;
}
public void removeCode(int index)
{
Code deletedCode = this.list[index];
this.list.Remove(deletedCode);
}
public void interpretFile(FileStream codeList)
{
return; //Todo
}
}

103
Credits.Designer.cs generated Normal file
View File

@ -0,0 +1,103 @@

namespace Nitro_AR_Cheat_Manager
{
partial class Credits
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Credits));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(87, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Developed By";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F);
this.label2.Location = new System.Drawing.Point(50, 22);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(149, 29);
this.label2.TabIndex = 1;
this.label2.Text = "Fishguy6564";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(67, 51);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(129, 13);
this.label3.TabIndex = 2;
this.label3.Text = "Report Bugs and Errors to";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(78, 64);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(95, 13);
this.label4.TabIndex = 3;
this.label4.Text = "fishguy6564#1228";
//
// Credits
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(249, 96);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Credits";
this.Text = "Credits";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
}
}

20
Credits.cs Normal file
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 Nitro_AR_Cheat_Manager
{
public partial class Credits : Form
{
public Credits()
{
InitializeComponent();
}
}
}

197
Credits.resx Normal file
View File

@ -0,0 +1,197 @@
<?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>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAOckAADnJAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAkAE7/IgBJ/yAARf8dAED/GwA7/xgANv8WADD/EwAr/xEAJf8RACX/DwAf/w0A
G/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEdAwAJvAcAGP8IABv/BAAP+gAAAFgAAAAJAQEAaxEK
APscEQD/Fg4A/wkFAKUAAAASAAAAACYAU/8AAP//AAD//wAA//8AAP//GwA7/xgANv8AAOf/AAD//wAA
//8AAOf/DwAf/w0AG//Gxsb/xsbG/8bGxv/Gxsb/xsbG/zs5P/8gAGn/RQDh/0sA9/81ALD/JRs8/1lZ
Wf8tHQDkt3QA//qeAP/biwD/XDsA/wkGAIkAAAAAKQBW/yYAUf8ATf//AEb//yAARf8eAEH/ADD//wAn
//8AAID/CAil/wAZ//8AAOf/DwAg/wAAAP8AAAD/AAAA/wAAAP8AAAD/BwAY/0QA3/9OAP//TgD//00A
/P8mAH7/AAAA/49bAP/8oAD//6IA//+iAP/LgQD/FAwA/QAAAAAAAAAAKQBW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JC/0JCQv9CQkL/hISE/4SEhP+EhIT/hISE/4SE
hP+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////5+fn//Ozs7/n5+f/87O
zv8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP/Ozs7/n5+f/87O
zv+fn5//zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/5+f
n//Ozs7/n5+f/wAAAP+EUlL//71C///npf//56X//+el///npf//56X//9Zz//+9Qv//vUL/AAAA/5+f
n//Ozs7/n5+f/87Ozv+fn5//hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////
//+fn5//zs7O/5+fn//Ozs7/AAAA/4RSUv//56X//+el///npf//56X//+el///npf//56X//+el///n
pf8AAAD/zs7O/5+fn//Ozs7/n5+f/87Ozv+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAD//////+fn5//Ozs7/zs7O/87Ozv8AAAD/hFJS///npf//98b///fG///3xv//98b///fG///3
xv//98b//+el/wAAAP/Ozs7/zs7O/87Ozv/Ozs7/zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAP//////5+fn/87Ozv/Ozs7/zs7O/wAAAP+EUlL///fG///3xv//98b///e1///3
xv//98b///e1///3xv//98b/AAAA/87Ozv/Ozs7/zs7O/87Ozv/Ozs7/hISE/wAAAP8AAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA///////n5+f/xsbG/8bGxv/Gxsb/AAAA/4RSUv///+f////n////
5////+f////n////5////+f///fG///3xv8AAAD/xsbG/8bGxv/Gxsb/xsbG/8bGxv+EhIT/AAAA/wAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////+fn5//Gxsb/xsbG/8bGxv8AAAD/hFJS////
5////////////////////+f////n////5////+f////n/wAAAP/Gxsb/xsbG/8bGxv/Gxsb/xsbG/4SE
hP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/8bGxv/Gxsb/xsbG/wAA
AP+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+EUlL/AAAA/8bGxv/Gxsb/xsbG/8bG
xv/Gxsb/hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////n5+f/xsbG/8bG
xv/Gxsb/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/xsbG/8bG
xv/Gxsb/xsbG/8bGxv+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////+fn
5//n5+f/paWl/+fn5/+EhIT/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/4SE
hP/n5+f/paWl/+fn5//n5+f/zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AP/Gxsb/////////////////////////////////////////////////////////////////////////
///////////////////////////////////n5+f/hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/////4AH4ACAAAAAgAAAAMAAAADAAAAAwAAAAIAAAACAAAAAgAAAAOAA
AADwAAAA8AAAAPAAAADwAAAH+AAAB/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gA
AAP4AAAD+AAAA/wAAAf///////////////8=
</value>
</data>
</root>

291
Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,291 @@

namespace Nitro_AR_Cheat_Manager
{
partial class Form1
{
/// <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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.cheatListBox = new System.Windows.Forms.CheckedListBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.cheatTextBox = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.descriptionTextBox = new System.Windows.Forms.TextBox();
this.exportButton = new System.Windows.Forms.Button();
this.addCodeButton = new System.Windows.Forms.Button();
this.removeButton = new System.Windows.Forms.Button();
this.editButton = new System.Windows.Forms.Button();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.creditsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveListDialog = new System.Windows.Forms.SaveFileDialog();
this.openListDialog = new System.Windows.Forms.OpenFileDialog();
this.saveBinaryDialog = new System.Windows.Forms.SaveFileDialog();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// cheatListBox
//
this.cheatListBox.FormattingEnabled = true;
this.cheatListBox.Location = new System.Drawing.Point(11, 20);
this.cheatListBox.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.cheatListBox.Name = "cheatListBox";
this.cheatListBox.ScrollAlwaysVisible = true;
this.cheatListBox.Size = new System.Drawing.Size(198, 274);
this.cheatListBox.TabIndex = 0;
this.cheatListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.cheatListBox_ItemCheck);
this.cheatListBox.SelectedIndexChanged += new System.EventHandler(this.cheatListBox_SelectedIndexChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.cheatListBox);
this.groupBox1.Location = new System.Drawing.Point(9, 23);
this.groupBox1.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox1.Size = new System.Drawing.Size(220, 307);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Code List";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.cheatTextBox);
this.groupBox2.Location = new System.Drawing.Point(236, 23);
this.groupBox2.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox2.Size = new System.Drawing.Size(189, 174);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Cheat Code";
//
// cheatTextBox
//
this.cheatTextBox.Location = new System.Drawing.Point(9, 17);
this.cheatTextBox.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.cheatTextBox.Multiline = true;
this.cheatTextBox.Name = "cheatTextBox";
this.cheatTextBox.ReadOnly = true;
this.cheatTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.cheatTextBox.Size = new System.Drawing.Size(174, 150);
this.cheatTextBox.TabIndex = 0;
this.cheatTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.descriptionTextBox);
this.groupBox3.Location = new System.Drawing.Point(236, 200);
this.groupBox3.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.groupBox3.Size = new System.Drawing.Size(189, 107);
this.groupBox3.TabIndex = 3;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Code Description";
//
// descriptionTextBox
//
this.descriptionTextBox.Location = new System.Drawing.Point(9, 16);
this.descriptionTextBox.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.descriptionTextBox.Multiline = true;
this.descriptionTextBox.Name = "descriptionTextBox";
this.descriptionTextBox.ReadOnly = true;
this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.descriptionTextBox.Size = new System.Drawing.Size(174, 84);
this.descriptionTextBox.TabIndex = 0;
//
// exportButton
//
this.exportButton.Location = new System.Drawing.Point(236, 333);
this.exportButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.exportButton.Name = "exportButton";
this.exportButton.Size = new System.Drawing.Size(189, 21);
this.exportButton.TabIndex = 5;
this.exportButton.Text = "Export Binary";
this.exportButton.UseVisualStyleBackColor = true;
this.exportButton.Click += new System.EventHandler(this.exportButton_Click);
//
// addCodeButton
//
this.addCodeButton.Location = new System.Drawing.Point(9, 333);
this.addCodeButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.addCodeButton.Name = "addCodeButton";
this.addCodeButton.Size = new System.Drawing.Size(107, 21);
this.addCodeButton.TabIndex = 6;
this.addCodeButton.Text = "Add Code";
this.addCodeButton.UseVisualStyleBackColor = true;
this.addCodeButton.Click += new System.EventHandler(this.addCodeButton_Click);
//
// removeButton
//
this.removeButton.Location = new System.Drawing.Point(118, 333);
this.removeButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.removeButton.Name = "removeButton";
this.removeButton.Size = new System.Drawing.Size(111, 21);
this.removeButton.TabIndex = 8;
this.removeButton.Text = "Remove Code";
this.removeButton.UseVisualStyleBackColor = true;
this.removeButton.Click += new System.EventHandler(this.removeButton_Click);
//
// editButton
//
this.editButton.Location = new System.Drawing.Point(236, 309);
this.editButton.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.editButton.Name = "editButton";
this.editButton.Size = new System.Drawing.Size(189, 21);
this.editButton.TabIndex = 9;
this.editButton.Text = "Edit Cheat";
this.editButton.UseVisualStyleBackColor = true;
this.editButton.Click += new System.EventHandler(this.editButton_Click);
//
// menuStrip1
//
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(40, 40);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.creditsToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(2, 1, 0, 1);
this.menuStrip1.Size = new System.Drawing.Size(430, 24);
this.menuStrip1.TabIndex = 10;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.openToolStripMenuItem,
this.saveToolStripMenuItem,
this.saveAsToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 22);
this.fileToolStripMenuItem.Text = "File";
//
// openToolStripMenuItem
//
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
this.openToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.openToolStripMenuItem.Text = "Open...";
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
// saveAsToolStripMenuItem
//
this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveAsToolStripMenuItem.Text = "Save as...";
this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
//
// creditsToolStripMenuItem
//
this.creditsToolStripMenuItem.Name = "creditsToolStripMenuItem";
this.creditsToolStripMenuItem.Size = new System.Drawing.Size(56, 22);
this.creditsToolStripMenuItem.Text = "Credits";
this.creditsToolStripMenuItem.Click += new System.EventHandler(this.creditsToolStripMenuItem_Click);
//
// saveListDialog
//
this.saveListDialog.Filter = "Text Files|*.txt";
//
// openListDialog
//
this.openListDialog.Filter = "Text Files|*.txt";
//
// saveBinaryDialog
//
this.saveBinaryDialog.Filter = "Binary Files|*.bin";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(430, 360);
this.Controls.Add(this.editButton);
this.Controls.Add(this.removeButton);
this.Controls.Add(this.addCodeButton);
this.Controls.Add(this.exportButton);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.menuStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1);
this.MaximizeBox = false;
this.Name = "Form1";
this.Text = "Nitro AR Code Manager";
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckedListBox cheatListBox;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.TextBox cheatTextBox;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TextBox descriptionTextBox;
private System.Windows.Forms.Button exportButton;
private System.Windows.Forms.Button addCodeButton;
private System.Windows.Forms.Button removeButton;
private System.Windows.Forms.Button editButton;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem creditsToolStripMenuItem;
private System.Windows.Forms.SaveFileDialog saveListDialog;
private System.Windows.Forms.OpenFileDialog openListDialog;
private System.Windows.Forms.SaveFileDialog saveBinaryDialog;
}
}

271
Form1.cs Normal file
View File

@ -0,0 +1,271 @@
using System;
using System.IO;
using System.Text.RegularExpressions;
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 Nitro_AR_Cheat_Manager
{
public partial class Form1 : Form
{
private CodeList codes;
private String g_filePath = "";
public Form1()
{
InitializeComponent();
initializeVariables();
}
public void initializeVariables()
{
codes = new CodeList();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
public String removeEmptyLines(String s)
{
return Regex.Replace(s, @"^\s*$\n|\r", string.Empty, RegexOptions.Multiline).TrimEnd();
}
private List<String> getLinesFromString(String s)
{
String accumulator = "";
List<String> lines = new List<String>();
foreach (Char character in s)
{
if (character == 0xA)
{
accumulator = accumulator.Replace("\r", "");
lines.Add(String.Copy(accumulator));
accumulator = "";
}
else accumulator += character;
}
lines.Add(String.Copy(accumulator));
return lines;
}
private bool isName(String line)
{
Regex rx = new Regex(@"^\[.*\]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
if (rx.IsMatch(line)) return true;
return false;
}
private bool isCode(String line)
{
Regex rx = new Regex(@"^[\da-fA-F]{8}\s[\da-fA-F]{8}", RegexOptions.Compiled | RegexOptions.IgnoreCase);
if (rx.IsMatch(line)) return true;
return false;
}
private bool isDescription(String line)
{
return false;
}
private void interpretTextFile(String codeList)
{
String nameAccumulator = "";
String codeAccumulator = "";
String descriptionAccumulator = "";
int lineAccumulator = 0;
bool isEnabled = false;
Code currentCode = null;
codeList = removeEmptyLines(codeList);
List<String> codeListLines = getLinesFromString(codeList);
foreach(String line in codeListLines)
{
if(isName(line.Replace("*", "")))
{
if (currentCode == null) currentCode = new Code();
else
{
currentCode.update(nameAccumulator, codeAccumulator, descriptionAccumulator, lineAccumulator, isEnabled);
codes.addCode(currentCode);
currentCode = new Code();
}
nameAccumulator = "";
codeAccumulator = "";
descriptionAccumulator = "";
lineAccumulator = 0;
isEnabled = line.Contains("*");
nameAccumulator += line.Replace("[", "").Replace("]", "").Replace("*", "");
}
else if(isCode(line))
{
codeAccumulator += line + "\r\n";
lineAccumulator++;
}
else
{
descriptionAccumulator += line.Replace("*\\", "").Replace("\\*", "");
}
}
currentCode.update(nameAccumulator, codeAccumulator, descriptionAccumulator, lineAccumulator, isEnabled);
codes.addCode(currentCode);
}
private void updateList()
{
String[] nameList = this.codes.getStringList();
cheatListBox.Items.Clear();
for(int i = 0; i < nameList.Length; i++)
{
cheatListBox.Items.Add(nameList[i]);
cheatListBox.SetItemChecked(i, codes.getCode(i).isCodeEnabled());
}
}
private void editButton_Click(object sender, EventArgs e)
{
int selectedCheat = cheatListBox.SelectedIndex;
if(selectedCheat != -1)
{
CheatEditor editor = new CheatEditor(this.codes.getCode(selectedCheat), this.codes);
editor.ShowDialog();
updateList();
}
}
private void addCodeButton_Click(object sender, EventArgs e)
{
CheatEditor editor = new CheatEditor(null, this.codes);
editor.ShowDialog();
updateList();
}
private void cheatListBox_SelectedIndexChanged(object sender, EventArgs e)
{
int selectedIndex = cheatListBox.SelectedIndex;
if(selectedIndex != -1)
{
Code cheat = codes.getCode(selectedIndex);
cheatTextBox.Text = cheat.getCheat();
descriptionTextBox.Text = cheat.getDescription();
}
}
private void saveBinaryToFile(String filePath)
{
using (BinaryWriter writer = new BinaryWriter(File.Open(filePath, FileMode.Create)))
{
byte[] listBinary = codes.getBinaryFormat();
writer.Write(listBinary);
writer.Close();
}
}
private void saveListToFile(String filepath)
{
using (StreamWriter writer = File.CreateText(filepath))
{
writer.Write(codes.ToString());
writer.Close();
}
}
private void openListFromFile(String filepath)
{
using (StreamReader reader = File.OpenText(filepath))
{
String codeList = reader.ReadToEnd();
interpretTextFile(codeList);
reader.Close();
updateList();
}
}
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
if(openListDialog.ShowDialog() == DialogResult.OK)
{
String filepath = Path.GetFullPath(openListDialog.FileName);
openListFromFile(filepath);
this.g_filePath = filepath;
}
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
if(this.g_filePath.Equals(""))
{
if (saveListDialog.ShowDialog() == DialogResult.OK)
{
String filepath = Path.GetFullPath(saveListDialog.FileName);
saveListToFile(filepath);
this.g_filePath = filepath;
}
}
else saveListToFile(this.g_filePath);
}
private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
{
if(saveListDialog.ShowDialog() == DialogResult.OK)
{
String filepath = Path.GetFullPath(saveListDialog.FileName);
saveListToFile(filepath);
this.g_filePath = filepath;
}
}
private void creditsToolStripMenuItem_Click(object sender, EventArgs e)
{
Credits credit = new Credits();
credit.ShowDialog();
}
private void removeButton_Click(object sender, EventArgs e)
{
int selectedIndex = cheatListBox.SelectedIndex;
if(selectedIndex != -1)
{
cheatListBox.Items.RemoveAt(selectedIndex);
codes.removeCode(selectedIndex);
}
}
private void cheatListBox_ItemCheck(object sender, ItemCheckEventArgs e)
{
int selectedIndex = cheatListBox.SelectedIndex;
if(selectedIndex != -1)
{
Code cheat = codes.getCode(selectedIndex);
if (cheatListBox.GetItemCheckState(selectedIndex) != CheckState.Checked) cheat.setEnabled(true);
else cheat.setEnabled(false);
}
}
private void exportButton_Click(object sender, EventArgs e)
{
if (saveBinaryDialog.ShowDialog() == DialogResult.OK)
{
String filepath = Path.GetFullPath(saveBinaryDialog.FileName);
saveBinaryToFile(filepath);
}
}
}
}

212
Form1.resx Normal file
View File

@ -0,0 +1,212 @@
<?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>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="saveListDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>132, 17</value>
</metadata>
<metadata name="openListDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>261, 17</value>
</metadata>
<metadata name="saveBinaryDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>394, 17</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAOckAADnJAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAkAE7/IgBJ/yAARf8dAED/GwA7/xgANv8WADD/EwAr/xEAJf8RACX/DwAf/w0A
G/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEdAwAJvAcAGP8IABv/BAAP+gAAAFgAAAAJAQEAaxEK
APscEQD/Fg4A/wkFAKUAAAASAAAAACYAU/8AAP//AAD//wAA//8AAP//GwA7/xgANv8AAOf/AAD//wAA
//8AAOf/DwAf/w0AG//Gxsb/xsbG/8bGxv/Gxsb/xsbG/zs5P/8gAGn/RQDh/0sA9/81ALD/JRs8/1lZ
Wf8tHQDkt3QA//qeAP/biwD/XDsA/wkGAIkAAAAAKQBW/yYAUf8ATf//AEb//yAARf8eAEH/ADD//wAn
//8AAID/CAil/wAZ//8AAOf/DwAg/wAAAP8A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AAAAAAAAAAAAAAAAAAAA/8bGxv+EhIT/hISE/4SEhP+EhIT/QkJC/0JC
Qv9CQkL/QkJC/0JCQv9CQkL/QkJC/0JCQv9CQkL/QkJC/0JCQv9CQkL/hISE/4SEhP+EhIT/hISE/4SE
hP+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////5+fn//Ozs7/n5+f/87O
zv8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP/Ozs7/n5+f/87O
zv+fn5//zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/5+f
n//Ozs7/n5+f/wAAAP+EUlL//71C///npf//56X//+el///npf//56X//9Zz//+9Qv//vUL/AAAA/5+f
n//Ozs7/n5+f/87Ozv+fn5//hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////
//+fn5//zs7O/5+fn//Ozs7/AAAA/4RSUv//56X//+el///npf//56X//+el///npf//56X//+el///n
pf8AAAD/zs7O/5+fn//Ozs7/n5+f/87Ozv+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAD//////+fn5//Ozs7/zs7O/87Ozv8AAAD/hFJS///npf//98b///fG///3xv//98b///fG///3
xv//98b//+el/wAAAP/Ozs7/zs7O/87Ozv/Ozs7/zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAP//////5+fn/87Ozv/Ozs7/zs7O/wAAAP+EUlL///fG///3xv//98b///e1///3
xv//98b///e1///3xv//98b/AAAA/87Ozv/Ozs7/zs7O/87Ozv/Ozs7/hISE/wAAAP8AAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA///////n5+f/xsbG/8bGxv/Gxsb/AAAA/4RSUv///+f////n////
5////+f////n////5////+f///fG///3xv8AAAD/xsbG/8bGxv/Gxsb/xsbG/8bGxv+EhIT/AAAA/wAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////+fn5//Gxsb/xsbG/8bGxv8AAAD/hFJS////
5////////////////////+f////n////5////+f////n/wAAAP/Gxsb/xsbG/8bGxv/Gxsb/xsbG/4SE
hP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////5+fn/8bGxv/Gxsb/xsbG/wAA
AP+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+EUlL/hFJS/4RSUv+EUlL/AAAA/8bGxv/Gxsb/xsbG/8bG
xv/Gxsb/hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///////n5+f/xsbG/8bG
xv/Gxsb/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/xsbG/8bG
xv/Gxsb/xsbG/8bGxv+EhIT/AAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////+fn
5//n5+f/paWl/+fn5/+EhIT/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/4SE
hP/n5+f/paWl/+fn5//n5+f/zs7O/4SEhP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AP/Gxsb/////////////////////////////////////////////////////////////////////////
///////////////////////////////////n5+f/hISE/wAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA
AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA/////4AH4ACAAAAAgAAAAMAAAADAAAAAwAAAAIAAAACAAAAAgAAAAOAA
AADwAAAA8AAAAPAAAADwAAAH+AAAB/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gAAAP4AAAD+AAAA/gA
AAP4AAAD+AAAA/wAAAf///////////////8=
</value>
</data>
</root>

View File

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C2107314-3CAF-4ADE-A3AC-351CB40A721A}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Nitro_AR_Cheat_Manager</RootNamespace>
<AssemblyName>Nitro AR Cheat Manager</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>appIcon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CheatEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="CheatEditor.Designer.cs">
<DependentUpon>CheatEditor.cs</DependentUpon>
</Compile>
<Compile Include="Code.cs" />
<Compile Include="CodeList.cs" />
<Compile Include="Credits.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Credits.Designer.cs">
<DependentUpon>Credits.cs</DependentUpon>
</Compile>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="CheatEditor.resx">
<DependentUpon>CheatEditor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Credits.resx">
<DependentUpon>Credits.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="appIcon.ico" />
<Content Include="image_2021-10-19_163638.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31019.35
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nitro AR Cheat Manager", "Nitro AR Cheat Manager.csproj", "{C2107314-3CAF-4ADE-A3AC-351CB40A721A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AFA942C6-177F-4FCB-964A-847A9EE6F414}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C2107314-3CAF-4ADE-A3AC-351CB40A721A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2107314-3CAF-4ADE-A3AC-351CB40A721A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2107314-3CAF-4ADE-A3AC-351CB40A721A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2107314-3CAF-4ADE-A3AC-351CB40A721A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {23A0B064-00D6-4007-9AA2-27E7F1FAB965}
EndGlobalSection
EndGlobal

22
Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Nitro_AR_Cheat_Manager
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Nitro AR Cheat Manager")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Nitro AR Cheat Manager")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c2107314-3caf-4ade-a3ac-351cb40a721a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

70
Properties/Resources.Designer.cs generated Normal file
View File

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Nitro_AR_Cheat_Manager.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Nitro_AR_Cheat_Manager.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

117
Properties/Resources.resx Normal file
View File

@ -0,0 +1,117 @@
<?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.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: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" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

29
Properties/Settings.Designer.cs generated Normal file
View File

@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Nitro_AR_Cheat_Manager.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

BIN
appIcon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
image_2021-10-19_163638.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
e8745568e0309e531e53a669e1de898140f4863c

View File

@ -0,0 +1,24 @@
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.exe.config
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.exe
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.pdb
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csprojAssemblyReference.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Form1.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Properties.Resources.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csproj.GenerateResource.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csproj.CoreCompileInputs.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.exe
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.pdb
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.CheatEditor.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Credits.resources
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.exe.config
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.exe
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\bin\Debug\Nitro AR Cheat Manager.pdb
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csprojAssemblyReference.cache
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.CheatEditor.resources
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Credits.resources
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Form1.resources
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro_AR_Cheat_Manager.Properties.Resources.resources
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csproj.GenerateResource.cache
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.csproj.CoreCompileInputs.cache
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.exe
C:\Users\dimit\Desktop\Development\Program Releases\Nitro AR Cheat Manager\obj\Debug\Nitro AR Cheat Manager.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
53ced678e5468d979aa853f2e2b33c4cf28c2899

View File

@ -0,0 +1,12 @@
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Release\Nitro AR Cheat Manager.exe.config
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Release\Nitro AR Cheat Manager.exe
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\bin\Release\Nitro AR Cheat Manager.pdb
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro AR Cheat Manager.csprojAssemblyReference.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro_AR_Cheat_Manager.CheatEditor.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro_AR_Cheat_Manager.Credits.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro_AR_Cheat_Manager.Form1.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro_AR_Cheat_Manager.Properties.Resources.resources
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro AR Cheat Manager.csproj.GenerateResource.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro AR Cheat Manager.csproj.CoreCompileInputs.cache
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro AR Cheat Manager.exe
C:\Users\dimit\source\repos\Nitro AR Cheat Manager\obj\Release\Nitro AR Cheat Manager.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.