romfs.h doesn't need to be included in the header, the only real dependency here is common's swap.h that needs to be included.
@@ -2,6 +2,10 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
+#include <cstddef>
+#include <cstring>
+
#include "common/assert.h"
#include "core/crypto/aes_util.h"
#include "core/file_sys/nca_patch.h"
@@ -5,10 +5,13 @@
#pragma once
#include <array>
+#include <memory>
#include <vector>
-#include <common/common_funcs.h>
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/swap.h"
#include "core/crypto/key_manager.h"
-#include "core/file_sys/romfs.h"
namespace FileSys {