Fix indentation issues

This commit is contained in:
Pierre Bourdon 2013-08-25 02:41:02 +02:00
parent 5548e77438
commit 987f4945b5
9 changed files with 301 additions and 306 deletions

View File

@ -857,9 +857,9 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
EcWii &ec = EcWii::GetInstance();
get_ng_cert(destination, ec.getNgId(), ec.getNgKeyId(), ec.getNgPriv(), ec.getNgSig());
break;
}
break;
case IOCTL_ES_SIGN:
{
WARN_LOG(WII_IPC_ES, "IOCTL_ES_SIGN");
@ -870,30 +870,31 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
EcWii &ec = EcWii::GetInstance();
get_ap_sig_and_cert(sig_out, ap_cert_out, m_TitleID, data, data_size, ec.getNgPriv(), ec.getNgId());
break;
}
break;
case IOCTL_ES_GETBOOT2VERSION:
{
WARN_LOG(WII_IPC_ES, "IOCTL_ES_GETBOOT2VERSION");
Memory::Write_U32(4, Buffer.PayloadBuffer[0].m_Address); // as of 26/02/2012, this was latest bootmii version
break;
}
break;
// ===============================================================================================
// unsupported functions
// ===============================================================================================
case IOCTL_ES_DIGETTICKETVIEW: // (Input: none, Output: 216 bytes) bug crediar :D
WARN_LOG(WII_IPC_ES, "IOCTL_ES_DIGETTICKETVIEW: this looks really wrong...");
break;
case IOCTL_ES_GETOWNEDTITLECNT:
WARN_LOG(WII_IPC_ES, "IOCTL_ES_GETOWNEDTITLECNT");
Memory::Write_U32(0, Buffer.PayloadBuffer[0].m_Address);
break;
default:
WARN_LOG(WII_IPC_ES, "CWII_IPC_HLE_Device_es: 0x%x", Buffer.Parameter);
DumpCommands(_CommandAddress, 8, LogTypes::WII_IPC_ES);
INFO_LOG(WII_IPC_ES, "command.Parameter: 0x%08x", Buffer.Parameter);
break;

View File

@ -28,8 +28,8 @@ public:
// This should only be cleared on power reset
static std::string m_ContentFile;
private:
private:
enum
{
IOCTL_ES_ADDTICKET = 0x01,
@ -134,7 +134,6 @@ private:
bool IsValid(u64 _TitleID) const;
typedef struct ecc_cert_t
{
u32 sig_type ;

View File

@ -43,9 +43,8 @@ public:
virtual bool IOCtlV(u32 _CommandAddress);
virtual bool IOCtl(u32 _CommandAddress);
private:
enum
{
IOCTL_HID_GET_ATTACHED = 0x00,
@ -119,11 +118,9 @@ private:
u8 pad[1];
} WiiHIDEndpointDescriptor;
u32 deviceCommandAddress;
void FillOutDevices(u32 BufferOut, u32 BufferOutSize);
int GetAvaiableDevNum(u16 idVendor, u16 idProduct, u8 bus, u8 port, u16 check);
bool ClaimDevice(libusb_device_handle * dev);
void ConvertDeviceToWii(WiiHIDDeviceDescriptor *dest, const struct libusb_device_descriptor *src);

View File

@ -98,8 +98,6 @@ public:
static WII_SSL _SSL[NET_SSL_MAXINSTANCES];
private:
u32 ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _BufferInSize, u32 _BufferOut, u32 _BufferOutSize);
u32 ExecuteCommandV(u32 _Parameter, SIOCtlVBuffer CommandBuffer);
};