X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=d3d9.py;h=a63b805e11916ddc371d56ac86c4dd8319b23c4c;hb=a26cf3eea71454aa5cc466a2abbe01537c95c31c;hp=4a4bd4251c53ce76fe6c8d8c6f7948b98338110f;hpb=288a9bca5c27be80f4e58e3a39ac7b1429f967aa;p=apitrace diff --git a/d3d9.py b/d3d9.py index 4a4bd42..a63b805 100644 --- a/d3d9.py +++ b/d3d9.py @@ -442,10 +442,10 @@ d3d9.add_functions([ StdFunction(HRESULT, "Direct3DCreate9Ex", [(UINT, "SDKVersion"), Out(Pointer(PDIRECT3D9EX), "ppD3D")], fail='D3DERR_NOTAVAILABLE'), StdFunction(Int, "D3DPERF_BeginEvent", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail='-1'), StdFunction(Int, "D3DPERF_EndEvent", [], fail='-1'), - StdFunction(Void, "D3DPERF_SetMarker", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail=''), - StdFunction(Void, "D3DPERF_SetRegion", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail=''), + StdFunction(Void, "D3DPERF_SetMarker", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")]), + StdFunction(Void, "D3DPERF_SetRegion", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")]), StdFunction(BOOL, "D3DPERF_QueryRepeatFrame", [], fail='FALSE'), - StdFunction(Void, "D3DPERF_SetOptions", [(DWORD, "dwOptions")], fail=''), + StdFunction(Void, "D3DPERF_SetOptions", [(DWORD, "dwOptions")]), StdFunction(DWORD, "D3DPERF_GetStatus", [], fail='0'), ]) @@ -462,12 +462,12 @@ class D3D9Tracer(DllTracer): if __name__ == '__main__': - print '#include "d3d9imports.hpp"' - print '#include "d3dshader.hpp"' - print print '#include "trace_writer.hpp"' print '#include "os.hpp"' print + print '#include "d3d9imports.hpp"' + print '#include "d3dshader.hpp"' + print tracer = D3D9Tracer('d3d9.dll') tracer.trace_api(d3d9)