| Line 389... |
Line 389... |
| 389 |
start += (size + 1);
|
389 |
start += (size + 1);
|
| 390 |
}
|
390 |
}
|
| 391 |
else if ( first.Compare("SceneFile") )
|
391 |
else if ( first.Compare("SceneFile") )
|
| 392 |
{
|
392 |
{
|
| 393 |
Utils::String file = rest.tokens(" ", 3);
|
393 |
Utils::String file = rest.tokens(" ", 3);
|
| 394 |
m_pSceneFile = this->AddFile(CFileIO(file).GetFilename(), CFileIO(file).GetDir(), FILETYPE_SHIPSCENE);
|
394 |
m_pSceneFile = this->AddFile(CFileIO(file).filename(), CFileIO(file).dir(), FILETYPE_SHIPSCENE);
|
| 395 |
m_pSceneFile->SetCreationTime((long)rest.token(" ", 1));
|
395 |
m_pSceneFile->SetCreationTime((long)rest.token(" ", 1));
|
| 396 |
m_pSceneFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
396 |
m_pSceneFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
| 397 |
|
397 |
|
| 398 |
start += m_pSceneFile->GetDataSize();
|
398 |
start += m_pSceneFile->GetDataSize();
|
| 399 |
}
|
399 |
}
|
| 400 |
else if ( first.Compare("CockpitFile") )
|
400 |
else if ( first.Compare("CockpitFile") )
|
| 401 |
{
|
401 |
{
|
| 402 |
Utils::String file = rest.tokens(" ", 3);
|
402 |
Utils::String file = rest.tokens(" ", 3);
|
| 403 |
m_pCockpitFile = this->AddFile(CFileIO(file).GetFilename(), CFileIO(file).GetDir(), FILETYPE_COCKPITSCENE);
|
403 |
m_pCockpitFile = this->AddFile(CFileIO(file).filename(), CFileIO(file).dir(), FILETYPE_COCKPITSCENE);
|
| 404 |
m_pCockpitFile->SetCreationTime((long)rest.token(" ", 1));
|
404 |
m_pCockpitFile->SetCreationTime((long)rest.token(" ", 1));
|
| 405 |
m_pCockpitFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
405 |
m_pCockpitFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
| 406 |
|
406 |
|
| 407 |
start += m_pCockpitFile->GetDataSize();
|
407 |
start += m_pCockpitFile->GetDataSize();
|
| 408 |
}
|
408 |
}
|
| 409 |
else if ( first.Compare("Model") )
|
409 |
else if ( first.Compare("Model") )
|
| 410 |
{
|
410 |
{
|
| 411 |
Utils::String file = rest.tokens(" ", 3);
|
411 |
Utils::String file = rest.tokens(" ", 3);
|
| 412 |
C_File *newFile= this->AddFile(CFileIO(file).GetFilename(), CFileIO(file).GetDir(), FILETYPE_SHIPMODEL);
|
412 |
C_File *newFile= this->AddFile(CFileIO(file).filename(), CFileIO(file).dir(), FILETYPE_SHIPMODEL);
|
| 413 |
newFile->SetCreationTime((long)rest.token(" ", 1));
|
413 |
newFile->SetCreationTime((long)rest.token(" ", 1));
|
| 414 |
newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
414 |
newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
| 415 |
|
415 |
|
| 416 |
start += (newFile->GetDataSize() + 1);
|
416 |
start += (newFile->GetDataSize() + 1);
|
| 417 |
}
|
417 |
}
|
| Line 436... |
Line 436... |
| 436 |
newFile = new C_File(CyString(file));
|
436 |
newFile = new C_File(CyString(file));
|
| 437 |
special = 3;
|
437 |
special = 3;
|
| 438 |
}
|
438 |
}
|
| 439 |
else
|
439 |
else
|
| 440 |
{
|
440 |
{
|
| 441 |
newFile = this->AddFile(CFileIO(file).GetFilename(), CFileIO(file).GetDir(), FILETYPE_SHIPOTHER);
|
441 |
newFile = this->AddFile(CFileIO(file).filename(), CFileIO(file).dir(), FILETYPE_SHIPOTHER);
|
| 442 |
newFile->SetCreationTime((long)rest.token(" ", 1));
|
442 |
newFile->SetCreationTime((long)rest.token(" ", 1));
|
| 443 |
}
|
443 |
}
|
| 444 |
newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
444 |
newFile->ReadFromData((char *)(compr + pos), rest.token(" ", 2));
|
| 445 |
start += (newFile->GetDataSize() + 1);
|
445 |
start += (newFile->GetDataSize() + 1);
|
| 446 |
|
446 |
|