1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: More build errors

This commit is contained in:
WerWolv 2024-01-30 16:32:48 +01:00
parent c2ff6f4e6b
commit f4d1049be4
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#if defined(OS_WINDOWS)
#include <windows.h>
#include <processthreadsapi.h>
#include <hex/helpers/utils.hpp>
#else
#include <pthread.h>
#endif

View File

@ -73,7 +73,7 @@ namespace hex::init {
// By wrapping the object in a AutoReset<T>, the `EventImHexClosing` event will automatically handle clearing the object
// while the heap is still valid.
// The heap stays valid right up to the point where `PluginManager::unload()` is called.
EventAbnormalTermination::post([] {
EventAbnormalTermination::subscribe([](int) {
log::fatal("A crash happened while cleaning up resources during exit!");
log::fatal("This is most certainly because WerWolv again forgot to mark a heap allocated object as 'AutoReset'.");
log::fatal("Please report this issue on the ImHex GitHub page!");