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.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp
index d62cecf9a2..520cb1860b 100644
--- a/src/core/hle/service/spl/spl_module.cpp
+++ b/src/core/hle/service/spl/spl_module.cpp
@@ -13,7 +13,6 @@
#include "core/hle/api_version.h"
#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/server_manager.h"
-#include "core/hle/service/spl/csrng.h"
#include "core/hle/service/spl/spl.h"
#include "core/hle/service/spl/spl_module.h"
@@ -203,6 +202,18 @@ 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") {
+ static const FunctionInfo functions[] = {
+ {0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"},
+ };
+ RegisterHandlers(functions);
+ }
+ ~CSRNG() override = default;
+};
+
void LoopProcess(Core::System& system) {
auto server_manager = std::make_unique<ServerManager>(system);
auto module = std::make_shared<Module>();