fix display of Ogg extensions
This commit is contained in:
parent
b3ae0ef946
commit
6816799822
1 changed files with 11 additions and 3 deletions
|
|
@ -8079,9 +8079,17 @@ bool FurnaceGUI::init() {
|
|||
// just in case
|
||||
if (strcmp(f.extension,"dmc")==0) continue;
|
||||
if (strcmp(f.extension,"brr")==0) continue;
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back(fmt::sprintf("*.%s",f.extension));
|
||||
compatFormats+=fmt::sprintf("*.%s ",f.extension);
|
||||
|
||||
// special treatment for Ogg
|
||||
if (strcmp(f.extension,"oga")==0) {
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back("*.ogg *.oga *.opus");
|
||||
compatFormats+="*.ogg *.oga *.opus";
|
||||
} else {
|
||||
audioLoadFormats.push_back(f.name);
|
||||
audioLoadFormats.push_back(fmt::sprintf("*.%s",f.extension));
|
||||
compatFormats+=fmt::sprintf("*.%s ",f.extension);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue