fix link name enhancment (#4295)

This commit is contained in:
Pepper0ni 2024-08-18 04:44:50 +01:00 committed by GitHub
parent 9d7d4bffa2
commit 07babaa17b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1350,11 +1350,11 @@ void FileChoose_GenerateRandoSeed(GameState* thisx) {
this->kbdY = 0;
this->charIndex = 0;
this->charBgAlpha = 0;
this->newFileNameCharCount = CVarGetInteger(CVAR_GENERAL("LinkDefaultName"), 0) ? 4 : 0;
this->newFileNameCharCount = CVarGetInteger(CVAR_ENHANCEMENT("LinkDefaultName"), 0) ? 4 : 0;
this->nameEntryBoxPosX = 120;
this->nameEntryBoxAlpha = 0;
memcpy(Save_GetSaveMetaInfo(this->buttonIndex)->playerName,
CVarGetInteger(CVAR_GENERAL("LinkDefaultName"), 0) ? &linkName : &emptyName, 8);
CVarGetInteger(CVAR_ENHANCEMENT("LinkDefaultName"), 0) ? &linkName : &emptyName, 8);
return;
}
if (!generating) {