Bug 188 - Incbin doesn't include the proper amount of bytes if offset is non zero
Summary: Incbin doesn't include the proper amount of bytes if offset is non zero
Status: RESOLVED FIXED
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC All
: Normal normal
Assignee: Shamus Hammons
URL:
Depends on:
Blocks:
 
Reported: 2021-10-11 11:54 CDT by ggn
Modified: 2021-10-30 10:26 CDT (History)
1 user (show)

See Also:


Attachments
One line fix (647 bytes, patch)
2021-10-11 11:55 CDT, ggn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2021-10-11 11:54:25 CDT
So something like 

incbin "file.ext",a,b

will actually load (a-b) bytes instead of a if b is <>0! That's not what the user asked for!

Patch follows, etc etc
Comment 1 ggn 2021-10-11 11:55:14 CDT
Created attachment 164 [details]
One line fix
Comment 2 Shamus Hammons 2021-10-30 10:26:29 CDT
Thanks for the patch!  :-)