1
0
mirror of synced 2024-09-25 03:58:27 +02:00

sys: Fixed various issues related to plugins

This commit is contained in:
WerWolv 2021-05-29 21:51:00 +02:00
parent 00236de741
commit c42bd6008a
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ namespace hex {
if (this->m_getPluginNameFunction != nullptr)
return this->m_getPluginNameFunction();
else
return hex::format("Unknown Plugin @ 0x{0:016X}", this->m_handle);
return hex::format("Unknown Plugin @ 0x{0:016X}", reinterpret_cast<intptr_t>(this->m_handle));
}
std::string Plugin::getPluginAuthor() const {

View File

@ -152,15 +152,15 @@ namespace hex::init {
{ "Creating directories...", createDirectories },
{ "Loading default views...", loadDefaultViews },
{ "Loading plugins...", loadPlugins },
{ "Loading settings...", loadSettings }
{ "Loading settings...", loadSettings },
};
}
std::vector<Task> getExitTasks() {
return {
{ "Unloading plugins...", unloadPlugins },
{ "Cleaning up views...", deleteViews },
{ "Saving settings...", storeSettings },
{ "Cleaning up views...", deleteViews }
{ "Unloading plugins...", unloadPlugins },
};
}