Commit 4675e6a9 authored by wangdawei's avatar wangdawei

read stream

parent c7dde94b
......@@ -227,6 +227,18 @@ void AdjustPPK::LoadMapInfo()
// }
// }
string outputDir = ieBaseDir_ + "/stream/";
directory_iterator stream_iter(outputDir);
directory_iterator stream_end_iter;
for(; stream_iter != stream_end_iter; stream_iter++) {
auto fileName = stream_iter->path().filename().string();
ulong meshId = stoi(fileName);
if(meshVec_.find(meshId) == meshVec_.end()){
MashMap meshMap;
meshVec_.insert(make_pair(meshId, meshMap));
}
}
if(is_directory(mapDir_)){
directory_iterator task_iter(mapDir_);
directory_iterator task_end_iter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment