MCPcopy Create free account
hub / github.com/SpartanJ/eepp / cmdFrameLimit

Method cmdFrameLimit

src/eepp/ui/uiconsole.cpp:660–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void UIConsole::cmdFrameLimit( const std::vector<String>& params ) {
661 if ( params.size() >= 2 ) {
662 Int32 tInt = 0;
663
664 bool Res = String::fromString( tInt, params[1] );
665
666 if ( Res && ( tInt >= 0 && tInt <= 10000 ) ) {
667 getUISceneNode()->getWindow()->setFrameRateLimit( tInt );
668 return;
669 }
670 }
671
672 privPushText( "Valid parameters are between 0 and 10000 (0 = no limit)." );
673}
674
675void UIConsole::cmdGetLog() {
676 std::vector<String> tvec = String::split( String::fromUtf8( Log::instance()->getBuffer() ) );

Callers

nothing calls this directly

Calls 4

fromStringFunction · 0.85
setFrameRateLimitMethod · 0.80
sizeMethod · 0.45
getWindowMethod · 0.45

Tested by

no test coverage detected