| 81 | } |
| 82 | |
| 83 | static 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 | |
| 101 | static void DisposeGraphicsPlugin() |
| 102 | { |
nothing calls this directly
no test coverage detected