2026-09-26 06:34:09

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-26 06:34:09 +00:00
parent 548bc9ad92
commit bb33424964
48 changed files with 2390 additions and 2230 deletions
+15 -9
View File
@@ -138,9 +138,7 @@ public:
explicit IUserManager(Core::System& system_) : ServiceFramework{system_, "nfp:user"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, &IUserManager::CreateUserInterface, "CreateUserInterface"}
);
return HandlerTableGenerateWithFind(key, functions);
}
private:
@@ -151,6 +149,10 @@ private:
rb.Push(ResultSuccess);
rb.PushIpcInterface<IUser>(ctx, system);
}
static constexpr auto functions = CreateStaticMap(
FunctionInfo{0, &IUserManager::CreateUserInterface, "CreateUserInterface"}
);
};
class ISystemManager final : public ServiceFramework<ISystemManager> {
@@ -158,9 +160,7 @@ public:
explicit ISystemManager(Core::System& system_) : ServiceFramework{system_, "nfp:sys"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, &ISystemManager::CreateSystemInterface, "CreateSystemInterface"}
);
return HandlerTableGenerateWithFind(key, functions);
}
private:
@@ -171,6 +171,10 @@ private:
rb.Push(ResultSuccess);
rb.PushIpcInterface<ISystem>(ctx, system);
}
static constexpr auto functions = CreateStaticMap(
FunctionInfo{0, &ISystemManager::CreateSystemInterface, "CreateSystemInterface"}
);
};
class IDebugManager final : public ServiceFramework<IDebugManager> {
@@ -178,9 +182,7 @@ public:
explicit IDebugManager(Core::System& system_) : ServiceFramework{system_, "nfp:dbg"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, &IDebugManager::CreateDebugInterface, "CreateDebugInterface"}
);
return HandlerTableGenerateWithFind(key, functions);
}
private:
@@ -191,6 +193,10 @@ private:
rb.Push(ResultSuccess);
rb.PushIpcInterface<IDebug>(ctx, system);
}
static constexpr auto functions = CreateStaticMap(
FunctionInfo{0, &IDebugManager::CreateDebugInterface, "CreateDebugInterface"}
);
};
void LoopProcess(Core::System& system) {