mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 15:31:18 +12:00
Fixes for titles in NUS format
Symlinks were not handled correctly
This commit is contained in:
parent
29c823fa1f
commit
db53f3b980
5 changed files with 28 additions and 17 deletions
|
@ -11,7 +11,13 @@ private:
|
|||
struct FSTDirectoryIterator
|
||||
{
|
||||
friend class FSTVolume;
|
||||
|
||||
const FSTFileHandle& GetDirHandle() const
|
||||
{
|
||||
return dirHandle;
|
||||
}
|
||||
private:
|
||||
FSTFileHandle dirHandle;
|
||||
uint32 startIndex;
|
||||
uint32 endIndex;
|
||||
uint32 currentIndex;
|
||||
|
@ -43,15 +49,15 @@ public:
|
|||
bool OpenFile(std::string_view path, FSTFileHandle& fileHandleOut, bool openOnlyFiles = false);
|
||||
|
||||
// file and directory functions
|
||||
bool IsDirectory(FSTFileHandle& fileHandle) const;
|
||||
bool IsFile(FSTFileHandle& fileHandle) const;
|
||||
bool HasLinkFlag(FSTFileHandle& fileHandle) const;
|
||||
bool IsDirectory(const FSTFileHandle& fileHandle) const;
|
||||
bool IsFile(const FSTFileHandle& fileHandle) const;
|
||||
bool HasLinkFlag(const FSTFileHandle& fileHandle) const;
|
||||
|
||||
std::string_view GetName(FSTFileHandle& fileHandle) const;
|
||||
std::string GetPath(FSTFileHandle& fileHandle) const;
|
||||
std::string_view GetName(const FSTFileHandle& fileHandle) const;
|
||||
std::string GetPath(const FSTFileHandle& fileHandle) const;
|
||||
|
||||
// file functions
|
||||
uint32 GetFileSize(FSTFileHandle& fileHandle) const;
|
||||
uint32 GetFileSize(const FSTFileHandle& fileHandle) const;
|
||||
uint32 ReadFile(FSTFileHandle& fileHandle, uint32 offset, uint32 size, void* dataOut);
|
||||
|
||||
// directory iterator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue