From 3a26227ed332326187216016e82399da8587aae5 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Fri, 15 Nov 2024 04:45:06 +0500 Subject: [PATCH] fix(skyrim-platform): update SkyrimPlatform.cpp (#2218) --- .../src/platform_se/skyrim_platform/SkyrimPlatform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skyrim-platform/src/platform_se/skyrim_platform/SkyrimPlatform.cpp b/skyrim-platform/src/platform_se/skyrim_platform/SkyrimPlatform.cpp index beebedd547..8da8007a30 100644 --- a/skyrim-platform/src/platform_se/skyrim_platform/SkyrimPlatform.cpp +++ b/skyrim-platform/src/platform_se/skyrim_platform/SkyrimPlatform.cpp @@ -195,9 +195,10 @@ class CommonExecutionListener : public TickListener void* onLoadPluginFileCallback = nullptr; void* self = nullptr; const char* pluginPathUtf8 = nullptr; + const char* scriptSrc = nullptr; }; #pragma pack(pop) - static_assert(sizeof(Msg) == 24); + static_assert(sizeof(Msg) == 32); auto s = path.u8string(); std::string pluginPathUtf8(s.begin(), s.end()); @@ -206,6 +207,7 @@ class CommonExecutionListener : public TickListener msg.onLoadPluginFileCallback = OnLoadPluginFileCallback; msg.self = this; msg.pluginPathUtf8 = pluginPathUtf8.data(); + msg.scriptSrc = scriptSrc.data(); tmpPatchedPluginSources = std::nullopt;