From 2ef85c9bf6a8bf0131438ba26a80a5ee50c6e049 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Wed, 19 Sep 2007 19:42:10 +0000 Subject: displayName() -> getDisplayName() path() -> getPath() listDir() -> getChildren() svn-id: r28971 --- backends/platform/dc/selector.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backends/platform/dc/selector.cpp b/backends/platform/dc/selector.cpp index a734a9e13e..4b9b904abb 100644 --- a/backends/platform/dc/selector.cpp +++ b/backends/platform/dc/selector.cpp @@ -160,8 +160,8 @@ static void detectGames(FSList &files, GameList &candidates) static bool isIcon(const FilesystemNode &entry) { - int l = entry.displayName().size(); - if (l>4 && !strcasecmp(entry.displayName().c_str()+l-4, ".ICO")) + int l = entry.getDisplayName().size(); + if (l>4 && !strcasecmp(entry.getDisplayName().c_str()+l-4, ".ICO")) return true; else return false; @@ -207,22 +207,22 @@ static int findGames(Game *games, int max) int curr_game = 0, curr_dir = 0, num_dirs = 1; dirs[0].node = FilesystemNode(""); while (curr_game < max && curr_dir < num_dirs) { - strncpy(dirs[curr_dir].name, dirs[curr_dir].node.path().c_str(), 252); + strncpy(dirs[curr_dir].name, dirs[curr_dir].node.getPath().c_str(), 252); dirs[curr_dir].name[251] = '\0'; dirs[curr_dir].deficon[0] = '\0'; FSList files, fslist; - dirs[curr_dir++].node.listDir(fslist, FilesystemNode::kListAll); + dirs[curr_dir++].node.getChildren(fslist, FilesystemNode::kListAll); for (FSList::const_iterator entry = fslist.begin(); entry != fslist.end(); ++entry) { if (entry->isDirectory()) { - if (num_dirs < MAX_DIR && strcasecmp(entry->displayName().c_str(), + if (num_dirs < MAX_DIR && strcasecmp(entry->getDisplayName().c_str(), "install")) { dirs[num_dirs].node = *entry; num_dirs++; } } else if (isIcon(*entry)) - strcpy(dirs[curr_dir-1].deficon, entry->displayName().c_str()); + strcpy(dirs[curr_dir-1].deficon, entry->getDisplayName().c_str()); else files.push_back(*entry); } -- cgit v1.2.3