docs: rosetta naming in README, docs, guide, licenses

This commit is contained in:
4DBug committed 2026-11-01 01:19:16 -05:00
1 parent 22ddcd78fa
commit 753ae98d4a
20 files changed
+123 -123

No files matched your search

+3 -3
View File
@@ -150,10 +150,10 @@ local zip = F.format("zip").create()
zip:add("assets/", nil) -- a directory
zip:add("assets/hello.txt", "hello", { level = 9, mtime = 1767225600 })
zip:add("assets/raw.bin", buffer.create(1024), { method = "store" })
local bytes = assert(F.save(zip, nil, { format = "zip", comment = "made by formats-luau" }))
local bytes = assert(F.save(zip, nil, { format = "zip", comment = "made by rosetta" }))
local back = assert(F.archive.load(bytes))
assert(#back:list() == 3 and back.meta.comment == "made by formats-luau")
assert(#back:list() == 3 and back.meta.comment == "made by rosetta")
assert(back:list()[3].method == "store")
assert(back:remove("assets/raw.bin") and #back:list() == 2)
@@ -350,7 +350,7 @@ stored data); ARJ and Zoo are read only.
```luau
local lzh = assert(F.archive.load(lzhBytes))
assert(lzh.format == "lha" and lzh:list()[1].method == "lh0") -- small files are stored
assert(buffer.tostring(assert(lzh:read("readme.txt"))) == "formats-luau retro archives\n")
assert(buffer.tostring(assert(lzh:read("readme.txt"))) == "rosetta retro archives\n")
local arj = assert(F.archive.load(arjBytes))
assert(arj:read("src/main.c"))
local zoo = assert(F.archive.load(zooBytes))