yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

service/pm: Tidy up functionality related to SystemBootMode

Just minor tidying of interfaces.
This commit is contained in:
Lioncash 2019-01-28 11:44:35 -05:00
parent 72c48e01c9
commit cb2ce9924a
2 changed files with 9 additions and 2 deletions

View File

@ -24,8 +24,10 @@ private:
IPC::ResponseBuilder rb{ctx, 3}; IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);
rb.Push<u32>(static_cast<u32>(SystemBootMode::Normal)); // Normal boot mode rb.PushEnum(boot_mode);
} }
SystemBootMode boot_mode = SystemBootMode::Normal;
}; };
class DebugMonitor final : public ServiceFramework<DebugMonitor> { class DebugMonitor final : public ServiceFramework<DebugMonitor> {

View File

@ -9,7 +9,12 @@ class ServiceManager;
} }
namespace Service::PM { namespace Service::PM {
enum class SystemBootMode : u32 { Normal = 0, Maintenance = 1 };
enum class SystemBootMode {
Normal,
Maintenance,
};
/// Registers all PM services with the specified service manager. /// Registers all PM services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager); void InstallInterfaces(SM::ServiceManager& service_manager);