##########################################################################/
-from d3d8 import d3d8
-from trace import DllTracer
+from specs.d3d8 import d3d8
+from dlltrace import DllTracer
class D3D8Tracer(DllTracer):
- def dump_arg_instance(self, function, arg):
+ def serializeArgValue(self, function, arg):
# Dump shaders as strings
if function.name in ('CreateVertexShader', 'CreatePixelShader') and arg.name == 'pFunction':
- print ' DumpShader(Trace::localWriter, %s);' % (arg.name)
+ print ' DumpShader(trace::localWriter, %s);' % (arg.name)
return
- DllTracer.dump_arg_instance(self, function, arg)
+ DllTracer.serializeArgValue(self, function, arg)
if __name__ == '__main__':
+ print '#define INITGUID'
+ print
print '#include <windows.h>'
print '#include <d3d8.h>'
print '#include "d3dshader.hpp"'
print
- print '#include "trace_writer.hpp"'
+ print '#include "trace_writer_local.hpp"'
print '#include "os.hpp"'
print
tracer = D3D8Tracer('d3d8.dll')