clang format
This commit is contained in:
parent
26c0ba122f
commit
c54b12181d
|
@ -330,7 +330,7 @@ bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase&
|
|||
/// Returns if the system is allowing user registrations or not
|
||||
bool ProfileManager::CanSystemRegisterUser() const {
|
||||
return true; // TODO(ogniK): Games shouldn't have
|
||||
// access to user registration, when we
|
||||
// access to user registration, when we
|
||||
// emulate qlaunch. Update this to dynamically change.
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ void IApplicationCreator::CreateApplication(HLERequestContext& ctx) {
|
|||
IPC::RequestParser rp{ctx};
|
||||
const auto application_id = rp.Pop<u64>();
|
||||
|
||||
LOG_ERROR(Service_NS, "called, application_id={:x}",application_id);
|
||||
LOG_ERROR(Service_NS, "called, application_id={:x}", application_id);
|
||||
|
||||
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
||||
rb.Push(ResultSuccess);
|
||||
|
|
|
@ -12,7 +12,7 @@ public:
|
|||
explicit IApplicationAccessor(Core::System& system_, u64 application_id);
|
||||
~IApplicationAccessor() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
};
|
||||
|
||||
class IApplicationCreator final : public ServiceFramework<IApplicationCreator> {
|
||||
|
@ -20,7 +20,7 @@ public:
|
|||
explicit IApplicationCreator(Core::System& system_);
|
||||
~IApplicationCreator() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
void CreateApplication(HLERequestContext& ctx);
|
||||
};
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
namespace Service::AM {
|
||||
|
||||
ICradleFirmwareUpdater::ICradleFirmwareUpdater(Core::System& system_)
|
||||
: ServiceFramework{system_, "ICradleFirmwareUpdater"},
|
||||
service_context{system, "IHomeMenuFunctions"} {
|
||||
: ServiceFramework{system_, "ICradleFirmwareUpdater"}, service_context{system,
|
||||
"IHomeMenuFunctions"} {
|
||||
// clang-format off
|
||||
static const FunctionInfo functions[] = {
|
||||
{0, nullptr, "StartUpdate"},
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
namespace Service::AM {
|
||||
|
||||
IGlobalStateController::IGlobalStateController(Core::System& system_)
|
||||
: ServiceFramework{system_, "IGlobalStateController"},
|
||||
service_context{system_, "IGlobalStateController"} {
|
||||
: ServiceFramework{system_, "IGlobalStateController"}, service_context{
|
||||
system_, "IGlobalStateController"} {
|
||||
// clang-format off
|
||||
static const FunctionInfo functions[] = {
|
||||
{0, nullptr, "RequestToEnterSleep"},
|
||||
|
|
|
@ -72,8 +72,7 @@ AudCtl::AudCtl(Core::System& system_)
|
|||
|
||||
RegisterHandlers(functions);
|
||||
|
||||
notification_event =
|
||||
service_context.CreateEvent("audctl:NotificationEvent");
|
||||
notification_event = service_context.CreateEvent("audctl:NotificationEvent");
|
||||
|
||||
m_set_sys =
|
||||
system.ServiceManager().GetService<Service::Set::ISystemSettingsServer>("set:sys", true);
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/hle/service/service.h"
|
||||
#include "core/hle/service/kernel_helpers.h"
|
||||
#include "core/hle/service/service.h"
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
|
|
|
@ -196,8 +196,8 @@ public:
|
|||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
private:
|
||||
void EnableRadio(HLERequestContext& ctx) {
|
||||
private:
|
||||
void EnableRadio(HLERequestContext& ctx) {
|
||||
IPC::ResponseBuilder rb{ctx, 2};
|
||||
rb.Push(ResultSuccess);
|
||||
}
|
||||
|
|
|
@ -304,7 +304,8 @@ public:
|
|||
|
||||
RegisterHandlers(functions);
|
||||
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:
|
||||
|
@ -362,12 +363,13 @@ private:
|
|||
LOG_WARNING(Service_BTM, "(STUBBED) called");
|
||||
IPC::ResponseBuilder rb{ctx, 2};
|
||||
rb.Push(ResultSuccess);
|
||||
} void AcquireRadioEvent(HLERequestContext& ctx) {
|
||||
}
|
||||
void AcquireRadioEvent(HLERequestContext& ctx) {
|
||||
LOG_ERROR(Service_BTM, "called");
|
||||
|
||||
radio_event->Signal();
|
||||
|
||||
IPC::ResponseBuilder rb{ ctx, 3, 1 };
|
||||
IPC::ResponseBuilder rb{ctx, 3, 1};
|
||||
rb.Push(ResultSuccess);
|
||||
rb.Push(true);
|
||||
rb.PushCopyObjects(radio_event->GetReadableEvent());
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#include <memory>
|
||||
|
||||
#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/server_manager.h"
|
||||
#include "core/hle/service/service.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;
|
||||
return ResultSuccess;
|
||||
|
||||
}
|
||||
|
||||
*out_control_property = iter->second.control;
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
#include "hid_core/resources/npad/npad_vibration.h"
|
||||
#include "hid_core/resources/palma/palma.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 {
|
||||
|
||||
|
|
|
@ -435,7 +435,6 @@ void IGeneralService::EnumerateNetworkProfiles(HLERequestContext& ctx) {
|
|||
rb.Push(0);
|
||||
}
|
||||
|
||||
|
||||
void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
|
||||
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
#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/server_manager.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 {
|
||||
|
||||
|
@ -67,7 +67,7 @@ public:
|
|||
get_recieve_event = service_context.CreateEvent("npns:s:GetReceiveEvent");
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
void ListenTo(HLERequestContext& ctx) {
|
||||
IPC::RequestParser rp{ctx};
|
||||
const auto progam_id = rp.Pop<u64>();
|
||||
|
|
|
@ -390,8 +390,9 @@ void IApplicationManagerInterface::ListApplicationRecord(HLERequestContext& ctx)
|
|||
|
||||
IPC::ResponseBuilder rb{ctx, 3};
|
||||
rb.Push(ResultSuccess);
|
||||
rb.Push(application_records.size());
|
||||
rb.Push(static_cast<u32>(application_records.size()));
|
||||
}
|
||||
|
||||
void IApplicationManagerInterface::GetApplicationRecordUpdateSystemEvent(HLERequestContext& ctx) {
|
||||
LOG_ERROR(Service_NS, "(STUBBED) called");
|
||||
|
||||
|
@ -489,6 +490,15 @@ void IApplicationManagerInterface::GetApplicationView(HLERequestContext& ctx) {
|
|||
.application_id = data,
|
||||
.unk = 0x70000,
|
||||
.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,
|
||||
.unk = 0x70000,
|
||||
.flags = 0x401f17,
|
||||
.unk_x10 = {},
|
||||
.unk_x20 = {},
|
||||
.unk_x24 = {},
|
||||
.unk_x26 = {},
|
||||
.unk_x28 = {},
|
||||
.unk_x30 = {},
|
||||
.unk_x40 = {},
|
||||
.unk_x44 = {},
|
||||
.unk_x45 = {},
|
||||
},
|
||||
.promotion = {},
|
||||
});
|
||||
|
@ -538,7 +557,8 @@ void IApplicationManagerInterface::GetApplicationRightsOnClient(HLERequestContex
|
|||
const auto application_id = rp.Pop<u64>();
|
||||
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{
|
||||
.application_id = application_id,
|
||||
|
|
|
@ -322,16 +322,6 @@ private:
|
|||
}
|
||||
|
||||
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");
|
||||
|
||||
std::vector<DisplayInfo> display_modes(1);
|
||||
|
|
|
@ -57,7 +57,7 @@ bool GestureHandler::NeedsUpdate() {
|
|||
for (size_t id = 0; id < MaxPoints; id++) {
|
||||
if (gesture.points[id] != last_gesture.points[id]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update on press and hold event after 0.5 seconds
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "common/fs/fs.h"
|
||||
#include "common/fs/path_util.h"
|
||||
#include "core/core.h"
|
||||
#include "core/hle/service/glue/glue_manager.h"
|
||||
#include "core/file_sys/card_image.h"
|
||||
#include "core/file_sys/content_archive.h"
|
||||
#include "core/file_sys/control_metadata.h"
|
||||
|
@ -23,6 +22,7 @@
|
|||
#include "core/file_sys/patch_manager.h"
|
||||
#include "core/file_sys/registered_cache.h"
|
||||
#include "core/file_sys/submission_package.h"
|
||||
#include "core/hle/service/glue/glue_manager.h"
|
||||
#include "core/loader/loader.h"
|
||||
#include "yuzu/compatibility_list.h"
|
||||
#include "yuzu/game_list.h"
|
||||
|
|
|
@ -1629,7 +1629,7 @@ void GMainWindow::UpdateMenuState() {
|
|||
ui->action_Load_Cabinet_Restorer,
|
||||
ui->action_Load_Cabinet_Formatter,
|
||||
ui->action_Load_Mii_Edit,
|
||||
ui->action_Load_QLaunch,
|
||||
ui->action_Load_QLaunch,
|
||||
ui->action_Open_Controller_Menu};
|
||||
|
||||
for (QAction* action : running_actions) {
|
||||
|
|
Loading…
Reference in New Issue