Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
A shit load of improvments to almost all context menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrenm3 authored and Gurrenm3 committed Mar 31, 2020
1 parent acc469d commit b38e5a3
Show file tree
Hide file tree
Showing 10 changed files with 693 additions and 592 deletions.
5 changes: 5 additions & 0 deletions BTDToolbox/Classes/JsonEditorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,16 @@ public static void OpenFile(string path)
public static void OpenOriginalFile(string path)
{
string[] split = path.Split('\\');
string filename = split[split.Length - 1];
string backupProj = "";
if (!path.Contains("\\Backups\\" + Main.gameName + "_BackupProject\\"))
backupProj = Environment.CurrentDirectory + "\\Backups\\" + Main.gameName + "_BackupProject\\" + path.Replace(Environment.CurrentDirectory, "").Replace(Serializer.Deserialize_Config().LastProject + "\\", "");
else
{
backupProj = path;
if(jeditor.tabControl1.SelectedTab.Text == filename + New_JsonEditor.readOnlyName)
ConsoleHandler.appendNotice("You are already looking at the original " + filename.Replace(New_JsonEditor.readOnlyName, ""));
}

if (File.Exists(backupProj))
OpenFile(backupProj);
Expand Down
232 changes: 231 additions & 1 deletion BTDToolbox/JetForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b38e5a3

Please sign in to comment.