From c1f21665c7010c70b87f79e1b81dc7f2564f26c9 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 13 Feb 2024 05:22:07 +0000 Subject: utility: newly added --config, now producing compatible --config output. --- src/driver/slbt_driver_ctx.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/driver/slbt_driver_ctx.c') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index bfb2206..a6e93d0 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -493,6 +493,10 @@ int slbt_get_driver_ctx( cctx.drvflags |= SLBT_DRIVER_INFO; break; + case TAG_CONFIG: + cctx.drvflags |= SLBT_DRIVER_OUTPUT_CONFIG; + break; + case TAG_DUMPMACHINE: cctx.drvflags |= SLBT_DRIVER_OUTPUT_MACHINE; break; @@ -773,6 +777,10 @@ int slbt_get_driver_ctx( cctx.output = 0; } + /* config mode */ + if (cctx.drvflags & SLBT_DRIVER_OUTPUT_CONFIG) + cctx.mode = SLBT_MODE_CONFIG; + /* info mode */ if (cctx.drvflags & (SLBT_DRIVER_INFO | SLBT_DRIVER_FEATURES)) cctx.mode = SLBT_MODE_INFO; -- cgit v1.2.3