Merge pull request #3888 from Mailaender/ts-asset-download
Added Auto-Download for Tiberian Sun assets
This commit is contained in:
@@ -58,6 +58,7 @@ namespace OpenRA.FileFormats
|
||||
destStream.Write(sourceStream.ReadAllBytes());
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -71,10 +72,12 @@ namespace OpenRA.FileFormats
|
||||
onError("Cannot find " + file);
|
||||
return false;
|
||||
}
|
||||
|
||||
var destFile = Path.GetFileName(file).ToLowerInvariant();
|
||||
onProgress("Extracting " + destFile);
|
||||
File.Copy(fromPath, Path.Combine(destPath, destFile), true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -100,6 +103,7 @@ namespace OpenRA.FileFormats
|
||||
onError("Invalid archive");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
Ui.OpenWindow("MODS_PANEL", new WidgetArgs()
|
||||
{
|
||||
{ "onExit", () => { } },
|
||||
// Close this panel
|
||||
{ "onSwitch", Ui.CloseWindow },
|
||||
});
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.TS
|
||||
public class TSLoadScreen : ILoadScreen
|
||||
{
|
||||
Dictionary<string, string> Info;
|
||||
static string[] Comments = new[] { "Updating EVA installation..." };
|
||||
static string[] Comments = new[] { "Updating EVA installation...", "Changing perspective..." };
|
||||
|
||||
Stopwatch lastLoadScreen = new Stopwatch();
|
||||
Rectangle StripeRect;
|
||||
|
||||
@@ -50,8 +50,8 @@ Packages:
|
||||
temperat.mix:CRC32
|
||||
# Firestorm
|
||||
~scores01.mix:CRC32
|
||||
expand01.mix:CRC32
|
||||
sounds01.mix:CRC32
|
||||
~expand01.mix:CRC32
|
||||
~sounds01.mix:CRC32
|
||||
~e01sc01.mix:CRC32
|
||||
~e01sc02.mix:CRC32
|
||||
~e01vox01.mix:CRC32
|
||||
@@ -137,8 +137,8 @@ Movies:
|
||||
LoadScreen: TSLoadScreen
|
||||
LoadScreenImage: mods/ts/uibits/loadscreen.png
|
||||
InstallerMenuWidget: INSTALL_PANEL
|
||||
TestFile: tibsun.mix
|
||||
PackageURL: http://open-ra.org/get-dependency.php?file=ts-packages # TODO: upload a stripped down package
|
||||
TestFile: isotemp.mix
|
||||
PackageURL: http://open-ra.org/get-dependency.php?file=ts-packages
|
||||
|
||||
ServerTraits:
|
||||
LobbyCommands
|
||||
|
||||
Reference in New Issue
Block a user