MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / SetOpcode

Method SetOpcode

common/opcodemgr.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void RegularOpcodeManager::SetOpcode(EmuOpcode emu_op, uint16 eq_op) {
212
213 //clear out old mapping
214 uint16 oldop = emu_to_eq[emu_op];
215 if(oldop != 0)
216 eq_to_emu[oldop] = OP_Unknown;
217
218 //use our strategy, since we have it
219 NormalMemStrategy s;
220 s.it = this;
221 s.Set(emu_op, eq_op);
222}
223
224void RegularOpcodeManager::NormalMemStrategy::Set(EmuOpcode emu_op, uint16 eq_op) {
225 if(uint32(emu_op) >= it->EmuOpcodeCount || eq_op >= it->EQOpcodeCount)

Callers 6

ErrorDecoderMethod · 0.45
PopPacketMethod · 0.45
PopRawPacketMethod · 0.45
DECODEFunction · 0.45
ENCODEFunction · 0.45
DECODEFunction · 0.45

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected