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