1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-11-15 06:48:07 +11:00
Zorya-NEO/lib/util_urf/init.lua

22 lines
375 B
Lua
Raw Normal View History

2020-01-09 15:01:35 +11:00
-- P A I N
local flag_crit = 1 << 6
local flag_required = 1 << 7
local flag_ext = 1 << 8
local function read_ali(fs, h)
local tmp = 0
local ctr = 0
while true do
local b = fs.read(h, 1):byte()
tmp = tmp | ((b & 0x7F) << (ctr*7))
if (b & 0x80 > 0) then
break
end
end
return tmp
end
local function read_entrydat(fs, h)
local etype = fs.read(h, 1):byte()
end