Working screenshots for everyone! This may not be the 'best' way to implement it but it's the most compatible, working and least mutually exclusive as possible (works with DC too). More coming soon.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2449 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-02-27 03:56:34 +00:00
parent 8f303fb63e
commit c19210b641
11 changed files with 110 additions and 71 deletions

View File

@ -283,7 +283,7 @@ void __Log(int log, const char *format, ...)
}
HRESULT ScreenShot(TCHAR *File)
HRESULT ScreenShot(const char *File)
{
if (D3D::dev == NULL)
return S_FALSE;
@ -314,7 +314,8 @@ HRESULT ScreenShot(TCHAR *File)
return S_OK;
}
unsigned int Video_Screenshot(TCHAR* _szFilename)
void Video_Screenshot(const char *_szFilename)
{
return ScreenShot(_szFilename) == S_OK ? TRUE : FALSE;
if(ScreenShot(_szFilename) != S_OK)
PanicAlert("Error while capturing screen");
}