by gamefreaks » May 24, 2002 @ 3:21pm
Ok then. I run it and we get the blank screen. (on the device)
Am I right in thinking that the GAPI functions that have a _ (underscore) at the end of them are pointers to functions in the dynamicly loaded GX.dll. Since the HPC version links to a GAPI lib, not a dll, this code is not required.
When you try replacing the pointers with calls to the function, it throws a link error. After reading the 720 port thread (posted ages ago) I think that it is because the lib is not compatible with 'C' and the functions must be called from 'C++' code.
Is it correct to create a new .cpp file and call the functions from there and return the values to the original 'C' code in 'vip_ppc.c'?
Eg: Replace (*GXOpenDisplay_)(hWnd,GX_FULLSCREEN);
with ToC_GXOpenDisplay(hWnd,GX_FULLSCREEN);
and have a function like this in the .cpp file:
int ToC_GXOpenDisplay(HANDLE h,DWORD d)
{
return GXOpenDisplay(h,d)
}
This way the 'C' code gets the values returned to it and the net effect is the same as calling it directly.
What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -Woody Allen