Remove boost::filesystem from niftest

fix/shrink_builds
jvoisin 3 years ago
parent 8dd3e53a30
commit 472af7c164

@ -1,6 +1,7 @@
///Program to test .nif files both on the FileSystem and in BSA archives.
#include <iostream>
#include <filesystem>
#include <components/misc/stringops.hpp>
#include <components/nif/niffile.hpp>
@ -10,11 +11,9 @@
#include <components/vfs/filesystemarchive.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
// Create local aliases for brevity
namespace bpo = boost::program_options;
namespace bfs = boost::filesystem;
///See if the file has the named extension
bool hasExtension(std::string filename, std::string extensionToFind)
@ -138,7 +137,7 @@ int main(int argc, char **argv)
// std::cout << "Reading BSA File: " << name << std::endl;
readVFS(new VFS::BsaArchive(name));
}
else if(bfs::is_directory(bfs::path(name)))
else if(std::filesystem::is_directory(std::filesystem::path(name)))
{
// std::cout << "Reading All Files in: " << name << std::endl;
readVFS(new VFS::FileSystemArchive(name),name);

Loading…
Cancel
Save