mirror of https://github.com/PCSX2/pcsx2.git
GSDX: Show message on console at capture start/end.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4892 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
dcb7c08a5b
commit
7375307633
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
void SetFrameLimit(bool limit);
|
||||
virtual void SetExclusive(bool isExcl) {}
|
||||
|
||||
virtual void BeginCapture();
|
||||
virtual bool BeginCapture();
|
||||
virtual void EndCapture();
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue