#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 offset = 0; u64 size = 0; bool isDirectory = false; std::vector> directories; std::vector> files; }; std::unique_ptr parseRomFSTree(uintptr_t romFS, u64 romFSSize); } // namespace RomFS