MCPcopy Create free account
hub / github.com/TASEmulators/fceux / DriverInitialize

Function DriverInitialize

src/drivers/Qt/fceuWrapper.cpp:233–262  ·  view source on GitHub ↗

* Initialize all of the subsystem drivers: video, audio, and joystick. */

Source from the content-addressed store, hash-verified

231 * Initialize all of the subsystem drivers: video, audio, and joystick.
232 */
233static int
234DriverInitialize(FCEUGI *gi)
235{
236 if (InitVideo(gi) < 0)
237 {
238 return 0;
239 }
240 inited|=4;
241
242 if (InitSound())
243 {
244 inited|=1;
245 }
246
247 if (InitJoysticks())
248 {
249 inited|=2;
250 }
251
252 int fourscore=0;
253 g_config->getOption("SDL.FourScore", &fourscore);
254 eoptions &= ~EO_FOURSCORE;
255 if (fourscore)
256 {
257 eoptions |= EO_FOURSCORE;
258 }
259
260 InitInputInterface();
261 return 1;
262}
263
264/**
265 * Shut down all of the subsystem drivers: video, audio, and joystick.

Callers 1

LoadGameFunction · 0.70

Calls 5

getOptionMethod · 0.80
InitVideoFunction · 0.70
InitSoundFunction · 0.70
InitJoysticksFunction · 0.70
InitInputInterfaceFunction · 0.70

Tested by

no test coverage detected