Changeset 698


Ignore:
Timestamp:
01/22/09 20:27:28 (10 years ago)
Author:
kavika
Message:

Torrent creation issues persist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/halSession.cpp

    r696 r698  
    335335        } 
    336336 
     337        HAL_DEV_MSG(hal::wform(L"root_path: %1%") % params.root_path.string()); 
     338 
     339        set_piece_hashes(t, to_utf8(params.root_path.string()) 
     340                        , boost::bind(fn, _1, L"Eoin")); 
     341/* 
    337342        boost::scoped_ptr<libt::storage_interface> store( 
    338343                default_storage_constructor(const_cast<libt::file_storage&>(t.files()), to_utf8(params.root_path.string()), 
     
    360365                } 
    361366        } 
    362  
     367*/ 
    363368        t.set_creator(to_utf8(params.creator).c_str()); 
    364369        t.set_comment(to_utf8(params.comment).c_str()); 
     
    370375         
    371376        HAL_DEV_MSG(hal::wform(L"Writing to: %1%") % out_file); 
    372         halencode(out_file, e); 
     377        fs::ofstream out(out_file, std::ios_base::binary); 
     378        libt::bencode(std::ostream_iterator<char>(out), t.generate()); 
    373379 
    374380        } HAL_GENERIC_FN_EXCEPTION_CATCH(L"bit_impl::create_torrent()") 
Note: See TracChangeset for help on using the changeset viewer.