Beispiel #1
0
void TPC::load(Common::SeekableReadStream &tpc) {
	try {

		byte encoding;

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

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

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

		bool needDeSwizzle = false;

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

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

		e.add("Failed reading TPC file");
		throw;
	}
}
Beispiel #3
0
void TXB::load(Common::SeekableReadStream &txb) {
	try {

		uint32 dataSize;
		bool   needDeSwizzle = false;

		readHeader(txb, needDeSwizzle, dataSize);
		readData  (txb, needDeSwizzle);

		txb.seek(dataSize + 128);

		readTXI(txb);

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

		e.add("Failed reading TXB file");
		throw;
	}
}