* 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
This pull request adds the ability to compress files to the .lz format of type 11 for Wii.
This functionality has been enabled in the Tools > Compressions > LZ77(Wii type 11) > Compress tab.
It has been successfully tested with the game Paper Mario: Color Splash for the Wii U.
It is important to note that this is a modified version of dsdecmp.
Also changed was the SaveFileForCompression method to remove the file extension when decompressing files with multiple extensions. Previously, the method would add a ".dec" extension to the file name when decompressing it. With this change, the method now removes the original file extension when decompressing a file with multiple extensions. These changes should improve the usability of the SaveFileForCompression method by ensuring that decompressed files with multiple extensions are saved with the correct file name.
Fix wrong detection of GFMDL files. wont be detected as Fileformat for finding File Extensions for unknown Hashes.
Don't add the detected file extension to known file names.
Added Quick Access folder for .tranm files for feature parity with GFPAK.
* Move TRPAK up the list of Fileformats
prevents false detections of some of the Archives as other File Formats
* add best guess for Paths
if all known paths are the same add that one path to all other Files
* Revert "Move TRPAK up the list of Fileformats"
This reverts commit a1c0c2d630.
* Move TRPAK up the list of Fileformats
this time dont reformat the whole Class
* Added Quick access
Added Quick access Folders in the same style as GFPAK for all Texture Files and all Model Files
* cleanup and set some ImageKeys
* Prefer BNTX Filenames that mathc the Hash
instead of relying on only getting the filenames from the file itself
Supports loading rigged models and viewing textures for both the Wii U and Switch versions of the game.
Keep in mind the Switch version lacks LZSS 3 byte compression and will be missing vertex data for certain models.