- Timestamp:
- Aug 7, 2022, 3:02:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/7dtd-server-fixes/src/FileCache/SimpleCache.cs
r351 r391 11 11 try { 12 12 lock (fileCache) { 13 if (!fileCache.ContainsKey (_filename)) { 14 if (!File.Exists (_filename)) { 15 return null; 16 } 13 if (fileCache.ContainsKey (_filename)) { 14 return fileCache [_filename]; 15 } 17 16 18 fileCache.Add (_filename, File.ReadAllBytes (_filename)); 17 if (!File.Exists (_filename)) { 18 return null; 19 19 } 20 21 fileCache.Add (_filename, File.ReadAllBytes (_filename)); 20 22 21 23 return fileCache [_filename];
Note:
See TracChangeset
for help on using the changeset viewer.