mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 14:49:56 +00:00
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
#ifndef MISC_RESOURCEHELPERS_H
|
|
#define MISC_RESOURCEHELPERS_H
|
|
|
|
#include <string>
|
|
|
|
namespace VFS
|
|
{
|
|
class Manager;
|
|
}
|
|
|
|
namespace Misc
|
|
{
|
|
// Workarounds for messy resource handling in vanilla morrowind
|
|
// The below functions are provided on a opt-in basis, instead of built into the VFS,
|
|
// so we have the opportunity to use proper resource handling for content created in OpenMW-CS.
|
|
namespace ResourceHelpers
|
|
{
|
|
bool changeExtensionToDds(std::string &path);
|
|
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);
|
|
/// Use "xfoo.nif" instead of "foo.nif" if available
|
|
std::string correctActorModelPath(const std::string &resPath, const VFS::Manager* vfs);
|
|
}
|
|
}
|
|
|
|
#endif
|