Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEEG CHANGES] HoYoPlay API Adjustments #465

Merged
merged 115 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from 97 commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
150c8c7
Change EncTool path
bagusnl Apr 16, 2024
caa5865
Use async stream for loading background files
neon-nyan Apr 20, 2024
8033970
Fix escaped JSON characters don't get parsed correctly
neon-nyan Apr 20, 2024
8d8f868
Move constant JSON class into inner extension class
neon-nyan Apr 20, 2024
4038d04
Refactor API Loaders
neon-nyan Apr 21, 2024
c54b68d
Adding basic HYP to Sophon pkg resource conversion
neon-nyan Apr 21, 2024
1630aed
Adding background image support for HoYoPlay API
neon-nyan Apr 22, 2024
a74b758
Adding news and carousel panel support for HoYoPlay API
neon-nyan Apr 22, 2024
d8b73ac
Fix false Base64 detection on ``GetServeV3String()``
neon-nyan Apr 22, 2024
98e27f7
Fix some typo and avoid unnecessary buffer alloc on ``ServeV3Data``
neon-nyan Apr 22, 2024
42d120a
Implementing basic installation class for ZZZ
neon-nyan Apr 22, 2024
592df2b
Remove leftover overrides inside ``ZenlessInstall``
neon-nyan Apr 22, 2024
bacbb9e
Fix crash while changing launcher release channel
neon-nyan Apr 22, 2024
bf33e28
Fix background throw due to null preload property
neon-nyan Apr 24, 2024
b47138d
Adding new decompressor for .zip package files
neon-nyan Apr 24, 2024
beaa909
Avoid null packages to be proceeded
neon-nyan Apr 24, 2024
e885505
Check availability for cache type: "Event" with DLM = 2
neon-nyan Apr 25, 2024
5e8eb6d
Fix Hi3 Game Repair for version: ``Thelema``
neon-nyan Apr 28, 2024
4a6fb1b
Re-adding checks if the normal metadata file exists (Hi3)
neon-nyan Apr 28, 2024
6cdf27b
FIx "Check Update" button status's center position
neon-nyan Apr 29, 2024
04d22bc
Adjust windows title-bar button style
neon-nyan Apr 29, 2024
892b233
Extend maximum threads for download to 16
neon-nyan May 5, 2024
925ca40
Fix TextFillColorBrush on update status button
neon-nyan May 5, 2024
4e325bb
Use GetURLStatusCode to check URL status on repair/cache
neon-nyan May 5, 2024
706fe24
Use ``Enum.GetValues<T>()`` instead of ``Enum.GetValues(typeof(T))``
neon-nyan May 5, 2024
02dd96d
Fix last exception in ``RetryTimeoutAfter()`` not getting thrown
neon-nyan May 5, 2024
428ccb8
Fix threading issues on Install, Repair and Cache mechanism
neon-nyan May 5, 2024
b78dbb2
Fix Infinity and NaN numbers in ``TotalPerfileProgress``
neon-nyan May 5, 2024
130a19c
Use ``UnNaNInfinity()`` in ``UpdateProgress()``
neon-nyan May 5, 2024
18764d1
Fix data corruption while performing game data migration
neon-nyan May 8, 2024
59cf706
Fix max session exception on Hi3Helper.Http
neon-nyan May 8, 2024
e160ee1
Fix float/double to TimeSpan number conversion
neon-nyan May 8, 2024
d9aceb2
Bump version
neon-nyan May 8, 2024
66d7aff
Add Sophon submodule
neon-nyan May 10, 2024
e5527d3
FIx background handler getting disposed on MainPage reload
neon-nyan May 10, 2024
7681e9c
Fix region combobox cannot receive input while reloading MainPage
neon-nyan May 11, 2024
9653473
Adding Sophon testing/usage sample
neon-nyan May 12, 2024
c3262b7
Adding Async JSONSerializer helper for Stream
neon-nyan May 12, 2024
d8dbb97
Use nullable assignment for game package return list
neon-nyan May 12, 2024
96c6e3d
Update stamp file instead of redownloading if certain config has changed
neon-nyan May 12, 2024
8899c27
Update SharpDiscordRPC submodule
neon-nyan May 12, 2024
2af79fd
Adding Sophon submodule and its testing project
neon-nyan May 12, 2024
6dfc7c9
Add new Sophon Chunk download mechanism
neon-nyan May 12, 2024
0708e1d
(GSP-SR) Clamp ShadowQuality value
bagusnl May 11, 2024
7456bac
[i18n] Localize metadata initialization messages
shatyuka May 12, 2024
26bec96
[skip ci] Sync translation Translate en_US.json in zh_CN
transifex-integration[bot] May 12, 2024
880e813
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] May 12, 2024
75b35b7
(GSP-SR) Clamp all quality values
shatyuka May 12, 2024
fe2a7d1
(GSP-SR) GraphicsQuality presets
shatyuka May 12, 2024
470f311
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] May 12, 2024
95d82b9
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] May 9, 2024
f83f159
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] May 8, 2024
3813e59
Localize Discord RPC Game/Region strings
bagusnl May 5, 2024
c326abb
Add a way to skip audio patch
bagusnl May 8, 2024
4e5d8be
(CDN) Add Coding mirror
shatyuka May 8, 2024
815f1cd
[skip ci] Sync translation Translate en_US.json in zh_CN
transifex-integration[bot] May 8, 2024
9d636f2
Update NuGet Dependencies
bagusnl May 5, 2024
d8cfaab
Update NuGet
neon-nyan May 12, 2024
f297ad2
Fix build configuration
neon-nyan May 12, 2024
db3db35
Adjustment on CDN RadioButtons style
neon-nyan May 12, 2024
3905ec6
Adjustment on CDN RadioButtons style (pt. 2)
neon-nyan May 12, 2024
b330fb6
(GSP-SR) Fix fullscreen inconsistency
shatyuka May 12, 2024
3b474d9
Update sophon submodule
bagusnl May 13, 2024
ab6042f
Update sophon submodule
bagusnl May 13, 2024
c2f2f61
Add ``PreventSleep()`` to prevent Windows' sleep routine
neon-nyan May 15, 2024
094610d
[TaskExtensions] Throw inner exception if completed task is faulty
neon-nyan May 15, 2024
979e3ff
[HYP] Add parser for social media icons
neon-nyan May 15, 2024
0722433
[Sophon] Fix crash caused by empty URL conditions in news API
neon-nyan May 15, 2024
a1e1c50
[UI] Adjust the social media flyout style
neon-nyan May 15, 2024
2aa5bc3
HYP Adjustments
bagusnl May 16, 2024
9ee9556
Implement PreventSleep() on needed methods
bagusnl May 15, 2024
639d15b
Update GitInfo NuGet and package lock file
bagusnl May 16, 2024
11755a6
[TaskExtensions] Use the new ``WaitForRetryAsync`` for retrying task
neon-nyan May 16, 2024
a751b7f
[UI] Fix inconsistent foreground color for socmed's QR title
neon-nyan May 16, 2024
8a91332
(GSP) Implement mobile layout mode
bagusnl May 16, 2024
c825c4b
(GSP) Add delay game launch function on pre launch command
bagusnl May 16, 2024
efa6b6c
Update submodules and NuGet
neon-nyan May 17, 2024
d84071d
Use custom style for ``ImageEx``
neon-nyan May 17, 2024
0e07632
Remove unnecessary ``Console.WriteLine()`` under ``CurrentMetadataCon…
neon-nyan May 17, 2024
209edef
Use custom style for ``ImageEx`` pt. 2
neon-nyan May 17, 2024
8b5f526
Use async WriteLine for logger (also uses .Error and .Out to write)
neon-nyan May 17, 2024
97a6068
Hi3Helper.Sophon adjustment
neon-nyan May 19, 2024
5beb64b
Dont catch cancellation exception on PreventSleep
bagusnl May 18, 2024
62b7b0e
Show nav sidebar only on hover
shatyuka May 18, 2024
a173385
Add drop shadow to nav button
shatyuka May 19, 2024
876504f
Merge branch 'main' into hyp-adjustments
bagusnl May 20, 2024
44d8327
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] May 21, 2024
3f9077b
[skip ci] Sync translation Translate en_US.json in zh_CN
transifex-integration[bot] May 21, 2024
d65cb0b
[skip ci] Sync translation Translate en_US.json in ja_JP
transifex-integration[bot] May 21, 2024
c2b12cb
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] May 21, 2024
91bc970
Update Hi3Helper.Http submodule
neon-nyan May 23, 2024
f6be660
Fix fallback translation for MobileLayout text
neon-nyan May 23, 2024
00d6938
[skip ci] Sync translation Translate en_US.json in id_ID
transifex-integration[bot] May 21, 2024
62b7c79
Remove deprecated CDN (Bitbucket)
neon-nyan May 23, 2024
6f3a801
UI Adjustments
neon-nyan May 23, 2024
aefc236
[skip ci] Sync translation Translate en_US.json in id_ID
transifex-integration[bot] May 23, 2024
caa79de
Remove unnecessary Lottie package
neon-nyan May 23, 2024
aa53691
Adjust Preload box dialog UI
neon-nyan May 23, 2024
ae05efd
Use current thread for animation compositor
neon-nyan May 24, 2024
45534ac
Adjust preload button style to ``AcrylicButtonStyle``
neon-nyan May 24, 2024
c005436
Use current thread for animation compositor (pt. 2)
neon-nyan May 24, 2024
b4c9e20
Add 500 ms delay before side panel animation is triggered
neon-nyan May 24, 2024
5ad948c
Fix crash on starting animation with no access to thread
neon-nyan May 24, 2024
9627026
Minor adjustment on loading frame
neon-nyan May 24, 2024
0cb0675
Fix task not retrying due to cancellation from linked source
neon-nyan May 24, 2024
d329d4f
Fix retry mechanism on API loading not working
neon-nyan May 24, 2024
ca48bbb
Adjust DisconnectedPage style
neon-nyan May 24, 2024
990c331
Add HoYoPlay featured event icon and styles
neon-nyan May 24, 2024
9382212
Fix installation progress bar style
neon-nyan May 24, 2024
a272fdc
Update sophon and HYP install mechanism
neon-nyan May 25, 2024
9dff5a1
fix typo
Cryotechnic May 25, 2024
ccc8ad7
change insufficient drive space dialog required type
Cryotechnic May 25, 2024
0ce8b93
fix incorrect package size indicators to the user
Cryotechnic May 25, 2024
7e2487f
update submodule
Cryotechnic May 25, 2024
a058090
update submodule
Cryotechnic May 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
url = https://github.com/neon-nyan/ColorThief
[submodule "Hi3Helper.EncTool"]
path = Hi3Helper.EncTool
url = https://github.com/neon-nyan/Hi3Helper.EncTool
url = https://github.com/CollapseLauncher/Hi3Helper.EncTool
[submodule "InnoSetupHelper/InnoSetupLogParser"]
path = InnoSetupHelper/InnoSetupLogParser
url = https://github.com/CollapseLauncher/InnoSetupLogParser
[submodule "Hi3Helper.SharpDiscordRPC"]
path = Hi3Helper.SharpDiscordRPC
url = https://github.com/CollapseLauncher/Hi3Helper.SharpDiscordRPC
[submodule "Hi3Helper.Sophon"]
path = Hi3Helper.Sophon
url = https://github.com/CollapseLauncher/Hi3Helper.Sophon
1 change: 1 addition & 0 deletions .idea/.idea.CollapseLauncher/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions CollapseLauncher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InnoSetupHelper", "InnoSetu
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DiscordRPC", "Hi3Helper.SharpDiscordRPC\DiscordRPC\DiscordRPC.csproj", "{2004AA88-FFC3-4186-B11A-3E4C577A3D25}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hi3Helper.Sophon.Test", "Hi3Helper.Sophon.Test\Hi3Helper.Sophon.Test.csproj", "{5E97C5A8-EE96-4F47-8CA7-BF4455D12A34}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hi3Helper.Sophon", "Hi3Helper.Sophon\Hi3Helper.Sophon.csproj", "{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -74,12 +78,22 @@ Global
{21691306-8D30-4993-98A2-A5AE0712D81A}.Publish|x64.Build.0 = Release|x64
{21691306-8D30-4993-98A2-A5AE0712D81A}.Release|x64.ActiveCfg = Release|x64
{21691306-8D30-4993-98A2-A5AE0712D81A}.Release|x64.Build.0 = Release|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Debug|x64.ActiveCfg = Debug|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Debug|x64.Build.0 = Debug|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Publish|x64.ActiveCfg = Debug|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Publish|x64.Build.0 = Debug|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Release|x64.ActiveCfg = Release|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Release|x64.Build.0 = Release|Any CPU
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Debug|x64.ActiveCfg = Debug|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Debug|x64.Build.0 = Debug|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Publish|x64.ActiveCfg = Release|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Publish|x64.Build.0 = Release|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Release|x64.ActiveCfg = Release|x64
{2004AA88-FFC3-4186-B11A-3E4C577A3D25}.Release|x64.Build.0 = Release|x64
{5E97C5A8-EE96-4F47-8CA7-BF4455D12A34}.Debug|x64.ActiveCfg = Debug|x64
{5E97C5A8-EE96-4F47-8CA7-BF4455D12A34}.Debug|x64.Build.0 = Debug|x64
{5E97C5A8-EE96-4F47-8CA7-BF4455D12A34}.Publish|x64.ActiveCfg = Release|x64
{5E97C5A8-EE96-4F47-8CA7-BF4455D12A34}.Release|x64.ActiveCfg = Release|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Debug|x64.ActiveCfg = Debug|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Debug|x64.Build.0 = Debug|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Publish|x64.ActiveCfg = Release|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Publish|x64.Build.0 = Release|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Release|x64.ActiveCfg = Release|x64
{3F87DCD0-39B7-4F8C-8F34-A0FC7C6E65A0}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
153 changes: 150 additions & 3 deletions CollapseLauncher/App.xaml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions CollapseLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Microsoft.UI;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
using PhotoSauce.MagicScaler;
using PhotoSauce.NativeCodecs.Libwebp;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -84,6 +86,12 @@ public App()
{
ImageLoaderHelper.InitWaifu2X();
}

// Initialize support for MagicScaler's WebP decoding
CodecManager.Configure(codecs =>
{
codecs.UseLibwebp();
});
}
catch (Exception ex)
{
Expand Down
Loading
Loading