Feature(NSI): support using NSI-images as icon, test on shops

This commit is contained in:
Pieter Vander Vennet 2025-01-10 14:09:54 +01:00
parent 80192f003a
commit b913ea867f
14 changed files with 1173790 additions and 71 deletions

View file

@ -110,13 +110,11 @@ export class DoesImageExist extends DesugaringStep<string> {
}
if (!this._knownImagePaths.has(image)) {
if (this.doesPathExist === undefined) {
if (this.doesPathExist === undefined || image.indexOf("nsi/logos/") >= 0) {
// pass
} else if (!this.doesPathExist(image) ) {
context.err(
`Image with path ${image} not found or not attributed; it is used in ${context}`
)
} else if (!this.doesPathExist(image)) {
context.err(
`Image with path ${image} does not exist.\n Check for typo's and missing directories in the path.`
`Image with path ${image} does not exist.\n Check for typo's and missing directories in the path. `
)
} else {
context.err(