Commit 1b2d110
authored
Major CodeQA - 20250119 (#673)
# Main Goal
This PR contains huge CodeQA and some code refactoring for some
functionalities, which hopefully improve the maintainability of the
codebase further.
## What's changed?
- **[Imp]** CodeQA based on Qodana and ReSharper suggestions
- **[New]** Introducing ``Hash`` extension for hashing ``FileStream``,
``string``, ``Span<T>`` and ``FileInfo`` with both synchronous and
asynchronous version of the methods. The methods uses generic type of
any member of ``HashAlgorithm`` (Such as: ``MD5``, ``SHA*``,
``HMACSHA*``, etc.) and ``NonCryptographicHashAlgorithm`` (Such as:
``Crc32``, ``XxHash*``, etc.) to specify which kind of hash to be used.
- **[Imp]** Separating ``InternalAppJSONContext`` members into its own
``JsonContext``es.
- **[Imp]** Update H.NotifyIcon to work with CsWin32 v0.3.162.
- **[Imp]** Update NuGet packages.
- **[Imp]** Recompile and Update StaticLibs for NativeAOT libraries
link.
- Update Rust compiler for ``csharp_bindings`` to rustc 1.84.0
(9fc6b4312 2025-01-07) (Stable)
- Remove dependency to ``MSVCRT`` library (Manual VC++ 2019/2022 Redist
installation should no longer be needed) and fully utilize ``UCRT`` as
its runtime library.
- Update libwebp libraries to:
https://github.com/webmproject/libwebp/tree/f8f241071001e1a3807f34a26a03a742ea843458
- Favor speed + inline optimizaton build (/O2 + /Ob2 + /Oi + /Ot)
- Recompile all static libraries using Microsoft Visual C++ 2022
(19.43.34618) compiler.
- Optimize Rust library, ``csharp_bindings`` to use full LTO.
- **[Imp]** Update Hi3Helper.Sophon submodule.
## PR Status :
- Overall Status : Done
- Commits : Done
- Synced to base (Collapse:main) : Not yet
- Build status : OK
- Crashing : No
- Bug found caused by PR : {int}
### Templates
<details>
<summary>Changelog Prefixes</summary>
```
**[New]**
**[Imp]**
**[Fix]**
**[Loc]**
**[Doc]**
```
</details>File tree
328 files changed
+10305
-9693
lines changed- CollapseLauncher
- Classes
- CachesManagement
- Honkai
- StarRail
- Zenless
- DiscordPresence
- EventsManagement
- Extension
- FileDialog
- FileMigrationProcess
- GameManagement
- GamePlaytime
- RegistryClass
- GameSettings
- BaseClass
- Genshin
- RegistryClass
- Enums
- Honkai
- RegistryClass
- StarRail
- RegistryClass
- Universal
- RegistryClass
- Zenless
- JsonProperties
- RegistryClass
- GameVersion
- BaseClass
- Honkai
- Versioning
- Genshin
- Honkai
- StarRail
- Zenless
- Helper
- Background
- Loaders
- Database
- Image
- JsonConverter
- LauncherApiLoader
- HoYoPlay
- Sophon
- Loading
- Metadata
- StreamUtility
- Update
- InstallManagement
- Base
- Genshin
- Honkai
- StarRail
- Zenless
- Interfaces
- Class
- Properties
- WindowSizeProp
- RegionManagement
- RegistryMonitor
- RepairManagement
- Genshin
- Honkai
- StarRail
- Zenless
- ShortcutCreator
- StaticLib
- Waifu2x
- WindowsKits/10.0.22621.0_um_x64
- XAMLs
- Invoker/Classes
- MainApp
- Pages
- Dialogs
- GameSettingsPages
- OOBE
- Theme/CustomControls
- CommunityToolkit.Labs/MarkdownTextBlock
- Renderers
- ObjectRenderers
- Extensions
- Inlines
- TextElements
- Html
- Updater
- Classes
- Hi3Helper.CommunityToolkit
- ImageCropper
- SettingsControls
- Hi3Helper.Core
- Classes
- Data/Tools
- Preset/Classes
- SentryHelper
- Data
- Lang
- Locale
- Hi3Helper.EncTool.Test
- Hi3Helper.TaskScheduler
- InnoSetupHelper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
328 files changed
+10305
-9693
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
2190 | 2189 | | |
2191 | 2190 | | |
2192 | 2191 | | |
2193 | | - | |
| 2192 | + | |
2194 | 2193 | | |
2195 | 2194 | | |
2196 | | - | |
| 2195 | + | |
2197 | 2196 | | |
2198 | 2197 | | |
2199 | | - | |
| 2198 | + | |
2200 | 2199 | | |
2201 | 2200 | | |
2202 | 2201 | | |
| |||
2627 | 2626 | | |
2628 | 2627 | | |
2629 | 2628 | | |
2630 | | - | |
| 2629 | + | |
2631 | 2630 | | |
2632 | 2631 | | |
2633 | | - | |
| 2632 | + | |
2634 | 2633 | | |
2635 | 2634 | | |
2636 | | - | |
| 2635 | + | |
2637 | 2636 | | |
2638 | 2637 | | |
2639 | 2638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | | - | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
Lines changed: 60 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
62 | | - | |
| 73 | + | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
| |||
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 88 | + | |
110 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
| |||
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
139 | | - | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | | - | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| |||
0 commit comments