mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-01-20 09:20:13 +00:00
33 lines
566 B
C++
33 lines
566 B
C++
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
class FsDirIterator
|
|
{
|
|
private:
|
|
FsDir m_dir;
|
|
FsDirectoryEntry entry;
|
|
s64 count;
|
|
|
|
public:
|
|
FsDirIterator() = default;
|
|
FsDirIterator(FsDir dir);
|
|
|
|
~FsDirIterator() = default;
|
|
|
|
const FsDirectoryEntry& operator*() const;
|
|
const FsDirectoryEntry* operator->() const;
|
|
FsDirIterator& operator++();
|
|
|
|
bool operator!=(const FsDirIterator& rhs);
|
|
};
|
|
|
|
inline FsDirIterator begin(FsDirIterator iter) noexcept
|
|
{
|
|
return iter;
|
|
}
|
|
|
|
inline FsDirIterator end(FsDirIterator) noexcept
|
|
{
|
|
return FsDirIterator();
|
|
}
|