Skip to content

Commit

Permalink
Merge pull request #703 from UE4SS-RE/421FNameAlign
Browse files Browse the repository at this point in the history
Add build configuration for <= 4.21 FName 8 alignment
  • Loading branch information
narknon authored Nov 14, 2024
2 parents 2f6002a + 61fb2fb commit dbc4938
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ The build modes are structured as follows: `<Target>__<Config>__<Platform>`
Currently supported options for these are:

* `Target`
* `Game` - for regular games
* `Game` - for regular games on UE versions greater than UE 4.21
* `LessEqual421` - for regular games on UE versions less than or equal to UE 4.21
* `CasePreserving` - for games built with case preserving enabled

* `Config`
Expand Down
4 changes: 4 additions & 0 deletions assets/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Added support for UE Version 5.4 - ([UE4SS #503](https://github.com/UE4SS-RE/RE-
Added basic support for Development/Debug/Test built Unreal Engine games ([UE4SS #607](https://github.com/UE4SS-RE/RE-UE4SS/pull/607))
- To use this functionality, set DebugBuild to true in UE4SS-Settings.ini

Added new build definition "LessEqual421". Using this definition for games on UE<=4.21 is not mandatory for UE4SS to function, but will ensure the correct alignment is used in containers.
**BREAKING:** - This also changes the default FName alignment from 8 to 4.
- To use this functionality, enter LessEqual421 in the <Target> section of the XMake configuration command.

### General
UE Platform support, which allows for much easier internal implementation of new Unreal classes ([UEPseudo #80](https://github.com/Re-UE4SS/UEPseudo/pull/80)) - narknon, localcc

Expand Down
6 changes: 6 additions & 0 deletions tools/xmakescripts/rules/build_rules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ local TARGET_TYPES = {
"WITH_CASE_PRESERVING_NAME",
table.unpack(gameDefines)
}
},
["LessEqual421"] = {
["defines"] = {
"FNAME_ALIGN8",
table.unpack(gameDefines)
}
}
}

Expand Down

0 comments on commit dbc4938

Please sign in to comment.