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:
Nik
2023-08-06 21:33:15 +02:00
committed by GitHub
parent 64a0c3f6e2
commit e77f138514
61 changed files with 1427 additions and 22 deletions

View File

@@ -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++;
}
}