* Initialize all of the subsystem drivers: video, audio, and joystick. */
| 231 | * Initialize all of the subsystem drivers: video, audio, and joystick. |
| 232 | */ |
| 233 | static int |
| 234 | DriverInitialize(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. |
no test coverage detected