Update UnionPatcher.Gui/Forms/RemotePatchForm.cs

Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
McMistrzYT 2023-02-09 18:58:37 +01:00 committed by GitHub
parent 3b309103cd
commit 45f556a2fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,15 +73,7 @@ public class RemotePatchForm : Form
return;
}
// Purely for the dialog box to show the correct URL. Actual patcher has this too.
// If server URL contains a trailing slash, loop until it's gone.
string formattedUrl = this.serverUrl.Text;
while (formattedUrl.EndsWith('/'))
{
formattedUrl = formattedUrl.Remove(formattedUrl.Length - 1);
}
Gui.CreateOkDialog("Success!", $"The Server URL for {this.lbpGameID.Text} on the PS3 at {this.ps3LocalIP.Text} has been patched to {formattedUrl}");
Gui.CreateOkDialog("Success!", $"The Server URL for {this.lbpGameID.Text} on the PS3 at {this.ps3LocalIP.Text} has been patched to {this.serverUrl.Text}");
};
return control;