Beispiel #1
0
VBA::~VBA()
{
  char winBuffer[2048];

  GetModuleFileName(NULL, winBuffer, 2048);
  char *p = strrchr(winBuffer, '\\');
  if(p)
    *p = 0;

  regInit(winBuffer);

  saveSettings();

  soundPause();
  soundShutdown();

  if(rom != NULL) {
    ((MainWnd *)m_pMainWnd)->writeBatteryFile();
    emulator.emuCleanUp();
  }

  if(input)
    delete input;

  shutdownDisplay();

  CoUninitialize();
}
Beispiel #2
0
static void applyNewOptions(tGameOptions *newOptions)
{
    bool oldEnableMouse = gGameOptions.enableMouse;
    
    // If there is no change in game options, then nothing to do.
    if (memcmp(newOptions, &gGameOptions, sizeof(gGameOptions)) == 0) {
        return;
    }
    
    if ((gGameOptions.enableSound != newOptions->enableSound) ||
        (gGameOptions.mockingBoardSlot != newOptions->mockingBoardSlot) ||
        (gGameOptions.enableSpeechChip != gGameOptions.enableSpeechChip)) {
        // If the sound parameters have changed, then re-init or shutdown sounds
        if (newOptions->enableSound) {
            soundInit(newOptions->mockingBoardSlot, newOptions->enableSpeechChip);
        } else {
            soundShutdown();
        }
    }
    
    memcpy(&gGameOptions, newOptions, sizeof(gGameOptions));
    gGameOptions.optionsSaved = false;
    if (oldEnableMouse != gGameOptions.enableMouse) {
        if (gGameOptions.enableMouse) {
            gGameOptions.enableMouse = initMouse(&gMouseCallbacks);
        }
    }
    saveOptions();
}
Beispiel #3
0
SoundDriver * systemSoundInit()
{
    SoundDriver * drv = 0;
    soundShutdown();
    drv = newXAudio2_Output();

    return drv;
}
Beispiel #4
0
static void quitGame(void)
{
    unshowDblLoRes();
    videomode(VIDEOMODE_40x24);
    clrscr();
    shutdownMouse();
    soundShutdown();
    
    uninitMachine();
    
    exit(0);
}
Beispiel #5
0
SoundDriver * systemSoundInit()
{
	SoundDriver * drv = 0;
	soundShutdown();

	drv = newXAudio2_Output();

	if( drv ) 
	{
		if ( theVBA.throttle )
			drv->setThrottle( theVBA.throttle );
	}

	return drv;
}
Beispiel #6
0
EXPORT(sqInt) shutdownModule(void) {
	return soundShutdown();
}
Beispiel #7
0
void Window::vUnInitSystem()
{
    soundShutdown();
}
Beispiel #8
0
SoundDriver* systemSoundInit()
{
    soundShutdown();

    return new SoundSDL();
}
void retro_deinit(void)
{
   emulating = 0;
   CPUCleanUp();
   soundShutdown();
}
Beispiel #10
0
shutdownModule(void) {
	return soundShutdown();
}
shutdownModule(void)
{
	// SoundPlugin>>#shutdownModule
	return soundShutdown();
}