Re-enabled capturing via F12 key. It was missing the callback entirely.
The videos I capture here turn out all blueish though. No idea why :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1635 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-08-16 11:35:30 +00:00
parent 05bf33c35c
commit 2dc77cd128
4 changed files with 21 additions and 2 deletions

View File

@ -289,6 +289,14 @@ EXPORT_C GSirqCallback(void (*irq)())
s_irq = irq;
}
EXPORT_C_(int) GSsetupRecording(int start, void* pData)
{
s_gs->ToggleRecord();
return 1;
}
EXPORT_C GSsetGameCRC(uint32 crc, int options)
{
s_gs->SetGameCRC(crc, options);

View File

@ -403,6 +403,16 @@ bool GSRenderer::MakeSnapshot(const string& path)
return true;
}
void GSRenderer::ToggleRecord(void)
{
if(m_capture.IsCapturing()){
m_capture.EndCapture();
}
else {
m_capture.BeginCapture(GetFPS());
}
}
void GSRenderer::KeyEvent(GSKeyEventData* e)
{
if(e->type == KEYPRESS)

View File

@ -77,7 +77,7 @@ public:
virtual void VSync(int field);
virtual bool MakeSnapshot(const string& path);
virtual void KeyEvent(GSKeyEventData* e);
virtual void ToggleRecord();
virtual bool CanUpscale()
{
return !m_nativeres && m_regs->PMODE.EN != 0; // upscale ratio depends on the display size, with no output it may not be set correctly (ps2 logo to game transition)

View File

@ -28,7 +28,8 @@ EXPORTS
GSabout
GSreadFIFO
GSreadFIFO2
GSirqCallback
GSirqCallback
GSsetupRecording
GSsetGameCRC
GSsetFrameSkip
GSsetFrameLimit