Mercurial > projects > mde
comparison mde/setup/paths.d @ 102:ba035eba07b4
Compilation fixes for windows and unittest code.
author | Cyborg16@cyborg64-win.lan |
---|---|
date | Sat, 22 Nov 2008 20:59:36 +0000 |
parents | 71f0f1f83620 |
children | 42e241e7be3e |
comparison
equal
deleted
inserted
replaced
101:71f0f1f83620 | 102:ba035eba07b4 |
---|---|
278 * | 278 * |
279 * Returns a C string (null terminated). */ | 279 * Returns a C string (null terminated). */ |
280 char[] getFontPath (char[] file) { | 280 char[] getFontPath (char[] file) { |
281 FilePath path = new FilePath (fontDir~file); | 281 FilePath path = new FilePath (fontDir~file); |
282 if (path.exists && !path.isFolder) | 282 if (path.exists && !path.isFolder) |
283 return path.CString; | 283 return path.cString; |
284 throw new NoFileException ("Unable to find font file: "~file); | 284 throw new NoFileException ("Unable to find font file: "~file); |
285 } | 285 } |
286 | 286 |
287 void resolvePaths (char[] base = "./") { | 287 void resolvePaths (char[] base = "./") { |
288 //FIXME: Get base path from registry | 288 //FIXME: Get base path from registry |