print '#include <d3d9.h>'
print
print '#include "trace_write.hpp"'
+ print '#include "os.hpp"'
print
tracer = D3D9Tracer('d3d9.dll')
tracer.trace_api(d3d9)
import stdapi
+from dispatch import Dispatcher
def interface_wrap_name(interface):
return '__%s' % (function.name,)
def header(self, api):
- Tracer.header(self, api)
-
print '''
static HINSTANCE g_hDll = NULL;
static PROC
-__GetProcAddress(LPCSTR lpProcName)
+__getPublicProcAddress(LPCSTR lpProcName)
{
if (!g_hDll) {
char szDll[MAX_PATH] = {0};
''' % self.dllname
+ dispatcher = Dispatcher()
+ dispatcher.dispatch_api(api)
+
+ Tracer.header(self, api)
+