Next Generation Emulation banner

1 - 10 of 10 Posts

·
Registered
Joined
·
38 Posts
Discussion Starter · #1 ·
Where is the source for the Entry(); function???

I've searched the source for Cxbx and openXDK and can find only one reference to it, which is calling it!

Code:
    // ***********************************************
    // * Entry Point
    // ***********************************************
    __try
    {
		EmuSwapFS();   // XBox FS

        // _USE_XGMATH Disabled in mesh :[
        // halo : dword_0_2E2D18
        //_asm int 3
		Entry();

        EmuSwapFS();   // Win2k/XP FS
    }
(In \Win32\CxbxKrnl\Emu.cpp)

Does anyone know what this is?
 

·
Premium Member
Joined
·
6,071 Posts
Entry point of what? An OpenXDK app or Cxbx?
 

·
Registered
Joined
·
38 Posts
Discussion Starter · #3 ·
This is in Cxbx-0.7.8c-Source\Win32\CxbxKrnl\Emu.cpp

Just to a search for "Entry(" in that file, and you'll find it.
 

·
Premium Member
Joined
·
6,071 Posts
Smellypumba said:
This is in Cxbx-0.7.8c-Source\Win32\CxbxKrnl\Emu.cpp

Just to a search for "Entry(" in that file, and you'll find it.
Sorr, I should have been more specific. I was asking which entry point are you looking for. :) Cxbx or OpenXDK?
 

·
Premium Member
Joined
·
907 Posts
can you post more code ? its litle difficult to see what this is doing..
but i think caustik yust made a empty entry point so he can remember that there must be a entry point in the next release
 

·
Registered
Joined
·
38 Posts
Discussion Starter · #7 ·
This code is in the Cxbx source! I didn't make this, This is just a part of the Cxbx-0.7.8c-Source\Win32\CxbxKrnl\Emu.cpp file, and it compiles great...

Do you want me to post the file? I should think that you have the Cxbx source...
 

·
Registered
Joined
·
38 Posts
Discussion Starter · #9 ·
Shadow_tj, you can stop looking...

I found it!

It's a function pointer passed to EmuInit in:

Code:
EmuInit
(
    void                   *pTLSData, 
    Xbe::TLS               *pTLS,
    Xbe::LibraryVersion    *pLibraryVersion,
    DebugMode               DbgMode,
    char                   *szDebugFilename,
    Xbe::Header            *pXbeHeader,
    uint32                  dwXbeHeaderSize,
    void                  [I](*Entry)())[/I]
{
I guess the reason I didn't find it in searching was that I searched for Entry(, because just plain "entry" would give hundreds of results.

Anyway, it's passed as x_Xbe->m_Header.dwEntryAddr in EmuExe::EmuExe and written in as the new entry point into the .exe, so that when EmuInit is called, it knows the entry point, I guess.
 

·
Premium Member
Joined
·
907 Posts
ok :) thats great..

i havent much time ( yes i have said that for manny times ).

i got to much projects running at the moment.
 
1 - 10 of 10 Posts
Top