From 3ea5e54d958dc9042b067bcef8a6c19aefcb5527 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Mon, 25 Apr 2011 06:26:19 +0000 Subject: [PATCH] Tweaks to allow the file usage statistics utils to run on psp. --- projects/mtg/include/utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/mtg/include/utils.h b/projects/mtg/include/utils.h index 867381aef..90e6254d4 100644 --- a/projects/mtg/include/utils.h +++ b/projects/mtg/include/utils.h @@ -27,12 +27,11 @@ #include #include -#if defined( WIN32 ) || defined (LINUX) +#include "DebugRoutines.h" + // enable this define to collect statistics on how many times an ifstream is created for a given file. //#define TRACK_FILE_USAGE_STATS -#endif - namespace wagic { @@ -44,6 +43,7 @@ namespace wagic std::ifstream(inFilename, inMode) { sFileMap[std::string(inFilename)] += 1; + DebugTrace("ifstream opened on file: " << inFilename); } static void Dump()