mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-02 14:18:44 +00:00
Require staging directory as fallback (#34)
* Test requiring staging directory on Windows * Special workaround v1 * Remove variable since its only used once
This commit is contained in:
parent
47af7d6929
commit
7b88e27843
1 changed files with 6 additions and 3 deletions
|
@ -29,9 +29,12 @@ public class ModeSelectionForm : Form {
|
||||||
|
|
||||||
private void openRemotePatcher(object sender, EventArgs e)
|
private void openRemotePatcher(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (OSUtil.GetPlatform() == OSPlatform.OSX)
|
if (!Directory.Exists("scetool"))
|
||||||
{
|
{
|
||||||
Gui.CreateOkDialog("Workaround", "UnionPatcher RemotePatcher requires a staging folder on macOS, please set this to the directory of the UnionPatcher app!");
|
// 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.");
|
||||||
|
|
||||||
|
Gui.CreateOkDialog("Workaround", "UnionPatcher RemotePatcher requires a staging folder on macOS or in special circumstances on Windows, please set this to the directory of the UnionPatcher app or executable!");
|
||||||
SelectFolderDialog dialog = new SelectFolderDialog();
|
SelectFolderDialog dialog = new SelectFolderDialog();
|
||||||
if (dialog.ShowDialog(this) != DialogResult.Ok)
|
if (dialog.ShowDialog(this) != DialogResult.Ok)
|
||||||
{
|
{
|
||||||
|
@ -41,7 +44,7 @@ public class ModeSelectionForm : Form {
|
||||||
Directory.SetCurrentDirectory(dialog.Directory);
|
Directory.SetCurrentDirectory(dialog.Directory);
|
||||||
if (!Directory.Exists("scetool"))
|
if (!Directory.Exists("scetool"))
|
||||||
{
|
{
|
||||||
Gui.CreateOkDialog("Workaround", "Invalid folder, remember to set the folder to the directory of the UnionPatcher app!");
|
Gui.CreateOkDialog("Workaround", "Invalid folder, remember to set the folder to the directory of the UnionPatcher app or executable!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue