Remove (almost) all references to pRenderer (#651)
Remove all references to pRenderer, except from the DebugDraw and LyShine Gems that are still being updated.
This commit is contained in:
@@ -32,9 +32,6 @@
|
||||
|
||||
#include <AzCore/std/string/conversions.h>
|
||||
#include <AzFramework/StringFunc/StringFunc.h>
|
||||
#if !defined(_RELEASE)
|
||||
#include "CrySizerImpl.h"
|
||||
#endif //#if !defined(_RELEASE)
|
||||
|
||||
#define MAX_CELL_COUNT 32
|
||||
|
||||
@@ -165,52 +162,6 @@ static void TestFormatMessage ([[maybe_unused]] IConsoleCmdArgs* pArgs)
|
||||
}
|
||||
#endif //#if !defined(_RELEASE)
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#if !defined(_RELEASE)
|
||||
void CLocalizedStringsManager::LocalizationDumpLoadedInfo([[maybe_unused]] IConsoleCmdArgs* pArgs)
|
||||
{
|
||||
CLocalizedStringsManager* pLoca = (CLocalizedStringsManager*) gEnv->pSystem->GetLocalizationManager();
|
||||
|
||||
for (TTagFileNames::iterator tagit = pLoca->m_tagFileNames.begin(); tagit != pLoca->m_tagFileNames.end(); ++tagit)
|
||||
{
|
||||
CryLogAlways("Tag %s (%d)", tagit->first.c_str(), tagit->second.id);
|
||||
|
||||
int entries = 0;
|
||||
CrySizerImpl* pSizer = new CrySizerImpl();
|
||||
|
||||
for (tmapFilenames::iterator it = pLoca->m_loadedTables.begin(); it != pLoca->m_loadedTables.end(); it++)
|
||||
{
|
||||
if (tagit->second.id == it->second.nTagID)
|
||||
{
|
||||
CryLogAlways("\t%s", it->first.c_str());
|
||||
}
|
||||
|
||||
if (pLoca->m_pLanguage)
|
||||
{
|
||||
const uint32 numEntries = pLoca->m_pLanguage->m_vLocalizedStrings.size();
|
||||
for (int32 i = numEntries - 1; i >= 0; i--)
|
||||
{
|
||||
SLocalizedStringEntry* entry = pLoca->m_pLanguage->m_vLocalizedStrings[i];
|
||||
if (tagit->second.id == entry->nTagID)
|
||||
{
|
||||
entries++;
|
||||
entry->GetMemoryUsage((ICrySizer*) pSizer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This line messes up Uncrustify so turn it off: *INDENT-OFF*
|
||||
CryLogAlways("\t\tEntries %d, Approx Size %" PRISIZE_T "Kb", entries, pSizer->GetTotalSize() / 1024);
|
||||
// turn it back on again: *INDENT-ON*
|
||||
|
||||
SAFE_RELEASE(pSizer);
|
||||
}
|
||||
}
|
||||
|
||||
#endif //#if !defined(_RELEASE)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
@@ -249,9 +200,6 @@ CLocalizedStringsManager::CLocalizedStringsManager(ISystem* pSystem)
|
||||
"0: No encoding, store as wide strings\n"
|
||||
"1: Huffman encode translated text, saves approx 30% with a small runtime performance cost\n"
|
||||
"Default is 1.");
|
||||
|
||||
|
||||
REGISTER_COMMAND("LocalizationDumpLoadedInfo", LocalizationDumpLoadedInfo, VF_NULL, "Dump out into about the loaded localization files");
|
||||
#endif //#if !defined(_RELEASE)
|
||||
|
||||
REGISTER_CVAR2(c_sys_localization_format, &m_cvarLocalizationFormat, 1, VF_NULL,
|
||||
|
||||
Reference in New Issue
Block a user