updated to use amxxpc.exe

This commit is contained in:
Felix Geyer
2005-07-26 18:45:37 +00:00
parent fdbee670c5
commit 363e7e2270
7 changed files with 184 additions and 13 deletions

View File

@@ -36,6 +36,9 @@ interface
uses
Windows, SysUtils, Classes, Math, IniFiles;
resourcestring
COMPILER_EXE = 'amxxpc.exe';
procedure AppExit;
procedure CompilePlugin(const Name: String);
function GetAgeFromDat(const FileName: String): Integer;
@@ -79,7 +82,7 @@ begin
try
cStart := GetTickCount;
if not GetConsoleOutput(ExtractFilePath(ParamStr(0))+'amxxsc.exe "'+FilePath+FileName+'" "-o'+Compiled+'"',Output) then
if not GetConsoleOutput(ExtractFilePath(ParamStr(0))+COMPILER_EXE+' "'+FilePath+FileName+'" "-o'+Compiled+'"',Output) then
begin
WriteLn('// Internal error.');
AppExit;