Fix formating problems with GetApplicationDir.
Don't ever return an empty string
This commit is contained in:
parent
f57727995a
commit
3a5374fac4
|
|
@ -3068,6 +3068,10 @@ const char *GetApplicationDirectory(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
appDir[0] = '/';
|
||||||
|
}
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
uint32_t size = sizeof(appDir);
|
uint32_t size = sizeof(appDir);
|
||||||
|
|
||||||
|
|
@ -3083,6 +3087,10 @@ const char *GetApplicationDirectory(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
appDir[0] = '/';
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return appDir;
|
return appDir;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user