Skip to content

Instantly share code, notes, and snippets.

View gabcasanova's full-sized avatar
🎯
Focusing

Gabriel Casanova gabcasanova

🎯
Focusing
View GitHub Profile
@gabcasanova
gabcasanova / far_1a_extractor.lua
Created February 23, 2025 05:44
far 1a extractor inlua
-- 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)