clang format
This commit is contained in:
@ -7,8 +7,8 @@
|
|||||||
namespace Service::AM {
|
namespace Service::AM {
|
||||||
|
|
||||||
ICradleFirmwareUpdater::ICradleFirmwareUpdater(Core::System& system_)
|
ICradleFirmwareUpdater::ICradleFirmwareUpdater(Core::System& system_)
|
||||||
: ServiceFramework{system_, "ICradleFirmwareUpdater"},
|
: ServiceFramework{system_, "ICradleFirmwareUpdater"}, service_context{system,
|
||||||
service_context{system, "IHomeMenuFunctions"} {
|
"IHomeMenuFunctions"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "StartUpdate"},
|
{0, nullptr, "StartUpdate"},
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
namespace Service::AM {
|
namespace Service::AM {
|
||||||
|
|
||||||
IGlobalStateController::IGlobalStateController(Core::System& system_)
|
IGlobalStateController::IGlobalStateController(Core::System& system_)
|
||||||
: ServiceFramework{system_, "IGlobalStateController"},
|
: ServiceFramework{system_, "IGlobalStateController"}, service_context{
|
||||||
service_context{system_, "IGlobalStateController"} {
|
system_, "IGlobalStateController"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "RequestToEnterSleep"},
|
{0, nullptr, "RequestToEnterSleep"},
|
||||||
|
@ -72,8 +72,7 @@ AudCtl::AudCtl(Core::System& system_)
|
|||||||
|
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
|
|
||||||
notification_event =
|
notification_event = service_context.CreateEvent("audctl:NotificationEvent");
|
||||||
service_context.CreateEvent("audctl:NotificationEvent");
|
|
||||||
|
|
||||||
m_set_sys =
|
m_set_sys =
|
||||||
system.ServiceManager().GetService<Service::Set::ISystemSettingsServer>("set:sys", true);
|
system.ServiceManager().GetService<Service::Set::ISystemSettingsServer>("set:sys", true);
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "core/hle/service/service.h"
|
|
||||||
#include "core/hle/service/kernel_helpers.h"
|
#include "core/hle/service/kernel_helpers.h"
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
class System;
|
class System;
|
||||||
|
@ -304,7 +304,8 @@ public:
|
|||||||
|
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
radio_event = service_context.CreateEvent("IBtmSystemCore::RadioEvent");
|
radio_event = service_context.CreateEvent("IBtmSystemCore::RadioEvent");
|
||||||
audio_device_connection_event = service_context.CreateEvent("IBtmSystemCore::AudioDeviceConnectionEvent");
|
audio_device_connection_event =
|
||||||
|
service_context.CreateEvent("IBtmSystemCore::AudioDeviceConnectionEvent");
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -362,7 +363,8 @@ private:
|
|||||||
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
} void AcquireRadioEvent(HLERequestContext& ctx) {
|
}
|
||||||
|
void AcquireRadioEvent(HLERequestContext& ctx) {
|
||||||
LOG_ERROR(Service_BTM, "called");
|
LOG_ERROR(Service_BTM, "called");
|
||||||
|
|
||||||
radio_event->Signal();
|
radio_event->Signal();
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "core/hle/service/erpt/erpt.h"
|
#include "core/hle/service/erpt/erpt.h"
|
||||||
#include "core/hle/service/server_manager.h"
|
|
||||||
#include "core/hle/service/ipc_helpers.h"
|
#include "core/hle/service/ipc_helpers.h"
|
||||||
|
#include "core/hle/service/server_manager.h"
|
||||||
#include "core/hle/service/service.h"
|
#include "core/hle/service/service.h"
|
||||||
#include "core/hle/service/sm/sm.h"
|
#include "core/hle/service/sm/sm.h"
|
||||||
|
|
||||||
|
@ -43,7 +43,6 @@ Result ARPManager::GetControlProperty(std::vector<u8>* out_control_property, u64
|
|||||||
|
|
||||||
*out_control_property = entries.begin()->second.control;
|
*out_control_property = entries.begin()->second.control;
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*out_control_property = iter->second.control;
|
*out_control_property = iter->second.control;
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
#include "hid_core/resources/npad/npad_vibration.h"
|
#include "hid_core/resources/npad/npad_vibration.h"
|
||||||
#include "hid_core/resources/palma/palma.h"
|
#include "hid_core/resources/palma/palma.h"
|
||||||
#include "hid_core/resources/touch_screen/touch_screen.h"
|
#include "hid_core/resources/touch_screen/touch_screen.h"
|
||||||
#include "hid_core/resources/hid_firmware_settings.h"
|
|
||||||
#include "core/hle/service/set/settings_types.h"
|
|
||||||
|
|
||||||
namespace Service::HID {
|
namespace Service::HID {
|
||||||
|
|
||||||
|
@ -435,7 +435,6 @@ void IGeneralService::EnumerateNetworkProfiles(HLERequestContext& ctx) {
|
|||||||
rb.Push(0);
|
rb.Push(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
|
void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "core/hle/kernel/k_event.h"
|
||||||
|
#include "core/hle/service/ipc_helpers.h"
|
||||||
|
#include "core/hle/service/kernel_helpers.h"
|
||||||
#include "core/hle/service/npns/npns.h"
|
#include "core/hle/service/npns/npns.h"
|
||||||
#include "core/hle/service/server_manager.h"
|
#include "core/hle/service/server_manager.h"
|
||||||
#include "core/hle/service/service.h"
|
#include "core/hle/service/service.h"
|
||||||
#include "core/hle/service/ipc_helpers.h"
|
|
||||||
#include "core/hle/kernel/k_event.h"
|
|
||||||
#include "core/hle/service/kernel_helpers.h"
|
|
||||||
|
|
||||||
namespace Service::NPNS {
|
namespace Service::NPNS {
|
||||||
|
|
||||||
|
@ -390,8 +390,9 @@ void IApplicationManagerInterface::ListApplicationRecord(HLERequestContext& ctx)
|
|||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
rb.Push(application_records.size());
|
rb.Push(static_cast<u32>(application_records.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void IApplicationManagerInterface::GetApplicationRecordUpdateSystemEvent(HLERequestContext& ctx) {
|
void IApplicationManagerInterface::GetApplicationRecordUpdateSystemEvent(HLERequestContext& ctx) {
|
||||||
LOG_ERROR(Service_NS, "(STUBBED) called");
|
LOG_ERROR(Service_NS, "(STUBBED) called");
|
||||||
|
|
||||||
@ -489,6 +490,15 @@ void IApplicationManagerInterface::GetApplicationView(HLERequestContext& ctx) {
|
|||||||
.application_id = data,
|
.application_id = data,
|
||||||
.unk = 0x70000,
|
.unk = 0x70000,
|
||||||
.flags = 0x401f17,
|
.flags = 0x401f17,
|
||||||
|
.unk_x10 = {},
|
||||||
|
.unk_x20 = {},
|
||||||
|
.unk_x24 = {},
|
||||||
|
.unk_x26 = {},
|
||||||
|
.unk_x28 = {},
|
||||||
|
.unk_x30 = {},
|
||||||
|
.unk_x40 = {},
|
||||||
|
.unk_x44 = {},
|
||||||
|
.unk_x45 = {},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -513,6 +523,15 @@ void IApplicationManagerInterface::GetApplicationViewWithPromotionInfo(HLEReques
|
|||||||
.application_id = data,
|
.application_id = data,
|
||||||
.unk = 0x70000,
|
.unk = 0x70000,
|
||||||
.flags = 0x401f17,
|
.flags = 0x401f17,
|
||||||
|
.unk_x10 = {},
|
||||||
|
.unk_x20 = {},
|
||||||
|
.unk_x24 = {},
|
||||||
|
.unk_x26 = {},
|
||||||
|
.unk_x28 = {},
|
||||||
|
.unk_x30 = {},
|
||||||
|
.unk_x40 = {},
|
||||||
|
.unk_x44 = {},
|
||||||
|
.unk_x45 = {},
|
||||||
},
|
},
|
||||||
.promotion = {},
|
.promotion = {},
|
||||||
});
|
});
|
||||||
@ -538,7 +557,8 @@ void IApplicationManagerInterface::GetApplicationRightsOnClient(HLERequestContex
|
|||||||
const auto application_id = rp.Pop<u64>();
|
const auto application_id = rp.Pop<u64>();
|
||||||
const auto uid = rp.PopRaw<Common::UUID>();
|
const auto uid = rp.PopRaw<Common::UUID>();
|
||||||
|
|
||||||
LOG_ERROR(Service_NS, "(STUBBED) called, flags={}, application_id={:x}, uid={}",flags,application_id,uid.FormattedString());
|
LOG_ERROR(Service_NS, "(STUBBED) called, flags={}, application_id={:x}, uid={}", flags,
|
||||||
|
application_id, uid.FormattedString());
|
||||||
|
|
||||||
ApplicationRightsOnClient rights{
|
ApplicationRightsOnClient rights{
|
||||||
.application_id = application_id,
|
.application_id = application_id,
|
||||||
|
@ -322,16 +322,6 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ListDisplayModes(HLERequestContext& ctx) {
|
void ListDisplayModes(HLERequestContext& ctx) {
|
||||||
struct DisplayInfo {
|
|
||||||
u8 unknownString[0x40];
|
|
||||||
bool unknownBool;
|
|
||||||
INSERT_PADDING_BYTES(0x7);
|
|
||||||
u64 unknownU64_1;
|
|
||||||
u64 unknownU64_2;
|
|
||||||
u64 unknownU64_3;
|
|
||||||
};
|
|
||||||
static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo is an invalid size");
|
|
||||||
|
|
||||||
LOG_WARNING(Service_VI, "(STUBBED) called");
|
LOG_WARNING(Service_VI, "(STUBBED) called");
|
||||||
|
|
||||||
std::vector<DisplayInfo> display_modes(1);
|
std::vector<DisplayInfo> display_modes(1);
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#include "common/fs/fs.h"
|
#include "common/fs/fs.h"
|
||||||
#include "common/fs/path_util.h"
|
#include "common/fs/path_util.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/hle/service/glue/glue_manager.h"
|
|
||||||
#include "core/file_sys/card_image.h"
|
#include "core/file_sys/card_image.h"
|
||||||
#include "core/file_sys/content_archive.h"
|
#include "core/file_sys/content_archive.h"
|
||||||
#include "core/file_sys/control_metadata.h"
|
#include "core/file_sys/control_metadata.h"
|
||||||
@ -23,6 +22,7 @@
|
|||||||
#include "core/file_sys/patch_manager.h"
|
#include "core/file_sys/patch_manager.h"
|
||||||
#include "core/file_sys/registered_cache.h"
|
#include "core/file_sys/registered_cache.h"
|
||||||
#include "core/file_sys/submission_package.h"
|
#include "core/file_sys/submission_package.h"
|
||||||
|
#include "core/hle/service/glue/glue_manager.h"
|
||||||
#include "core/loader/loader.h"
|
#include "core/loader/loader.h"
|
||||||
#include "yuzu/compatibility_list.h"
|
#include "yuzu/compatibility_list.h"
|
||||||
#include "yuzu/game_list.h"
|
#include "yuzu/game_list.h"
|
||||||
|
Reference in New Issue
Block a user