Suggestion: Directory Handling

Topics: Developer Forum
Jan 10, 2007 at 12:29 AM
The .X exporter I'm using uses relative paths, but the Animation.Content seems to require an absolute path.

I suggest changing this:

In XModeImporter.cs (And possibly XMeshImporter)

XModeImporter class.

GetAbsolutePath method.

Change: Path.GetDirectoryName(foo)
to: Path.GetFullPath(foo).

You shouldn't need the Path.Combine call after doing that. Alternatively, I think you could just call "Path.GetFullPath" in any place where you currently call "GetAbsolutePath" method.