| 1185 | } |
| 1186 | |
| 1187 | XnStatus PlayerNode::HandleStringPropRecord(StringPropRecord record) |
| 1188 | { |
| 1189 | XN_VALIDATE_INPUT_PTR(m_pNodeNotifications); |
| 1190 | XnStatus nRetVal = record.Decode(); |
| 1191 | XN_IS_STATUS_OK(nRetVal); |
| 1192 | DEBUG_LOG_RECORD(record, "StringProp"); |
| 1193 | PlayerNodeInfo* pPlayerNodeInfo = GetPlayerNodeInfo(record.GetNodeID()); |
| 1194 | XN_VALIDATE_PTR(pPlayerNodeInfo, XN_STATUS_CORRUPT_FILE); |
| 1195 | if (!pPlayerNodeInfo->bValid) |
| 1196 | { |
| 1197 | XN_ASSERT(FALSE); |
| 1198 | return XN_STATUS_CORRUPT_FILE; |
| 1199 | } |
| 1200 | |
| 1201 | nRetVal = m_pNodeNotifications->OnNodeStringPropChanged(m_pNotificationsCookie, |
| 1202 | pPlayerNodeInfo->strName, |
| 1203 | record.GetPropName(), |
| 1204 | record.GetValue()); |
| 1205 | XN_IS_STATUS_OK(nRetVal); |
| 1206 | |
| 1207 | nRetVal = SaveRecordUndoInfo(pPlayerNodeInfo, |
| 1208 | record.GetPropName(), |
| 1209 | TellStream() - record.GetSize(), |
| 1210 | record.GetUndoRecordPos()); |
| 1211 | XN_IS_STATUS_OK(nRetVal); |
| 1212 | |
| 1213 | return XN_STATUS_OK; |
| 1214 | } |
| 1215 | |
| 1216 | XnStatus PlayerNode::HandleNodeRemovedRecord(NodeRemovedRecord record) |
| 1217 | { |
nothing calls this directly
no test coverage detected