1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Remove boost::filesystem from niftest

This commit is contained in:
jvoisin 2022-05-22 18:56:14 +02:00
parent 8dd3e53a30
commit 472af7c164

View file

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