mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-22 06:23:28 +00:00
Update Errors (#87)
Co-authored-by: NWPlayer123 <NWPlayer123@users.noreply.github.com>
This commit is contained in:
parent
91aa36c120
commit
8fb56c2fa4
@ -149,7 +149,7 @@ impl FunctionSlices {
|
|||||||
if check_prologue_sequence(section, addr, Some(ins))? {
|
if check_prologue_sequence(section, addr, Some(ins))? {
|
||||||
if let Some(prologue) = self.prologue {
|
if let Some(prologue) = self.prologue {
|
||||||
if prologue != addr && prologue != addr - 4 {
|
if prologue != addr && prologue != addr - 4 {
|
||||||
bail!("Found duplicate prologue: {:#010X} and {:#010X}", prologue, addr)
|
bail!("Found multiple functions inside a symbol: {:#010X} and {:#010X}. Check symbols.txt?", prologue, addr)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.prologue = Some(addr);
|
self.prologue = Some(addr);
|
||||||
|
@ -710,7 +710,7 @@ where R: BufRead + ?Sized {
|
|||||||
ensure!(
|
ensure!(
|
||||||
section.contains_range(start..end)
|
section.contains_range(start..end)
|
||||||
|| (start == section_end && end == section_end),
|
|| (start == section_end && end == section_end),
|
||||||
"Section {} ({:#010X}..{:#010X}) does not contain range {:#010X}..{:#010X}",
|
"Section {} ({:#010X}..{:#010X}) does not contain range {:#010X}..{:#010X}. Check splits.txt?",
|
||||||
name,
|
name,
|
||||||
section.address,
|
section.address,
|
||||||
section.address + section.size,
|
section.address + section.size,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user