mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
[stage2] Add console_get_framebuffer
This commit is contained in:
parent
9dce3b05ba
commit
396a646fa3
2 changed files with 9 additions and 0 deletions
|
@ -155,6 +155,14 @@ int console_init(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void *console_get_framebuffer(bool enable_display) {
|
||||
if (g_framebuffer != NULL && enable_display) {
|
||||
console_init_display();
|
||||
}
|
||||
|
||||
return g_framebuffer;
|
||||
}
|
||||
|
||||
int console_display(const void *framebuffer) {
|
||||
if (!g_display_initialized) {
|
||||
console_init_display();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define FUSEE_CONSOLE_H
|
||||
|
||||
int console_init(void);
|
||||
void *console_get_framebuffer(bool enable_display);
|
||||
int console_display(const void *framebuffer); /* Must be page-aligned */
|
||||
int console_resume(void);
|
||||
int console_end(void);
|
||||
|
|
Loading…
Reference in a new issue