- 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/DirectAccess.cs
r351 r391 7 7 public override byte[] GetFileContent (string _filename) { 8 8 try { 9 if (!File.Exists (_filename)) { 10 return null; 11 } 12 13 return File.ReadAllBytes (_filename); 9 return File.Exists (_filename) ? File.ReadAllBytes (_filename) : null; 14 10 } catch (Exception e) { 15 11 Log.Out ("Error in DirectAccess.GetFileContent: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.