X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=d3d8.py;h=0713696ecd9a65dd8eab9a007d3302f1fca067e9;hb=daf82af9d5f270c87434cc1142f32a6407703781;hp=89ad997ab52ee2c5e63af720e24d34f34da1a3b5;hpb=0187fac59ca457bfc203a1d3830abddd6512c16e;p=apitrace diff --git a/d3d8.py b/d3d8.py index 89ad997..0713696 100644 --- a/d3d8.py +++ b/d3d8.py @@ -28,7 +28,6 @@ from winapi import * from d3d8types import * from d3d8caps import * -from trace import DllTracer HRESULT = Enum("HRESULT", [ "D3D_OK", @@ -281,27 +280,3 @@ d3d8 = API("d3d8") d3d8.add_functions([ StdFunction(PDIRECT3D8, "Direct3DCreate8", [(UINT, "SDKVersion")]), ]) - - -class D3D8Tracer(DllTracer): - - def dump_arg_instance(self, function, arg): - # Dump shaders as strings - if function.name in ('CreateVertexShader', 'CreatePixelShader') and arg.name == 'pFunction': - print ' DumpShader(%s);' % (arg.name) - return - - DllTracer.dump_arg_instance(self, function, arg) - - -if __name__ == '__main__': - print '#include ' - print '#include ' - print '#include "d3dshader.hpp"' - print - print '#include "trace_writer.hpp"' - print '#include "os.hpp"' - print - tracer = D3D8Tracer('d3d8.dll') - tracer.trace_api(d3d8) -