diff --git a/backends/platform/dc/selector.cpp b/backends/platform/dc/selector.cpp index 7b558bad9dd..53f3dda0858 100644 --- a/backends/platform/dc/selector.cpp +++ b/backends/platform/dc/selector.cpp @@ -132,9 +132,7 @@ static int findGames(Game *games, int max, bool use_ini) const Common::ConfigManager::DomainMap &game_domains = ConfMan.getGameDomains(); for(Common::ConfigManager::DomainMap::const_iterator i = game_domains.begin(); curr_game < max && i != game_domains.end(); i++) { - Common::String path = (*i)._value["path"]; - if (path.size() && path.lastChar() != '/') - path += "/"; + Common::Path path(Common::Path::fromConfig((*i)._value["path"])); int j; for (j=0; jisDirectory()) { if (curr_dir >= max) break; - strncpy(plugin_dirs[curr_dir].dir, (*entry).getPath().c_str(), 256); + strncpy(plugin_dirs[curr_dir].dir, (*entry).getPath().toString().c_str(), 256); strncpy(plugin_dirs[curr_dir].text, (*entry).getName().c_str(), 256); plugin_dirs[curr_dir].icon.load(NULL, 0, 0); curr_dir++;