From b15e039d61a4c9ad34411b6b184d3c6f3c2bd845 Mon Sep 17 00:00:00 2001 From: Alpyne Date: Mon, 2 Nov 2020 14:58:30 -0800 Subject: [PATCH] [protocol] Revert using string_view for strings --- src/protocol/protocol.hjson | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/protocol/protocol.hjson b/src/protocol/protocol.hjson index 5e2fdcd..1b71dd1 100644 --- a/src/protocol/protocol.hjson +++ b/src/protocol/protocol.hjson @@ -20,7 +20,9 @@ } string: { - type: std::string_view + type: std::string + clientbound: {type: 'const std::string&'} + method: String // requires count: e.g. string[256] // generated C type will not be an array