Exemplo n.º 1
0
Arquivo: tpc.cpp Projeto: Glyth/xoreos
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;
	}
}
Exemplo n.º 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;
	}
}
Exemplo n.º 3
0
Arquivo: txb.cpp Projeto: kevL/xoreos
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;
	}
}