1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37: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

9 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);
}