mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:46:13 +00:00
Util: Reload DOS device names (after adding new drive?).
This commit is contained in:
parent
54e062ddbb
commit
d173a15609
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user