From 835abcacdcedb5030cd2a2fe7dcb9ff26886a3e1 Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 27 Aug 2019 10:17:13 +1000 Subject: [PATCH] launcher: pack plugin config structs to ensure matching alignments --- source-code/source/plugins/DivaSound/src/PluginConfigApi.h | 2 ++ source-code/source/plugins/Launcher/PluginConfigApi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source-code/source/plugins/DivaSound/src/PluginConfigApi.h b/source-code/source/plugins/DivaSound/src/PluginConfigApi.h index f9535c8..f053d5c 100644 --- a/source-code/source/plugins/DivaSound/src/PluginConfigApi.h +++ b/source-code/source/plugins/DivaSound/src/PluginConfigApi.h @@ -46,6 +46,7 @@ public: namespace PluginConfig { +#pragma pack(push, 1) enum ConfigType { CONFIG_BOOLEAN, CONFIG_NUMERIC, @@ -151,4 +152,5 @@ namespace PluginConfig int len; PluginConfigOption* options; }; +#pragma pack(pop) } \ No newline at end of file diff --git a/source-code/source/plugins/Launcher/PluginConfigApi.h b/source-code/source/plugins/Launcher/PluginConfigApi.h index f9535c8..f053d5c 100644 --- a/source-code/source/plugins/Launcher/PluginConfigApi.h +++ b/source-code/source/plugins/Launcher/PluginConfigApi.h @@ -46,6 +46,7 @@ public: namespace PluginConfig { +#pragma pack(push, 1) enum ConfigType { CONFIG_BOOLEAN, CONFIG_NUMERIC, @@ -151,4 +152,5 @@ namespace PluginConfig int len; PluginConfigOption* options; }; +#pragma pack(pop) } \ No newline at end of file