mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
Kernel/Graphics: Indicate initialization failed if no device was found
This commit is contained in:
parent
95a11d5737
commit
c6ffee7f18
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
#include <Kernel/Graphics/VGACompatibleAdapter.h>
|
#include <Kernel/Graphics/VGACompatibleAdapter.h>
|
||||||
#include <Kernel/IO.h>
|
#include <Kernel/IO.h>
|
||||||
#include <Kernel/Multiboot.h>
|
#include <Kernel/Multiboot.h>
|
||||||
|
#include <Kernel/Panic.h>
|
||||||
#include <Kernel/VM/AnonymousVMObject.h>
|
#include <Kernel/VM/AnonymousVMObject.h>
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
@ -140,6 +141,10 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize()
|
||||||
}
|
}
|
||||||
display_adapter->initialize_framebuffer_devices();
|
display_adapter->initialize_framebuffer_devices();
|
||||||
});
|
});
|
||||||
|
if (m_graphics_devices.is_empty()) {
|
||||||
|
dbgln("No graphics adapter was initialized.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue