mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
feat: Added Achievements (#1230)
This PR adds Achievements to ImHex that serve as both a guide and a fun way to learn more about ImHex and reverse engineering
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <hex/api/theme_manager.hpp>
|
||||
#include <hex/api/plugin_manager.hpp>
|
||||
#include <hex/api/layout_manager.hpp>
|
||||
#include <hex/api/achievement_manager.hpp>
|
||||
|
||||
#include <hex/ui/view.hpp>
|
||||
#include <hex/ui/popup.hpp>
|
||||
@@ -402,6 +403,8 @@ namespace hex::init {
|
||||
|
||||
ThemeManager::reset();
|
||||
|
||||
AchievementManager::getAchievements().clear();
|
||||
|
||||
ProjectFile::getHandlers().clear();
|
||||
ProjectFile::getProviderHandlers().clear();
|
||||
ProjectFile::setProjectFunctions(nullptr, nullptr);
|
||||
@@ -454,13 +457,14 @@ namespace hex::init {
|
||||
}
|
||||
|
||||
// Make sure there's only one built-in plugin
|
||||
builtinPlugins++;
|
||||
if (builtinPlugins > 1) continue;
|
||||
|
||||
// Initialize the plugin
|
||||
if (!plugin.initializePlugin()) {
|
||||
log::error("Failed to initialize plugin {}", wolv::util::toUTF8String(plugin.getPath().filename()));
|
||||
loadErrors++;
|
||||
} else {
|
||||
builtinPlugins++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user