Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
修复一个几乎不可能发生的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lslqtz committed Jul 6, 2018
1 parent a62b37e commit 152b62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu-download/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void Main(string[] args)
{
string Author = "asd";
string ProgramTitle = "osu! 镜像下载客户端";
string CurDLClientVer = "b20180415.3";
string CurDLClientVer = "b20180706.1";
string InstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "osu!");
string[] License = null;
if (File.Exists("License"))
Expand Down Expand Up @@ -209,7 +209,7 @@ static void Main(string[] args)
string uri = tmp.Replace("File:", "");
string[] filearr = uri.Split('/');
string cfgpath = Path.Combine(InstallPath, "osu!.cfg");
if (filearr.Length < 2)
if (filearr.Length < 2 || string.IsNullOrEmpty(filearr[1]))
{
throw new Exception("数据不正确!");
}
Expand Down

0 comments on commit 152b62b

Please sign in to comment.