public async Task <JAssets> GetAssetsAsync(Modules.Version version) { return(await Task.Factory.StartNew(() => { return assetsReader.GetAssets(version); })); }
public string GetJarPath(Modules.Version ver) { if (ver.Jar != null) { return(string.Format(@"{0}\versions\{1}\{1}.jar", this.GameRootPath, ver.Jar)); } else { return(GetJarPath(ver.ID)); } }
public string GetGameVersionRootDir(Modules.Version ver) { if (VersionIsolation) { return(string.Format(@"{0}\versions\{1}", GameRootPath, ver.ID)); } else { return(GameRootPath); } }
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 GetVersionOptions(Modules.Version version) { return(GetVersionOptions(version.ID)); }