Quote:
paradoxharbinger said:
yeah, those slashes are hardcoded. i believe windows will take either the back- or forward slash, so should be an easy fix.
|
Yes, that's what I meant with WinNT and successors being POSIX-compliant. I had a quick look and it seems that there is a
Path I/O class in System.IO which gives you the directory separator char via (Alt)DirectorySeparatorChar. This should give the right character to use on non-Windows environments, too. I just had a try with DirectorySeparatorChar and AltDirectorySeparatorChar and both output a slash ("/") for me:
Code:
using System;
using System.IO;
public class Test {
public static void Main(string[] args) {
Console.WriteLine("This is the DirectorySeparatorChar: " + Path.DirectorySeparatorChar);
}
}
Quote:
Gandalf Parker said:
Will MapGen come out multiplatform also?
|
Mono does not recognize the assembly because of the depency on Microsoft DLLs. Wine chokes on MSVCP80.dll and MSVCR80.dll, even after installing them, I guess that's because my wine version is too old (I'm using wine 0.9.29). I can run it with Cedega 5.1.1, however. So if you want to run the MapGen then either get Cedega or a newer wine version than I'm using, then you can use the MapGen on Linux.