mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-23 04:16:57 +02:00
refactor(subsystems&ime): RAII lifecycle
This commit is contained in:
+8
-2
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "common/abi.h"
|
||||
#include "common/common.h"
|
||||
#include "common/subsystems.h"
|
||||
#include "kernel/eventQueue.h"
|
||||
|
||||
namespace Libs::Graphics {
|
||||
@@ -21,7 +20,14 @@ struct MemoryRange {
|
||||
uint64_t m_size;
|
||||
};
|
||||
|
||||
KYTY_SUBSYSTEM_DEFINE(Graphics);
|
||||
void Initialize();
|
||||
void Shutdown();
|
||||
|
||||
struct Lifecycle {
|
||||
static constexpr const char* name = "Graphics";
|
||||
static constexpr auto initialize = Libs::Graphics::Initialize;
|
||||
static constexpr auto shutdown = Libs::Graphics::Shutdown;
|
||||
};
|
||||
|
||||
void GraphicsDbgDumpDcb(const char* type, uint32_t num_dw, uint32_t* cmd_buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user