Created
June 20, 2010 11:09
-
-
Save larsfu/445753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!DemoRecorder()->IsRecording()) | |
{ | |
MainView.VSplitLeft(100.0f, &Button, &MainView); | |
MainView.VSplitLeft(150.0f, &Button, &MainView); | |
if(DoButton_Menu(&s_DemoButton, Localize("Record demo"), 0, &Button)) | |
{ | |
// find filename | |
char aFilename[128]; | |
time_t Time; | |
time(&Time); | |
tm* TimeInfo = localtime(&Time); | |
strftime(aFilename, sizeof(aFilename), "auto-%Y-%m-%d_%I:%M:%S", TimeInfo); | |
Client()->DemoRecorder_Start(aFilename); | |
} | |
} | |
else | |
{ | |
MainView.VSplitLeft(100.0f, &Button, &MainView); | |
MainView.VSplitLeft(150.0f, &Button, &MainView); | |
if(DoButton_Menu(&s_DemoButton, Localize("Stop demo"), 0, &Button)) | |
{ | |
DemoRecorder()->Stop(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment