… | |
… | |
400 | { |
400 | { |
401 | LOG (llevError, "Cannot write bugs file %s: %s\n", BUG_LOG, strerror (errno)); |
401 | LOG (llevError, "Cannot write bugs file %s: %s\n", BUG_LOG, strerror (errno)); |
402 | } |
402 | } |
403 | } |
403 | } |
404 | |
404 | |
405 | int |
|
|
406 | command_output_sync (object *op, char *params) |
|
|
407 | { |
|
|
408 | int val; |
|
|
409 | |
|
|
410 | if (!params) |
|
|
411 | { |
|
|
412 | new_draw_info_format (NDI_UNIQUE, 0, op, "Output sync time is presently %d", op->contr->outputs_sync); |
|
|
413 | return 1; |
|
|
414 | } |
|
|
415 | val = atoi (params); |
|
|
416 | if (val > 0) |
|
|
417 | { |
|
|
418 | op->contr->outputs_sync = val; |
|
|
419 | new_draw_info_format (NDI_UNIQUE, 0, op, "Output sync time now set to %d", op->contr->outputs_sync); |
|
|
420 | } |
|
|
421 | else |
|
|
422 | new_draw_info (NDI_UNIQUE, 0, op, "Invalid value for output_sync."); |
|
|
423 | |
|
|
424 | return 1; |
|
|
425 | } |
|
|
426 | |
|
|
427 | int |
|
|
428 | command_output_count (object *op, char *params) |
|
|
429 | { |
|
|
430 | int val; |
|
|
431 | |
|
|
432 | if (!params) |
|
|
433 | { |
|
|
434 | new_draw_info_format (NDI_UNIQUE, 0, op, "Output count is presently %d", op->contr->outputs_count); |
|
|
435 | return 1; |
|
|
436 | } |
|
|
437 | val = atoi (params); |
|
|
438 | if (val > 0) |
|
|
439 | { |
|
|
440 | op->contr->outputs_count = val; |
|
|
441 | new_draw_info_format (NDI_UNIQUE, 0, op, "Output count now set to %d", op->contr->outputs_count); |
|
|
442 | } |
|
|
443 | else |
|
|
444 | new_draw_info (NDI_UNIQUE, 0, op, "Invalid value for output_count."); |
|
|
445 | |
|
|
446 | return 1; |
|
|
447 | } |
|
|
448 | |
|
|
449 | /* Prints out some useful information for the character. Everything we print |
405 | /* Prints out some useful information for the character. Everything we print |
450 | * out can be determined by the docs, so we aren't revealing anything extra - |
406 | * out can be determined by the docs, so we aren't revealing anything extra - |
451 | * rather, we are making it convenient to find the values. params have |
407 | * rather, we are making it convenient to find the values. params have |
452 | * no meaning here. |
408 | * no meaning here. |
453 | */ |
409 | */ |