Jump to content

Recommended Posts

Posted (edited)

Rest is a good thing.

 

Well since it is open source like Two9A said im gonna try my luck at making a confid option for it fully intergrated not an independant program >>.

Edited by NukeFall
Posted

Hi,

 

I've tried compiling the latest CVS version of DSEmu with MS Visual Studio.NET and it complains about a missing config.h file referenced in defs.h. Any tips?

 

 

Thanks

Posted

Ignore that last post, just saw it mentioned in the Makefile. I'm having great fun converting it into a visual studio project. :D

Posted

Yea ive had problems using cygwin to compile it cause of config.h but right now im just trying to find out where it handels all the code for the child windows i know where the debugger code is its in its own source file. Im trying to figure out what links that to the main program.

Posted

The *.c files look like they're a mix of formats too, playing havoc with the visual studio editor. ds.c is in UNIX format while mmu.c is in DOS format. :D Meaning that the line numbers the debugger gives don't match.

 

What child windows do you mean?

Posted

Child Windows like Debugger and Pallete. Ive gotten pretty far to the point where it creats the windwos and then what toggles then showed or unshowed. I also found each windows proc. I still dont know whats connecting them all though.

Posted
Child Windows like Debugger and Pallete. Ive gotten pretty far to the point where it creats the windwos and then what toggles then showed or unshowed. I also found each windows proc. I still dont know whats connecting them all though.

 

dbgOut in dbgout.c draws the fixed-width characters on the buf argument it is passed. This drawing buffer is linked to the child windows with membuf being attached to the memory debug window, palbuf to the pallette, etc. This is done with the SetDIBitsToDevice call in glds.c I believe.

Posted

Well from what i can gather all the windows procs and stuff are in glds.c and in glgba.c ill look into that call and see what i find. If that doesnt work ill trace it back from main.c wince thats the main winmain function.

Posted
This drawing buffer is linked to the child windows with membuf being attached to the memory debug window, palbuf to the pallette, etc. This is done with the SetDIBitsToDevice call in glds.c I believe.
Someone understands my code? This isn't right.

 

Well, work backwards from the child window. Take the debugger window. It has its buffer blitted in emuRefresh (one of a few places). Where does the buffer get filled? ARM7status, which has a reference to dbuf. Where does dbuf get passed into the ARM core? emuInit, with ARM7init after it's been allocated. It all ties together.

 

If that made sense, you're a better man than me.

Posted

Well yea i see emuInit. I think im just not gonna do it the way you did it. I think im just gonna derive everything from win.c in the proc since im so lazy. It shouldnt slow down the emulator at all considering the code would only run when you open the window.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...