diff --git a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin index df392bd..8cf2378 100644 Binary files a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin and b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin differ diff --git a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin index f1b6ebd..115e115 100644 Binary files a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin and b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/1149a5ac-4152-4a12-a0cc-cc3d1f25330b.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/1149a5ac-4152-4a12-a0cc-cc3d1f25330b.vsidx deleted file mode 100644 index 0d153e8..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/1149a5ac-4152-4a12-a0cc-cc3d1f25330b.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/11a954bf-8b09-4150-8a7e-0ea9f8aa3521.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/11a954bf-8b09-4150-8a7e-0ea9f8aa3521.vsidx deleted file mode 100644 index 51b4899..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/11a954bf-8b09-4150-8a7e-0ea9f8aa3521.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/13f31694-cbf2-495c-95df-526ad0e9673a.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/13f31694-cbf2-495c-95df-526ad0e9673a.vsidx deleted file mode 100644 index 59bed2e..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/13f31694-cbf2-495c-95df-526ad0e9673a.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/26913387-60f6-4bb6-be18-700123bbfb24.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/26913387-60f6-4bb6-be18-700123bbfb24.vsidx new file mode 100644 index 0000000..db1319f Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/26913387-60f6-4bb6-be18-700123bbfb24.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/7f688e43-3802-4db2-bce9-192a6ffaf901.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/7f688e43-3802-4db2-bce9-192a6ffaf901.vsidx new file mode 100644 index 0000000..dfd10bc Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/7f688e43-3802-4db2-bce9-192a6ffaf901.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9d7b6dac-f762-46b6-8c10-317aae9bb277.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9d7b6dac-f762-46b6-8c10-317aae9bb277.vsidx deleted file mode 100644 index d68cff4..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9d7b6dac-f762-46b6-8c10-317aae9bb277.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/de572cb2-f82d-49f6-be7d-3846dcac9287.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/de572cb2-f82d-49f6-be7d-3846dcac9287.vsidx new file mode 100644 index 0000000..6b3346f Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/de572cb2-f82d-49f6-be7d-3846dcac9287.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f57b1b62-197c-48b9-b8c7-66b55bf57f91.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f57b1b62-197c-48b9-b8c7-66b55bf57f91.vsidx deleted file mode 100644 index b4c3e1f..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f57b1b62-197c-48b9-b8c7-66b55bf57f91.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f901dc97-ee7c-4daa-9b6c-8d9f4a32fdc3.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f901dc97-ee7c-4daa-9b6c-8d9f4a32fdc3.vsidx new file mode 100644 index 0000000..9432301 Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f901dc97-ee7c-4daa-9b6c-8d9f4a32fdc3.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/fb54e1c6-f96f-4121-9bdd-e16d42ff74b8.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/fb54e1c6-f96f-4121-9bdd-e16d42ff74b8.vsidx new file mode 100644 index 0000000..47e90d0 Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/fb54e1c6-f96f-4121-9bdd-e16d42ff74b8.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 b/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 index 6cc9f80..3f5147e 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 and b/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 differ diff --git a/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin b/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin index 4f44b7a..58591b1 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin and b/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin differ diff --git a/VTOL_2.0.0/MainWindow.xaml.cs b/VTOL_2.0.0/MainWindow.xaml.cs index d50b18e..c4c1969 100644 --- a/VTOL_2.0.0/MainWindow.xaml.cs +++ b/VTOL_2.0.0/MainWindow.xaml.cs @@ -1052,7 +1052,52 @@ private void Reload__Click(object sender, RoutedEventArgs e) Restart(); } + public void Check_For_New_Update() + { + try + { + + var thisApp = Assembly.GetExecutingAssembly(); + AssemblyName name = new AssemblyName(thisApp.FullName); + Updater Update = new Updater("BigSpice", "VTOL"); + + + if (Update.CheckForUpdate()) + { + VTOL_UPDATE_BADGE.Visibility = Visibility.Visible; + + Snackbar.Message = "Update Available!, Please Check and Download The latest portable release."; + Snackbar.Title = "INFO"; + Snackbar.Appearance = Wpf.Ui.Common.ControlAppearance.Info; + Snackbar.Show(); + + + + } + else + { + VTOL_UPDATE_BADGE.Visibility = Visibility.Hidden; + + Snackbar.Message = "No Update Found"; + Snackbar.Title = "INFO"; + Snackbar.Appearance = Wpf.Ui.Common.ControlAppearance.Info; + Snackbar.Show(); + } + + + + + } + catch (Exception ex) + { + + + } + + + + } private void Main_Win_Control_Loaded(object sender, RoutedEventArgs e) { var geometry = new RectangleGeometry(); diff --git a/VTOL_2.0.0/Pages/Page_About.xaml.cs b/VTOL_2.0.0/Pages/Page_About.xaml.cs index 5ef868e..ac9bd98 100644 --- a/VTOL_2.0.0/Pages/Page_About.xaml.cs +++ b/VTOL_2.0.0/Pages/Page_About.xaml.cs @@ -20,14 +20,12 @@ public partial class Page_About : Page private static String updaterModulePath; bool is_portable_ = true; - Wpf.Ui.Controls.Snackbar SnackBar; async Task Set_About() { About_BOX.IsReadOnly = true; Paragraph paragraph = new Paragraph(); - SnackBar = Main.Snackbar; string Text = @"-This Application Installs The Northstar Launcher Created by BobTheBob and can install the countless Mods Authored by the many Titanfall2 Modders. @@ -59,7 +57,7 @@ Big Thanks to - @rrrfffrrr @themoonisacheese @xamionex -Every cent counts towards feeding my baby Ticks - https://www.buymeacoffee.com/Ju1cy "; + "; About_BOX.Document.Blocks.Clear(); Run run = new Run(Text); @@ -121,68 +119,17 @@ private void Button_Click(object sender, RoutedEventArgs e) { try { - Main.VTOL_UPDATE_BADGE.Visibility = Visibility.Hidden; + Process process = Process.Start(updaterModulePath, "/configure "); - Process[] processes = Process.GetProcessesByName(updaterModulePath); - if (processes.Length > 0) - processes[0].CloseMainWindow(); } catch (Exception ex) { } } - else - { - //Send_Error_Notif(GetTextResource("NOTIF_ERROR_UPDATER_NOT_FOUND")); - - } - } - void Check_For_New_Update() - { - try - { - - var thisApp = Assembly.GetExecutingAssembly(); - AssemblyName name = new AssemblyName(thisApp.FullName); - Updater Update = new Updater("BigSpice", "VTOL"); - - - if (Update.CheckForUpdate()) - { - - SnackBar.Message = "Update Available!, Please Check and Download The latest portable release."; - SnackBar.Title = "INFO"; - SnackBar.Appearance = Wpf.Ui.Common.ControlAppearance.Info; - SnackBar.Show(); - - - - } - else - { - Main.VTOL_UPDATE_BADGE.Visibility = Visibility.Hidden; - - - SnackBar.Message = "No Update Found"; - SnackBar.Title = "INFO"; - SnackBar.Appearance = Wpf.Ui.Common.ControlAppearance.Info; - SnackBar.Show(); - } - - - - - } - catch (Exception ex) - { - - - } - - - + } + private void Check_Click(object sender, RoutedEventArgs e) { @@ -190,9 +137,7 @@ private void Check_Click(object sender, RoutedEventArgs e) { if (File.Exists(updaterModulePath)) { - // StartSilent(); Process process = Process.Start(updaterModulePath, "/checknow "); - // process.Close(); } } @@ -201,7 +146,7 @@ private void Check_Click(object sender, RoutedEventArgs e) - Check_For_New_Update(); + Main.Check_For_New_Update(); }