Let user know when STK is compiled without libopenglrecorder (#3267)

* Let user know when STK is compiled without libopenglrecorder

* More work
This commit is contained in:
QwertyChouskie 2018-05-26 05:30:55 +00:00 committed by Benau
parent 12fc3fd063
commit c4cb0201df
2 changed files with 16 additions and 0 deletions

View File

@ -1960,6 +1960,12 @@ void IrrDriver::setRecording(bool val)
{
ogrStopCapture();
}
#else
Log::error("Recorder", "Recording unavailable, STK was compiled without "
"recording support. Please re-compile STK with libopenglrecorder "
"to enable recording. If you got SuperTuxKart from your distribution's "
"repositories, please use the official binaries, or contact your "
"distributions's package mantainers.");
#endif
} // setRecording

View File

@ -928,8 +928,18 @@ bool onEvent(const SEvent &event)
mnu->addItem(L"Recording >",-1,true, true);
sub = mnu->getSubMenu(4);
//
#ifdef ENABLE_RECORDER
sub->addItem(L"Start recording", DEBUG_START_RECORDING);
sub->addItem(L"Stop recording", DEBUG_STOP_RECORDING);
#else
sub->addItem(L"Recording unavailable, STK was compiled without\n"
"recording support. Please re-compile STK with\n"
"libopenglrecorder to enable recording. If you got\n"
"SuperTuxKart from your distribution's repositories,\n"
"please use the official binaries, or contact your\n"
"distributions's package mantainer.", DEBUG_STOP_RECORDING);
#endif
mnu->addItem(L"Change camera target >",-1,true, true);
sub = mnu->getSubMenu(5);