From 5eec5b7f5a26604d851a08986fc9226ebe99c211 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 2 Feb 2020 14:52:36 +0200 Subject: [PATCH] Add dsk to autodetected extension list. --- disk.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/disk.cpp b/disk.cpp index 6c11dea5..78dc2d3c 100644 --- a/disk.cpp +++ b/disk.cpp @@ -1088,12 +1088,13 @@ static bool diskfile_iswriteprotect (struct uae_prefs *p, const TCHAR *fname_in, return wrprot1; } -static bool isrecognizedext (const TCHAR *name) +static bool isrecognizedext(const TCHAR *name) { - const TCHAR *ext = _tcsrchr (name, '.'); + const TCHAR *ext = _tcsrchr(name, '.'); if (ext) { ext++; - if (!_tcsicmp (ext, _T("adf")) || !_tcsicmp (ext, _T("adz")) || !_tcsicmp (ext, _T("st")) || !_tcsicmp (ext, _T("ima")) || !_tcsicmp (ext, _T("img"))) + if (!_tcsicmp(ext, _T("adf")) || !_tcsicmp(ext, _T("adz")) || !_tcsicmp(ext, _T("st")) || + !_tcsicmp(ext, _T("ima")) || !_tcsicmp(ext, _T("img")) || !_tcsicmp(ext, _T("dsk"))) return true; } return false; -- 2.47.3