mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 03:57:51 +03:00
Implement Lua bindings for sound system
This commit is contained in:
parent
18f3e937cb
commit
7ce9fc25c5
21 changed files with 605 additions and 51 deletions
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue