removed un-neccessary code
This commit is contained in:
@@ -263,20 +263,19 @@ namespace SeamlessClientPlugin.SeamlessTransfer
|
|||||||
if (!Directory.Exists(SearchDir))
|
if (!Directory.Exists(SearchDir))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
var files = Directory.GetFiles(SearchDir, "CustomLoadingBackground*.dds", SearchOption.TopDirectoryOnly);
|
var files = Directory.GetFiles(SearchDir, "CustomLoadingBackground*.dds", SearchOption.TopDirectoryOnly);
|
||||||
foreach (var file in files)
|
foreach (var file in files)
|
||||||
{
|
{
|
||||||
// Adds all files containing CustomLoadingBackground to a list for later randomisation
|
// Adds all files containing CustomLoadingBackground to a list for later randomisation
|
||||||
if (Path.GetFileNameWithoutExtension(file).Contains("CustomLoadingBackground"))
|
|
||||||
{
|
|
||||||
SeamlessClient.TryShow(Mod.FriendlyName + " contains a custom loading background!");
|
SeamlessClient.TryShow(Mod.FriendlyName + " contains a custom loading background!");
|
||||||
backgrounds.Add(file);
|
backgrounds.Add(file);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Randomly pick a loading screen from the available backgrounds
|
// Randomly pick a loading screen from the available backgrounds
|
||||||
var numberOfItems = backgrounds.Count();
|
var rInt = r.Next(0, backgrounds.Count() - 1);
|
||||||
var rInt = r.Next(0, numberOfItems - 1);
|
|
||||||
File = backgrounds[rInt];
|
File = backgrounds[rInt];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user