| 203 | } |
| 204 | |
| 205 | void RGPInterop::EventSelected(RGPInteropEvent event) |
| 206 | { |
| 207 | uint32_t eventId = m_RGP2Event[event.interoplinearid]; |
| 208 | |
| 209 | if(eventId == 0) |
| 210 | { |
| 211 | qWarning() << "RGP Event " << event.interoplinearid << event.cmdbufid << event.eventname |
| 212 | << " did not correspond to a known eventId"; |
| 213 | return; |
| 214 | } |
| 215 | |
| 216 | const ActionDescription *action = m_Ctx.GetAction(eventId); |
| 217 | |
| 218 | const SDFile &file = m_Ctx.GetStructuredFile(); |
| 219 | |
| 220 | if(action && QString(file.chunks[action->events.back().chunkIndex]->name) != event.eventname) |
| 221 | qWarning() << "Action name mismatch. Expected " << event.eventname << " but got " |
| 222 | << QString(file.chunks[action->events.back().chunkIndex]->name); |
| 223 | |
| 224 | m_Ctx.SetEventID({}, eventId, eventId); |
| 225 | |
| 226 | BringToForeground(m_Ctx.GetMainWindow()->Widget()); |
| 227 | } |
| 228 | |
| 229 | void RGPInterop::ConnectionEstablished() |
| 230 | { |
nothing calls this directly
no test coverage detected