- changed default graphics substitution rules to be more localization friendly.
The default was changed to replace graphics if only known content is affected. This also required blocking the feature for Hacx, Harmony and Action Doom 2 which have no localization yet and would fall back on Doom's texts if not blocked.
This commit is contained in:
parent
aa9c484b3b
commit
ba13a540e4
8 changed files with 17 additions and 10 deletions
|
|
@ -405,7 +405,7 @@ DEFINE_ACTION_FUNCTION(DMenu, ActivateMenu)
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
EXTERN_CVAR(Int, cl_localizationmode)
|
||||
EXTERN_CVAR(Int, cl_gfxlocalization)
|
||||
|
||||
|
||||
void M_SetMenu(FName menu, int param)
|
||||
|
|
@ -420,7 +420,7 @@ void M_SetMenu(FName menu, int param)
|
|||
{
|
||||
menu = NAME_MainmenuTextOnly;
|
||||
}
|
||||
else
|
||||
else if (cl_gfxlocalization != 0 && !gameinfo.forcenogfxsubstitution)
|
||||
{
|
||||
// For these games we must check up-front if they get localized because in that case another template must be used.
|
||||
DMenuDescriptor **desc = MenuDescriptors.CheckKey(NAME_Mainmenu);
|
||||
|
|
@ -429,7 +429,7 @@ void M_SetMenu(FName menu, int param)
|
|||
if ((*desc)->IsKindOf(RUNTIME_CLASS(DListMenuDescriptor)))
|
||||
{
|
||||
DListMenuDescriptor *ld = static_cast<DListMenuDescriptor*>(*desc);
|
||||
if (ld->mFromEngine && cl_localizationmode != 0)
|
||||
if (ld->mFromEngine)
|
||||
{
|
||||
// This assumes that replacing one graphic will replace all of them.
|
||||
// So this only checks the "New game" entry for localization capability.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue