mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-22 22:41:22 -08:00
set: add GetPlatformRegion
This commit is contained in:
parent
a93d249ac1
commit
692ba0fa7d
@ -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);
|
||||
|
@ -243,6 +243,11 @@ enum class TvResolution : u32 {
|
||||
Resolution480p,
|
||||
};
|
||||
|
||||
enum class PlatformRegion : s32 {
|
||||
Global = 1,
|
||||
Terra = 2,
|
||||
};
|
||||
|
||||
constexpr std::array<LanguageCode, 18> available_language_codes = {{
|
||||
LanguageCode::JA,
|
||||
LanguageCode::EN_US,
|
||||
|
@ -272,8 +272,8 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
|
||||
{180, nullptr, "SetZoomFlag"},
|
||||
{181, nullptr, "GetT"},
|
||||
{182, nullptr, "SetT"},
|
||||
{183, nullptr, "GetPlatformRegion"},
|
||||
{184, nullptr, "SetPlatformRegion"},
|
||||
{183, C<&ISystemSettingsServer::GetPlatformRegion>, "GetPlatformRegion"},
|
||||
{184, C<&ISystemSettingsServer::SetPlatformRegion>, "SetPlatformRegion"},
|
||||
{185, C<&ISystemSettingsServer::GetHomeMenuSchemeModel>, "GetHomeMenuSchemeModel"},
|
||||
{186, nullptr, "GetMemoryUsageRateFlag"},
|
||||
{187, C<&ISystemSettingsServer::GetTouchScreenMode>, "GetTouchScreenMode"},
|
||||
@ -1250,6 +1250,18 @@ Result ISystemSettingsServer::GetHomeMenuScheme(Out<HomeMenuScheme> out_home_men
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result ISystemSettingsServer::GetPlatformRegion(Out<PlatformRegion> out_platform_region) {
|
||||
LOG_WARNING(Service_SET, "(STUBBED) called");
|
||||
|
||||
*out_platform_region = PlatformRegion::Global;
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result ISystemSettingsServer::SetPlatformRegion(PlatformRegion platform_region) {
|
||||
LOG_WARNING(Service_SET, "(STUBBED) called");
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result ISystemSettingsServer::GetHomeMenuSchemeModel(Out<u32> out_home_menu_scheme_model) {
|
||||
LOG_WARNING(Service_SET, "(STUBBED) called");
|
||||
|
||||
|
@ -149,6 +149,8 @@ public:
|
||||
Result GetHomeMenuScheme(Out<HomeMenuScheme> out_home_menu_scheme);
|
||||
Result GetHomeMenuSchemeModel(Out<u32> out_home_menu_scheme_model);
|
||||
Result GetTouchScreenMode(Out<TouchScreenMode> out_touch_screen_mode);
|
||||
Result GetPlatformRegion(Out<PlatformRegion> out_platform_region);
|
||||
Result SetPlatformRegion(PlatformRegion platform_region);
|
||||
Result SetTouchScreenMode(TouchScreenMode touch_screen_mode);
|
||||
Result GetFieldTestingFlag(Out<bool> out_field_testing_flag);
|
||||
Result GetPanelCrcMode(Out<s32> out_panel_crc_mode);
|
||||
|
Loading…
Reference in New Issue
Block a user