Skip to content

Commit

Permalink
Merge pull request joncampbell123#5479 from maron2000/fix_zipmount
Browse files Browse the repository at this point in the history
Fix mounting zip files with white space in their names
  • Loading branch information
joncampbell123 authored Feb 9, 2025
2 parents df9df43 + c5ed30c commit 5d509c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ void MenuBrowseImageFile(char drive, bool arc, bool boot, bool multiple) {
const char *lFilterPatterns[] = {"*.zip","*.7z","*.ZIP","*.7Z"};
const char *lFilterDescription = "Archive files (*.zip, *.7z)";
lTheOpenFileName = tinyfd_openFileDialog(("Select an archive file for Drive "+str+":").c_str(),"", sizeof(lFilterPatterns) / sizeof(lFilterPatterns[0]),lFilterPatterns,lFilterDescription,0);
if (lTheOpenFileName) fname = GetNewStr(lTheOpenFileName);
if (lTheOpenFileName) fname = "\"" + GetNewStr(lTheOpenFileName) + "\"";
} else {
const char *lFilterPatterns[] = {"*.ima","*.img","*.vhd","*.fdi","*.hdi","*.nfd","*.nhd","*.d88","*.hdm","*.xdf","*.iso","*.cue","*.bin","*.chd","*.mdf","*.gog","*.ins","*.ccd","*.inst","*.IMA","*.IMG","*.VHD","*.FDI","*.HDI","*.NFD","*.NHD","*.D88","*.HDM","*.XDF","*.ISO","*.CUE","*.BIN","*.CHD","*.MDF","*.GOG","*.INS","*.CCD","*.INST"};
const char *lFilterDescription = "Disk/CD image files";
Expand Down

0 comments on commit 5d509c8

Please sign in to comment.