Made filesystem viewer to show folders and subfolders right. Only bug remaining (supposed to be simple) is that after the first folder recursion the searching stops.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@826 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2008-10-10 13:23:10 +00:00
parent 08984104d7
commit 15c3ea50fc
2 changed files with 44 additions and 6 deletions

View File

@ -25,6 +25,8 @@
#include <wx/treectrl.h>
#include <wx/gbsizer.h>
#include <string>
#include "Filesystem.h"
#undef FILESYSTEM_VIEWER_STYLE
#define FILESYSTEM_VIEWER_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxCLOSE_BOX
@ -132,6 +134,11 @@ class CFilesystemViewer : public wxDialog
void OnExtractFile(wxCommandEvent& event);
void OnReplaceFile(wxCommandEvent& event);
void OnRenameFile(wxCommandEvent& event);
typedef std::vector<const DiscIO::SFileInfo *>::iterator fileIter;
void CreateDirectoryTree(wxTreeItemId& parent,fileIter& begin,
fileIter& iterPos, char *directory);
};
#endif