mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:56:18 +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
|
end
|
||||||
|
|
||||||
dosname_to_drive = function (dos_name)
|
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()
|
fill_drives()
|
||||||
end
|
end
|
||||||
|
|
||||||
return drives[dos_name:lower()] or "?:"
|
return drives[name] or "?:"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user