amxmodx/installer/builder/ModCstrike.cs
Scott Ehlert 0dc6a4a5dd Whoa, amb1941: All of AMX Mod X is now officially moved over to Visual Studio 2005 (MSVC 8)
Also did the following:
* Removed -fPIC from all Linux makefiles
* AMXX build tool now also moved over to VS 2005
* AMXX build tool binary renamed from "AMXXRelease" to "builder"
* MSVC project files now can use environment variables to point to the paths of the Metamod headers and HL SDK: $(METAMOD) and $(HLSDK) respectively
2008-08-16 09:48:39 +00:00

61 lines
1.1 KiB
C#
Executable File

using System;
using System.IO;
namespace AMXXRelease
{
/// <summary>
/// Summary description for ModCstrike.
/// </summary>
public class ModCstrike : AMod
{
public ModCstrike()
{
AddModules();
AddPlugins();
}
public override sealed string GetName()
{
return "cstrike";
}
private void AddPlugins()
{
AddPlugin("miscstats");
AddPlugin("stats_logging");
AddPlugin("statsx");
AddPlugin("restmenu");
Plugin csstats = new Plugin("csstats");
csstats.outdir = "data";
m_Plugins.Add(csstats);
}
public override sealed bool CopyExtraFiles(ABuilder ab, string basedir, string source)
{
if ((int)System.Environment.OSVersion.Platform == 128)
{
} else {
File.Copy(source + "\\dlls\\cstrike\\csx\\WinCSX\\msvc8\\Release\\WinCSX.exe",
basedir + "\\data\\WinCSX.exe",
true);
}
return true;
}
private void AddModules()
{
Module csx = new Module("csx");
csx.sourcedir = "dlls\\cstrike\\csx";
Module cstrike = new Module("cstrike");
cstrike.sourcedir = "dlls\\cstrike\\cstrike";
m_Modules.Add(csx);
m_Modules.Add(cstrike);
}
}
}