Example #1
0
File: tpc.cpp Project: kevL/xoreos
void TPC::load(Common::SeekableReadStream &tpc) {
	try {

		byte encoding;

		readHeader(tpc, encoding);
		readData  (tpc, encoding);
		readTXI   (tpc);

		fixupCubeMap();

	} catch (Common::Exception &e) {
		clear();

		e.add("Failed reading TPC file");
		throw;
	}
}
Example #2
0
void TPC::load(Common::SeekableReadStream &tpc) {
	try {

		byte encoding;

		readHeader (tpc, encoding);
		readData   (tpc, encoding);
		readTXIData(tpc);

		fixupCubeMap();

	} catch (Common::Exception &e) {
		e.add("Failed reading TPC file");
		throw;
	}

	// In Phaethon, we always want decompressed images
	decompress();
}