Add /dev/MiSTer_cmd screenshot support (#472)

Sending "screenshot" to the MiSTer_cmd device will trigger a screenshot.
An exact png filename can be specified if desired.
This commit is contained in:
Martin Donlon
2021-10-06 22:11:01 -07:00
committed by GitHub
parent 7abbf7f8f4
commit aa3ef264ac
4 changed files with 84 additions and 36 deletions

View File

@@ -4387,6 +4387,10 @@ int input_test(int getchar)
if (len > 4 && !strcasecmp(cmd + len - 4, ".mra")) arcade_load(cmd + 10);
else fpga_load_rbf(cmd + 10);
}
else if (!strncmp(cmd, "screenshot", 10))
{
user_io_screenshot_cmd(cmd);
}
}
}