#include "os_process.hpp"
#include "trace_parser.hpp"
-#include "trace_resource.hpp"
+#include "cli_resources.hpp"
#include "cli.hpp"
#include "cli_retrace.hpp"
{
trace::Parser p;
if (!p.open(filename)) {
+ exit(1);
return trace::API_UNKNOWN;
}
trace::Call *call;
case trace::API_D3D7:
case trace::API_D3D8:
case trace::API_D3D9:
- case trace::API_D3D10:
- case trace::API_D3D10_1:
- case trace::API_D3D11:
- // Can be used with WINE
+ case trace::API_DXGI:
+ // Use prefix so that it can be used with WINE
retraceName = "d3dretrace.exe";
break;
default:
}
std::vector<const char *> command;
- os::String retracePath = trace::findProgram(retraceName);
+ os::String retracePath = findProgram(retraceName);
if (retracePath.length()) {
command.push_back(retracePath);
} else {
}
const Command retrace_command = {
- "retrace",
+ "replay",
synopsis,
usage,
command