mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-01 07:54:14 +01:00
lbl: Update service function table names
Updated based off information provided by Switchbrew.
This commit is contained in:
parent
f034121620
commit
a806c78a1a
@ -18,35 +18,35 @@ public:
|
|||||||
explicit LBL() : ServiceFramework{"lbl"} {
|
explicit LBL() : ServiceFramework{"lbl"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "Unknown1"},
|
{0, nullptr, "SaveCurrentSetting"},
|
||||||
{1, nullptr, "Unknown2"},
|
{1, nullptr, "LoadCurrentSetting"},
|
||||||
{2, nullptr, "Unknown3"},
|
{2, nullptr, "SetCurrentBrightnessSetting"},
|
||||||
{3, nullptr, "GetCurrentBacklightLevel"},
|
{3, nullptr, "GetCurrentBrightnessSetting"},
|
||||||
{4, nullptr, "Unknown4"},
|
{4, nullptr, "ApplyCurrentBrightnessSettingToBacklight"},
|
||||||
{5, nullptr, "GetAlsComputedBacklightLevel"},
|
{5, nullptr, "GetBrightnessSettingAppliedToBacklight"},
|
||||||
{6, nullptr, "TurnOffBacklight"},
|
{6, nullptr, "SwitchBacklightOn"},
|
||||||
{7, nullptr, "TurnOnBacklight"},
|
{7, nullptr, "SwitchBacklightOff"},
|
||||||
{8, nullptr, "GetBacklightStatus"},
|
{8, nullptr, "GetBacklightSwitchStatus"},
|
||||||
{9, nullptr, "Unknown5"},
|
{9, nullptr, "EnableDimming"},
|
||||||
{10, nullptr, "Unknown6"},
|
{10, nullptr, "DisableDimming"},
|
||||||
{11, nullptr, "Unknown7"},
|
{11, nullptr, "IsDimmingEnabled"},
|
||||||
{12, nullptr, "Unknown8"},
|
{12, nullptr, "EnableAutoBrightnessControl"},
|
||||||
{13, nullptr, "Unknown9"},
|
{13, nullptr, "DisableAutoBrightnessControl"},
|
||||||
{14, nullptr, "Unknown10"},
|
{14, nullptr, "IsAutoBrightnessControlEnabled"},
|
||||||
{15, nullptr, "GetAutoBrightnessSetting"},
|
{15, nullptr, "SetAmbientLightSensorValue"},
|
||||||
{16, nullptr, "ReadRawLightSensor"},
|
{16, nullptr, "GetAmbientLightSensorValue"},
|
||||||
{17, nullptr, "Unknown11"},
|
{17, nullptr, "SetBrightnessReflectionDelayLevel"},
|
||||||
{18, nullptr, "Unknown12"},
|
{18, nullptr, "GetBrightnessReflectionDelayLevel"},
|
||||||
{19, nullptr, "Unknown13"},
|
{19, nullptr, "SetCurrentBrightnessMapping"},
|
||||||
{20, nullptr, "Unknown14"},
|
{20, nullptr, "GetCurrentBrightnessMapping"},
|
||||||
{21, nullptr, "Unknown15"},
|
{21, nullptr, "SetCurrentAmbientLightSensorMapping"},
|
||||||
{22, nullptr, "Unknown16"},
|
{22, nullptr, "GetCurrentAmbientLightSensorMapping"},
|
||||||
{23, nullptr, "Unknown17"},
|
{23, nullptr, "IsAmbientLightSensorAvailable"},
|
||||||
{24, nullptr, "Unknown18"},
|
{24, nullptr, "SetCurrentBrightnessSettingForVrMode"},
|
||||||
{25, nullptr, "Unknown19"},
|
{25, nullptr, "GetCurrentBrightnessSettingForVrMode"},
|
||||||
{26, &LBL::EnableVrMode, "EnableVrMode"},
|
{26, &LBL::EnableVrMode, "EnableVrMode"},
|
||||||
{27, &LBL::DisableVrMode, "DisableVrMode"},
|
{27, &LBL::DisableVrMode, "DisableVrMode"},
|
||||||
{28, &LBL::GetVrMode, "GetVrMode"},
|
{28, &LBL::IsVrModeEnabled, "IsVrModeEnabled"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ private:
|
|||||||
LOG_DEBUG(Service_LBL, "called");
|
LOG_DEBUG(Service_LBL, "called");
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetVrMode(Kernel::HLERequestContext& ctx) {
|
void IsVrModeEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push(vr_mode_enabled);
|
rb.Push(vr_mode_enabled);
|
||||||
|
Loading…
Reference in New Issue
Block a user