Core/Misc: Solved some issues found by static code analysis.
This commit is contained in:
1 parent
26373ee766
commit
5b95301de5
3 files changed
+9
-7
No files matched your search
@@ -89,11 +89,17 @@ static const char* const langs[] = {"enGB", "enUS", "deDE", "esES", "frFR", "koK
|
||||
|
||||
void CreateDir( const std::string& Path )
|
||||
{
|
||||
int ret;
|
||||
#ifdef _WIN32
|
||||
_mkdir( Path.c_str());
|
||||
ret = _mkdir( Path.c_str());
|
||||
#else
|
||||
mkdir( Path.c_str(), 0777 );
|
||||
ret = mkdir( Path.c_str(), 0777 );
|
||||
#endif
|
||||
if (ret != 0)
|
||||
{
|
||||
printf("Fatal Error: Could not create directory %s check your permissions", Path.c_str());
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
bool FileExists( const char* FileName )
|
||||
|
||||
Reference in new issue
Block a user