old_contents: #!/usr/bin/env python
  import Command
  import recalboxFiles
  from generators.Generator import Generator
  import dolphinControllers
  import shutil
  import os.path
  import ConfigParser
  from settings.unixSettings import UnixSettings
  
  class DolphinGenerator(Generator):
      def generate(self, system, rom, playersControllers):
          dolphinControllers.generateControllerConfig(system, playersControllers)
  
          dolphinSettings = UnixSettings(recalboxFiles.dolphinIni, separator=' ')
          #Draw or not FPS
  	if system.config['showFPS'] == 'true':
              dolphinSettings.save("ShowLag", "True")
              dolphinSettings.save("ShowFrameCount", "True")
          else:
              dolphinSettings.save("ShowLag", "False")
              dolphinSettings.save("ShowFrameCount", "False")
  
          # don't ask about statistics
          dolphinSettings.save("PermissionAsked", "True")
  
          commandArray = [recalboxFiles.recalboxBins[system.config['emulator']], "-e", rom, "--confirm=False"]
          if 'args' in system.config and system.config['args'] is not None:
               commandArray.extend(system.config['args'])
          return Command.Command(videomode=system.config['videomode'], array=commandArray, env={"XDG_CONFIG_HOME":recalboxFiles.CONF, "XDG_DATA_HOME":recalboxFiles.SAVES})
  
new_contents: #!/usr/bin/env python
  import Command
  import recalboxFiles
  from generators.Generator import Generator
  import dolphinControllers
  import shutil
  import os.path
  import ConfigParser
  from settings.unixSettings import UnixSettings
  
  class DolphinGenerator(Generator):
      def generate(self, system, rom, playersControllers):
          dolphinControllers.generateControllerConfig(system, playersControllers)
  
          dolphinSettings = UnixSettings(recalboxFiles.dolphinIni, separator=' ')
          #Draw or not FPS
  	if system.config['showFPS'] == 'true':
              dolphinSettings.save("ShowLag", "True")
              dolphinSettings.save("ShowFrameCount", "True")
          else:
              dolphinSettings.save("ShowLag", "False")
              dolphinSettings.save("ShowFrameCount", "False")
  
          # don't ask about statistics
          dolphinSettings.save("PermissionAsked", "True")
  
          # don't confirm at stop
          dolphinSettings.save("ConfirmStop", "False")
  
          commandArray = [recalboxFiles.recalboxBins[system.config['emulator']], "-e", rom]
          if 'args' in system.config and system.config['args'] is not None:
               commandArray.extend(system.config['args'])
          return Command.Command(videomode=system.config['videomode'], array=commandArray, env={"XDG_CONFIG_HOME":recalboxFiles.CONF, "XDG_DATA_HOME":recalboxFiles.SAVES})
  
subject: save the confirm on stop directly