private void PerformBamCapture() { if (_bam == null || !File.Exists(_bam)) { return; } string bamPng = Path.Combine(Path.GetDirectoryName(_bam), Path.ChangeExtension(Path.GetFileName(_rom), ".png")); if (File.Exists(bamPng)) { ScreenCapture.AddImageToGameList(_rom, bamPng, false); try { File.Delete(bamPng); } catch { } } }