1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Check for custom build properties in DoResolveConfigString.

This commit is contained in:
LAPTOP-NV8MPI8C\Yuvan Wickramasinghe 2025-03-28 10:51:18 -07:00
parent d929e1bfe9
commit fe967e6a04
No known key found for this signature in database

View file

@ -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;