mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-07-01 22:16:28 +02:00
set: add GetPlatformRegion
This commit is contained in:
parent
c07486112c
commit
7f0b506cf1
6 changed files with 25 additions and 10 deletions
|
|
@ -48,11 +48,6 @@ enum class SystemButtonType {
|
|||
CaptureButtonLongPressing,
|
||||
};
|
||||
|
||||
enum class SysPlatformRegion : s32 {
|
||||
Global = 1,
|
||||
Terra = 2,
|
||||
};
|
||||
|
||||
struct AppletProcessLaunchReason {
|
||||
u8 flag;
|
||||
INSERT_PADDING_BYTES(3);
|
||||
|
|
|
|||
|
|
@ -260,9 +260,9 @@ Result ICommonStateGetter::GetAppletLaunchedHistory(
|
|||
}
|
||||
|
||||
Result ICommonStateGetter::GetSettingsPlatformRegion(
|
||||
Out<SysPlatformRegion> out_settings_platform_region) {
|
||||
Out<Set::PlatformRegion> out_settings_platform_region) {
|
||||
LOG_INFO(Service_AM, "called");
|
||||
*out_settings_platform_region = SysPlatformRegion::Global;
|
||||
*out_settings_platform_region = Set::PlatformRegion::Global;
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include "core/hle/service/cmif_types.h"
|
||||
#include "core/hle/service/pm/pm.h"
|
||||
#include "core/hle/service/service.h"
|
||||
#include "core/hle/service/set/settings_types.h"
|
||||
|
||||
namespace Kernel {
|
||||
class KReadableEvent;
|
||||
|
|
@ -50,7 +51,7 @@ private:
|
|||
Result GetOperationModeSystemInfo(Out<u32> out_operation_mode_system_info);
|
||||
Result GetAppletLaunchedHistory(Out<s32> out_count,
|
||||
OutArray<AppletId, BufferAttr_HipcMapAlias> out_applet_ids);
|
||||
Result GetSettingsPlatformRegion(Out<SysPlatformRegion> out_settings_platform_region);
|
||||
Result GetSettingsPlatformRegion(Out<Set::PlatformRegion> out_settings_platform_region);
|
||||
Result SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled();
|
||||
|
||||
void SetCpuBoostMode(HLERequestContext& ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue