mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Merge pull request #12690 from JosJuice/no-getpointer-part-3
IOS::HLE::BluetoothEmuDevice: Remove calls to GetPointer
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/Core.h"
|
||||
#include "Core/HW/Memmap.h"
|
||||
#include "Core/PowerPC/MMU.h"
|
||||
#include "Core/PowerPC/PPCSymbolDB.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
@@ -119,8 +120,11 @@ void PrintCallstack(const Core::CPUThreadGuard& guard, Common::Log::LogType type
|
||||
});
|
||||
}
|
||||
|
||||
void PrintDataBuffer(Common::Log::LogType type, const u8* data, size_t size, std::string_view title)
|
||||
void PrintDataBuffer(const Core::System& system, Common::Log::LogType type, u32 address, u32 size,
|
||||
std::string_view title)
|
||||
{
|
||||
const u8* data = system.GetMemory().GetPointerForRange(address, size);
|
||||
|
||||
GENERIC_LOG_FMT(type, Common::Log::LogLevel::LDEBUG, "{}", title);
|
||||
for (u32 j = 0; j < size;)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
namespace Core
|
||||
{
|
||||
class CPUThreadGuard;
|
||||
}
|
||||
class System;
|
||||
} // namespace Core
|
||||
|
||||
namespace Dolphin_Debugger
|
||||
{
|
||||
@@ -26,6 +27,6 @@ struct CallstackEntry
|
||||
bool GetCallstack(const Core::CPUThreadGuard& guard, std::vector<CallstackEntry>& output);
|
||||
void PrintCallstack(const Core::CPUThreadGuard& guard, Common::Log::LogType type,
|
||||
Common::Log::LogLevel level);
|
||||
void PrintDataBuffer(Common::Log::LogType type, const u8* data, size_t size,
|
||||
void PrintDataBuffer(const Core::System& system, Common::Log::LogType type, u32 address, u32 size,
|
||||
std::string_view title);
|
||||
} // namespace Dolphin_Debugger
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -134,49 +134,49 @@ private:
|
||||
void ExecuteHCICommandMessage(const USB::V0CtrlMessage& ctrl_message);
|
||||
|
||||
// OGF 0x01 - Link control commands and return parameters
|
||||
void CommandWriteInquiryMode(const u8* input);
|
||||
void CommandWritePageScanType(const u8* input);
|
||||
void CommandHostBufferSize(const u8* input);
|
||||
void CommandInquiryCancel(const u8* input);
|
||||
void CommandRemoteNameReq(const u8* input);
|
||||
void CommandCreateCon(const u8* input);
|
||||
void CommandAcceptCon(const u8* input);
|
||||
void CommandReadClockOffset(const u8* input);
|
||||
void CommandReadRemoteVerInfo(const u8* input);
|
||||
void CommandReadRemoteFeatures(const u8* input);
|
||||
void CommandAuthenticationRequested(const u8* input);
|
||||
void CommandInquiry(const u8* input);
|
||||
void CommandDisconnect(const u8* input);
|
||||
void CommandLinkKeyNegRep(const u8* input);
|
||||
void CommandLinkKeyRep(const u8* input);
|
||||
void CommandDeleteStoredLinkKey(const u8* input);
|
||||
void CommandChangeConPacketType(const u8* input);
|
||||
void CommandWriteInquiryMode(u32 input_address);
|
||||
void CommandWritePageScanType(u32 input_address);
|
||||
void CommandHostBufferSize(u32 input_address);
|
||||
void CommandInquiryCancel(u32 input_address);
|
||||
void CommandRemoteNameReq(u32 input_address);
|
||||
void CommandCreateCon(u32 input_address);
|
||||
void CommandAcceptCon(u32 input_address);
|
||||
void CommandReadClockOffset(u32 input_address);
|
||||
void CommandReadRemoteVerInfo(u32 input_address);
|
||||
void CommandReadRemoteFeatures(u32 input_address);
|
||||
void CommandAuthenticationRequested(u32 input_address);
|
||||
void CommandInquiry(u32 input_address);
|
||||
void CommandDisconnect(u32 input_address);
|
||||
void CommandLinkKeyNegRep(u32 input_address);
|
||||
void CommandLinkKeyRep(u32 input_address);
|
||||
void CommandDeleteStoredLinkKey(u32 input_address);
|
||||
void CommandChangeConPacketType(u32 input_address);
|
||||
|
||||
// OGF 0x02 - Link policy commands and return parameters
|
||||
void CommandWriteLinkPolicy(const u8* input);
|
||||
void CommandSniffMode(const u8* input);
|
||||
void CommandWriteLinkPolicy(u32 input_address);
|
||||
void CommandSniffMode(u32 input_address);
|
||||
|
||||
// OGF 0x03 - Host Controller and Baseband commands and return parameters
|
||||
void CommandReset(const u8* input);
|
||||
void CommandWriteLocalName(const u8* input);
|
||||
void CommandWritePageTimeOut(const u8* input);
|
||||
void CommandWriteScanEnable(const u8* input);
|
||||
void CommandWriteUnitClass(const u8* input);
|
||||
void CommandReadStoredLinkKey(const u8* input);
|
||||
void CommandWritePinType(const u8* input);
|
||||
void CommandSetEventFilter(const u8* input);
|
||||
void CommandWriteInquiryScanType(const u8* input);
|
||||
void CommandWriteLinkSupervisionTimeout(const u8* input);
|
||||
void CommandReset(u32 input_address);
|
||||
void CommandWriteLocalName(u32 input_address);
|
||||
void CommandWritePageTimeOut(u32 input_address);
|
||||
void CommandWriteScanEnable(u32 input_address);
|
||||
void CommandWriteUnitClass(u32 input_address);
|
||||
void CommandReadStoredLinkKey(u32 input_address);
|
||||
void CommandWritePinType(u32 input_address);
|
||||
void CommandSetEventFilter(u32 input_address);
|
||||
void CommandWriteInquiryScanType(u32 input_address);
|
||||
void CommandWriteLinkSupervisionTimeout(u32 input_address);
|
||||
|
||||
// OGF 0x04 - Informational commands and return parameters
|
||||
void CommandReadBufferSize(const u8* input);
|
||||
void CommandReadLocalVer(const u8* input);
|
||||
void CommandReadLocalFeatures(const u8* input);
|
||||
void CommandReadBDAdrr(const u8* input);
|
||||
void CommandReadBufferSize(u32 input_address);
|
||||
void CommandReadLocalVer(u32 input_address);
|
||||
void CommandReadLocalFeatures(u32 input_address);
|
||||
void CommandReadBDAdrr(u32 input_address);
|
||||
|
||||
// OGF 0x3F - Vendor specific
|
||||
void CommandVendorSpecific_FC4C(const u8* input, u32 size);
|
||||
void CommandVendorSpecific_FC4F(const u8* input, u32 size);
|
||||
void CommandVendorSpecific_FC4C(u32 input_address, u32 size);
|
||||
void CommandVendorSpecific_FC4F(u32 input_address, u32 size);
|
||||
|
||||
#pragma pack(push, 1)
|
||||
#define CONF_PAD_MAX_REGISTERED 10
|
||||
|
||||
Reference in New Issue
Block a user