Commit Graph

74 Commits

Author SHA1 Message Date
teinarss
10676be377 Replace F extension with string interpolation 2021-05-08 22:20:59 +02:00
Matthias Mailänder
e13fd4816e Extract the directory if the registry value points to a filename. 2021-03-20 18:42:02 +01:00
Paul Chote
cbea08e1fe Fix non-relative path handling in install logic. 2021-03-13 15:56:38 +01:00
teinarss
7073279ab8 Replace WebClient with HttpClient 2021-03-07 16:04:57 +00:00
teinarss
9c4fd0e3d3 Use Null-Propagation Operator 2020-08-19 18:11:07 +01:00
Andre Mohren
006a87692a Removed unused imports. 2020-07-28 18:22:51 +02:00
abcdefg30
23b3c237b7 Update the year numbers in all license headers to 2020 2020-01-05 17:00:34 +00:00
Paul Chote
03c1eaad76 Add a SHA1 check for downloaded packages. 2019-06-08 13:39:17 +02:00
Paul Chote
f69c6ab3fb Update SharpZipLib to 1.1.0.
The default code page has been changed to UTF8
so our workarounds are no longer needed.
2019-03-30 20:47:22 +01:00
abcdefg30
cadbd0d9ab Change the year number in all cs headers from 2018 to 2019 2019-01-26 23:15:21 +01:00
Paul Chote
9cee77ed8c Add hardcoded fallback mountpoints for asset detection on Linux. 2018-12-15 22:22:54 +01:00
Andre Mohren
b1a44086a0 Removed unused using directives. 2018-11-17 17:23:22 +00:00
Paul Chote
7438af8266 Improve status line display for unknown-size downloads. 2018-09-14 18:55:58 +02:00
Emmalyn Renato
3f4d5fa68c Fix display of progress text in Advanced Install when total file size is unknown. 2018-09-14 17:30:53 +01:00
Dennis Snell
95558a36ab Fix: Display progress message properly when download size missing (#1)
When I downloaded the assets for Red Alert through the Quick Install I noticed the progress bar proceed and display a recognizable message: `Downloading from … 1.47/12 MB (12%)`. This was fine.

When I downloaded the assets for one of the other games, maybe Dune 2000, there was obviously no total download size available. I was an unexpected message: `Downloading from … 1.47/NaN (NaN%)`

The code handling network progress events seems to be aware of the possibility that no full download size exists but it doesn't update the message. In this path I'm proposing that we display a separate messaging indicating that we don't know how much more we have to download for these cases.

Of the alternative ways to implement this I chose to move the reassignment of `getStatusText` into the conditional structures to preserve the existing choice. The message was qualitatively different and so I felt it worthwhile to create entirely different closures vs. doing something like this…

```cs
getStatusText = () => ( Double.isNaN( dataTotal ) ? "Downloading {1} of unknown amount" : "Downloading {1}/{2}" ).F( … );
```
2018-09-13 16:55:51 +02:00
Paul Chote
91295f9c68 Add IReadOnlyFileSystem.IsExternalModFile. 2018-05-01 00:46:57 +02:00
Arular101
8a60918841 Update copyright notice year to 2018 2018-01-17 00:47:34 +01:00
Pavel Penev
450cbeea96 Added an extra bit of installer data to Install.log 2017-12-02 00:08:50 +01:00
Paul Chote
0f54d6f709 Allow mod to be launched after installing required content. 2017-07-21 00:15:38 +02:00
RoosterDragon
297f4ad9ed Ensure we set ZipConstants.DefaultCodePage by using a helper method.
We were currently dealing with this terrible global variable in FileSystem/ZipFile.cs previously, but other parts of the code such as DownloadPackageLogic were creating these files too, and may not have executed the static ctors that fixed the encoding yet.
2017-07-05 22:45:15 +01:00
Paul Chote
e5222f95f6 Remove ambiguity from FileSystem references. 2017-05-29 12:41:28 +02:00
Paul Chote
0222ea675c Implement mod-defined package loaders. 2017-05-07 13:25:38 +01:00
Paul Chote
ec42aed6bc Redirect mod chooser to content manager. 2017-04-21 18:02:20 +01:00
Paul Chote
5d5fd7a0e8 Remove RequiredMods logic. 2017-04-21 17:55:15 +01:00
rob-v
ee91396984 Add exception to Archive extraction failed (Invalid archive) error ##12985 2017-04-13 20:44:03 +02:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
Paul Chote
e30ca88797 Add support for hashing partial IDFiles. 2016-12-18 00:26:50 +00:00
Paul Chote
d3db66a8af Support multiple registry path prefixes. 2016-12-18 00:26:48 +00:00
Paul Chote
9e8b18e7be Extract a common SHA1 helper. 2016-10-02 12:53:41 +01:00
Paul Chote
aab91cb37e Work around incorrect mono behaviour under OSX. 2016-09-14 21:48:40 +01:00
Paul Chote
617f106e48 Fix crash when popping up the mod requirements dialog. 2016-09-03 19:28:10 +01:00
RoosterDragon
f1b0740e72 Allow download window to be closed on failed downloads. 2016-08-25 18:21:40 +01:00
Paul Chote
88c43fa9b3 Extract content sources and downloads to external files. 2016-08-08 22:36:08 +01:00
Paul Chote
3df9efb95d Rework mod enumeration / caching.
- Replaced ModMetadata.AllMods with Game.Mods.
- Store / reference mod Manifest instead of ModMetadata.
- Removes engine dependency on ModContent class.
2016-08-08 22:36:07 +01:00
RoosterDragon
3b5798b5e8 Fix cancellation of downloads.
The Download class cancels asynchronously, which means callers must handle cancellation inside the completion event, and not after requesting cancellation.
2016-07-30 16:27:45 +01:00
Paul Chote
56fa7cee1b Fix install source tooltip width. 2016-07-30 09:14:36 +01:00
Paul Chote
dbd21b9e46 Support extracting and deleting from content files. 2016-07-13 21:01:56 +01:00
Paul Chote
bddae7314a Reimplement InstallShieldCAB extraction. 2016-07-13 21:01:56 +01:00
Matthias Mailänder
d0bada1ae9 Don't crash when ZipFile.GetEntry returns null. 2016-07-09 20:10:53 +02:00
Paul Chote
40089e7076 Fix logging on bogus extraction metadata. 2016-06-26 18:23:44 +01:00
Paul Chote
d1a973458b Add support for installing content from disk. 2016-06-26 18:18:40 +01:00
Paul Chote
7ca7e695e1 Rename Disc -> Source in asset installer. 2016-06-26 18:18:40 +01:00
Oliver Brakmann
87df458c2e Merge pull request #11462 from pchote/stream-installer-copy
Extract installer data using direct stream-stream copies
2016-06-18 20:56:26 +02:00
Paul Chote
6463b31c99 Add a minimum size threshold for showing progress. 2016-06-17 19:26:13 +01:00
Paul Chote
f1758e9559 Stream installer copy and raw extraction. 2016-06-17 18:53:59 +01:00
Paul Chote
63782aad2e Stream MSCab extraction output. 2016-06-16 21:20:42 +01:00
Paul Chote
a9a5b9bc71 Change Blast.Decompress to use Stream I/O. 2016-06-16 21:20:27 +01:00
reaperrr
3c2a553f63 Fix conflict in ModContentLogic
The variable would otherwise conflict with the declaration at line 24.
2016-06-16 15:15:28 +02:00
Paul Chote
3585d8afd4 Remove legacy installation logic. 2016-06-14 20:18:57 +01:00
Paul Chote
0b97a81616 Remove legacy music installer. 2016-06-14 20:18:56 +01:00