- Timestamp:
- Jan 19, 2019, 6:12:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/FileCache/DirectAccess.cs
r325 r351 5 5 // Not caching at all, simply reading from disk on each request 6 6 public class DirectAccess : AbstractCache { 7 public override byte[] GetFileContent (string filename) {7 public override byte[] GetFileContent (string _filename) { 8 8 try { 9 if (!File.Exists ( filename)) {9 if (!File.Exists (_filename)) { 10 10 return null; 11 11 } 12 12 13 return File.ReadAllBytes ( filename);13 return File.ReadAllBytes (_filename); 14 14 } catch (Exception e) { 15 15 Log.Out ("Error in DirectAccess.GetFileContent: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.