Fix macOS bundle zeml resource loading path

This commit is contained in:
scawful
2024-11-02 10:35:53 -05:00
parent 38dc061b75
commit 261525f3cb

View File

@@ -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);