From 0b8618be5ba2211d69bb859e77d3f2afbd78a7dc Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Fri, 8 Mar 2024 21:27:14 +0100 Subject: [PATCH] include script id in json dump --- list-rooms.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/list-rooms.cpp b/list-rooms.cpp index 0624893..3fe9fe6 100644 --- a/list-rooms.cpp +++ b/list-rooms.cpp @@ -3113,13 +3113,15 @@ for (auto a: {0xb1e000,0x95c50d,0x95cfaa,0x95cb9a,0x9895c8,0x97cdc3}) { " \"y2\": %hhu,\n" " \"item\": %hu,\n" " \"address\": %hu,\n" - " \"bit\": %hhu\n" + " \"bit\": %hhu,\n" + " \"script\": %u\n" "}", sniff.mapid, sniff.x1, sniff.x2, sniff.y1, sniff.y2, sniff.item, sniff.check_flag.first, - sniff.check_flag.second + sniff.check_flag.second, + sniff.scriptid ); first = false; last_map_id = sniff.mapid;