Commit a2d62db0 authored by nanahira's avatar nanahira

no loading default data if downloaded contents exists

parent 5e7128b3
......@@ -360,31 +360,33 @@ public class Program : MonoBehaviour
InterString.initialize("config/translation.conf");
GameTextureManager.initialize();
Config.initialize("config/config.conf");
if (File.Exists("cdb/cards.cdb"))
if (File.Exists("cdb/cards.cdb")) //downloaded datas
{
YGOSharp.CardsManager.initialize("cdb/cards.cdb");
}
if (File.Exists("cdb/strings.conf"))
else if (File.Exists("cards.cdb")) //default datas
{
GameStringManager.initialize("cdb/strings.conf");
YGOSharp.CardsManager.initialize("cards.cdb");
}
if (File.Exists("cdb/lflist.conf"))
if (File.Exists("cdb/strings.conf"))
{
YGOSharp.BanlistManager.initialize("cdb/lflist.conf");
GameStringManager.initialize("cdb/strings.conf");
}
if (File.Exists("strings.conf"))
else if (File.Exists("strings.conf"))
{
GameStringManager.initialize("strings.conf");//YGOMobile Paths
GameStringManager.initialize("strings.conf");
}
if (File.Exists("lflist.conf"))
if (File.Exists("cdb/lflist.conf"))
{
YGOSharp.BanlistManager.initialize("lflist.conf");//YGOMobile Paths
YGOSharp.BanlistManager.initialize("cdb/lflist.conf");
}
if (File.Exists("cards.cdb"))
else if (File.Exists("lflist.conf"))
{
YGOSharp.CardsManager.initialize("cards.cdb");//YGOMobile Paths
YGOSharp.BanlistManager.initialize("lflist.conf");
}
/*
/* Expansions folder is not currently used, so not loading.
if (File.Exists("expansions/lflist.conf"))
{
YGOSharp.BanlistManager.initialize("expansions/lflist.conf");
......
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