You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: miniOS/miniOS.lua
+24-15Lines changed: 24 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
_G._OSNAME="miniOS classic"
2
-
_G._OSVER="0.6.2-pre.1"
2
+
_G._OSVER="0.6.2"
3
3
_G._OSVERSION=_OSNAME.."" .._OSVER
4
-
_G._OSCREDIT="miniOS classic by Skye, based off of OpenOS code from OpenComputers.\nminiOS code is under BSD 2-clause license, OpenOS code is under the MIT license."
4
+
_G._OSCREDIT="miniOS classic by Skye, based off of OpenOS code from OpenComputers.\nminiOS code is under BSD 2-clause licence, OpenOS code is under the MIT licence."
5
5
6
6
--component code
7
7
functioncomponent_code()
@@ -432,14 +432,14 @@ function fs_code()
432
432
fs.drive._map= {}
433
433
--converts a drive letter into a proxy
434
434
functionfs.drive.letterToProxy(letter)
435
-
returnfs.drive._map[letter]
435
+
returnfs.drive._map[letter]
436
436
end
437
437
--finds the proxy associated with the letter
438
438
functionfs.drive.proxyToLetter(proxy)
439
439
forl,pinpairs(fs.drive._map) do
440
-
ifp==proxythenreturnlend
441
-
end
442
-
returnnil
440
+
ifp==proxythenreturnlend
441
+
end
442
+
returnnil
443
443
end
444
444
--maps a proxy to a letter
445
445
functionfs.drive.mapProxy(letter, proxy)
@@ -457,8 +457,9 @@ function fs_code()
457
457
returnnil
458
458
end
459
459
functionfs.drive.mapAddress(letter, address)
460
-
--print("mapAddress")
461
-
fs.drive._map[letter] =fs.proxy(address)
460
+
--print("mapAddress")
461
+
ifaddress==nilthenfs.drive._map[letter] =nil
462
+
elsefs.drive._map[letter] =fs.proxy(address) end
462
463
end
463
464
functionfs.drive.autoMap(address) --returns the letter if mapped OR already mapped, false if not.
0 commit comments