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:
parent
12fc3fd063
commit
c4cb0201df
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user