コード例 #1
0
 public async Task <JAssets> GetAssetsAsync(Modules.Version version)
 {
     return(await Task.Factory.StartNew(() =>
     {
         return assetsReader.GetAssets(version);
     }));
 }
コード例 #2
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());
        }
コード例 #3
0
 public JAssets GetAssets(Modules.Version version)
 {
     return(assetsReader.GetAssets(version));
 }
コード例 #4
0
 public string GetVersionOptionsPath(Modules.Version version)
 {
     return(PathManager.GetVersionOptionsPath(VersionIsolation, GameRootPath, version));
 }
コード例 #5
0
 public string GetJarPath(Modules.Version ver)
 {
     return(PathManager.GetJarPath(GameRootPath, ver));
 }
コード例 #6
0
 public string GetGameVersionRootDir(Modules.Version ver)
 {
     return(PathManager.GetGameVersionRootDir(VersionIsolation, GameRootPath, ver));
 }
コード例 #7
0
 public Modules.Version RefreshVersion(Modules.Version ver)
 {
     return(versionReader.GetVersion(ver.ID));
 }