Thread: Utility Dom3 Unit Maker v1.07
View Single Post
  #35  
Old April 29th, 2007, 07:10 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Dom3 Unit Maker

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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote