| 2674 | } |
| 2675 | |
| 2676 | static bool ConFramerateWindow(std::span<std::string_view> argv) |
| 2677 | { |
| 2678 | if (argv.empty()) { |
| 2679 | IConsolePrint(CC_HELP, "Open the frame rate window."); |
| 2680 | return true; |
| 2681 | } |
| 2682 | |
| 2683 | if (_network_dedicated) { |
| 2684 | IConsolePrint(CC_ERROR, "Can not open frame rate window on a dedicated server."); |
| 2685 | return false; |
| 2686 | } |
| 2687 | |
| 2688 | ShowFramerateWindow(); |
| 2689 | return true; |
| 2690 | } |
| 2691 | |
| 2692 | /** |
| 2693 | * Format a label as a string. |
nothing calls this directly
no test coverage detected