mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-20 13:15:35 +00:00
MainForm.cs - Rename 'LoadFromPath' to 'LoadPck'
This commit is contained in:
@@ -88,7 +88,7 @@ namespace PckStudio
|
||||
};
|
||||
}
|
||||
|
||||
public void LoadFromPath(string filepath)
|
||||
public void LoadPck(string filepath)
|
||||
{
|
||||
treeViewMain.Nodes.Clear();
|
||||
currentPCK = openPck(filepath);
|
||||
@@ -147,7 +147,7 @@ namespace PckStudio
|
||||
ofd.Filter = "PCK (Minecraft Console Package)|*.pck";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
LoadFromPath(ofd.FileName);
|
||||
LoadPck(ofd.FileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1887,7 +1887,7 @@ namespace PckStudio
|
||||
string[] Filepaths = (string[])e.Data.GetData(DataFormats.FileDrop, false);
|
||||
if (Filepaths.Length > 1)
|
||||
MessageBox.Show("Only one pck file at a time is currently supported");
|
||||
LoadFromPath(Filepaths[0]);
|
||||
LoadPck(Filepaths[0]);
|
||||
}
|
||||
|
||||
private void OpenPck_DragLeave(object sender, EventArgs e)
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace PckStudio
|
||||
|
||||
System.Globalization.CultureInfo.CurrentCulture.NumberFormat = System.Globalization.NumberFormatInfo.InvariantInfo;
|
||||
|
||||
var f = new MainForm();
|
||||
var mianForm = new MainForm();
|
||||
if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck"))
|
||||
f.LoadFromPath(args[0]);
|
||||
Application.Run(f);
|
||||
mianForm.LoadPck(args[0]);
|
||||
Application.Run(mianForm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user