Util: Reload DOS device names (after adding new drive?).

This commit is contained in:
Nodir Temirkhodjaev 2015-01-18 13:14:46 +05:00
parent 54e062ddbb
commit d173a15609

View File

@ -27,11 +27,13 @@ do
end
dosname_to_drive = function (dos_name)
if not drives then
local name = dos_name:lower()
if not drives or not drives[name] then
fill_drives()
end
return drives[dos_name:lower()] or "?:"
return drives[name] or "?:"
end
end