mf.removeSubfile(name) vfs.mount(mf, Filename('/'), 0) from direct.directnotify.DirectNotifyGlobal import directNotify from otp.otpbase.Settings import Settings from otp.otpbase import OTPGlobals notify = directNotify.newCategory('ToontownStart') notify.setInfo(True) settingsFilename = ConfigVariableString('preferences-filename', 'preferences.json').getValue() notify.info('Reading %s...' % settingsFilename) __builtin__.settings = Settings(settingsFilename) __builtin__.NO_FADE_SORT_INDEX = 2000 __builtin__.FADE_SORT_INDEX = 1000 if 'res' not in settings: settings['res'] = (1280, 720) if 'fullscreen' not in settings: settings['fullscreen'] = False if 'musicVol' not in settings: settings['musicVol'] = 1.0 if 'sfxVol' not in settings: settings['sfxVol'] = 1.0 if 'loadDisplay' not in settings: settings['loadDisplay'] = 'pandagl' if 'toonChatSounds' not in settings: settings['toonChatSounds'] = True if 'newGui' not in settings:
def __init__(self): self.settings = Settings()
def __init__(self): self.restore_failed = False self.settings = Settings() self.loadFromSettings()
def __init__(self): self.settings = Settings('config/server.json')