]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Add dsk to autodetected extension list.
authorToni Wilen <twilen@winuae.net>
Sun, 2 Feb 2020 12:52:36 +0000 (14:52 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 2 Feb 2020 12:52:36 +0000 (14:52 +0200)
disk.cpp

index 6c11dea564c934103a3cdbb530dcc660cfd970da..78dc2d3c26640a113d61e597037a6c4e8351213e 100644 (file)
--- 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;