| 503 | const static std::string DownloadURL = "https://rootfs.fex-emu.gg/RootFS_links.json"; |
| 504 | |
| 505 | std::string DownloadToString(const std::string& URL) { |
| 506 | std::array<const char*, 3> ExecveArgs = { |
| 507 | "curl", |
| 508 | URL.c_str(), |
| 509 | nullptr, |
| 510 | }; |
| 511 | |
| 512 | return Exec::ExecAndWaitForResponseText(ExecveArgs[0], const_cast<char* const*>(ExecveArgs.data())); |
| 513 | } |
| 514 | |
| 515 | bool DownloadToPath(const fextl::string& URL, const fextl::string& Path) { |
| 516 | auto filename = URL.substr(URL.find_last_of('/') + 1); |
no test coverage detected