Menu #8

Merged
oleg.petruny merged 9 commits from Menu into master 2025-01-13 18:54:47 +00:00
4 changed files with 8 additions and 8 deletions
Showing only changes of commit 59dfc90fe9 - Show all commits

View File

@ -421,7 +421,7 @@ EDisplayMode UGraphicsSettingsHelper::GetDisplayMode(UCustomGameSettings* settin
EDisplayMode UGraphicsSettingsHelper::TextToDisplayMode(const FText& in)
{
static const UEnum* enumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EDisplayMode"), true);
static const UEnum* enumPtr = FindObject<UEnum>((UPackage*)-1, TEXT("EDisplayMode"), true);
if(!enumPtr)
return GetDefaultDisplayMode(nullptr);
@ -430,7 +430,7 @@ EDisplayMode UGraphicsSettingsHelper::TextToDisplayMode(const FText& in)
FText UGraphicsSettingsHelper::DisplayModeToText(const EDisplayMode mode)
{
static const UEnum* enumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("EDisplayMode"), true);
static const UEnum* enumPtr = FindObject<UEnum>((UPackage*)-1, TEXT("EDisplayMode"), true);
if(!enumPtr)
return CommonTexts::Default;