From: Toni Wilen Date: Sun, 2 Feb 2020 12:52:36 +0000 (+0200) Subject: Add dsk to autodetected extension list. X-Git-Tag: 4400~143 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5eec5b7f5a26604d851a08986fc9226ebe99c211;p=francis%2Fwinuae.git Add dsk to autodetected extension list. --- 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;