aboutsummaryrefslogtreecommitdiff
path: root/examples/AutomatedTest/main.cpp
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2023-03-14 18:34:47 +0300
committersfan5 <sfan5@live.de>2023-03-19 19:47:43 +0100
commit52a0b9d8e532569b0ac152636d28ab49f2688ce8 (patch)
tree8a50043e32590ea78e674f85c046e47bbe67ad43 /examples/AutomatedTest/main.cpp
parent0160cdc51d020d590b7275178872ec93564dc857 (diff)
downloadirrlicht-52a0b9d8e532569b0ac152636d28ab49f2688ce8.tar.xz
Drop dependency on FileSystem from SceneManager
Diffstat (limited to 'examples/AutomatedTest/main.cpp')
-rw-r--r--examples/AutomatedTest/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/AutomatedTest/main.cpp b/examples/AutomatedTest/main.cpp
index 0141b2b..5df7a29 100644
--- a/examples/AutomatedTest/main.cpp
+++ b/examples/AutomatedTest/main.cpp
@@ -85,8 +85,12 @@ int main(int argc, char *argv[])
const io::path mediaPath = getExampleMediaPath();
- scene::IAnimatedMesh* mesh = smgr->getMesh(mediaPath + "coolguy_opt.x");
+ auto mesh_file = device->getFileSystem()->createAndOpenFile(mediaPath + "coolguy_opt.x");
+ check(mesh_file, "mesh file loading");
+ scene::IAnimatedMesh* mesh = smgr->getMesh(mesh_file);
check(mesh, "mesh loading");
+ if (mesh_file)
+ mesh_file->drop();
if (mesh)
{
video::ITexture* tex = driver->getTexture(mediaPath + "cooltexture.png");