Additional 404 check, remove unneeded "using"s

This commit is contained in:
Michael 2021-02-06 16:31:44 -06:00
parent dd551ed67f
commit 369b22f63a
2 changed files with 17 additions and 3 deletions

View file

@ -320,6 +320,23 @@ namespace Sharpii
}
return;
}
if (ex.Message == "The remote server returned an error: (404) Not Found.")
{
Console.WriteLine("");
Console.WriteLine("The remote server returned a 404 error. Check your Title ID.");
Console.WriteLine("");
Console.WriteLine("Error: SHARPII_NET_CORE_NUSD_REMOTE_404");
Console.WriteLine("");
if (OperatingSystem.Windows())
{
Environment.Exit(0x00003E9E);
}
else
{
Environment.Exit(0x00000020);
}
return;
}
if (ExceptionListRan == 0)
{
Console.WriteLine("An unknown error occured, please try again");

View file

@ -18,9 +18,6 @@
using System;
using System.IO;
using System.Net;
using libWiiSharp;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Sharpii