MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / DownloadToString

Function DownloadToString

Source/Tools/FEXRootFSFetcher/Main.cpp:505–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503const static std::string DownloadURL = "https://rootfs.fex-emu.gg/RootFS_links.json";
504
505std::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
515bool DownloadToPath(const fextl::string& URL, const fextl::string& Path) {
516 auto filename = URL.substr(URL.find_last_of('/') + 1);

Callers 1

GetRootFSLinksFunction · 0.85

Calls 1

Tested by

no test coverage detected