mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-28 15:44:15 +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");
|
||||
}
|
||||
}
|
||||
uint32_t trampolineID = 0;
|
||||
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) {
|
||||
DEBUG_FUNCTION_LINE("Failed to load Plugin %s", pluginContainer.getMetaInformation().getName().c_str());
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user