From fe967e6a04a0c345a5a6e8faeb33627bf61bf142 Mon Sep 17 00:00:00 2001 From: "LAPTOP-NV8MPI8C\\Yuvan Wickramasinghe" Date: Fri, 28 Mar 2025 10:51:18 -0700 Subject: [PATCH] Check for custom build properties in DoResolveConfigString. --- IDE/src/IDEApp.bf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index b0c15b7f..9a59a847 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -10942,6 +10942,13 @@ namespace IDE } case "BeefPath": newString = gApp.mInstallDir; + default: + // Check if any custom properties match the string. + if (CustomBuildProperties.Contains(replaceStr)) + { + newString = scope:ReplaceBlock String(); + newString.Append(CustomBuildProperties.Get(replaceStr)); + } } } @@ -11062,9 +11069,7 @@ namespace IDE String errorString = scope String(); if (!DoResolveConfigString(platformName, workspaceOptions, project, options, configString, errorString, outResult)) { - if (!CustomBuildProperties.Contains(errorString)) - OutputErrorLine("Invalid macro in {0}: {1}", errorContext, errorString); - + OutputErrorLine("Invalid macro in {0}: {1}", errorContext, errorString); return false; } return true;