|
From: Markus R. <god...@us...> - 2009-11-12 12:49:59
|
Module: performous
Branch: master
Commit: 7da4f8864081ce4b74128dced6f6657de9f44cf0
Author: Markus Raab <un...@ma...>
Date: Wed Nov 11 18:43:01 2009 +0100
Something like that for path
---
game/players.cc | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/game/players.cc b/game/players.cc
index 683a1e6..f840ded 100644
--- a/game/players.cc
+++ b/game/players.cc
@@ -85,20 +85,7 @@ void Players::addPlayer (std::string const& name, std::string const& picture, in
if (pi.picture != "") // no picture, so don't search path
{
- /* TODO: add again check for pictures
- ConfigItem::StringList const& sl = config["system/path_pictures"].sl();
- typedef std::set<fs::path> dirs;
- dirs d;
- std::transform(sl.begin(), sl.end(), std::inserter(d, d.end()), pathMangle);
-
- for (dirs::const_iterator it = d.begin(); it != d.end(); ++it) {
- if (!fs::exists(*it)) continue; // as long as it does not exists
- pi.path = it->file_string();
- }
-
- if (pi.path != "") std::cout << "Found " << pi.picture << " in " << pi.path << std::endl;
- else std::cout << "Not found " << pi.picture << std::endl;
- */
+ // pi.picture = getXdgPath(fs::path("pictures") / pi.picture);
}
m_dirty = true;
|