| 658 | } |
| 659 | |
| 660 | void 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 | |
| 675 | void UIConsole::cmdGetLog() { |
| 676 | std::vector<String> tvec = String::split( String::fromUtf8( Log::instance()->getBuffer() ) ); |
nothing calls this directly
no test coverage detected