#pragma once #include #include #include #include "helpers.hpp" namespace RomFS { struct RomFSNode { std::u16string name; // The file/directory offset relative to the start of the RomFS u64 metadataOffset = 0; u64 dataOffset = 0; u64 dataSize = 0; bool isDirectory = false; std::vector> directories; std::vector> files; }; std::unique_ptr parseRomFSTree(uintptr_t romFS, u64 romFSSize); } // namespace RomFS