2005-08-02 10:28:41 +04:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2005-09-18 07:26:26 +04:00
|
|
|
public override sealed bool CopyExtraFiles(ABuilder ab, string basedir, string source)
|
2005-08-02 10:28:41 +04:00
|
|
|
{
|
2005-08-24 06:53:38 +04:00
|
|
|
|
2008-08-17 04:18:59 +04:00
|
|
|
if (System.Environment.OSVersion.Platform == System.PlatformID.Unix)
|
2005-08-24 06:53:38 +04:00
|
|
|
{
|
|
|
|
} else {
|
2011-07-02 06:51:27 +04:00
|
|
|
File.Copy(source + "\\dlls\\cstrike\\csx\\msvc10\\Release\\WinCSX.exe",
|
2005-08-02 10:28:41 +04:00
|
|
|
basedir + "\\data\\WinCSX.exe",
|
|
|
|
true);
|
2005-08-24 06:53:38 +04:00
|
|
|
}
|
2005-08-02 10:28:41 +04:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void AddModules()
|
|
|
|
{
|
2007-03-13 14:46:03 +03:00
|
|
|
Module csx = new Module("csx");
|
2007-03-13 21:44:23 +03:00
|
|
|
csx.sourcedir = "dlls\\cstrike\\csx";
|
|
|
|
|
2007-03-13 14:46:03 +03:00
|
|
|
Module cstrike = new Module("cstrike");
|
2007-03-13 21:44:23 +03:00
|
|
|
cstrike.sourcedir = "dlls\\cstrike\\cstrike";
|
2005-08-02 10:28:41 +04:00
|
|
|
|
|
|
|
m_Modules.Add(csx);
|
|
|
|
m_Modules.Add(cstrike);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|