Changeset 10907
- Timestamp:
- Jan 14, 2012, 7:46:20 PM (13 years ago)
- Location:
- ps/trunk/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/lib/file/vfs/vfs.h
r10610 r10907 1 /* Copyright (c) 201 0Wildfire Games1 /* Copyright (c) 201 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining … … 58 58 * (the default behavior is to create all real directories in the path) 59 59 **/ 60 VFS_MOUNT_MUST_EXIST = 4 60 VFS_MOUNT_MUST_EXIST = 4, 61 62 /** 63 * keep the files named "*.DELETED" visible in the VFS directories. 64 * the standard behavior of hiding the file with the same name minus the 65 * ".DELETED" suffix will still apply. 66 * (the default behavior is to hide both the suffixed and unsuffixed files) 67 **/ 68 VFS_MOUNT_KEEP_DELETED = 8 61 69 }; 62 70 -
ps/trunk/source/lib/file/vfs/vfs_populate.cpp
r10631 r10907 1 /* Copyright (c) 201 0Wildfire Games1 /* Copyright (c) 201 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining … … 89 89 { 90 90 m_directory->RemoveFile(name.Basename()); 91 return; 91 if(!(m_realDirectory->Flags() & VFS_MOUNT_KEEP_DELETED)) 92 return; 92 93 } 93 94 … … 122 123 { 123 124 directory->RemoveFile(name.Basename()); 124 return; 125 if(!(this_->m_realDirectory->Flags() & VFS_MOUNT_KEEP_DELETED)) 126 return; 125 127 } 126 128 -
ps/trunk/source/ps/ArchiveBuilder.cpp
r9550 r10907 1 /* Copyright (C) 201 0Wildfire Games.1 /* Copyright (C) 201 Wildfire Games. 2 2 * This file is part of 0 A.D. 3 3 * … … 44 44 m_VFS->Mount(L"cache/", m_TempDir/"_archivecache/"); 45 45 46 m_VFS->Mount(L"", mod/"", VFS_MOUNT_MUST_EXIST );46 m_VFS->Mount(L"", mod/"", VFS_MOUNT_MUST_EXIST); 47 47 48 48 // Collect the list of files before loading any base mods
Note:
See TracChangeset
for help on using the changeset viewer.