From cc015ed40d85bb7287c8e707dc3994637e9131ec Mon Sep 17 00:00:00 2001 From: SupSuper Date: Tue, 2 Feb 2021 09:58:50 +0000 Subject: [PATCH] CREATE_PROJECT: Don't exclude header files We can't accurately determine which header belongs to which object, so leave them in. They don't affect the compilation anyway. --- devtools/create_project/create_project.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp index 6ab5e0daeeb..d97d60d79d6 100644 --- a/devtools/create_project/create_project.cpp +++ b/devtools/create_project/create_project.cpp @@ -1479,12 +1479,12 @@ FileNode *scanFiles(const std::string &dir, const StringList &includeList, const continue; } - if (isInList(dir, i->name, excludeList)) - continue; - std::string name, ext; splitFilename(i->name, name, ext); + if (ext != "h" && isInList(dir, i->name, excludeList)) + continue; + if (!isInList(dir, i->name, includeList)) continue;