Mercurial > mm7
diff mm7_2.cpp @ 233:0df4136b6aac
store_line
author | Gloval |
---|---|
date | Sun, 17 Feb 2013 18:48:03 +0400 |
parents | 0c64754c7fd4 |
children | 47e06334c564 |
line wrap: on
line diff
--- a/mm7_2.cpp Sun Feb 17 17:18:45 2013 +0400 +++ b/mm7_2.cpp Sun Feb 17 18:48:03 2013 +0400 @@ -9241,86 +9241,6 @@ -//----- (00453E6D) -------------------------------------------------------- -void StorylineText::Initialize() -{ - char *v1; // ebx@1 - StorylineText *v2; // esi@1 - char *v3; // ecx@4 - char v4; // dl@5 - char *v5; // eax@5 - int v6; // esi@9 - int v7; // [sp+Ch] [bp-10h]@3 - int v8; // [sp+10h] [bp-Ch]@4 - char *v9; // [sp+14h] [bp-8h]@4 - int Str; // [sp+18h] [bp-4h]@3 - - v1 = 0; - v2 = this; - if ( pHistoryTXT_Raw ) - pAllocator->FreeChunk(pHistoryTXT_Raw); - pHistoryTXT_Raw = 0; - pHistoryTXT_Raw = (char *)pEvents_LOD->LoadRaw("history.txt", 0); - strtok(pHistoryTXT_Raw, "\r"); - Str = (int)&v2->field_4[4]; - v7 = 29; - do - { - v9 = v1; - v8 = (signed int)v1; - v3 = strtok(v1, "\r"); - do - { - v4 = *v3; - v5 = 0; - if ( *v3 != 9 ) - { - v1 = 0; - do - { - if ( !v4 ) - break; - ++v5; - v4 = v3[(int)v5]; - } - while ( v4 != 9 ); - } - v6 = (int)&v3[(int)v5]; - if ( v3[(int)v5] == (char)v1 ) - v8 = 1; - *(char *)v6 = (char)v1; - if ( v5 == v1 ) - { - v8 = 1; - } - else - { - if ( v9 == (char *)1 ) - { - *(char **)(Str - 8) = RemoveQuotes(v3); - } - else - { - if ( v9 == (char *)2 ) - { - *(char *)Str = atoi(v3); - } - else - { - if ( v9 - 2 == (char *)1 ) - *(char * *)(Str - 4) = RemoveQuotes(v3); - } - } - } - ++v9; - v3 = (char *)(v6 + 1); - } - while ( (signed int)(v9 - 1) <= 3 && (char *)v8 == v1 ); - Str += 12; - --v7; - } - while ( v7 ); -} //----- (00453F62) -------------------------------------------------------- void MapStats::Initialize()