Apply batch fixing of built-in types using var

This commit is contained in:
Dean Herbert
2021-10-27 13:04:41 +09:00
parent 1d7e97625a
commit 6944151486
263 changed files with 572 additions and 572 deletions

View File

@ -22,17 +22,17 @@ namespace osu.Desktop
public static int Main(string[] args)
{
// Back up the cwd before DesktopGameHost changes it
var cwd = Environment.CurrentDirectory;
string cwd = Environment.CurrentDirectory;
string gameName = base_game_name;
bool tournamentClient = false;
foreach (var arg in args)
foreach (string arg in args)
{
var split = arg.Split('=');
string[] split = arg.Split('=');
var key = split[0];
var val = split.Length > 1 ? split[1] : string.Empty;
string key = split[0];
string val = split.Length > 1 ? split[1] : string.Empty;
switch (key)
{
@ -62,7 +62,7 @@ namespace osu.Desktop
{
var importer = new ArchiveImportIPCChannel(host);
foreach (var file in args)
foreach (string file in args)
{
Console.WriteLine(@"Importing {0}", file);
if (!importer.ImportAsync(Path.GetFullPath(file, cwd)).Wait(3000))