AMD64 building fixes and such

This commit is contained in:
Scott Ehlert 2006-09-03 03:48:54 +00:00
parent 557958b408
commit ed5395a54a
5 changed files with 21 additions and 14 deletions

View File

@ -627,7 +627,7 @@ void Debugger::FmtGenericMsg(AMX *amx, int error, char buffer[], size_t maxLengt
{
_snprintf(buffer, maxLength, "Run time error %d (plugin \"%s\") - %s", error, filename, GenericError(AMX_ERR_EXIT));
} else if (error == AMX_ERR_NATIVE) {
amx_GetNative(amx, (int)amx->usertags[UT_NATIVE], native);
amx_GetNative(amx, reinterpret_cast<long>(amx->usertags[UT_NATIVE]), native);
_snprintf(buffer, maxLength, "Run time error %d (plugin \"%s\") (native \"%s\") - debug not enabled!", error, filename, native);
} else {
_snprintf(buffer, maxLength, "Run time error %d (plugin \"%s\") - debug not enabled!", error, filename);

View File

@ -8,26 +8,33 @@ namespace AMXXRelease
public class Build
{
protected ArrayList m_Mods;
protected Config m_Cfg;
public Build()
public Build(Config cfg)
{
m_Mods = new ArrayList();
m_Cfg = cfg;
CoreMod core = new CoreMod();
ModCstrike cstrike = new ModCstrike();
ModDoD dod = new ModDoD();
ModEsf esf = new ModEsf();
ModNs ns = new ModNs();
ModTFC tfc = new ModTFC();
ModTs ts = new ModTs();
m_Mods.Add(core);
m_Mods.Add(cstrike);
m_Mods.Add(dod);
m_Mods.Add(esf);
m_Mods.Add(ns);
m_Mods.Add(tfc);
m_Mods.Add(ts);
if (m_Cfg.MakeOpts().IndexOf("amd64") == -1)
{
ModDoD dod = new ModDoD();
ModEsf esf = new ModEsf();
ModNs ns = new ModNs();
ModTFC tfc = new ModTFC();
ModTs ts = new ModTs();
m_Mods.Add(dod);
m_Mods.Add(esf);
m_Mods.Add(ns);
m_Mods.Add(tfc);
m_Mods.Add(ts);
}
}
public virtual int GetMods()

View File

@ -52,7 +52,7 @@ public void Release(string file)
Releaser.IsWindows = true;
}
Build build = new Build();
Build build = new Build(m_Cfg);
builder.Build(m_Cfg, build);
}

View File

@ -3,4 +3,4 @@ source = /home/dvander/code/amxx
makeopts = amd64
output = /home/dvander/done
devenv = /usr/bin/make
release = amxmodx-1.75
release = amxmodx-1.76