kevsmithpublic/MameAppleTV

availableModes

Opened this issue · 3 comments

Hi,

i have this problem when i build the mame in the Apple TV.
schermata 2015-12-11 alle 12 59 48

Thaks a lot for answer for this problem.

Alberto

Same problem here. Any update?

I've fixed the problem. Just comment the line as follow:

        // Internal display is 0, external is 1.
        externalScreen = [[[UIScreen screens] objectAtIndex:1] retain];         
        //screenModes =  [[externalScreen availableModes] retain];

        // Allow user to choose from available screen-modes (pixel-sizes).

It will build the App without issues. Reason being of this fix, is the fact that the If condition will never be satisfied in AppleTV as there is only one screen available, which is not the case when compiling this code for iPad, iPhone or iPod devices, where you can connect an external display. Therefore that portion of the code never is executed on Apple TV OS and therefore it can be omitted.

Good gaming!
Flavio

I just had that error used this fix and now I have Mame on the Apple TV :)