mirror of https://github.com/PCSX2/pcsx2.git
GSdx:
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:
parent
05bf33c35c
commit
2dc77cd128
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -29,6 +29,7 @@ EXPORTS
|
|||
GSreadFIFO
|
||||
GSreadFIFO2
|
||||
GSirqCallback
|
||||
GSsetupRecording
|
||||
GSsetGameCRC
|
||||
GSsetFrameSkip
|
||||
GSsetFrameLimit
|
||||
|
|
Loading…
Reference in New Issue