Implement Lua bindings for sound system

This commit is contained in:
Andrei Kortunov 2023-07-19 17:21:17 +04:00
parent 18f3e937cb
commit 7ce9fc25c5
21 changed files with 605 additions and 51 deletions

View file

@ -151,6 +151,11 @@ std::string Misc::ResourceHelpers::correctMeshPath(const std::string& resPath, c
return "meshes\\" + resPath;
}
std::string Misc::ResourceHelpers::correctSoundPath(const std::string& resPath)
{
return "sound\\" + resPath;
}
std::string_view Misc::ResourceHelpers::meshPathForESM3(std::string_view resPath)
{
constexpr std::string_view prefix = "meshes";

View file

@ -35,6 +35,9 @@ namespace Misc
// Adds "meshes\\".
std::string correctMeshPath(const std::string& resPath, const VFS::Manager* vfs);
// Adds "sound\\".
std::string correctSoundPath(const std::string& resPath);
// Removes "meshes\\".
std::string_view meshPathForESM3(std::string_view resPath);