[Kernel] Added support for loading modules before main

This commit is contained in:
Gliniak
2025-07-28 21:23:51 +02:00
committed by Radosław Gliński
parent 70364e73ae
commit 2969a04145
4 changed files with 58 additions and 5 deletions

View File

@@ -108,6 +108,11 @@ class UserModule : public XModule {
ByteStream* stream,
const std::string_view path);
// TODO(Gliniak): This shouldn't be required. It is used for initial DLL
// initialization. Which should happen on main thread before main execution
// which isn't really possible right now.
bool is_attached_ = false;
private:
void CalculateHash();