Quote:
Originally Posted by RHNbaskan
Friends, in the main coding, in the "setup.cpp" data,
char hLanguage[100] = {0, 'TH'};
const char* ConfigINI = "./Language.INI";
When I check the values, the TH data is not passed to TR and sub-languages.
char* mTRLang = "\\TR\\";
Even though there is TR data in the group, ''
char* DatHelper(int tNumber)
{
STR_ENCRYPT_START
char tBuffer[1000];
if (!bIsEnglish)
In this group, the data is passed to English, which is the Bis value.
Why is this the case when the BisTR data is in the data?
Even though the char data says DATHELPER, the main file is not TR?
Languages and Their Impact on the Game
The DAT data in the FONT folder and its internal array is important.
But this encoding does not read the TR DAT data, which is Standard 2.8.
What are your thoughts?
|
ini dosyasından yazdığım bir fonksiyon ile hangi dil olduğunu çekiyorum
örnek ini dosyam
Code:
[Resolution]
X = 1920
Y = 1080
Fullscreen = 2
[Game]
FontHeight = 12
FontWidth = 6
FontWeight = 6
FontItalic = 0
Font = Arial.TTF
Language = en
FPS = 60
örnek gimage2d init fonksiyonu
Code:
void GIMAGE2D::Init(GIMAGE2D* self, int tValue1, int tValue2, int tValue3)
{
std::string language = ReadIniString("Game", "Language", DEFINE_LANG);
switch (tValue1)
{
case 1:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\001\\%s\\001_%05d.IMG", language.c_str(), tValue2 + 1);
break;
case 2:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\002\\%s\\002_%05d.IMG", language.c_str(), tValue2 + 1);
break;
case 3:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\003\\003_%05d.IMG", tValue2 + 1);
break;
case 4:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\004\\%s\\004_%05d.IMG", language.c_str(), tValue2 + 1);
break;
case 5:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\006\\006_%05d.IMG", tValue2 + 1);
break;
case 6:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\007\\007_%03d%03d.IMG", tValue2 + 1, tValue3 + 1);
break;
case 7:
sprintf(self->mFileName, "G03_GDATA\\D01_GIMAGE2D\\008\\008_%05d.IMG", tValue2 + 1);
break;
default:
strcpy(self->mFileName, "");
break;
}
}
bu şekilde dil sistemi yazılabilir