Qt: Add support for --exec

This commit is contained in:
Léo Lam 2017-11-26 18:32:28 +01:00
parent 96e094e127
commit 6e796a74fb
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ int main(int argc, char* argv[])
&app, &Core::HostDispatchJobs); &app, &Core::HostDispatchJobs);
std::unique_ptr<BootParameters> boot; std::unique_ptr<BootParameters> boot;
if (options.is_set("nand_title")) if (options.is_set("exec"))
{
boot = BootParameters::GenerateFromFile(static_cast<const char*>(options.get("exec")));
}
else if (options.is_set("nand_title"))
{ {
const std::string hex_string = static_cast<const char*>(options.get("nand_title")); const std::string hex_string = static_cast<const char*>(options.get("nand_title"));
if (hex_string.length() == 16) if (hex_string.length() == 16)