def init(initLevel): """Initializes mosh environment to specified level. initLevels: 0: Settings 1: mwInit File 2: modInfos 3: saveInfos""" #--Settings mosh.initSettings() mwDir = mosh.settings['mwDir'] #--MwIniFile (initLevel >= 1) if initLevel < 1: return mosh.mwIniFile = mosh.MWIniFile(mwDir) mosh.mwIniFile.refresh() #--ModInfos (initLevel >= 2) if initLevel < 2: return mosh.modInfos = mosh.ModInfos(os.path.join(mwDir, 'Data Files')) mosh.modInfos.refresh() #--SaveInfos (initLevel >= 3) if initLevel < 3: return mosh.saveInfos = mosh.SaveInfos(os.path.join(mwDir, 'Saves')) mosh.saveInfos.refresh()
def init(initLevel): """Initializes mosh environment to specified level. initLevels: 0: Settings 1: mwInit File 2: modInfos 3: saveInfos""" #--Settings mosh.initSettings() mwDir = mosh.settings['mwDir'] #--MwIniFile (initLevel >= 1) if initLevel < 1: return mosh.mwIniFile = mosh.MWIniFile(mwDir) mosh.mwIniFile.refresh() #--ModInfos (initLevel >= 2) if initLevel < 2: return mosh.modInfos = mosh.ModInfos(os.path.join(mwDir,'Data Files')) mosh.modInfos.refresh() #--SaveInfos (initLevel >= 3) if initLevel < 3: return mosh.saveInfos = mosh.SaveInfos(os.path.join(mwDir,'Saves')) mosh.saveInfos.refresh()