Run StyleCop on the smaller projects.
Also add a copy of the rules to the CrashDialog and Irc projects.
This commit is contained in:
@@ -45,11 +45,11 @@ namespace OpenRA.Mods.TS.Widgets.Logic
|
||||
}
|
||||
|
||||
void CheckForDisk()
|
||||
{
|
||||
Func<string, bool> ValidDiskFilter = diskRoot => File.Exists(diskRoot+Path.DirectorySeparatorChar+"multi.mix") &&
|
||||
{
|
||||
Func<string, bool> validDiskFilter = diskRoot => File.Exists(diskRoot + Path.DirectorySeparatorChar + "multi.mix") &&
|
||||
File.Exists(new string[] { diskRoot, "install", "tibsun.mix" }.Aggregate(Path.Combine));
|
||||
|
||||
var path = InstallUtils.GetMountedDisk(ValidDiskFilter);
|
||||
var path = InstallUtils.GetMountedDisk(validDiskFilter);
|
||||
|
||||
if (path != null)
|
||||
Install(path);
|
||||
@@ -67,27 +67,27 @@ namespace OpenRA.Mods.TS.Widgets.Logic
|
||||
insertDiskContainer.IsVisible = () => false;
|
||||
installingContainer.IsVisible = () => true;
|
||||
|
||||
var dest = new string[] { Platform.SupportDir, "Content", "ts" }.Aggregate(Path.Combine);
|
||||
var copyFiles = new string[] { "install/tibsun.mix", "scores.mix", "multi.mix"};
|
||||
var dest = new string[] { Platform.SupportDir, "Content", "ts" }.Aggregate(Path.Combine);
|
||||
var copyFiles = new string[] { "install/tibsun.mix", "scores.mix", "multi.mix" };
|
||||
|
||||
var installCounter = 0;
|
||||
var installTotal = copyFiles.Count();
|
||||
var onProgress = (Action<string>)(s => Game.RunAfterTick(() =>
|
||||
{
|
||||
progressBar.Percentage = installCounter*100/installTotal;
|
||||
{
|
||||
progressBar.Percentage = installCounter * 100 / installTotal;
|
||||
installCounter++;
|
||||
|
||||
statusLabel.GetText = () => s;
|
||||
}));
|
||||
|
||||
var onError = (Action<string>)(s => Game.RunAfterTick(() =>
|
||||
{
|
||||
statusLabel.GetText = () => "Error: "+s;
|
||||
{
|
||||
statusLabel.GetText = () => "Error: " + s;
|
||||
backButton.IsDisabled = () => false;
|
||||
retryButton.IsDisabled = () => false;
|
||||
}));
|
||||
|
||||
var t = new Thread( _ =>
|
||||
var t = new Thread(_ =>
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -108,5 +108,4 @@ namespace OpenRA.Mods.TS.Widgets.Logic
|
||||
t.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user