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(); }
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; } }
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; } }