Skip to content

Commit

Permalink
System: Few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Octal450 committed Oct 31, 2023
1 parent d8ec8a4 commit e8b8a8f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
8 changes: 4 additions & 4 deletions J-Runner/Classes/variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public enum Windows
W10_11
}

public static string version = "3.3.0";
public static string build = "3300." + DateTime.ParseExact(Properties.Resources.Build.Trim(), "MM-dd-yyyy HH:mm:ss", null).ToString("yyMMdd.HHmm");
public const string staticversion = "3.3.0.0";
public static int revision = 35;
public static string version = "3.3.0 r2";
public static string build = "3301." + DateTime.ParseExact(Properties.Resources.Build.Trim(), "MM-dd-yyyy HH:mm:ss", null).ToString("yyMMdd.HHmm");
public const string staticversion = "3.3.0.1";
public static int revision = 36;
public static Windows currentOS = Windows.Unknown;
public static bool isWinXP = false;
public static bool isscanningip = false;
Expand Down
19 changes: 14 additions & 5 deletions J-Runner/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ private void demon_updateFlash(DemoN.Demon_Switch flash)

#region LDrivesPanel

public void ldInfo_CloseLDClick()
public void ldInfo_CloseClick()
{
listInfo.Remove(ldInfo);
pnlInfo.Controls.Remove(ldInfo);
Expand All @@ -439,7 +439,7 @@ public void ldInfo_UpdateAdditional(string file)

#endregion

#region xebuild Panel
#region XeBuild Panel

public void xPanel_HackChanged()
{
Expand Down Expand Up @@ -513,7 +513,7 @@ public void xsvfChoice_ProgramClick()

}

public void xsvfChoice_CloseCRClick()
public void xsvfChoice_CloseClick()
{
listInfo.Remove(xsvfChoice);
pnlInfo.Controls.Remove(xsvfChoice);
Expand Down Expand Up @@ -1836,6 +1836,15 @@ public void newSession(bool partial = false)
xPanel.clear();
variables.ctype = variables.ctypes[0];
txtIP.Text = txtIP.Text.Remove(txtIP.Text.LastIndexOf('.')) + ".";

if (listInfo.Contains(xsvfChoice))
{
xsvfChoice_CloseClick();
}
if (listInfo.Contains(ldInfo))
{
ldInfo_CloseClick();
}
}

progressBar.Value = progressBar.Minimum;
Expand Down Expand Up @@ -1908,7 +1917,7 @@ void nandinit(bool nomove = false, bool dontUpdateHackType = false)
else txtCPUKey.BeginInvoke(new Action(() => txtCPUKey.Text = variables.cpukey));

Console.WriteLine("Initializing {0}, please wait...", Path.GetFileName(variables.filename1));
if (listInfo.Contains(xsvfChoice)) xsvfChoice_CloseCRClick();
if (listInfo.Contains(xsvfChoice)) xsvfChoice_CloseClick();
updateProgress(progressBar.Maximum / 2);
nand = new Nand.PrivateN(variables.filename1, variables.cpukey);
if (!nand.ok)
Expand Down Expand Up @@ -3640,7 +3649,7 @@ public void openXsvfChoice(bool boardcheck = false)
{
if (listInfo.Contains(xsvfChoice))
{
xsvfChoice_CloseCRClick();
xsvfChoice_CloseClick();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion J-Runner/Panels/LDrivesInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void btnClose_Click(object sender, EventArgs e)
{
try
{
MainForm.mainForm.ldInfo_CloseLDClick();
MainForm.mainForm.ldInfo_CloseClick();
}
catch (Exception) { }
}
Expand Down
2 changes: 1 addition & 1 deletion J-Runner/Panels/XSVFChoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ private void btnClose_Click(object sender, EventArgs e)
{
try
{
MainForm.mainForm.xsvfChoice_CloseCRClick();
MainForm.mainForm.xsvfChoice_CloseClick();
}
catch (Exception) { }
}
Expand Down
2 changes: 1 addition & 1 deletion J-Runner/Resources/Build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
07-02-2023 22:30:59
10-31-2023 00:42:46

0 comments on commit e8b8a8f

Please sign in to comment.