Subversion Repositories spk

Rev

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

Rev 227 Rev 230
Line 406... Line 406...
406
		CFileIO configFile(mydoc + L"/Egosoft/pluginmanager.dat");
406
		CFileIO configFile(mydoc + L"/Egosoft/pluginmanager.dat");
407
		if ( configFile.startRead() ) {
407
		if ( configFile.startRead() ) {
408
			while(!configFile.atEnd()) {
408
			while(!configFile.atEnd()) {
409
				Utils::WString line = configFile.readEndOfLine();
409
				Utils::WString line = configFile.readEndOfLine();
410
				if ( line.token(L":", 1).Compare(L"DirExe") ) {
410
				if ( line.token(L":", 1).Compare(L"DirExe") ) {
411
					Utils::WString rest = line.tokens(L":", 2).removeFirstSpace();
411
					Utils::WString rest = line.tokens(L":", 2).removeFirstSpace().remove('\r').remove('\n');
412
					if ( rest.countToken(L"|" ) > 2 )
412
					if ( rest.countToken(L"|" ) > 2 )
413
						_lControlledDirs.pushBack(rest.token(L"|", 3), rest.token(L"|", 2));
413
						_lControlledDirs.pushBack(rest.token(L"|", 3), rest.token(L"|", 2));
414
					else
414
					else
415
						_lControlledDirs.pushBack(rest.token(L"|", 2), rest.token(L"|", 1));
415
						_lControlledDirs.pushBack(rest.token(L"|", 2), rest.token(L"|", 1));
416
				}
416
				}