Exemplo n.º 1
0
 public async Task <JAssets> GetAssetsAsync(Modules.Version version)
 {
     return(await Task.Factory.StartNew(() =>
     {
         return assetsReader.GetAssets(version);
     }));
 }
Exemplo n.º 2
0
 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));
     }
 }
Exemplo n.º 3
0
 public string GetGameVersionRootDir(Modules.Version ver)
 {
     if (VersionIsolation)
     {
         return(string.Format(@"{0}\versions\{1}", GameRootPath, ver.ID));
     }
     else
     {
         return(GameRootPath);
     }
 }
Exemplo n.º 4
0
        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());
        }
Exemplo n.º 5
0
 public JAssets GetAssets(Modules.Version version)
 {
     return(assetsReader.GetAssets(version));
 }
Exemplo n.º 6
0
 public string GetVersionOptions(Modules.Version version)
 {
     return(GetVersionOptions(version.ID));
 }