This commit is contained in:
Xpl0itR 2020-02-06 21:07:10 +00:00
commit d56eada988
No known key found for this signature in database
GPG key ID: 91798184109676AD

View file

@ -154,7 +154,7 @@ namespace Ryujinx.Ui
{ {
FileChooserDialog fileChooser = new FileChooserDialog("Choose the folder to extract into", null, FileChooserAction.SelectFolder, "Cancel", ResponseType.Cancel, "Extract", ResponseType.Accept); FileChooserDialog fileChooser = new FileChooserDialog("Choose the folder to extract into", null, FileChooserAction.SelectFolder, "Cancel", ResponseType.Cancel, "Extract", ResponseType.Accept);
int response = fileChooser.Run(); int response = fileChooser.Run();
string destination = fileChooser.Filename; string destination = fileChooser.Filename;
fileChooser.Dispose(); fileChooser.Dispose();
@ -246,7 +246,7 @@ namespace Ryujinx.Ui
int index = Nca.GetSectionIndexFromType(ncaSectionType, mainNca.Header.ContentType); int index = Nca.GetSectionIndexFromType(ncaSectionType, mainNca.Header.ContentType);
IFileSystem ncaFileSystem = patchNca != null ? mainNca.OpenFileSystemWithPatch(patchNca, index, IntegrityCheckLevel.ErrorOnInvalid) IFileSystem ncaFileSystem = patchNca != null ? mainNca.OpenFileSystemWithPatch(patchNca, index, IntegrityCheckLevel.ErrorOnInvalid)
: mainNca.OpenFileSystem(index, IntegrityCheckLevel.ErrorOnInvalid); : mainNca.OpenFileSystem(index, IntegrityCheckLevel.ErrorOnInvalid);
FileSystemClient fsClient = _virtualFileSystem.FsClient; FileSystemClient fsClient = _virtualFileSystem.FsClient;
@ -285,6 +285,7 @@ namespace Ryujinx.Ui
SecondaryText = "Extraction has completed successfully.", SecondaryText = "Extraction has completed successfully.",
WindowPosition = WindowPosition.Center WindowPosition = WindowPosition.Center
}; };
dialog.Run(); dialog.Run();
dialog.Dispose(); dialog.Dispose();
}); });
@ -294,6 +295,7 @@ namespace Ryujinx.Ui
fsClient.Unmount(output); fsClient.Unmount(output);
} }
}); });
extractorThread.Name = "GUI.NcaSectionExtractorThread"; extractorThread.Name = "GUI.NcaSectionExtractorThread";
extractorThread.IsBackground = true; extractorThread.IsBackground = true;
extractorThread.Start(); extractorThread.Start();