|
From: Yoda-JM <yo...@us...> - 2010-10-07 23:13:41
|
Module: performous
Branch: master
Commit: 19d943858ea45fbb994cdab33a170bee552df1f9
Author: Vincent Le Ligeour <yo...@us...>
Date: Fri Oct 8 01:13:12 2010 +0200
Added debug message on broken tracks
---
game/songparser-ini.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/game/songparser-ini.cc b/game/songparser-ini.cc
index 8711c40..c63f4e7 100644
--- a/game/songparser-ini.cc
+++ b/game/songparser-ini.cc
@@ -174,6 +174,10 @@ void SongParser::iniParse() {
if (durCount <= 20) {
s.b0rkedTracks = true;
nm2.clear();
+ std::ostringstream oss;
+ oss << "Track " << name << " is broken in ";
+ oss << s.path << s.midifilename << std::endl;
+ std::clog << "songparser/warning: " << oss.str(); // More likely to be atomic when written as one string
s.instrumentTracks.erase(name);
}
} else {
|