Game/Source/MenuSettings.cpp
// Called before quitting, frees memory and controls active and inactive modules
Called before quitting, frees memory and controls active and inactive modules
Called before quitting frees memory and controls active and inactive modules
bool MenuSettings::Unload()
{
	if (!active)
	{
		return false;
	}
	LOG("Unloading Settings Menu");
	tex->UnLoad(GUITexture);
	delete buttonBack;
	buttonBack = nullptr;
	delete sliderMusic;
	sliderMusic = nullptr;
	delete sliderFX;
	sliderFX = nullptr;
	delete checkBoxFullScreen;
	checkBoxFullScreen = nullptr;
	delete checkBoxVSync;
	checkBoxVSync = nullptr;
	active = false;
	return false;
}
bool MenuSettings :: Unload ( ) { if ( ! active ) { return false ; } LOG ( " " ) ; tex -> UnLoad ( GUITexture ) ; delete buttonBack ; buttonBack = nullptr ; delete sliderMusic ; sliderMusic = nullptr ; delete sliderFX ; sliderFX = nullptr ; delete checkBoxFullScreen ; checkBoxFullScreen = nullptr ; delete checkBoxVSync ; checkBoxVSync = nullptr ; active = false ; return false ; }
Called before quitting, frees memory and controls active and inactive modules
Called before quitting frees memory and controls active and inactive modules