OpenMW
|
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <components/nif/niffile.hpp>
#include <components/files/constrainedfilestream.hpp>
#include <components/vfs/manager.hpp>
#include <components/vfs/bsaarchive.hpp>
#include <components/vfs/filesystemarchive.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
Functions | |
bool | hasExtension (std::string filename, std::string extensionToFind) |
Program to test .nif files both on the FileSystem and in BSA archives. More... | |
bool | isNIF (std::string filename) |
See if the file has the "nif" extension. More... | |
bool | isBSA (std::string filename) |
See if the file has the "bsa" extension. More... | |
void | readVFS (VFS::Archive *anArchive, std::string archivePath="") |
std::vector< std::string > | parseOptions (int argc, char **argv) |
int | main (int argc, char **argv) |
bool hasExtension | ( | std::string | filename, |
std::string | extensionToFind | ||
) |
Program to test .nif files both on the FileSystem and in BSA archives.
See if the file has the named extension
bool isBSA | ( | std::string | filename | ) |
See if the file has the "bsa" extension.
bool isNIF | ( | std::string | filename | ) |
See if the file has the "nif" extension.
std::vector<std::string> parseOptions | ( | int | argc, |
char ** | argv | ||
) |
void readVFS | ( | VFS::Archive * | anArchive, |
std::string | archivePath = "" |
||
) |
Check all the nif files in a given VFS::Archive