Add module probe support for directwrite so we can fall back cleanly.

This commit is contained in:
Brad Hughes 2016-03-03 11:27:09 -05:00
parent e153edfaec
commit 4fadaa781d

View File

@ -661,6 +661,18 @@ public:
{ {
} }
virtual bool probe() override
{
// This module is available if it can load the expected API Functions
if (m_pfnD2D1CreateFactory.initialize() != 0
|| m_pfnDWriteCreateFactory.initialize() != 0)
{
return false;
}
return true;
}
virtual int init(const osd_options &options) override virtual int init(const osd_options &options) override
{ {
HRESULT result; HRESULT result;