mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Moved ScanDirectoryTree() to FileUtil: this is a generic directory scanning function which might be useful in other places as well.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@650 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
|
||||
#include "Volume.h"
|
||||
#include "Common.h"
|
||||
#include <vector>
|
||||
#include "FileUtil.h"
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
@ -30,15 +30,6 @@
|
||||
namespace DiscIO
|
||||
{
|
||||
|
||||
struct FSTEntry
|
||||
{
|
||||
bool isDirectory;
|
||||
u32 size; // file length or number of entries from children
|
||||
std::string physicalName; // name on disk
|
||||
std::string virtualName; // name in FST names table
|
||||
std::vector<FSTEntry> children;
|
||||
};
|
||||
|
||||
class CVolumeDirectory
|
||||
: public IVolume
|
||||
{
|
||||
@ -81,10 +72,10 @@ class CVolumeDirectory
|
||||
// FST creation
|
||||
void WriteEntryData(u32& entryOffset, u8 type, u32 nameOffset, u64 dataOffset, u32 length);
|
||||
void WriteEntryName(u32& nameOffset, const std::string& name);
|
||||
void WriteEntry(const FSTEntry& entry, u32& fstOffset, u32& nameOffset, u64& dataOffset, u32 parentEntryNum);
|
||||
void WriteEntry(const File::FSTEntry& entry, u32& fstOffset, u32& nameOffset, u64& dataOffset, u32 parentEntryNum);
|
||||
|
||||
// returns number of entries found in _Directory
|
||||
u32 AddDirectoryEntries(const std::string& _Directory, FSTEntry& parentEntry);
|
||||
u32 AddDirectoryEntries(const std::string& _Directory, File::FSTEntry& parentEntry);
|
||||
|
||||
std::string m_rootDirectory;
|
||||
|
||||
@ -105,5 +96,5 @@ class CVolumeDirectory
|
||||
u8* m_FSTData;
|
||||
u8* m_diskHeader;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user