mirror of
https://github.com/StudentBlake/XCI-Explorer
synced 2024-11-24 21:23:02 +00:00
Simplified function, removed leftover files
This commit is contained in:
parent
4b38e27b2e
commit
ab3e68e8a6
5 changed files with 4 additions and 71 deletions
|
@ -55,8 +55,6 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="XCI_Explorer.Helpers\BetterBinaryReader.cs" />
|
||||
<Compile Include="XCI_Explorer.Helpers\BetterTreeNode.cs" />
|
||||
<Compile Include="XCI_Explorer.Properties\Resources.cs" />
|
||||
<Compile Include="XCI_Explorer.Properties\Settings.cs" />
|
||||
<Compile Include="XCI_Explorer\CNMT.cs" />
|
||||
<Compile Include="XCI_Explorer\MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace XCI_Explorer.Properties
|
||||
{
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
[CompilerGenerated]
|
||||
internal class Resources
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
|
||||
private static CultureInfo resourceCulture;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager {
|
||||
get {
|
||||
if (resourceMan == null)
|
||||
{
|
||||
resourceMan = new ResourceManager("XCI_Explorer.Properties.Resources", typeof(Resources).Assembly);
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
using System.CodeDom.Compiler;
|
||||
using System.Configuration;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace XCI_Explorer.Properties
|
||||
{
|
||||
[CompilerGenerated]
|
||||
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed class Settings : ApplicationSettingsBase
|
||||
{
|
||||
private static Settings defaultInstance = (Settings)SettingsBase.Synchronized(new Settings());
|
||||
|
||||
public static Settings Default => defaultInstance;
|
||||
}
|
||||
}
|
|
@ -48,9 +48,7 @@ namespace XCI_Explorer
|
|||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Set number of numbers in version number
|
||||
const int NUMBERSINVERSION = 3;
|
||||
this.Text = "XCI Explorer v" + getAssemblyVersion(NUMBERSINVERSION);
|
||||
this.Text = "XCI Explorer v" + getAssemblyVersion();
|
||||
|
||||
LB_SelectedData.Text = "";
|
||||
LB_DataOffset.Text = "";
|
||||
|
@ -99,12 +97,12 @@ namespace XCI_Explorer
|
|||
}
|
||||
}
|
||||
|
||||
private string getAssemblyVersion(int num)
|
||||
private string getAssemblyVersion()
|
||||
{
|
||||
string assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
string[] versionArray = assemblyVersion.Split('.');
|
||||
|
||||
assemblyVersion = string.Join(".", versionArray.Take(num));
|
||||
assemblyVersion = string.Join(".", versionArray.Take(3));
|
||||
|
||||
return assemblyVersion;
|
||||
}
|
||||
|
|
|
@ -103,11 +103,7 @@ namespace XCI_Explorer
|
|||
|
||||
public static bool checkFile(string filepath)
|
||||
{
|
||||
if (File.Exists(filepath))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return File.Exists(filepath);
|
||||
}
|
||||
|
||||
public static byte[] StringToByteArray(string hex)
|
||||
|
|
Loading…
Reference in a new issue