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

Function ExecWithQuestion

Source/Tools/FEXRootFSFetcher/Main.cpp:617–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615
616namespace Zenity {
617bool ExecWithQuestion(const fextl::string& Question) {
618 fextl::string TextArg = "--text=" + Question;
619 const char* Args[] = {
620 "zenity",
621 "--question",
622 TextArg.c_str(),
623 nullptr,
624 };
625
626 int32_t Result = Exec::ExecAndWaitForResponse(Args[0], const_cast<char* const*>(Args));
627 // 0 on Yes, 1 on No
628 return Result == 0;
629}
630
631void ExecWithInfo(const fextl::string& Text) {
632 fextl::string TextArg = "--text=" + Text;

Callers 2

AskForConfirmationFunction · 0.85
AskForDistroSelectionFunction · 0.85

Calls 1

ExecAndWaitForResponseFunction · 0.85

Tested by

no test coverage detected