Fix base directory
https://github.com/intro-skipper/intro-skipper/issues/332
This commit is contained in:
parent
9ddac5c93c
commit
d3453ad937
@ -75,6 +75,12 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|||||||
_creditsPath = Path.Join(applicationPaths.DataPath, pluginDirName, "credits.xml");
|
_creditsPath = Path.Join(applicationPaths.DataPath, pluginDirName, "credits.xml");
|
||||||
_ignorelistPath = Path.Join(applicationPaths.DataPath, pluginDirName, "ignorelist.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
|
// migrate from XMLSchema to DataContract
|
||||||
XmlSerializationHelper.MigrateXML(_introPath);
|
XmlSerializationHelper.MigrateXML(_introPath);
|
||||||
XmlSerializationHelper.MigrateXML(_creditsPath);
|
XmlSerializationHelper.MigrateXML(_creditsPath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user