From 638e79009fa6e367f4f4b4a7d7df9d43e0a5159b Mon Sep 17 00:00:00 2001 From: n-a-c-h Date: Tue, 27 Dec 2011 21:56:00 +0000 Subject: [PATCH] Add missing extensions. --- src/gb/GB.cpp | 2 ++ src/win32/BIOSDialog.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gb/GB.cpp b/src/gb/GB.cpp index 50521104..8769edcd 100644 --- a/src/gb/GB.cpp +++ b/src/gb/GB.cpp @@ -608,6 +608,8 @@ bool gbIsGameboyRom(char * file) char * p = strrchr(file,'.'); if(p != NULL) { + if(_stricmp(p, ".dmg") == 0) + return true; if(_stricmp(p, ".gb") == 0) return true; if(_stricmp(p, ".gbc") == 0) diff --git a/src/win32/BIOSDialog.cpp b/src/win32/BIOSDialog.cpp index 040a3c89..f3a0a046 100644 --- a/src/win32/BIOSDialog.cpp +++ b/src/win32/BIOSDialog.cpp @@ -95,7 +95,7 @@ void BIOSDialog::OnBnClickedSelectGbcBiosPath() NULL, current, OFN_DONTADDTORECENT | OFN_FILEMUSTEXIST, - _T("BIOS Files (*.bin;*.gbc)|*.bin;*.gbc|All Files (*.*)|*.*||"), + _T("BIOS Files (*.bin;*.cgb;*.gbc)|*.bin;*.cgb;*.gbc|All Files (*.*)|*.*||"), this, 0 );