Skip to content

Commit b72fd5a

Browse files
docs: mention FText::FromString for finding FText in UE5 games (#1078)
* docs: mention FText::FromString for finding FText in UE5 games * chore: changelog * Update docs/guides/fixing-compatibility-problems.md --------- Co-authored-by: UE4SS <[email protected]>
1 parent b734711 commit b72fd5a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Add error messages in places where only error codes were previously logged (e.g.
6262

6363
Added `[f: <address_or_module_offset>` section to UE4SS_ObjectDump.txt [UE4SS #866](https://github.com/UE4SS-RE/RE-UE4SS/pull/866)
6464

65+
Added line in the [docs](https://docs.ue4ss.com/dev/guides/fixing-compatibility-problems.html) to add `FText::FromString(FString&)` as an alternative to `FText::FText(FString&)` for UE5 games - ([UE4SS #1078](https://github.com/UE4SS-RE/RE-UE4SS/pull/1078))
66+
6567
### Live View
6668
Added search filter: `IncludeClassNames`. ([UE4SS #472](https://github.com/UE4SS-RE/RE-UE4SS/pull/472)) - Buckminsterfullerene
6769

docs/guides/fixing-compatibility-problems.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ For more in-depth instructions, see the [advanced guide](./fixing-compatibility-
6767
Function signature: `public: cdecl FName::FName(wchar_t const * ptr64,enum EFindName) __ptr64`
6868
- FText_Constructor (Optional)
6969
- Must return the exact address of the start of the function 'FText::FText'.
70-
Function signature: `public: cdecl FText::FText(class FString & ptr64)const __ptr64`
70+
Function signature: `public: cdecl FText::FText(class FString & ptr64)const __ptr64`
71+
If on UE5 and the above signature is not found, try `public: __cdecl FText::FromString(class FString const & ptr64)` instead.
7172
- StaticConstructObject
7273
- Must return the exact address of the start of the global function 'StaticConstructObject_Internal'.
7374
In UE4SS, we scan for a call in the middle of 'UUserWidget::InitializeInputComponent' and then resolve the call location.

0 commit comments

Comments
 (0)