Mercurial > mm7
comparison mm7_4.cpp @ 1838:211dfe2d8db1
changing global char* vars to const char* vars
author | Grumpy7 |
---|---|
date | Fri, 11 Oct 2013 09:19:40 +0200 |
parents | 35c1e4ff6ba7 |
children | a86c60679949 |
comparison
equal
deleted
inserted
replaced
1829:e4e27261d84e | 1838:211dfe2d8db1 |
---|---|
1735 return pNPCStats->pNPCNames[0][v11 + 2 * v3]; | 1735 return pNPCStats->pNPCNames[0][v11 + 2 * v3]; |
1736 } | 1736 } |
1737 | 1737 |
1738 | 1738 |
1739 //----- (00495430) -------------------------------------------------------- | 1739 //----- (00495430) -------------------------------------------------------- |
1740 char * GetReputationString( signed int a1 ) | 1740 const char * GetReputationString( signed int a1 ) |
1741 { | 1741 { |
1742 if (a1 >= 25) | 1742 if (a1 >= 25) |
1743 return pGlobalTXT_LocalizationStrings[379]; // Hated | 1743 return pGlobalTXT_LocalizationStrings[379]; // Hated |
1744 else if (a1 >= 6) | 1744 else if (a1 >= 6) |
1745 return pGlobalTXT_LocalizationStrings[392]; // Unfriendly | 1745 return pGlobalTXT_LocalizationStrings[392]; // Unfriendly |
1750 else | 1750 else |
1751 return pGlobalTXT_LocalizationStrings[434]; // Respected; | 1751 return pGlobalTXT_LocalizationStrings[434]; // Respected; |
1752 } | 1752 } |
1753 | 1753 |
1754 //----- (00495461) -------------------------------------------------------- | 1754 //----- (00495461) -------------------------------------------------------- |
1755 char *BuildDialogueString(char *lpsz, unsigned __int8 uPlayerID, ItemGen *a3, char *a4, int a5, __int64 *a6) | 1755 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, ItemGen *a3, char *a4, int a5, __int64 *a6) |
1756 { | 1756 { |
1757 Player *pPlayer; // ebx@3 | 1757 Player *pPlayer; // ebx@3 |
1758 char *pText; // esi@7 | 1758 const char *pText; // esi@7 |
1759 int v17; // eax@10 | 1759 int v17; // eax@10 |
1760 signed __int64 v18; // qax@18 | 1760 signed __int64 v18; // qax@18 |
1761 unsigned __int8 *v20; // ebx@32 | 1761 unsigned __int8 *v20; // ebx@32 |
1762 int v21; // ecx@34 | 1762 int v21; // ecx@34 |
1763 int pReputation; // eax@45 | 1763 int pReputation; // eax@45 |
2963 int v20; // eax@60 | 2963 int v20; // eax@60 |
2964 //char *v21; // [sp-Ch] [bp-38h]@82 | 2964 //char *v21; // [sp-Ch] [bp-38h]@82 |
2965 //const char *v22; // [sp-8h] [bp-34h]@21 | 2965 //const char *v22; // [sp-8h] [bp-34h]@21 |
2966 //unsigned int v23; // [sp-8h] [bp-34h]@38 | 2966 //unsigned int v23; // [sp-8h] [bp-34h]@38 |
2967 //char *v24; // [sp-8h] [bp-34h]@82 | 2967 //char *v24; // [sp-8h] [bp-34h]@82 |
2968 char *v25; // [sp-4h] [bp-30h]@14 | 2968 const char *v25; // [sp-4h] [bp-30h]@14 |
2969 //int v26; // [sp-4h] [bp-30h]@38 | 2969 //int v26; // [sp-4h] [bp-30h]@38 |
2970 //int v27; // [sp-4h] [bp-30h]@82 | 2970 //int v27; // [sp-4h] [bp-30h]@82 |
2971 char v28[4]; // [sp+Ch] [bp-20h]@9 | 2971 char v28[4]; // [sp+Ch] [bp-20h]@9 |
2972 int v29; // [sp+10h] [bp-1Ch]@13 | 2972 int v29; // [sp+10h] [bp-1Ch]@13 |
2973 int v30; // [sp+14h] [bp-18h]@15 | 2973 int v30; // [sp+14h] [bp-18h]@15 |
3340 | 3340 |
3341 //----- (004B3FE5) -------------------------------------------------------- | 3341 //----- (004B3FE5) -------------------------------------------------------- |
3342 void __fastcall _4B3FE5_training_dialogue(int a4) | 3342 void __fastcall _4B3FE5_training_dialogue(int a4) |
3343 { | 3343 { |
3344 int v1; // edi@1 | 3344 int v1; // edi@1 |
3345 char *v2; // edi@1 | 3345 const char *v2; // edi@1 |
3346 | 3346 |
3347 __debugbreak(); | 3347 __debugbreak(); |
3348 v1 = a4; | 3348 v1 = a4; |
3349 uDialogueType = 78; | 3349 uDialogueType = 78; |
3350 current_npc_text = (char *)pNPCTopics[a4 + 168].pText; | 3350 current_npc_text = (char *)pNPCTopics[a4 + 168].pText; |