From 74280aef1daadb08086e2aca7eaaf5bfbfba5e7d Mon Sep 17 00:00:00 2001 From: xawotihs Date: Wed, 30 Oct 2013 20:50:34 +0100 Subject: [PATCH] Added some traces in the primitives and sets loading. --- projects/mtg/src/MTGDeck.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGDeck.cpp b/projects/mtg/src/MTGDeck.cpp index d44d04f44..a554c03a1 100644 --- a/projects/mtg/src/MTGDeck.cpp +++ b/projects/mtg/src/MTGDeck.cpp @@ -342,7 +342,6 @@ void MTGAllCards::loadFolder(const string& folder, const string& filename ) if (!files.size()) { - DebugTrace("loadPrimitives:WARNING:Primitives folder is missing"); return; } @@ -382,8 +381,12 @@ int MTGAllCards::load(const char * config_file, const char * set_name, int) std::string contents; izfstream file; if (!JFileSystem::GetInstance()->openForRead(file, config_file)) + { + DebugTrace("MTGAllCards::load: error loading: " << config_file); return total_cards; + } + DebugTrace("MTGAllCards::load: loading: " << config_file); string s; while (getline(file,s))