Update boo

This commit is contained in:
Jack Andersen 2016-01-02 13:11:11 -10:00
parent 6ccded30f8
commit 7d91a6408e
2 changed files with 5 additions and 5 deletions

2
hecl/extern/libBoo vendored

@ -1 +1 @@
Subproject commit 6ee5e9011b82c37ad3cfe81828f3bc781f5a6942 Subproject commit 7eeebce37c84380a30a1e0c9c1286589e9ae629f

View File

@ -497,11 +497,11 @@ std::vector<std::pair<HECL::SystemString, std::string>> GetSystemLocations()
if (home) if (home)
{ {
ret.push_back(home); ret.push_back(NameFromPath(home));
std::string desktop(home); std::string desktop(home);
desktop += "/Desktop"; desktop += "/Desktop";
if (!HECL::Stat(desktop.c_str(), &theStat)) if (!HECL::Stat(desktop.c_str(), &theStat))
ret.push_back(std::move(desktop)); ret.push_back(NameFromPath(desktop));
} }
{ {
@ -521,7 +521,7 @@ std::vector<std::pair<HECL::SystemString, std::string>> GetSystemLocations()
std::string mntStr(mnt->mnt_dir); std::string mntStr(mnt->mnt_dir);
if (mntStr.size() > 1 && mntStr.back() == '/') if (mntStr.size() > 1 && mntStr.back() == '/')
mntStr.pop_back(); mntStr.pop_back();
ret.push_back(std::move(mntStr)); ret.push_back(NameFromPath(mntStr));
found = true; found = true;
} }
@ -530,7 +530,7 @@ std::vector<std::pair<HECL::SystemString, std::string>> GetSystemLocations()
#endif #endif
/* Fallback */ /* Fallback */
if (!found) if (!found)
ret.push_back("/"); ret.push_back(NameFromPath("/"));
} }
} }
#endif #endif