|
From: Yoda-JM <yo...@us...> - 2010-04-11 11:22:22
|
Module: performous
Branch: master
Commit: 826eb5e6e1fca4aa343f5a28a63e32b816e2462b
Author: Vincent Le Ligeour <yo...@us...>
Date: Sun Apr 11 13:22:00 2010 +0200
Added some usefull debug
---
game/midifile.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/game/midifile.cc b/game/midifile.cc
index 54917d8..f70465c 100644
--- a/game/midifile.cc
+++ b/game/midifile.cc
@@ -26,6 +26,9 @@ class MidiStream {
*/
MidiStream(std::string const& file) {
std::ifstream ifs(file.c_str(), std::ios::binary);
+#if MIDI_DEBUG_LEVEL > 1
+ std::cout << "Opening file: " << file << std::endl;
+#endif
f << ifs.rdbuf();
f.exceptions(std::ios::failbit);
}
|