comparison mm7_2.cpp @ 233:0df4136b6aac

store_line
author Gloval
date Sun, 17 Feb 2013 18:48:03 +0400
parents 0c64754c7fd4
children 47e06334c564
comparison
equal deleted inserted replaced
230:b9f4ff2f6c45 233:0df4136b6aac
9239 9239
9240 9240
9241 9241
9242 9242
9243 9243
9244 //----- (00453E6D) --------------------------------------------------------
9245 void StorylineText::Initialize()
9246 {
9247 char *v1; // ebx@1
9248 StorylineText *v2; // esi@1
9249 char *v3; // ecx@4
9250 char v4; // dl@5
9251 char *v5; // eax@5
9252 int v6; // esi@9
9253 int v7; // [sp+Ch] [bp-10h]@3
9254 int v8; // [sp+10h] [bp-Ch]@4
9255 char *v9; // [sp+14h] [bp-8h]@4
9256 int Str; // [sp+18h] [bp-4h]@3
9257
9258 v1 = 0;
9259 v2 = this;
9260 if ( pHistoryTXT_Raw )
9261 pAllocator->FreeChunk(pHistoryTXT_Raw);
9262 pHistoryTXT_Raw = 0;
9263 pHistoryTXT_Raw = (char *)pEvents_LOD->LoadRaw("history.txt", 0);
9264 strtok(pHistoryTXT_Raw, "\r");
9265 Str = (int)&v2->field_4[4];
9266 v7 = 29;
9267 do
9268 {
9269 v9 = v1;
9270 v8 = (signed int)v1;
9271 v3 = strtok(v1, "\r");
9272 do
9273 {
9274 v4 = *v3;
9275 v5 = 0;
9276 if ( *v3 != 9 )
9277 {
9278 v1 = 0;
9279 do
9280 {
9281 if ( !v4 )
9282 break;
9283 ++v5;
9284 v4 = v3[(int)v5];
9285 }
9286 while ( v4 != 9 );
9287 }
9288 v6 = (int)&v3[(int)v5];
9289 if ( v3[(int)v5] == (char)v1 )
9290 v8 = 1;
9291 *(char *)v6 = (char)v1;
9292 if ( v5 == v1 )
9293 {
9294 v8 = 1;
9295 }
9296 else
9297 {
9298 if ( v9 == (char *)1 )
9299 {
9300 *(char **)(Str - 8) = RemoveQuotes(v3);
9301 }
9302 else
9303 {
9304 if ( v9 == (char *)2 )
9305 {
9306 *(char *)Str = atoi(v3);
9307 }
9308 else
9309 {
9310 if ( v9 - 2 == (char *)1 )
9311 *(char * *)(Str - 4) = RemoveQuotes(v3);
9312 }
9313 }
9314 }
9315 ++v9;
9316 v3 = (char *)(v6 + 1);
9317 }
9318 while ( (signed int)(v9 - 1) <= 3 && (char *)v8 == v1 );
9319 Str += 12;
9320 --v7;
9321 }
9322 while ( v7 );
9323 }
9324 9244
9325 //----- (00453F62) -------------------------------------------------------- 9245 //----- (00453F62) --------------------------------------------------------
9326 void MapStats::Initialize() 9246 void MapStats::Initialize()
9327 { 9247 {
9328 MapStats *v1; // esi@1 9248 MapStats *v1; // esi@1