Retracer.retraceApi(self, api)
+ def invokeFunction(self, function):
+ if function.name in ('Direct3DCreate9', 'Direct3DCreate9Ex'):
+ print 'if (retrace::debug && !g_szD3D9DllName) {'
+ print ' /* '
+ print ' * XXX: D3D9D only works for simple things, it often introduces errors'
+ print ' * on complex traces, or traces which use unofficial D3D9 features.'
+ print ' */'
+ print ' if (0) {'
+ print ' g_szD3D9DllName = "d3d9d.dll";'
+ print ' }'
+ print '}'
+
+ Retracer.invokeFunction(self, function)
+
def invokeInterfaceMethod(self, interface, method):
# keep track of the last used device for state dumping
if interface.name in ('IDirect3DDevice9', 'IDirect3DDevice9Ex'):
void
retrace::setUp(void) {
- if (retrace::debug) {
- /*
- * XXX: D3D9D only works for simple things, it often introduces errors
- * on complex traces, or traces which use unofficial D3D9 features.
- */
- if (0) {
- g_szD3D9DllName = "d3d9d.dll";
- }
- }
}
print r' if (!g_h%sModule) {' % tag
print r' os::log("error: failed to load %s.dll\n");' % api.name
print r' exit(1);'
- print r' return NULL;'
print r' }'
print r' }'
print r' return GetProcAddress(g_h%sModule, lpProcName);' % tag