This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Lua 5.4 FAR Archive Extractor | |
-- Supports listing files, extracting individual files, and extracting all files with subfolder creation. | |
local function read_u32(file) | |
local bytes = file:read(4) | |
if not bytes or #bytes ~= 4 then return nil end | |
return string.unpack("<I4", bytes) | |
end | |
local function read_string(file, length) |