mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 06:06:53 +01:00
Fix setting the trampolineID
This commit is contained in:
parent
cfc2d4197e
commit
592ecf8eed
@ -194,10 +194,9 @@ std::vector<PluginContainer> PluginManagement::loadPlugins(const std::vector<Plu
|
|||||||
DEBUG_FUNCTION_LINE("Failed to get meta information");
|
DEBUG_FUNCTION_LINE("Failed to get meta information");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
uint32_t trampolineID = 0;
|
||||||
for (auto &pluginContainer : plugins) {
|
for (auto &pluginContainer : plugins) {
|
||||||
uint32_t trampolineId = pluginContainer.getPluginInformation().getTrampolinId();
|
std::optional<PluginInformation> info = PluginInformationFactory::load(pluginContainer.getPluginData(), heapHandle, trampolin_data, trampolin_data_length, trampolineID++);
|
||||||
std::optional<PluginInformation> info = PluginInformationFactory::load(pluginContainer.getPluginData(), heapHandle, trampolin_data, trampolin_data_length, trampolineId);
|
|
||||||
|
|
||||||
if (!info) {
|
if (!info) {
|
||||||
DEBUG_FUNCTION_LINE("Failed to load Plugin %s", pluginContainer.getMetaInformation().getName().c_str());
|
DEBUG_FUNCTION_LINE("Failed to load Plugin %s", pluginContainer.getMetaInformation().getName().c_str());
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user