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