Skip to content

Commit

Permalink
enhancement: don't disable CD drive if no image path is specified (#1129
Browse files Browse the repository at this point in the history
)

When a config is loaded, if it contained a CD image path entry but the path was empty, the CD drive was also disabled.
  • Loading branch information
midwan committed Oct 28, 2023
1 parent 61605ca commit 1ad21c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cfgfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3618,7 +3618,6 @@ static int cfgfile_parse_host (struct uae_prefs *p, TCHAR *option, TCHAR *value)
p->cdslots[i].type = type;
if (path[0] == 0 || !_tcsicmp(path, _T("empty")) || !_tcscmp(path, _T("."))) {
p->cdslots[i].name[0] = 0;
p->cdslots[i].inuse = false;
}
if (path != value) {
xfree(path);
Expand Down

0 comments on commit 1ad21c5

Please sign in to comment.