mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
Implemented probe for D3D module to detect lack of D3D9 sooner.
This commit is contained in:
parent
fa59c3fc31
commit
de7b5a1ec3
@ -50,6 +50,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool probe() override;
|
||||
virtual int init(osd_interface &osd, osd_options const &options) override;
|
||||
virtual void exit() override;
|
||||
|
||||
@ -67,6 +68,17 @@ private:
|
||||
};
|
||||
|
||||
|
||||
//============================================================
|
||||
// video_d3d::probe
|
||||
//============================================================
|
||||
|
||||
bool video_d3d::probe()
|
||||
{
|
||||
// do a dry run of loading the Direct3D 9 DLL
|
||||
return dynamic_module::open({ "d3d9.dll" })->bind<d3d9_create_fn>("Direct3DCreate9") != nullptr;
|
||||
}
|
||||
|
||||
|
||||
//============================================================
|
||||
// video_d3d::init
|
||||
//============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user