| 473 | |
| 474 | |
| 475 | void Info_Print( const char *s ) { |
| 476 | char key[512]; |
| 477 | char value[512]; |
| 478 | char *o; |
| 479 | int l; |
| 480 | |
| 481 | if (*s == '\\') |
| 482 | s++; |
| 483 | while (*s) |
| 484 | { |
| 485 | o = key; |
| 486 | while (*s && *s != '\\') |
| 487 | *o++ = *s++; |
| 488 | |
| 489 | l = o - key; |
| 490 | if (l < 20) |
| 491 | { |
| 492 | memset (o, ' ', 20-l); |
| 493 | key[20] = 0; |
| 494 | } |
| 495 | else |
| 496 | *o = 0; |
| 497 | Com_Printf ("%s", key); |
| 498 | |
| 499 | if (!*s) |
| 500 | { |
| 501 | Com_Printf ("MISSING VALUE\n"); |
| 502 | return; |
| 503 | } |
| 504 | |
| 505 | o = value; |
| 506 | s++; |
| 507 | while (*s && *s != '\\') |
| 508 | *o++ = *s++; |
| 509 | *o = 0; |
| 510 | |
| 511 | if (*s) |
| 512 | s++; |
| 513 | Com_Printf ("%s\n", value); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | /* |
| 518 | ============ |
no test coverage detected