mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Inject layout files to VFS
This commit is contained in:
parent
2630bc21dd
commit
c47a48e25d
98 changed files with 119 additions and 215 deletions
|
@ -213,11 +213,18 @@ namespace Gui
|
|||
return;
|
||||
}
|
||||
|
||||
std::string oldDataPath = dataManager->getDataPath("");
|
||||
dataManager->setResourcePath("fonts");
|
||||
|
||||
for (const auto& name : mVFS->getRecursiveDirectoryIterator("Fonts/"))
|
||||
{
|
||||
std::filesystem::path path = name;
|
||||
std::cout << name << std::endl;
|
||||
if (Misc::getFileExtension(name) == "omwfont")
|
||||
MyGUI::ResourceManager::getInstance().load(name);
|
||||
MyGUI::ResourceManager::getInstance().load(path.filename());
|
||||
}
|
||||
|
||||
dataManager->setResourcePath(oldDataPath);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue