public JassScriptCompiler(ScriptCompilerOptions options, JassRendererOptions rendererOptions) : base(options) { /*if (options.SourceDirectory != null) * { * if (options.JasshelperCliPath is null) * { * throw new System.Exception(); * } * * // todo: retrieve these vals from somewhere * var x86 = true; * var ptr = false; * // var reforged = ?; * * // _jasshelperPath = Path.Combine(new FileInfo(WarcraftPathProvider.GetExePath(x86, ptr)).DirectoryName, "JassHelper", "jasshelper.exe"); * * var jasshelperDocuments = Path.Combine( * System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments), * ptr ? "Warcraft III Public Test" : "Warcraft III", * "Jasshelper"); * * _commonPath = Path.Combine(jasshelperDocuments, "common.j"); * _blizzardPath = Path.Combine(jasshelperDocuments, "Blizzard.j"); * }*/ _rendererOptions = rendererOptions; }
public JassScriptCompiler(ScriptCompilerOptions options, JassRendererOptions rendererOptions) : base(options) { if (options.SourceDirectory != null) { // todo: retrieve these vals from somewhere var x86 = true; var ptr = false; _jasshelperPath = Path.Combine(new FileInfo(WarcraftPathProvider.GetExePath(x86, ptr)).DirectoryName, "JassHelper", "jasshelper.exe"); var jasshelperDocuments = Path.Combine( System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments), ptr ? "Warcraft III Public Test" : "Warcraft III", "Jasshelper"); _commonPath = Path.Combine(jasshelperDocuments, "common.j"); _blizzardPath = Path.Combine(jasshelperDocuments, "Blizzard.j"); } _rendererOptions = rendererOptions; }