Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Mar 19, 2024
1 parent d21c5e4 commit 2ec94ae
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/splat/segtypes/common/bss.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def is_noload() -> bool:
return False
return True

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

pass
Expand Down
5 changes: 3 additions & 2 deletions src/splat/segtypes/common/codesubsegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def needs_symbols(self) -> bool:
def get_linker_section(self) -> str:
return ".text"

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

section = disassembler_section.get_section()
Expand All @@ -57,7 +59,6 @@ def configure_disassembler_section(self, disassembler_section: DisassemblerSecti
section.instrCat = self.instr_category
section.detectRedundantFunctionEnd = self.detect_redundant_function_end


def scan_code(self, rom_bytes, is_hasm=False):
self.is_hasm = is_hasm

Expand Down
4 changes: 3 additions & 1 deletion src/splat/segtypes/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def get_linker_section(self) -> str:
def get_linker_entries(self):
return CommonSegCodeSubsegment.get_linker_entries(self)

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

section = disassembler_section.get_section()
Expand Down
9 changes: 7 additions & 2 deletions src/splat/segtypes/common/rodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

from .data import CommonSegData

from ...disassembler.disassembler_section import DisassemblerSection, make_rodata_section
from ...disassembler.disassembler_section import (
DisassemblerSection,
make_rodata_section,
)


class CommonSegRodata(CommonSegData):
Expand Down Expand Up @@ -41,7 +44,9 @@ def get_possible_text_subsegment_for_symbol(
return None
return text_segment, func

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

section = disassembler_section.get_section()
Expand Down
4 changes: 3 additions & 1 deletion src/splat/segtypes/ps2/ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def get_linker_section(self) -> str:
def get_section_flags(self) -> Optional[str]:
return "a"

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

super().configure_disassembler_section(disassembler_section)
Expand Down
4 changes: 3 additions & 1 deletion src/splat/segtypes/ps2/lit4.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def get_linker_section(self) -> str:
def get_section_flags(self) -> Optional[str]:
return "wa"

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

super().configure_disassembler_section(disassembler_section)
Expand Down
4 changes: 3 additions & 1 deletion src/splat/segtypes/ps2/lit8.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def get_linker_section(self) -> str:
def get_section_flags(self) -> Optional[str]:
return "wa"

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

super().configure_disassembler_section(disassembler_section)
Expand Down
4 changes: 3 additions & 1 deletion src/splat/segtypes/ps2/vtables.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def get_linker_section(self) -> str:
def get_section_flags(self) -> Optional[str]:
return "a"

def configure_disassembler_section(self, disassembler_section: DisassemblerSection) -> None:
def configure_disassembler_section(
self, disassembler_section: DisassemblerSection
) -> None:
"Allows to configure the section before running the analysis on it"

super().configure_disassembler_section(disassembler_section)
Expand Down

0 comments on commit 2ec94ae

Please sign in to comment.