Subversion Repositories spk

Rev

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

Rev 102 Rev 125
Line 1560... Line 1560...
1560
				return _US(CPackages::tempDirectory() + "tmp.dat");
1560
				return _US(CPackages::tempDirectory() + "tmp.dat");
1561
		}
1561
		}
1562
		else if ( String::Compare(IO::FileInfo(file).Extension, ".cat") == 0 )
1562
		else if ( String::Compare(IO::FileInfo(file).Extension, ".cat") == 0 )
1563
		{
1563
		{
1564
			CCatFile cat;
1564
			CCatFile cat;
1565
			if ( cat.Open(CyStringFromSystemString(file), "", CATREAD_CATDECRYPT, false) == CATERR_NONE )
1565
			if ( cat.open(_S(file), "", CATREAD_CATDECRYPT, false) == CATERR_NONE )
1566
			{
1566
			{
1567
				if ( cat.ExtractFile(CyStringFromSystemString("types\\" + type + ".pck"), CPackages::GetTempDirectory() + "tmp.dat") )
1567
				if ( cat.ExtractFile(CyStringFromSystemString("types\\" + type + ".pck"), CPackages::GetTempDirectory() + "tmp.dat") )
1568
					return _US(CPackages::tempDirectory() + "tmp.dat");
1568
					return _US(CPackages::tempDirectory() + "tmp.dat");
1569
			}
1569
			}
1570
		}
1570
		}