Fix macOS bundle zeml resource loading path
This commit is contained in:
@@ -596,8 +596,8 @@ std::string LoadFile(const std::string& filename) {
|
|||||||
const std::string kBundlePath = core::GetBundleResourcePath();
|
const std::string kBundlePath = core::GetBundleResourcePath();
|
||||||
std::ifstream file(kBundlePath + filename);
|
std::ifstream file(kBundlePath + filename);
|
||||||
#else
|
#else
|
||||||
const std::string kBundlePath = SDL_GetBasePath();
|
const std::string kBundlePath = core::GetBundleResourcePath();
|
||||||
std::ifstream file(kPath + filename);
|
std::ifstream file(kBundlePath + "Contents/Resources/layouts/" + filename);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
std::ifstream file(kPath + filename);
|
std::ifstream file(kPath + filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user