| 519 | } |
| 520 | |
| 521 | static bool SteamclientMapped() |
| 522 | { |
| 523 | FILE* f = fopen("/proc/self/maps", "r"); |
| 524 | if (!f) return false; |
| 525 | char line[512]; |
| 526 | bool found = false; |
| 527 | while (fgets(line, sizeof(line), f)) { |
| 528 | if (strstr(line, "steamclient.so")) { |
| 529 | found = true; |
| 530 | break; |
| 531 | } |
| 532 | } |
| 533 | fclose(f); |
| 534 | return found; |
| 535 | } |
| 536 | |
| 537 | static void* DeferredInitThread(void*) |
| 538 | { |
no outgoing calls
no test coverage detected