abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Ivaylo Draganov
a0f17b15ec
Refactor translation files
...
- Add prefixes to all message keys to provide context
- Use messages with attributes for some UI elements (dropdowns, dialogs, checkboxes, menus)
- Rename some class fields for consistency with translation keys
2022-12-19 22:04:54 +13:00
Matthias Mailänder
760a1245c5
Mark non-moddable translation strings as constant.
2022-12-07 18:40:26 +02:00
Matthias Mailänder
14b5504ea7
Show the host in the download failed error message.
2022-11-23 23:35:53 +01:00
Matthias Mailänder
6f4f0c4e8f
Fix unknown host not getting translated.
2022-11-23 23:35:53 +01:00
IceReaper
35eb246080
Replaced hardcoded SourceType with custom defined ISourceResolver.
2022-11-17 21:19:57 +01:00
IceReaper
7188f88ba1
Replaced hardcoded source actions by user defined ISourceAction.
2022-11-17 21:19:57 +01:00
IceReaper
fcc8f53b59
Installer downloads now using specified IPackageLoader.
2022-11-17 21:19:57 +01:00
IceReaper
8ae5383698
Made installer asset resolving case insensitive.
2022-11-17 00:16:59 +02:00
Matthias Mailänder
0b67b5bfae
Extract translation strings.
2022-09-02 14:41:24 +03:00
Matthias Mailänder
2c8c6e50da
Code cleanup
2022-08-14 16:11:51 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05:00
Paul Chote
0dbd8264b8
Handle exceptions thrown by HttpClient.GetAsync.
2022-04-23 22:44:05 +02:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
abcdefg30
b12c15ea9d
Update to .NET 6
2022-01-04 12:34:30 +01:00
Matthias Mailänder
07815143f1
Fix CA1825 warnings on empty array initialisation.
2021-12-06 13:19:28 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
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