mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CREATE_PROJECT: Fix crash when all engines disabled
This commit is contained in:
@@ -1887,6 +1887,9 @@ void ProjectProvider::addFilesToProject(const std::string &dir, std::ostream &pr
|
||||
const std::string &pchIncludeRoot, const StringList &pchDirs, const StringList &pchExclude,
|
||||
const std::string &filePrefix) {
|
||||
FileNode *files = scanFiles(dir, includeList, excludeList);
|
||||
if (files == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
writeFileListToProject(*files, projectFile, 0, std::string(), filePrefix + '/', pchIncludeRoot, pchDirs, pchExclude);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user