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