2014-08-11 18:04:44 +00:00
|
|
|
#ifndef MISC_RESOURCEHELPERS_H
|
|
|
|
#define MISC_RESOURCEHELPERS_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-03-19 00:45:01 +00:00
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Manager;
|
|
|
|
}
|
|
|
|
|
2014-08-11 18:04:44 +00:00
|
|
|
namespace Misc
|
|
|
|
{
|
|
|
|
namespace ResourceHelpers
|
|
|
|
{
|
2014-08-12 10:18:38 +00:00
|
|
|
bool changeExtensionToDds(std::string &path);
|
2015-03-19 00:45:01 +00:00
|
|
|
std::string correctResourcePath(const std::string &topLevelDirectory, const std::string &resPath, const VFS::Manager* vfs);
|
|
|
|
std::string correctTexturePath(const std::string &resPath, const VFS::Manager* vfs);
|
|
|
|
std::string correctIconPath(const std::string &resPath, const VFS::Manager* vfs);
|
|
|
|
std::string correctBookartPath(const std::string &resPath, const VFS::Manager* vfs);
|
|
|
|
std::string correctBookartPath(const std::string &resPath, int width, int height, const VFS::Manager* vfs);
|
2015-01-12 10:29:56 +00:00
|
|
|
/// Uses "xfoo.nif" instead of "foo.nif" if available
|
2015-03-19 00:45:01 +00:00
|
|
|
std::string correctActorModelPath(const std::string &resPath, const VFS::Manager* vfs);
|
2014-08-11 18:04:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|