| 7178 | |
| 7179 | |
| 7180 | void SoundConvertComponent(LPTSTR aBuf, SoundComponentSearch &aSearch) |
| 7181 | { |
| 7182 | if (IsNumeric(aBuf) == PURE_INTEGER) |
| 7183 | { |
| 7184 | *aSearch.target_name = '\0'; |
| 7185 | aSearch.target_instance = ATOI(aBuf); |
| 7186 | } |
| 7187 | else |
| 7188 | { |
| 7189 | tcslcpy(aSearch.target_name, aBuf, _countof(aSearch.target_name)); |
| 7190 | LPTSTR colon_pos = _tcsrchr(aSearch.target_name, ':'); |
| 7191 | aSearch.target_instance = colon_pos ? ATOI(colon_pos + 1) : 1; |
| 7192 | if (colon_pos) |
| 7193 | *colon_pos = '\0'; |
| 7194 | } |
| 7195 | } |
| 7196 | |
| 7197 | |
| 7198 | bool SoundSetGet_FindComponent(IPart *aRoot, SoundComponentSearch &aSearch) |