Fake camera implemented to run it without real camera

This commit is contained in:
iTob 2025-02-16 15:29:46 +01:00
parent 549fcdaabf
commit b11e3dca6e

View File

@ -146,7 +146,7 @@ namespace EDSDKLib.API.Base
/// <exception cref="ArgumentNullException">The DownloadInfo is null</exception> /// <exception cref="ArgumentNullException">The DownloadInfo is null</exception>
public void DownloadFile(IDownloadInfo Info, string directory) public void DownloadFile(IDownloadInfo Info, string directory)
{ {
File.WriteAllBytes(Path.Combine(directory, Info.FileName), File.ReadAllBytes(this.mockImageFiles[new Random().Next(1, 99)].FullName)); File.WriteAllBytes(Path.Combine(directory, Info.FileName), File.ReadAllBytes(this.mockImageFiles[new Random().Next(1, this.mockImageFiles.Count)].FullName));
} }
/// <summary> /// <summary>