mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-06 06:33:28 +00:00
parent
04b60d319c
commit
0c6eff42cf
@ -1034,13 +1034,15 @@ pub fn split_obj(obj: &ObjInfo, module_name: Option<&str>) -> Result<Vec<ObjInfo
|
||||
}) as u64;
|
||||
|
||||
if current_address & (align as u32 - 1) != 0 {
|
||||
log::warn!(
|
||||
"Alignment for {} {} expected {}, but starts at {:#010X}",
|
||||
split.unit,
|
||||
section.name,
|
||||
align,
|
||||
current_address
|
||||
);
|
||||
if !split.autogenerated {
|
||||
log::warn!(
|
||||
"Alignment for {} {} expected {}, but starts at {:#010X}",
|
||||
split.unit,
|
||||
section.name,
|
||||
align,
|
||||
current_address
|
||||
);
|
||||
}
|
||||
while align > 4 {
|
||||
align /= 2;
|
||||
if current_address & (align as u32 - 1) == 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user