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

		byte encoding;

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

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

	// In Phaethon, we always want decompressed images
	decompress();
}
Exemple #2
0
void TPC::load(Common::SeekableReadStream &tpc) {
	try {

		bool needDeSwizzle = false;

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

		if (tpc.err())
			throw Common::Exception(Common::kReadError);

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

        bool needDeSwizzle = false;

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

        txb.seek(_dataSize + 128);

        readTXIData(txb);

        if (txb.err())
            throw Common::Exception(Common::kReadError);

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