Skip to content

Commit

Permalink
ASC_v2.9.1: Fix UpdateModules
Browse files Browse the repository at this point in the history
  • Loading branch information
neimex23 committed Apr 23, 2023
1 parent c9629c6 commit 19157fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 1 addition & 2 deletions PrepareReleaseAutoSplitter.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ set PR_OUTPUT=%PR_FINAL%\AutoSplitterCore_Portable_v2.x.0.zip
rmdir /S /Q %PR_TARGET% 2>nul
mkdir %PR_TARGET%
del %PR_OUTPUT% 2>nul
FOR %%G IN (AutoSplitterCore.dll HitCounterManager.dll Irony.dll LiveSplit.Celeste.dll LiveSplit.Core.dll LiveSplit.Cuphead.dll LiveSplit.HollowKnight.dll LiveSplit.ScriptableAutoSplit.dll LiveSplit.Dishonored.dll Newtonsoft.Json.dll UpdateScriptASC.bat) DO copy %PR_BASE%\%%G %PR_TARGET%
copy .\packages\SoulMemory.1.4.2\lib\netstandard2.0\SoulMemory.dll
FOR %%G IN (AutoSplitterCore.dll HitCounterManager.dll Irony.dll LiveSplit.Celeste.dll LiveSplit.Core.dll LiveSplit.Cuphead.dll LiveSplit.HollowKnight.dll LiveSplit.ScriptableAutoSplit.dll LiveSplit.Dishonored.dll Newtonsoft.Json.dll SoulMemory.dll UpdateScriptASC.bat) DO copy %PR_BASE%\%%G %PR_TARGET%

echo Copying ASLScripts:
mkdir %PR_TARGET%\ASLScripts
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
// utilizando el carácter "*", como se muestra a continuación:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.9.0")]
[assembly: AssemblyFileVersion("2.9.0")]
[assembly: AssemblyVersion("2.9.1")]
[assembly: AssemblyFileVersion("2.9.1")]
7 changes: 6 additions & 1 deletion Sources/ProgramModule/UpdateModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class UpdateModule

public void CheckUpdates(bool ForceUpdate)
{
bool update = false;
try
{
//AutoSplitterCore GetVersions
Expand Down Expand Up @@ -110,17 +111,21 @@ public void CheckUpdates(bool ForceUpdate)
{
if (Releases.Count > 0 && dll != null && Releases[0] > dll.GetName().Version)
{
update = true;
Form aux = new UpdateShowDialog(this);
aux.ShowDialog();
}

if (SoulsMemoryRelease.Count > 0 && SoulDll != null && cloudSoulsVer != SoulDll.GetName().Version.ToString())
{
update = true;
Form aux2 = new UpdateShowDialogSouls(this);
aux2.ShowDialog();
}

} else if (ForceUpdate) { MessageBox.Show("You have the latest Version", "Last Version", MessageBoxButtons.OK, MessageBoxIcon.Information); }
if (!update && ForceUpdate) MessageBox.Show("You have the latest Version", "Last Version", MessageBoxButtons.OK, MessageBoxIcon.Information);

}
}
}
}

0 comments on commit 19157fa

Please sign in to comment.