فهرست منبع

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 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;
         IdentityProvider = provider;
         AdditionalContentProvider = new MSAdditionalContentProvider(extensionsPath, provider);
         AdditionalContentProvider = new MSAdditionalContentProvider(extensionsPath, provider);
     }
     }

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

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