| 589 | } |
| 590 | |
| 591 | std::string getOSNoSpaces() |
| 592 | { |
| 593 | #ifdef _WIN32 |
| 594 | return "Windows"; |
| 595 | #else |
| 596 | #ifdef __EMSCRIPTEN__ |
| 597 | return "Wasm"; |
| 598 | #else |
| 599 | // get platform from cmake variables |
| 600 | #ifdef MR_PLATFORM |
| 601 | std::string platform = MR_PLATFORM; |
| 602 | std::replace(platform.begin(), platform.end(), ' ', '_'); |
| 603 | return platform; |
| 604 | #else |
| 605 | return "UNKNOWN"; |
| 606 | #endif |
| 607 | #endif |
| 608 | #endif |
| 609 | } |
| 610 | |
| 611 | void setNewHandlerIfNeeded() |
| 612 | { |