fixing compilation issues

This commit is contained in:
2024-09-05 00:41:52 +02:00
parent 8ad6d84bd2
commit 8888bd03d8
23 changed files with 140 additions and 59 deletions

View File

@@ -1,4 +1,5 @@
#include <PreCompiled.h>
#include <Core/Enums.h>
#include <Utils/Ansi.h>
namespace mlx
@@ -7,7 +8,7 @@ namespace mlx
{
struct FatalErrorEvent : public EventBase
{
std::uint32_t What() const override { return 167; }
Event What() const override { return Event::FatalErrorEventCode; }
};
}
@@ -48,7 +49,7 @@ namespace mlx
if(type == LogType::FatalError)
{
std::cout << Ansi::bg_red << "Fatal Error: emergency exit" << Ansi::bg_def << std::endl;
EventBus::Send("__internal_application", Internal::FatalErrorEvent{});
EventBus::Send("__MlxApplication", Internal::FatalErrorEvent{});
}
}
}