Skip to content

Commit

Permalink
fix(ext): missing extension.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Oct 27, 2024
1 parent 6c050b4 commit dd57414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/PlayniteWebPlugin/src/PlayniteWeb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
Expand Down Expand Up @@ -59,7 +60,7 @@ public class PlayniteWeb : GenericPlugin

public PlayniteWeb(IPlayniteAPI api) : base(api)
{
var extensionInfoYaml = System.IO.File.ReadAllText("extension.yaml");
var extensionInfoYaml = System.IO.File.ReadAllText(Path.Combine(api.Paths.ExtensionsDataPath, "extension.yaml"));
var extension = Serialization.FromYaml<Dictionary<string, string>>(extensionInfoYaml);
_version = extension["Version"];

Expand Down

0 comments on commit dd57414

Please sign in to comment.