Skip to content

Commit 5c49484

Browse files
authored
[GEN][ZH] Remove obsolete sec file presence checks (#788)
1 parent d2e5d60 commit 5c49484

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

Generals/Code/GameEngine/Source/Common/GameEngine.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -411,27 +411,6 @@ void GameEngine::init( int argc, char *argv[] )
411411
// load music dialog will still cause the game to quit.
412412
// m_quitting = FALSE;
413413

414-
// for fingerprinting, we need to ensure the presence of these files
415-
AsciiString dirName;
416-
dirName = TheArchiveFileSystem->getArchiveFilenameForFile("generalsb.sec");
417-
if (dirName.compareNoCase("gensec.big") != 0)
418-
{
419-
DEBUG_LOG(("generalsb.sec was not found in gensec.big - it was in '%s'\n", dirName.str()));
420-
m_quitting = TRUE;
421-
}
422-
423-
dirName = TheArchiveFileSystem->getArchiveFilenameForFile("generalsa.sec");
424-
const char *noPath = dirName.reverseFind('\\');
425-
if (noPath) {
426-
dirName = noPath + 1;
427-
}
428-
429-
if (dirName.compareNoCase("music.big") != 0)
430-
{
431-
DEBUG_LOG(("generalsa.sec was not found in music.big - it was in '%s'\n", dirName.str()));
432-
m_quitting = TRUE;
433-
}
434-
435414
// initialize the MapCache
436415
TheMapCache = MSGNEW("GameEngineSubsystem") MapCache;
437416
TheMapCache->updateCache();

GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -575,33 +575,6 @@ void GameEngine::init( int argc, char *argv[] )
575575
// load music dialog will still cause the game to quit.
576576
// m_quitting = FALSE;
577577

578-
// for fingerprinting, we need to ensure the presence of these files
579-
580-
581-
#if !defined(RTS_INTERNAL) && !defined(RTS_DEBUG)
582-
AsciiString dirName;
583-
dirName = TheArchiveFileSystem->getArchiveFilenameForFile("generalsbzh.sec");
584-
585-
if (dirName.compareNoCase("genseczh.big") != 0)
586-
{
587-
DEBUG_LOG(("generalsbzh.sec was not found in genseczh.big - it was in '%s'\n", dirName.str()));
588-
m_quitting = TRUE;
589-
}
590-
591-
dirName = TheArchiveFileSystem->getArchiveFilenameForFile("generalsazh.sec");
592-
const char *noPath = dirName.reverseFind('\\');
593-
if (noPath) {
594-
dirName = noPath + 1;
595-
}
596-
597-
if (dirName.compareNoCase("musiczh.big") != 0)
598-
{
599-
DEBUG_LOG(("generalsazh.sec was not found in musiczh.big - it was in '%s'\n", dirName.str()));
600-
m_quitting = TRUE;
601-
}
602-
#endif
603-
604-
605578
// initialize the MapCache
606579
TheMapCache = MSGNEW("GameEngineSubsystem") MapCache;
607580
TheMapCache->updateCache();

0 commit comments

Comments
 (0)