Fix base directory

https://github.com/intro-skipper/intro-skipper/issues/332
This commit is contained in:
rlauuzo 2024-10-07 07:44:07 +02:00 committed by GitHub
parent 9ddac5c93c
commit d3453ad937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,12 @@ public class Plugin : BasePlugin<PluginConfiguration>, 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);