From 261525f3cbb2cab5f91b199546f91a84643a4011 Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 2 Nov 2024 10:35:53 -0500 Subject: [PATCH] Fix macOS bundle zeml resource loading path --- src/app/gui/zeml.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/gui/zeml.cc b/src/app/gui/zeml.cc index 1c7326df..5e94e097 100644 --- a/src/app/gui/zeml.cc +++ b/src/app/gui/zeml.cc @@ -596,8 +596,8 @@ std::string LoadFile(const std::string& filename) { const std::string kBundlePath = core::GetBundleResourcePath(); std::ifstream file(kBundlePath + filename); #else - const std::string kBundlePath = SDL_GetBasePath(); - std::ifstream file(kPath + filename); + const std::string kBundlePath = core::GetBundleResourcePath(); + std::ifstream file(kBundlePath + "Contents/Resources/layouts/" + filename); #endif #else std::ifstream file(kPath + filename);