"enabled while the host believes it is disabled. " \
"Please close and reopen the Toolbox to synchronize " \
"it with the host.\n"
+#define RECORD_VMX_DISABLED "Error, this operation is prevented by current vmx setting.\n" \
+ "To enable it, add the following option to your vmx file:\n\n" \
+ " isolation.tools.stateLoggerControl.disable = \"FALSE\"\n" \
#endif /*_TOOLBOX_INT_H_*/
RecordOnStart(gpointer btn, // IN: unused
gpointer data) // IN: unused
{
- GuestApp_ControlRecord(1);
+ if (GuestApp_ControlRecord(1) == FALSE) {
+ ToolsMain_MsgBox(NULL, RECORD_VMX_DISABLED);
+ }
}
RecordOnStop(gpointer btn, // IN: unused
gpointer data) // IN: unused
{
- GuestApp_ControlRecord(2);
+ if (GuestApp_ControlRecord(2)) {
+ ToolsMain_MsgBox(NULL, RECORD_VMX_DISABLED);
+ }
}
Bool
Record_StartRecording(void)
{
- return GuestApp_ControlRecord(1);
+ if (GuestApp_ControlRecord(1) == TRUE) {
+ return TRUE;
+ } else {
+ fprintf(stderr, RECORD_VMX_DISABLED);
+ return FALSE;
+ }
}
Bool
Record_StopRecording(void)
{
- return GuestApp_ControlRecord(2);
+ if (GuestApp_ControlRecord(2) == FALSE) {
+ return TRUE;
+ } else {
+ fprintf(stderr, RECORD_VMX_DISABLED);
+ return FALSE;
+ }
}