Commit d78f6224 authored by mercury233's avatar mercury233

support ygopro2 cdb path

parent d7d768ee
......@@ -52,6 +52,9 @@ namespace WindBot
if (!File.Exists(absolutePath))
// In case windbot is placed in a folder under ygopro folder
absolutePath = Path.GetFullPath("../" + databasePath);
if (!File.Exists(absolutePath))
// In case windbot is placed in a folder under ygopro2 folder
absolutePath = Path.GetFullPath("../cdb/" + databasePath);
if (!File.Exists(absolutePath))
{
Logger.WriteErrorLine("Can't find cards database file.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment