Subversion Repositories spk

Rev

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

Rev 52 Rev 79
Line 1554... Line 1554...
1554
		
1554
		
1555
		if ( String::Compare(IO::FileInfo(file).Extension, ".pck") == 0 )
1555
		if ( String::Compare(IO::FileInfo(file).Extension, ".pck") == 0 )
1556
		{
1556
		{
1557
			C_File F(CyStringFromSystemString(file));
1557
			C_File F(CyStringFromSystemString(file));
1558
			F.UnPCKFile();
1558
			F.UnPCKFile();
1559
			if ( F.WriteToFile("tmp") )
1559
			if ( F.WriteToFile(CPackages::tempDirectory() + "tmp.dat") )
1560
				return "tmp";
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(CyStringFromSystemString(file), "", CATREAD_CATDECRYPT, false) == CATERR_NONE )
1566
			{
1566
			{
1567
				if ( cat.ExtractFile(CyStringFromSystemString("types\\" + type + ".pck"), "tmp") )
1567
				if ( cat.ExtractFile(CyStringFromSystemString("types\\" + type + ".pck"), CPackages::GetTempDirectory() + "tmp.dat") )
1568
					return "tmp";
1568
					return _US(CPackages::tempDirectory() + "tmp.dat");
1569
			}
1569
			}
1570
		}
1570
		}
1571
 
1571
 
1572
		return "";
1572
		return "";
1573
	}
1573
	}