Skip to content

CemuTCPConnector ​

A connector for the Cemu Wii U emulator using the Crowd Control TCP bridge.

Kind: Class

Namespace: ConnectorLib.Inject.Emulator

Inheritance: ConnectorBase → I16BitConnector → I32BitConnector → I64BitConnector → I8BitConnector → IAddressableConnector → IConsoleConnector → IDisposable → IDomainMappableConnector → IDomainMappableConnector\<CemuTCPConnector\> → IGameConnector → IROMProcessor → IWiiUConnector

Public Constructors

CemuTCPConnector()

Public Member Functions

virtual override

Task>

Connect()

virtual override

Task>

Connect(uint retryCount, SITimeSpan retryInterval)

virtual override

Task

Disconnect(string message)

virtual override

void

KeepAlive()

bool

Read(ulong address, Span buffer, int offset, int length)

bool

Write(ulong address, ReadOnlySpan buffer, int offset, int length)

bool

Read(ulong address, string domain, Span buffer, int offset, int length)

bool

Write(ulong address, string domain, ReadOnlySpan buffer, int offset, int length)

bool

Read8(ulong address, byte out value)

bool

Read16(ulong address, ushort out value)

bool

Read32(ulong address, uint out value)

bool

Read64(ulong address, ulong out value)

bool

Write8(ulong address, byte value)

bool

Write16(ulong address, ushort value)

bool

Write32(ulong address, uint value)

bool

Write64(ulong address, ulong value)

bool

Read8(ulong address, string domain, byte out value)

bool

Write8(ulong address, string domain, byte value)

bool

SetBits(ulong address, byte mask, byte out orig)

bool

UnsetBits(ulong address, byte mask, byte out orig)

bool

SetBits(ulong address, string domain, byte mask, byte out orig)

bool

UnsetBits(ulong address, string domain, byte mask, byte out orig)

bool

CompareSwap(ulong chkAddress, byte test, byte newVal, byte out orig)

bool

Freeze8(ulong address, byte value)

bool

Freeze16(ulong address, ushort value)

bool

Freeze32(ulong address, uint value)

bool

Freeze64(ulong address, ulong value)

bool

Freeze(ulong address, ulong value, byte size, WriteType writeType, ulong cmpAddress, ulong cmpValue, byte cmpSize, CompareType condition)

bool

Freeze(ulong address, ulong value, ulong mask, byte size, WriteType writeType, ulong cmpAddress, ulong cmpValue, byte cmpSize, CompareType condition)

bool

Unfreeze(ulong address)

bool

UnfreezeAll()

Removes all freezes registered in Cemu.

bool

Freeze(ulong address, string domain, ulong value, byte size, WriteType writeType, ulong cmpAddress, ulong cmpValue, byte cmpSize, CompareType cmpType)

bool

Freeze(ulong address, string domain, ulong value, ulong mask, byte size, WriteType writeType, ulong cmpAddress, ulong cmpValue, byte cmpSize, CompareType cmpType)

bool

Unfreeze(ulong address, string domain)

bool

UncacheJIT()

Invalidates the PPC recompiler cache of the Cemu emulator.

bool

UncacheJIT(uint address, uint size)

Invalidates the PPC recompiler cache of the Cemu emulator.

bool

InvertControls(bool invert)

Inverts/restores the main (movement) stick of the emulated GamePad.

bool

SwapButtons(bool swap)

Swaps/restores A/B, X/Y, L/R and ZL/ZR on the emulated GamePad.

bool

GetGameInfo(ulong out titleId, ushort out titleVersion, string out titleName)

Gets the title ID and version of the game currently running in Cemu.

virtual override

bool

SendMessage(string message)

string

GetROMPath()

bool

OpenROM(string path)

bool

CloseROM()

bool

PatchROM(IROMPatch patch)

bool

PatchROM(byte[] data)

bool

ResetConsole()

Public Attributes

string

DEFAULT_HOST

The default host on which the Cemu TCP bridge listens.

int

DEFAULT_PORT

The default port (0xCC01) of the Cemu TCP bridge ("CrowdControlPort" in settings.xml).

uint

PROTOCOL_VERSION

The wire protocol version this connector implements.

Properties

static

string

Host

[get, set]

The host to connect to. Change before connecting if Cemu is configured differently.

static

int

Port

[get, set]

The port to connect to. Change before connecting if Cemu is configured differently.

Endianness

Endianness

[get, ]

PointerFormat

PointerFormat

[get, ]

IFeatureAware

Features

[get, ]

bool

Connected

[get, ]

Events

Action<string>

UserStateLoad

Action<string>

UserStateSave

Action<string>

UserStateDelete