From 1114443a43f540c51b187a74093b3ea2c65b7970 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Aug 2005 18:13:40 +0000 Subject: [PATCH] Fixed for AMD64 compatibility --- installer/AMXXRelease/ABuilder.cs | 12 +++++++++++- installer/AMXXRelease/LinuxBuilder.cs | 3 +++ installer/AMXXRelease/linux64.info | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/installer/AMXXRelease/ABuilder.cs b/installer/AMXXRelease/ABuilder.cs index b04d0345..1c960ea1 100755 --- a/installer/AMXXRelease/ABuilder.cs +++ b/installer/AMXXRelease/ABuilder.cs @@ -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); } } } diff --git a/installer/AMXXRelease/LinuxBuilder.cs b/installer/AMXXRelease/LinuxBuilder.cs index cb8c7574..c1f41a22 100755 --- a/installer/AMXXRelease/LinuxBuilder.cs +++ b/installer/AMXXRelease/LinuxBuilder.cs @@ -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"; diff --git a/installer/AMXXRelease/linux64.info b/installer/AMXXRelease/linux64.info index dd2c0a78..47c02cc7 100755 --- a/installer/AMXXRelease/linux64.info +++ b/installer/AMXXRelease/linux64.info @@ -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