aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/spl/spl_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/spl/spl_module.cpp')
-rw-r--r--src/core/hle/service/spl/spl_module.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp
index 594575d9a0..520cb1860b 100644
--- a/src/core/hle/service/spl/spl_module.cpp
+++ b/src/core/hle/service/spl/spl_module.cpp
@@ -204,15 +204,14 @@ Result Module::Interface::GetConfigImpl(u64* out_config, ConfigItem config_item)
class CSRNG final : public Module::Interface {
public:
- explicit CSRNG(Core::System& system_, std::shared_ptr<Module> module_) : Interface(system_, std::move(module_), "csrng") {}
- ~CSRNG() override = default;
-
- std::optional<FunctionInfoBase> FindRequest(u32 key) override {
- return HandlerTableGenerateWithFind(key, functions);
+ explicit CSRNG(Core::System& system_, std::shared_ptr<Module> module_)
+ : Interface(system_, std::move(module_), "csrng") {
+ static const FunctionInfo functions[] = {
+ {0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"},
+ };
+ RegisterHandlers(functions);
}
- static constexpr auto functions = CreateStaticMap(
- FunctionInfo{0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"}
- );
+ ~CSRNG() override = default;
};
void LoopProcess(Core::System& system) {