1
0
mirror of synced 2024-12-02 19:17:24 +01:00
Switch-Toolbox/Toolbox
DanielSvoboda 0d33f4ead1
Updater Fix/Improvements (#606)
* Updater Fix/Improvements

In SetAccessRule():
A call to the Directory.SetAccessControl method was added to apply the changes made to the DirectorySecurity object. Additionally, the function does not handle possible exceptions that may occur during code execution. This version of the function attempts to set the access rule for the specified directory and, if an error occurs during the process, prints an error message on the screen. This helps to identify and fix possible problems that may occur during code execution.

In Install():
The function checks if the destination directory exists before attempting to delete it. Additionally, a destDir variable was created to store the path of the 'destination directory' and a destFile variable to store the path of the 'destination file'. This makes the code a little more readable.

In Application_Idle():
A MessageBox.Show was included to display a dialog box with the message "Updates are available. Do you want to update now?" and two buttons: "Yes" and "No". If the user clicks on the "Yes" button, the UpdateNotifcationClick method is called to start the update process. Otherwise, the dialog box is closed and no action is taken.

The dialog box will only be shown once for each available update, as the UsePrompt variable is set to false after the dialog box is shown for the first time.

when trying to update, updater.exe crashed and presented the following error, as shown in the print below:
unhandled exception: Unable to create a file that already exists.

* Updater Fix/Improvements
2023-05-26 17:07:09 -04:00
..
GUI Add notifcation on application close to prevent accidental loss of progress. 2020-11-06 18:54:10 -05:00
Hashes Add currently known animal crossing hashes for bcsv and byml 2020-10-02 17:11:34 +10:00
KclMaterialPresets Add latest KCL code 2022-10-12 18:37:32 -04:00
Lib Fix appveyor 2023-05-14 15:51:04 -04:00
Presets Starto to add material presets. Add option to add empty meshes 2019-05-30 15:28:43 -04:00
Projects/Recent Add files for the new one. 2019-03-23 12:55:09 -04:00
Properties BFRES : Support v0.10 bfres loading (no saving with models). 2022-08-25 19:33:46 -04:00
Resources Make save icon stand out better when enabled 2020-07-29 19:58:16 -04:00
Shader Fix cubemap view direction 2021-04-09 21:05:47 -04:00
WindowsExplorer Add some useful shortcuts. Add Text editor fixes. 2019-08-16 17:06:34 -04:00
x64 Fix missing dlls not created by nuget package (fix texture loading) 2020-05-04 10:48:50 -04:00
x86 Fix missing dlls not created by nuget package (fix texture loading) 2020-05-04 10:48:50 -04:00
App.config BFRES : Support v0.10 bfres loading (no saving with models). 2022-08-25 19:33:46 -04:00
Assimp32.zip Adjustments for anims 2019-05-18 17:55:22 -04:00
Gl_EditorFramework.dll Finally fix Z fighting on AMD and INTEL (set depth bit to 24) 2019-11-13 19:21:21 -05:00
LZ4.dll Add files for the new one. 2019-03-23 12:55:09 -04:00
MainForm.cs Updater Fix/Improvements (#606) 2023-05-26 17:07:09 -04:00
MainForm.Designer.cs Start to add batch export option (only works on g1m and cmb atm) 2020-03-08 18:48:18 -04:00
MainForm.resx Fix font scaling on title bar 2019-06-09 17:27:07 -04:00
Octokit.dll Fix octokit for updater 2019-07-16 18:35:21 -04:00
packages.config Cleanup some packages 2020-05-03 17:35:06 -04:00
Program.cs Revert culture info for now to prevent updater issues. 2020-06-15 21:07:26 -04:00
System.Buffers.dll Try to fix some build issues 2019-07-16 18:15:49 -04:00
System.Memory.dll Try to fix some build issues 2019-07-16 18:15:49 -04:00
System.Numerics.Vectors.dll More image editor improvements 2019-05-14 15:12:26 -04:00
System.Runtime.CompilerServices.Unsafe.dll Try to fix some build issues 2019-07-16 18:15:49 -04:00
tegra_swizzle_x64.dll Updated Tegra X1 swizzling and nutexb block heights (#419) 2021-11-25 18:15:17 -05:00
tegra_swizzle_x86.dll Updated Tegra X1 swizzling and nutexb block heights (#419) 2021-11-25 18:15:17 -05:00
Tool.ico Add files for the new one. 2019-03-23 12:55:09 -04:00
Toolbox.csproj Fix appveyor 2023-05-14 15:51:04 -04:00
Update.bat Add update.bat for updating without the tool 2019-08-26 18:32:41 -04:00
UpdateProgram.cs Updater : Check for api limits and don't bug the user with message dialogs. 2022-04-13 21:17:41 -04:00
Version.txt Update with the latest info. 2020-08-31 19:55:13 -04:00
VersionCheck.cs Adjust the toolbox name to no longer include "Switch" in it. 2019-07-16 17:35:21 -04:00
ZstdNet.dll Fix Zstd path 2019-07-24 17:28:08 -04:00