1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 01:23:53 +00:00
openmw/tools/fileops.cpp
Ardekantur ad1e9e7078 boost::filesystem cross-platform config file check
* introduces the use of the Boost.System and Boost.Filesystem libraries,
  which must be built and linked to rather than just compiled into
  OpenMW. May be a pain in the neck to get working on other platforms,
  but once it works, we have all of Boost to work with.
2010-06-04 21:44:05 -04:00

8 lines
188 B
C++

#include "fileops.hpp"
#include <boost/filesystem.hpp>
bool isFile(const char *name)
{
boost::filesystem::path cfg_file_path(name);
return boost::filesystem::exists(cfg_file_path);
}