소스 검색

ms store args

Krzysztof Krysiński 1 개월 전
부모
커밋
2244b68296
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/PixiEditor.Platform.MSStore/MicrosoftStorePlatform.cs
  2. 2 1
      src/PixiEditor/Initialization/ClassicDesktopEntry.cs

+ 2 - 2
src/PixiEditor.Platform.MSStore/MicrosoftStorePlatform.cs

@@ -5,9 +5,9 @@ namespace PixiEditor.Platform.MSStore;
 
 public sealed class MicrosoftStorePlatform : IPlatform
 {
-    public MicrosoftStorePlatform(string extensionsPath, string apiUrl)
+    public MicrosoftStorePlatform(string extensionsPath, string apiUrl, string? apiKey)
     {
-        var provider = new PixiAuthIdentityProvider(apiUrl);
+        var provider = new PixiAuthIdentityProvider(apiUrl, apiKey);
         IdentityProvider = provider;
         AdditionalContentProvider = new MSAdditionalContentProvider(extensionsPath, provider);
     }

+ 2 - 1
src/PixiEditor/Initialization/ClassicDesktopEntry.cs

@@ -171,7 +171,8 @@ internal class ClassicDesktopEntry
 #if STEAM || DEV_STEAM
         return new PixiEditor.Platform.Steam.SteamPlatform();
 #elif MSIX || MSIX_DEBUG
-        return new PixiEditor.Platform.MSStore.MicrosoftStorePlatform();
+        return new PixiEditor.Platform.MSStore.MicrosoftStorePlatform(Paths.LocalExtensionPackagesPath, GetApiUrl(),
+            GetApiKey());
 #else
         return new PixiEditor.Platform.Standalone.StandalonePlatform(Paths.LocalExtensionPackagesPath, GetApiUrl(),
             GetApiKey());