Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- const std::string &filename = get_save_index_file();
- scoped_istream stream = istream_file(filename);
- if(is_gzip_file(filename)) {
- try {
- read_gz(save_index_cfg, *stream);
- } catch (boost::iostreams::gzip_error&) {
- read(save_index_cfg, *stream);
- }
- } else {
- read(save_index_cfg, *stream);
- }
- } catch(io_exception& e) {
- ERR_SAVE << "error reading save index: '" << e.what() << "'\n";
- } catch(config::error&) {
- ERR_SAVE << "error parsing save index config file\n";
- save_index_cfg.clear();
- }
Advertisement
Add Comment
Please, Sign In to add comment