| 369 | } |
| 370 | |
| 371 | void OsirisProxy::DumpNetworkFixedStrings() |
| 372 | { |
| 373 | auto nfs = Libraries.NetworkFixedStrings; |
| 374 | if (nfs != nullptr && (*nfs)->Initialized) { |
| 375 | auto const & strings = (*nfs)->FixedStrSet.Set; |
| 376 | |
| 377 | auto nfsLogPath = MakeLogFilePath(L"NetworkFixedStrings", L"log"); |
| 378 | std::ofstream logOut(nfsLogPath.c_str(), std::ios::out); |
| 379 | for (uint32_t i = 0; i < strings.Size; i++) { |
| 380 | auto str = strings.Buf[i].Str; |
| 381 | logOut << (str == nullptr ? "(NULL)" : str) << std::endl; |
| 382 | } |
| 383 | logOut.close(); |
| 384 | Debug(L"OsirisProxy::DumpNetworkFixedStrings() - Saved to %s", nfsLogPath.c_str()); |
| 385 | |
| 386 | |
| 387 | } else { |
| 388 | Debug("OsirisProxy::DumpNetworkFixedStrings() - Fixed strings not initialized yet"); |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | bool OsirisProxy::MergeWrapper(std::function<bool (void *, wchar_t *)> const & Next, void * Osiris, wchar_t * Src) |
| 393 | { |