Skip to content

Commit b2d9168

Browse files
authored
Merge pull request #37 from apple1417/master
add legacy compat for `UObject.GetAddress`
2 parents b665772 + 5032c95 commit b2d9168

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## v3.5 (Upcoming)
44

5+
### Legacy Compat v1.4
6+
- Added more fixups for previously unreported issues in Reign of Giants.
7+
58
### Willow2 Mod Menu v3.4
69
- Fixed that some keybinds would not be displayed properly if there were two separate grouped/nested
710
options at the same level.

src/legacy_compat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"legacy_compat",
1515
)
1616

17-
__version_info__: tuple[int, int] = (1, 3)
17+
__version_info__: tuple[int, int] = (1, 4)
1818
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
1919
__author__: str = "bl-sdk"
2020

src/legacy_compat/unrealsdk/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ def _unreal_method_compat_handler() -> Iterator[None]:
652652
BoundFunction.__call__ = _boundfunc_call
653653

654654
UObject.FindObjectsContaining = _uobject_find_objects_containing # type: ignore
655+
UObject.GetAddress = UObject._get_address # type: ignore
655656
UObject.GetFullName = _uobject_repr # type: ignore
656657
UObject.GetName = _uobject_get_name # type: ignore
657658
UObject.PathName = _uobject_path_name # type: ignore
@@ -674,6 +675,7 @@ def _unreal_method_compat_handler() -> Iterator[None]:
674675
BoundFunction.__call__ = _default_func_call
675676

676677
del UObject.FindObjectsContaining # type: ignore
678+
del UObject.GetAddress # type: ignore
677679
del UObject.GetFullName # type: ignore
678680
del UObject.GetName # type: ignore
679681
del UObject.PathName # type: ignore

0 commit comments

Comments
 (0)