Skip to content

Commit

Permalink
Fixed #6936 (Patch for deleteResource() and probably copyResource()) …
Browse files Browse the repository at this point in the history
…patch from SHC//Sniper
  • Loading branch information
ccw808 committed Mar 13, 2012
1 parent 0dcc5a7 commit 522b83e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MTA10_Server/mods/deathmatch/logic/CResourceManager.cpp
Expand Up @@ -1091,6 +1091,8 @@ bool CResourceManager::MoveDirToTrash ( const SString& strPathDirName )
{
// Get path to unique trash sub-directory
SString strDestPathDirName = MakeUniquePath ( PathJoin ( GetResourceTrashDir (), ExtractFilename ( strPathDirName.TrimEnd ( "\\" ).TrimEnd ( "/" ) ) ) );
// Make sure the trash directory exists and create if it does not
MakeSureDirExists ( GetResourceTrashDir () + "/" );
// Try move
return FileRename ( strPathDirName, strDestPathDirName );
}
Expand Down

0 comments on commit 522b83e

Please sign in to comment.