MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / InitGraphicsPlugin

Function InitGraphicsPlugin

Source/System/System.cpp:83–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static bool InitGraphicsPlugin()
84{
85 #ifdef DAEDALUS_ENABLE_ASSERTS
86 DAEDALUS_ASSERT( gGraphicsPlugin == NULL, "The graphics plugin should not be initialised at this point" );
87 #endif
88 CGraphicsPlugin * graphics_plugin = CreateGraphicsPlugin();
89 if( graphics_plugin != NULL )
90 {
91 if( !graphics_plugin->StartEmulation() )
92 {
93 delete graphics_plugin;
94 graphics_plugin = NULL;
95 }
96 gGraphicsPlugin = graphics_plugin;
97 }
98 return true;
99}
100
101static void DisposeGraphicsPlugin()
102{

Callers

nothing calls this directly

Calls 2

CreateGraphicsPluginFunction · 0.50
StartEmulationMethod · 0.45

Tested by

no test coverage detected