MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ConFramerateWindow

Function ConFramerateWindow

src/console_cmds.cpp:2676–2690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2674}
2675
2676static 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.

Callers

nothing calls this directly

Calls 3

ShowFramerateWindowFunction · 0.85
IConsolePrintFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected