mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Force en-US cultureinfo for updater to correct update date.
This commit is contained in:
parent
a8ec469252
commit
aaa98afa8e
1 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,7 @@ using Octokit;
|
|||
using System.Net;
|
||||
using System.IO.Compression;
|
||||
using System.IO;
|
||||
using System.Globalization;
|
||||
using System.Security.AccessControl;
|
||||
|
||||
namespace Updater
|
||||
|
@ -21,6 +22,8 @@ namespace Updater
|
|||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
|
||||
|
||||
execDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
|
||||
folderDir = execDirectory;
|
||||
|
||||
|
@ -165,8 +168,9 @@ namespace Updater
|
|||
}
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"Failed to download update! {ex.ToString()}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue