]> git.cworth.org Git - apitrace/blobdiff - d3d8trace.py
cli: Add a simple implementation of "apitrace dump-images"
[apitrace] / d3d8trace.py
index 2b574fb203cf896f9bb0b3e77f9530b048238ab7..af87c2d2aa58bbae5ce8a00cc13be5bf66927e72 100644 (file)
 
 
 from specs.d3d8 import d3d8
-from trace import DllTracer
+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')