Mercurial > mm7
diff mm7_2.cpp @ 189:038a4d09406f
new texts file, fix text rendender error
author | Gloval |
---|---|
date | Sat, 16 Feb 2013 00:33:21 +0400 |
parents | 428cbb33872c |
children | 9b77686e2239 |
line wrap: on
line diff
--- a/mm7_2.cpp Fri Feb 15 19:46:25 2013 +0600 +++ b/mm7_2.cpp Sat Feb 16 00:33:21 2013 +0400 @@ -51,6 +51,7 @@ #include "Events2D.h" #include "stru159.h" #include "Log.h" +#include "texts.h" #include "mm7_data.h" @@ -9236,330 +9237,6 @@ } -//----- (00452B95) -------------------------------------------------------- -void __cdecl SetSomeItemsNames() -{ - pSomeItemsNames[0] = pGlobalTXT_LocalizationStrings[568]; - pSomeItemsNames[1] = pGlobalTXT_LocalizationStrings[271]; - pSomeItemsNames[2] = pGlobalTXT_LocalizationStrings[272]; - pSomeItemsNames[3] = pGlobalTXT_LocalizationStrings[273]; - pSomeItemsNames[4] = pGlobalTXT_LocalizationStrings[274]; - pSomeItemsNames[5] = pGlobalTXT_LocalizationStrings[275]; - pSomeItemsNames[6] = pGlobalTXT_LocalizationStrings[276]; - pSomeItemsNames[7] = pGlobalTXT_LocalizationStrings[277]; - pSomeItemsNames[8] = pGlobalTXT_LocalizationStrings[278]; - pSomeItemsNames[9] = pGlobalTXT_LocalizationStrings[279]; - pSomeItemsNames[10] = pGlobalTXT_LocalizationStrings[280]; - pSomeItemsNames[11] = pGlobalTXT_LocalizationStrings[281]; - pSomeItemsNames[12] = pGlobalTXT_LocalizationStrings[282]; - pSomeItemsNames[13] = pGlobalTXT_LocalizationStrings[143]; - memset(&stru_5E4C50, 0, sizeof(stru_5E4C50)); -} - -//----- (00452C30) -------------------------------------------------------- -char *RemoveQuotes(char *Str) -{ - char *v1; // esi@1 - - v1 = Str; - if ( *Str == '"' ) - { - Str[strlen(Str) - 1] = 0; - v1 = Str + 1; - } - return v1; -} - -//----- (00452C49) -------------------------------------------------------- -void InitializeGameText() -{ - //char *v0; // ebx@1 - char *v1; // eax@3 - int v2; // ebp@4 - char v3; // dl@5 - char *v4; // ecx@5 - int v5; // esi@9 - //char **v6; // [sp+10h] [bp-8h]@3 - signed int v7; // [sp+14h] [bp-4h]@4 - - //v0 = 0; - if (pGlobalTXT_Raw) - pAllocator->FreeChunk(pGlobalTXT_Raw); - - pGlobalTXT_Raw = nullptr; - pGlobalTXT_Raw = (char *)pEvents_LOD->LoadRaw("global.txt", 0); - - strtok(pGlobalTXT_Raw, "\r"); - strtok(nullptr, "\r"); - v1 = strtok(nullptr, "\r") + 1; - - for (uint i = 0; i < 677; ++i) - { - char *p = v1; - while (*++p != '\t' && *p); - - pGlobalTXT_LocalizationStrings[i] = RemoveQuotes(p + 1); - - v1 = strtok(nullptr, "\r") + 1; - } - - aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; - aMonthNames[1] = pGlobalTXT_LocalizationStrings[416]; - aMonthNames[2] = pGlobalTXT_LocalizationStrings[417]; - pSomeItemsNames[10] = pGlobalTXT_LocalizationStrings[280]; - aMonthNames[3] = pGlobalTXT_LocalizationStrings[418]; - pSomeItemsNames[11] = pGlobalTXT_LocalizationStrings[281]; - aMonthNames[4] = pGlobalTXT_LocalizationStrings[419]; - pSomeItemsNames[12] = pGlobalTXT_LocalizationStrings[282]; - aMonthNames[5] = pGlobalTXT_LocalizationStrings[420]; - pSomeItemsNames[13] = pGlobalTXT_LocalizationStrings[143]; - aMonthNames[6] = pGlobalTXT_LocalizationStrings[421]; - aCharacterConditionNames[0] = pGlobalTXT_LocalizationStrings[52]; - aMonthNames[7] = pGlobalTXT_LocalizationStrings[422]; - aCharacterConditionNames[1] = pGlobalTXT_LocalizationStrings[241]; - aMonthNames[8] = pGlobalTXT_LocalizationStrings[423]; - aCharacterConditionNames[2] = pGlobalTXT_LocalizationStrings[14]; - aMonthNames[9] = pGlobalTXT_LocalizationStrings[424]; - aCharacterConditionNames[3] = pGlobalTXT_LocalizationStrings[4]; - aMonthNames[10] = pGlobalTXT_LocalizationStrings[425]; - aCharacterConditionNames[4] = pGlobalTXT_LocalizationStrings[69]; - aMonthNames[11] = pGlobalTXT_LocalizationStrings[426]; - aCharacterConditionNames[5] = pGlobalTXT_LocalizationStrings[117]; - pSomeItemsNames[0] = pGlobalTXT_LocalizationStrings[568]; - aCharacterConditionNames[6] = pGlobalTXT_LocalizationStrings[166]; - aCharacterConditionNames[8] = pGlobalTXT_LocalizationStrings[166]; - aCharacterConditionNames[10] = pGlobalTXT_LocalizationStrings[166]; - pSomeItemsNames[5] = pGlobalTXT_LocalizationStrings[275]; - aCharacterConditionNames[12] = pGlobalTXT_LocalizationStrings[162]; - pSomeItemsNames[6] = pGlobalTXT_LocalizationStrings[276]; - aCharacterConditionNames[13] = pGlobalTXT_LocalizationStrings[231]; - pSomeItemsNames[7] = pGlobalTXT_LocalizationStrings[277]; - aCharacterConditionNames[14] = pGlobalTXT_LocalizationStrings[58]; - pSomeItemsNames[8] = pGlobalTXT_LocalizationStrings[278]; - aCharacterConditionNames[15] = pGlobalTXT_LocalizationStrings[220]; - pSomeItemsNames[1] = pGlobalTXT_LocalizationStrings[271]; - pSomeItemsNames[2] = pGlobalTXT_LocalizationStrings[272]; - pSomeItemsNames[3] = pGlobalTXT_LocalizationStrings[273]; - pSomeItemsNames[4] = pGlobalTXT_LocalizationStrings[274]; - pSomeItemsNames[9] = pGlobalTXT_LocalizationStrings[279]; - aCharacterConditionNames[7] = pGlobalTXT_LocalizationStrings[65]; - aCharacterConditionNames[9] = pGlobalTXT_LocalizationStrings[65]; - aCharacterConditionNames[11] = pGlobalTXT_LocalizationStrings[65]; - aCharacterConditionNames[16] = pGlobalTXT_LocalizationStrings[76]; - pClassNames[9] = pGlobalTXT_LocalizationStrings[26]; - pClassNames[10] = pGlobalTXT_LocalizationStrings[432]; - pClassNames[11] = pGlobalTXT_LocalizationStrings[27]; - pClassNames[12] = pGlobalTXT_LocalizationStrings[262]; - pClassNames[13] = pGlobalTXT_LocalizationStrings[263]; - pClassNames[14] = pGlobalTXT_LocalizationStrings[264]; - pClassNames[15] = pGlobalTXT_LocalizationStrings[28]; - pClassNames[16] = pGlobalTXT_LocalizationStrings[265]; - pClassNames[17] = pGlobalTXT_LocalizationStrings[267]; - pClassNames[18] = pGlobalTXT_LocalizationStrings[119]; - pClassNames[19] = pGlobalTXT_LocalizationStrings[124]; - pClassNames[20] = pGlobalTXT_LocalizationStrings[31]; - pClassNames[21] = pGlobalTXT_LocalizationStrings[370]; - pClassNames[22] = pGlobalTXT_LocalizationStrings[33]; - aCharacterConditionNames[17] = pGlobalTXT_LocalizationStrings[601]; - pClassNames[23] = pGlobalTXT_LocalizationStrings[40]; - aCharacterConditionNames[18] = pGlobalTXT_LocalizationStrings[98]; - pClassNames[24] = pGlobalTXT_LocalizationStrings[256]; - pClassNames[0] = pGlobalTXT_LocalizationStrings[253]; - pClassNames[25] = pGlobalTXT_LocalizationStrings[257]; - pClassNames[1] = pGlobalTXT_LocalizationStrings[254]; - pClassNames[26] = pGlobalTXT_LocalizationStrings[44]; - pClassNames[2] = pGlobalTXT_LocalizationStrings[255]; - pClassNames[27] = pGlobalTXT_LocalizationStrings[46]; - pClassNames[3] = pGlobalTXT_LocalizationStrings[2]; - pClassNames[28] = pGlobalTXT_LocalizationStrings[268]; - pClassNames[4] = pGlobalTXT_LocalizationStrings[307]; - pClassNames[29] = pGlobalTXT_LocalizationStrings[269]; - pClassNames[5] = pGlobalTXT_LocalizationStrings[114]; - pClassNames[30] = pGlobalTXT_LocalizationStrings[270]; - pClassNames[6] = pGlobalTXT_LocalizationStrings[3]; - pClassNames[31] = pGlobalTXT_LocalizationStrings[48]; - pClassNames[7] = pGlobalTXT_LocalizationStrings[13]; - pClassNames[32] = pGlobalTXT_LocalizationStrings[259]; - pClassNames[8] = pGlobalTXT_LocalizationStrings[21]; - pClassNames[33] = pGlobalTXT_LocalizationStrings[260]; - pClassNames[34] = pGlobalTXT_LocalizationStrings[261]; - pClassNames[35] = pGlobalTXT_LocalizationStrings[49]; - pSkillNames[0] = pGlobalTXT_LocalizationStrings[271]; - pSkillNames[1] = pGlobalTXT_LocalizationStrings[272]; - pSkillNames[2] = pGlobalTXT_LocalizationStrings[273]; - pSkillNames[3] = pGlobalTXT_LocalizationStrings[274]; - pSkillNames[4] = pGlobalTXT_LocalizationStrings[275]; - pSkillNames[5] = pGlobalTXT_LocalizationStrings[276]; - pSkillNames[6] = pGlobalTXT_LocalizationStrings[277]; - pSkillNames[7] = pGlobalTXT_LocalizationStrings[278]; - pSkillNames[23] = pGlobalTXT_LocalizationStrings[294]; - pSkillNames[9] = pGlobalTXT_LocalizationStrings[280]; - pSkillNames[24] = pGlobalTXT_LocalizationStrings[295]; - pSkillNames[10] = pGlobalTXT_LocalizationStrings[281]; - pSkillNames[25] = pGlobalTXT_LocalizationStrings[296]; - pSkillNames[11] = pGlobalTXT_LocalizationStrings[282]; - pSkillNames[26] = pGlobalTXT_LocalizationStrings[297]; - pSkillNames[12] = pGlobalTXT_LocalizationStrings[283]; - pSkillNames[27] = pGlobalTXT_LocalizationStrings[298]; - pSkillNames[13] = pGlobalTXT_LocalizationStrings[284]; - pSkillNames[28] = pGlobalTXT_LocalizationStrings[299]; - pSkillNames[14] = pGlobalTXT_LocalizationStrings[285]; - pSkillNames[29] = pGlobalTXT_LocalizationStrings[300]; - pSkillNames[15] = pGlobalTXT_LocalizationStrings[286]; - pSkillNames[30] = pGlobalTXT_LocalizationStrings[50]; - pSkillNames[16] = pGlobalTXT_LocalizationStrings[289]; - pSkillNames[31] = pGlobalTXT_LocalizationStrings[77]; - aDayNames[0] = pGlobalTXT_LocalizationStrings[145]; - pSkillNames[17] = pGlobalTXT_LocalizationStrings[290]; - pSkillNames[32] = pGlobalTXT_LocalizationStrings[88]; - aDayNames[1] = pGlobalTXT_LocalizationStrings[230]; - pSkillNames[18] = pGlobalTXT_LocalizationStrings[291]; - pSkillNames[33] = pGlobalTXT_LocalizationStrings[89]; - aDayNames[2] = pGlobalTXT_LocalizationStrings[243]; - pSkillNames[19] = pGlobalTXT_LocalizationStrings[287]; - pSkillNames[34] = pGlobalTXT_LocalizationStrings[90]; - aDayNames[3] = pGlobalTXT_LocalizationStrings[227]; - pSkillNames[20] = pGlobalTXT_LocalizationStrings[288]; - pSkillNames[35] = pGlobalTXT_LocalizationStrings[95]; - aDayNames[4] = pGlobalTXT_LocalizationStrings[91]; - pSkillNames[21] = pGlobalTXT_LocalizationStrings[292]; - pSkillNames[36] = pGlobalTXT_LocalizationStrings[301]; - aDayNames[5] = pGlobalTXT_LocalizationStrings[188]; - pSkillNames[8] = pGlobalTXT_LocalizationStrings[279]; - pSkillNames[22] = pGlobalTXT_LocalizationStrings[293]; - pSkillNames[37] = pGlobalTXT_LocalizationStrings[153]; - aDayNames[6] = pGlobalTXT_LocalizationStrings[222]; - aNPCProfessionNames[0] = pGlobalTXT_LocalizationStrings[153]; - aNPCProfessionNames[1] = pGlobalTXT_LocalizationStrings[308]; - aNPCProfessionNames[2] = pGlobalTXT_LocalizationStrings[309]; - aNPCProfessionNames[3] = pGlobalTXT_LocalizationStrings[7]; - aNPCProfessionNames[4] = pGlobalTXT_LocalizationStrings[306]; - aNPCProfessionNames[5] = pGlobalTXT_LocalizationStrings[310]; - aNPCProfessionNames[6] = pGlobalTXT_LocalizationStrings[311]; - aNPCProfessionNames[7] = pGlobalTXT_LocalizationStrings[312]; - aSpellSchoolNames[0] = pGlobalTXT_LocalizationStrings[87]; - aNPCProfessionNames[8] = pGlobalTXT_LocalizationStrings[313]; - aSpellSchoolNames[1] = pGlobalTXT_LocalizationStrings[6]; - aNPCProfessionNames[9] = pGlobalTXT_LocalizationStrings[314]; - aNPCProfessionNames[21] = pGlobalTXT_LocalizationStrings[293]; - aNPCProfessionNames[10] = pGlobalTXT_LocalizationStrings[105]; - aSpellSchoolNames[2] = pGlobalTXT_LocalizationStrings[240]; - aNPCProfessionNames[11] = pGlobalTXT_LocalizationStrings[315]; - aNPCProfessionNames[22] = pGlobalTXT_LocalizationStrings[324]; - aNPCProfessionNames[12] = pGlobalTXT_LocalizationStrings[316]; - aSpellSchoolNames[3] = pGlobalTXT_LocalizationStrings[70]; - aNPCProfessionNames[13] = pGlobalTXT_LocalizationStrings[317]; - aNPCProfessionNames[23] = pGlobalTXT_LocalizationStrings[498]; - aSpellSchoolNames[4] = pGlobalTXT_LocalizationStrings[214]; - aNPCProfessionNames[14] = pGlobalTXT_LocalizationStrings[115]; - aNPCProfessionNames[24] = pGlobalTXT_LocalizationStrings[525]; - aSpellSchoolNames[5] = pGlobalTXT_LocalizationStrings[142]; - aNPCProfessionNames[15] = pGlobalTXT_LocalizationStrings[318]; - aNPCProfessionNames[25] = pGlobalTXT_LocalizationStrings[327]; - aSpellSchoolNames[6] = pGlobalTXT_LocalizationStrings[29]; - aNPCProfessionNames[16] = pGlobalTXT_LocalizationStrings[319]; - aNPCProfessionNames[26] = pGlobalTXT_LocalizationStrings[328]; - aSpellSchoolNames[7] = pGlobalTXT_LocalizationStrings[133]; - aNPCProfessionNames[17] = pGlobalTXT_LocalizationStrings[320]; - aNPCProfessionNames[27] = pGlobalTXT_LocalizationStrings[329]; - aSpellSchoolNames[8] = pGlobalTXT_LocalizationStrings[54]; - aNPCProfessionNames[18] = pGlobalTXT_LocalizationStrings[321]; - aNPCProfessionNames[28] = pGlobalTXT_LocalizationStrings[330]; - aAMPMNames[0] = pGlobalTXT_LocalizationStrings[472]; - aNPCProfessionNames[19] = pGlobalTXT_LocalizationStrings[322]; - aNPCProfessionNames[29] = pGlobalTXT_LocalizationStrings[331]; - aAMPMNames[1] = pGlobalTXT_LocalizationStrings[473]; - aNPCProfessionNames[20] = pGlobalTXT_LocalizationStrings[323]; - aNPCProfessionNames[30] = pGlobalTXT_LocalizationStrings[332]; - aNPCProfessionNames[31] = pGlobalTXT_LocalizationStrings[333]; - aNPCProfessionNames[32] = pGlobalTXT_LocalizationStrings[334]; - aNPCProfessionNames[33] = pGlobalTXT_LocalizationStrings[335]; - aNPCProfessionNames[34] = pGlobalTXT_LocalizationStrings[336]; - aNPCProfessionNames[35] = pGlobalTXT_LocalizationStrings[337]; - aNPCProfessionNames[36] = pGlobalTXT_LocalizationStrings[338]; - aNPCProfessionNames[37] = pGlobalTXT_LocalizationStrings[339]; - aNPCProfessionNames[38] = pGlobalTXT_LocalizationStrings[340]; - aNPCProfessionNames[39] = pGlobalTXT_LocalizationStrings[341]; - aNPCProfessionNames[40] = pGlobalTXT_LocalizationStrings[342]; - aNPCProfessionNames[56] = pGlobalTXT_LocalizationStrings[21]; - aNPCProfessionNames[41] = pGlobalTXT_LocalizationStrings[343]; - aNPCProfessionNames[57] = pGlobalTXT_LocalizationStrings[600]; - aNPCProfessionNames[42] = pGlobalTXT_LocalizationStrings[596]; - aNPCProfessionNames[58] = pGlobalTXT_LocalizationStrings[370]; - aNPCProfessionNames[43] = pGlobalTXT_LocalizationStrings[345]; - aMoonPhaseNames[0] = pGlobalTXT_LocalizationStrings[150]; - aNPCProfessionNames[44] = pGlobalTXT_LocalizationStrings[346]; - aMoonPhaseNames[1] = pGlobalTXT_LocalizationStrings[171]; - aNPCProfessionNames[45] = pGlobalTXT_LocalizationStrings[347]; - aMoonPhaseNames[2] = pGlobalTXT_LocalizationStrings[102]; - aNPCProfessionNames[46] = pGlobalTXT_LocalizationStrings[348]; - aMoonPhaseNames[3] = pGlobalTXT_LocalizationStrings[169]; - aNPCProfessionNames[47] = pGlobalTXT_LocalizationStrings[349]; - aMoonPhaseNames[4] = pGlobalTXT_LocalizationStrings[92]; - aNPCProfessionNames[48] = pGlobalTXT_LocalizationStrings[350]; - aAttributeNames[0] = pGlobalTXT_LocalizationStrings[144]; - aNPCProfessionNames[49] = pGlobalTXT_LocalizationStrings[597]; - aAttributeNames[1] = pGlobalTXT_LocalizationStrings[116]; - aNPCProfessionNames[50] = pGlobalTXT_LocalizationStrings[352]; - aAttributeNames[2] = pGlobalTXT_LocalizationStrings[163]; - aNPCProfessionNames[51] = pGlobalTXT_LocalizationStrings[353]; - aAttributeNames[3] = pGlobalTXT_LocalizationStrings[75]; - aNPCProfessionNames[52] = pGlobalTXT_LocalizationStrings[598]; - aAttributeNames[4] = pGlobalTXT_LocalizationStrings[1]; - aNPCProfessionNames[53] = pGlobalTXT_LocalizationStrings[344]; - aAttributeNames[5] = pGlobalTXT_LocalizationStrings[211]; - aNPCProfessionNames[54] = pGlobalTXT_LocalizationStrings[26]; - aAttributeNames[6] = pGlobalTXT_LocalizationStrings[136]; - aNPCProfessionNames[55] = pGlobalTXT_LocalizationStrings[599]; - aSpellNames[14] = pGlobalTXT_LocalizationStrings[279]; - aSpellNames[33] = pGlobalTXT_LocalizationStrings[279]; - aSpellNames[9] = pGlobalTXT_LocalizationStrings[440]; - aSpellNames[34] = pGlobalTXT_LocalizationStrings[442]; - aSpellNames[0] = pGlobalTXT_LocalizationStrings[202]; - aSpellNames[10] = pGlobalTXT_LocalizationStrings[218]; - aSpellNames[20] = pGlobalTXT_LocalizationStrings[202]; - aSpellNames[35] = pGlobalTXT_LocalizationStrings[235]; - aSpellNames[11] = pGlobalTXT_LocalizationStrings[217]; - aSpellNames[21] = pGlobalTXT_LocalizationStrings[443]; - aSpellNames[36] = pGlobalTXT_LocalizationStrings[246]; - aSpellNames[12] = pGlobalTXT_LocalizationStrings[213]; - aSpellNames[24] = pGlobalTXT_LocalizationStrings[221]; - aSpellNames[37] = pGlobalTXT_LocalizationStrings[247]; - aSpellNames[13] = pGlobalTXT_LocalizationStrings[462]; - aSpellNames[26] = pGlobalTXT_LocalizationStrings[228]; - aSpellNames[38] = pGlobalTXT_LocalizationStrings[248]; - aSpellNames[15] = pGlobalTXT_LocalizationStrings[442]; - aSpellNames[28] = pGlobalTXT_LocalizationStrings[440]; - aSpellNames[39] = pGlobalTXT_LocalizationStrings[674]; - aSpellNames[16] = pGlobalTXT_LocalizationStrings[452]; - aSpellNames[29] = pGlobalTXT_LocalizationStrings[213]; - aSpellNames[40] = pGlobalTXT_LocalizationStrings[249]; - aSpellNames[2] = pGlobalTXT_LocalizationStrings[219]; - aSpellNames[17] = pGlobalTXT_LocalizationStrings[194]; - aSpellNames[30] = pGlobalTXT_LocalizationStrings[229]; - aSpellNames[41] = pGlobalTXT_LocalizationStrings[258]; - aSpellNames[5] = pGlobalTXT_LocalizationStrings[454]; - aSpellNames[3] = pGlobalTXT_LocalizationStrings[215]; - aSpellNames[7] = pGlobalTXT_LocalizationStrings[455]; - aSpellNames[18] = pGlobalTXT_LocalizationStrings[456]; - aSpellNames[31] = pGlobalTXT_LocalizationStrings[233]; - aSpellNames[42] = pGlobalTXT_LocalizationStrings[194]; - aSpellNames[6] = pGlobalTXT_LocalizationStrings[24]; - aSpellNames[25] = pGlobalTXT_LocalizationStrings[24]; - aSpellNames[1] = pGlobalTXT_LocalizationStrings[204]; - aSpellNames[4] = pGlobalTXT_LocalizationStrings[208]; - aSpellNames[8] = pGlobalTXT_LocalizationStrings[441]; - aSpellNames[19] = pGlobalTXT_LocalizationStrings[453]; - aSpellNames[22] = pGlobalTXT_LocalizationStrings[204]; - aSpellNames[23] = pGlobalTXT_LocalizationStrings[208]; - aSpellNames[27] = pGlobalTXT_LocalizationStrings[441]; - aSpellNames[32] = pGlobalTXT_LocalizationStrings[234]; - aSpellNames[43] = pGlobalTXT_LocalizationStrings[657]; -} - - - -