Commit c0189560 authored by nanahira's avatar nanahira

revert

parent 84b05efe
......@@ -363,34 +363,34 @@ public class Program : MonoBehaviour
bool database_ok = false;
bool string_ok = false;
bool lflist_ok = false;
if (!database_ok && File.Exists("cards.cdb"))
{
database_ok = YGOSharp.CardsManager.initialize("cards.cdb");
}
if (!database_ok && File.Exists("cdb/cards.cdb"))
{
database_ok = YGOSharp.CardsManager.initialize("cdb/cards.cdb");
}
if (!string_ok && File.Exists("strings.conf"))
if (!database_ok && File.Exists("cards.cdb"))
{
string_ok = GameStringManager.initialize("strings.conf");
database_ok = YGOSharp.CardsManager.initialize("cards.cdb");
}
if (!string_ok && File.Exists("cdb/strings.conf"))
{
string_ok = GameStringManager.initialize("cdb/strings.conf");
}
if (File.Exists("expansions/lflist.conf")) // expansions lflist first
if (!string_ok && File.Exists("strings.conf"))
{
YGOSharp.BanlistManager.initialize("expansions/lflist.conf");
string_ok = GameStringManager.initialize("strings.conf");
}
if (!lflist_ok && File.Exists("lflist.conf"))
if (File.Exists("expansions/lflist.conf")) // expansions lflist first
{
lflist_ok = YGOSharp.BanlistManager.initialize("lflist.conf");
YGOSharp.BanlistManager.initialize("expansions/lflist.conf");
}
if (!lflist_ok && File.Exists("cdb/lflist.conf"))
{
lflist_ok = YGOSharp.BanlistManager.initialize("cdb/lflist.conf");
}
if (!lflist_ok && File.Exists("lflist.conf"))
{
lflist_ok = YGOSharp.BanlistManager.initialize("lflist.conf");
}
YGOSharp.BanlistManager.initializeComplete();
......
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