From e113d598aecdea0a2a10c5d3d87403f68f303185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 2 Nov 2025 21:30:56 -0800 Subject: [PATCH] Entry: Fixed file path. --- examples/common/entry/entry.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/common/entry/entry.cpp b/examples/common/entry/entry.cpp index 6350e76f6..fd3a04958 100644 --- a/examples/common/entry/entry.cpp +++ b/examples/common/entry/entry.cpp @@ -34,7 +34,8 @@ namespace entry extern bx::AllocatorI* getDefaultAllocator(); bx::AllocatorI* g_allocator = getDefaultAllocator(); - static bx::FilePath s_currentDir; + using FixedString4096 = bx::FixedStringT<4096>; + static FixedString4096 s_currentDir; class FileReader : public bx::FileReader { @@ -43,8 +44,9 @@ namespace entry public: virtual bool open(const bx::FilePath& _filePath, bx::Error* _err) override { - bx::FilePath filePath(s_currentDir); - filePath.join(_filePath); + FixedString4096 filePath(s_currentDir); + filePath.append(_filePath); + return super::open(filePath.getCPtr(), _err); } };