Make the directory test pass

The test for this might need to be extended to see what happens with
multiple sub folders and large files, and i do question the expected
size of '..'
This commit is contained in:
kev :)
2012-11-14 21:24:57 +00:00
parent 1e854170e4
commit 3764f48bee
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -289,7 +289,10 @@ std::vector<PSPFileInfo> DirectoryFileSystem::GetDirListing(std::string path)
else
entry.type = FILETYPE_NORMAL;
entry.size = findData.nFileSizeLow | ((u64)findData.nFileSizeHigh<<32);
if (!strcmp(findData.cFileName, "..") )// TODO: is this just for .. or all sub directories? Need to add a directory to the test to find out. Also why so different than the old test results?
entry.size = 4096;
else
entry.size = findData.nFileSizeLow | ((u64)findData.nFileSizeHigh<<32);
entry.name = findData.cFileName;
myVector.push_back(entry);