From 037e1f2ce8b63bf3272ff452e116f05469eb887b Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 3 May 2020 13:51:39 +0200 Subject: [PATCH] Fix calculating the size needed to store the plugins in memory. --- source/plugin/PluginInformationFactory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/plugin/PluginInformationFactory.cpp b/source/plugin/PluginInformationFactory.cpp index d87541b..435d1a1 100644 --- a/source/plugin/PluginInformationFactory.cpp +++ b/source/plugin/PluginInformationFactory.cpp @@ -64,6 +64,9 @@ std::optional PluginInformationFactory::load(const PluginData } else if ((address >= 0x10000000) && address < 0xC0000000) { data_size += sectionSize; } + if (psec->get_name().rfind(".wups.", 0) == 0) { + data_size += sectionSize; + } } }