Subversion Repositories spk

Rev

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

Rev 130 Rev 158
Line 144... Line 144...
144
			if ( !package->pFile )
144
			if ( !package->pFile )
145
				continue;
145
				continue;
146
			if ( package->pFile->GetIcon() )
146
			if ( package->pFile->GetIcon() )
147
			{
147
			{
148
				package->pFile->ReadIconFileToMemory();
148
				package->pFile->ReadIconFileToMemory();
149
				CyString sIconFile = CyStringFromSystemString(IO::Path::GetTempPath()) + "\\" + CFileIO(package->sName).baseName() + "." + package->pFile->GetIconExt();
149
				Utils::String sIconFile = _S(IO::Path::GetTempPath()) + "\\" + CFileIO(package->sName).baseName() + "." + package->pFile->iconExt();
150
				if ( package->pFile->ExtractFile(package->pFile->GetIcon(), CFileIO(sIconFile).fullFilename(), false) )
150
				if ( package->pFile->ExtractFile(package->pFile->GetIcon(), CFileIO(sIconFile).fullFilename(), false) )
151
				{
151
				{
152
					String ^iconFile = SystemStringFromCyString(sIconFile);
152
					String ^iconFile = _US(sIconFile);
153
					if ( IO::File::Exists(iconFile) )
153
					if ( IO::File::Exists(iconFile) )
154
					{
154
					{
155
						String ^file = SystemStringFromCyString(package->sName);
155
						String ^file = SystemStringFromCyString(package->sName);
156
						String ^ext = System::IO::FileInfo(iconFile).Extension;
156
						String ^ext = System::IO::FileInfo(iconFile).Extension;
157
						if ( !String::Compare(ext, "bmp", false) || !String::Compare(ext, "ico", false) )
157
						if ( !String::Compare(ext, "bmp", false) || !String::Compare(ext, "ico", false) )