Commit afc5ce74 authored by nanahira's avatar nanahira

Revert "added try in database loading"

This reverts commit 689d2bd2.
parent 14d0780e
......@@ -362,24 +362,11 @@ public class Program : MonoBehaviour
Config.initialize("config/config.conf");
if (File.Exists("cdb/cards.cdb")) //downloaded datas
{
try
{
YGOSharp.CardsManager.initialize("cdb/cards.cdb");
}
catch (System.Exception e) //broken file
{
File.Delete("cdb/cards.cdb"); //will be downloaded again later
}
YGOSharp.CardsManager.initialize("cdb/cards.cdb");
}
if (File.Exists("cards.cdb")) //default datas
{
try
{
YGOSharp.CardsManager.initialize("cards.cdb");
}
catch (System.Exception e) //broken file
{
}
YGOSharp.CardsManager.initialize("cards.cdb");
}
if (File.Exists("cdb/strings.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