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.
This commit is contained in:
Xaymar
2025-08-08 01:24:10 +02:00
parent 6f752c2afc
commit 4d7978a786
+6
View File
@@ -930,7 +930,13 @@ enum VST_HOST_OPCODE {
/** @sa VST_HOST_OPCODE_25 */ /** @sa VST_HOST_OPCODE_25 */
VST_HOST_OPCODE_SUPPORTS = 0x25, 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, VST_HOST_OPCODE_26 = 0x26,
/** @sa VST_HOST_OPCODE_26 */
VST_HOST_OPCODE_LANGUAGE = 0x26,
/** Crash the host if p_ptr isn't nullptr. */ /** Crash the host if p_ptr isn't nullptr. */
VST_HOST_OPCODE_27 = 0x27, VST_HOST_OPCODE_27 = 0x27,