|
From: Jaakko N. <jni...@us...> - 2009-11-13 20:39:08
|
Module: performous
Branch: dance
Commit: a465f0994a3473a20826db3a7f23913f5d808462
Author: Jaakko Nikkola <jaa...@tk...>
Date: Fri Nov 13 22:37:58 2009 +0200
Now finds also files in format .sm
---
game/songs.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/songs.cc b/game/songs.cc
index f98ce87..f0a30c4 100644
--- a/game/songs.cc
+++ b/game/songs.cc
@@ -59,7 +59,7 @@ void Songs::reload_internal(fs::path const& parent) {
namespace fs = fs;
if (std::distance(parent.begin(), parent.end()) > 20) { std::cout << ">>> Not scanning: " << parent.string() << " (maximum depth reached, possibly due to cyclic symlinks)" << std::endl; return; }
try {
- boost::regex expression("(.*\\.txt|^song\\.ini)$", boost::regex_constants::icase);
+ boost::regex expression("(.*\\.txt|^song\\.ini|.*\\.sm)$", boost::regex_constants::icase);
boost::cmatch match;
for (fs::directory_iterator dirIt(parent), dirEnd; m_loading && dirIt != dirEnd; ++dirIt) {
fs::path p = dirIt->path();
|