Update UnionPatcher.Gui/Forms/ModeSelectionForm.cs

Co-authored-by: sudokoko <koko@sudokoko.xyz>
This commit is contained in:
Zaprit 2024-01-18 01:02:13 +00:00 committed by GitHub
parent 3e2ccda94d
commit 9b47df2a7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ public class ModeSelectionForm : Form {
// If we're on macOS then set the CWD to the app bundle MacOS folder, so that SCETool can be found.
if (OSUtil.GetPlatform() == OSPlatform.OSX) Directory.SetCurrentDirectory(OSUtil.GetExecutablePath());
if (!Directory.Exists(OSUtil.GetExecutablePath()+"/scetool"))
if (!Directory.Exists($"{OSUtil.GetExecutablePath()}/scetool"))
{
// This will always occur on macOS, so don't show this message for macOS users.
if (OSUtil.GetPlatform() != OSPlatform.OSX) Gui.CreateOkDialog("Workaround Triggered", ".NET could not locate the required files, triggering workaround.");