kevsmithpublic / MameAppleTV

Mame for tvOS
235 stars 61 forks source link

availableModes #13

Open alby696 opened 8 years ago

alby696 commented 8 years ago

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

fpassa commented 8 years ago

Same problem here. Any update?

fpassa commented 8 years ago

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

bobuk1973 commented 8 years ago

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