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

Commit

Permalink
当 osu!.cfg 存在时删除(该文件会自动生成,可防止版本切换后被自动更新回来。
Browse files Browse the repository at this point in the history
  • Loading branch information
lslqtz committed Feb 2, 2018
1 parent feaee64 commit aede5ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu-download/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ static void Main(string[] args)
{
Console.WriteLine("已创建安装目录。");
Directory.CreateDirectory(InstallPath);
} else if (File.Exists(InstallPath + @"\" + "osu!.cfg"))
{
File.Delete(InstallPath + @"\" + "osu!.cfg");
}
string isUpdate = "下载";
string filepath = InstallPath + @"\" + filearr[1];
Expand Down

0 comments on commit aede5ca

Please sign in to comment.