another build tool fix, golly

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401887
This commit is contained in:
David Anderson 2008-02-22 14:36:04 +00:00
parent c733283b90
commit 90d275109a

View File

@ -39,9 +39,20 @@ namespace builder
}
}
string output_folder = (lib.release_mode == ReleaseMode.ReleaseMode_Release) ? "Release" : "Debug";
if (lib.build_mode == BuildMode.BuildMode_Episode2)
{
output_folder += ".orangebox";
}
else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
{
output_folder += ".original";
}
string binpath = Config.PathFormat("{0}/{1}/{2}",
path,
(lib.release_mode == ReleaseMode.ReleaseMode_Release) ? "Release" : "Debug",
output_folder,
binName);
if (File.Exists(binpath))
@ -58,12 +69,10 @@ namespace builder
else if (lib.build_mode == BuildMode.BuildMode_Episode2)
{
makefile_args = "ENGINE=\"orangebox\"";
binpath += ".orangebox";
}
else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
{
makefile_args = "ENGINE=\"original\"";
binpath += ".original";
}
/* Clean the project first */