Added some traces in the primitives and sets loading.

This commit is contained in:
xawotihs
2013-10-30 20:50:34 +01:00
parent 8013d09e4f
commit 74280aef1d

View File

@@ -342,7 +342,6 @@ void MTGAllCards::loadFolder(const string& folder, const string& filename )
if (!files.size()) if (!files.size())
{ {
DebugTrace("loadPrimitives:WARNING:Primitives folder is missing");
return; return;
} }
@@ -382,8 +381,12 @@ int MTGAllCards::load(const char * config_file, const char * set_name, int)
std::string contents; std::string contents;
izfstream file; izfstream file;
if (!JFileSystem::GetInstance()->openForRead(file, config_file)) if (!JFileSystem::GetInstance()->openForRead(file, config_file))
{
DebugTrace("MTGAllCards::load: error loading: " << config_file);
return total_cards; return total_cards;
}
DebugTrace("MTGAllCards::load: loading: " << config_file);
string s; string s;
while (getline(file,s)) while (getline(file,s))