diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index bec85f679a..891936d73f 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -553,17 +553,29 @@ EXPORT_C GSirqCallback(void (*irq)()) } } +void pt(char* str){ + struct tm *current; + time_t now; + + time(&now); + current = localtime(&now); + + printf("%02i:%02i:%02i%s", current->tm_hour, current->tm_min, current->tm_sec, str); +} + EXPORT_C_(int) GSsetupRecording(int start, void* data) { if(s_gs == NULL) return 0; if(start & 1) { - s_gs->BeginCapture(); + if( s_gs->BeginCapture() ) + pt(" - Capture started\n"); } else { s_gs->EndCapture(); + pt(" - Capture ended\n"); } return 1; diff --git a/plugins/GSdx/GSRenderer.cpp b/plugins/GSdx/GSRenderer.cpp index 130da7488b..f7076e7ae5 100644 --- a/plugins/GSdx/GSRenderer.cpp +++ b/plugins/GSdx/GSRenderer.cpp @@ -488,9 +488,9 @@ bool GSRenderer::MakeSnapshot(const string& path) return true; } -void GSRenderer::BeginCapture() +bool GSRenderer::BeginCapture() { - m_capture.BeginCapture(GetFPS()); + return m_capture.BeginCapture(GetFPS()); } void GSRenderer::EndCapture() diff --git a/plugins/GSdx/GSRenderer.h b/plugins/GSdx/GSRenderer.h index 337c3db1e5..5fe4453779 100644 --- a/plugins/GSdx/GSRenderer.h +++ b/plugins/GSdx/GSRenderer.h @@ -85,7 +85,7 @@ public: void SetFrameLimit(bool limit); virtual void SetExclusive(bool isExcl) {} - virtual void BeginCapture(); + virtual bool BeginCapture(); virtual void EndCapture(); public: