Fixed for AMD64 compatibility

This commit is contained in:
David Anderson 2005-08-24 18:13:40 +00:00
parent d802a3c961
commit 1114443a43
3 changed files with 16 additions and 3 deletions

View File

@ -221,7 +221,17 @@ public virtual string BuildPlugin(AMod mod, Plugin pl)
public static string PropSlashes(string path)
{
return path.Replace(Path.AltDirectorySeparatorChar,Path.DirectorySeparatorChar);
char sep;
char alt;
if (Releaser.IsWindows)
{
sep = '\\';
alt = '/';
} else {
sep = '/';
alt = '\\';
}
return path.Replace(alt,sep);
}
}
}

View File

@ -80,7 +80,10 @@ public override string BuildModule(Module module)
p.WaitForExit();
if (!File.Exists(file))
{
Console.WriteLine("Output file failed: " + file);
return null;
}
//Now we need to see if the DL handle is valid!
string dlsym_dir = m_Cfg.GetSourceTree() + "\\plugins";

View File

@ -1,6 +1,6 @@
compress = /bin/tar
source = /home1/dvander/amxx
source = /home/users/dvander/amxx
makeopts = amd64
output = /home1/dvander/done
output = /home/users/dvander/done
devenv = /usr/bin/make
release = amxmodx-1.55