Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/desmume/src/frontend/windows/fsnitroView.cpp b/desmume/src/frontend/windows/fsnitroView.cpp
- index b12147a..939aef2 100644
- --- a/desmume/src/frontend/windows/fsnitroView.cpp
- +++ b/desmume/src/frontend/windows/fsnitroView.cpp
- @@ -168,12 +168,19 @@ BOOL CALLBACK ViewFSNitroProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
- item.item.lParam = 0xFFFE;
- HTREEITEM hOverlay = TreeView_InsertItem(tree, &item);
- + std::vector<std::string> dirPaths;
- + dirPaths.resize(numDirs + 1);
- + dirPaths[0] = "";
- +
- for (u32 i = 1; i < numDirs; i++)
- {
- u16 id = (i | 0xF000);
- u16 parent = fs->getDirParrentByID(id) & 0x0FFF;
- string name = fs->getDirNameByID(id);
- +
- + dirPaths[i] = dirPaths[parent] + "/" + name;
- +
- //printf("%s\n", name.c_str());
- TVINSERTSTRUCT item;
- memset(&item, 0, sizeof(item));
- @@ -213,6 +220,9 @@ BOOL CALLBACK ViewFSNitroProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
- item.hParent = dirs[parent];
- }
- + string path = (fs->isOverlay(i) ? std::string("/overlay") : dirPaths[parent]) + "/" + name;
- + printf("%s %u %u\n", path.c_str(), fs->getStartAddrById(i), fs->getFileSizeById(i));
- +
- item.item.mask = TVIF_TEXT | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM;
- item.item.pszText = (LPSTR)name.c_str();
- item.item.iImage = iFileBinary;
Add Comment
Please, Sign In to add comment