[Scummvm-git-logs] scummvm master -> a5c6d43d59084e3ddc1c59557e53b3038c5180b7

sluicebox noreply at scummvm.org
Sun Dec 31 10:42:46 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a5c6d43d59 CREATE_PROJECT: Fix crash when all engines disabled


Commit: a5c6d43d59084e3ddc1c59557e53b3038c5180b7
    https://github.com/scummvm/scummvm/commit/a5c6d43d59084e3ddc1c59557e53b3038c5180b7
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-12-31T02:41:35-08:00

Commit Message:
CREATE_PROJECT: Fix crash when all engines disabled

Changed paths:
    devtools/create_project/create_project.cpp


diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 0a2f6769002..193f3e3d78e 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -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);
 




More information about the Scummvm-git-logs mailing list