From 7c8c8ff3813a195c2d8a2d7acd42577e1aa13fc0 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 7 Jun 2008 08:10:46 +0000 Subject: [PATCH] FGFontCache::initializeFonts() now portable across platform through the use of plib --- src/GUI/new_gui.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index c6057b771..3ac483abc 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include "new_gui.hxx" @@ -559,11 +559,11 @@ bool FGFontCache::initializeFonts() { static string fontext("txf"); init(); - DIR* fontdir = opendir(_path.c_str()); + ulDir* fontdir = ulOpenDir(_path.c_str()); if (!fontdir) return false; - const dirent *dirEntry; - while ((dirEntry = readdir(fontdir)) != 0) { + const ulDirEnt *dirEntry; + while ((dirEntry = ulReadDir(fontdir)) != 0) { SGPath path(_path); path.append(dirEntry->d_name); if (path.extension() == fontext) { @@ -574,7 +574,7 @@ bool FGFontCache::initializeFonts() delete f; } } - closedir(fontdir); + ulCloseDir(fontdir); return true; }