Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2024
1 parent 807463b commit ac0461b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/open_prime_rando/dol_patching/echoes/dol_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from open_prime_rando.dol_patching.echoes.beam_configuration import BeamAmmoConfiguration
from open_prime_rando.dol_patching.echoes.user_preferences import OprEchoesUserPreferences

from open_prime_rando.dol_patching.echoes.dol_patches import WidescreenRenderAddresses


@dataclasses.dataclass(frozen=True)
class EchoesDolPatchesData:
Expand Down
3 changes: 2 additions & 1 deletion src/open_prime_rando/dol_patching/echoes/dol_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from enum import Enum
from typing import NamedTuple

from attr.setters import frozen
from ppc_asm.assembler import custom_ppc
from ppc_asm.assembler.ppc import * # noqa: F403
from ppc_asm.dol_file import DolFile
Expand Down Expand Up @@ -74,13 +73,15 @@ class StartingBeamVisorAddresses:
start_transition_to_visor: int
reset_visor: int


@dataclasses.dataclass(frozen=True)
class WidescreenRenderAddresses:
culling_replacement: int
culling_insertion: int
viewport_replacement: int
viewport_insertion: int


_PREFERENCES_ORDER = (
"sound_mode",
"screen_brightness",
Expand Down
18 changes: 9 additions & 9 deletions src/open_prime_rando/dol_patching/echoes/dol_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
double_damage_vfx=0x80017F28,
widescreen_render=WidescreenRenderAddresses(
culling_replacement=0x8030256C,
culling_insertion = 0x80418E8C,
viewport_replacement = 0x8036D684,
viewport_insertion = 0x80003748,
)
culling_insertion=0x80418E8C,
viewport_replacement=0x8036D684,
viewport_insertion=0x80003748,
),
),
EchoesDolVersion(
game=Game.ECHOES,
Expand Down Expand Up @@ -163,10 +163,10 @@
),
double_damage_vfx=0x80017FC4,
widescreen_render=WidescreenRenderAddresses(
culling_replacement = 0x803029E0,
culling_insertion = 0x803C6C30,
viewport_replacement = 0x8036DAA0,
viewport_insertion = 0x803B1D60,
)
culling_replacement=0x803029E0,
culling_insertion=0x803C6C30,
viewport_replacement=0x8036DAA0,
viewport_insertion=0x803B1D60,
),
),
]

0 comments on commit ac0461b

Please sign in to comment.