rename: src/Formats -> src/Rosetta, @formats -> @rosetta requires, build/luajit/rosetta + rosetta._compat, build/roblox/Rosetta, ROSETTA_* env/globals, writer vendor strings
This commit is contained in:
1 parent
2956576d7f
commit
22ddcd78fa
941 files changed
+3364
-3364
No files matched your search
@@ -1,11 +1,11 @@
|
||||
-- examples/archive.luau: builds a zip, lists and reads it, edits it, converts it to a .tar.gz and back, and gzips a
|
||||
-- single file. Run from the repository root: luau examples/archive.luau (docs/guide/archive.md explains the API).
|
||||
local F = require("@formats")
|
||||
local F = require("@rosetta")
|
||||
|
||||
-- a new zip: a directory, a text file, an incompressible file stored as is
|
||||
local zip = F.format("zip").create()
|
||||
zip:add("game/", nil)
|
||||
zip:add("game/readme.txt", string.rep("formats-luau reads and writes archives. ", 20), { level = 9 })
|
||||
zip:add("game/readme.txt", string.rep("rosetta reads and writes archives. ", 20), { level = 9 })
|
||||
local noise = buffer.create(2048)
|
||||
local seed = 7
|
||||
for i = 0, 2047 do
|
||||
|
||||
Reference in new issue
Block a user