mirror of https://github.com/axmolengine/axmol.git
fixed reserlution order
This commit is contained in:
parent
da26dc0138
commit
a346d71a91
|
@ -302,7 +302,11 @@ std::string FileUtilsApple::getFullPathForDirectoryAndFilename(const std::string
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string fullPath = directory+filename;
|
std::string fullPath = directory;
|
||||||
|
if (!directory.empty() && directory[directory.length()-1] != '/')
|
||||||
|
fullPath.append("/");
|
||||||
|
|
||||||
|
fullPath.append(filename);
|
||||||
// Search path is an absolute path.
|
// Search path is an absolute path.
|
||||||
if ([s_fileManager fileExistsAtPath:[NSString stringWithUTF8String:fullPath.c_str()]]) {
|
if ([s_fileManager fileExistsAtPath:[NSString stringWithUTF8String:fullPath.c_str()]]) {
|
||||||
return fullPath;
|
return fullPath;
|
||||||
|
|
Loading…
Reference in New Issue