reformat all files with clang-format
This commit is contained in:
parent
7c5a76e58b
commit
0eab948728
79 changed files with 659 additions and 707 deletions
|
@ -116,7 +116,7 @@ void HandleSpecialMapping(VMManager& address_space, const AddressMapping& mappin
|
|||
VAddr mapping_limit = mapping.address + mapping.size;
|
||||
if (mapping_limit < mapping.address) {
|
||||
LOG_CRITICAL(Loader, "Mapping size overflowed: address=0x{:08X} size=0x{:X}",
|
||||
mapping.address, mapping.size);
|
||||
mapping.address, mapping.size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -127,16 +127,16 @@ void HandleSpecialMapping(VMManager& address_space, const AddressMapping& mappin
|
|||
});
|
||||
if (area == std::end(memory_areas)) {
|
||||
LOG_ERROR(Loader,
|
||||
"Unhandled special mapping: address=0x{:08X} size=0x{:X}"
|
||||
" read_only={} unk_flag={}",
|
||||
mapping.address, mapping.size, mapping.read_only, mapping.unk_flag);
|
||||
"Unhandled special mapping: address=0x{:08X} size=0x{:X}"
|
||||
" read_only={} unk_flag={}",
|
||||
mapping.address, mapping.size, mapping.read_only, mapping.unk_flag);
|
||||
return;
|
||||
}
|
||||
|
||||
u32 offset_into_region = mapping.address - area->vaddr_base;
|
||||
if (area->paddr_base == IO_AREA_PADDR) {
|
||||
LOG_ERROR(Loader, "MMIO mappings are not supported yet. phys_addr=0x{:08X}",
|
||||
area->paddr_base + offset_into_region);
|
||||
area->paddr_base + offset_into_region);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -107,14 +107,14 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
|
|||
// Error out if the requested permissions don't match what the creator process allows.
|
||||
if (static_cast<u32>(permissions) & ~static_cast<u32>(own_other_permissions)) {
|
||||
LOG_ERROR(Kernel, "cannot map id={}, address=0x{:08X} name={}, permissions don't match",
|
||||
GetObjectId(), address, name);
|
||||
GetObjectId(), address, name);
|
||||
return ERR_INVALID_COMBINATION;
|
||||
}
|
||||
|
||||
// Heap-backed memory blocks can not be mapped with other_permissions = DontCare
|
||||
if (base_address != 0 && other_permissions == MemoryPermission::DontCare) {
|
||||
LOG_ERROR(Kernel, "cannot map id={}, address=0x{08X} name={}, permissions don't match",
|
||||
GetObjectId(), address, name);
|
||||
GetObjectId(), address, name);
|
||||
return ERR_INVALID_COMBINATION;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
|
|||
if (other_permissions != MemoryPermission::DontCare &&
|
||||
static_cast<u32>(this->permissions) & ~static_cast<u32>(other_permissions)) {
|
||||
LOG_ERROR(Kernel, "cannot map id={}, address=0x{:08X} name={}, permissions don't match",
|
||||
GetObjectId(), address, name);
|
||||
GetObjectId(), address, name);
|
||||
return ERR_WRONG_PERMISSION;
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
|
|||
if (address != 0) {
|
||||
if (address < Memory::HEAP_VADDR || address + size >= Memory::SHARED_MEMORY_VADDR_END) {
|
||||
LOG_ERROR(Kernel, "cannot map id={}, address=0x{:08X} name={}, invalid address",
|
||||
GetObjectId(), address, name);
|
||||
GetObjectId(), address, name);
|
||||
return ERR_INVALID_ADDRESS;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,9 +59,9 @@ enum ControlMemoryOperation {
|
|||
static ResultCode ControlMemory(u32* out_addr, u32 operation, u32 addr0, u32 addr1, u32 size,
|
||||
u32 permissions) {
|
||||
LOG_DEBUG(Kernel_SVC,
|
||||
"called operation=0x{:08X}, addr0=0x{:08X}, addr1=0x{:08X}, "
|
||||
"size=0x{:X}, permissions=0x{:08X}",
|
||||
operation, addr0, addr1, size, permissions);
|
||||
"called operation=0x{:08X}, addr0=0x{:08X}, addr1=0x{:08X}, "
|
||||
"size=0x{:X}, permissions=0x{:08X}",
|
||||
operation, addr0, addr1, size, permissions);
|
||||
|
||||
if ((addr0 & Memory::PAGE_MASK) != 0 || (addr1 & Memory::PAGE_MASK) != 0) {
|
||||
return ERR_MISALIGNED_ADDRESS;
|
||||
|
@ -75,7 +75,7 @@ static ResultCode ControlMemory(u32* out_addr, u32 operation, u32 addr0, u32 add
|
|||
|
||||
if (region != 0) {
|
||||
LOG_WARNING(Kernel_SVC, "ControlMemory with specified region not supported, region={:X}",
|
||||
region);
|
||||
region);
|
||||
}
|
||||
|
||||
if ((permissions & (u32)MemoryPermission::ReadWrite) != permissions) {
|
||||
|
@ -177,9 +177,9 @@ static void ExitProcess() {
|
|||
/// Maps a memory block to specified address
|
||||
static ResultCode MapMemoryBlock(Handle handle, u32 addr, u32 permissions, u32 other_permissions) {
|
||||
LOG_TRACE(Kernel_SVC,
|
||||
"called memblock=0x{:08X}, addr=0x{:08X}, mypermissions=0x{:08X}, "
|
||||
"otherpermission={}",
|
||||
handle, addr, permissions, other_permissions);
|
||||
"called memblock=0x{:08X}, addr=0x{:08X}, mypermissions=0x{:08X}, "
|
||||
"otherpermission={}",
|
||||
handle, addr, permissions, other_permissions);
|
||||
|
||||
SharedPtr<SharedMemory> shared_memory = g_handle_table.Get<SharedMemory>(handle);
|
||||
if (shared_memory == nullptr)
|
||||
|
@ -274,7 +274,7 @@ static ResultCode WaitSynchronization1(Handle handle, s64 nano_seconds) {
|
|||
return ERR_INVALID_HANDLE;
|
||||
|
||||
LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}({}:{}), nanoseconds={}", handle,
|
||||
object->GetTypeName(), object->GetName(), nano_seconds);
|
||||
object->GetTypeName(), object->GetName(), nano_seconds);
|
||||
|
||||
if (object->ShouldWait(thread)) {
|
||||
|
||||
|
@ -624,9 +624,8 @@ static ResultCode CreateAddressArbiter(Handle* out_handle) {
|
|||
/// Arbitrate address
|
||||
static ResultCode ArbitrateAddress(Handle handle, u32 address, u32 type, u32 value,
|
||||
s64 nanoseconds) {
|
||||
LOG_TRACE(Kernel_SVC,
|
||||
"called handle=0x{:08X}, address=0x{:08X}, type=0x{:08X}, value=0x{:08X}", handle,
|
||||
address, type, value);
|
||||
LOG_TRACE(Kernel_SVC, "called handle=0x{:08X}, address=0x{:08X}, type=0x{:08X}, value=0x{:08X}",
|
||||
handle, address, type, value);
|
||||
|
||||
SharedPtr<AddressArbiter> arbiter = g_handle_table.Get<AddressArbiter>(handle);
|
||||
if (arbiter == nullptr)
|
||||
|
@ -685,7 +684,7 @@ static ResultCode GetResourceLimit(Handle* resource_limit, Handle process_handle
|
|||
static ResultCode GetResourceLimitCurrentValues(VAddr values, Handle resource_limit_handle,
|
||||
VAddr names, u32 name_count) {
|
||||
LOG_TRACE(Kernel_SVC, "called resource_limit={:08X}, names={:08X}, name_count={}",
|
||||
resource_limit_handle, names, name_count);
|
||||
resource_limit_handle, names, name_count);
|
||||
|
||||
SharedPtr<ResourceLimit> resource_limit =
|
||||
g_handle_table.Get<ResourceLimit>(resource_limit_handle);
|
||||
|
@ -705,7 +704,7 @@ static ResultCode GetResourceLimitCurrentValues(VAddr values, Handle resource_li
|
|||
static ResultCode GetResourceLimitLimitValues(VAddr values, Handle resource_limit_handle,
|
||||
VAddr names, u32 name_count) {
|
||||
LOG_TRACE(Kernel_SVC, "called resource_limit={:08X}, names={:08X}, name_count={}",
|
||||
resource_limit_handle, names, name_count);
|
||||
resource_limit_handle, names, name_count);
|
||||
|
||||
SharedPtr<ResourceLimit> resource_limit =
|
||||
g_handle_table.Get<ResourceLimit>(resource_limit_handle);
|
||||
|
@ -746,11 +745,11 @@ static ResultCode CreateThread(Handle* out_handle, u32 priority, u32 entry_point
|
|||
break;
|
||||
case THREADPROCESSORID_ALL:
|
||||
LOG_INFO(Kernel_SVC,
|
||||
"Newly created thread is allowed to be run in any Core, unimplemented.");
|
||||
"Newly created thread is allowed to be run in any Core, unimplemented.");
|
||||
break;
|
||||
case THREADPROCESSORID_1:
|
||||
LOG_ERROR(Kernel_SVC,
|
||||
"Newly created thread must run in the SysCore (Core1), unimplemented.");
|
||||
"Newly created thread must run in the SysCore (Core1), unimplemented.");
|
||||
break;
|
||||
default:
|
||||
// TODO(bunnei): Implement support for other processor IDs
|
||||
|
@ -770,9 +769,9 @@ static ResultCode CreateThread(Handle* out_handle, u32 priority, u32 entry_point
|
|||
Core::System::GetInstance().PrepareReschedule();
|
||||
|
||||
LOG_TRACE(Kernel_SVC,
|
||||
"called entrypoint=0x{:08X} ({}), arg=0x{:08X}, stacktop=0x{:08X}, "
|
||||
"threadpriority=0x{:08X}, processorid=0x{:08X} : created handle=0x{:08X}",
|
||||
entry_point, name, arg, stack_top, priority, processor_id, *out_handle);
|
||||
"called entrypoint=0x{:08X} ({}), arg=0x{:08X}, stacktop=0x{:08X}, "
|
||||
"threadpriority=0x{:08X}, processorid=0x{:08X} : created handle=0x{:08X}",
|
||||
entry_point, name, arg, stack_top, priority, processor_id, *out_handle);
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
@ -830,7 +829,7 @@ static ResultCode CreateMutex(Handle* out_handle, u32 initial_locked) {
|
|||
CASCADE_RESULT(*out_handle, g_handle_table.Create(std::move(mutex)));
|
||||
|
||||
LOG_TRACE(Kernel_SVC, "called initial_locked={} : created handle=0x{:08X}",
|
||||
initial_locked ? "true" : "false", *out_handle);
|
||||
initial_locked ? "true" : "false", *out_handle);
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
@ -893,7 +892,7 @@ static ResultCode CreateSemaphore(Handle* out_handle, s32 initial_count, s32 max
|
|||
CASCADE_RESULT(*out_handle, g_handle_table.Create(std::move(semaphore)));
|
||||
|
||||
LOG_TRACE(Kernel_SVC, "called initial_count={}, max_count={}, created handle=0x{:08X}",
|
||||
initial_count, max_count, *out_handle);
|
||||
initial_count, max_count, *out_handle);
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -944,7 +943,7 @@ static ResultCode CreateEvent(Handle* out_handle, u32 reset_type) {
|
|||
CASCADE_RESULT(*out_handle, g_handle_table.Create(std::move(evt)));
|
||||
|
||||
LOG_TRACE(Kernel_SVC, "called reset_type=0x{:08X} : created handle=0x{:08X}", reset_type,
|
||||
*out_handle);
|
||||
*out_handle);
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -987,7 +986,7 @@ static ResultCode CreateTimer(Handle* out_handle, u32 reset_type) {
|
|||
CASCADE_RESULT(*out_handle, g_handle_table.Create(std::move(timer)));
|
||||
|
||||
LOG_TRACE(Kernel_SVC, "called reset_type=0x{:08X} : created handle=0x{:08X}", reset_type,
|
||||
*out_handle);
|
||||
*out_handle);
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ static void DebugThreadQueue() {
|
|||
LOG_DEBUG(Kernel, "Current: NO CURRENT THREAD");
|
||||
} else {
|
||||
LOG_DEBUG(Kernel, "0x{:02X} {} (current)", thread->current_priority,
|
||||
GetCurrentThread()->GetObjectId());
|
||||
GetCurrentThread()->GetObjectId());
|
||||
}
|
||||
|
||||
for (auto& t : thread_list) {
|
||||
|
@ -376,7 +376,7 @@ ResultVal<SharedPtr<Thread>> Thread::Create(std::string name, VAddr entry_point,
|
|||
|
||||
if (linheap_memory->size() + Memory::PAGE_SIZE > memory_region->size) {
|
||||
LOG_ERROR(Kernel_SVC,
|
||||
"Not enough space in region to allocate a new TLS page for thread");
|
||||
"Not enough space in region to allocate a new TLS page for thread");
|
||||
return ERR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
|
|
@ -261,11 +261,11 @@ void VMManager::LogLayout(Log::Level log_level) const {
|
|||
for (const auto& p : vma_map) {
|
||||
const VirtualMemoryArea& vma = p.second;
|
||||
LOG_GENERIC(::Log::Class::Kernel, log_level, "{:08X} - {:08X} size: {:8X} {}{}{} {}",
|
||||
vma.base, vma.base + vma.size, vma.size,
|
||||
(u8)vma.permissions & (u8)VMAPermission::Read ? 'R' : '-',
|
||||
(u8)vma.permissions & (u8)VMAPermission::Write ? 'W' : '-',
|
||||
(u8)vma.permissions & (u8)VMAPermission::Execute ? 'X' : '-',
|
||||
GetMemoryStateName(vma.meminfo_state));
|
||||
vma.base, vma.base + vma.size, vma.size,
|
||||
(u8)vma.permissions & (u8)VMAPermission::Read ? 'R' : '-',
|
||||
(u8)vma.permissions & (u8)VMAPermission::Write ? 'W' : '-',
|
||||
(u8)vma.permissions & (u8)VMAPermission::Execute ? 'X' : '-',
|
||||
GetMemoryStateName(vma.meminfo_state));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -153,8 +153,8 @@ void Module::Interface::IsConnected(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
rb.Push(ac->ac_connected);
|
||||
|
||||
LOG_WARNING(Service_AC, "(STUBBED) called unk=0x{:08X} descriptor=0x{:08X} param=0x{:08X}",
|
||||
unk, unk_descriptor, unk_param);
|
||||
LOG_WARNING(Service_AC, "(STUBBED) called unk=0x{:08X} descriptor=0x{:08X} param=0x{:08X}", unk,
|
||||
unk_descriptor, unk_param);
|
||||
}
|
||||
|
||||
void Module::Interface::SetClientVersion(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -144,7 +144,7 @@ ResultVal<size_t> CIAFile::WriteContentData(u64 offset, size_t length, const u8*
|
|||
// values can be calculated.
|
||||
content_written[i] += available_to_write;
|
||||
LOG_DEBUG(Service_AM, "Wrote {:x} to content {}, total {:x}", available_to_write, i,
|
||||
content_written[i]);
|
||||
content_written[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@ InstallStatus InstallCIA(const std::string& path,
|
|||
update_callback(total_bytes_read, file.GetSize());
|
||||
if (result.Failed()) {
|
||||
LOG_ERROR(Service_AM, "CIA file installation aborted with error code {:08x}",
|
||||
result.Code().raw);
|
||||
result.Code().raw);
|
||||
return InstallStatus::ErrorAborted;
|
||||
}
|
||||
total_bytes_read += bytes_read;
|
||||
|
@ -386,7 +386,7 @@ std::string GetTitleContentPath(Service::FS::MediaType media_type, u64 tid, u16
|
|||
if (media_type == Service::FS::MediaType::GameCard) {
|
||||
// TODO(shinyquagsire23): get current app file if TID matches?
|
||||
LOG_ERROR(Service_AM, "Request for gamecard partition {} content path unimplemented!",
|
||||
static_cast<u32>(index));
|
||||
static_cast<u32>(index));
|
||||
return "";
|
||||
}
|
||||
|
||||
|
@ -608,7 +608,7 @@ void Module::Interface::DeleteContents(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushMappedBuffer(content_ids_in);
|
||||
LOG_WARNING(Service_AM, "(STUBBED) media_type={}, title_id=0x{:016x}, content_count={}",
|
||||
media_type, title_id, content_count);
|
||||
media_type, title_id, content_count);
|
||||
}
|
||||
|
||||
void Module::Interface::GetProgramList(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -828,8 +828,8 @@ void Module::Interface::ListDataTitleTicketInfos(Kernel::HLERequestContext& ctx)
|
|||
rb.PushMappedBuffer(ticket_info_out);
|
||||
|
||||
LOG_WARNING(Service_AM,
|
||||
"(STUBBED) ticket_count=0x{:08X}, title_id=0x{:016x}, start_index=0x{:08X}",
|
||||
ticket_count, title_id, start_index);
|
||||
"(STUBBED) ticket_count=0x{:08X}, title_id=0x{:016x}, start_index=0x{:08X}",
|
||||
ticket_count, title_id, start_index);
|
||||
}
|
||||
|
||||
void Module::Interface::GetDLCContentInfoCount(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -858,7 +858,7 @@ void Module::Interface::GetDLCContentInfoCount(Kernel::HLERequestContext& ctx) {
|
|||
} else {
|
||||
rb.Push<u32>(1); // Number of content infos plus one
|
||||
LOG_WARNING(Service_AM, "(STUBBED) called media_type={}, title_id=0x{:016x}",
|
||||
static_cast<u32>(media_type), title_id);
|
||||
static_cast<u32>(media_type), title_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -892,7 +892,7 @@ void Module::Interface::GetTicketList(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(ticket_list_count);
|
||||
rb.PushMappedBuffer(ticket_tids_out);
|
||||
LOG_WARNING(Service_AM, "(STUBBED) ticket_list_count=0x{:08x}, ticket_index=0x{:08x}",
|
||||
ticket_list_count, ticket_index);
|
||||
ticket_list_count, ticket_index);
|
||||
}
|
||||
|
||||
void Module::Interface::QueryAvailableTitleDatabase(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -171,7 +171,7 @@ void AppletManager::CancelAndSendParameter(const MessageParameter& parameter) {
|
|||
auto* const slot_data = GetAppletSlotData(static_cast<AppletId>(parameter.destination_id));
|
||||
if (slot_data == nullptr) {
|
||||
LOG_DEBUG(Service_APT, "No applet was registered with the id {:03X}",
|
||||
static_cast<u32>(parameter.destination_id));
|
||||
static_cast<u32>(parameter.destination_id));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ ResultCode AppletManager::PrepareToStartLibraryApplet(AppletId applet_id) {
|
|||
auto applet = HLE::Applets::Applet::Get(applet_id);
|
||||
if (applet) {
|
||||
LOG_WARNING(Service_APT, "applet has already been started id={:08X}",
|
||||
static_cast<u32>(applet_id));
|
||||
static_cast<u32>(applet_id));
|
||||
return RESULT_SUCCESS;
|
||||
} else {
|
||||
return HLE::Applets::Applet::Create(applet_id, shared_from_this());
|
||||
|
@ -354,7 +354,7 @@ ResultCode AppletManager::PreloadLibraryApplet(AppletId applet_id) {
|
|||
auto applet = HLE::Applets::Applet::Get(applet_id);
|
||||
if (applet) {
|
||||
LOG_WARNING(Service_APT, "applet has already been started id={:08X}",
|
||||
static_cast<u32>(applet_id));
|
||||
static_cast<u32>(applet_id));
|
||||
return RESULT_SUCCESS;
|
||||
} else {
|
||||
return HLE::Applets::Applet::Create(applet_id, shared_from_this());
|
||||
|
@ -401,7 +401,7 @@ ResultVal<AppletManager::AppletInfo> AppletManager::GetAppletInfo(AppletId app_i
|
|||
ErrorSummary::NotFound, ErrorLevel::Status);
|
||||
}
|
||||
LOG_WARNING(Service_APT, "Using HLE applet info for applet {:03X}",
|
||||
static_cast<u32>(app_id));
|
||||
static_cast<u32>(app_id));
|
||||
// TODO(Subv): Get the title id for the current applet and write it in the response[2-3]
|
||||
return MakeResult<AppletInfo>({0, Service::FS::MediaType::NAND, true, true, 0});
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ void Module::Interface::Initialize(Kernel::HLERequestContext& ctx) {
|
|||
AppletId app_id = rp.PopEnum<AppletId>();
|
||||
u32 attributes = rp.Pop<u32>();
|
||||
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, attributes={:#010X}",
|
||||
static_cast<u32>(app_id), attributes);
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, attributes={:#010X}", static_cast<u32>(app_id),
|
||||
attributes);
|
||||
|
||||
auto result = apt->applet_manager->Initialize(app_id, attributes);
|
||||
if (result.Failed()) {
|
||||
|
@ -307,10 +307,10 @@ void Module::Interface::SendParameter(Kernel::HLERequestContext& ctx) {
|
|||
std::vector<u8> buffer = rp.PopStaticBuffer();
|
||||
|
||||
LOG_DEBUG(Service_APT,
|
||||
"called src_app_id={:#010X}, dst_app_id={:#010X}, signal_type={:#010X},"
|
||||
"buffer_size={:#010X}",
|
||||
static_cast<u32>(src_app_id), static_cast<u32>(dst_app_id),
|
||||
static_cast<u32>(signal_type), buffer_size);
|
||||
"called src_app_id={:#010X}, dst_app_id={:#010X}, signal_type={:#010X},"
|
||||
"buffer_size={:#010X}",
|
||||
static_cast<u32>(src_app_id), static_cast<u32>(dst_app_id),
|
||||
static_cast<u32>(signal_type), buffer_size);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
|
||||
|
@ -329,8 +329,8 @@ void Module::Interface::ReceiveParameter(Kernel::HLERequestContext& ctx) {
|
|||
AppletId app_id = rp.PopEnum<AppletId>();
|
||||
u32 buffer_size = rp.Pop<u32>();
|
||||
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, buffer_size={:#010X}",
|
||||
static_cast<u32>(app_id), buffer_size);
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, buffer_size={:#010X}", static_cast<u32>(app_id),
|
||||
buffer_size);
|
||||
|
||||
auto next_parameter = apt->applet_manager->ReceiveParameter(app_id);
|
||||
|
||||
|
@ -357,8 +357,8 @@ void Module::Interface::GlanceParameter(Kernel::HLERequestContext& ctx) {
|
|||
AppletId app_id = rp.PopEnum<AppletId>();
|
||||
u32 buffer_size = rp.Pop<u32>();
|
||||
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, buffer_size={:#010X}",
|
||||
static_cast<u32>(app_id), buffer_size);
|
||||
LOG_DEBUG(Service_APT, "called app_id={:#010X}, buffer_size={:#010X}", static_cast<u32>(app_id),
|
||||
buffer_size);
|
||||
|
||||
auto next_parameter = apt->applet_manager->GlanceParameter(app_id);
|
||||
|
||||
|
@ -394,10 +394,10 @@ void Module::Interface::CancelParameter(Kernel::HLERequestContext& ctx) {
|
|||
receiver_appid));
|
||||
|
||||
LOG_DEBUG(Service_APT,
|
||||
"called check_sender={}, sender_appid={:#010X}, "
|
||||
"check_receiver={}, receiver_appid={:#010X}",
|
||||
check_sender, static_cast<u32>(sender_appid), check_receiver,
|
||||
static_cast<u32>(receiver_appid));
|
||||
"called check_sender={}, sender_appid={:#010X}, "
|
||||
"check_receiver={}, receiver_appid={:#010X}",
|
||||
check_sender, static_cast<u32>(sender_appid), check_receiver,
|
||||
static_cast<u32>(receiver_appid));
|
||||
}
|
||||
|
||||
void Module::Interface::PrepareToStartApplication(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -415,11 +415,10 @@ void Module::Interface::PrepareToStartApplication(Kernel::HLERequestContext& ctx
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS); // No error
|
||||
|
||||
LOG_WARNING(
|
||||
Service_APT,
|
||||
"(STUBBED) called title_info1={:#010X}, title_info2={:#010X}, title_info3={:#010X},"
|
||||
"title_info4={:#010X}, flags={:#010X}",
|
||||
title_info1, title_info2, title_info3, title_info4, flags);
|
||||
LOG_WARNING(Service_APT,
|
||||
"(STUBBED) called title_info1={:#010X}, title_info2={:#010X}, title_info3={:#010X},"
|
||||
"title_info4={:#010X}, flags={:#010X}",
|
||||
title_info1, title_info2, title_info3, title_info4, flags);
|
||||
}
|
||||
|
||||
void Module::Interface::StartApplication(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -434,8 +433,8 @@ void Module::Interface::StartApplication(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS); // No error
|
||||
|
||||
LOG_WARNING(Service_APT,
|
||||
"(STUBBED) called buffer1_size={:#010X}, buffer2_size={:#010X}, flag={:#010X}",
|
||||
buffer1_size, buffer2_size, flag);
|
||||
"(STUBBED) called buffer1_size={:#010X}, buffer2_size={:#010X}, flag={:#010X}",
|
||||
buffer1_size, buffer2_size, flag);
|
||||
}
|
||||
|
||||
void Module::Interface::AppletUtility(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -451,8 +450,8 @@ void Module::Interface::AppletUtility(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS); // No error
|
||||
|
||||
LOG_WARNING(Service_APT,
|
||||
"(STUBBED) called command={:#010X}, input_size={:#010X}, output_size={:#010X}",
|
||||
utility_command, input_size, output_size);
|
||||
"(STUBBED) called command={:#010X}, input_size={:#010X}, output_size={:#010X}",
|
||||
utility_command, input_size, output_size);
|
||||
}
|
||||
|
||||
void Module::Interface::SetAppCpuTimeLimit(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -467,8 +466,7 @@ void Module::Interface::SetAppCpuTimeLimit(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS); // No error
|
||||
|
||||
LOG_WARNING(Service_APT, "(STUBBED) called, cpu_percent={}, value={}", apt->cpu_percent,
|
||||
value);
|
||||
LOG_WARNING(Service_APT, "(STUBBED) called, cpu_percent={}, value={}", apt->cpu_percent, value);
|
||||
}
|
||||
|
||||
void Module::Interface::GetAppCpuTimeLimit(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -583,7 +581,7 @@ void Module::Interface::SetScreenCapPostPermission(Kernel::HLERequestContext& ct
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS); // No error
|
||||
LOG_WARNING(Service_APT, "(STUBBED) called, screen_capture_post_permission={}",
|
||||
static_cast<u32>(apt->screen_capture_post_permission));
|
||||
static_cast<u32>(apt->screen_capture_post_permission));
|
||||
}
|
||||
|
||||
void Module::Interface::GetScreenCapPostPermission(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -593,7 +591,7 @@ void Module::Interface::GetScreenCapPostPermission(Kernel::HLERequestContext& ct
|
|||
rb.Push(RESULT_SUCCESS); // No error
|
||||
rb.Push(static_cast<u32>(apt->screen_capture_post_permission));
|
||||
LOG_WARNING(Service_APT, "(STUBBED) called, screen_capture_post_permission={}",
|
||||
static_cast<u32>(apt->screen_capture_post_permission));
|
||||
static_cast<u32>(apt->screen_capture_post_permission));
|
||||
}
|
||||
|
||||
void Module::Interface::GetAppletInfo(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -632,9 +630,8 @@ void Module::Interface::GetStartupArgument(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
std::vector<u8> parameter(parameter_size, 0);
|
||||
|
||||
LOG_WARNING(Service_APT,
|
||||
"(STUBBED) called, startup_argument_type={}, parameter_size={:#010X}",
|
||||
static_cast<u32>(startup_argument_type), parameter_size);
|
||||
LOG_WARNING(Service_APT, "(STUBBED) called, startup_argument_type={}, parameter_size={:#010X}",
|
||||
static_cast<u32>(startup_argument_type), parameter_size);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
|
@ -658,9 +655,8 @@ void Module::Interface::Wrap(Kernel::HLERequestContext& ctx) {
|
|||
ASSERT_MSG(output_size == input_size + HW::AES::CCM_MAC_SIZE,
|
||||
"input_size ({}) doesn't match to output_size ({})", input_size, output_size);
|
||||
|
||||
LOG_DEBUG(Service_APT,
|
||||
"called, output_size={}, input_size={}, nonce_offset={}, nonce_size={}",
|
||||
output_size, input_size, nonce_offset, nonce_size);
|
||||
LOG_DEBUG(Service_APT, "called, output_size={}, input_size={}, nonce_offset={}, nonce_size={}",
|
||||
output_size, input_size, nonce_offset, nonce_size);
|
||||
|
||||
// Note: This weird nonce size modification is verified against real 3DS
|
||||
nonce_size = std::min<u32>(nonce_size & ~3, HW::AES::CCM_NONCE_SIZE);
|
||||
|
@ -704,9 +700,8 @@ void Module::Interface::Unwrap(Kernel::HLERequestContext& ctx) {
|
|||
ASSERT_MSG(output_size == input_size - HW::AES::CCM_MAC_SIZE,
|
||||
"input_size ({}) doesn't match to output_size ({})", input_size, output_size);
|
||||
|
||||
LOG_DEBUG(Service_APT,
|
||||
"called, output_size={}, input_size={}, nonce_offset={}, nonce_size={}",
|
||||
output_size, input_size, nonce_offset, nonce_size);
|
||||
LOG_DEBUG(Service_APT, "called, output_size={}, input_size={}, nonce_offset={}, nonce_size={}",
|
||||
output_size, input_size, nonce_offset, nonce_size);
|
||||
|
||||
// Note: This weird nonce size modification is verified against real 3DS
|
||||
nonce_size = std::min<u32>(nonce_size & ~3, HW::AES::CCM_NONCE_SIZE);
|
||||
|
|
|
@ -36,8 +36,8 @@ void InitializeSession(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param={:#018X}, translation={:#010X}, unk_param4={:#010X}",
|
||||
unk_param, translation, unk_param4);
|
||||
"(STUBBED) unk_param={:#018X}, translation={:#010X}, unk_param4={:#010X}",
|
||||
unk_param, translation, unk_param4);
|
||||
}
|
||||
|
||||
void RegisterStorage(Service::Interface* self) {
|
||||
|
@ -52,9 +52,9 @@ void RegisterStorage(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_flag={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_flag);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_flag={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_flag);
|
||||
}
|
||||
|
||||
void UnregisterStorage(Service::Interface* self) {
|
||||
|
@ -89,8 +89,8 @@ void RegisterPrivateRootCa(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) translation={:#010X}, buff_addr{:#010X}, buff_size={:#010X}",
|
||||
translation, buff_addr, buff_size);
|
||||
"(STUBBED) translation={:#010X}, buff_addr{:#010X}, buff_size={:#010X}",
|
||||
translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void RegisterPrivateClientCert(Service::Interface* self) {
|
||||
|
@ -113,11 +113,11 @@ void RegisterPrivateClientCert(Service::Interface* self) {
|
|||
cmd_buff[3] = buff2_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
}
|
||||
|
||||
void GetNewArrivalFlag(Service::Interface* self) {
|
||||
|
@ -140,7 +140,7 @@ void RegisterNewArrivalEvent(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
|
||||
unk_param2);
|
||||
unk_param2);
|
||||
}
|
||||
|
||||
void SetOptoutFlag(Service::Interface* self) {
|
||||
|
@ -180,9 +180,9 @@ void RegisterTask(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void UnregisterTask(Service::Interface* self) {
|
||||
|
@ -200,9 +200,9 @@ void UnregisterTask(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void ReconfigureTask(Service::Interface* self) {
|
||||
|
@ -220,9 +220,9 @@ void ReconfigureTask(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskIdList(Service::Interface* self) {
|
||||
|
@ -247,8 +247,8 @@ void GetStepIdList(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
translation, buff_addr, buff_size);
|
||||
"(STUBBED) translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetNsDataIdList(Service::Interface* self) {
|
||||
|
@ -270,11 +270,10 @@ void GetNsDataIdList(Service::Interface* self) {
|
|||
cmd_buff[5] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
||||
buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetOwnNsDataIdList(Service::Interface* self) {
|
||||
|
@ -296,11 +295,10 @@ void GetOwnNsDataIdList(Service::Interface* self) {
|
|||
cmd_buff[5] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
||||
buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetNewDataNsDataIdList(Service::Interface* self) {
|
||||
|
@ -322,11 +320,10 @@ void GetNewDataNsDataIdList(Service::Interface* self) {
|
|||
cmd_buff[5] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
||||
buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetOwnNewDataNsDataIdList(Service::Interface* self) {
|
||||
|
@ -348,11 +345,10 @@ void GetOwnNewDataNsDataIdList(Service::Interface* self) {
|
|||
cmd_buff[5] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
||||
buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void SendProperty(Service::Interface* self) {
|
||||
|
@ -370,9 +366,9 @@ void SendProperty(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void SendPropertyHandle(Service::Interface* self) {
|
||||
|
@ -389,9 +385,9 @@ void SendPropertyHandle(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void ReceiveProperty(Service::Interface* self) {
|
||||
|
@ -409,9 +405,9 @@ void ReceiveProperty(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, buff_size={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, buff_size, translation, buff_addr);
|
||||
"(STUBBED) unk_param1={:#010X}, buff_size={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, buff_size, translation, buff_addr);
|
||||
}
|
||||
|
||||
void UpdateTaskInterval(Service::Interface* self) {
|
||||
|
@ -429,9 +425,9 @@ void UpdateTaskInterval(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void UpdateTaskCount(Service::Interface* self) {
|
||||
|
@ -448,9 +444,9 @@ void UpdateTaskCount(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
buff_size, unk_param2, translation, buff_addr);
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
buff_size, unk_param2, translation, buff_addr);
|
||||
}
|
||||
|
||||
void GetTaskInterval(Service::Interface* self) {
|
||||
|
@ -468,9 +464,9 @@ void GetTaskInterval(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskCount(Service::Interface* self) {
|
||||
|
@ -488,9 +484,9 @@ void GetTaskCount(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskServiceStatus(Service::Interface* self) {
|
||||
|
@ -508,9 +504,9 @@ void GetTaskServiceStatus(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void StartTask(Service::Interface* self) {
|
||||
|
@ -527,9 +523,9 @@ void StartTask(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void StartTaskImmediate(Service::Interface* self) {
|
||||
|
@ -546,9 +542,9 @@ void StartTaskImmediate(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void CancelTask(Service::Interface* self) {
|
||||
|
@ -565,9 +561,9 @@ void CancelTask(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskFinishHandle(Service::Interface* self) {
|
||||
|
@ -598,9 +594,9 @@ void GetTaskState(Service::Interface* self) {
|
|||
cmd_buff[6] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
buff_size, unk_param2, translation, buff_addr);
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
buff_size, unk_param2, translation, buff_addr);
|
||||
}
|
||||
|
||||
void GetTaskResult(Service::Interface* self) {
|
||||
|
@ -620,9 +616,9 @@ void GetTaskResult(Service::Interface* self) {
|
|||
cmd_buff[6] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskCommErrorCode(Service::Interface* self) {
|
||||
|
@ -642,9 +638,9 @@ void GetTaskCommErrorCode(Service::Interface* self) {
|
|||
cmd_buff[6] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskStatus(Service::Interface* self) {
|
||||
|
@ -664,9 +660,9 @@ void GetTaskStatus(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskError(Service::Interface* self) {
|
||||
|
@ -685,9 +681,9 @@ void GetTaskError(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskInfo(Service::Interface* self) {
|
||||
|
@ -705,9 +701,9 @@ void GetTaskInfo(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void DeleteNsData(Service::Interface* self) {
|
||||
|
@ -737,9 +733,9 @@ void GetNsDataHeaderInfo(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void ReadNsData(Service::Interface* self) {
|
||||
|
@ -761,11 +757,10 @@ void ReadNsData(Service::Interface* self) {
|
|||
cmd_buff[5] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr,
|
||||
buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, translation={:#010X}, "
|
||||
"buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void SetNsDataAdditionalInfo(Service::Interface* self) {
|
||||
|
@ -778,7 +773,7 @@ void SetNsDataAdditionalInfo(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}", unk_param1,
|
||||
unk_param2);
|
||||
unk_param2);
|
||||
}
|
||||
|
||||
void GetNsDataAdditionalInfo(Service::Interface* self) {
|
||||
|
@ -803,7 +798,7 @@ void SetNsDataNewFlag(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
|
||||
unk_param1, ns_data_new_flag);
|
||||
unk_param1, ns_data_new_flag);
|
||||
}
|
||||
|
||||
void GetNsDataNewFlag(Service::Interface* self) {
|
||||
|
@ -816,7 +811,7 @@ void GetNsDataNewFlag(Service::Interface* self) {
|
|||
cmd_buff[2] = ns_data_new_flag;
|
||||
|
||||
LOG_WARNING(Service_BOSS, "(STUBBED) unk_param1={:#010X}, ns_data_new_flag={:#010X}",
|
||||
unk_param1, ns_data_new_flag);
|
||||
unk_param1, ns_data_new_flag);
|
||||
}
|
||||
|
||||
void GetNsDataLastUpdate(Service::Interface* self) {
|
||||
|
@ -857,9 +852,9 @@ void RegisterStorageEntry(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, unk_param5={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, unk_param5);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"unk_param4={:#010X}, unk_param5={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4, unk_param5);
|
||||
}
|
||||
|
||||
void GetStorageEntryInfo(Service::Interface* self) {
|
||||
|
@ -885,9 +880,9 @@ void SetStorageOption(Service::Interface* self) {
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"unk_param3={:#010X}, unk_param4={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"unk_param3={:#010X}, unk_param4={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, unk_param4);
|
||||
}
|
||||
|
||||
void GetStorageOption(Service::Interface* self) {
|
||||
|
@ -917,9 +912,9 @@ void StartBgImmediate(Service::Interface* self) {
|
|||
cmd_buff[3] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void GetTaskActivePriority(Service::Interface* self) {
|
||||
|
@ -937,9 +932,9 @@ void GetTaskActivePriority(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
"(STUBBED) buff_size={:#010X}, unk_param2={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}",
|
||||
unk_param1, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void RegisterImmediateTask(Service::Interface* self) {
|
||||
|
@ -958,9 +953,9 @@ void RegisterImmediateTask(Service::Interface* self) {
|
|||
cmd_buff[4] = buff_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, unk_param3={:#010X}, "
|
||||
"translation={:#010X}, buff_addr={:#010X}, buff_size={:#010X}",
|
||||
unk_param1, unk_param2, unk_param3, translation, buff_addr, buff_size);
|
||||
}
|
||||
|
||||
void SetTaskQuery(Service::Interface* self) {
|
||||
|
@ -983,11 +978,11 @@ void SetTaskQuery(Service::Interface* self) {
|
|||
cmd_buff[3] = buff2_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
}
|
||||
|
||||
void GetTaskQuery(Service::Interface* self) {
|
||||
|
@ -1010,11 +1005,11 @@ void GetTaskQuery(Service::Interface* self) {
|
|||
cmd_buff[3] = buff2_addr;
|
||||
|
||||
LOG_WARNING(Service_BOSS,
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
"(STUBBED) unk_param1={:#010X}, unk_param2={:#010X}, "
|
||||
"translation1={:#010X}, buff1_addr={:#010X}, buff1_size={:#010X}, "
|
||||
"translation2={:#010X}, buff2_addr={:#010X}, buff2_size={:#010X}",
|
||||
unk_param1, unk_param2, translation1, buff1_addr, buff1_size, translation2,
|
||||
buff2_addr, buff2_size);
|
||||
}
|
||||
|
||||
void Init() {
|
||||
|
|
|
@ -87,7 +87,7 @@ void Module::CompletionEventCallBack(u64 port_id, int) {
|
|||
if (port.x1 <= port.x0 || port.y1 <= port.y0 || port.x1 > original_width ||
|
||||
port.y1 > original_height) {
|
||||
LOG_ERROR(Service_CAM, "Invalid trimming coordinates x0={}, y0={}, x1={}, y1={}",
|
||||
port.x0, port.y0, port.x1, port.y1);
|
||||
port.x0, port.y0, port.x1, port.y1);
|
||||
trim_width = 0;
|
||||
trim_height = 0;
|
||||
} else {
|
||||
|
@ -98,7 +98,7 @@ void Module::CompletionEventCallBack(u64 port_id, int) {
|
|||
u32 trim_size = (port.x1 - port.x0) * (port.y1 - port.y0) * 2;
|
||||
if (port.dest_size != trim_size) {
|
||||
LOG_ERROR(Service_CAM, "The destination size ({}) doesn't match the source ({})!",
|
||||
port.dest_size, trim_size);
|
||||
port.dest_size, trim_size);
|
||||
}
|
||||
|
||||
const u32 src_offset = port.y0 * original_width + port.x0;
|
||||
|
@ -125,7 +125,7 @@ void Module::CompletionEventCallBack(u64 port_id, int) {
|
|||
std::size_t buffer_size = buffer.size() * sizeof(u16);
|
||||
if (port.dest_size != buffer_size) {
|
||||
LOG_ERROR(Service_CAM, "The destination size ({}) doesn't match the source ({})!",
|
||||
port.dest_size, buffer_size);
|
||||
port.dest_size, buffer_size);
|
||||
}
|
||||
Memory::WriteBlock(*port.dest_process, port.dest, buffer.data(),
|
||||
std::min<size_t>(port.dest_size, buffer_size));
|
||||
|
@ -361,7 +361,7 @@ void Module::Interface::SetReceiving(Kernel::HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, addr=0x{:X}, port_select={}, image_size={}, trans_unit={}",
|
||||
dest, port_select.m_val, image_size, trans_unit);
|
||||
dest, port_select.m_val, image_size, trans_unit);
|
||||
}
|
||||
|
||||
void Module::Interface::IsFinishedReceiving(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -402,7 +402,7 @@ void Module::Interface::SetTransferLines(Kernel::HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
LOG_WARNING(Service_CAM, "(STUBBED) called, port_select={}, lines={}, width={}, height={}",
|
||||
port_select.m_val, transfer_lines, width, height);
|
||||
port_select.m_val, transfer_lines, width, height);
|
||||
}
|
||||
|
||||
void Module::Interface::GetMaxLines(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -457,7 +457,7 @@ void Module::Interface::SetTransferBytes(Kernel::HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
LOG_WARNING(Service_CAM, "(STUBBED)called, port_select={}, bytes={}, width={}, height={}",
|
||||
port_select.m_val, transfer_bytes, width, height);
|
||||
port_select.m_val, transfer_bytes, width, height);
|
||||
}
|
||||
|
||||
void Module::Interface::GetTransferBytes(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -564,8 +564,8 @@ void Module::Interface::SetTrimmingParams(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, port_select={}, x0={}, y0={}, x1={}, y1={}",
|
||||
port_select.m_val, x0, y0, x1, y1);
|
||||
LOG_DEBUG(Service_CAM, "called, port_select={}, x0={}, y0={}, x1={}, y1={}", port_select.m_val,
|
||||
x0, y0, x1, y1);
|
||||
}
|
||||
|
||||
void Module::Interface::GetTrimmingParams(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -612,7 +612,7 @@ void Module::Interface::SetTrimmingParamsCenter(Kernel::HLERequestContext& ctx)
|
|||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, port_select={}, trim_w={}, trim_h={}, cam_w={}, cam_h={}",
|
||||
port_select.m_val, trim_w, trim_h, cam_w, cam_h);
|
||||
port_select.m_val, trim_w, trim_h, cam_w, cam_h);
|
||||
}
|
||||
|
||||
void Module::Interface::Activate(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -673,12 +673,12 @@ void Module::Interface::SwitchContext(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::FlipImage(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -700,12 +700,12 @@ void Module::Interface::FlipImage(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, camera_select={}, flip={}, context_select={}",
|
||||
camera_select.m_val, static_cast<int>(flip), context_select.m_val);
|
||||
camera_select.m_val, static_cast<int>(flip), context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::SetDetailSize(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -733,15 +733,15 @@ void Module::Interface::SetDetailSize(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM,
|
||||
"called, camera_select={}, width={}, height={}, crop_x0={}, crop_y0={}, "
|
||||
"crop_x1={}, crop_y1={}, context_select={}",
|
||||
camera_select.m_val, resolution.width, resolution.height, resolution.crop_x0,
|
||||
resolution.crop_y0, resolution.crop_x1, resolution.crop_y1, context_select.m_val);
|
||||
"called, camera_select={}, width={}, height={}, crop_x0={}, crop_y0={}, "
|
||||
"crop_x1={}, crop_y1={}, context_select={}",
|
||||
camera_select.m_val, resolution.width, resolution.height, resolution.crop_x0,
|
||||
resolution.crop_y0, resolution.crop_x1, resolution.crop_y1, context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::SetSize(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -763,12 +763,12 @@ void Module::Interface::SetSize(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, camera_select={}, size={}, context_select={}",
|
||||
camera_select.m_val, size, context_select.m_val);
|
||||
camera_select.m_val, size, context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::SetFrameRate(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -789,7 +789,7 @@ void Module::Interface::SetFrameRate(Kernel::HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
LOG_WARNING(Service_CAM, "(STUBBED) called, camera_select={}, frame_rate={}",
|
||||
camera_select.m_val, static_cast<int>(frame_rate));
|
||||
camera_select.m_val, static_cast<int>(frame_rate));
|
||||
}
|
||||
|
||||
void Module::Interface::SetEffect(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -811,12 +811,12 @@ void Module::Interface::SetEffect(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, camera_select={}, effect={}, context_select={}",
|
||||
camera_select.m_val, static_cast<int>(effect), context_select.m_val);
|
||||
camera_select.m_val, static_cast<int>(effect), context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::SetOutputFormat(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -838,12 +838,12 @@ void Module::Interface::SetOutputFormat(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", camera_select.m_val,
|
||||
context_select.m_val);
|
||||
context_select.m_val);
|
||||
rb.Push(ERROR_INVALID_ENUM_VALUE);
|
||||
}
|
||||
|
||||
LOG_DEBUG(Service_CAM, "called, camera_select={}, format={}, context_select={}",
|
||||
camera_select.m_val, static_cast<int>(format), context_select.m_val);
|
||||
camera_select.m_val, static_cast<int>(format), context_select.m_val);
|
||||
}
|
||||
|
||||
void Module::Interface::SynchronizeVsyncTiming(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -855,7 +855,7 @@ void Module::Interface::SynchronizeVsyncTiming(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_WARNING(Service_CAM, "(STUBBED) called, camera_select1={}, camera_select2={}",
|
||||
camera_select1, camera_select2);
|
||||
camera_select1, camera_select2);
|
||||
}
|
||||
|
||||
void Module::Interface::GetStereoCameraCalibrationData(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -918,8 +918,8 @@ ResultCode Module::SetPackageParameter(const PackageParameterType& package) {
|
|||
}
|
||||
return RESULT_SUCCESS;
|
||||
} else {
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}",
|
||||
package.camera_select, package.context_select);
|
||||
LOG_ERROR(Service_CAM, "invalid camera_select={}, context_select={}", package.camera_select,
|
||||
package.context_select);
|
||||
return ERROR_INVALID_ENUM_VALUE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ void Module::Interface::GetCountryCodeID(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0);
|
||||
if (0 == country_code_id) {
|
||||
LOG_ERROR(Service_CFG, "requested country code name={}{} is invalid",
|
||||
static_cast<char>(country_code & 0xff), static_cast<char>(country_code >> 8));
|
||||
static_cast<char>(country_code & 0xff), static_cast<char>(country_code >> 8));
|
||||
rb.Push(ResultCode(ErrorDescription::NotFound, ErrorModule::Config,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent));
|
||||
rb.Push<u16>(0x00FF);
|
||||
|
@ -310,21 +310,21 @@ ResultVal<void*> Module::GetConfigInfoBlockPointer(u32 block_id, u32 size, u32 f
|
|||
|
||||
if (itr == std::end(config->block_entries)) {
|
||||
LOG_ERROR(Service_CFG, "Config block 0x{:X} with flags {} and size {} was not found",
|
||||
block_id, flag, size);
|
||||
block_id, flag, size);
|
||||
return ResultCode(ErrorDescription::NotFound, ErrorModule::Config,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent);
|
||||
}
|
||||
|
||||
if ((itr->flags & flag) == 0) {
|
||||
LOG_ERROR(Service_CFG, "Invalid flag {} for config block 0x{:X} with size {}", flag,
|
||||
block_id, size);
|
||||
block_id, size);
|
||||
return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::Config,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent);
|
||||
}
|
||||
|
||||
if (itr->size != size) {
|
||||
LOG_ERROR(Service_CFG, "Invalid size {} for config block 0x{:X} with flags {}", size,
|
||||
block_id, flag);
|
||||
block_id, flag);
|
||||
return ResultCode(ErrorDescription::InvalidSize, ErrorModule::Config,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Permanent);
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ void Module::SetPreferredRegionCode(u32 region_code) {
|
|||
AdjustLanguageInfoBlock(region_code, current_language);
|
||||
if (current_language != adjusted_language) {
|
||||
LOG_WARNING(Service_CFG, "System language {} does not fit the region. Adjusted to {}",
|
||||
static_cast<int>(current_language), static_cast<int>(adjusted_language));
|
||||
static_cast<int>(current_language), static_cast<int>(adjusted_language));
|
||||
SetSystemLanguage(adjusted_language);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,11 +147,11 @@ static void LoadComponent(Service::Interface* self) {
|
|||
Memory::ReadBlock(buffer, component_data.data(), component_data.size());
|
||||
|
||||
LOG_INFO(Service_DSP, "Firmware hash: {:#018x}",
|
||||
Common::ComputeHash64(component_data.data(), component_data.size()));
|
||||
Common::ComputeHash64(component_data.data(), component_data.size()));
|
||||
// Some versions of the firmware have the location of DSP structures listed here.
|
||||
if (size > 0x37C) {
|
||||
LOG_INFO(Service_DSP, "Structures hash: {:#018x}",
|
||||
Common::ComputeHash64(component_data.data() + 0x340, 60));
|
||||
Common::ComputeHash64(component_data.data() + 0x340, 60));
|
||||
}
|
||||
LOG_WARNING(
|
||||
Service_DSP,
|
||||
|
@ -198,8 +198,8 @@ static void FlushDataCache(Service::Interface* self) {
|
|||
cmd_buff[0] = IPC::MakeHeader(0x13, 1, 0);
|
||||
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||
|
||||
LOG_TRACE(Service_DSP, "called address=0x{:08X}, size=0x{:X}, process=0x{:08X}", address,
|
||||
size, process);
|
||||
LOG_TRACE(Service_DSP, "called address=0x{:08X}, size=0x{:X}, process=0x{:08X}", address, size,
|
||||
process);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -231,15 +231,15 @@ static void RegisterInterruptEvents(Service::Interface* self) {
|
|||
|
||||
if (!evt) {
|
||||
LOG_INFO(Service_DSP, "Invalid event handle! type={}, pipe={}, event_handle=0x{:08X}",
|
||||
type_index, pipe_index, event_handle);
|
||||
type_index, pipe_index, event_handle);
|
||||
ASSERT(false); // TODO: This should really be handled at an IPC translation layer.
|
||||
}
|
||||
|
||||
if (interrupt_events.HasTooManyEventsRegistered()) {
|
||||
LOG_INFO(Service_DSP,
|
||||
"Ran out of space to register interrupts (Attempted to register "
|
||||
"type={}, pipe={}, event_handle=0x{:08X})",
|
||||
type_index, pipe_index, event_handle);
|
||||
"Ran out of space to register interrupts (Attempted to register "
|
||||
"type={}, pipe={}, event_handle=0x{:08X})",
|
||||
type_index, pipe_index, event_handle);
|
||||
cmd_buff[1] = ResultCode(ErrorDescription::InvalidResultValue, ErrorModule::DSP,
|
||||
ErrorSummary::OutOfResource, ErrorLevel::Status)
|
||||
.raw;
|
||||
|
@ -248,12 +248,12 @@ static void RegisterInterruptEvents(Service::Interface* self) {
|
|||
|
||||
interrupt_events.Get(type, pipe) = evt;
|
||||
LOG_INFO(Service_DSP, "Registered type={}, pipe={}, event_handle=0x{:08X}", type_index,
|
||||
pipe_index, event_handle);
|
||||
pipe_index, event_handle);
|
||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
} else {
|
||||
interrupt_events.Get(type, pipe) = nullptr;
|
||||
LOG_INFO(Service_DSP, "Unregistered interrupt={}, channel={}, event_handle=0x{:08X}",
|
||||
type_index, pipe_index, event_handle);
|
||||
type_index, pipe_index, event_handle);
|
||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||
}
|
||||
}
|
||||
|
@ -296,9 +296,9 @@ static void WriteProcessPipe(Service::Interface* self) {
|
|||
|
||||
if (IPC::StaticBufferDesc(size, 1) != cmd_buff[3]) {
|
||||
LOG_ERROR(Service_DSP,
|
||||
"IPC static buffer descriptor failed validation (0x{:X}). pipe={}, "
|
||||
"size=0x{:X}, buffer=0x{:08X}",
|
||||
cmd_buff[3], pipe_index, size, buffer);
|
||||
"IPC static buffer descriptor failed validation (0x{:X}). pipe={}, "
|
||||
"size=0x{:X}, buffer=0x{:08X}",
|
||||
cmd_buff[3], pipe_index, size, buffer);
|
||||
cmd_buff[0] = IPC::MakeHeader(0, 1, 0);
|
||||
cmd_buff[1] = IPC::ERR_INVALID_BUFFER_DESCRIPTOR.raw;
|
||||
return;
|
||||
|
@ -454,7 +454,7 @@ static void GetPipeReadableSize(Service::Interface* self) {
|
|||
cmd_buff[2] = static_cast<u32>(Core::DSP().GetPipeReadableSize(pipe));
|
||||
|
||||
LOG_DEBUG(Service_DSP, "pipe={}, unknown=0x{:08X}, return cmd_buff[2]=0x{:08X}", pipe_index,
|
||||
unknown, cmd_buff[2]);
|
||||
unknown, cmd_buff[2]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -134,11 +134,11 @@ static std::string GetCurrentSystemTime() {
|
|||
static void LogGenericInfo(const ErrInfo::ErrInfoCommon& errinfo_common) {
|
||||
LOG_CRITICAL(Service_ERR, "PID: 0x{:08X}", errinfo_common.pid);
|
||||
LOG_CRITICAL(Service_ERR, "REV: 0x{:08X}_0x{:08X}", errinfo_common.rev_high,
|
||||
errinfo_common.rev_low);
|
||||
errinfo_common.rev_low);
|
||||
LOG_CRITICAL(Service_ERR, "TID: 0x{:08X}_0x{:08X}", errinfo_common.title_id_high,
|
||||
errinfo_common.title_id_low);
|
||||
errinfo_common.title_id_low);
|
||||
LOG_CRITICAL(Service_ERR, "AID: 0x{:08X}_0x{:08X}", errinfo_common.app_title_id_high,
|
||||
errinfo_common.app_title_id_low);
|
||||
errinfo_common.app_title_id_low);
|
||||
LOG_CRITICAL(Service_ERR, "ADR: 0x{:08X}", errinfo_common.pc_address);
|
||||
|
||||
ResultCode result_code{errinfo_common.result_code};
|
||||
|
@ -154,8 +154,7 @@ void ERR_F::ThrowFatalError(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
LOG_CRITICAL(Service_ERR, "Fatal error");
|
||||
const ErrInfo errinfo = rp.PopRaw<ErrInfo>();
|
||||
LOG_CRITICAL(Service_ERR, "Fatal error type: {}",
|
||||
GetErrType(errinfo.errinfo_common.specifier));
|
||||
LOG_CRITICAL(Service_ERR, "Fatal error type: {}", GetErrType(errinfo.errinfo_common.specifier));
|
||||
Core::System::GetInstance().SetStatus(Core::System::ResultStatus::ErrorUnknown);
|
||||
|
||||
// Generic Info
|
||||
|
@ -178,23 +177,23 @@ void ERR_F::ThrowFatalError(Kernel::HLERequestContext& ctx) {
|
|||
++index) {
|
||||
if (index < 13) {
|
||||
LOG_DEBUG(Service_ERR, "r{}=0x{:08X}", index,
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
} else if (index == 13) {
|
||||
LOG_CRITICAL(Service_ERR, "SP=0x{:08X}",
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
} else if (index == 14) {
|
||||
LOG_CRITICAL(Service_ERR, "LR=0x{:08X}",
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
} else if (index == 15) {
|
||||
LOG_CRITICAL(Service_ERR, "PC=0x{:08X}",
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
errtype.exception_data.exception_context.arm_regs.at(index));
|
||||
}
|
||||
}
|
||||
LOG_CRITICAL(Service_ERR, "CPSR=0x{:08X}", errtype.exception_data.exception_context.cpsr);
|
||||
|
||||
// Exception Info
|
||||
LOG_CRITICAL(Service_ERR, "EXCEPTION TYPE: {}",
|
||||
GetExceptionType(errtype.exception_data.exception_info.exception_type));
|
||||
GetExceptionType(errtype.exception_data.exception_info.exception_type));
|
||||
switch (static_cast<ExceptionType>(errtype.exception_data.exception_info.exception_type)) {
|
||||
case ExceptionType::PrefetchAbort:
|
||||
LOG_CRITICAL(Service_ERR, "IFSR: 0x{:08X}", errtype.exception_data.exception_info.sr);
|
||||
|
@ -206,11 +205,11 @@ void ERR_F::ThrowFatalError(Kernel::HLERequestContext& ctx) {
|
|||
break;
|
||||
case ExceptionType::VectorFP:
|
||||
LOG_CRITICAL(Service_ERR, "FPEXC: 0x{:08X}",
|
||||
errtype.exception_data.exception_info.fpinst);
|
||||
errtype.exception_data.exception_info.fpinst);
|
||||
LOG_CRITICAL(Service_ERR, "FINST: 0x{:08X}",
|
||||
errtype.exception_data.exception_info.fpinst);
|
||||
errtype.exception_data.exception_info.fpinst);
|
||||
LOG_CRITICAL(Service_ERR, "FINST2: 0x{:08X}",
|
||||
errtype.exception_data.exception_info.fpinst2);
|
||||
errtype.exception_data.exception_info.fpinst2);
|
||||
break;
|
||||
case ExceptionType::Undefined:
|
||||
break; // Not logging exception_info for this case
|
||||
|
|
|
@ -87,8 +87,8 @@ void File::Read(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
if (offset + length > backend->GetSize()) {
|
||||
LOG_ERROR(Service_FS,
|
||||
"Reading from out of bounds offset=0x{:x} length=0x{:08X} file_size=0x{:x}",
|
||||
offset, length, backend->GetSize());
|
||||
"Reading from out of bounds offset=0x{:x} length=0x{:08X} file_size=0x{:x}",
|
||||
offset, length, backend->GetSize());
|
||||
}
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
||||
|
@ -120,7 +120,7 @@ void File::Write(Kernel::HLERequestContext& ctx) {
|
|||
u32 flush = rp.Pop<u32>();
|
||||
auto& buffer = rp.PopMappedBuffer();
|
||||
LOG_TRACE(Service_FS, "Write {}: offset=0x{:x} length={}, flush=0x{:x}", GetName(), offset,
|
||||
length, flush);
|
||||
length, flush);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
|
||||
|
||||
|
@ -182,7 +182,7 @@ void File::Close(Kernel::HLERequestContext& ctx) {
|
|||
// TODO(Subv): Only close the backend if this client is the only one left.
|
||||
if (connected_sessions.size() > 1)
|
||||
LOG_WARNING(Service_FS, "Closing File backend but {} clients still connected",
|
||||
connected_sessions.size());
|
||||
connected_sessions.size());
|
||||
|
||||
backend->Close();
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
|
@ -405,7 +405,7 @@ ResultCode RegisterArchiveType(std::unique_ptr<FileSys::ArchiveFactory>&& factor
|
|||
|
||||
auto& archive = result.first->second;
|
||||
LOG_DEBUG(Service_FS, "Registered archive {} with id code 0x{:08X}", archive->GetName(),
|
||||
static_cast<u32>(id_code));
|
||||
static_cast<u32>(id_code));
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -630,7 +630,7 @@ void RegisterArchiveTypes() {
|
|||
RegisterArchiveType(std::move(sdmcwo_factory), ArchiveIdCode::SDMCWriteOnly);
|
||||
else
|
||||
LOG_ERROR(Service_FS, "Can't instantiate SDMCWriteOnly archive with path {}",
|
||||
sdmc_directory);
|
||||
sdmc_directory);
|
||||
|
||||
// Create the SaveData archive
|
||||
auto sd_savedata_source = std::make_shared<FileSys::ArchiveSource_SDSaveData>(sdmc_directory);
|
||||
|
@ -651,7 +651,7 @@ void RegisterArchiveTypes() {
|
|||
RegisterArchiveType(std::move(extsavedata_factory), ArchiveIdCode::ExtSaveData);
|
||||
else
|
||||
LOG_ERROR(Service_FS, "Can't instantiate ExtSaveData archive with path {}",
|
||||
extsavedata_factory->GetMountPoint());
|
||||
extsavedata_factory->GetMountPoint());
|
||||
|
||||
auto sharedextsavedata_factory =
|
||||
std::make_unique<FileSys::ArchiveFactory_ExtSaveData>(nand_directory, true);
|
||||
|
@ -659,7 +659,7 @@ void RegisterArchiveTypes() {
|
|||
RegisterArchiveType(std::move(sharedextsavedata_factory), ArchiveIdCode::SharedExtSaveData);
|
||||
else
|
||||
LOG_ERROR(Service_FS, "Can't instantiate SharedExtSaveData archive with path {}",
|
||||
sharedextsavedata_factory->GetMountPoint());
|
||||
sharedextsavedata_factory->GetMountPoint());
|
||||
|
||||
// Create the NCCH archive, basically a small variation of the RomFS archive
|
||||
auto savedatacheck_factory = std::make_unique<FileSys::ArchiveFactory_NCCH>();
|
||||
|
@ -676,9 +676,8 @@ void RegisterArchiveTypes() {
|
|||
void RegisterSelfNCCH(Loader::AppLoader& app_loader) {
|
||||
auto itr = id_code_map.find(ArchiveIdCode::SelfNCCH);
|
||||
if (itr == id_code_map.end()) {
|
||||
LOG_ERROR(
|
||||
Service_FS,
|
||||
"Could not register a new NCCH because the SelfNCCH archive hasn't been created");
|
||||
LOG_ERROR(Service_FS,
|
||||
"Could not register a new NCCH because the SelfNCCH archive hasn't been created");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,8 +54,7 @@ void FS_USER::OpenFile(Kernel::HLERequestContext& ctx) {
|
|||
ASSERT(filename.size() == filename_size);
|
||||
FileSys::Path file_path(filename_type, filename);
|
||||
|
||||
LOG_DEBUG(Service_FS, "path={}, mode={} attrs={}", file_path.DebugStr(), mode.hex,
|
||||
attributes);
|
||||
LOG_DEBUG(Service_FS, "path={}, mode={} attrs={}", file_path.DebugStr(), mode.hex, attributes);
|
||||
|
||||
ResultVal<std::shared_ptr<File>> file_res =
|
||||
OpenFileFromArchive(archive_handle, file_path, mode);
|
||||
|
@ -88,18 +87,17 @@ void FS_USER::OpenFileDirectly(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path archive_path(archivename_type, archivename);
|
||||
FileSys::Path file_path(filename_type, filename);
|
||||
|
||||
LOG_DEBUG(Service_FS,
|
||||
"archive_id=0x{:08X} archive_path={} file_path={}, mode={} attributes={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr(), file_path.DebugStr(),
|
||||
mode.hex, attributes);
|
||||
LOG_DEBUG(Service_FS, "archive_id=0x{:08X} archive_path={} file_path={}, mode={} attributes={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr(), file_path.DebugStr(), mode.hex,
|
||||
attributes);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
|
||||
|
||||
ResultVal<ArchiveHandle> archive_handle = Service::FS::OpenArchive(archive_id, archive_path);
|
||||
if (archive_handle.Failed()) {
|
||||
LOG_ERROR(Service_FS,
|
||||
"Failed to get a handle for archive archive_id=0x{:08X} archive_path={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr());
|
||||
"Failed to get a handle for archive archive_id=0x{:08X} archive_path={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr());
|
||||
rb.Push(archive_handle.Code());
|
||||
rb.PushMoveObjects<Kernel::Object>(nullptr);
|
||||
return;
|
||||
|
@ -115,7 +113,7 @@ void FS_USER::OpenFileDirectly(Kernel::HLERequestContext& ctx) {
|
|||
} else {
|
||||
rb.PushMoveObjects<Kernel::Object>(nullptr);
|
||||
LOG_ERROR(Service_FS, "failed to get a handle for file {} mode={} attributes={}",
|
||||
file_path.DebugStr(), mode.hex, attributes);
|
||||
file_path.DebugStr(), mode.hex, attributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -130,8 +128,8 @@ void FS_USER::DeleteFile(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
FileSys::Path file_path(filename_type, filename);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(filename_type),
|
||||
filename_size, file_path.DebugStr());
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(filename_type), filename_size,
|
||||
file_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(DeleteFileFromArchive(archive_handle, file_path));
|
||||
|
@ -155,10 +153,10 @@ void FS_USER::RenameFile(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path src_file_path(src_filename_type, src_filename);
|
||||
FileSys::Path dest_file_path(dest_filename_type, dest_filename);
|
||||
|
||||
LOG_DEBUG(
|
||||
Service_FS, "src_type={} src_size={} src_data={} dest_type={} dest_size={} dest_data={}",
|
||||
static_cast<u32>(src_filename_type), src_filename_size, src_file_path.DebugStr(),
|
||||
static_cast<u32>(dest_filename_type), dest_filename_size, dest_file_path.DebugStr());
|
||||
LOG_DEBUG(Service_FS,
|
||||
"src_type={} src_size={} src_data={} dest_type={} dest_size={} dest_data={}",
|
||||
static_cast<u32>(src_filename_type), src_filename_size, src_file_path.DebugStr(),
|
||||
static_cast<u32>(dest_filename_type), dest_filename_size, dest_file_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RenameFileBetweenArchives(src_archive_handle, src_file_path, dest_archive_handle,
|
||||
|
@ -178,7 +176,7 @@ void FS_USER::DeleteDirectory(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path dir_path(dirname_type, dirname);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(dirname_type), dirname_size,
|
||||
dir_path.DebugStr());
|
||||
dir_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(DeleteDirectoryFromArchive(archive_handle, dir_path));
|
||||
|
@ -197,7 +195,7 @@ void FS_USER::DeleteDirectoryRecursively(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path dir_path(dirname_type, dirname);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(dirname_type), dirname_size,
|
||||
dir_path.DebugStr());
|
||||
dir_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(DeleteDirectoryRecursivelyFromArchive(archive_handle, dir_path));
|
||||
|
@ -218,7 +216,7 @@ void FS_USER::CreateFile(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path file_path(filename_type, filename);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} attributes={} size={:x} data={}",
|
||||
static_cast<u32>(filename_type), attributes, file_size, file_path.DebugStr());
|
||||
static_cast<u32>(filename_type), attributes, file_size, file_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(CreateFileInArchive(archive_handle, file_path, file_size));
|
||||
|
@ -236,7 +234,7 @@ void FS_USER::CreateDirectory(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path dir_path(dirname_type, dirname);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(dirname_type), dirname_size,
|
||||
dir_path.DebugStr());
|
||||
dir_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(CreateDirectoryFromArchive(archive_handle, dir_path));
|
||||
|
@ -260,9 +258,9 @@ void FS_USER::RenameDirectory(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path dest_dir_path(dest_dirname_type, dest_dirname);
|
||||
|
||||
LOG_DEBUG(Service_FS,
|
||||
"src_type={} src_size={} src_data={} dest_type={} dest_size={} dest_data={}",
|
||||
static_cast<u32>(src_dirname_type), src_dirname_size, src_dir_path.DebugStr(),
|
||||
static_cast<u32>(dest_dirname_type), dest_dirname_size, dest_dir_path.DebugStr());
|
||||
"src_type={} src_size={} src_data={} dest_type={} dest_size={} dest_data={}",
|
||||
static_cast<u32>(src_dirname_type), src_dirname_size, src_dir_path.DebugStr(),
|
||||
static_cast<u32>(dest_dirname_type), dest_dirname_size, dest_dir_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RenameDirectoryBetweenArchives(src_archive_handle, src_dir_path, dest_archive_handle,
|
||||
|
@ -280,7 +278,7 @@ void FS_USER::OpenDirectory(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path dir_path(dirname_type, dirname);
|
||||
|
||||
LOG_DEBUG(Service_FS, "type={} size={} data={}", static_cast<u32>(dirname_type), dirname_size,
|
||||
dir_path.DebugStr());
|
||||
dir_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
|
||||
ResultVal<std::shared_ptr<Directory>> dir_res =
|
||||
|
@ -293,7 +291,7 @@ void FS_USER::OpenDirectory(Kernel::HLERequestContext& ctx) {
|
|||
rb.PushMoveObjects(std::get<SharedPtr<ClientSession>>(sessions));
|
||||
} else {
|
||||
LOG_ERROR(Service_FS, "failed to get a handle for directory type={} size={} data={}",
|
||||
static_cast<u32>(dirname_type), dirname_size, dir_path.DebugStr());
|
||||
static_cast<u32>(dirname_type), dirname_size, dir_path.DebugStr());
|
||||
rb.PushMoveObjects<Kernel::Object>(nullptr);
|
||||
}
|
||||
}
|
||||
|
@ -308,7 +306,7 @@ void FS_USER::OpenArchive(Kernel::HLERequestContext& ctx) {
|
|||
FileSys::Path archive_path(archivename_type, archivename);
|
||||
|
||||
LOG_DEBUG(Service_FS, "archive_id=0x{:08X} archive_path={}", static_cast<u32>(archive_id),
|
||||
archive_path.DebugStr());
|
||||
archive_path.DebugStr());
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(3, 0);
|
||||
ResultVal<ArchiveHandle> handle = Service::FS::OpenArchive(archive_id, archive_path);
|
||||
|
@ -318,8 +316,8 @@ void FS_USER::OpenArchive(Kernel::HLERequestContext& ctx) {
|
|||
} else {
|
||||
rb.Push<u64>(0);
|
||||
LOG_ERROR(Service_FS,
|
||||
"failed to get a handle for archive archive_id=0x{:08X} archive_path={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr());
|
||||
"failed to get a handle for archive archive_id=0x{:08X} archive_path={}",
|
||||
static_cast<u32>(archive_id), archive_path.DebugStr());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -369,7 +367,7 @@ void FS_USER::FormatSaveData(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
if (archive_id != FS::ArchiveIdCode::SaveData) {
|
||||
LOG_ERROR(Service_FS, "tried to format an archive different than SaveData, {}",
|
||||
static_cast<u32>(archive_id));
|
||||
static_cast<u32>(archive_id));
|
||||
rb.Push(FileSys::ERROR_INVALID_PATH);
|
||||
return;
|
||||
}
|
||||
|
@ -439,9 +437,9 @@ void FS_USER::CreateExtSaveData(Kernel::HLERequestContext& ctx) {
|
|||
auto icon_buffer = rp.PopMappedBuffer();
|
||||
|
||||
LOG_WARNING(Service_FS,
|
||||
"(STUBBED) savedata_high={:08X} savedata_low={:08X} unknown={:08X} "
|
||||
"files={:08X} directories={:08X} size_limit={:016x} icon_size={:08X}",
|
||||
save_high, save_low, unknown, directories, files, size_limit, icon_size);
|
||||
"(STUBBED) savedata_high={:08X} savedata_low={:08X} unknown={:08X} "
|
||||
"files={:08X} directories={:08X} size_limit={:016x} icon_size={:08X}",
|
||||
save_high, save_low, unknown, directories, files, size_limit, icon_size);
|
||||
|
||||
std::vector<u8> icon(icon_size);
|
||||
icon_buffer.Read(icon.data(), 0, icon_size);
|
||||
|
@ -465,8 +463,8 @@ void FS_USER::DeleteExtSaveData(Kernel::HLERequestContext& ctx) {
|
|||
u32 unknown = rp.Pop<u32>(); // TODO(Subv): Figure out what this is
|
||||
|
||||
LOG_WARNING(Service_FS,
|
||||
"(STUBBED) save_low={:08X} save_high={:08X} media_type={:08X} unknown={:08X}",
|
||||
save_low, save_high, static_cast<u32>(media_type), unknown);
|
||||
"(STUBBED) save_low={:08X} save_high={:08X} media_type={:08X} unknown={:08X}",
|
||||
save_low, save_high, static_cast<u32>(media_type), unknown);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(Service::FS::DeleteExtSaveData(media_type, save_high, save_low));
|
||||
|
@ -524,10 +522,10 @@ void FS_USER::CreateLegacySystemSaveData(Kernel::HLERequestContext& ctx) {
|
|||
bool duplicate = rp.Pop<bool>();
|
||||
|
||||
LOG_WARNING(Service_FS,
|
||||
"(STUBBED) savedata_id={:08X} total_size={:08X} block_size={:08X} directories={} "
|
||||
"files={} directory_buckets={} file_buckets={} duplicate={}",
|
||||
savedata_id, total_size, block_size, directories, files, directory_buckets,
|
||||
file_buckets, duplicate);
|
||||
"(STUBBED) savedata_id={:08X} total_size={:08X} block_size={:08X} directories={} "
|
||||
"files={} directory_buckets={} file_buckets={} duplicate={}",
|
||||
savedata_id, total_size, block_size, directories, files, directory_buckets,
|
||||
file_buckets, duplicate);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
// With this command, the SystemSaveData always has save_high = 0 (Always created in the NAND)
|
||||
|
@ -667,9 +665,9 @@ void FS_USER::SetSaveDataSecureValue(Kernel::HLERequestContext& ctx) {
|
|||
// TODO: Generate and Save the Secure Value
|
||||
|
||||
LOG_WARNING(Service_FS,
|
||||
"(STUBBED) called, value=0x{:016x} secure_value_slot=0x{:08X} "
|
||||
"unqiue_id=0x{:08X} title_variation=0x{:02X}",
|
||||
value, secure_value_slot, unique_id, title_variation);
|
||||
"(STUBBED) called, value=0x{:016x} secure_value_slot=0x{:08X} "
|
||||
"unqiue_id=0x{:08X} title_variation=0x{:02X}",
|
||||
value, secure_value_slot, unique_id, title_variation);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
|
||||
|
|
|
@ -120,10 +120,9 @@ static ResultCode WriteHWRegs(u32 base_address, u32 size_in_bytes, const std::ve
|
|||
const u32 max_size_in_bytes = 0x80;
|
||||
|
||||
if (base_address & 3 || base_address >= 0x420000) {
|
||||
LOG_ERROR(
|
||||
Service_GSP,
|
||||
"Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
|
||||
base_address, size_in_bytes);
|
||||
LOG_ERROR(Service_GSP,
|
||||
"Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
|
||||
base_address, size_in_bytes);
|
||||
return ERR_REGS_OUTOFRANGE_OR_MISALIGNED;
|
||||
} else if (size_in_bytes <= max_size_in_bytes) {
|
||||
if (size_in_bytes & 3) {
|
||||
|
@ -165,10 +164,9 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes,
|
|||
const u32 max_size_in_bytes = 0x80;
|
||||
|
||||
if (base_address & 3 || base_address >= 0x420000) {
|
||||
LOG_ERROR(
|
||||
Service_GSP,
|
||||
"Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
|
||||
base_address, size_in_bytes);
|
||||
LOG_ERROR(Service_GSP,
|
||||
"Write address was out of range or misaligned! (address=0x{:08x}, size=0x{:08x})",
|
||||
base_address, size_in_bytes);
|
||||
return ERR_REGS_OUTOFRANGE_OR_MISALIGNED;
|
||||
} else if (size_in_bytes <= max_size_in_bytes) {
|
||||
if (size_in_bytes & 3) {
|
||||
|
@ -319,8 +317,8 @@ void GSP_GPU::FlushDataCache(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
|
||||
address, size, process->process_id);
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}", address,
|
||||
size, process->process_id);
|
||||
}
|
||||
|
||||
void GSP_GPU::InvalidateDataCache(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -334,8 +332,8 @@ void GSP_GPU::InvalidateDataCache(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
|
||||
address, size, process->process_id);
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}", address,
|
||||
size, process->process_id);
|
||||
}
|
||||
|
||||
void GSP_GPU::SetAxiConfigQoSMode(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -680,7 +678,7 @@ void GSP_GPU::AcquireRight(Kernel::HLERequestContext& ctx) {
|
|||
SessionData* session_data = GetSessionData(ctx.Session());
|
||||
|
||||
LOG_WARNING(Service_GSP, "called flag={:08X} process={} thread_id={}", flag,
|
||||
process->process_id, session_data->thread_id);
|
||||
process->process_id, session_data->thread_id);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
|
||||
|
@ -726,8 +724,8 @@ void GSP_GPU::StoreDataCache(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}",
|
||||
address, size, process->process_id);
|
||||
LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x{:08X}, size=0x{:08X}, process={}", address,
|
||||
size, process->process_id);
|
||||
}
|
||||
|
||||
void GSP_GPU::SetLedForceOff(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -166,7 +166,7 @@ void ExtraHID::OnDisconnect() {
|
|||
void ExtraHID::HandleConfigureHIDPollingRequest(const std::vector<u8>& request) {
|
||||
if (request.size() != 3) {
|
||||
LOG_ERROR(Service_IR, "Wrong request size ({}): {}", request.size(),
|
||||
Common::ArrayToString(request.data(), request.size()));
|
||||
Common::ArrayToString(request.data(), request.size()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ void ExtraHID::HandleReadCalibrationDataRequest(const std::vector<u8>& request_b
|
|||
|
||||
if (request_buf.size() != sizeof(ReadCalibrationDataRequest)) {
|
||||
LOG_ERROR(Service_IR, "Wrong request size ({}): {}", request_buf.size(),
|
||||
Common::ArrayToString(request_buf.data(), request_buf.size()));
|
||||
Common::ArrayToString(request_buf.data(), request_buf.size()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,7 @@ void ExtraHID::HandleReadCalibrationDataRequest(const std::vector<u8>& request_b
|
|||
|
||||
if (offset + size > calibration_data.size()) {
|
||||
LOG_ERROR(Service_IR, "Read beyond the end of calibration data! (offset={}, size={})",
|
||||
offset, size);
|
||||
offset, size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -223,7 +223,7 @@ void ExtraHID::OnReceive(const std::vector<u8>& data) {
|
|||
break;
|
||||
default:
|
||||
LOG_ERROR(Service_IR, "Unknown request: {}",
|
||||
Common::ArrayToString(data.data(), data.size()));
|
||||
Common::ArrayToString(data.data(), data.size()));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -183,8 +183,7 @@ private:
|
|||
|
||||
/// Wraps the payload into packet and puts it to the receive buffer
|
||||
void IR_USER::PutToReceive(const std::vector<u8>& payload) {
|
||||
LOG_TRACE(Service_IR, "called, data={}",
|
||||
Common::ArrayToString(payload.data(), payload.size()));
|
||||
LOG_TRACE(Service_IR, "called, data={}", Common::ArrayToString(payload.data(), payload.size()));
|
||||
size_t size = payload.size();
|
||||
|
||||
std::vector<u8> packet;
|
||||
|
@ -252,11 +251,11 @@ void IR_USER::InitializeIrNopShared(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_INFO(Service_IR,
|
||||
"called, shared_buff_size={}, recv_buff_size={}, "
|
||||
"recv_buff_packet_count={}, send_buff_size={}, "
|
||||
"send_buff_packet_count={}, baud_rate={}",
|
||||
shared_buff_size, recv_buff_size, recv_buff_packet_count, send_buff_size,
|
||||
send_buff_packet_count, baud_rate);
|
||||
"called, shared_buff_size={}, recv_buff_size={}, "
|
||||
"recv_buff_packet_count={}, send_buff_size={}, "
|
||||
"send_buff_packet_count={}, baud_rate={}",
|
||||
shared_buff_size, recv_buff_size, recv_buff_packet_count, send_buff_size,
|
||||
send_buff_packet_count, baud_rate);
|
||||
}
|
||||
|
||||
void IR_USER::RequireConnection(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -551,7 +551,7 @@ ResultCode CROHelper::ApplyStaticAnonymousSymbolToCRS(VAddr crs_address) {
|
|||
CROHelper crs(crs_address);
|
||||
u32 offset_export_num = GetField(StaticAnonymousSymbolNum);
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" exports {} static anonymous symbols", ModuleName(),
|
||||
offset_export_num);
|
||||
offset_export_num);
|
||||
for (u32 i = 0; i < offset_export_num; ++i) {
|
||||
StaticAnonymousSymbolEntry entry;
|
||||
GetEntry(i, entry);
|
||||
|
@ -564,7 +564,7 @@ ResultCode CROHelper::ApplyStaticAnonymousSymbolToCRS(VAddr crs_address) {
|
|||
|
||||
u32 symbol_address = SegmentTagToAddress(entry.symbol_position);
|
||||
LOG_TRACE(Service_LDR, "CRO \"{}\" exports 0x{:08X} to the static module", ModuleName(),
|
||||
symbol_address);
|
||||
symbol_address);
|
||||
ResultCode result = crs.ApplyRelocationBatch(batch_address, symbol_address);
|
||||
if (result.IsError()) {
|
||||
LOG_ERROR(Service_LDR, "Error applying relocation batch {:08X}", result.raw);
|
||||
|
@ -604,7 +604,7 @@ ResultCode CROHelper::ApplyInternalRelocations(u32 old_data_segment_address) {
|
|||
SegmentEntry symbol_segment;
|
||||
GetEntry(relocation.symbol_segment, symbol_segment);
|
||||
LOG_TRACE(Service_LDR, "Internally relocates 0x{:08X} with 0x{:08X}", target_address,
|
||||
symbol_segment.offset);
|
||||
symbol_segment.offset);
|
||||
ResultCode result = ApplyRelocation(target_address, relocation.type, relocation.addend,
|
||||
symbol_segment.offset, target_addressB);
|
||||
if (result.IsError()) {
|
||||
|
@ -765,12 +765,12 @@ ResultCode CROHelper::ApplyImportNamedSymbol(VAddr crs_address) {
|
|||
|
||||
if (symbol_address != 0) {
|
||||
LOG_TRACE(Service_LDR, "CRO \"{}\" imports \"{}\" from \"{}\"",
|
||||
ModuleName(), symbol_name, source.ModuleName());
|
||||
ModuleName(), symbol_name, source.ModuleName());
|
||||
|
||||
ResultCode result = ApplyRelocationBatch(relocation_addr, symbol_address);
|
||||
if (result.IsError()) {
|
||||
LOG_ERROR(Service_LDR, "Error applying relocation batch {:08X}",
|
||||
result.raw);
|
||||
result.raw);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -860,7 +860,7 @@ ResultCode CROHelper::ApplyModuleImport(VAddr crs_address) {
|
|||
ForEachAutoLinkCRO(crs_address, [&](CROHelper source) -> ResultVal<bool> {
|
||||
if (want_cro_name == source.ModuleName()) {
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" imports {} indexed symbols from \"{}\"",
|
||||
ModuleName(), entry.import_indexed_symbol_num, source.ModuleName());
|
||||
ModuleName(), entry.import_indexed_symbol_num, source.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_indexed_symbol_num; ++j) {
|
||||
ImportIndexedSymbolEntry im;
|
||||
entry.GetImportIndexedSymbolEntry(j, im);
|
||||
|
@ -872,13 +872,12 @@ ResultCode CROHelper::ApplyModuleImport(VAddr crs_address) {
|
|||
ApplyRelocationBatch(im.relocation_batch_offset, symbol_address);
|
||||
if (result.IsError()) {
|
||||
LOG_ERROR(Service_LDR, "Error applying relocation batch {:08X}",
|
||||
result.raw);
|
||||
result.raw);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" imports {} anonymous symbols from \"{}\"",
|
||||
ModuleName(), entry.import_anonymous_symbol_num,
|
||||
source.ModuleName());
|
||||
ModuleName(), entry.import_anonymous_symbol_num, source.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_anonymous_symbol_num; ++j) {
|
||||
ImportAnonymousSymbolEntry im;
|
||||
entry.GetImportAnonymousSymbolEntry(j, im);
|
||||
|
@ -888,7 +887,7 @@ ResultCode CROHelper::ApplyModuleImport(VAddr crs_address) {
|
|||
ApplyRelocationBatch(im.relocation_batch_offset, symbol_address);
|
||||
if (result.IsError()) {
|
||||
LOG_ERROR(Service_LDR, "Error applying relocation batch {:08X}",
|
||||
result.raw);
|
||||
result.raw);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -905,7 +904,7 @@ ResultCode CROHelper::ApplyModuleImport(VAddr crs_address) {
|
|||
|
||||
ResultCode CROHelper::ApplyExportNamedSymbol(CROHelper target) {
|
||||
LOG_DEBUG(Service_LDR, "CRO \"{}\" exports named symbols to \"{}\"", ModuleName(),
|
||||
target.ModuleName());
|
||||
target.ModuleName());
|
||||
u32 target_import_strings_size = target.GetField(ImportStringsSize);
|
||||
u32 target_symbol_import_num = target.GetField(ImportNamedSymbolNum);
|
||||
for (u32 i = 0; i < target_symbol_import_num; ++i) {
|
||||
|
@ -934,7 +933,7 @@ ResultCode CROHelper::ApplyExportNamedSymbol(CROHelper target) {
|
|||
|
||||
ResultCode CROHelper::ResetExportNamedSymbol(CROHelper target) {
|
||||
LOG_DEBUG(Service_LDR, "CRO \"{}\" unexports named symbols to \"{}\"", ModuleName(),
|
||||
target.ModuleName());
|
||||
target.ModuleName());
|
||||
u32 unresolved_symbol = target.GetOnUnresolvedAddress();
|
||||
u32 target_import_strings_size = target.GetField(ImportStringsSize);
|
||||
u32 target_symbol_import_num = target.GetField(ImportNamedSymbolNum);
|
||||
|
@ -975,7 +974,7 @@ ResultCode CROHelper::ApplyModuleExport(CROHelper target) {
|
|||
continue;
|
||||
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" exports {} indexed symbols to \"{}\"", module_name,
|
||||
entry.import_indexed_symbol_num, target.ModuleName());
|
||||
entry.import_indexed_symbol_num, target.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_indexed_symbol_num; ++j) {
|
||||
ImportIndexedSymbolEntry im;
|
||||
entry.GetImportIndexedSymbolEntry(j, im);
|
||||
|
@ -992,7 +991,7 @@ ResultCode CROHelper::ApplyModuleExport(CROHelper target) {
|
|||
}
|
||||
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" exports {} anonymous symbols to \"{}\"", module_name,
|
||||
entry.import_anonymous_symbol_num, target.ModuleName());
|
||||
entry.import_anonymous_symbol_num, target.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_anonymous_symbol_num; ++j) {
|
||||
ImportAnonymousSymbolEntry im;
|
||||
entry.GetImportAnonymousSymbolEntry(j, im);
|
||||
|
@ -1024,7 +1023,7 @@ ResultCode CROHelper::ResetModuleExport(CROHelper target) {
|
|||
continue;
|
||||
|
||||
LOG_DEBUG(Service_LDR, "CRO \"{}\" unexports indexed symbols to \"{}\"", module_name,
|
||||
target.ModuleName());
|
||||
target.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_indexed_symbol_num; ++j) {
|
||||
ImportIndexedSymbolEntry im;
|
||||
entry.GetImportIndexedSymbolEntry(j, im);
|
||||
|
@ -1037,7 +1036,7 @@ ResultCode CROHelper::ResetModuleExport(CROHelper target) {
|
|||
}
|
||||
|
||||
LOG_DEBUG(Service_LDR, "CRO \"{}\" unexports anonymous symbols to \"{}\"", module_name,
|
||||
target.ModuleName());
|
||||
target.ModuleName());
|
||||
for (u32 j = 0; j < entry.import_anonymous_symbol_num; ++j) {
|
||||
ImportAnonymousSymbolEntry im;
|
||||
entry.GetImportAnonymousSymbolEntry(j, im);
|
||||
|
@ -1070,12 +1069,12 @@ ResultCode CROHelper::ApplyExitRelocations(VAddr crs_address) {
|
|||
|
||||
if (symbol_address != 0) {
|
||||
LOG_DEBUG(Service_LDR, "CRO \"{}\" import exit function from \"{}\"",
|
||||
ModuleName(), source.ModuleName());
|
||||
ModuleName(), source.ModuleName());
|
||||
|
||||
ResultCode result = ApplyRelocationBatch(relocation_addr, symbol_address);
|
||||
if (result.IsError()) {
|
||||
LOG_ERROR(Service_LDR, "Error applying relocation batch {:08X}",
|
||||
result.raw);
|
||||
result.raw);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,9 +58,8 @@ void RO::Initialize(Kernel::HLERequestContext& ctx) {
|
|||
// All other service functions below have the same issue.
|
||||
auto process = rp.PopObject<Kernel::Process>();
|
||||
|
||||
LOG_DEBUG(Service_LDR,
|
||||
"called, crs_buffer_ptr=0x{:08X}, crs_address=0x{:08X}, crs_size=0x{:X}",
|
||||
crs_buffer_ptr, crs_address, crs_size);
|
||||
LOG_DEBUG(Service_LDR, "called, crs_buffer_ptr=0x{:08X}, crs_address=0x{:08X}, crs_size=0x{:X}",
|
||||
crs_buffer_ptr, crs_address, crs_size);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
|
||||
|
@ -167,7 +166,7 @@ void RO::LoadCRR(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_WARNING(Service_LDR, "(STUBBED) called, crr_buffer_ptr=0x{:08X}, crr_size=0x{:08X}",
|
||||
crr_buffer_ptr, crr_size);
|
||||
crr_buffer_ptr, crr_size);
|
||||
}
|
||||
|
||||
void RO::UnloadCRR(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -197,13 +196,13 @@ void RO::LoadCRO(Kernel::HLERequestContext& ctx, bool link_on_load_bug_fix) {
|
|||
auto process = rp.PopObject<Kernel::Process>();
|
||||
|
||||
LOG_DEBUG(Service_LDR,
|
||||
"called ({}), cro_buffer_ptr=0x{:08X}, cro_address=0x{:08X}, cro_size=0x{:X}, "
|
||||
"data_segment_address=0x{:08X}, zero={}, data_segment_size=0x{:X}, "
|
||||
"bss_segment_address=0x{:08X}, bss_segment_size=0x{:X}, auto_link={}, "
|
||||
"fix_level={}, crr_address=0x{:08X}",
|
||||
link_on_load_bug_fix ? "new" : "old", cro_buffer_ptr, cro_address, cro_size,
|
||||
data_segment_address, zero, data_segment_size, bss_segment_address,
|
||||
bss_segment_size, auto_link ? "true" : "false", fix_level, crr_address);
|
||||
"called ({}), cro_buffer_ptr=0x{:08X}, cro_address=0x{:08X}, cro_size=0x{:X}, "
|
||||
"data_segment_address=0x{:08X}, zero={}, data_segment_size=0x{:X}, "
|
||||
"bss_segment_address=0x{:08X}, bss_segment_size=0x{:X}, auto_link={}, "
|
||||
"fix_level={}, crr_address=0x{:08X}",
|
||||
link_on_load_bug_fix ? "new" : "old", cro_buffer_ptr, cro_address, cro_size,
|
||||
data_segment_address, zero, data_segment_size, bss_segment_address, bss_segment_size,
|
||||
auto_link ? "true" : "false", fix_level, crr_address);
|
||||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0);
|
||||
|
||||
|
@ -373,7 +372,7 @@ void RO::LoadCRO(Kernel::HLERequestContext& ctx, bool link_on_load_bug_fix) {
|
|||
Core::CPU().InvalidateCacheRange(cro_address, cro_size);
|
||||
|
||||
LOG_INFO(Service_LDR, "CRO \"{}\" loaded at 0x{:08X}, fixed_end=0x{:08X}", cro.ModuleName(),
|
||||
cro_address, cro_address + fix_size);
|
||||
cro_address, cro_address + fix_size);
|
||||
|
||||
rb.Push(RESULT_SUCCESS, fix_size);
|
||||
}
|
||||
|
@ -386,7 +385,7 @@ void RO::UnloadCRO(Kernel::HLERequestContext& ctx) {
|
|||
auto process = rp.PopObject<Kernel::Process>();
|
||||
|
||||
LOG_DEBUG(Service_LDR, "called, cro_address=0x{:08X}, zero={}, cro_buffer_ptr=0x{:08X}",
|
||||
cro_address, zero, cro_buffer_ptr);
|
||||
cro_address, zero, cro_buffer_ptr);
|
||||
|
||||
CROHelper cro(cro_address);
|
||||
|
||||
|
|
|
@ -64,10 +64,10 @@ struct MIC_U::Impl {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
is_sampling = true;
|
||||
LOG_WARNING(Service_MIC,
|
||||
"(STUBBED) called, encoding={}, sample_rate={}, "
|
||||
"audio_buffer_offset={}, audio_buffer_size={}, audio_buffer_loop={}",
|
||||
static_cast<u32>(encoding), static_cast<u32>(sample_rate),
|
||||
audio_buffer_offset, audio_buffer_size, audio_buffer_loop);
|
||||
"(STUBBED) called, encoding={}, sample_rate={}, "
|
||||
"audio_buffer_offset={}, audio_buffer_size={}, audio_buffer_loop={}",
|
||||
static_cast<u32>(encoding), static_cast<u32>(sample_rate), audio_buffer_offset,
|
||||
audio_buffer_size, audio_buffer_loop);
|
||||
}
|
||||
|
||||
void AdjustSampling(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -76,8 +76,7 @@ struct MIC_U::Impl {
|
|||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
LOG_WARNING(Service_MIC, "(STUBBED) called, sample_rate={}",
|
||||
static_cast<u32>(sample_rate));
|
||||
LOG_WARNING(Service_MIC, "(STUBBED) called, sample_rate={}", static_cast<u32>(sample_rate));
|
||||
}
|
||||
|
||||
void StopSampling(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -148,7 +147,7 @@ struct MIC_U::Impl {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushMappedBuffer(buffer);
|
||||
LOG_WARNING(Service_MIC, "(STUBBED) called, size=0x{:X}, buffer=0x{:08X}", size,
|
||||
buffer.GetId());
|
||||
buffer.GetId());
|
||||
}
|
||||
|
||||
void SetClamp(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -16,7 +16,7 @@ void NDM_U::EnterExclusiveState(Kernel::HLERequestContext& ctx) {
|
|||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
LOG_WARNING(Service_NDM, "(STUBBED) exclusive_state=0x{:08X}",
|
||||
static_cast<u32>(exclusive_state));
|
||||
static_cast<u32>(exclusive_state));
|
||||
}
|
||||
|
||||
void NDM_U::LeaveExclusiveState(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -239,7 +239,7 @@ static void HandleEAPoLPacket(const Network::WifiPacket& packet) {
|
|||
if (GetEAPoLFrameType(packet.data) == EAPoLStartMagic) {
|
||||
if (connection_status.status != static_cast<u32>(NetworkStatus::ConnectedAsHost)) {
|
||||
LOG_DEBUG(Service_NWM, "Connection sequence aborted, because connection status is {}",
|
||||
connection_status.status);
|
||||
connection_status.status);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -426,7 +426,7 @@ void SendAssociationResponseFrame(const MacAddress& address) {
|
|||
std::lock_guard<std::mutex> lock(connection_status_mutex);
|
||||
if (connection_status.status != static_cast<u32>(NetworkStatus::ConnectedAsHost)) {
|
||||
LOG_ERROR(Service_NWM, "Connection sequence aborted, because connection status is {}",
|
||||
connection_status.status);
|
||||
connection_status.status);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -458,8 +458,8 @@ void HandleAuthenticationFrame(const Network::WifiPacket& packet) {
|
|||
std::lock_guard<std::mutex> lock(connection_status_mutex);
|
||||
if (connection_status.status != static_cast<u32>(NetworkStatus::ConnectedAsHost)) {
|
||||
LOG_ERROR(Service_NWM,
|
||||
"Connection sequence aborted, because connection status is {}",
|
||||
connection_status.status);
|
||||
"Connection sequence aborted, because connection status is {}",
|
||||
connection_status.status);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -618,9 +618,9 @@ void NWM_UDS::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
|
|||
rb.PushMappedBuffer(out_buffer);
|
||||
|
||||
LOG_DEBUG(Service_NWM,
|
||||
"called out_buffer_size=0x{:08X}, wlan_comm_id=0x{:08X}, id=0x{:08X},"
|
||||
"unk1=0x{:08X}, unk2=0x{:08X}, offset={}",
|
||||
out_buffer_size, wlan_comm_id, id, unk1, unk2, cur_buffer_size);
|
||||
"called out_buffer_size=0x{:08X}, wlan_comm_id=0x{:08X}, id=0x{:08X},"
|
||||
"unk1=0x{:08X}, unk2=0x{:08X}, offset={}",
|
||||
out_buffer_size, wlan_comm_id, id, unk1, unk2, cur_buffer_size);
|
||||
}
|
||||
|
||||
void NWM_UDS::InitializeWithVersion(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -661,7 +661,7 @@ void NWM_UDS::InitializeWithVersion(Kernel::HLERequestContext& ctx) {
|
|||
rb.PushCopyObjects(connection_status_event);
|
||||
|
||||
LOG_DEBUG(Service_NWM, "called sharedmem_size=0x{:08X}, version=0x{:08X}", sharedmem_size,
|
||||
version);
|
||||
version);
|
||||
}
|
||||
|
||||
void NWM_UDS::GetConnectionStatus(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -729,7 +729,7 @@ void NWM_UDS::Bind(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(ResultCode(ErrorDescription::NotAuthorized, ErrorModule::UDS,
|
||||
ErrorSummary::WrongArgument, ErrorLevel::Usage));
|
||||
LOG_WARNING(Service_NWM, "data_channel = {}, bind_node_id = {}", data_channel,
|
||||
bind_node_id);
|
||||
bind_node_id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ void Module::Interface::GetStepHistory(Kernel::HLERequestContext& ctx) {
|
|||
rb.PushMappedBuffer(buffer);
|
||||
|
||||
LOG_WARNING(Service_PTM, "(STUBBED) called, from time(raw): 0x{:x}, for {} hours", start_time,
|
||||
hours);
|
||||
hours);
|
||||
}
|
||||
|
||||
void Module::Interface::GetTotalStepCount(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -120,16 +120,14 @@ void CheckNew3DS(IPC::RequestBuilder& rb) {
|
|||
const bool is_new_3ds = Settings::values.is_new_3ds;
|
||||
|
||||
if (is_new_3ds) {
|
||||
LOG_CRITICAL(Service_PTM,
|
||||
"The option 'is_new_3ds' is enabled as part of the 'System' "
|
||||
"settings. Citra does not fully support New 3DS emulation yet!");
|
||||
LOG_CRITICAL(Service_PTM, "The option 'is_new_3ds' is enabled as part of the 'System' "
|
||||
"settings. Citra does not fully support New 3DS emulation yet!");
|
||||
}
|
||||
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.Push(is_new_3ds);
|
||||
|
||||
LOG_WARNING(Service_PTM, "(STUBBED) called isNew3DS = 0x{:08x}",
|
||||
static_cast<u32>(is_new_3ds));
|
||||
LOG_WARNING(Service_PTM, "(STUBBED) called isNew3DS = 0x{:08x}", static_cast<u32>(is_new_3ds));
|
||||
}
|
||||
|
||||
void Module::Interface::CheckNew3DS(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -95,14 +95,13 @@ void Interface::HandleSyncRequest(SharedPtr<ServerSession> server_session) {
|
|||
? Common::StringFromFormat("0x%08X", cmd_buff[0])
|
||||
: itr->second.name;
|
||||
LOG_ERROR(Service, "unknown / unimplemented {}",
|
||||
MakeFunctionString(function_name.c_str(), GetPortName().c_str(), cmd_buff));
|
||||
MakeFunctionString(function_name.c_str(), GetPortName().c_str(), cmd_buff));
|
||||
|
||||
// TODO(bunnei): Hack - ignore error
|
||||
cmd_buff[1] = 0;
|
||||
return;
|
||||
}
|
||||
LOG_TRACE(Service, "{}",
|
||||
MakeFunctionString(itr->second.name, GetPortName().c_str(), cmd_buff));
|
||||
LOG_TRACE(Service, "{}", MakeFunctionString(itr->second.name, GetPortName().c_str(), cmd_buff));
|
||||
|
||||
itr->second.func(this);
|
||||
}
|
||||
|
|
|
@ -103,15 +103,13 @@ void SRV::GetServiceHandle(Kernel::HLERequestContext& ctx) {
|
|||
if (client_port.Failed()) {
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(client_port.Code());
|
||||
LOG_ERROR(Service_SRV, "called service={} -> error 0x{:08X}", name,
|
||||
client_port.Code().raw);
|
||||
LOG_ERROR(Service_SRV, "called service={} -> error 0x{:08X}", name, client_port.Code().raw);
|
||||
return;
|
||||
}
|
||||
|
||||
auto session = client_port.Unwrap()->Connect();
|
||||
if (session.Succeeded()) {
|
||||
LOG_DEBUG(Service_SRV, "called service={} -> session={}", name,
|
||||
(*session)->GetObjectId());
|
||||
LOG_DEBUG(Service_SRV, "called service={} -> session={}", name, (*session)->GetObjectId());
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
|
||||
rb.Push(session.Code());
|
||||
rb.PushMoveObjects(std::move(session).Unwrap());
|
||||
|
@ -179,8 +177,8 @@ void SRV::PublishToSubscriber(Kernel::HLERequestContext& ctx) {
|
|||
|
||||
IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
LOG_WARNING(Service_SRV, "(STUBBED) called, notification_id=0x{:X}, flags={}",
|
||||
notification_id, flags);
|
||||
LOG_WARNING(Service_SRV, "(STUBBED) called, notification_id=0x{:X}, flags={}", notification_id,
|
||||
flags);
|
||||
}
|
||||
|
||||
void SRV::RegisterService(Kernel::HLERequestContext& ctx) {
|
||||
|
|
|
@ -133,7 +133,7 @@ void Y2R_U::SetBlockAlignment(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R, "called block_alignment={}",
|
||||
static_cast<u8>(conversion.block_alignment));
|
||||
static_cast<u8>(conversion.block_alignment));
|
||||
}
|
||||
|
||||
void Y2R_U::GetBlockAlignment(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -144,7 +144,7 @@ void Y2R_U::GetBlockAlignment(Kernel::HLERequestContext& ctx) {
|
|||
rb.PushEnum(conversion.block_alignment);
|
||||
|
||||
LOG_DEBUG(Service_Y2R, "called block_alignment={}",
|
||||
static_cast<u8>(conversion.block_alignment));
|
||||
static_cast<u8>(conversion.block_alignment));
|
||||
}
|
||||
|
||||
void Y2R_U::SetSpacialDithering(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -231,10 +231,10 @@ void Y2R_U::SetSendingY(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_Y.image_size, conversion.src_Y.transfer_unit, conversion.src_Y.gap,
|
||||
process->process_id);
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_Y.image_size, conversion.src_Y.transfer_unit, conversion.src_Y.gap,
|
||||
process->process_id);
|
||||
}
|
||||
|
||||
void Y2R_U::SetSendingU(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -250,10 +250,10 @@ void Y2R_U::SetSendingU(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_U.image_size, conversion.src_U.transfer_unit, conversion.src_U.gap,
|
||||
process->process_id);
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_U.image_size, conversion.src_U.transfer_unit, conversion.src_U.gap,
|
||||
process->process_id);
|
||||
}
|
||||
|
||||
void Y2R_U::SetSendingV(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -270,10 +270,10 @@ void Y2R_U::SetSendingV(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_V.image_size, conversion.src_V.transfer_unit, conversion.src_V.gap,
|
||||
process->process_id);
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_V.image_size, conversion.src_V.transfer_unit, conversion.src_V.gap,
|
||||
process->process_id);
|
||||
}
|
||||
|
||||
void Y2R_U::SetSendingYUYV(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -290,10 +290,10 @@ void Y2R_U::SetSendingYUYV(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_YUYV.image_size, conversion.src_YUYV.transfer_unit,
|
||||
conversion.src_YUYV.gap, process->process_id);
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"src_process_id={}",
|
||||
conversion.src_YUYV.image_size, conversion.src_YUYV.transfer_unit,
|
||||
conversion.src_YUYV.gap, process->process_id);
|
||||
}
|
||||
|
||||
void Y2R_U::IsFinishedSendingYuv(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -350,10 +350,10 @@ void Y2R_U::SetReceiving(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"dst_process_id={}",
|
||||
conversion.dst.image_size, conversion.dst.transfer_unit, conversion.dst.gap,
|
||||
static_cast<u32>(dst_process->process_id));
|
||||
"called image_size=0x{:08X}, transfer_unit={}, transfer_stride={}, "
|
||||
"dst_process_id={}",
|
||||
conversion.dst.image_size, conversion.dst.transfer_unit, conversion.dst.gap,
|
||||
static_cast<u32>(dst_process->process_id));
|
||||
}
|
||||
|
||||
void Y2R_U::IsFinishedReceiving(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -415,9 +415,9 @@ void Y2R_U::SetCoefficient(Kernel::HLERequestContext& ctx) {
|
|||
rb.Push(RESULT_SUCCESS);
|
||||
|
||||
LOG_DEBUG(Service_Y2R, "called coefficients=[{:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}, {:X}]",
|
||||
conversion.coefficients[0], conversion.coefficients[1], conversion.coefficients[2],
|
||||
conversion.coefficients[3], conversion.coefficients[4], conversion.coefficients[5],
|
||||
conversion.coefficients[6], conversion.coefficients[7]);
|
||||
conversion.coefficients[0], conversion.coefficients[1], conversion.coefficients[2],
|
||||
conversion.coefficients[3], conversion.coefficients[4], conversion.coefficients[5],
|
||||
conversion.coefficients[6], conversion.coefficients[7]);
|
||||
}
|
||||
|
||||
void Y2R_U::GetCoefficient(Kernel::HLERequestContext& ctx) {
|
||||
|
@ -568,12 +568,12 @@ cleanup:
|
|||
rb.Push(result);
|
||||
|
||||
LOG_DEBUG(Service_Y2R,
|
||||
"called input_format={} output_format={} rotation={} block_alignment={} "
|
||||
"input_line_width={} input_lines={} standard_coefficient={} reserved={} alpha={:X}",
|
||||
static_cast<u8>(params.input_format), static_cast<u8>(params.output_format),
|
||||
static_cast<u8>(params.rotation), static_cast<u8>(params.block_alignment),
|
||||
params.input_line_width, params.input_lines,
|
||||
static_cast<u8>(params.standard_coefficient), params.padding, params.alpha);
|
||||
"called input_format={} output_format={} rotation={} block_alignment={} "
|
||||
"input_line_width={} input_lines={} standard_coefficient={} reserved={} alpha={:X}",
|
||||
static_cast<u8>(params.input_format), static_cast<u8>(params.output_format),
|
||||
static_cast<u8>(params.rotation), static_cast<u8>(params.block_alignment),
|
||||
params.input_line_width, params.input_lines,
|
||||
static_cast<u8>(params.standard_coefficient), params.padding, params.alpha);
|
||||
}
|
||||
|
||||
void Y2R_U::PingProcess(Kernel::HLERequestContext& ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue