You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.

#1 Re: Support » Desmume 0.9.8 and Mac OS X Mountain Lion Golden Master » 2012-08-06 11:29:45

Rogerman has  fixed this bug in SVN Revision 4343 :-)

#2 Re: Support » Desmume 0.9.8 and Mac OS X Mountain Lion Golden Master » 2012-07-30 18:32:40

here is a compiled osx bundle . I've just checked out the latest svn trunk (revision 4334), and applied the patch. So far I've only tested it with dragon quest IX, but it should work with other games too.

Remember, this is an unofficial build, so use it at your own risk. Also, since I don't have a developer id,  the application is not digitally signed. Therefore, with Gatekeeper's default security settings it won't run. Just right click on desmune and select "open" to bypass it (or just disable gatekeeper).

http://www.mediafire.com/?csy4wg7egl1hh56

#3 Re: Support » Desmume 0.9.8 and Mac OS X Mountain Lion Golden Master » 2012-07-30 09:15:06

To apply this patch, you have to build desmune from the latest source code. Basically, you need to :
1-install Xcode dev tools from the mac app store
2-download the source code either from svn (0.9.9) or the project page.
3- Open Desmune (XCode4).xcodprojct
3-in the files pane, open (CocoaPort->userinterface->displayView.mm)
4-replace the original [OpenGLDisplayView initWithCoder:(NSCoder*)a Decoder] implementation with the code I provided above)
5-build the  "Desmune (v10.7 lion) My Mac 64 bit target".
This creates a new desmune app bundle compatible with osx 10.8.

#4 Re: Support » Desmume 0.9.8 and Mac OS X Mountain Lion Golden Master » 2012-07-29 21:04:07

I had the same issue when I upgraded my macbook to osx 10.8. For this reason, I had a look the  the code and  I've found what's wrong .
It seems that OSX's lion noes requires each app to specify the opengl profile at initalisation. For this reason, I have set the view to use opengl's legacy profile (not 3.2 core) in the displayView.mm file. Now Desmune video output is working again in osx 10.8:-)

- (id)initWithCoder:(NSCoder *)aDecoder
{
	self = [super init];
	if (self == nil)
	{
		return self;
	}
	
    NSOpenGLPixelFormatAttribute pixelFormatAttributes[] =
    {
        NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersionLegacy,
        0
    };
   
    
	dispViewDelegate = nil;
	lastFrameSize = NSMakeSize(GPU_DISPLAY_WIDTH, GPU_DISPLAY_HEIGHT * 2.0);
	glTexPixelFormat = GL_UNSIGNED_SHORT_1_5_5_5_REV;
	glTexRenderStyle = GL_LINEAR;
	
	UInt32 w = GetNearestPositivePOT((UInt32)lastFrameSize.width);
	UInt32 h = GetNearestPositivePOT((UInt32)lastFrameSize.height);
	glTexBack = (GLvoid *)calloc(w * h, sizeof(UInt16));
	glTexBackSize = NSMakeSize(w, h);
    
    NSOpenGLPixelFormat *pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:pixelFormatAttributes] autorelease];
    NSOpenGLContext* openGLContext = [[[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext:nil] autorelease];
    [super initWithCoder:aDecoder];
    [self setOpenGLContext:openGLContext];
    [openGLContext makeCurrentContext];
  
   
    return self;
}

desmuneosx108.png

Uploaded with ImageShack.us

Can the DeSmenu Mac team members    confirm this "patch" works for them?

Board footer

Powered by FluxBB