Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
- Fixed reference table Windows incompatibility
  • Loading branch information
GreffMASTER authored Jan 2, 2024
1 parent 8acc908 commit 9450f6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions gbx/gbx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ local function analyze_ref_file(doc)
doc:set_comment(fic, 0, com_flags)
doc:set_data_type(fic, 4, 'u32le')
fic = fic + 4
if bit32.band(flags, 4) == 0 then
local flag4 = 0
if bit32 then
flag4 = bit32.band(flags, 4)
else
flag4 = flags & 4
end
if flag4 == 0 then
-- 4 bytes + n bytes
local string_s = utils.read_u32le(doc, fic)
fic = fic + 4
Expand All @@ -160,7 +166,7 @@ local function analyze_ref_file(doc)
doc:set_data_type(fic, 4, 'u32le')
fic = fic + 4
end
if bit32.band(flags, 4) == 0 then
if flag4 == 0 then
-- 4 bytes
doc:set_comment(fic, 0, com_folderindex)
doc:set_data_type(fic, 4, 'u32le')
Expand Down
2 changes: 1 addition & 1 deletion gbx/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local function f_ToolAboutGbx(mainwindow)
local message = [[
GBX ReHex Plugin
Version 1.0.1
Version 1.0.2
Made By GreffMASTER
2024
]]
Expand Down

0 comments on commit 9450f6c

Please sign in to comment.