Core: Cleanup headers in core/config

- `MainLoop` now forward-declared in `OS`
This commit is contained in:
Thaddeus Crews 2025-10-05 13:04:18 -05:00
parent d413181b8a
commit 5935a32e32
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
34 changed files with 41 additions and 6 deletions

View file

@ -30,9 +30,8 @@
#pragma once
#include "core/input/input_event.h"
#include "core/object/gdvirtual.gen.inc"
#include "core/object/ref_counted.h"
#include "core/object/object.h"
class MainLoop : public Object {
GDCLASS(MainLoop, Object);

View file

@ -40,6 +40,8 @@
#include <cstdlib>
class MainLoop;
class OS {
static OS *singleton;
static uint64_t target_ticks;
@ -223,6 +225,7 @@ public:
void ensure_user_data_dir();
// NOTE: MainLoop is forward-declared in OS and should be included to use this.
virtual MainLoop *get_main_loop() const = 0;
virtual void yield();