ALFA.ScriptCompiler.CreateCompilerCommandLine C# (CSharp) Метод

CreateCompilerCommandLine() приватный статический Метод

Create the command line for the compiler given a filespec to attempt to compile.
private static CreateCompilerCommandLine ( string Filespec, string Options ) : string
Filespec string Supplies the file specification of the /// target file(s) to compile.
Options string Supplies additional compiler options.
Результат string
        private static string CreateCompilerCommandLine(string Filespec, string Options)
        {
            string InstallDir = Path.GetDirectoryName(ALFA.SystemInfo.GetGameInstallationDirectory());
            string HomeDir = Path.GetDirectoryName(ALFA.SystemInfo.GetHomeDirectory());
            string ModuleDir = ALFA.SystemInfo.GetModuleDirectory();

            if (ModuleDir == null)
                throw new ApplicationException("Unable to determine module directory; verify that NWNX4 was configured to start nwn2server with a -module option.");

            ModuleDir = ModuleDir + Path.DirectorySeparatorChar;

            if (Options == null)
                Options = "";

            return String.Format("-c -n \"{0}\" -h \"{1}\" -m \"{2}\" {3} \"{4}{5}\"",
                InstallDir,
                HomeDir,
                ALFA.SystemInfo.GetModuleResourceName(),
                Options,
                ModuleDir,
                Filespec);
        }