From d3453ad937cc10c2a54c98cb504704eb1ff69264 Mon Sep 17 00:00:00 2001 From: rlauuzo <46294892+rlauuzo@users.noreply.github.com> Date: Mon, 7 Oct 2024 07:44:07 +0200 Subject: [PATCH] Fix base directory https://github.com/intro-skipper/intro-skipper/issues/332 --- ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index 1c3f449..21981d1 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -75,6 +75,12 @@ public class Plugin : BasePlugin, IHasWebPages _creditsPath = Path.Join(applicationPaths.DataPath, pluginDirName, "credits.xml"); _ignorelistPath = Path.Join(applicationPaths.DataPath, pluginDirName, "ignorelist.xml"); + // Create the base & cache directories (if needed). + if (!Directory.Exists(FingerprintCachePath)) + { + Directory.CreateDirectory(FingerprintCachePath); + } + // migrate from XMLSchema to DataContract XmlSerializationHelper.MigrateXML(_introPath); XmlSerializationHelper.MigrateXML(_creditsPath);