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