Пример #1
0
 def _updateToVersion(self, callback = None):
     currentVersion = g_settingsCache.getVersion()
     data = {'gameData': {},
      'gameplayData': {},
      'controlsData': {},
      'aimData': {},
      'markersData': {},
      'keyboardData': {},
      'graphicsData': {},
      'marksOnGun': {},
      'clear': {}}
     yield migrateToVersion(currentVersion, self._core, data)
     self._setSettingsSections(**data)
     callback(self)
Пример #2
0
 def _updateToVersion(self, callback = None):
     currentVersion = g_settingsCache.getVersion()
     data = {'gameData': {},
      'gameExtData': {},
      'gameplayData': {},
      'controlsData': {},
      'aimData': {},
      'markersData': {},
      'keyboardData': {},
      'graphicsData': {},
      'marksOnGun': {},
      'fallout': {},
      'carousel_filter': {},
      'clear': {}}
     yield migrateToVersion(currentVersion, self._core, data)
     self._setSettingsSections(data)
     callback(self)
 def getVersion(self):
     return g_settingsCache.getVersion()
 def setVersion(self):
     if g_settingsCache.getVersion() != self.__version:
         g_settingsCache.setVersion(self.__version)
 def getVersion(self):
     return g_settingsCache.getVersion()
Пример #6
0
 def setVersion(self):
     if g_settingsCache.getVersion() != self.__version:
         g_settingsCache.setVersion(self.__version)