def back(self, gameStateObj): GC.SOUNDDICT['Select 4'].play() cf.write_config_file() cf.CONSTANTS['Unit Speed'] = cf.OPTIONS['Unit Speed'] if not cf.OPTIONS['Display Hints']: gameStateObj.tutorial_mode_off() gameStateObj.stateMachine.changeState('transition_pop')
def final(crash=False): configuration.OPTIONS['Screen Size'] = configuration.OPTIONS[ 'temp_Screen Size'] configuration.write_config_file( ) # Write last saved options to config file if crash: create_crash_save()