mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
impr: Clean up window setup code
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#include <hex/api/events/requests_interaction.hpp>
|
||||
#include <hex/api/task_manager.hpp>
|
||||
#include <hex/api/content_registry.hpp>
|
||||
#include <hex/api/tutorial_manager.hpp>
|
||||
#include <hex/api/shortcut_manager.hpp>
|
||||
|
||||
#include <hex/api/events/events_lifecycle.hpp>
|
||||
|
||||
#include <hex/helpers/utils.hpp>
|
||||
|
||||
#include <init/splash_window.hpp>
|
||||
@@ -35,11 +41,26 @@ namespace hex::init {
|
||||
return splashWindow;
|
||||
}
|
||||
|
||||
void initializationFinished() {
|
||||
ContentRegistry::Settings::impl::store();
|
||||
ContentRegistry::Settings::impl::load();
|
||||
|
||||
EventImHexStartupFinished::post();
|
||||
|
||||
TutorialManager::init();
|
||||
|
||||
#if defined(OS_MACOS)
|
||||
ShortcutManager::enableMacOSMode();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Deinitializes ImHex by running all exit tasks
|
||||
*/
|
||||
void deinitializeImHex() {
|
||||
ContentRegistry::Settings::impl::store();
|
||||
|
||||
// Run exit tasks
|
||||
init::runExitTasks();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user