mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
lm: Amend names of Initialize() in Logger and Initialize() in LM
Amends these to match the information on Switch Brew.
This commit is contained in:
parent
8650be1020
commit
6f4d3d8163
2 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@ class Logger final : public ServiceFramework<Logger> {
|
||||||
public:
|
public:
|
||||||
Logger() : ServiceFramework("Logger") {
|
Logger() : ServiceFramework("Logger") {
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0x00000000, &Logger::Log, "Log"},
|
{0x00000000, &Logger::Initialize, "Initialize"},
|
||||||
{0x00000001, nullptr, "SetDestination"},
|
{0x00000001, nullptr, "SetDestination"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
|
@ -67,13 +67,13 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LM::Log service function
|
* ILogger::Initialize service function
|
||||||
* Inputs:
|
* Inputs:
|
||||||
* 0: 0x00000000
|
* 0: 0x00000000
|
||||||
* Outputs:
|
* Outputs:
|
||||||
* 0: ResultCode
|
* 0: ResultCode
|
||||||
*/
|
*/
|
||||||
void Log(Kernel::HLERequestContext& ctx) {
|
void Initialize(Kernel::HLERequestContext& ctx) {
|
||||||
// This function only succeeds - Get that out of the way
|
// This function only succeeds - Get that out of the way
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
@ -168,13 +168,13 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LM::Initialize service function
|
* LM::OpenLogger service function
|
||||||
* Inputs:
|
* Inputs:
|
||||||
* 0: 0x00000000
|
* 0: 0x00000000
|
||||||
* Outputs:
|
* Outputs:
|
||||||
* 0: ResultCode
|
* 0: ResultCode
|
||||||
*/
|
*/
|
||||||
void LM::Initialize(Kernel::HLERequestContext& ctx) {
|
void LM::OpenLogger(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.PushIpcInterface<Logger>();
|
rb.PushIpcInterface<Logger>();
|
||||||
|
@ -184,7 +184,7 @@ void LM::Initialize(Kernel::HLERequestContext& ctx) {
|
||||||
|
|
||||||
LM::LM() : ServiceFramework("lm") {
|
LM::LM() : ServiceFramework("lm") {
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0x00000000, &LM::Initialize, "Initialize"},
|
{0x00000000, &LM::OpenLogger, "OpenLogger"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ public:
|
||||||
~LM() = default;
|
~LM() = default;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Initialize(Kernel::HLERequestContext& ctx);
|
void OpenLogger(Kernel::HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Registers all LM services with the specified service manager.
|
/// Registers all LM services with the specified service manager.
|
||||||
|
|
Loading…
Reference in a new issue