Commit ceb29187 authored by wangdawei's avatar wangdawei

read stream

parent d4b05bfb
...@@ -232,8 +232,12 @@ void AdjustPPK::LoadMapInfo() ...@@ -232,8 +232,12 @@ void AdjustPPK::LoadMapInfo()
directory_iterator stream_end_iter; directory_iterator stream_end_iter;
for(; stream_iter != stream_end_iter; stream_iter++) { for(; stream_iter != stream_end_iter; stream_iter++) {
auto fileName = stream_iter->path().stem().string(); auto fileName = stream_iter->path().stem().string();
LOG(INFO) << " fileName: " << fileName; ulong meshId;
ulong meshId = stoi(fileName); try {
meshId = stoi(fileName);
} catch (exception &e) {
continue;
}
if(meshVec_.find(meshId) == meshVec_.end()){ if(meshVec_.find(meshId) == meshVec_.end()){
MashMap meshMap; MashMap meshMap;
meshVec_.insert(make_pair(meshId, meshMap)); meshVec_.insert(make_pair(meshId, meshMap));
......
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