Redid some things about callbacks, and made easy bugfixes

This commit is contained in:
Arthur Blot
2012-11-04 17:32:55 +01:00
parent 133e1394f8
commit 6f391515a6
7 changed files with 98 additions and 70 deletions
+2 -1
View File
@@ -230,7 +230,8 @@ ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(std::string path)
for (size_t i=0; i<e->children.size(); i++)
{
std::string n = e->children[i]->name;
if (path.compare(0, n.length(), n) == 0) //TODO : bad
std::string curPath = path.substr(0, path.find_first_of('/'));
if (curPath == n)
{
//yay we got it
ne = e->children[i];