November files RUSLIVE
#1

Hi

I got a problem while compiling the client. which I didn't have in June Source.

When choosing the RUSLIVE option, the client continues to use the paths, fonts and prefixes of the US client.

I noticed a difference in the source code.

For example, November Source

else
{
if (g_iCountry == RUSSIA)
nBoxWidth = pDraw->GetTextWidth(_pNetwork->MyCharacterInfo.name) + 27;
else
nBoxWidth = _pNetwork->MyCharacterInfo.name.Length() * nFontWidth + 27;
}

June Source

//if(g_iCountry == RUSSIA)
#if defined G_RUSSIA
nBoxWidth = pDraw->GetTextWidth(_pNetwork->MyCharacterInfo.name) + 27;
//else

November Source

if (g_iCountry == RUSSIA)
{
g_bDrawportRus = true;
}
else
{
g_bDrawportRus = false;
}

if (g_bDrawportRus == true)
{
_pfdDefaultFont->Clear();
FONT_STOCK_RELEASE(_pfdDefaultFont);
}

June Source

 

ifdef G_RUSSIA
_pfdDefaultFont->Clear();
FONT_STOCK_RELEASE(_pfdDefaultFont);
#endif // G_RUSSIA

 

How to remake the client for the Russian version?

Where in the code is g_country == RUSSIA? Why is it equal to 0 in Engine.cpp?

//ѕИЕВИЖ јцБ¤ іЎ //(5th Closed beta)(0.1)
//ѕИЕВИЖ јцБ¤ ЅГАЫ //(Taiwan Closed beta)(0.2)
ENGINE_API INDEX g_iCountry = 0; //0 : Korea
INDEX g_iEnterChat = 1;
INDEX g_iShowName = 0;
INDEX g_iShowNameItem = 1;

Such forced changes obviously lead to a crash

 

TString DefHelp::getNationPostfix( int nNation, bool bFolder )
{
CTString strRet;

if (bFolder == false)
strRet = "_";
nNation = RUSSIA; // added
switch (nNation)
{
case KOREA: strRet += "kr"; break;
case GERMANY: strRet += "de"; break;
case SPAIN: strRet += "es"; break;
case FRANCE: strRet += "fr"; break;
case ITALY: strRet += "it"; break;
case POLAND: strRet += "pl"; break;
case ENGLAND: strRet += "uk"; break;
case USA: strRet += "us"; break;

case BRAZIL: strRet += "br"; break;
case MEXICO: strRet += "mx"; break;

case RUSSIA: strRet += "ru"; break;

case THAILAND: strRet += "th"; break;
default:
break;
}

 



Messages In This Thread
[No subject] - by General - 01-13-2022, 09:26 AM
[No subject] - by MiniPig - 12-27-2024, 05:39 PM
[No subject] - by JLT - 12-31-2024, 06:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)