This commit is contained in:
2025-09-29 14:31:03 -04:00
parent 701bfa5198
commit 1a92ff1bd2
5 changed files with 27 additions and 9 deletions

View File

@@ -2,6 +2,27 @@ local fss = {}
local object = {}
local uObject = {}
local function deepcopy(orig, copies)
copies = copies or {}
if type(orig) ~= 'table' then
return orig
elseif copies[orig] then
return copies[orig]
end
local copy = {}
copies[orig] = copy
for k, v in next, orig, nil do
local copied_key = deepcopy(k, copies)
local copied_val = deepcopy(v, copies)
copy[copied_key] = copied_val
end
return copy
end
local function getFs(disk)
return fss[tostring(disk.__UDATA_id)]
end