| 352 | } |
| 353 | |
| 354 | void CModelPool::refresh_prefetch(const char* low_name, const bool is_hud_visual) |
| 355 | { |
| 356 | if (now_prefetch2) |
| 357 | return; |
| 358 | |
| 359 | std::string s(low_name); |
| 360 | if (m_prefetched.find(s) != m_prefetched.end()) |
| 361 | return; |
| 362 | |
| 363 | if (now_prefetch1) |
| 364 | { |
| 365 | m_prefetched.emplace(s, true); |
| 366 | } |
| 367 | else if (vis_prefetch_ini) |
| 368 | { |
| 369 | shared_str fname; |
| 370 | bool is_global = !!FS.exist(fsgame::game_meshes, *fname.sprintf("%s.ogf", low_name)); |
| 371 | if (is_global) |
| 372 | vis_prefetch_ini->w_fvector2("prefetch", low_name, Fvector2{2.f, is_hud_visual ? 2.f : 1.f}); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | dxRender_Visual* CModelPool::CreateChild(LPCSTR name, IReader* data) |
| 377 | { |
nothing calls this directly
no test coverage detected