~lattis/muon

1c3c721ae015cd62a997f68c4367762d68eea376 — Stone Tickle 8 months ago 314b4c8
return disabler from find_program(required: false)

if disabler: true
1 files changed, 6 insertions(+), 2 deletions(-)

M src/functions/kernel.c
M src/functions/kernel.c => src/functions/kernel.c +6 -2
@@ 718,8 718,12 @@ func_find_program(struct workspace *wk, obj _, uint32_t args_node, obj *res)
	}

	if (requirement == requirement_skip) {
		make_obj(wk, res, obj_external_program);
		get_obj_external_program(wk, *res)->found = false;
		if (akw[kw_disabler].set && get_obj_bool(wk, akw[kw_disabler].val)) {
			*res = disabler_id;
		} else {
			make_obj(wk, res, obj_external_program);
			get_obj_external_program(wk, *res)->found = false;
		}
		return true;
	}