Commit 60d35c1e authored by mercury233's avatar mercury233

revert directory

parent 592eaf86
......@@ -313,12 +313,47 @@ public class Program : MonoBehaviour
}
}
fileInfos = (new DirectoryInfo("data")).GetFiles();
foreach (FileInfo file in fileInfos)
if (Directory.Exists("cdb"))
{
fileInfos = (new DirectoryInfo("cdb")).GetFiles();
foreach (FileInfo file in fileInfos)
{
if (file.Name.ToLower().EndsWith(".conf"))
{
GameStringManager.initialize("cdb/" + file.Name);
}
if (file.Name.ToLower().EndsWith(".cdb"))
{
YGOSharp.CardsManager.initialize("cdb/" + file.Name);
}
}
}
if (Directory.Exists("diy"))
{
fileInfos = (new DirectoryInfo("diy")).GetFiles();
foreach (FileInfo file in fileInfos)
{
if (file.Name.ToLower().EndsWith(".conf"))
{
GameStringManager.initialize("diy/" + file.Name);
}
if (file.Name.ToLower().EndsWith(".cdb"))
{
YGOSharp.CardsManager.initialize("diy/" + file.Name);
}
}
}
if (Directory.Exists("data"))
{
if (file.Name.ToLower().EndsWith(".zip"))
fileInfos = (new DirectoryInfo("data")).GetFiles();
foreach (FileInfo file in fileInfos)
{
GameZipManager.Zips.Add(new Ionic.Zip.ZipFile("data/" + file.Name));
if (file.Name.ToLower().EndsWith(".zip"))
{
GameZipManager.Zips.Add(new Ionic.Zip.ZipFile("data/" + file.Name));
}
}
}
......@@ -346,9 +381,8 @@ public class Program : MonoBehaviour
}
}
GameStringManager.initialize("data/strings.conf");
YGOSharp.CardsManager.initialize("data/cards.cdb");
YGOSharp.BanlistManager.initialize("data/lflist.conf");
GameStringManager.initialize("config/strings.conf");
YGOSharp.BanlistManager.initialize("config/lflist.conf");
if (Directory.Exists("pack"))
{
......
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