Commit 6d5f1f18 authored by mercury233's avatar mercury233

run without pack database

parent e8ea030e
......@@ -326,19 +326,22 @@ public class Program : MonoBehaviour
}
}
fileInfos = (new DirectoryInfo("pack")).GetFiles();
for (int i = 0; i < fileInfos.Length; i++)
if (Directory.Exists("pack"))
{
if (fileInfos[i].Name.Length > 3)
fileInfos = (new DirectoryInfo("pack")).GetFiles();
for (int i = 0; i < fileInfos.Length; i++)
{
if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 3, 3) == ".db")
if (fileInfos[i].Name.Length > 3)
{
YGOSharp.PacksManager.initialize("pack/" + fileInfos[i].Name);
if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 3, 3) == ".db")
{
YGOSharp.PacksManager.initialize("pack/" + fileInfos[i].Name);
}
}
}
YGOSharp.PacksManager.initializeSec();
}
YGOSharp.PacksManager.initializeSec();
initializeALLservants();
loadResources();
......
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