Skip to content

Commit

Permalink
feat: Updater 适配 v0.11.0-preview2
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed May 19, 2024
1 parent 63e2c27 commit 6d531c1
Showing 1 changed file with 156 additions and 1 deletion.
157 changes: 156 additions & 1 deletion src/Updater/PackageFiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,167 @@ static constexpr const wchar_t* V0_10_100_FOLDERS[] = {
L"effects"
};

static constexpr const wchar_t* V0_10_101_FILES[] = {
L"effects\\Anime4K\\Anime4K_3D_AA_Upscale_US.hlsl",
L"effects\\Anime4K\\Anime4K_3D_Upscale_US.hlsl",
L"effects\\Anime4K\\Anime4K_Denoise_Bilateral_Mean.hlsl",
L"effects\\Anime4K\\Anime4K_Denoise_Bilateral_Median.hlsl",
L"effects\\Anime4K\\Anime4K_Denoise_Bilateral_Mode.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_L.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_M.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_S.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_Soft_L.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_Soft_M.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_Soft_S.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_Soft_UL.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_Soft_VL.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_UL.hlsl",
L"effects\\Anime4K\\Anime4K_Restore_VL.hlsl",
L"effects\\Anime4K\\Anime4K_Thin_HQ.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_Denoise_L.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_Denoise_S.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_Denoise_UL.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_Denoise_VL.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_GAN_x2_M.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_GAN_x2_S.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_GAN_x3_L.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_L.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_S.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_UL.hlsl",
L"effects\\Anime4K\\Anime4K_Upscale_VL.hlsl",
L"effects\\CAS\\CAS.hlsl",
L"effects\\CAS\\CAS_Scaling.hlsl",
L"effects\\CRT\\CRT_Easymode.hlsl",
L"effects\\CRT\\CRT_Geom.hlsl",
L"effects\\CRT\\CRT_Hyllian.hlsl",
L"effects\\CRT\\CRT_Lottes.hlsl",
L"effects\\CRT\\GTU_v050.hlsl",
L"effects\\CuNNy\\CuNNy-2x4C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-2x4C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-3x4C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-3x4C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-4x4C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-4x4C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-4x8C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-4x8C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-4x16C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-4x16C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-6x8C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-6x8C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-8x4C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-8x4C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-8x8C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-8x8C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-8x16C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-8x16C-NVL-DN.hlsl",
L"effects\\CuNNy\\CuNNy-16x16C-NVL.hlsl",
L"effects\\CuNNy\\CuNNy-16x16C-NVL-DN.hlsl",
L"effects\\FSR\\FSR_EASU.hlsl",
L"effects\\FSR\\FSR_RCAS.hlsl",
L"effects\\FSRCNNX\\FSRCNNX.hlsl",
L"effects\\FSRCNNX\\FSRCNNX_LineArt.hlsl",
L"effects\\FXAA\\FXAA.hlsli",
L"effects\\FXAA\\FXAA_High.hlsl",
L"effects\\FXAA\\FXAA_Medium.hlsl",
L"effects\\FXAA\\FXAA_Ultra.hlsl",
L"effects\\NIS\\Coef_Scale.dds",
L"effects\\NIS\\Coef_USM.dds",
L"effects\\NIS\\NIS.hlsl",
L"effects\\NIS\\NVSharpen.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns16_win8x4.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns16_win8x6.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns32_win8x4.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns32_win8x6.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns64_win8x4.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns64_win8x6.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns128_win8x4.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns128_win8x6.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns256_win8x4.hlsl",
L"effects\\NNEDI3\\NNEDI3_nns256_win8x6.hlsl",
L"effects\\NNEDI3\\prescalers.hlsli",
L"effects\\Pixel Art\\MMPX.hlsl",
L"effects\\Pixel Art\\Pixellate.hlsl",
L"effects\\Pixel Art\\SharpBilinear.hlsl",
L"effects\\RAVU\\prescalers.hlsli",
L"effects\\RAVU\\ravu_3x_lut2_f16.dds",
L"effects\\RAVU\\ravu_3x_lut3_f16.dds",
L"effects\\RAVU\\ravu_3x_lut4_f16.dds",
L"effects\\RAVU\\RAVU_3x_R2.hlsl",
L"effects\\RAVU\\RAVU_3x_R2_RGB.hlsl",
L"effects\\RAVU\\RAVU_3x_R3.hlsl",
L"effects\\RAVU\\RAVU_3x_R3_RGB.hlsl",
L"effects\\RAVU\\RAVU_3x_R4.hlsl",
L"effects\\RAVU\\RAVU_3x_R4_RGB.hlsl",
L"effects\\RAVU\\RAVU_Lite_AR_R2.hlsl",
L"effects\\RAVU\\RAVU_Lite_AR_R3.hlsl",
L"effects\\RAVU\\RAVU_Lite_AR_R4.hlsl",
L"effects\\RAVU\\ravu_lite_lut2_f16.dds",
L"effects\\RAVU\\ravu_lite_lut3_f16.dds",
L"effects\\RAVU\\ravu_lite_lut4_f16.dds",
L"effects\\RAVU\\RAVU_Lite_R2.hlsl",
L"effects\\RAVU\\RAVU_Lite_R3.hlsl",
L"effects\\RAVU\\RAVU_Lite_R4.hlsl",
L"effects\\RAVU\\ravu_lut2_f16.dds",
L"effects\\RAVU\\ravu_lut3_f16.dds",
L"effects\\RAVU\\ravu_lut4_f16.dds",
L"effects\\RAVU\\RAVU_R2.hlsl",
L"effects\\RAVU\\RAVU_R2_RGB.hlsl",
L"effects\\RAVU\\RAVU_R3.hlsl",
L"effects\\RAVU\\RAVU_R3_RGB.hlsl",
L"effects\\RAVU\\RAVU_R4.hlsl",
L"effects\\RAVU\\RAVU_R4_RGB.hlsl",
L"effects\\RAVU\\RAVU_Zoom_AR_R2.hlsl",
L"effects\\RAVU\\RAVU_Zoom_AR_R2_RGB.hlsl",
L"effects\\RAVU\\RAVU_Zoom_AR_R3.hlsl",
L"effects\\RAVU\\RAVU_Zoom_AR_R3_RGB.hlsl",
L"effects\\RAVU\\ravu_zoom_lut2_ar_f16.dds",
L"effects\\RAVU\\ravu_zoom_lut2_f16.dds",
L"effects\\RAVU\\ravu_zoom_lut3_ar_f16.dds",
L"effects\\RAVU\\ravu_zoom_lut3_f16.dds",
L"effects\\RAVU\\RAVU_Zoom_R2.hlsl",
L"effects\\RAVU\\RAVU_Zoom_R2_RGB.hlsl",
L"effects\\RAVU\\RAVU_Zoom_R3.hlsl",
L"effects\\RAVU\\RAVU_Zoom_R3_RGB.hlsl",
L"effects\\Sharpen\\AdaptiveSharpen.hlsl",
L"effects\\Sharpen\\FineSharp.hlsl",
L"effects\\Sharpen\\LCAS.hlsl",
L"effects\\Sharpen\\LumaSharpen.hlsl",
L"effects\\SMAA\\AreaTex.dds",
L"effects\\SMAA\\SearchTex.dds",
L"effects\\SMAA\\SMAA.hlsli",
L"effects\\SMAA\\SMAA_High.hlsl",
L"effects\\SMAA\\SMAA_Low.hlsl",
L"effects\\SMAA\\SMAA_Medium.hlsl",
L"effects\\SMAA\\SMAA_Ultra.hlsl",
L"effects\\xBRZ\\xBRZ_2x.hlsl",
L"effects\\xBRZ\\xBRZ_3x.hlsl",
L"effects\\xBRZ\\xBRZ_4x.hlsl",
L"effects\\xBRZ\\xBRZ_5x.hlsl",
L"effects\\xBRZ\\xBRZ_6x.hlsl",
L"effects\\xBRZ\\xBRZ_Freescale.hlsl",
L"effects\\ACNet.hlsl",
L"effects\\Bicubic.hlsl",
L"effects\\Bilinear.hlsl",
L"effects\\Deband.hlsl",
L"effects\\ImageAdjustment.hlsl",
L"effects\\Jinc.hlsl",
L"effects\\Lanczos.hlsl",
L"effects\\Nearest.hlsl",
L"effects\\SSimDownscaler.hlsl",
L"Magpie.App.dll",
L"Microsoft.UI.Xaml.dll",
L"resources.pri",
L"TouchHelper.exe"
};

struct PackageFiles {
const std::span<const wchar_t*> files;
const std::span<const wchar_t*> folders;

static std::optional<PackageFiles> Get(const Version& version) {
if (version >= Version(0, 10, 100)) {
if (version >= Version(0, 10, 101)) {
return PackageFiles{ _ToSpan(V0_10_101_FILES), _ToSpan(V0_10_100_FOLDERS) };
} else if (version >= Version(0, 10, 100)) {
return PackageFiles{ _ToSpan(V0_10_100_FILES), _ToSpan(V0_10_100_FOLDERS) };
} else if (version >= Version(0, 10, 4)) {
return PackageFiles{ _ToSpan(V0_10_4_FILES), _ToSpan(V0_10_3_FOLDERS) };
Expand Down

0 comments on commit 6d531c1

Please sign in to comment.