public async Task <JAssets> GetAssetsAsync(Modules.Version version) { return(await Task.Factory.StartNew(() => { return assetsReader.GetAssets(version); })); }
private string GetClassPaths(List <Modules.Library> libs, Modules.Version ver) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append('\"'); foreach (var item in libs) { string libPath = handler.GetLibraryPath(item); stringBuilder.AppendFormat("{0};", libPath); } stringBuilder.Append(handler.GetJarPath(ver)); stringBuilder.Append('\"'); return(stringBuilder.ToString().Trim()); }
public JAssets GetAssets(Modules.Version version) { return(assetsReader.GetAssets(version)); }
public string GetVersionOptionsPath(Modules.Version version) { return(PathManager.GetVersionOptionsPath(VersionIsolation, GameRootPath, version)); }
public string GetJarPath(Modules.Version ver) { return(PathManager.GetJarPath(GameRootPath, ver)); }
public string GetGameVersionRootDir(Modules.Version ver) { return(PathManager.GetGameVersionRootDir(VersionIsolation, GameRootPath, ver)); }
public Modules.Version RefreshVersion(Modules.Version ver) { return(versionReader.GetVersion(ver.ID)); }