Add .nds to supported ROM types, per #43

This commit is contained in:
Alcaro 2021-10-28 01:39:45 +02:00
parent 3476e5e46f
commit 3a8733e74c
2 changed files with 2 additions and 1 deletions

View File

@ -229,6 +229,7 @@ static char * SelectRom(const char * defaultname, const char * title, bool isFor
gtk_file_filter_add_pattern(filterRom, "*.gb");
gtk_file_filter_add_pattern(filterRom, "*.gbc");
gtk_file_filter_add_pattern(filterRom, "*.gba");
gtk_file_filter_add_pattern(filterRom, "*.nds");
gtk_file_filter_add_pattern(filterRom, "*.vb");
gtk_file_filter_add_pattern(filterRom, "*.sms");
gtk_file_filter_add_pattern(filterRom, "*.smd");

View File

@ -181,7 +181,7 @@ bool SelectRom(LPWSTR filename, LPCWSTR title, bool output)
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize=sizeof(ofn);
ofn.hwndOwner=hwndMain;
ofn.lpstrFilter=TEXT("Most Common ROM Files\0*.smc;*.sfc;*.nes;*.gb;*.gbc;*.gba;*.vb;*.sms;*.smd;*.md;*.ngp;*.n64;*.z64\0All Files (*.*)\0*.*\0");
ofn.lpstrFilter=TEXT("Most Common ROM Files\0*.smc;*.sfc;*.nes;*.gb;*.gbc;*.gba;*.nds;*.vb;*.sms;*.smd;*.md;*.ngp;*.n64;*.z64\0All Files (*.*)\0*.*\0");
ofn.lpstrFile=filename;
ofn.nMaxFile=MAX_PATH;
ofn.nFilterIndex=state.lastRomType;