From 52a0b9d8e532569b0ac152636d28ab49f2688ce8 Mon Sep 17 00:00:00 2001 From: numzero Date: Tue, 14 Mar 2023 18:34:47 +0300 Subject: Drop dependency on FileSystem from SceneManager --- examples/AutomatedTest/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples/AutomatedTest/main.cpp') 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"); -- cgit v1.2.3