Subversion Repositories spk

Rev

Rev 143 | Rev 149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 147
Line 1238... Line 1238...
1238
		// start the install process, check if we need to the file enabled or disabled
1238
		// start the install process, check if we need to the file enabled or disabled
1239
		CLog::logf(CLog::Log_Install, 1, "Preparing to install file: %s", fit->GetNameDirectory(this).c_str());
1239
		CLog::logf(CLog::Log_Install, 1, "Preparing to install file: %s", fit->GetNameDirectory(this).c_str());
1240
		bool fileEnabled = _install_setEnabled(enabled, fit);
1240
		bool fileEnabled = _install_setEnabled(enabled, fit);
1241
 
1241
 
1242
		// check if the file is for the correct game version
1242
		// check if the file is for the correct game version
1243
		if ( fit->game() && packages->GetGame() && fit->game() != GAME_ALLNEW) {
-
 
1244
			if(!(fit->game() & (1 << packages->GetGame())))
1243
		if (!fit->isForGame(packages->GetGame())) 
1245
			{
1244
		{
1246
				CLog::logf(CLog::Log_Install, 1, "File didn't match game version, skipping, %d != %d", fit->game(), packages->GetGame());
1245
			CLog::logf(CLog::Log_Install, 1, "File didn't match game version, skipping, %d != %d", fit->game(), packages->GetGame());
1247
				continue;
1246
			continue;
1248
			}
-
 
1249
		}
1247
		}
1250
 
1248
 
1251
		// update the progress display to show we are processing this file
1249
		// update the progress display to show we are processing this file
1252
		if ( progress ) {
1250
		if ( progress ) {
1253
			if ( progress->IsSecond() ) progress->SwitchSecond();
1251
			if ( progress->IsSecond() ) progress->SwitchSecond();