From 64ddb953dbf7ee0f36ce550d374abbe90ebc03a1 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Fri, 8 Aug 2025 01:24:10 +0200 Subject: [PATCH] Host 0x27: Query current host language Seems to use a custom format instead of something like ISO 639 which predates VST 2.x by quite a long time. Reinventing the wheel goes back a long time it seems. --- vst.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vst.h b/vst.h index 5cb4d97..d0cd096 100644 --- a/vst.h +++ b/vst.h @@ -773,7 +773,13 @@ enum VST_HOST_OPCODE { /** @sa VST_HOST_OPCODE_25 */ VST_HOST_OPCODE_SUPPORTS = 0x25, + /** What language is the host in? + * + * @return 1 if english, 2 if german. more possible? + */ VST_HOST_OPCODE_26 = 0x26, + /** @sa VST_HOST_OPCODE_26 */ + VST_HOST_OPCODE_LANGUAGE = 0x26, /** Crash the host if p_ptr isn't nullptr. */ VST_HOST_OPCODE_27 = 0x27,